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
01659930e839b18fafb2d3804ee333ff0d0a2b6d
335
gyp
Python
binding.gyp
nomagick/tea-napi
1946f8db63ed2c85e59f7a181b0b87e203654c23
[ "MIT" ]
null
null
null
binding.gyp
nomagick/tea-napi
1946f8db63ed2c85e59f7a181b0b87e203654c23
[ "MIT" ]
null
null
null
binding.gyp
nomagick/tea-napi
1946f8db63ed2c85e59f7a181b0b87e203654c23
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "tea_napi", "sources": [ "src/tea-napi.cc" ], "cflags!": [ "-fno-exceptions" ], "cflags_cc!": [ "-fno-exceptions" ], "include_dirs": [ "<!@(node -p \"require('node-addon-api').include\")" ], 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS...
23.928571
60
0.486567
67130cf0a00b0c129902c154d7de78acda5c56e8
1,052
py
Python
GetRabbitPairs_20210318A.py
LukeHebert/Rosalind
1c6e1b937056f3c92c21df3d691b6b59be619125
[ "MIT" ]
null
null
null
GetRabbitPairs_20210318A.py
LukeHebert/Rosalind
1c6e1b937056f3c92c21df3d691b6b59be619125
[ "MIT" ]
null
null
null
GetRabbitPairs_20210318A.py
LukeHebert/Rosalind
1c6e1b937056f3c92c21df3d691b6b59be619125
[ "MIT" ]
null
null
null
''' Author: Luke Hebert Date begun: March 18th, 2021 Description: solves rabbit Fibonacci sequence from Rosalind input is number of generations and offspring-per-parent rate output is number of total rabbit units (pairs, in this case) at the given generation ''' print('Enter a positi...
37.571429
95
0.686312
63d4e9a1cad23d2f4687ef92e42045976ffc7f50
39,674
py
Python
run_classifier_transfer_learning.py
junhahyung/bert_transfer
c59f8598e3203400b094f48896127fefe7aa28b4
[ "Apache-2.0" ]
null
null
null
run_classifier_transfer_learning.py
junhahyung/bert_transfer
c59f8598e3203400b094f48896127fefe7aa28b4
[ "Apache-2.0" ]
null
null
null
run_classifier_transfer_learning.py
junhahyung/bert_transfer
c59f8598e3203400b094f48896127fefe7aa28b4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
35.328584
100
0.670691
bb1c35fbd98fce9b19d22d91b23dac5b50da241d
2,539
py
Python
soda/core/soda/execution/change_over_time_metric_check.py
sodadata/soda-core
d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a
[ "Apache-2.0" ]
4
2022-03-23T02:43:42.000Z
2022-03-31T15:20:54.000Z
soda/core/soda/execution/change_over_time_metric_check.py
sodadata/soda-core
d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a
[ "Apache-2.0" ]
543
2022-03-22T09:02:17.000Z
2022-03-31T16:29:41.000Z
soda/core/soda/execution/change_over_time_metric_check.py
sodadata/soda-core
d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a
[ "Apache-2.0" ]
1
2022-03-27T03:37:55.000Z
2022-03-27T03:37:55.000Z
from typing import Dict, Optional from soda.execution.metric import Metric from soda.execution.metric_check import MetricCheck from soda.soda_cloud.historic_descriptor import HistoricChangeOverTimeDescriptor from soda.sodacl.metric_check_cfg import MetricCheckCfg KEY_HISTORIC_METRIC_AGGREGATE = "historic_metric_aggre...
36.797101
113
0.68334
4d2e06182497ffc7d924413d86b42f3287f1ab30
4,943
py
Python
tests/evaluation_test.py
boschresearch/blackboxopt
85abea86f01a4a9d50f05d15e7d850e3288baafd
[ "ECL-2.0", "Apache-2.0" ]
8
2021-07-05T13:37:22.000Z
2022-03-11T12:23:27.000Z
tests/evaluation_test.py
boschresearch/blackboxopt
85abea86f01a4a9d50f05d15e7d850e3288baafd
[ "ECL-2.0", "Apache-2.0" ]
14
2021-07-07T13:55:23.000Z
2022-02-07T13:09:01.000Z
tests/evaluation_test.py
boschresearch/blackboxopt
85abea86f01a4a9d50f05d15e7d850e3288baafd
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 - for information on the respective copyright owner # see the NOTICE file and/or the repository https://github.com/boschresearch/blackboxopt # # SPDX-License-Identifier: Apache-2.0 import pytest from blackboxopt.evaluation import Evaluation, EvaluationSpecification def test_evaluation_with_inf_...
33.856164
88
0.644548
dd8f90160e3e11a79ba726cf0eab8f647ccad956
2,990
py
Python
instagram/models.py
sharon002/insta-gram
dcce96464a4e51485f7a077299dcd3adf34da078
[ "MIT" ]
1
2021-07-24T15:29:35.000Z
2021-07-24T15:29:35.000Z
instagram/models.py
sharon002/insta-gram
dcce96464a4e51485f7a077299dcd3adf34da078
[ "MIT" ]
null
null
null
instagram/models.py
sharon002/insta-gram
dcce96464a4e51485f7a077299dcd3adf34da078
[ "MIT" ]
1
2021-07-24T15:29:36.000Z
2021-07-24T15:29:36.000Z
from django.db import models from django.contrib.auth.models import User from PIL import Image as pil_img import datetime from django.utils import timezone from tinymce.models import HTMLField from django.db.models.signals import post_save from django.dispatch import receiver import cloudinary from cloudinary.models im...
28.207547
87
0.682943
f89aa46a1e668e697b7d93180f661cdd7dfc9942
1,673
py
Python
topi/tests/python/test_topi_shortcut.py
weberlo/tvm
e4b9f986dab8c48ba109a52106565fc4be6b67c4
[ "Apache-2.0" ]
4
2018-09-11T05:50:03.000Z
2022-01-23T03:43:22.000Z
topi/tests/python/test_topi_shortcut.py
ganzhiliang/tvm
b076cad542524cb3744149d953c341b5815f6474
[ "Apache-2.0" ]
4
2020-12-04T21:00:38.000Z
2022-01-22T12:49:30.000Z
topi/tests/python/test_topi_shortcut.py
ganzhiliang/tvm
b076cad542524cb3744149d953c341b5815f6474
[ "Apache-2.0" ]
4
2018-09-10T23:43:51.000Z
2019-06-14T16:27:23.000Z
"""Example code to do shortcut.""" import numpy as np import topi from topi.util import get_const_tuple import tvm def verify_shortcut(batch, in_size, in_channel): '''Verify shortcut operator by comparing outputs from tvm and numpy implementation''' in_height = in_width = in_size A1 = tvm.placeholder((bat...
34.142857
89
0.645547
283483698992a38f9ddb54a439f469e3a7861d17
8,554
py
Python
distributed/comm/tests/test_ucx.py
gforsyth/distributed
6fe62774aa7ad585cf2231ca6475f70fdc1cec24
[ "BSD-3-Clause" ]
null
null
null
distributed/comm/tests/test_ucx.py
gforsyth/distributed
6fe62774aa7ad585cf2231ca6475f70fdc1cec24
[ "BSD-3-Clause" ]
null
null
null
distributed/comm/tests/test_ucx.py
gforsyth/distributed
6fe62774aa7ad585cf2231ca6475f70fdc1cec24
[ "BSD-3-Clause" ]
null
null
null
import asyncio import pytest ucp = pytest.importorskip("ucp") from distributed import Client from distributed.comm import ucx, listen, connect from distributed.comm.registry import backends, get_backend from distributed.comm import ucx, parse_address from distributed.protocol import to_serialize from distributed.depl...
27.954248
88
0.60989
100e3bd05fbe16ce588f02dcdba539440c6a9238
161
py
Python
exercicios/exe003/exe003.py
tiagolsouza/exercicios-Curso-em-video-PYTHON
e4e6975fac7e4883aeab58b970c6ca72895564e4
[ "MIT" ]
null
null
null
exercicios/exe003/exe003.py
tiagolsouza/exercicios-Curso-em-video-PYTHON
e4e6975fac7e4883aeab58b970c6ca72895564e4
[ "MIT" ]
null
null
null
exercicios/exe003/exe003.py
tiagolsouza/exercicios-Curso-em-video-PYTHON
e4e6975fac7e4883aeab58b970c6ca72895564e4
[ "MIT" ]
null
null
null
n1 = int(input('digite um numero: ')) n2 = int(input('digite outro numero:')) s = n1+n2 print('a soma entre \033[31m{}\033[m e {} sera: {}.' .format(n1, n2, s))
32.2
72
0.602484
8541ef68514929a6e57d3bea53b58b3080f31a46
8,467
py
Python
unimport/main.py
abdulniyaspm/unimport
372a144a0c5b5c334ff042451a4436c88e1f0dab
[ "MIT" ]
1
2020-11-18T22:45:38.000Z
2020-11-18T22:45:38.000Z
unimport/main.py
abdulniyaspm/unimport
372a144a0c5b5c334ff042451a4436c88e1f0dab
[ "MIT" ]
5
2020-11-18T22:32:21.000Z
2020-11-19T02:05:24.000Z
unimport/main.py
abdulniyaspm/unimport
372a144a0c5b5c334ff042451a4436c88e1f0dab
[ "MIT" ]
null
null
null
import argparse import difflib import re import sys from pathlib import Path from typing import List, Optional, Sequence, Set, Tuple from unimport import color from unimport import constants as C from unimport.session import Session from unimport.statement import ImportFrom from unimport.utils import ( actiontoboo...
34.559184
123
0.549782
146a95c535e382b506d2e1c6f40eb49824ddae14
4,231
py
Python
sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py
Carlangueitor/pulumi-kubernetes
859ccaaeb8291de49128dbc202fbac1358b2a25a
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py
Carlangueitor/pulumi-kubernetes
859ccaaeb8291de49128dbc202fbac1358b2a25a
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py
Carlangueitor/pulumi-kubernetes
859ccaaeb8291de49128dbc202fbac1358b2a25a
[ "Apache-2.0" ]
null
null
null
# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings from typing import Optional import pulumi import pulumi.runtime from pulumi import Input, ResourceOptions from ... import tables, version ...
40.295238
107
0.68069
2b7f36816beb1119aa43d99bef44ca8cc00f2f35
2,579
py
Python
tests/test_simple_sbml.py
ModelEngineering/Kinetics-Validator
9350da492fd9c1482b50332f386632e6db0e7ed2
[ "MIT" ]
null
null
null
tests/test_simple_sbml.py
ModelEngineering/Kinetics-Validator
9350da492fd9c1482b50332f386632e6db0e7ed2
[ "MIT" ]
null
null
null
tests/test_simple_sbml.py
ModelEngineering/Kinetics-Validator
9350da492fd9c1482b50332f386632e6db0e7ed2
[ "MIT" ]
null
null
null
""" Tests for simple_sbml """ from SBMLKinetics.common import constants as cn from SBMLKinetics.common import simple_sbml from SBMLKinetics.common.simple_sbml import SimpleSBML from SBMLKinetics.common.reaction import Reaction from SBMLKinetics.common import util from tests.common import helpers import copy import num...
24.561905
59
0.69019
9365b34f71a5848221cfd2ad9619bdfcc7465382
27,738
py
Python
test/input_gen/genInput.py
suehdn/nntrainer
f8c4c6f168be83b76f724d68f50f9f7c6d0543de
[ "Apache-2.0" ]
null
null
null
test/input_gen/genInput.py
suehdn/nntrainer
f8c4c6f168be83b76f724d68f50f9f7c6d0543de
[ "Apache-2.0" ]
null
null
null
test/input_gen/genInput.py
suehdn/nntrainer
f8c4c6f168be83b76f724d68f50f9f7c6d0543de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # SPDX-License-Identifier: Apache-2.0-only ## # Copyright (C) 2020 Jijoong Moon <jijoong.moon@samsung.com> # Copyright (C) 2020 Parichay Kapoor <pk.kapoor@samsung.com> # # @file genTestInput.py # @brief Generate test input # @author Jijoong Moon <jijoong.moon@samsung.com> # @author Parichay Kapoo...
46.69697
168
0.670416
bae2247b11d702441967ff83b531a915fef772f8
27,758
py
Python
sdk/digitaltwins/azure-digitaltwins-core/azure/digitaltwins/core/_digitaltwins_client.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
sdk/digitaltwins/azure-digitaltwins-core/azure/digitaltwins/core/_digitaltwins_client.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
sdk/digitaltwins/azure-digitaltwins-core/azure/digitaltwins/core/_digitaltwins_client.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import uu...
42.18541
105
0.65156
2aca06dd3d179046896903be249587b581ff0812
96
py
Python
7_kyu/vowel_count.py
nik4nd/codewars
efae95f1f9fbd5f31fc62b1b4f5a7d1ee511ced0
[ "MIT" ]
null
null
null
7_kyu/vowel_count.py
nik4nd/codewars
efae95f1f9fbd5f31fc62b1b4f5a7d1ee511ced0
[ "MIT" ]
null
null
null
7_kyu/vowel_count.py
nik4nd/codewars
efae95f1f9fbd5f31fc62b1b4f5a7d1ee511ced0
[ "MIT" ]
null
null
null
def get_count(sentence): return sum([sentence.count(x) for x in ['a', 'e', 'i', 'o', 'u']])
32
70
0.5625
85c58ed3986d0b17e1da2a259829392cebe7bbfc
538
py
Python
devpotato_bot/commands/daily_titles/models/base.py
cl0ne/cryptopotato-bot
af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1
[ "MIT" ]
1
2021-05-15T23:41:29.000Z
2021-05-15T23:41:29.000Z
devpotato_bot/commands/daily_titles/models/base.py
cl0ne/cryptopotato-bot
af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1
[ "MIT" ]
1
2022-02-19T20:38:33.000Z
2022-02-19T23:53:39.000Z
devpotato_bot/commands/daily_titles/models/base.py
cl0ne/cryptopotato-bot
af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1
[ "MIT" ]
1
2021-05-15T23:42:21.000Z
2021-05-15T23:42:21.000Z
from sqlalchemy import MetaData from sqlalchemy.ext.declarative import as_declarative naming_convention = { "ix": 'ix_%(column_0_label)s', "uq": "uq_%(table_name)s_%(column_0_N_name)s", "ck": "ck_%(table_name)s_%(column_0_N_name)s", "fk": "fk_%(table_name)s_%(column_0_name)s_%(referred_table_name)s", "pk": "...
31.647059
71
0.743494
864c1767ed0c9c36a0ec421f2b8f3955acfbc8b7
274
py
Python
raissyon/raissyon/doctype/results_of_evaluation/results_of_evaluation.py
mhbu50/raissyon
73d5d7498e3e7f74b07e4c0a1c979ad10f9c37ce
[ "MIT" ]
null
null
null
raissyon/raissyon/doctype/results_of_evaluation/results_of_evaluation.py
mhbu50/raissyon
73d5d7498e3e7f74b07e4c0a1c979ad10f9c37ce
[ "MIT" ]
null
null
null
raissyon/raissyon/doctype/results_of_evaluation/results_of_evaluation.py
mhbu50/raissyon
73d5d7498e3e7f74b07e4c0a1c979ad10f9c37ce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, Accurate Systems and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class ResultsOfEvaluation(Document): pass
24.909091
55
0.784672
a88898e14aaabe74c987e92fa9c4b2b2f7e05dd0
638
py
Python
tests/ui/test_login.py
andreip/addons-server
9189e9be0c0d9f3df9c9dfbc26e9b16ae934d19e
[ "BSD-3-Clause" ]
null
null
null
tests/ui/test_login.py
andreip/addons-server
9189e9be0c0d9f3df9c9dfbc26e9b16ae934d19e
[ "BSD-3-Clause" ]
null
null
null
tests/ui/test_login.py
andreip/addons-server
9189e9be0c0d9f3df9c9dfbc26e9b16ae934d19e
[ "BSD-3-Clause" ]
null
null
null
import pytest from pages.desktop.home import Home @pytest.mark.withoutresponses def test_login(base_url, selenium, fxa_account): """User can login""" page = Home(selenium, base_url).open() assert not page.logged_in page.login(fxa_account.email, fxa_account.password) assert page.logged_in @pytes...
26.583333
66
0.719436
843cb421fec5f4247274780620fdfd535bcb243f
42,096
py
Python
frappe/model/document.py
kwiesmueller/frappe
6a748661c2140b15fd43437477f2ea6eef6b5de0
[ "MIT" ]
null
null
null
frappe/model/document.py
kwiesmueller/frappe
6a748661c2140b15fd43437477f2ea6eef6b5de0
[ "MIT" ]
null
null
null
frappe/model/document.py
kwiesmueller/frappe
6a748661c2140b15fd43437477f2ea6eef6b5de0
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals, print_function import frappe import time from frappe import _, msgprint from frappe.utils import flt, cstr, now, get_datetime_str, file_lock, date_diff from frappe.utils.backgrou...
31.368107
130
0.718477
ed9f079a5b65950eaaab642a82fa9d435eff8db3
529
py
Python
blogApp/utils/hash62.py
amitra/BikeMaps
eb80eed2e3159ad9c4e46427a9f488e1221794fa
[ "MIT" ]
null
null
null
blogApp/utils/hash62.py
amitra/BikeMaps
eb80eed2e3159ad9c4e46427a9f488e1221794fa
[ "MIT" ]
null
null
null
blogApp/utils/hash62.py
amitra/BikeMaps
eb80eed2e3159ad9c4e46427a9f488e1221794fa
[ "MIT" ]
null
null
null
ALPHA62 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" def hash(i10): """ Convert a base-10 integer into a base-62 integer and return the string """ digits = [] while i10 > 0: digits.append(i10%62) i10 /= 62 return "".join(map(lambda x: ALPHA62[x], digits)) def deha...
31.117647
100
0.642722
deaf300f23e0e02f5e44d6f622339a10d72c8428
1,343
py
Python
contact/models.py
Dimstella/blockchain-contact-tracing-app-hospitals
e0b2bf2b3b8c06e58032faed99900d1c7b7d300d
[ "MIT" ]
null
null
null
contact/models.py
Dimstella/blockchain-contact-tracing-app-hospitals
e0b2bf2b3b8c06e58032faed99900d1c7b7d300d
[ "MIT" ]
null
null
null
contact/models.py
Dimstella/blockchain-contact-tracing-app-hospitals
e0b2bf2b3b8c06e58032faed99900d1c7b7d300d
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User class Patient(models.Model): """ Patient information in hospital database """ CHOICES = [(True, 'Infected'), (False, 'Cured'), ('Suspected', 'Suspected')] uid = models.AutoF...
53.72
85
0.703649
21acec5bdaab40e05be82f855ea0b3797695ed5b
34,091
py
Python
animal/quadruped_spine.py
Sookhaal/auri_rigging_scripts
d6705b90a75ac9ff28da6c5674d7bdf864349073
[ "MIT" ]
5
2018-11-16T09:21:14.000Z
2022-02-05T08:06:00.000Z
animal/quadruped_spine.py
Sookhaal/auri_rigging_scripts
d6705b90a75ac9ff28da6c5674d7bdf864349073
[ "MIT" ]
44
2017-09-04T10:48:18.000Z
2018-01-08T10:31:05.000Z
animal/quadruped_spine.py
Sookhaal/auri_maya_rigging_scripts
d6705b90a75ac9ff28da6c5674d7bdf864349073
[ "MIT" ]
2
2018-01-29T14:04:32.000Z
2019-08-14T08:15:45.000Z
""" :created: 2017-12 :author: Alex BROSSARD <abrossard@artfx.fr> """ from PySide2 import QtWidgets, QtCore, QtGui from pymel import core as pmc from auri.auri_lib import AuriScriptView, AuriScriptController, AuriScriptModel, is_checked, grpbox from auri.scripts.Maya_Scripts import rig_lib from auri.scripts.Maya_Scri...
52.936335
135
0.616908
24e39debb4a48384ec16ac1ecde1742e7b7ad8b7
4,112
py
Python
odoo-13.0/addons/point_of_sale/models/pos_payment_method.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/point_of_sale/models/pos_payment_method.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/point_of_sale/models/pos_payment_method.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
from odoo import api, fields, models, _ from odoo.exceptions import UserError class PosPaymentMethod(models.Model): """ Used to classify pos.payment. Generic characteristics of a pos.payment is described in this model. E.g. A cash payment can be described by a pos.payment.method with fields: is_cash_...
50.765432
196
0.700632
97099ce6d9cae1370af39d71e235937ef8ab5997
97,938
py
Python
sympy/core/function.py
mgeier/sympy
3d0e2ec4dcb7653f7fac039cc585ae81dc7251c2
[ "BSD-3-Clause" ]
null
null
null
sympy/core/function.py
mgeier/sympy
3d0e2ec4dcb7653f7fac039cc585ae81dc7251c2
[ "BSD-3-Clause" ]
null
null
null
sympy/core/function.py
mgeier/sympy
3d0e2ec4dcb7653f7fac039cc585ae81dc7251c2
[ "BSD-3-Clause" ]
null
null
null
""" There are three types of functions implemented in SymPy: 1) defined functions (in the sense that they can be evaluated) like exp or sin; they have a name and a body: f = exp 2) undefined function which have a name but no body. Undefined functions can be defined using a Function cla...
34.828592
142
0.565787
bba7f35da2cf575bf3eba9871321e201653dbff5
2,460
py
Python
supportingModules/top.py
smithchristian/arcpy-create-base-dataset
6dccb8e9ef474453219738952723fb890e3c332d
[ "MIT" ]
null
null
null
supportingModules/top.py
smithchristian/arcpy-create-base-dataset
6dccb8e9ef474453219738952723fb890e3c332d
[ "MIT" ]
null
null
null
supportingModules/top.py
smithchristian/arcpy-create-base-dataset
6dccb8e9ef474453219738952723fb890e3c332d
[ "MIT" ]
null
null
null
# ---------------------------------------------------------------------------- # Name: top.py (Topography.py) # Purpose: This module contains variables for the construction # of a topography dataset. This module is to be used in # conjunction with create-Base-DataSet/main.py...
35.652174
81
0.543496
53ddeb9188cdb34883a5c68a195fe4c0b4d5c371
3,598
py
Python
twiggy/levels.py
tirkarthi/twiggy
054a07e71f2ceae231270fc62cb7f0a59cf72958
[ "BSD-3-Clause" ]
36
2015-02-06T06:19:27.000Z
2022-01-31T18:36:22.000Z
twiggy/levels.py
tirkarthi/twiggy
054a07e71f2ceae231270fc62cb7f0a59cf72958
[ "BSD-3-Clause" ]
51
2015-01-13T18:15:06.000Z
2021-05-16T06:03:07.000Z
twiggy/levels.py
tirkarthi/twiggy
054a07e71f2ceae231270fc62cb7f0a59cf72958
[ "BSD-3-Clause" ]
6
2016-05-31T20:11:12.000Z
2021-09-08T16:37:26.000Z
""" Levels include (increasing severity): ``DEBUG``, ``INFO``, ``NOTICE``, ``WARNING``, ``ERROR``, ``CRITICAL``, ``DISABLED`` """ from six import PY3, with_metaclass class LogLevelMeta(type): """ Metaclass that aids in making comparisons work the same in Python2 and Python3 Python3 raises TypeError when...
29.252033
97
0.608394
13f2ddf6ee00477290d7e66f662c4ab8d2862f5f
10,121
py
Python
paddlespeech/server/util.py
SmileGoat/PaddleSpeech
67994cb8a3f0d3c65446ef9560c69025d6d9a0ef
[ "Apache-2.0" ]
2
2021-11-29T09:02:20.000Z
2022-02-10T09:30:00.000Z
paddlespeech/server/util.py
SmileGoat/PaddleSpeech
67994cb8a3f0d3c65446ef9560c69025d6d9a0ef
[ "Apache-2.0" ]
null
null
null
paddlespeech/server/util.py
SmileGoat/PaddleSpeech
67994cb8a3f0d3c65446ef9560c69025d6d9a0ef
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
27.502717
114
0.595593
daf0a7d2ace906b41240d100e1ec79b017695721
368
py
Python
app/admin.py
sp35/PlantDBBrowser
641f541278f5dffe4aed1eac0f963d8da88a265e
[ "MIT" ]
null
null
null
app/admin.py
sp35/PlantDBBrowser
641f541278f5dffe4aed1eac0f963d8da88a265e
[ "MIT" ]
null
null
null
app/admin.py
sp35/PlantDBBrowser
641f541278f5dffe4aed1eac0f963d8da88a265e
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Category, DataBase, SubCategory @admin.register(DataBase) class DataBaseAdmin(admin.ModelAdmin): list_display = ["name", "url", "category", "sub_category"] list_filter = ["approved", "category","sub_category"] search_fields = ["name"] admin.site.regi...
24.533333
62
0.741848
c2dab75d35818e97d2eb323b33e580ace542eefb
2,033
py
Python
tests/unit/test_boot.py
madeiramadeirabr/template-serverless-service-python
17a57e19906f44978dad0c09cff3a16c299ff0c0
[ "MIT" ]
null
null
null
tests/unit/test_boot.py
madeiramadeirabr/template-serverless-service-python
17a57e19906f44978dad0c09cff3a16c299ff0c0
[ "MIT" ]
1
2022-03-31T17:55:16.000Z
2022-03-31T17:59:00.000Z
tests/unit/test_boot.py
madeiramadeirabr/template-serverless-service-python
17a57e19906f44978dad0c09cff3a16c299ff0c0
[ "MIT" ]
null
null
null
""" Boot Unit Test for Flambda APP Version: 1.0.0 """ import os import unittest from unittest.mock import patch from boot import load_dot_env, reset, is_loaded, load_env from tests.unit.mocks.flambda_app_mocks.aws.secrets_mock import secrets_mock_caller from tests.unit.testutils import BaseUnitTestCase, get_function_n...
33.883333
106
0.647319
7621d2912a3e497762f1a8c402f38453bf6560db
14,291
py
Python
nayan/forms.py
patilnayan92/etonlinetest
42b57cb6f10e518be99faa47e3f9f57a1a54b413
[ "Python-2.0" ]
2
2019-03-06T02:17:25.000Z
2019-10-03T17:43:26.000Z
nayan/forms.py
patilnayan92/etonlinetest
42b57cb6f10e518be99faa47e3f9f57a1a54b413
[ "Python-2.0" ]
null
null
null
nayan/forms.py
patilnayan92/etonlinetest
42b57cb6f10e518be99faa47e3f9f57a1a54b413
[ "Python-2.0" ]
4
2019-02-01T16:10:40.000Z
2020-08-30T02:44:39.000Z
from django import forms from nayan.models import get_model_class, Profile, Quiz, Question, TestCase, Course,\ QuestionPaper, StandardTestCase, StdIOBasedTestCase, \ HookTestCase, IntegerTestCase, StringTestCase from django.contrib.auth import authenticate from django.c...
41.303468
91
0.542089
ef87ded4dfdf6eb615c1acd523a25f06b717f3fd
23,064
py
Python
hg-fast-export.py
rajatguptarg/hg2git
47d330de83055efc5d4eeec6d0593d7aa3640555
[ "MIT" ]
null
null
null
hg-fast-export.py
rajatguptarg/hg2git
47d330de83055efc5d4eeec6d0593d7aa3640555
[ "MIT" ]
null
null
null
hg-fast-export.py
rajatguptarg/hg2git
47d330de83055efc5d4eeec6d0593d7aa3640555
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others. # License: MIT <http://www.opensource.org/licenses/mit-license.php> from mercurial import node from mercurial.scmutil import revsymbol from hg2git import setup_repo,fixup_user,get_branch,get_changeset from hg2git import load_cac...
35.428571
128
0.66645
34ddb058d1c7eba39b868915bb007f584e143bac
595
py
Python
rdsctrl.py
migueltorroja/rds-sdr
a8553d2c620881734b1b90b3a089455e21b2004d
[ "MIT" ]
null
null
null
rdsctrl.py
migueltorroja/rds-sdr
a8553d2c620881734b1b90b3a089455e21b2004d
[ "MIT" ]
1
2015-12-15T07:06:12.000Z
2015-12-15T07:07:19.000Z
rdsctrl.py
migueltorroja/rds-sdr
a8553d2c620881734b1b90b3a089455e21b2004d
[ "MIT" ]
null
null
null
#! /usr/bin/python import argparse import sys from sourcefile import sourcefile from plotsamples import plotsamples if __name__=='__main__': parser = argparse.ArgumentParser(description='rds control options') parser.add_argument('-f', dest='filename',help="file name with the sampled data") parsed_args=pars...
31.315789
85
0.739496
7b8885911f4f98e5e942cc785d04d7b8f30461ac
868
py
Python
tutorial/colour_grey.py
LloydTao/generativepy
8bf6afed57200cbebd3163e4fdc730fc8761e753
[ "MIT" ]
58
2019-06-15T16:09:28.000Z
2022-03-25T03:24:26.000Z
tutorial/colour_grey.py
LloydTao/generativepy
8bf6afed57200cbebd3163e4fdc730fc8761e753
[ "MIT" ]
1
2021-09-09T16:12:18.000Z
2021-09-09T18:13:05.000Z
tutorial/colour_grey.py
LloydTao/generativepy
8bf6afed57200cbebd3163e4fdc730fc8761e753
[ "MIT" ]
4
2020-07-26T10:54:19.000Z
2021-11-17T17:24:13.000Z
# Author: Martin McBride # Created: 2021-04-19 # Copyright (C) 2021, Martin McBride # License: MIT from generativepy.drawing import make_image, setup from generativepy.color import Color from generativepy.geometry import Rectangle def draw_grey(ctx, pixel_width, pixel_height, frame_no, frame_count): setup(ctx, ...
28.933333
77
0.680876
e44b9513a199f28c6def42a529fb79a5f255429c
270
py
Python
topCoder/srms/200s/srm251/div2/elections.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
topCoder/srms/200s/srm251/div2/elections.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
topCoder/srms/200s/srm251/div2/elections.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
from operator import itemgetter class Elections: def visit(self, likelihoods): return min( map( lambda (i, n): (i, n.count("1") / float(len(n))), enumerate(likelihoods) ), key=itemgetter(1), )[0]
22.5
88
0.507407
bd580938f7b6ffcf73d341223a96dd67959bb59a
4,591
py
Python
notebooks/knn_model_with_grouping.py
TuomoKareoja/wifi-locationing
a40878bd1dd26a2b09b0f32bdfdd7e929ad9fc86
[ "MIT" ]
null
null
null
notebooks/knn_model_with_grouping.py
TuomoKareoja/wifi-locationing
a40878bd1dd26a2b09b0f32bdfdd7e929ad9fc86
[ "MIT" ]
null
null
null
notebooks/knn_model_with_grouping.py
TuomoKareoja/wifi-locationing
a40878bd1dd26a2b09b0f32bdfdd7e929ad9fc86
[ "MIT" ]
null
null
null
# %% import os import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from IPython.core.interactiveshell import InteractiveShell from sklearn.metrics import make_scorer from sklearn.model_selection import GridSearchCV, KFold from sklearn.neighbors import KNeighborsRegressor from...
24.550802
88
0.669353
6841dcee25309c101e985aac07dc8a81b63554bc
1,189
py
Python
src/python/dart/engine/redshift/command/unload.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
18
2016-03-03T19:10:21.000Z
2021-07-14T22:37:35.000Z
src/python/dart/engine/redshift/command/unload.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
62
2016-04-11T15:17:23.000Z
2017-09-08T17:18:53.000Z
src/python/dart/engine/redshift/command/unload.py
RetailMeNotSandbox/dart
58a05f56c04fadd6741501262d92aeb143cd2f2e
[ "MIT" ]
15
2016-03-03T15:38:34.000Z
2019-03-27T19:33:08.000Z
from datetime import datetime from dart.engine.redshift.admin.utils import lookup_credentials, sanitized_query from dart.util.strings import substitute_date_tokens def unload_to_s3(action, conn): """ :type action: dart.model.action.Action """ args = action.data.args aws_access_key_id, aws_secret_access_ke...
41
112
0.688814
54006dc0454c028228ee5293f72d045f40e704ad
595
py
Python
S11/S11L65_LOTTO.py
Tooopik/Kurs_Python
5c8f040467dae5f9b90ff6a85550708ac4d88549
[ "Unlicense" ]
null
null
null
S11/S11L65_LOTTO.py
Tooopik/Kurs_Python
5c8f040467dae5f9b90ff6a85550708ac4d88549
[ "Unlicense" ]
null
null
null
S11/S11L65_LOTTO.py
Tooopik/Kurs_Python
5c8f040467dae5f9b90ff6a85550708ac4d88549
[ "Unlicense" ]
null
null
null
import random def chose_random_numbers(amount=1, total_amount=1): if amount <= total_amount: numbers = [] x = 0 while x < amount: number = random.randint(1, total_amount) if number not in numbers: numbers.append(number) x = x + 1 ...
20.517241
64
0.589916
f0dd6e312899c1ac89756cac9ca4f307c9545cda
8,226
py
Python
pymodbus/bit_read_message.py
exmachina-dev/pymodbus
60a7266d32db75786b9489513c85a373cf950a3e
[ "W3C" ]
6
2017-11-02T19:40:07.000Z
2021-06-19T17:19:08.000Z
pymodbus/bit_read_message.py
sjhilt/pymodbus
5e57d003c01e6eff44cd354c03a686ff95eaf8a9
[ "W3C" ]
null
null
null
pymodbus/bit_read_message.py
sjhilt/pymodbus
5e57d003c01e6eff44cd354c03a686ff95eaf8a9
[ "W3C" ]
3
2019-12-04T14:38:49.000Z
2020-11-19T02:41:38.000Z
""" Bit Reading Request/Response messages -------------------------------------- """ import struct from pymodbus.pdu import ModbusRequest from pymodbus.pdu import ModbusResponse from pymodbus.pdu import ModbusExceptions as merror from pymodbus.utilities import pack_bitstring, unpack_bitstring class ReadBitsRequestBa...
35.004255
80
0.651593
9fe9698880d23d6fee6ec935cd11e0010709c646
9,574
py
Python
pdfextractor/models/article_model.py
snook9/pdf_extractor
7a4c37db5026bb1789c5df5a76bc50718288bc1f
[ "MIT" ]
1
2021-11-05T07:55:56.000Z
2021-11-05T07:55:56.000Z
pdfextractor/models/article_model.py
snook9/pdf_extractor
7a4c37db5026bb1789c5df5a76bc50718288bc1f
[ "MIT" ]
8
2021-11-05T20:19:22.000Z
2021-12-22T15:15:37.000Z
pdfextractor/models/article_model.py
snook9/pdf_extractor
7a4c37db5026bb1789c5df5a76bc50718288bc1f
[ "MIT" ]
null
null
null
""" Name: PdfExporter Authors: Jonathan CASSAING Tool for parsing and extracting PDF file content """ from datetime import datetime from pathlib import Path import json from multiprocessing import Process # pdftotext is used to extract PDF content (text body) import pdftotext # PyPDF2 is used to extract PDF meta data ...
36.823077
100
0.587424
21f7f481571904ed760662bf114556deb4294b35
2,345
py
Python
core/domain/dependency_registry.py
VictoriaRoux/oppia
5ae2a7f0b5c85d6e28222844d22ebdbfb81923c6
[ "Apache-2.0" ]
3
2015-03-17T01:34:14.000Z
2015-04-11T10:35:53.000Z
core/domain/dependency_registry.py
VictoriaRoux/oppia
5ae2a7f0b5c85d6e28222844d22ebdbfb81923c6
[ "Apache-2.0" ]
null
null
null
core/domain/dependency_registry.py
VictoriaRoux/oppia
5ae2a7f0b5c85d6e28222844d22ebdbfb81923c6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # 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 requi...
36.640625
78
0.713433
3a405cad3a894586b1be24dd676ec10a0df6fe1e
190
py
Python
trpp/__init__.py
DmitryBogomolov/training-plan-parser
4193ee1ce0c880147e7d25eb83ead8e431251c72
[ "MIT" ]
null
null
null
trpp/__init__.py
DmitryBogomolov/training-plan-parser
4193ee1ce0c880147e7d25eb83ead8e431251c72
[ "MIT" ]
null
null
null
trpp/__init__.py
DmitryBogomolov/training-plan-parser
4193ee1ce0c880147e7d25eb83ead8e431251c72
[ "MIT" ]
null
null
null
from .text_parser import parse from .plan_renderer import render from .processor import process, process_file from .cli import run, DESC __doc__ = DESC # pylint: disable=redefined-builtin
27.142857
51
0.805263
fc8a8c2137b28a49a695e71c6f8771506241671c
7,196
py
Python
chapter3/Readercoin_/test/functional/signrawtransactions.py
MyawBug/Blockchain-By-Example
2d0495a130d1a9f91b7fb99359cbb8e9f7b9763d
[ "MIT" ]
51
2018-12-14T09:09:20.000Z
2022-03-28T03:25:45.000Z
chapter3/Readercoin_/test/functional/signrawtransactions.py
MyawBug/Blockchain-By-Example
2d0495a130d1a9f91b7fb99359cbb8e9f7b9763d
[ "MIT" ]
4
2019-08-02T18:23:17.000Z
2022-02-12T04:33:25.000Z
chapter3/Readercoin_/test/functional/signrawtransactions.py
xiaqingdoc/---
b15448739983b0787ffc963811294bcf44487303
[ "MIT" ]
42
2018-12-14T09:09:24.000Z
2022-03-31T01:49:35.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Readercoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test transaction signing using the signrawtransaction RPC.""" from test_framework.test_framework im...
49.972222
712
0.714008
f7217746e68b217cef673ded6405c62a5976ac18
5,365
py
Python
Benchmarking/CM_Benchmark/basic_benchmark/rde.py
CipiOrhei/eecvf
759fb2127c8d65a570ba2df536ff8429ccf5bdf2
[ "MIT" ]
1
2021-04-02T15:33:12.000Z
2021-04-02T15:33:12.000Z
Benchmarking/CM_Benchmark/basic_benchmark/rde.py
CipiOrhei/eecvf
759fb2127c8d65a570ba2df536ff8429ccf5bdf2
[ "MIT" ]
null
null
null
Benchmarking/CM_Benchmark/basic_benchmark/rde.py
CipiOrhei/eecvf
759fb2127c8d65a570ba2df536ff8429ccf5bdf2
[ "MIT" ]
1
2021-08-14T09:07:22.000Z
2021-08-14T09:07:22.000Z
import math import os from math import log10 # noinspection PyPackageRequirements import cv2 import numpy as np from scipy.ndimage import distance_transform_edt import config_main from Utils.log_handler import log_setup_info_to_console, log_error_to_console, log_benchmark_info_to_console from Benchmarking.Ut...
37.517483
146
0.608574
77adda9152d65dfa71a0273a7f963ecde34d291e
1,743
py
Python
src/003_cov_data_load.py
sebastian-konicz/covid-dashboard
49f5baea5081afdd4af86597ed662c2be3122658
[ "MIT" ]
null
null
null
src/003_cov_data_load.py
sebastian-konicz/covid-dashboard
49f5baea5081afdd4af86597ed662c2be3122658
[ "MIT" ]
null
null
null
src/003_cov_data_load.py
sebastian-konicz/covid-dashboard
49f5baea5081afdd4af86597ed662c2be3122658
[ "MIT" ]
null
null
null
from pathlib import Path import pandas as pd import time import glob pd.set_option('display.max_columns', None) pd.set_option('display.max_rows', None) def main(): # start time of program start_time = time.time() # project directory project_dir = str(Path(__file__).resolve().parents[1]) file_path...
32.277778
134
0.686747
bba3322fa50f4cca83a610494d310396b1a7a3e2
2,368
py
Python
language/boolq/utils/ops_test.py
naveenjafer/language
efc5183855a7aeecac3e81fe12ce60fc824f8ca7
[ "Apache-2.0" ]
2
2020-09-30T11:52:51.000Z
2020-09-30T12:07:41.000Z
language/boolq/utils/ops_test.py
naveenjafer/language
efc5183855a7aeecac3e81fe12ce60fc824f8ca7
[ "Apache-2.0" ]
2
2021-08-21T03:46:28.000Z
2022-02-10T08:16:56.000Z
language/boolq/utils/ops_test.py
naveenjafer/language
efc5183855a7aeecac3e81fe12ce60fc824f8ca7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
33.828571
78
0.67652
c90d4a3848fcfbc7849084f4f7ca42ec6be87ee9
2,523
py
Python
examples/mnist_logreg.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
examples/mnist_logreg.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
examples/mnist_logreg.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
'''Logistic regression classifier on mnist. Borrows some code from # http://scikit-learn.org/stable/auto_examples/neural_networks/plot_mnist_filters.html # http://scikit-learn.org/stable/auto_examples/classification/plot_digits_classification.html ''' import matplotlib.pyplot as plt import numpy as np import os from...
30.39759
199
0.745145
9fe5accdf9e30b207982e0cc85f53185e5953600
630
py
Python
bigpicture/manage.py
dchaplinsky/big_picture
e8b9a318bfadf535dc410dbbd3d5a2cf3fcec4e7
[ "MIT" ]
1
2020-03-06T02:32:08.000Z
2020-03-06T02:32:08.000Z
bigpicture/manage.py
dchaplinsky/big_picture
e8b9a318bfadf535dc410dbbd3d5a2cf3fcec4e7
[ "MIT" ]
6
2021-03-19T00:23:45.000Z
2022-03-12T00:17:27.000Z
bigpicture/manage.py
dchaplinsky/big_picture
e8b9a318bfadf535dc410dbbd3d5a2cf3fcec4e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bigpicture.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
28.636364
74
0.684127
047092c64cf8b6cd38d11aa58e55a2d0eb81c385
6,764
py
Python
Detection_and_control/ASUM-GUI-with-detection-and-control/data/voc0712.py
kebijuelun/ASUM
125a0d5db76e6adce360ee897f2a3c3445f7d138
[ "MIT" ]
2
2021-12-12T09:35:43.000Z
2021-12-21T15:38:02.000Z
Detection_and_control/ASUM-GUI-with-detection-and-control/data/voc0712.py
kebijuelun/ASUM
125a0d5db76e6adce360ee897f2a3c3445f7d138
[ "MIT" ]
null
null
null
Detection_and_control/ASUM-GUI-with-detection-and-control/data/voc0712.py
kebijuelun/ASUM
125a0d5db76e6adce360ee897f2a3c3445f7d138
[ "MIT" ]
null
null
null
"""VOC Dataset Classes Original author: Francisco Massa https://github.com/fmassa/vision/blob/voc_dataset/torchvision/datasets/voc.py Updated by: Ellis Brown, Max deGroot """ from .config import HOME import os.path as osp import sys import torch import torch.utils.data as data import cv2 import numpy as np if sys.ve...
35.046632
85
0.597723
ea3a04565e178f7ae9cd80a512f7820c910ab137
8,480
py
Python
py/load_firmware.py
pengguoguo/bitbox02-firmware
d40df7b05b9998313a9e6e4222680519afa7f630
[ "Apache-2.0" ]
null
null
null
py/load_firmware.py
pengguoguo/bitbox02-firmware
d40df7b05b9998313a9e6e4222680519afa7f630
[ "Apache-2.0" ]
1
2020-10-11T10:39:37.000Z
2020-10-11T10:59:34.000Z
py/load_firmware.py
pengguoguo/bitbox02-firmware
d40df7b05b9998313a9e6e4222680519afa7f630
[ "Apache-2.0" ]
1
2019-09-11T13:45:15.000Z
2019-09-11T13:45:15.000Z
#!/usr/bin/env python3 # Copyright 2019 Shift Cryptosecurity AG # # 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...
34.897119
100
0.697759
a26a3f8841042b3fe1fb3e66fd31cd0a0353480c
12,982
py
Python
sasmodels/kernelpy.py
pkienzle/sasmodels
de3d42cb3621294b8706e55928035477790cd0ac
[ "BSD-3-Clause" ]
11
2016-07-24T01:29:01.000Z
2021-12-12T13:41:00.000Z
sasmodels/kernelpy.py
pkienzle/sasmodels
de3d42cb3621294b8706e55928035477790cd0ac
[ "BSD-3-Clause" ]
426
2016-03-16T21:37:11.000Z
2022-03-31T13:48:28.000Z
sasmodels/kernelpy.py
pkienzle/sasmodels
de3d42cb3621294b8706e55928035477790cd0ac
[ "BSD-3-Clause" ]
28
2016-03-16T10:26:50.000Z
2021-03-17T10:29:48.000Z
""" Python driver for python kernels Calls the kernel with a vector of $q$ values for a single parameter set. Polydispersity is supported by looping over different parameter sets and summing the results. The interface to :class:`PyModel` matches those for :class:`.kernelcl.GpuModel` and :class:`.kerneldll.DllModel`. ...
38.294985
137
0.598444
328b90e2c174bed024e6954f6bba107aa7a846cc
748
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/data/region_TD.py
AMuratTuran/mkn
557086426773ced10d82c969304bd349414a601e
[ "BSD-3-Clause" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
oscar/lib/python2.7/site-packages/phonenumbers/data/region_TD.py
AMuratTuran/mkn
557086426773ced10d82c969304bd349414a601e
[ "BSD-3-Clause" ]
5
2020-03-24T16:37:25.000Z
2021-06-10T21:24:54.000Z
upibo-venv/Lib/site-packages/phonenumbers/data/region_TD.py
smbpgroup/upibo
625dcda9f9692c62aeb9fe8f7123a5d407c610ae
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. TD metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_TD = PhoneMetadata(id='TD', country_code=235, international_prefix='00|16', general_desc=PhoneNumberDesc(national_number_pattern='[2679]\\d{7}', possible_length=(8,)),...
74.8
140
0.709893
8d779eead5132dc37e994d970faadfcfdf6d5032
33,054
py
Python
test_replays/test_replays.py
AdamSchunk/sc2reader
5070cd035ab596506a3c9041fce249ebab4712c7
[ "MIT" ]
1
2021-11-27T01:56:13.000Z
2021-11-27T01:56:13.000Z
test_replays/test_replays.py
AdamSchunk/sc2reader
5070cd035ab596506a3c9041fce249ebab4712c7
[ "MIT" ]
null
null
null
test_replays/test_replays.py
AdamSchunk/sc2reader
5070cd035ab596506a3c9041fce249ebab4712c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import json from xml.dom import minidom # Newer unittest features aren't built in for python 2.6 import sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest else: import unittest # StringIO was changed in python 3 t...
40.706897
97
0.641768
7b23e6220ffc680815ffc6b3eb59f493ddfe9e3c
5,502
py
Python
deploy/python/predict_det.py
TxT1212/PaddleClas
5a24c8700f738f036bf27f80ca12dbe8471a11b0
[ "Apache-2.0" ]
3,763
2020-04-10T04:48:11.000Z
2022-03-31T13:24:37.000Z
deploy/python/predict_det.py
TxT1212/PaddleClas
5a24c8700f738f036bf27f80ca12dbe8471a11b0
[ "Apache-2.0" ]
633
2020-04-08T18:27:31.000Z
2022-03-31T01:09:43.000Z
deploy/python/predict_det.py
TxT1212/PaddleClas
5a24c8700f738f036bf27f80ca12dbe8471a11b0
[ "Apache-2.0" ]
846
2020-04-08T08:13:18.000Z
2022-03-31T12:28:37.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.603774
87
0.602145
67d72499e0f8415270282871e5df9d29cdc10c89
25,356
py
Python
selfdrive/controls/controlsd.py
robbo600/openpilot
02717fbb823a0af98bff50f552d0ba54496ab42f
[ "MIT" ]
65
2019-07-27T11:27:02.000Z
2022-02-03T09:10:38.000Z
selfdrive/controls/controlsd.py
robbo600/openpilot
02717fbb823a0af98bff50f552d0ba54496ab42f
[ "MIT" ]
41
2018-08-01T17:36:08.000Z
2020-12-16T02:42:57.000Z
selfdrive/controls/controlsd.py
robbo600/openpilot
02717fbb823a0af98bff50f552d0ba54496ab42f
[ "MIT" ]
229
2019-07-27T20:31:02.000Z
2021-09-21T11:02:49.000Z
#!/usr/bin/env python3 import os from cereal import car, log from common.numpy_fast import clip from common.realtime import sec_since_boot, config_realtime_process, Priority, Ratekeeper, DT_CTRL from common.profiler import Profiler from common.params import Params, put_nonblocking import cereal.messaging as messaging f...
43.195911
157
0.718015
6e1bd5b3e436c8dc8f42e923278a00e89398b042
7,695
py
Python
src/utils/apps/msrtsimul.py
Fran89/seiscomp3
a25d29966949769d2bce9c0d28db0a2128e00649
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2015-09-17T22:43:50.000Z
2017-11-29T20:27:11.000Z
src/utils/apps/msrtsimul.py
Fran89/seiscomp3
a25d29966949769d2bce9c0d28db0a2128e00649
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2016-04-26T00:03:09.000Z
2017-12-05T02:24:50.000Z
src/utils/apps/msrtsimul.py
salichon/seiscomp3
4f7715f9ff9a35e7912c379ebf10446d0bceaeb2
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-01-13T02:49:31.000Z
2022-01-13T02:49:31.000Z
#!/usr/bin/env python import sys, os, time, datetime, calendar, stat from getopt import getopt, GetoptError from seiscomp import mseedlite as mseed tstart = datetime.datetime.utcnow() ifile = sys.stdin verbosity = 0 speed = 1. jump = 0. test = False mode = 'realtime' def read_mseed_with...
34.352679
142
0.610136
538375239185a89c33391cd442a2b9e11aad757c
1,073
py
Python
src/olympia/amo/urls.py
jpetto/olympia
f4e9badac9634657068dfbd4733ab5d17798e3f6
[ "BSD-3-Clause" ]
null
null
null
src/olympia/amo/urls.py
jpetto/olympia
f4e9badac9634657068dfbd4733ab5d17798e3f6
[ "BSD-3-Clause" ]
null
null
null
src/olympia/amo/urls.py
jpetto/olympia
f4e9badac9634657068dfbd4733ab5d17798e3f6
[ "BSD-3-Clause" ]
null
null
null
from waffle.views import wafflejs from django.conf.urls import include, patterns, url from django.views.decorators.cache import never_cache from . import install, views services_patterns = patterns( '', url('^monitor(.json)?$', never_cache(views.monitor), name='amo.monitor'), url('^loaded$', nev...
33.53125
74
0.641193
4aba8007291eab50ccc81943a69e70ca93338e23
439
py
Python
module/execute.py
NORMA-Company/atear-beta
245ec8d1d13aea2d0acfa0481e5814b80b84e333
[ "Apache-2.0" ]
254
2015-10-06T04:26:19.000Z
2022-03-05T00:56:01.000Z
module/execute.py
NORMA-Company/atear-beta
245ec8d1d13aea2d0acfa0481e5814b80b84e333
[ "Apache-2.0" ]
14
2015-09-16T02:59:55.000Z
2021-11-18T14:13:43.000Z
module/execute.py
NORMA-Company/atear-beta
245ec8d1d13aea2d0acfa0481e5814b80b84e333
[ "Apache-2.0" ]
104
2015-09-30T12:46:38.000Z
2022-01-20T23:56:57.000Z
from subprocess import Popen, PIPE def execute(command, wait=True): if wait == True: proc = Popen(command, shell=True, stdout=PIPE, stderr=PIPE) out, err = proc.communicate() retval = proc.returncode else: # wait == False _dn = open('/dev/null','wb') proc = Popen(comman...
25.823529
67
0.583144
4ccd18598d524039f48d3767d7b4b9ef38a0b44a
13,318
py
Python
backend/api/python_http_client/kfp_server_api/configuration.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
null
null
null
backend/api/python_http_client/kfp_server_api/configuration.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
null
null
null
backend/api/python_http_client/kfp_server_api/configuration.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubeflow Pipelines API This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import ...
32.965347
124
0.602343
bf2159b6397b6bd471f00e6631b81cba3d516ee0
1,510
py
Python
src/purei9_unofficial/util.py
natoopotato/purei9_unofficial
db2f764cbb40ee876f1e87d7e9b93a1ea8ed949b
[ "MIT" ]
14
2021-06-30T23:37:55.000Z
2022-03-18T16:21:38.000Z
src/purei9_unofficial/util.py
natoopotato/purei9_unofficial
db2f764cbb40ee876f1e87d7e9b93a1ea8ed949b
[ "MIT" ]
14
2021-04-04T20:49:34.000Z
2022-03-18T16:30:02.000Z
src/purei9_unofficial/util.py
natoopotato/purei9_unofficial
db2f764cbb40ee876f1e87d7e9b93a1ea8ed949b
[ "MIT" ]
3
2021-08-31T07:50:44.000Z
2021-11-13T22:21:45.000Z
import logging import time import requests import requests.auth logger = logging.getLogger(__name__) def do_http(method, url, retries=2, **kwargs): try: logger.debug("HTTP " + method + " " + url) r = requests.request(method, url, timeout=10, **kwargs) # Hide access tokens from lo...
31.458333
110
0.557616
48aa65da4bfa66088fe9ba9fdbb455946bd86bb2
2,846
py
Python
mysite/settings.py
stevenpi/Link.Python.Django.OfficialTutorial
06be10b8ef7d93c4aab7a0ba21abb307aa7d504a
[ "MIT" ]
null
null
null
mysite/settings.py
stevenpi/Link.Python.Django.OfficialTutorial
06be10b8ef7d93c4aab7a0ba21abb307aa7d504a
[ "MIT" ]
null
null
null
mysite/settings.py
stevenpi/Link.Python.Django.OfficialTutorial
06be10b8ef7d93c4aab7a0ba21abb307aa7d504a
[ "MIT" ]
null
null
null
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/ # SECURITY WARNING: keep the...
25.872727
91
0.689037
4a361fbf6ac955c8c5650d4d5f93e532d62e0057
274
py
Python
lib_ddos_simulator/ddos_simulators/__init__.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
1
2020-04-01T22:42:36.000Z
2020-04-01T22:42:36.000Z
lib_ddos_simulator/ddos_simulators/__init__.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
null
null
null
lib_ddos_simulator/ddos_simulators/__init__.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
1
2020-02-16T17:55:46.000Z
2020-02-16T17:55:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """This package runs a DDOS simulation""" __Lisence__ = "BSD" __maintainer__ = "Justin Furuness" __email__ = "jfuruness@gmail.com, agorbenko97@gmail.com" __status__ = "Development" from .ddos_simulator import DDOS_Simulator
22.833333
56
0.737226
a28a4fba7ec624a5471f35cf346f726d71b5e038
2,424
py
Python
src/WebServer/part3/webserver3d.py
rvats/SystemDesign
425e71c02a9f107f84ed019d9f84f97c638026b8
[ "MIT" ]
null
null
null
src/WebServer/part3/webserver3d.py
rvats/SystemDesign
425e71c02a9f107f84ed019d9f84f97c638026b8
[ "MIT" ]
null
null
null
src/WebServer/part3/webserver3d.py
rvats/SystemDesign
425e71c02a9f107f84ed019d9f84f97c638026b8
[ "MIT" ]
null
null
null
########################################################################### # Concurrent server - webserver3d.py # # # # Tested with Python 2.7.9 & Python 3.4 on Ubuntu 14.04 & Mac OS X # # ...
41.084746
75
0.494224
0e9dedabfc85d729510abe7dc08fdbd5240f708d
16,179
py
Python
src/wordpress.py
nunogrl/sceptre-wordpress-example
c8b3e2b2a11c9a6de57f3b0b700de304eddbcad3
[ "Apache-2.0" ]
1
2018-10-16T10:04:51.000Z
2018-10-16T10:04:51.000Z
src/wordpress.py
DalavanCloud/sceptre-wordpress-example
c8b3e2b2a11c9a6de57f3b0b700de304eddbcad3
[ "Apache-2.0" ]
null
null
null
src/wordpress.py
DalavanCloud/sceptre-wordpress-example
c8b3e2b2a11c9a6de57f3b0b700de304eddbcad3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from troposphere import Base64, FindInMap, GetAtt, Join, Output from troposphere import Parameter, Ref, Tags from constants import * import troposphere.ec2 as ec2 import troposphere.route53 as route53 import troposphere.elasticloadbalancing as elb import troposphere.cloudwatch as cloudwatch imp...
38.891827
170
0.507942
3291944c33659339ba70613d8e6fa1861279d57f
1,473
py
Python
twitter_apod.py
GereksizPosta/APODTwitterBot
6c3a77c9a03d4d416cd1f47af30b61bae3ec956c
[ "MIT" ]
null
null
null
twitter_apod.py
GereksizPosta/APODTwitterBot
6c3a77c9a03d4d416cd1f47af30b61bae3ec956c
[ "MIT" ]
null
null
null
twitter_apod.py
GereksizPosta/APODTwitterBot
6c3a77c9a03d4d416cd1f47af30b61bae3ec956c
[ "MIT" ]
null
null
null
from twython import Twython from auth import ( consumer_key, consumer_secret, access_token, access_token_secret ) import urllib.request from bs4 import BeautifulSoup import random from datetime import datetime, date, time from time import sleep, strftime, time twitter = Twython( consumer_key, ...
27.277778
74
0.710794
b1ddc71e8e85db08bcb7f1404abdc87caf90ad4c
3,114
py
Python
huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/list_flavors_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/list_flavors_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/list_flavors_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListFlavorsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
27.078261
79
0.55684
297eae7b9e637fd01afa6e089ccaa393bf8bd9e9
1,031
py
Python
sources/tiff/large_image_source_tiff/girder_source.py
naglepuff/large_image
4e928166f228fe894c38e4b01af5370e72f7229c
[ "Apache-2.0" ]
85
2017-03-10T09:48:17.000Z
2022-03-31T18:55:58.000Z
sources/tiff/large_image_source_tiff/girder_source.py
naglepuff/large_image
4e928166f228fe894c38e4b01af5370e72f7229c
[ "Apache-2.0" ]
248
2017-01-27T16:11:13.000Z
2022-03-31T14:05:18.000Z
sources/tiff/large_image_source_tiff/girder_source.py
naglepuff/large_image
4e928166f228fe894c38e4b01af5370e72f7229c
[ "Apache-2.0" ]
33
2017-03-10T14:06:35.000Z
2022-03-19T08:32:06.000Z
############################################################################## # Copyright Kitware 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/lice...
35.551724
78
0.634336
d7e3a686fa7c4f1747bdd08944f01475987afe21
5,226
py
Python
synapse/python_dependencies.py
rzr/synapse
16026e60c5381abcfea12f55b57f8d0ce474c402
[ "Apache-2.0" ]
null
null
null
synapse/python_dependencies.py
rzr/synapse
16026e60c5381abcfea12f55b57f8d0ce474c402
[ "Apache-2.0" ]
null
null
null
synapse/python_dependencies.py
rzr/synapse
16026e60c5381abcfea12f55b57f8d0ce474c402
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 OpenMarket Ltd # # 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 writin...
34.84
79
0.56946
52eefd4995449d04a3cb61140793a944099d2969
341
py
Python
src/manage.py
mrsbelo/message_scheduler
e4a84967407a107cfd49eefd65f948167f80f583
[ "MIT" ]
null
null
null
src/manage.py
mrsbelo/message_scheduler
e4a84967407a107cfd49eefd65f948167f80f583
[ "MIT" ]
null
null
null
src/manage.py
mrsbelo/message_scheduler
e4a84967407a107cfd49eefd65f948167f80f583
[ "MIT" ]
1
2020-12-18T15:40:47.000Z
2020-12-18T15:40:47.000Z
from flask.cli import FlaskGroup from app import app, session from app.models import BaseModel from app.db import ENGINE cli = FlaskGroup(app) @cli.command("create_db") def create_db(): BaseModel.metadata.drop_all(bind=ENGINE) BaseModel.metadata.create_all(bind=ENGINE) session.commit() if __name__ == "...
18.944444
46
0.741935
b303945858724807f1f3c95b417ed18b8b8779fe
307
py
Python
submissions/arc067/b.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/arc067/b.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/arc067/b.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) n, a, b = map(int, readline().split()) x = list(map(int, readline().split())) ans = 0 for bf, af in zip(x, x[1:]): ans += min((af - bf) * a, b) print(ans)
23.615385
38
0.654723
e820b6a648441bf54e1b9728398498a9791f4f05
3,142
py
Python
tests/parse/test_parse_omim.py
gmc-norr/scout
ea8eaaa079c63e4033af6216ec08da4a314f9b5c
[ "BSD-3-Clause" ]
null
null
null
tests/parse/test_parse_omim.py
gmc-norr/scout
ea8eaaa079c63e4033af6216ec08da4a314f9b5c
[ "BSD-3-Clause" ]
null
null
null
tests/parse/test_parse_omim.py
gmc-norr/scout
ea8eaaa079c63e4033af6216ec08da4a314f9b5c
[ "BSD-3-Clause" ]
null
null
null
from scout.parse.omim import ( get_mim_phenotypes, parse_genemap2, parse_genemap2_phenotypes, parse_mim2gene, parse_mim_titles, parse_omim_line, ) def test_parse_omim_line(): ## GIVEN a header and a line header = ["a", "b", "c"] line = "1\t2\t3" ## WHEN parsing the omim line ...
28.825688
87
0.687142
f8f8a56260b33d160f2eeaa798c19866134d394f
771
py
Python
Sensor_python_code/homework_and_develop/a2_confirm.py
Eric-IoT-2019-summer/QI_D_team
c317c9302ee843223c5d9387db3b3ad67dc78ce2
[ "MIT" ]
1
2021-03-28T15:54:13.000Z
2021-03-28T15:54:13.000Z
Sensor_python_code/homework_and_develop/a2_confirm.py
Eric-IoT-2019-summer/QI_D_team
c317c9302ee843223c5d9387db3b3ad67dc78ce2
[ "MIT" ]
2
2021-03-28T15:49:07.000Z
2021-05-10T03:37:02.000Z
Sensor_python_code/homework_and_develop/a2_confirm.py
Eric-IoT-2019-summer/QI_D_team
c317c9302ee843223c5d9387db3b3ad67dc78ce2
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect("aqi.db") c = conn.cursor() c.execute("SELECT * FROM history") row = c.fetchall() for r in row: print "{0}\n".format(r) #print '\t' #JSON_string = "{0} {1} {2} {3} {4} {5} {6}".format(r[0], r[1], r[2], r[3], r[4], r[5], r[6]) #print (JSON_string) conn....
25.7
143
0.616083
fc6095449879b30991ddcc42734910a79f96988f
5,770
py
Python
lite/tests/unittest_py/op/test_hard_activation_op.py
Danielmic/Paddle-Lite
8bf08425035cfae077754ac72629292fac7bb996
[ "Apache-2.0" ]
808
2018-04-17T17:43:12.000Z
2019-08-18T07:39:13.000Z
lite/tests/unittest_py/op/test_hard_activation_op.py
Danielmic/Paddle-Lite
8bf08425035cfae077754ac72629292fac7bb996
[ "Apache-2.0" ]
728
2018-04-18T08:15:25.000Z
2019-08-16T07:14:43.000Z
lite/tests/unittest_py/op/test_hard_activation_op.py
Danielmic/Paddle-Lite
8bf08425035cfae077754ac72629292fac7bb996
[ "Apache-2.0" ]
364
2018-04-18T17:05:02.000Z
2019-08-18T03:25:38.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.466667
125
0.609879
c898c50e25fcec3bcb94959ca3a3dc932b07d117
2,541
py
Python
da_concept_extractor.py
kent0304/dsbook
0faf21ea54fbce52fa84d13733b622f173a047a9
[ "MIT" ]
34
2020-03-02T05:00:27.000Z
2022-03-17T05:00:26.000Z
da_concept_extractor.py
kent0304/dsbook
0faf21ea54fbce52fa84d13733b622f173a047a9
[ "MIT" ]
35
2020-03-07T04:12:26.000Z
2022-03-31T11:04:03.000Z
da_concept_extractor.py
kent0304/dsbook
0faf21ea54fbce52fa84d13733b622f173a047a9
[ "MIT" ]
22
2020-03-29T00:38:06.000Z
2022-02-14T02:38:26.000Z
import MeCab import json from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.svm import SVC from sklearn.preprocessing import LabelEncoder import dill import sklearn_crfsuite from crf_util import word2features, sent2features, sent2labels import re # 発話文から対話行為タイプとコンセプトを抽出するクラス class DA_C...
31.37037
74
0.502952
fdfb5e7a1da66b82e4c865798a8554535ddf9285
5,394
py
Python
semisup/tools/cifar100.py
jplapp/associative_clustering
4fbda72143b9e9efe3b3eb5b911381679b1716ba
[ "Apache-2.0" ]
11
2018-10-03T22:16:32.000Z
2021-10-20T13:09:23.000Z
semisup/tools/cifar100.py
jplapp/associative_clustering
4fbda72143b9e9efe3b3eb5b911381679b1716ba
[ "Apache-2.0" ]
1
2018-10-11T15:08:18.000Z
2018-10-11T15:08:18.000Z
semisup/tools/cifar100.py
jplapp/associative_clustering
4fbda72143b9e9efe3b3eb5b911381679b1716ba
[ "Apache-2.0" ]
1
2021-11-02T12:00:18.000Z
2021-11-02T12:00:18.000Z
# Copyright 2016 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...
39.955556
112
0.650352
0f1e7f45a10807ec3dc169900161c27e66bc53cd
12,718
py
Python
clustering_tools/euclidean_em.py
IRT-SystemX/Poincare_Embedding
1d047c15deb8b2b236498b0f063ecc347fe6f349
[ "Unlicense" ]
null
null
null
clustering_tools/euclidean_em.py
IRT-SystemX/Poincare_Embedding
1d047c15deb8b2b236498b0f063ecc347fe6f349
[ "Unlicense" ]
null
null
null
clustering_tools/euclidean_em.py
IRT-SystemX/Poincare_Embedding
1d047c15deb8b2b236498b0f063ecc347fe6f349
[ "Unlicense" ]
null
null
null
import math import cmath import torch import numpy as np import tqdm import sklearn.cluster as skc import sklearn.mixture as skm from function_tools import distribution_function as df from function_tools import euclidean_function as ef class GaussianMixtureSKLearn(skm.GaussianMixture): def __init__(self, n_gaussi...
42.535117
249
0.553153
38f0ef6c8155251ea901ce10648ccca9881fbd62
2,405
py
Python
utils/coco_utils.py
seb5666/image_captions
27148935f39441eef71d20a9dc5b4ac3b5283d02
[ "MIT" ]
null
null
null
utils/coco_utils.py
seb5666/image_captions
27148935f39441eef71d20a9dc5b4ac3b5283d02
[ "MIT" ]
null
null
null
utils/coco_utils.py
seb5666/image_captions
27148935f39441eef71d20a9dc5b4ac3b5283d02
[ "MIT" ]
null
null
null
"""Util functions for handling caption data""" import os, json import numpy as np import h5py def load_coco_data(base_dir='/home/ubuntu/COCO/dataset/COCO_captioning/', max_train=None): data = {} # loading train&val captions, and train&val image index caption_file = os.path.join(base_dir...
32.5
116
0.68815
c49c451048af11c27e55d74bec3137b0ffa46795
4,383
py
Python
contrib/seeds/generate-seeds.py
Hallabois/hallacoin
0132696c14a16150ef6aaa96b657ac73888bb51d
[ "MIT" ]
4
2021-05-22T18:03:56.000Z
2022-02-08T20:51:30.000Z
contrib/seeds/generate-seeds.py
Hallabois/hallacoin
0132696c14a16150ef6aaa96b657ac73888bb51d
[ "MIT" ]
2
2021-06-02T15:51:12.000Z
2021-07-13T15:14:45.000Z
contrib/seeds/generate-seeds.py
Hallabois/hallacoin
0132696c14a16150ef6aaa96b657ac73888bb51d
[ "MIT" ]
1
2021-07-07T21:38:49.000Z
2021-07-07T21:38:49.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the dir...
31.307143
99
0.583619
ee507003b082fd026b87d786dded5f1205ae6966
3,264
py
Python
large_cohort/data_utils.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
330
2020-09-14T23:10:16.000Z
2022-03-30T19:49:19.000Z
large_cohort/data_utils.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
52
2020-09-30T06:10:51.000Z
2022-03-31T19:25:16.000Z
large_cohort/data_utils.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
119
2020-09-24T04:54:46.000Z
2022-03-31T21:46:57.000Z
# Copyright 2021, 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...
41.316456
122
0.765012
97f2e17ced158a32932124900e926c4e86d8201f
1,738
py
Python
chrome/test/kasko/kasko_integration_test.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
chrome/test/kasko/kasko_integration_test.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
chrome/test/kasko/kasko_integration_test.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.000Z
#!/usr/bin/env python # Copyright 2015 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. """A Windows-only end-to-end integration test for Kasko, Chrome and Crashpad. This test ensures that the interface between Kasko and C...
29.965517
80
0.748562
0071ded629d4fa96eccbbed7dbe304c7cfa6fe8f
2,620
py
Python
core/tests/test_polypod/test_specs/test_contexts_spec.py
gregmbi/polyaxon
8f24089fa9cb5df28fc7b70aec27d6d23ee81e8d
[ "Apache-2.0" ]
null
null
null
core/tests/test_polypod/test_specs/test_contexts_spec.py
gregmbi/polyaxon
8f24089fa9cb5df28fc7b70aec27d6d23ee81e8d
[ "Apache-2.0" ]
null
null
null
core/tests/test_polypod/test_specs/test_contexts_spec.py
gregmbi/polyaxon
8f24089fa9cb5df28fc7b70aec27d6d23ee81e8d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, 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 ...
34.025974
80
0.64542
081c915a3d4857ca323ee4bbd2b9457dce902fe3
4,327
py
Python
canopy/openapi/models/get_study_download_url_query_result.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
null
null
null
canopy/openapi/models/get_study_download_url_query_result.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
1
2022-01-31T10:18:08.000Z
2022-01-31T10:18:08.000Z
canopy/openapi/models/get_study_download_url_query_result.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
null
null
null
# coding: utf-8 """ Canopy.Api No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from ca...
29.435374
124
0.609429
da2fa09dbd350721a909daba2a10d4a24546fb1c
26,577
py
Python
example/myshop/migrations/i18n_commodity/0001_initial.py
andyzsf/django-shop
42a2463c39fe8e6136e104ee017c77f2222a6746
[ "BSD-3-Clause" ]
1
2019-03-22T15:20:18.000Z
2019-03-22T15:20:18.000Z
example/myshop/migrations/i18n_commodity/0001_initial.py
andyzsf/django-shop
42a2463c39fe8e6136e104ee017c77f2222a6746
[ "BSD-3-Clause" ]
13
2020-06-05T18:37:42.000Z
2022-03-11T23:22:46.000Z
example/myshop/migrations/i18n_commodity/0001_initial.py
andyzsf/django-shop
42a2463c39fe8e6136e104ee017c77f2222a6746
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-28 13:20 from __future__ import unicode_literals import cms.models.fields from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import django_fs...
110.7375
5,814
0.591376
fc229cf3bd3f850e85b9cd7c7280d934501e7c44
25,091
py
Python
tests/admin_views/models.py
sergeykolosov/django
03049fb8d96ccd1f1ed0285486103542de42faba
[ "PSF-2.0", "BSD-3-Clause" ]
12
2018-06-30T15:20:10.000Z
2020-10-20T02:15:00.000Z
tests/admin_views/models.py
sergeykolosov/django
03049fb8d96ccd1f1ed0285486103542de42faba
[ "PSF-2.0", "BSD-3-Clause" ]
1
2018-01-08T08:13:33.000Z
2018-01-08T08:13:33.000Z
tests/admin_views/models.py
sergeykolosov/django
03049fb8d96ccd1f1ed0285486103542de42faba
[ "PSF-2.0", "BSD-3-Clause" ]
5
2018-07-17T05:41:04.000Z
2020-07-31T12:30:46.000Z
import datetime import os import tempfile import uuid from django.contrib.auth.models import User from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, ) from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ValidationError from django.core.fil...
25.76078
110
0.699135
8026fea7bae4741b8f34c1cbadd7de2de3c00549
733
py
Python
setup.py
luxunator/menupy
83094b3d8dd30dcde4927399121e901346cfee3c
[ "MIT" ]
16
2019-04-30T23:36:01.000Z
2021-03-12T11:23:35.000Z
setup.py
luxunator/menupy
83094b3d8dd30dcde4927399121e901346cfee3c
[ "MIT" ]
2
2019-05-13T20:51:54.000Z
2019-05-17T04:53:18.000Z
setup.py
luxunator/menupy
83094b3d8dd30dcde4927399121e901346cfee3c
[ "MIT" ]
1
2019-05-13T21:14:45.000Z
2019-05-13T21:14:45.000Z
import setuptools with open("README.md", "r") as f: long_description = f.read() setuptools.setup( name="menupy", version="1.0.2", author="luxunator", author_email="luxunator@pm.me", url="https://github.com/luxunator/menupy", description="Interactive Python Menu", packages=['menupy'], ...
28.192308
54
0.641201
eb61feac2fc8aa03cffd587e385db5a0466afb57
8,166
py
Python
sso/verification/tests/test_view.py
uktrade/sso
f4fb527cfe12955c079251031261f2407956bad3
[ "MIT" ]
null
null
null
sso/verification/tests/test_view.py
uktrade/sso
f4fb527cfe12955c079251031261f2407956bad3
[ "MIT" ]
null
null
null
sso/verification/tests/test_view.py
uktrade/sso
f4fb527cfe12955c079251031261f2407956bad3
[ "MIT" ]
null
null
null
from datetime import date, datetime, timedelta import dateutil.parser import pytest from allauth.account.models import EmailAddress from django.core.cache import cache from django.urls import reverse from django.utils.encoding import force_bytes from django.utils.http import urlsafe_base64_encode from django.utils.tim...
28.256055
108
0.679035
c80d59ef061c8986c4c2aabe1b4e816f84d74850
1,679
py
Python
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/common/types/value.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/common/types/value.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/common/types/value.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...
23.319444
74
0.605122
974073117af14a224c8f5b7fbd41f265a20b2003
5,575
py
Python
free_subnets.py
NixM0nk3y/net.subnet.ipv4.analyzer
a8b23b3261392f76e423cb4fbcebd3338969e842
[ "Apache-2.0" ]
null
null
null
free_subnets.py
NixM0nk3y/net.subnet.ipv4.analyzer
a8b23b3261392f76e423cb4fbcebd3338969e842
[ "Apache-2.0" ]
null
null
null
free_subnets.py
NixM0nk3y/net.subnet.ipv4.analyzer
a8b23b3261392f76e423cb4fbcebd3338969e842
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 __description__ = 'ipv4 network address analyzer. prints all unassigned ip blocks' __author__ = 'Paul Komurka pawlex@gmail.com' __version__ = '0.1' __date__ = '2017/09/27' import ipaddress import itertools import operator import bisect _subnets_config="subnets.txt" ## list of all the define...
28.156566
99
0.618655
2ea4508eda8b273ac6156a32d7e221f5685b57f1
608
py
Python
my_env/Lib/site-packages/sklearn/ensemble/weight_boosting.py
obulrdy6881/Drowsinss
61cb9281d7dd22aee282b517e2fbf500f0ff9935
[ "MIT" ]
2
2021-05-02T07:59:56.000Z
2021-12-14T19:53:13.000Z
Web application/env/Lib/site-packages/sklearn/ensemble/weight_boosting.py
arpit0891/Covid-19-and-Pneumonia-detection-from-X-Ray
6b2756e4672ab25083a0a50f44f36bec1833e789
[ "MIT" ]
7
2021-06-08T21:46:24.000Z
2022-03-12T00:35:31.000Z
my_env/Lib/site-packages/sklearn/ensemble/weight_boosting.py
obulrdy6881/Drowsinss
61cb9281d7dd22aee282b517e2fbf500f0ff9935
[ "MIT" ]
1
2021-05-02T07:59:59.000Z
2021-05-02T07:59:59.000Z
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py import sys # mypy error: Module X has no attribute y (typically for C extensions) from . import _weight_boosting # type: ignore from ..externals._pep562 import Pep562 from ..utils.deprecation import _raise_dep_warning_if_not_pytest deprecated_p...
32
71
0.782895
b7b2946703341c0763810d636c9aeb6d8c3771cc
1,632
py
Python
ff/ff_api_translator.py
gillespiejim78/ffl-webapp
942edc46efaacc85a33092ffb1511eda021caaab
[ "Apache-2.0" ]
null
null
null
ff/ff_api_translator.py
gillespiejim78/ffl-webapp
942edc46efaacc85a33092ffb1511eda021caaab
[ "Apache-2.0" ]
null
null
null
ff/ff_api_translator.py
gillespiejim78/ffl-webapp
942edc46efaacc85a33092ffb1511eda021caaab
[ "Apache-2.0" ]
null
null
null
import ff.ff_api as ff_api import json def get_teams(): teams = ff_api.fetch_teams() dict_list = [None] * len(teams) for team in teams: team_info = {} team_info['teamName'] = team['teamLocation'] + ' ' + team['teamNickname'] team_info['teamId'] = team['teamId'] team_info['r...
32.64
119
0.598652
ce9b1c885a8c65fa785030723ec87ed8e7886fc1
7,814
py
Python
docs/conf.py
ShipJ/TargetingModel
34358e6a74a1ae922b45cf609ee3a2bbcf385adb
[ "MIT" ]
null
null
null
docs/conf.py
ShipJ/TargetingModel
34358e6a74a1ae922b45cf609ee3a2bbcf385adb
[ "MIT" ]
null
null
null
docs/conf.py
ShipJ/TargetingModel
34358e6a74a1ae922b45cf609ee3a2bbcf385adb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # ChinaDelegates documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values...
31.893878
80
0.7086
ff972ec5a8d459c1d77caba49ea09d467fb2ad37
1,108
py
Python
hy/inspect.py
josephwillard/hy
a91d7dd3f5045cd92384901f6c5e1ecc1aed962a
[ "MIT" ]
null
null
null
hy/inspect.py
josephwillard/hy
a91d7dd3f5045cd92384901f6c5e1ecc1aed962a
[ "MIT" ]
1
2017-06-15T02:11:48.000Z
2017-06-15T16:03:47.000Z
hy/inspect.py
josephwillard/hy
a91d7dd3f5045cd92384901f6c5e1ecc1aed962a
[ "MIT" ]
null
null
null
# Copyright 2018 the authors. # This file is part of Hy, which is free software licensed under the Expat # license. See the LICENSE. from __future__ import absolute_import import inspect try: # Check if we have the newer inspect.signature available. # Otherwise fallback to the legacy getargspec. inspect....
29.157895
74
0.676895
9d20f9d7b8c473a5718771bccb8a541d823958b4
1,973
py
Python
datasetsnx/bamboo/tag.py
ckxy/part-of-hitogata
76402d48a336fcd964d0e64bb01d959e8f07f296
[ "MIT" ]
null
null
null
datasetsnx/bamboo/tag.py
ckxy/part-of-hitogata
76402d48a336fcd964d0e64bb01d959e8f07f296
[ "MIT" ]
null
null
null
datasetsnx/bamboo/tag.py
ckxy/part-of-hitogata
76402d48a336fcd964d0e64bb01d959e8f07f296
[ "MIT" ]
null
null
null
import copy from collections import Iterable from .base_internode import BaseInternode __all__ = ['EraseTags', 'RenameTag', 'CopyTag'] class EraseTags(BaseInternode): def __init__(self, tags): if isinstance(tags, str): self.tags = [tags] else: if isinstance(tags, Iterable...
28.594203
89
0.635073
c9636b18237628fff88565b91780a3c335d1b2e9
14,177
py
Python
.history/src/Simulador_20200711121915.py
eduardodut/Trabalho_final_estatistica_cd
fbedbbea6bdd7a79e1d62030cde0fab4e93fc338
[ "MIT" ]
null
null
null
.history/src/Simulador_20200711121915.py
eduardodut/Trabalho_final_estatistica_cd
fbedbbea6bdd7a79e1d62030cde0fab4e93fc338
[ "MIT" ]
null
null
null
.history/src/Simulador_20200711121915.py
eduardodut/Trabalho_final_estatistica_cd
fbedbbea6bdd7a79e1d62030cde0fab4e93fc338
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from Matriz_esferica import Matriz_esferica from Individuo import Individuo, Fabrica_individuo import random from itertools import permutations import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap from scipy.sparse import csr_matrix, lil_matrix class S...
41.820059
179
0.644283
5a9dfb1e378c67144d1b42ab5f533304a3a4a514
1,984
py
Python
nsot/validators.py
jathanism/nsot
9369c86189a64c682e28fd5663762e4d3205b058
[ "Apache-2.0" ]
1
2015-11-26T07:36:12.000Z
2015-11-26T07:36:12.000Z
nsot/validators.py
jathanism/nsot
9369c86189a64c682e28fd5663762e4d3205b058
[ "Apache-2.0" ]
null
null
null
nsot/validators.py
jathanism/nsot
9369c86189a64c682e28fd5663762e4d3205b058
[ "Apache-2.0" ]
null
null
null
""" Validators for validating object fields. """ from __future__ import absolute_import from django.conf import settings from django.core.validators import EmailValidator import ipaddress import netaddr import six from . import exc def validate_mac_address(value): """Validate whether ``value`` is a valid MAC ad...
26.453333
74
0.644657
52570956dd262003f0acd8be162bf95736e75104
28,202
py
Python
build/gen.py
frida/gn
75194c124f158d7fabdc94048f1a3f850a5f0701
[ "BSD-3-Clause" ]
null
null
null
build/gen.py
frida/gn
75194c124f158d7fabdc94048f1a3f850a5f0701
[ "BSD-3-Clause" ]
1
2021-03-20T21:31:46.000Z
2021-03-20T21:41:04.000Z
build/gen.py
frida/gn
75194c124f158d7fabdc94048f1a3f850a5f0701
[ "BSD-3-Clause" ]
2
2020-01-21T05:07:30.000Z
2022-03-11T16:20:16.000Z
#!/usr/bin/env python # Copyright 2014 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. """Generates build.ninja that will build GN.""" import contextlib import errno import optparse import os import platform import re imp...
34.903465
125
0.601553
c40b1628442c808f732ee5fe88066dd31f9bb0f4
13,501
py
Python
duviz.py
hugovk/duviz
fc3af406ce697243781606c36df3743490733104
[ "MIT" ]
null
null
null
duviz.py
hugovk/duviz
fc3af406ce697243781606c36df3743490733104
[ "MIT" ]
null
null
null
duviz.py
hugovk/duviz
fc3af406ce697243781606c36df3743490733104
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ Command line tool for visualization of the disk space usage of a directory and its subdirectories. Copyright: 2009-2019 Stefaan Lippens License: MIT Website: http://soxofaan.github.io/duviz/ """ import os import re import subprocess import sys import time import unicodedata ...
32.221957
119
0.606177
f954b5ef634a42e17d642cab87ede69a665f860b
1,420
py
Python
garnet/lib/magma/scripts/diff_json.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
10
2020-12-28T17:04:44.000Z
2022-03-12T03:20:43.000Z
garnet/lib/magma/scripts/diff_json.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2022-01-14T23:38:40.000Z
2022-01-14T23:38:40.000Z
garnet/lib/magma/scripts/diff_json.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
4
2020-12-28T17:04:45.000Z
2022-03-12T03:20:44.000Z
#!/usr/bin/env python2.7 # Copyright 2019 The Fuchsia 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 difflib import json import sys def usage(): print 'Usage:' print ' diff_json.py FILE1 FILE2 OUTPUT' print ' Generates...
31.555556
98
0.624648
2e467c96550c26314a8eea94f08741a884138210
7,465
py
Python
desktop/libs/indexer/src/indexer/indexers/envelope.py
HSunboy/hue
caccd8c058eabb8f5899006a6566be46e3af871b
[ "Apache-2.0" ]
null
null
null
desktop/libs/indexer/src/indexer/indexers/envelope.py
HSunboy/hue
caccd8c058eabb8f5899006a6566be46e3af871b
[ "Apache-2.0" ]
null
null
null
desktop/libs/indexer/src/indexer/indexers/envelope.py
HSunboy/hue
caccd8c058eabb8f5899006a6566be46e3af871b
[ "Apache-2.0" ]
1
2020-07-25T12:44:18.000Z
2020-07-25T12:44:18.000Z
# Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file ex...
30.469388
116
0.590221
f36f5eda4666df238112342db5a90b46131d5840
166
py
Python
tests/model_control/detailed/transf_Difference/model_control_one_enabled_Difference_PolyTrend_Seasonal_DayOfWeek_AR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/model_control/detailed/transf_Difference/model_control_one_enabled_Difference_PolyTrend_Seasonal_DayOfWeek_AR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/model_control/detailed/transf_Difference/model_control_one_enabled_Difference_PolyTrend_Seasonal_DayOfWeek_AR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Difference'] , ['PolyTrend'] , ['Seasonal_DayOfWeek'] , ['AR'] );
41.5
88
0.759036
b8d99adcfabad3dced8a2c9fafe6d3b3fb001e4f
7,008
py
Python
sewer/dns_providers/cloudflare.py
g-rich/sewer
ef1af91183bea65d6ebb3a39089249e7c4054b0a
[ "MIT" ]
null
null
null
sewer/dns_providers/cloudflare.py
g-rich/sewer
ef1af91183bea65d6ebb3a39089249e7c4054b0a
[ "MIT" ]
null
null
null
sewer/dns_providers/cloudflare.py
g-rich/sewer
ef1af91183bea65d6ebb3a39089249e7c4054b0a
[ "MIT" ]
null
null
null
import urllib.parse import requests import tldextract from . import common class CloudFlareDns(common.BaseDns): """ """ dns_provider_name = "cloudflare" def __init__( self, CLOUDFLARE_EMAIL, CLOUDFLARE_API_KEY, CLOUDFLARE_API_BASE_URL="https://api.cloudflare.com/cl...
41.714286
131
0.614155