hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
793f577ac11bbbc7e376229ad4cc942f0f7a2e50
1,866
py
Python
hypebot/data/league/client_vars.py
jellzilla/hypebot
d85158cf5d966d24c3c2ca5789530864c9fe2662
[ "Apache-2.0" ]
17
2018-04-06T18:15:38.000Z
2021-05-20T13:44:15.000Z
hypebot/data/league/client_vars.py
jellzilla/hypebot
d85158cf5d966d24c3c2ca5789530864c9fe2662
[ "Apache-2.0" ]
8
2018-04-06T16:04:50.000Z
2022-01-06T02:54:38.000Z
hypebot/data/league/client_vars.py
jellzilla/hypebot
d85158cf5d966d24c3c2ca5789530864c9fe2662
[ "Apache-2.0" ]
8
2018-04-06T00:28:37.000Z
2021-10-15T11:29:44.000Z
# coding=utf-8 # Copyright 2018 The Hypebot 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 requir...
32.736842
80
0.611468
793f57bf6fc445f89665b60c9f14cb65b839ed5c
8,327
py
Python
mypy_boto3_builder/parsers/docstring_parser/type_value.py
ahonnecke/mypy_boto3_builder
38b002d62ceae5488a6d963aadec9157d3c807da
[ "MIT" ]
null
null
null
mypy_boto3_builder/parsers/docstring_parser/type_value.py
ahonnecke/mypy_boto3_builder
38b002d62ceae5488a6d963aadec9157d3c807da
[ "MIT" ]
null
null
null
mypy_boto3_builder/parsers/docstring_parser/type_value.py
ahonnecke/mypy_boto3_builder
38b002d62ceae5488a6d963aadec9157d3c807da
[ "MIT" ]
null
null
null
""" Structure for parsed as dict request or response syntax values. """ from typing import Any, Dict, List, Optional from mypy_boto3_builder.import_helpers.import_string import ImportString from mypy_boto3_builder.logger import get_logger from mypy_boto3_builder.service_name import ServiceName from mypy_boto3_builder....
34.987395
97
0.630839
793f58be9da27b680ff8fd87f827a7e47f61d389
5,181
py
Python
ctpbee/json/pollen.py
yutiansut/ctpbee
02ceb3d4456a54b1b4f8066a2662c4b8fac1027f
[ "MIT" ]
null
null
null
ctpbee/json/pollen.py
yutiansut/ctpbee
02ceb3d4456a54b1b4f8066a2662c4b8fac1027f
[ "MIT" ]
null
null
null
ctpbee/json/pollen.py
yutiansut/ctpbee
02ceb3d4456a54b1b4f8066a2662c4b8fac1027f
[ "MIT" ]
3
2019-11-21T03:38:14.000Z
2022-02-14T08:09:11.000Z
import json from collections import defaultdict class ProxyPollen(object): """ +-------------------+---------------+--------------------+ | Python | JSON |Pollen(Can change | +===================+===============+====================+ | dict | object |cls:D...
33.425806
99
0.47597
793f5a0c237e6621305c613c3fe49be6382c6e0a
4,170
py
Python
ansible/modules/windows/win_command.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
ansible/modules/windows/win_command.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ansible/modules/windows/win_command.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016, Ansible, inc # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your o...
33.36
153
0.694724
793f5a42d0e99ced330446a62cb47cb9233fa4e8
203
py
Python
couscous/__main__.py
sthagen/improved-couscous
797807f5c4a834f60c8a7d61b7477df46cd775aa
[ "MIT" ]
1
2021-03-07T11:08:57.000Z
2021-03-07T11:08:57.000Z
couscous/__main__.py
sthagen/improved-couscous
797807f5c4a834f60c8a7d61b7477df46cd775aa
[ "MIT" ]
25
2021-03-02T21:14:54.000Z
2021-03-02T22:00:30.000Z
couscous/__main__.py
sthagen/improved-couscous
797807f5c4a834f60c8a7d61b7477df46cd775aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=expression-not-assigned,line-too-long import sys from couscous.cli import main if __name__ == "__main__": sys.exit(main(sys.argv[1:])) # pragma: no cover
22.555556
55
0.684729
793f5dddd22364d937f649667f226d2f0741584b
2,655
py
Python
Commands/Log.py
Heufneutje/PyMoronBot
055abf0e685f3d2fc02863517952dc7fad9050f3
[ "MIT" ]
null
null
null
Commands/Log.py
Heufneutje/PyMoronBot
055abf0e685f3d2fc02863517952dc7fad9050f3
[ "MIT" ]
null
null
null
Commands/Log.py
Heufneutje/PyMoronBot
055abf0e685f3d2fc02863517952dc7fad9050f3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on May 11, 2014 @author: Tyranic-Moron """ import datetime import codecs import os from moronbot import cmdArgs from IRCMessage import IRCMessage from IRCResponse import IRCResponse, ResponseType from CommandInterface import CommandInterface import GlobalVars logFuncs = { 'P...
35.4
133
0.610546
793f5ee56f7cde94fdcef03ecde62c6dc2ac36c7
755
py
Python
test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/_auto_rest_complex_test_service_enums.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/_auto_rest_complex_test_service_enums.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/_auto_rest_complex_test_service_enums.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
22.878788
76
0.54702
793f5f4d80b6062d18b2c3630e41d33e2a9a5abf
8,039
py
Python
cogs/general/meta.py
Mystic-Alchemy/Vale.py
b4cc964d34672444c65e2801a15f37d774c5e6e3
[ "MIT" ]
1
2018-10-13T17:58:58.000Z
2018-10-13T17:58:58.000Z
cogs/general/meta.py
Mystic-Alchemy/Vale.py
b4cc964d34672444c65e2801a15f37d774c5e6e3
[ "MIT" ]
null
null
null
cogs/general/meta.py
Mystic-Alchemy/Vale.py
b4cc964d34672444c65e2801a15f37d774c5e6e3
[ "MIT" ]
null
null
null
import inspect import os import platform import re import discord import psutil from discord.ext import commands from utils.colors import random_color from utils.converter import BotCommand from utils.paginator import Paginator # Thanks, Milky VERSION_HEADER_PATTERN = re.compile(r'^## (\d+\.\d+\.\d+) - (\d{4}-\d{2}...
33.495833
134
0.582286
793f6099d8f51f4388d61ad66f58ee21180eb185
545
py
Python
venv/lib/python3.6/site-packages/xero_python/payrollau/models/deduction_type_calculation_type.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/xero_python/payrollau/models/deduction_type_calculation_type.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/xero_python/payrollau/models/deduction_type_calculation_type.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero Payroll AU This is the Xero Payroll API for orgs in Australia region. # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from enum import Enum class DeductionTypeCalculationType(Enum): """NOTE: This class is a...
18.166667
76
0.67156
793f60e8206d42961b695a224825f440d0855852
3,154
py
Python
grp_modules/util/log/base/util.py
JGU-VC/activation-pattern-analysis
14da42ad541ee4faf35d360a6e871fd44decd33d
[ "MIT" ]
null
null
null
grp_modules/util/log/base/util.py
JGU-VC/activation-pattern-analysis
14da42ad541ee4faf35d360a6e871fd44decd33d
[ "MIT" ]
null
null
null
grp_modules/util/log/base/util.py
JGU-VC/activation-pattern-analysis
14da42ad541ee4faf35d360a6e871fd44decd33d
[ "MIT" ]
null
null
null
import datetime from os.path import basename from html import escape import git from colored import fg, attr def datestr_sort(): return datetime.datetime.now().strftime('%y%m%d-%H%M%S') def datestr(): return datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') def get_git_revisions(): # check repo f...
39.425
251
0.58941
793f619a7e8698942f2ce687ceec9b46d4464fe6
22,609
py
Python
openbot.py
n0tpetya/discordbot
dfbcc50b5c37fb2acaefe566bd93fc9980e214dc
[ "CC0-1.0" ]
null
null
null
openbot.py
n0tpetya/discordbot
dfbcc50b5c37fb2acaefe566bd93fc9980e214dc
[ "CC0-1.0" ]
1
2021-02-21T13:10:23.000Z
2021-02-21T13:10:23.000Z
openbot.py
n0tpetya/discordbot
dfbcc50b5c37fb2acaefe566bd93fc9980e214dc
[ "CC0-1.0" ]
1
2021-06-03T13:49:22.000Z
2021-06-03T13:49:22.000Z
import asyncio import random import discord from discord import Member, Guild, User from discord import Profile from datetime import datetime client = discord.Client(intents=discord.Intents.all()) antworten = ['Ja', 'Nein', 'Wahrscheinlich', 'Unwahrscheinlich', 'Vielleicht', 'Sehr wahrscheinlich', ...
53.07277
229
0.551196
793f63c0920df0d21bc494c2459c68d0f82d1bb4
1,101
py
Python
tests/test_read_and_write_state.py
Sage-Bionetworks/SynapseBucketMover
9f9607e6646543832a1d708dd5747dc58a2ead97
[ "Apache-2.0" ]
1
2018-09-19T18:05:25.000Z
2018-09-19T18:05:25.000Z
tests/test_read_and_write_state.py
Sage-Bionetworks/SynapseBucketMover
9f9607e6646543832a1d708dd5747dc58a2ead97
[ "Apache-2.0" ]
1
2018-10-08T16:48:31.000Z
2018-10-08T17:12:16.000Z
tests/test_read_and_write_state.py
Sage-Bionetworks/SynapseBucketMover
9f9607e6646543832a1d708dd5747dc58a2ead97
[ "Apache-2.0" ]
1
2018-10-08T15:47:23.000Z
2018-10-08T15:47:23.000Z
''' Created on Aug 30, 2018 @author: bhoff ''' import unittest import tempfile import os import SynapseBucketMover from nose.tools import assert_raises, assert_equal, assert_is_none, assert_is_not_none, assert_in, assert_false, assert_true class Test(unittest.TestCase): def setUp(self): self.dir = tempf...
29.756757
124
0.688465
793f64242c01581e4b4912c34c42f3bb4d6bd7dd
4,011
py
Python
tests/test_bme280.py
Naohiro2g/bme280
ce3ff06e73965a14060f456a1cd6ede440bd7a22
[ "MIT" ]
null
null
null
tests/test_bme280.py
Naohiro2g/bme280
ce3ff06e73965a14060f456a1cd6ede440bd7a22
[ "MIT" ]
null
null
null
tests/test_bme280.py
Naohiro2g/bme280
ce3ff06e73965a14060f456a1cd6ede440bd7a22
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018 Richard Hull # See LICENSE.rst for details. try: from unittest.mock import Mock, MagicMock except ImportError: from mock import Mock, MagicMock # noqa: F401 import bme280 smbus = Mock(unsafe=True) def setup_function(function): smbus.reset_mock() def test...
32.088
188
0.697831
793f648338972a3a26c70954d344778edb5ec78a
1,961
py
Python
src/bot/main.py
MycroftKang/mulgyeol-mkbot
77bcfc5c93e02dbc983d2e6a137ddf835d450c29
[ "MIT" ]
null
null
null
src/bot/main.py
MycroftKang/mulgyeol-mkbot
77bcfc5c93e02dbc983d2e6a137ddf835d450c29
[ "MIT" ]
null
null
null
src/bot/main.py
MycroftKang/mulgyeol-mkbot
77bcfc5c93e02dbc983d2e6a137ddf835d450c29
[ "MIT" ]
null
null
null
import asyncio import logging import sys from discord_host import create_bot sys.path.append("..\\lib") import msvcrt import os import traceback from mgylabs.db.database import run_migrations from mgylabs.db.paths import DB_URL, SCRIPT_DIR from mgylabs.services.telemetry_service import TelemetryReporter from mgylabs...
22.033708
79
0.643039
793f648ec29ee752316e0fd3aa1702566bec1c78
13,756
py
Python
soft_sort/sinkhorn.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
soft_sort/sinkhorn.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
soft_sort/sinkhorn.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
38.640449
80
0.659858
793f658a971badf281adaa1a799ebc15d9327324
9,395
py
Python
ebirdtaiwan/dash_apps/TaipeiCompetition.py
even311379/EbirdTaiwan2020
2c1aa4d7346b5ade909d45f7c245fa4988394124
[ "MIT" ]
null
null
null
ebirdtaiwan/dash_apps/TaipeiCompetition.py
even311379/EbirdTaiwan2020
2c1aa4d7346b5ade909d45f7c245fa4988394124
[ "MIT" ]
null
null
null
ebirdtaiwan/dash_apps/TaipeiCompetition.py
even311379/EbirdTaiwan2020
2c1aa4d7346b5ade909d45f7c245fa4988394124
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output, State from django_plotly_dash import DjangoDash import dash_bootstrap_components as dbc import plotly.graph_objs as go import random import json import pandas as pd import numpy as np import ...
39.64135
149
0.589143
793f65a7de5440917b3f9e1d1480c8aebb966844
1,091
py
Python
supervisor/resolution/validate.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
1
2021-09-22T00:15:17.000Z
2021-09-22T00:15:17.000Z
supervisor/resolution/validate.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
100
2021-07-22T06:14:22.000Z
2022-03-31T06:16:16.000Z
supervisor/resolution/validate.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
2
2021-09-22T00:13:58.000Z
2021-09-22T15:06:27.000Z
"""Validate resolution configuration schema.""" from pathlib import Path from typing import List import voluptuous as vol from ..const import ATTR_CHECKS, ATTR_ENABLED def get_valid_modules(folder) -> List[str]: """Validate check name.""" module_files = Path(__file__).parent.joinpath(folder) if not modu...
23.717391
81
0.664528
793f66281a5b6b93bd58388bd8810165bff33d87
575
py
Python
regexlib/2021-5-15/python_re2_test_file/regexlib_8347.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
1
2022-01-24T14:43:23.000Z
2022-01-24T14:43:23.000Z
regexlib/2021-5-15/python_re2_test_file/regexlib_8347.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
regexlib/2021-5-15/python_re2_test_file/regexlib_8347.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
# 8347 # (?i)(?s)<a[^>]+?href="?(?<url>[^"]+)"?>(?<innerHtml>.+?)</a\s*> # POLYNOMIAL # nums:5 # POLYNOMIAL AttackString:""+"is<a"*5000+"@1 _SLQ_2" import re2 as re from time import perf_counter regex = """(?i)(?s)<a[^>]+?href="?(?<url>[^"]+)"?>(?<innerHtml>.+?)</a\s*>""" REGEX = re.compile(regex) for i in range(0, 1...
30.263158
77
0.556522
793f66d0f2bbc6ea08da45e55aaf36870e67a256
1,185
py
Python
otcextensions/sdk/dws/v1/flavor.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/dws/v1/flavor.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/dws/v1/flavor.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "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 t...
31.184211
75
0.709705
793f66dce80ceff06f76e9cda0246ed1d93b4b27
9,385
py
Python
pyTD/market/__init__.py
kevmartian/pyTD
ea8f374a0c9eddf5a46233f5946e68a67c181009
[ "MIT" ]
16
2018-10-25T06:03:56.000Z
2021-06-14T03:53:01.000Z
pyTD/market/__init__.py
td-ameritrade/pyTD
28099664c8a3b6b7e60f62f5e5c120f01e3530af
[ "MIT" ]
5
2018-11-11T19:34:25.000Z
2021-01-16T03:39:45.000Z
pyTD/market/__init__.py
td-ameritrade/pyTD
28099664c8a3b6b7e60f62f5e5c120f01e3530af
[ "MIT" ]
14
2019-03-12T04:16:40.000Z
2021-04-15T20:26:04.000Z
# MIT License # Copyright (c) 2018 Addison Lynch # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, ...
40.627706
79
0.677571
793f66e0db6132f4f891ae834a6bd6e9ceec3e59
1,666
py
Python
sample.py
Doctorado-ML/mufs
a0f172ac13870043494050ad988a279369043e1b
[ "MIT" ]
3
2021-11-25T12:29:28.000Z
2022-03-09T21:50:09.000Z
sample.py
Doctorado-ML/mfs
a0f172ac13870043494050ad988a279369043e1b
[ "MIT" ]
2
2021-10-05T09:25:12.000Z
2022-03-10T11:50:58.000Z
sample.py
Doctorado-ML/mufs
a0f172ac13870043494050ad988a279369043e1b
[ "MIT" ]
null
null
null
import warnings import time from mufs import MUFS from mufs.Metrics import Metrics from stree import Stree import numpy as np from scipy.io import arff mufsc = MUFS(discrete=False) filename = "conn-bench-sonar-mines-rocks.arff" data, meta = arff.loadarff(filename) train = np.array([data[i] for i in meta]) X = train.T...
31.433962
71
0.685474
793f6750e1d8e7a8b07b706c585b75014363c484
2,144
py
Python
testing/test_run_facpro.py
hmedal/speu2
7b4a4507e098154161f072465507aa425f56d2b9
[ "MIT" ]
null
null
null
testing/test_run_facpro.py
hmedal/speu2
7b4a4507e098154161f072465507aa425f56d2b9
[ "MIT" ]
null
null
null
testing/test_run_facpro.py
hmedal/speu2
7b4a4507e098154161f072465507aa425f56d2b9
[ "MIT" ]
null
null
null
import argparse import os from examples.facility_protection.params import generate_probs_and_scens_files from modeling import speu import json import unittest class Test_FacPro(unittest.TestCase): def test_run_deterministic_equivalent(self): os.chdir('../examples/facility_protection') print "cwd",...
51.047619
121
0.657649
793f68fcc9d3b832358b91523c2780e370f8683a
19,034
py
Python
zappa/utilities.py
wangsha/Zappa
cfd311b084b38ca8c51f4381f1c96e23f0add307
[ "MIT" ]
null
null
null
zappa/utilities.py
wangsha/Zappa
cfd311b084b38ca8c51f4381f1c96e23f0add307
[ "MIT" ]
null
null
null
zappa/utilities.py
wangsha/Zappa
cfd311b084b38ca8c51f4381f1c96e23f0add307
[ "MIT" ]
null
null
null
import botocore import calendar import datetime import durationpy import fnmatch import io import json import logging import os import re import shutil import stat import sys from past.builtins import basestring from urllib.parse import urlparse LOG = logging.getLogger(__name__) ## # Settings / Packaging ## def co...
32.481229
143
0.599611
793f6926ab932618a83e95c40989d4b314413217
528
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/musix-32595
cdc9560eb55a71d6b2d8291892fe478b63b30c80
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/musix-32595
cdc9560eb55a71d6b2d8291892fe478b63b30c80
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/musix-32595
cdc9560eb55a71d6b2d8291892fe478b63b30c80
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "musix-32595.botics.co" site_params = { "name": "Musix", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_create(defau...
20.307692
61
0.651515
793f6a082529dac1d28f051a27b8b492d78f2bbc
1,983
py
Python
tests/zoomus/components/test_base.py
dolohow/zoomus
8498a26af48c2f09957464848d2e8fbf0a034d08
[ "Apache-2.0" ]
178
2020-04-13T17:12:13.000Z
2022-03-30T05:55:30.000Z
tests/zoomus/components/test_base.py
dolohow/zoomus
8498a26af48c2f09957464848d2e8fbf0a034d08
[ "Apache-2.0" ]
167
2020-04-14T07:37:03.000Z
2022-03-29T02:13:43.000Z
tests/zoomus/components/test_base.py
dolohow/zoomus
8498a26af48c2f09957464848d2e8fbf0a034d08
[ "Apache-2.0" ]
90
2020-04-14T09:24:19.000Z
2022-03-24T18:33:48.000Z
import unittest from zoomus import components, util import responses def suite(): """Define all the tests of the module.""" suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(BaseComponentTestCase)) return suite class BaseComponentTestCase(unittest.TestCase): @responses.activate ...
29.597015
83
0.568835
793f6dc2bd40a24722fa5575d45f50f23bf233c7
8,628
py
Python
django/core/serializers/__init__.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
61,676
2015-01-01T00:05:13.000Z
2022-03-31T20:37:54.000Z
django/core/serializers/__init__.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
8,884
2015-01-01T00:12:05.000Z
2022-03-31T19:53:11.000Z
django/core/serializers/__init__.py
mustafa0x/django
d7394cfa13a4d1a02356e3a83e10ec100fbb9948
[ "BSD-3-Clause", "0BSD" ]
33,143
2015-01-01T02:04:52.000Z
2022-03-31T19:42:46.000Z
""" Interfaces for serializing Django objects. Usage:: from django.core import serializers json = serializers.serialize("json", some_queryset) objects = list(serializers.deserialize("json", json)) To add your own serializers, use the SERIALIZATION_MODULES setting:: SERIALIZATION_MODULES = { ...
35.073171
92
0.657279
793f6f6ef7d0f017038221bb09f6f5e9b134b970
5,815
py
Python
Metrics/tse_plots.py
Ginfung/FSSE
c54510b78dfceec76c74893e8514ed5177b504e5
[ "MIT" ]
3
2018-08-07T13:54:57.000Z
2020-02-24T11:46:05.000Z
Metrics/tse_plots.py
Ginfung/FSSE
c54510b78dfceec76c74893e8514ed5177b504e5
[ "MIT" ]
1
2019-01-15T23:22:19.000Z
2019-01-15T23:22:19.000Z
Metrics/tse_plots.py
Ginfung/FSSE
c54510b78dfceec76c74893e8514ed5177b504e5
[ "MIT" ]
1
2019-01-09T15:50:47.000Z
2019-01-09T15:50:47.000Z
from __future__ import division import matplotlib.pyplot as plt from matplotlib.ticker import ScalarFormatter import pickle from scipy.stats import ttest_ind from numpy import median import scipy import numpy import debug class FixedOrderFormatter(ScalarFormatter): """Formats axis ticks using scientific notation ...
31.432432
111
0.591402
793f71acf283560e97f7437849f9242ab095b86d
3,570
py
Python
src/add-control-workflow/graph.py
kfnxu/superset-playground
d11271ddb799e74a2a2f5a9e90f1159c46faf3b6
[ "Apache-2.0" ]
1
2019-05-30T21:49:14.000Z
2019-05-30T21:49:14.000Z
src/add-control-workflow/graph.py
kfnxu/superset-playground
d11271ddb799e74a2a2f5a9e90f1159c46faf3b6
[ "Apache-2.0" ]
null
null
null
src/add-control-workflow/graph.py
kfnxu/superset-playground
d11271ddb799e74a2a2f5a9e90f1159c46faf3b6
[ "Apache-2.0" ]
null
null
null
import simplejson as json from superset import app ##pip install neo4jrestclient from neo4jrestclient.client import GraphDatabase config = app.config class BaseGraph(object): def __init__(self): host = config.get("GRAPHDB_HOST") #"" user = config.get("GRAPHDB_USER") #"" pw = config.get("GR...
72.857143
773
0.643417
793f71fcc7664ff6a566a093060e8a22c4203041
4,823
py
Python
tempest/scenario/midokura/test_network_basic_multitenant.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/scenario/midokura/test_network_basic_multitenant.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/scenario/midokura/test_network_basic_multitenant.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "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 # ...
38.277778
78
0.642753
793f722cbe2ad5113256020b067861f53010b5a5
207
py
Python
tests/test_discovery/discovery.py
smok-serwis/bunia
61f032c990f2be8cf9ed5182e847309dd30af91b
[ "MIT" ]
null
null
null
tests/test_discovery/discovery.py
smok-serwis/bunia
61f032c990f2be8cf9ed5182e847309dd30af91b
[ "MIT" ]
2
2016-12-21T10:04:38.000Z
2017-01-10T19:11:00.000Z
tests/test_discovery/discovery.py
smok-serwis/bunia
61f032c990f2be8cf9ed5182e847309dd30af91b
[ "MIT" ]
null
null
null
# coding=UTF-8 from __future__ import absolute_import, division, print_function from bunia.api import Command class Cmd1(Command): NAME = 'cmd1' class Cmd2(Command): NAME = 'cmd2' COMMAND = Cmd1
15.923077
64
0.729469
793f725b5c1c8eb657e2755fe1c1ac92281512bc
1,162
py
Python
base/views.py
AlexWanyoike/Djangoweekone
4dc5c8de2b35fb33e82224cb3edf0d0607b063c7
[ "MIT" ]
null
null
null
base/views.py
AlexWanyoike/Djangoweekone
4dc5c8de2b35fb33e82224cb3edf0d0607b063c7
[ "MIT" ]
null
null
null
base/views.py
AlexWanyoike/Djangoweekone
4dc5c8de2b35fb33e82224cb3edf0d0607b063c7
[ "MIT" ]
null
null
null
#from datetime import db from django.shortcuts import render , redirect from django.http import HttpResponse , request , Http404 from .models import Category , Photo , Location # Create your views here. def base(request): location = request.GET.get('location') if location == None: photo = Photo.obje...
25.26087
81
0.678141
793f73208441488579b78fe93c475f2d0892d083
8,997
py
Python
selfdrive/car/chrysler/interface.py
archlyga/openpilot-1
8ea26c5888d71400cc4a33752bb7cfdcea662edb
[ "MIT" ]
2
2019-07-13T18:34:23.000Z
2019-10-11T00:23:58.000Z
selfdrive/car/chrysler/interface.py
archlyga/openpilot-1
8ea26c5888d71400cc4a33752bb7cfdcea662edb
[ "MIT" ]
null
null
null
selfdrive/car/chrysler/interface.py
archlyga/openpilot-1
8ea26c5888d71400cc4a33752bb7cfdcea662edb
[ "MIT" ]
2
2019-07-14T13:58:10.000Z
2020-03-18T02:58:19.000Z
#!/usr/bin/env python from common.realtime import sec_since_boot from cereal import car from selfdrive.config import Conversions as CV from selfdrive.controls.lib.drive_helpers import EventTypes as ET, create_event from selfdrive.controls.lib.vehicle_model import VehicleModel from selfdrive.car.chrysler.carstate import...
36.573171
116
0.697121
793f73281580c9963d319d5f269149cacdd0dbb8
22,644
py
Python
tests/features/test_audio.py
kili-technology/datasets
131effc87760d0277145edbfd2fc878b9333419c
[ "Apache-2.0" ]
null
null
null
tests/features/test_audio.py
kili-technology/datasets
131effc87760d0277145edbfd2fc878b9333419c
[ "Apache-2.0" ]
null
null
null
tests/features/test_audio.py
kili-technology/datasets
131effc87760d0277145edbfd2fc878b9333419c
[ "Apache-2.0" ]
null
null
null
import os import sys import tarfile from ctypes.util import find_library from importlib.util import find_spec import pyarrow as pa import pytest from datasets import Dataset, concatenate_datasets, load_dataset from datasets.features import Audio, Features, Sequence, Value # pytestmark = pytest.mark.audio require_...
42.805293
116
0.657834
793f73d13224d0401c605168ff9405dff0d2357e
326
py
Python
my_wallet/stocks/migrations/0006_remove_prices_price.py
Bounty1993/my-wallet
c14f8efaa1c3b90f9d5b0a6c5b5aabb26ed541fa
[ "MIT" ]
null
null
null
my_wallet/stocks/migrations/0006_remove_prices_price.py
Bounty1993/my-wallet
c14f8efaa1c3b90f9d5b0a6c5b5aabb26ed541fa
[ "MIT" ]
8
2020-06-05T19:52:06.000Z
2022-03-11T23:40:19.000Z
my_wallet/stocks/migrations/0006_remove_prices_price.py
Bounty1993/my-wallet
c14f8efaa1c3b90f9d5b0a6c5b5aabb26ed541fa
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-03-11 20:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('stocks', '0005_auto_20190310_1528'), ] operations = [ migrations.RemoveField( model_name='prices', name='price', ), ...
18.111111
47
0.588957
793f745d49be68581ba8f2b75b6de9b845342220
376
py
Python
examples/uploadVideo.py
partizan007/Instagram-API
3435dc6855e1cccf2c85a41839d15ca930563b21
[ "MIT" ]
126
2016-05-18T19:20:32.000Z
2022-02-12T10:30:50.000Z
examples/uploadVideo.py
partizan007/Instagram-API
3435dc6855e1cccf2c85a41839d15ca930563b21
[ "MIT" ]
41
2016-08-07T17:32:37.000Z
2022-01-13T00:25:31.000Z
examples/uploadVideo.py
partizan007/Instagram-API
3435dc6855e1cccf2c85a41839d15ca930563b21
[ "MIT" ]
61
2016-07-07T14:18:38.000Z
2021-03-28T12:48:26.000Z
import InstagramAPI # /////// CONFIG /////// username = '' password = '' debug = False video = '' # path to the video caption = '' # caption # ////////////////////// i = InstagramAPI.Instagram(username, password, debug) try: i.login() except Exception as e: e.message exit() try: i.uploadVideo(vid...
15.666667
53
0.593085
793f748a50a0998295123fa9f0f2c4dbf2555762
887
py
Python
instaapp/urls.py
habibahassan/Instagram
3cc076b54e460f76e602b693abb2f8af91983add
[ "MIT" ]
null
null
null
instaapp/urls.py
habibahassan/Instagram
3cc076b54e460f76e602b693abb2f8af91983add
[ "MIT" ]
4
2020-03-09T05:34:02.000Z
2021-09-08T01:51:12.000Z
instaapp/urls.py
habibahassan/Instagram
3cc076b54e460f76e602b693abb2f8af91983add
[ "MIT" ]
null
null
null
from django.urls import path,re_path from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('',views.home,name='home'), path('profile/',views.profile,name='profile'), path('profile/update/',views.update_profile,name='update_profile'), path(...
40.318182
81
0.704622
793f7524551d797584ba86555b7fc04de36da5c5
52
py
Python
ntvv/python/cimConverter/__init__.py
Muxelmann/voltage-assessment
b90e3ca829fe25845a698cb86c67c213f8befe7a
[ "MIT" ]
2
2020-01-17T12:40:26.000Z
2021-03-09T07:15:50.000Z
ntvv/python/cimConverter/__init__.py
Muxelmann/voltage-assessment
b90e3ca829fe25845a698cb86c67c213f8befe7a
[ "MIT" ]
null
null
null
ntvv/python/cimConverter/__init__.py
Muxelmann/voltage-assessment
b90e3ca829fe25845a698cb86c67c213f8befe7a
[ "MIT" ]
null
null
null
from . import logger from .CIMClass import CIMClass
17.333333
30
0.807692
793f75e8d343f7da3d72f87b577cf55f2aae51e4
1,403
py
Python
mamba/setup.py
wulmer/mamba
5961d76afdd8b0f070bf0f2da396ef25289c965c
[ "BSD-3-Clause" ]
405
2019-03-25T15:38:35.000Z
2020-06-19T05:51:38.000Z
mamba/setup.py
wulmer/mamba
5961d76afdd8b0f070bf0f2da396ef25289c965c
[ "BSD-3-Clause" ]
193
2019-03-25T15:25:38.000Z
2020-06-18T09:34:54.000Z
mamba/setup.py
wulmer/mamba
5961d76afdd8b0f070bf0f2da396ef25289c965c
[ "BSD-3-Clause" ]
23
2019-03-25T15:05:18.000Z
2020-06-17T14:14:11.000Z
# Copyright (c) 2019, QuantStack and Mamba Contributors # # Distributed under the terms of the BSD 3-Clause License. # # The full license is in the file LICENSE, distributed with this software. # -*- coding: utf-8 -*- import os import sys from setuptools import setup here = os.path.dirname(os.path.abspath(__file__)...
28.632653
88
0.686386
793f761104202aa91ce4d78e0aa3774112e69970
8,827
py
Python
sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_03_01_preview/operations/_access_review_instances_assigned_for_my_approval_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_03_01_preview/operations/_access_review_instances_assigned_for_my_approval_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_03_01_preview/operations/_access_review_instances_assigned_for_my_approval_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.713514
156
0.667951
793f76b65644d9095d5683b97171095ae3f2182e
262
py
Python
truvari/annos/bed_anno.py
mlinderm/truvari
e84804b20214775ba625819568e74a1920c99a06
[ "MIT" ]
null
null
null
truvari/annos/bed_anno.py
mlinderm/truvari
e84804b20214775ba625819568e74a1920c99a06
[ "MIT" ]
null
null
null
truvari/annos/bed_anno.py
mlinderm/truvari
e84804b20214775ba625819568e74a1920c99a06
[ "MIT" ]
null
null
null
""" Annotate over a generic bedfile Need to build the 'tree maker' first? Need to make sure and set it so --multimatch And also, need to specify that col[3] (bed name) must be the INFO=;oaiwef and the header lines "^#" must be the header information """
20.153846
56
0.709924
793f7756b5fa6a9793124091250f6b248f6045e0
32,852
py
Python
fatiando/mesher/mesh.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
179
2015-03-08T08:50:45.000Z
2022-03-20T08:19:05.000Z
fatiando/mesher/mesh.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
207
2015-01-12T17:04:57.000Z
2021-01-08T23:36:11.000Z
fatiando/mesher/mesh.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
114
2015-01-29T18:51:22.000Z
2022-03-25T12:35:43.000Z
""" Meshes (collections) of geometric objects. Meshes behave like lists/arrays of geometric objects (they are iterables). """ from __future__ import division, absolute_import from future.builtins import range, object, super import numpy as np import scipy.special import scipy.interpolate import copy as cp from .. imp...
32.59127
79
0.506149
793f786a9803233d334db38aa3df8b8d7f9fd917
1,834
py
Python
Software/Python/grove_co2_sensor/grove_co2_example.py
electricpocket/GroveBBB
336b10c903dcacc251bbb2506944e1ca7484c86d
[ "MIT" ]
null
null
null
Software/Python/grove_co2_sensor/grove_co2_example.py
electricpocket/GroveBBB
336b10c903dcacc251bbb2506944e1ca7484c86d
[ "MIT" ]
null
null
null
Software/Python/grove_co2_sensor/grove_co2_example.py
electricpocket/GroveBBB
336b10c903dcacc251bbb2506944e1ca7484c86d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # GrovePi Example for using the Grove - CO2 Sensor(http://www.seeedstudio.com/depot/Grove-CO2-Sensor-p-1863.html) # # The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi # # Have a question about this example? ...
39.869565
139
0.77699
793f7bf40b7b234edb8137e9245bbf40a4537087
774
py
Python
configs/swa/swa_cascade_s50_rfp_mstrain_aug.py
NEUdeep/TileDetection
f453ac868de195a7859b9bf07c813e46eb35d2d0
[ "Apache-2.0" ]
41
2021-03-23T23:43:00.000Z
2022-03-22T12:42:53.000Z
configs/swa/swa_cascade_s50_rfp_mstrain_aug.py
hlcedu/TileDetection
77b5ef4bb4db29f5ffe6a6fa9f87b4bfe8516e4c
[ "Apache-2.0" ]
3
2021-09-12T13:04:34.000Z
2022-03-23T07:29:43.000Z
configs/swa/swa_cascade_s50_rfp_mstrain_aug.py
hlcedu/TileDetection
77b5ef4bb4db29f5ffe6a6fa9f87b4bfe8516e4c
[ "Apache-2.0" ]
7
2021-03-31T03:21:43.000Z
2021-12-27T08:50:13.000Z
_base_ = ['../tile_round2/cascade_s50_rfp_mstrain.py', '../_base_/swa.py'] only_swa_training = True # whether to perform swa training swa_training = True # load the best pre_trained model as the starting model for swa training swa_load_from = 'work_dirs/round2/cascade_s50_rfp_mstrain_aug_alldata/latest.pth' swa_resume...
32.25
81
0.776486
793f7bf8a56a3147e060b10df36e3a9bd3ab1265
91
py
Python
setup.py
3rwww1/setuptools_scm_azure_pipelines
24c9db0ce0b3f5bfd5ffe8be9550b97350eefe6b
[ "MIT" ]
null
null
null
setup.py
3rwww1/setuptools_scm_azure_pipelines
24c9db0ce0b3f5bfd5ffe8be9550b97350eefe6b
[ "MIT" ]
null
null
null
setup.py
3rwww1/setuptools_scm_azure_pipelines
24c9db0ce0b3f5bfd5ffe8be9550b97350eefe6b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import setuptools if __name__ == '__main__': setuptools.setup()
15.166667
26
0.703297
793f7cbb82bbc1eb6a8844b9e5e744c7d2816a6d
5,037
py
Python
qa/rpc-tests/prioritise_transaction.py
v-core/v
f87e0fb859aae6aa7de8b3816093bf900fdcce42
[ "MIT" ]
1
2018-01-19T19:29:29.000Z
2018-01-19T19:29:29.000Z
qa/rpc-tests/prioritise_transaction.py
v-core/v
f87e0fb859aae6aa7de8b3816093bf900fdcce42
[ "MIT" ]
null
null
null
qa/rpc-tests/prioritise_transaction.py
v-core/v
f87e0fb859aae6aa7de8b3816093bf900fdcce42
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2015 The VCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test PrioritiseTransaction code # from test_framework.test_framework import VCoinTestFramework from test_fr...
39.661417
119
0.651181
793f7cc577d79f7a3e08d13e99a84457f0eb0f17
1,102
py
Python
assets/cloudformation/function_copy_website/lambda_function.py
mayis214/multi-channel-customer-engagement
46aa67e0feb78d5c68dd1695835d437b9f9c75f9
[ "MIT-0" ]
4
2021-02-05T03:38:20.000Z
2021-09-04T11:17:33.000Z
assets/cloudformation/function_copy_website/lambda_function.py
mayis214/multi-channel-customer-engagement
46aa67e0feb78d5c68dd1695835d437b9f9c75f9
[ "MIT-0" ]
14
2020-12-03T15:15:25.000Z
2021-06-04T15:31:05.000Z
assets/cloudformation/function_copy_website/lambda_function.py
mayis214/multi-channel-customer-engagement
46aa67e0feb78d5c68dd1695835d437b9f9c75f9
[ "MIT-0" ]
11
2020-11-27T21:41:40.000Z
2022-03-29T19:28:24.000Z
import json import boto3 from crhelper import CfnResource import os helper = CfnResource() s3 = boto3.client('s3') s3_resource = boto3.resource('s3') sourceBucket = os.environ['s3sourceBucket'] sourcePrefix = os.environ['s3sourcePrefix'] destinationbucket = os.environ['s3destinationBucket'] def lambda_handler(event...
28.25641
79
0.706897
793f7d23bb63769e42c24564025740593eb9c1e4
22,502
py
Python
working version coz cached/GDP_Access/GdpAxsHaitian.py
cyrildarevo/genPassportScore
ff4a761f9b46606ac588ac92e089548a9e834557
[ "MIT" ]
4
2018-09-21T19:32:24.000Z
2018-10-04T14:30:47.000Z
working version coz cached/GDP_Access/GdpAxsHaitian.py
cyrildarevo/genPassportScore
ff4a761f9b46606ac588ac92e089548a9e834557
[ "MIT" ]
3
2020-02-11T08:00:32.000Z
2020-02-11T08:00:32.000Z
working version coz cached/GDP_Access/GdpAxsHaitian.py
cyrildarevo/genPassportScore
ff4a761f9b46606ac588ac92e089548a9e834557
[ "MIT" ]
null
null
null
#GDP Access List forHaiti GDPtable = [{'Country': 'Haiti', 'GDP_Access': 8360.0, 'VisaRequirement': 'Freedom of Movement', 'VisaTemplate': 'free'}, {'Country': 'Afghanistan', 'GDP_Access': 8355.6, 'VisaRequirement': 'Visa is required', 'VisaTemplate': 'no'}, {'Country': 'Albania', 'GDP_Access': 5200.4,...
29.261378
48
0.638388
793f7edc6f7d1cedb1d15845f3794916e7ec3c35
1,316
py
Python
pyvisdk/do/vim_esx_cl_iiscsisessionlist_session.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/vim_esx_cl_iiscsisessionlist_session.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/vim_esx_cl_iiscsisessionlist_session.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError # This module is NOT auto-generated # Inspired by decompiled Java classes from vCenter's internalvim25stubs.jar # Unless states otherside, the methods and attributes were not used by esxcli, # and thus not tested log = logging.getLogger(__name__) de...
42.451613
321
0.702888
793f7f5d8aae11ac4517a3c878293c40604e0832
26,465
py
Python
cloudkitty/storage/v2/gnocchi.py
chnyda/cloudkitty
9c65b1d2304b8b963e12ef1918b9b23e180131b7
[ "Apache-2.0" ]
null
null
null
cloudkitty/storage/v2/gnocchi.py
chnyda/cloudkitty
9c65b1d2304b8b963e12ef1918b9b23e180131b7
[ "Apache-2.0" ]
null
null
null
cloudkitty/storage/v2/gnocchi.py
chnyda/cloudkitty
9c65b1d2304b8b963e12ef1918b9b23e180131b7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Objectif Libre # # 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 ...
35.146082
79
0.552919
793f80cdf965f44100be6d0fdb92b9721bd1c029
3,665
py
Python
utils/PUMA_helpers.py
NYCPlanning/db-equitable-development-tool
b24d83dc4092489995cabcdcb611642c1c8ee3b2
[ "MIT" ]
1
2021-12-30T21:03:56.000Z
2021-12-30T21:03:56.000Z
utils/PUMA_helpers.py
NYCPlanning/db-equitable-development-tool
b24d83dc4092489995cabcdcb611642c1c8ee3b2
[ "MIT" ]
209
2021-10-20T19:03:04.000Z
2022-03-31T21:02:37.000Z
utils/PUMA_helpers.py
NYCPlanning/db-equitable-development-tool
b24d83dc4092489995cabcdcb611642c1c8ee3b2
[ "MIT" ]
null
null
null
import geopandas as gp from shapely.geometry import Point import pandas as pd from numpy import nan import requests from utils.geocode import from_eviction_address geocode_functions = {"from_eviction_address": from_eviction_address} borough_code_mapper = { "037": "BX", "038": "MN", "039": "SI", "040"...
30.541667
192
0.674216
793f82da98f3a6ab3b6583b2f55be105cd018ce6
6,708
py
Python
test/functional/p2p_invalid_tx.py
dev-zeo/bitcoin-pos
5fd0ccf8833a8e8e467f7c765fb6780b0b570e97
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_tx.py
dev-zeo/bitcoin-pos
5fd0ccf8833a8e8e467f7c765fb6780b0b570e97
[ "MIT" ]
null
null
null
test/functional/p2p_invalid_tx.py
dev-zeo/bitcoin-pos
5fd0ccf8833a8e8e467f7c765fb6780b0b570e97
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test node responses to invalid transactions. In this test we connect to one node over p2p, and test tx...
43.558442
109
0.676953
793f8370afede0a2d5f3b99e0b92368dfdae22d0
10,354
py
Python
pybind/slxos/v16r_1_00b/routing_system/interface/loopback/ipv6/interface_ospfv3_conf/authentication/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/routing_system/interface/loopback/ipv6/interface_ospfv3_conf/authentication/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/routing_system/interface/loopback/ipv6/interface_ospfv3_conf/authentication/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
62.373494
587
0.743867
793f8382aecc792a01822a24183cee5cb5f842c8
1,011
py
Python
flaskr/db.py
ztaylor2/flask-api
73378bcfefe9ac09f6e7c811c1b9aa690b05d8ec
[ "MIT" ]
null
null
null
flaskr/db.py
ztaylor2/flask-api
73378bcfefe9ac09f6e7c811c1b9aa690b05d8ec
[ "MIT" ]
null
null
null
flaskr/db.py
ztaylor2/flask-api
73378bcfefe9ac09f6e7c811c1b9aa690b05d8ec
[ "MIT" ]
null
null
null
"""Set up the sqlite database.""" import sqlite3 import click from flask import current_app, g from flask.cli import with_appcontext def get_db(): """Connect to the database.""" if 'db' not in g: g.db = sqlite3.connect( current_app.config['DATABASE'], detect_types=sqlite3.PARS...
20.632653
56
0.638971
793f84308769fcb6b5f912c3b8ef38714215d0f6
3,917
py
Python
FHIR_Tester_backend/sandbox/resource_tester.py
ideaworld/FHIR_Tester
62844af2de510b65535df5ae60da03a082097df0
[ "MIT" ]
null
null
null
FHIR_Tester_backend/sandbox/resource_tester.py
ideaworld/FHIR_Tester
62844af2de510b65535df5ae60da03a082097df0
[ "MIT" ]
4
2020-06-05T17:40:18.000Z
2022-02-11T03:38:16.000Z
FHIR_Tester_backend/sandbox/resource_tester.py
bowen1993/FHIR_Tester
62844af2de510b65535df5ae60da03a082097df0
[ "MIT" ]
1
2016-11-22T01:04:16.000Z
2016-11-22T01:04:16.000Z
import os import sys pro_dir = os.getcwd() sys.path.append(pro_dir) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "FHIR_Tester.settings") from services.genomics_test_generator.fhir_genomics_test_gene import * from services.request_sender import * from services.create_resource import * spec_basepath = 'resources/sp...
41.231579
119
0.69492
793f845876ddfe2b92bb50cc7294d2bcfc8228b4
588
py
Python
typeidea/blog/migrations/0002_auto_20200221_1454.py
Phoenix-sy/typeidea
e913218872c7f4e9afc290eb42b4ca8c8e4523be
[ "MIT" ]
null
null
null
typeidea/blog/migrations/0002_auto_20200221_1454.py
Phoenix-sy/typeidea
e913218872c7f4e9afc290eb42b4ca8c8e4523be
[ "MIT" ]
4
2020-06-06T01:37:34.000Z
2021-09-08T01:49:56.000Z
typeidea/blog/migrations/0002_auto_20200221_1454.py
Phoenix-sy/typeidea
e913218872c7f4e9afc290eb42b4ca8c8e4523be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2020-02-21 06:54 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AddField( m...
22.615385
57
0.578231
793f84d95f4cea7dc9443c01f8c8128a0d110de4
7,472
py
Python
ctpn/dataset.py
CrazySummerday/ctpn.pytorch
99f6baf2780e550d7b4656ac7a7b90af9ade468f
[ "MIT" ]
38
2019-09-09T07:06:02.000Z
2022-03-07T06:39:11.000Z
ctpn/dataset.py
CrazySummerday/ctpn.pytorch
99f6baf2780e550d7b4656ac7a7b90af9ade468f
[ "MIT" ]
6
2020-09-01T02:31:35.000Z
2021-10-20T08:50:09.000Z
ctpn/dataset.py
CrazySummerday/ctpn.pytorch
99f6baf2780e550d7b4656ac7a7b90af9ade468f
[ "MIT" ]
23
2019-09-11T11:50:42.000Z
2022-01-29T18:22:32.000Z
#-*- coding:utf-8 -*- import os import numpy as np import cv2 import torch from torch.utils.data import Dataset import xml.etree.ElementTree as ET from ctpn.utils import cal_rpn IMAGE_MEAN = [123.68, 116.779, 103.939] ''' 从xml文件中读取图像中的真值框 ''' def readxml(path): gtboxes = [] xml = ET.parse(path) for elem i...
35.751196
80
0.528506
793f853a94a76980afe6ccf94dbf8caab5ef398c
11,669
py
Python
shorttext/stack/stacking.py
trendmicro/PyShortTextCategorization
86d8ad22035243dbeb1c53fe286d6ef8be9a9fd7
[ "MIT" ]
null
null
null
shorttext/stack/stacking.py
trendmicro/PyShortTextCategorization
86d8ad22035243dbeb1c53fe286d6ef8be9a9fd7
[ "MIT" ]
null
null
null
shorttext/stack/stacking.py
trendmicro/PyShortTextCategorization
86d8ad22035243dbeb1c53fe286d6ef8be9a9fd7
[ "MIT" ]
null
null
null
import pickle import numpy as np from keras.layers import Dense, Reshape from keras.models import Sequential from keras.regularizers import l2 import shorttext.utils.classification_exceptions as e import shorttext.utils.kerasmodel_io as kerasio from shorttext.utils.compactmodel_io import CompactIOMachine # abstract...
39.422297
199
0.659011
793f85c2e8dfc141c911a993610a1b00c7b3b3d8
1,456
py
Python
hexamazer/VideoCapture.py
wonkoderverstaendige/hexamazer
eb08135d3eeeade8614957e082a78178b03b1d3d
[ "MIT" ]
null
null
null
hexamazer/VideoCapture.py
wonkoderverstaendige/hexamazer
eb08135d3eeeade8614957e082a78178b03b1d3d
[ "MIT" ]
8
2018-04-12T22:53:48.000Z
2018-04-16T13:14:16.000Z
hexamazer/VideoCapture.py
wonkoderverstaendige/hexamazer
eb08135d3eeeade8614957e082a78178b03b1d3d
[ "MIT" ]
null
null
null
import cv2 import threading import time class VideoCapture: def __init__(self, path): self.path = path self.capture = cv2.VideoCapture(self.path) self.running = False self.__get_next = False self.lock = threading.Lock() self.frame_rv, self.frame = self.capture.read...
26
67
0.553571
793f864149b783d6ca209098e111d244245f71a5
8,549
py
Python
qa/rpc-tests/p2p_txexpiringsoon.py
michailduzhanski/crypto-release
4e0f14ccc4eaebee6677f06cff4e13f37608c0f8
[ "MIT" ]
2
2020-02-12T16:22:49.000Z
2020-02-13T16:34:31.000Z
qa/rpc-tests/p2p_txexpiringsoon.py
michailduzhanski/crypto-release
4e0f14ccc4eaebee6677f06cff4e13f37608c0f8
[ "MIT" ]
null
null
null
qa/rpc-tests/p2p_txexpiringsoon.py
michailduzhanski/crypto-release
4e0f14ccc4eaebee6677f06cff4e13f37608c0f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018 The Arnak developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php . import sys; assert sys.version_info < (3,), ur"This script does not run under Python 3. Please use Python 2.7.x." f...
39.762791
118
0.64721
793f8755a15c1e97f67c9f4997dfbe6f73a9bb8c
6,413
py
Python
docs/conf.py
dwgoltra/pyjanitor
c5e1a407ec098dbca411118c67090c85d5e687c7
[ "MIT" ]
null
null
null
docs/conf.py
dwgoltra/pyjanitor
c5e1a407ec098dbca411118c67090c85d5e687c7
[ "MIT" ]
null
null
null
docs/conf.py
dwgoltra/pyjanitor
c5e1a407ec098dbca411118c67090c85d5e687c7
[ "MIT" ]
null
null
null
"""Sphinx configuration.""" # -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup -------------------------------...
30.25
79
0.637455
793f8777506f2aa0b78bccc5a959964301cedafb
20,726
py
Python
pyPS4Controller/controller.py
sheeshee/pyPS4Controller
e9dc88292e6d79c8428ecfa22330236167b363c6
[ "MIT" ]
null
null
null
pyPS4Controller/controller.py
sheeshee/pyPS4Controller
e9dc88292e6d79c8428ecfa22330236167b363c6
[ "MIT" ]
null
null
null
pyPS4Controller/controller.py
sheeshee/pyPS4Controller
e9dc88292e6d79c8428ecfa22330236167b363c6
[ "MIT" ]
null
null
null
import os import struct import time class Event: def __init__(self, button_id, button_type, value, connecting_using_ds4drv): self.button_id = button_id self.button_type = button_type self.value = value self.connecting_using_ds4drv = connecting_using_ds4drv # L joystick group...
38.812734
120
0.627135
793f8fc234368d73c13e9f5906a6535c551d84c2
15,347
py
Python
code/python/ProcuretoPaySCIM/v1/fds/sdk/ProcuretoPaySCIM/model/location_resource.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/ProcuretoPaySCIM/v1/fds/sdk/ProcuretoPaySCIM/model/location_resource.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/ProcuretoPaySCIM/v1/fds/sdk/ProcuretoPaySCIM/model/location_resource.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet SCIM API FactSet's SCIM API implementation. # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.ProcuretoPaySCIM.model_utils import ( # noqa: F401 ApiTypeError, M...
46.365559
121
0.56832
793f90dccd966192aaadf4aedaaabc8ac8097a25
4,944
py
Python
test/functional/p2p_node_network_limited.py
KiPa-SuJi/PaydayCoin-Core
d807d95550d955bfa9ffda2b39cad745422224e5
[ "MIT" ]
2
2020-06-12T10:12:49.000Z
2020-07-31T19:43:09.000Z
test/functional/p2p_node_network_limited.py
KiPa-SuJi/PaydayCoin-Core
d807d95550d955bfa9ffda2b39cad745422224e5
[ "MIT" ]
null
null
null
test/functional/p2p_node_network_limited.py
KiPa-SuJi/PaydayCoin-Core
d807d95550d955bfa9ffda2b39cad745422224e5
[ "MIT" ]
1
2020-12-04T13:34:46.000Z
2020-12-04T13:34:46.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The PaydayCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests NODE_NETWORK_LIMITED. Tests that a node configured with -prune=550 signals NODE_NETWORK_LIMIT...
40.859504
121
0.694175
793f911c9e5bdd7d6fcd8d614d9c8555f09cb406
16,127
py
Python
python/ray/serve/config.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
22
2018-05-08T05:52:34.000Z
2020-04-01T10:09:55.000Z
python/ray/serve/config.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
51
2018-05-17T05:55:28.000Z
2020-03-18T06:49:49.000Z
python/ray/serve/config.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
10
2018-04-27T10:50:59.000Z
2020-02-24T02:41:43.000Z
import inspect import json from enum import Enum from typing import Any, Callable, Dict, List, Optional, Tuple, Union import pydantic from google.protobuf.json_format import MessageToDict from pydantic import ( BaseModel, NonNegativeFloat, PositiveFloat, NonNegativeInt, PositiveInt, validator, ...
37.158986
88
0.645749
793f925198a3ccb544a87e0e170e3eaeeadee3cd
433
py
Python
examples/basic_shapes.py
abey79/lines
09fbd84f9eaaba40d24b07227e8c95c0493a75c2
[ "MIT" ]
39
2019-10-23T09:19:34.000Z
2022-02-16T21:44:12.000Z
examples/basic_shapes.py
abey79/lines
09fbd84f9eaaba40d24b07227e8c95c0493a75c2
[ "MIT" ]
2
2020-11-13T14:06:02.000Z
2021-09-29T08:18:44.000Z
examples/basic_shapes.py
abey79/lines
09fbd84f9eaaba40d24b07227e8c95c0493a75c2
[ "MIT" ]
2
2020-11-06T22:21:00.000Z
2021-06-09T18:40:02.000Z
from lines import Cube, Cylinder, Pyramid, Scene def main(): # Setup the scene scene = Scene() scene.add(Cube(translate=(2, 0, 0))) scene.add(Pyramid()) scene.add(Cylinder(scale=(0.5, 0.5, 1), translate=(-2, 0, 0))) scene.look_at((2, 6, 1.5), (0, 0, 0)) scene.perspective(70, 0.1, 10) ...
22.789474
66
0.60739
793f92e4ae60427a625e83cd3f9b430b5f63dcc7
13,874
py
Python
cea/plots/solar_technology_potentials/2_photovoltaic_thermal_potential.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
cea/plots/solar_technology_potentials/2_photovoltaic_thermal_potential.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
cea/plots/solar_technology_potentials/2_photovoltaic_thermal_potential.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function import math import pandas as pd import plotly.graph_objs as go from plotly.offline import plot import cea.plots.solar_technology_potentials from cea.plots.variable_naming import LOGO, COLOR, NAMING __author__ = "Shanshan Hsieh" __copyright__ = "Co...
46.871622
120
0.62527
793f93bb640dea8d0bfa33dbd16683dab3070d89
571
py
Python
examples/nD_multiscale_image.py
mrocklin/napari
b61d9ae570e30091a97b6c76e37cd95fe5b296b6
[ "BSD-3-Clause" ]
1
2022-03-01T19:38:06.000Z
2022-03-01T19:38:06.000Z
examples/nD_multiscale_image.py
mrocklin/napari
b61d9ae570e30091a97b6c76e37cd95fe5b296b6
[ "BSD-3-Clause" ]
17
2020-06-11T21:02:03.000Z
2021-02-02T19:10:19.000Z
examples/nD_multiscale_image.py
mrocklin/napari
b61d9ae570e30091a97b6c76e37cd95fe5b296b6
[ "BSD-3-Clause" ]
1
2020-07-19T18:03:35.000Z
2020-07-19T18:03:35.000Z
""" Displays an nD multiscale image """ from skimage.transform import pyramid_gaussian import napari import numpy as np # create multiscale from random data base = np.random.random((1536, 1536)) base = np.array([base * (8 - i) / 8 for i in range(8)]) print('base shape', base.shape) multiscale = list( pyramid_gau...
25.954545
74
0.726795
793f978012241efbd22ad38a243fb9578449b9c2
3,212
py
Python
tests/test_loadtweets.py
rmotr-group-projects/wdd-w2-twitter-commands
404ddb6e9121eab562c113610b3b54f296e6c47e
[ "MIT" ]
null
null
null
tests/test_loadtweets.py
rmotr-group-projects/wdd-w2-twitter-commands
404ddb6e9121eab562c113610b3b54f296e6c47e
[ "MIT" ]
6
2020-06-05T22:15:17.000Z
2022-03-11T23:56:03.000Z
tests/test_loadtweets.py
ine-rmotr-projects/wdd-w2-twitter-commands
404ddb6e9121eab562c113610b3b54f296e6c47e
[ "MIT" ]
6
2016-09-03T12:58:21.000Z
2016-11-15T16:52:57.000Z
from django.utils.six import StringIO from django.core.management import call_command from django.test import TestCase from django.core.management.base import CommandError from twitter.models import Tweet, User class LoadTweetsTestCase(TestCase): def setUp(self): super(LoadTweetsTestCase, self).setUp() ...
44.611111
82
0.661582
793f98b9cc535a2591a86d797ad1c0eb05830b70
1,400
py
Python
airbyte-integrations/connectors/source-youtube-analytics/unit_tests/test_source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
2
2022-03-02T13:46:05.000Z
2022-03-05T12:31:28.000Z
airbyte-integrations/connectors/source-youtube-analytics/unit_tests/test_source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
29
2021-10-07T17:20:29.000Z
2021-12-27T13:07:09.000Z
airbyte-integrations/connectors/source-youtube-analytics/unit_tests/test_source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
1
2022-03-11T06:21:24.000Z
2022-03-11T06:21:24.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import json import os from unittest.mock import MagicMock from airbyte_cdk.sources.streams.http.auth.core import NoAuth from source_youtube_analytics.source import SourceYoutubeAnalytics def test_check_connection(requests_mock): access_token = "token"...
36.842105
133
0.758571
793f9a0b3767df7e83b01b93a4b5add02b4506bc
649
py
Python
LeetCode/Linked List/21. Merge Two Sorted Lists/solution.py
Ceruleanacg/Crack-Interview
994dc0eee2f576fc543c90b82398dc8d957cdf09
[ "MIT" ]
17
2018-09-04T15:51:30.000Z
2021-06-04T08:47:07.000Z
LeetCode/Linked List/21. Merge Two Sorted Lists/solution.py
Ceruleanacg/Crack-Interview
994dc0eee2f576fc543c90b82398dc8d957cdf09
[ "MIT" ]
null
null
null
LeetCode/Linked List/21. Merge Two Sorted Lists/solution.py
Ceruleanacg/Crack-Interview
994dc0eee2f576fc543c90b82398dc8d957cdf09
[ "MIT" ]
6
2018-11-03T09:36:25.000Z
2020-05-27T17:51:08.000Z
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def mergeTwoLists(self, l1, l2): """ :type l1: ListNode :type l2: ListNode :rtype: ListNode """ mock_node = ListNode(0) ...
23.178571
36
0.493066
793f9b88526befd86d41e4d2c7c71250f35ef0ad
713
py
Python
produtos/admin.py
maldonadopereira/djangoice
c577abd3aed4a1ffd7de6ea4c5a5c6f53f9987fc
[ "MIT" ]
2
2022-03-13T16:18:43.000Z
2022-03-13T16:18:46.000Z
produtos/admin.py
maldonadopereira/djangoice
c577abd3aed4a1ffd7de6ea4c5a5c6f53f9987fc
[ "MIT" ]
null
null
null
produtos/admin.py
maldonadopereira/djangoice
c577abd3aed4a1ffd7de6ea4c5a5c6f53f9987fc
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Produto, Fornecedor class ListandoProduto(admin.ModelAdmin): list_display = ('id', 'nome_produto', 'preco_produto','fornecedor' ,'disponivel') list_display_links = ('id', 'nome_produto') search_fields = ('nome_receita',) list_filter = ('disponivel',...
29.708333
85
0.72791
793f9cf3b5b48c076230b07dd3067141e3eb9bc2
1,749
py
Python
test/test_inline_response_200_42_utilisation_totals.py
scubawhere/scubawhere-api-python-client
9f8578e251492c7667f785df7b7c9d66e71f5c8e
[ "Apache-2.0" ]
null
null
null
test/test_inline_response_200_42_utilisation_totals.py
scubawhere/scubawhere-api-python-client
9f8578e251492c7667f785df7b7c9d66e71f5c8e
[ "Apache-2.0" ]
null
null
null
test/test_inline_response_200_42_utilisation_totals.py
scubawhere/scubawhere-api-python-client
9f8578e251492c7667f785df7b7c9d66e71f5c8e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Scubawhere API Documentation This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens. [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API OpenAPI spec version: 1.0.0 ...
32.388889
227
0.757004
793f9fab0523a6a76b98f3895515cb386dd74da2
7,847
py
Python
Java/Ema/TestTools/QATools/Series100Consumer100-View-001/verifyTest.py
TransFICC/Elektron-SDK
4323249c24c8105e41fd8cd9ba5dd9661e1b2b0e
[ "Apache-2.0" ]
107
2015-07-27T23:43:04.000Z
2019-01-03T07:11:27.000Z
Java/Ema/TestTools/QATools/Series100Consumer100-View-001/verifyTest.py
TransFICC/Elektron-SDK
4323249c24c8105e41fd8cd9ba5dd9661e1b2b0e
[ "Apache-2.0" ]
91
2015-07-28T15:40:43.000Z
2018-12-31T09:37:19.000Z
Java/Ema/TestTools/QATools/Series100Consumer100-View-001/verifyTest.py
TransFICC/Elektron-SDK
4323249c24c8105e41fd8cd9ba5dd9661e1b2b0e
[ "Apache-2.0" ]
68
2015-07-27T08:35:47.000Z
2019-01-01T07:59:39.000Z
#!/bin/env python from __future__ import print_function import os; import re; import sys; java = False cpp = False outstandingRequests = {} currentFids = [] def findNextEvent(input): event = re.compile("^event: (.*)$") line = input.readline() while (line): if event.match(line): retur...
37.908213
134
0.535109
793fa00a4a9429e8f7e5713430ec03e1f4849f97
3,791
py
Python
closed/HPE/configs/resnet50/Server/__init__.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
12
2021-09-23T08:05:57.000Z
2022-03-21T03:52:11.000Z
closed/HPE/configs/resnet50/Server/__init__.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
11
2021-09-23T20:34:06.000Z
2022-01-22T07:58:02.000Z
closed/HPE/configs/resnet50/Server/__init__.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
16
2021-09-23T20:26:38.000Z
2022-03-09T12:59:56.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.463636
84
0.744658
793fa0120085b30a3f3bd0279b33c4f15bbf5ccc
5,285
py
Python
docs/source/conf.py
oduwsdl/MementoEmbed
20e035a310527d5b4f2b4987714c5ec8ff9df2e4
[ "MIT" ]
11
2018-06-27T07:00:20.000Z
2021-07-14T06:51:46.000Z
docs/source/conf.py
oduwsdl/MementoEmbed
20e035a310527d5b4f2b4987714c5ec8ff9df2e4
[ "MIT" ]
131
2018-06-07T22:42:20.000Z
2021-11-15T01:08:53.000Z
docs/source/conf.py
oduwsdl/MementoEmbed
20e035a310527d5b4f2b4987714c5ec8ff9df2e4
[ "MIT" ]
2
2019-06-06T07:50:54.000Z
2019-10-29T10:20:04.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
32.030303
229
0.660927
793fa01c269e91a2a23ccb7951573654714777f4
14,190
py
Python
lib/dataset/voc.py
transcendentsky/ssd_pytorch
f1e20318d37b11f99c207d5e19f49ec662bf80f9
[ "MIT" ]
10
2018-06-26T04:08:12.000Z
2021-08-02T03:57:56.000Z
lib/dataset/voc.py
transcendentsky/ssd_pytorch
f1e20318d37b11f99c207d5e19f49ec662bf80f9
[ "MIT" ]
1
2019-02-25T08:55:25.000Z
2019-02-25T08:55:25.000Z
lib/dataset/voc.py
transcendentsky/ssd_pytorch
f1e20318d37b11f99c207d5e19f49ec662bf80f9
[ "MIT" ]
8
2018-07-29T02:08:18.000Z
2021-08-02T03:57:55.000Z
import os import pickle import os.path import sys import torch import torch.utils.data as data import torchvision.transforms as transforms from PIL import Image, ImageDraw, ImageFont import cv2 import numpy as np from .voc_eval import voc_eval if sys.version_info[0] == 2: import xml.etree.cElementTree a...
37.941176
99
0.545243
793fa0f7dea2cb17b3099defe97ddfc76b58c6b8
598
py
Python
services/api/apis/__init__.py
MTB90/edx-aws-developer
a3cf461f3437221c0c36ac34d30af15cd5202ff6
[ "MIT" ]
2
2019-02-22T15:46:51.000Z
2019-10-11T11:23:12.000Z
services/api/apis/__init__.py
MTB90/edx-aws-developer
a3cf461f3437221c0c36ac34d30af15cd5202ff6
[ "MIT" ]
31
2019-04-20T20:45:42.000Z
2022-03-12T00:11:58.000Z
services/api/apis/__init__.py
MTB90/edx-aws-developer
a3cf461f3437221c0c36ac34d30af15cd5202ff6
[ "MIT" ]
null
null
null
import logging import socket from flask import Blueprint, jsonify from flask import Flask blueprint = Blueprint('health', __name__) log = logging.getLogger(__name__) @blueprint.route('/health') def health(): return jsonify({ 'status': 'running', 'container': socket.gethostname() }) def cre...
19.290323
52
0.690635
793fa191396f154f1c3ac9ac3af693d911cfa786
570
py
Python
publishconf.py
zakaria1193/my_pelican
0b6141f6785464d9c70d28b34a3b183070a4d48f
[ "MIT" ]
null
null
null
publishconf.py
zakaria1193/my_pelican
0b6141f6785464d9c70d28b34a3b183070a4d48f
[ "MIT" ]
null
null
null
publishconf.py
zakaria1193/my_pelican
0b6141f6785464d9c70d28b34a3b183070a4d48f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * # If your site is available via HTTPS, make sure SITEURL begins with https:// SITEURL = 'www.zak...
22.8
77
0.740351
793fa2dbe787723e93e03c4717ff135e4ea7c9aa
4,906
bzl
Python
bazel/repository_locations.bzl
ikonst/envoy
3e95560ba8ab098689a97329fd23ade992b33718
[ "Apache-2.0" ]
null
null
null
bazel/repository_locations.bzl
ikonst/envoy
3e95560ba8ab098689a97329fd23ade992b33718
[ "Apache-2.0" ]
null
null
null
bazel/repository_locations.bzl
ikonst/envoy
3e95560ba8ab098689a97329fd23ade992b33718
[ "Apache-2.0" ]
null
null
null
REPOSITORY_LOCATIONS = dict( boringssl = dict( # Use commits from branch "chromium-stable-with-bazel" commit = "2a52ce799382c87cd3119f3b44fbbebf97061ab6", # chromium-67.0.3396.62 remote = "https://github.com/google/boringssl", ), com_google_absl = dict( # Do not upgrade furt...
45.009174
120
0.674888
793fa3124df1cf6eda97d8535025034c70a0dbb7
3,981
py
Python
Code/Commands.py
Shahrose/lex-talionis
ef7e48124b36269f4212eb0e3a7747caf53bfadd
[ "MIT" ]
null
null
null
Code/Commands.py
Shahrose/lex-talionis
ef7e48124b36269f4212eb0e3a7747caf53bfadd
[ "MIT" ]
null
null
null
Code/Commands.py
Shahrose/lex-talionis
ef7e48124b36269f4212eb0e3a7747caf53bfadd
[ "MIT" ]
null
null
null
# Dialogue/Event Commands def actor_create(): pass def actor_remove(): pass def actor_move(): pass def actor_turn(): pass def actor_speak(): pass def actor_emote(): pass def actor_bop(): pass def background_set(): pass def background_remove(): pass...
11.406877
32
0.591058
793fa3cab53c2620ec47a6ac9ad036a7ee2301f9
5,212
py
Python
tiledb/tests/test_dask.py
vishalbelsare/TileDB-Py
9b1bf3c18fbe9d0de27ab26915f57779d3ea3635
[ "MIT" ]
136
2018-02-26T05:17:24.000Z
2022-03-29T22:59:31.000Z
tiledb/tests/test_dask.py
ihnorton/TileDB-Py
bb4d5ea4d07e02721e431956363d3b9d59c3b9e6
[ "MIT" ]
578
2018-02-20T02:07:51.000Z
2022-03-31T11:24:34.000Z
tiledb/tests/test_dask.py
ihnorton/TileDB-Py
bb4d5ea4d07e02721e431956363d3b9d59c3b9e6
[ "MIT" ]
30
2018-03-22T04:13:43.000Z
2022-03-26T13:24:43.000Z
import pytest da = pytest.importorskip("dask.array") import sys import tiledb from tiledb.tests.common import DiskTestCase import numpy as np from numpy.testing import assert_array_equal, assert_approx_equal # override the no_output fixture because it conflicts with these tests # eg: "ResourceWarning: unclosed ev...
32.779874
96
0.582886
793fa3e4c6f56e3c826a53956c3a6d3b7e0099b9
2,234
py
Python
alns/CallbackMixin.py
ChristophBleyer/Technician-Vehicle-Routing-Optimization
5d425e6127f7d671f073162350357e2bffc05a01
[ "MIT" ]
null
null
null
alns/CallbackMixin.py
ChristophBleyer/Technician-Vehicle-Routing-Optimization
5d425e6127f7d671f073162350357e2bffc05a01
[ "MIT" ]
5
2020-12-16T18:51:24.000Z
2020-12-25T15:26:07.000Z
alns/CallbackMixin.py
ChristophBleyer/Technician-Vehicle-Routing-Optimization
5d425e6127f7d671f073162350357e2bffc05a01
[ "MIT" ]
1
2021-02-28T04:51:21.000Z
2021-02-28T04:51:21.000Z
import warnings from .CallbackFlag import CallbackFlag from .exceptions_warnings import OverwriteWarning class CallbackMixin: def __init__(self): """ Callback mix-in for ALNS. This allows for some flexibility by having ALNS call custom functions whenever a special event happens. ...
28.641026
80
0.57162
793fa4e4b8dd99ce7350b3ecc407e691a8708726
8,765
py
Python
lambda_functions/batcher/main.py
twaldear/binaryalert
e23a904d3a1a620ae23dd687ff0e5af2d8e230c7
[ "Apache-2.0" ]
null
null
null
lambda_functions/batcher/main.py
twaldear/binaryalert
e23a904d3a1a620ae23dd687ff0e5af2d8e230c7
[ "Apache-2.0" ]
null
null
null
lambda_functions/batcher/main.py
twaldear/binaryalert
e23a904d3a1a620ae23dd687ff0e5af2d8e230c7
[ "Apache-2.0" ]
null
null
null
"""Batching Lambda function - puts all S3 objects into SQS to be re-analyzed.""" # Expects the following environment variables: # BATCH_LAMBDA_NAME: The name of this Lambda function. # BATCH_LAMBDA_QUALIFIER: The qualifier (alias) which is used to invoke this function. # OBJECT_PREFIX: (Optional) Limit batching t...
37.780172
100
0.627952
793fa4f40a099a4a8047a90edf790c0f1d399274
896
py
Python
hyperplan/get_input.py
hyperplan-io/cli
dc7d407701fd78d9065d60c35b0f2674b28c86bb
[ "MIT" ]
1
2019-09-04T02:33:34.000Z
2019-09-04T02:33:34.000Z
hyperplan/get_input.py
hyperplan-io/cli
dc7d407701fd78d9065d60c35b0f2674b28c86bb
[ "MIT" ]
1
2019-09-16T06:09:42.000Z
2019-09-16T06:09:42.000Z
hyperplan/get_input.py
hyperplan-io/cli
dc7d407701fd78d9065d60c35b0f2674b28c86bb
[ "MIT" ]
null
null
null
def get_alphanumerical_id(): data = input('name(alphanumerical): ') if data.isalnum(): return data else: print('name should be an alphanumerical string') return get_alphanumerical_id() def get_feature_type(): feature_type = input('type(string, float, int): ') if feature_typ...
37.333333
104
0.657366
793fa508023c73b4d390cf748996775178f51a5f
4,452
py
Python
Cogs/Printer.py
cheesycod/CorpBot.py
61af17bac6ff00c5eeaedc97931b62c5d3f02fcf
[ "MIT" ]
368
2016-10-17T21:21:12.000Z
2022-03-18T09:22:56.000Z
Cogs/Printer.py
cheesycod/CorpBot.py
61af17bac6ff00c5eeaedc97931b62c5d3f02fcf
[ "MIT" ]
60
2017-01-01T01:35:10.000Z
2022-01-19T18:43:00.000Z
Cogs/Printer.py
cheesycod/CorpBot.py
61af17bac6ff00c5eeaedc97931b62c5d3f02fcf
[ "MIT" ]
189
2016-10-10T20:38:11.000Z
2022-03-26T12:23:49.000Z
import asyncio import discord import time import os import random import math import numpy as np from PIL import Image from discord.ext import commands from Cogs import GetImage from Cogs import DisplayName from Cogs import Message def setup(bot): # Add the bot and deps settings = bot.get_cog("Settings") ...
28
122
0.6615
793fa74fde0df2c8c0c6332e338975513d628850
159
py
Python
python/interpret-core/interpret/version.py
Liyuhang97/interpret
b1130589afd2550f914c5a68bd52def6bcb75b89
[ "MIT" ]
1
2019-10-24T21:05:02.000Z
2019-10-24T21:05:02.000Z
python/interpret-core/interpret/version.py
LTHODAVDOPL/interpret
71c8d4f7a537ca7ed98f8bc4fdc2899e93405094
[ "MIT" ]
null
null
null
python/interpret-core/interpret/version.py
LTHODAVDOPL/interpret
71c8d4f7a537ca7ed98f8bc4fdc2899e93405094
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Microsoft Corporation # Distributed under the MIT software license # NOTE: Version is replaced by a regex script. __version__ = "0.1.18"
26.5
46
0.761006
793fa79633cee44221beb357c5513ef66bd24dfb
680
py
Python
curso_em_video-en/exercices/ex062_pa_parada.py
brunocampos01/becoming-a-expert-python
32b12ca80ad25cc25831f383e83eb199bfe0ad7e
[ "MIT" ]
56
2019-05-18T20:04:40.000Z
2021-12-12T02:28:24.000Z
curso_em_video-en/exercices/ex062_pa_parada.py
brunocampos01/becoming-a-expert-python
32b12ca80ad25cc25831f383e83eb199bfe0ad7e
[ "MIT" ]
18
2019-11-11T11:00:51.000Z
2021-12-30T01:52:41.000Z
curso_em_video-en/exercices/ex062_pa_parada.py
brunocampos01/becoming-a-expert-python
32b12ca80ad25cc25831f383e83eb199bfe0ad7e
[ "MIT" ]
10
2019-11-10T21:22:55.000Z
2021-12-30T11:40:17.000Z
""" Exercice Python 062: Melhore o DESAFIO 061, perguntando para o usuário se ele quer mostrar mais alguns termos. - O programa encerrará quando ele disser que quer mostrar 0 termos. """ print('\narithmetic progress generator\n') first = int(input('Type fisrt term: ')) ratio = int(input('Type a rate: ')) element = fi...
25.185185
67
0.666176
793fa79b6b4f5828b5a2d00d5242078a375ee4a1
1,463
py
Python
torcharrow/velox_rt/column.py
Pandinosaurus/torcharrow
1fac1441cd89a8ea8f63300d8be7148295b30014
[ "BSD-3-Clause" ]
null
null
null
torcharrow/velox_rt/column.py
Pandinosaurus/torcharrow
1fac1441cd89a8ea8f63300d8be7148295b30014
[ "BSD-3-Clause" ]
null
null
null
torcharrow/velox_rt/column.py
Pandinosaurus/torcharrow
1fac1441cd89a8ea8f63300d8be7148295b30014
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import typing as ty import torcharrow._torcharrow as velox from torcharrow import Scope from torcharrow.dispatcher import Device from torcharrow.dtypes import DType from torcharrow.icolumn import IColumn # TODO: Rename this class to IColumnVelox or IColumnCpu class C...
34.833333
117
0.701299
793fa7ca7c4b4e08bb9a524f4c3689ee24c71357
322
py
Python
rest-service/MongoEncoder.py
pieterderycke/detect-paper-sheet
bd1ada67ac64be72efba02f1fd578843e6a4028a
[ "Apache-2.0" ]
2
2019-10-10T08:00:09.000Z
2020-01-16T03:53:40.000Z
rest-service/MongoEncoder.py
pieterderycke/detect-paper-sheet
bd1ada67ac64be72efba02f1fd578843e6a4028a
[ "Apache-2.0" ]
null
null
null
rest-service/MongoEncoder.py
pieterderycke/detect-paper-sheet
bd1ada67ac64be72efba02f1fd578843e6a4028a
[ "Apache-2.0" ]
null
null
null
from json import JSONEncoder #from connexion.apps.flask_app import FlaskJSONEncoder from bson.objectid import ObjectId class MongoEncoder(JSONEncoder): def default(self, obj): if isinstance(obj, ObjectId): return str(obj) else: return JSONEncoder.default(self, ob...
32.2
54
0.677019
793fa7d426d0434bc55e56c69214925a15d78d0f
807
py
Python
Metrics/New Tab with Fraction Figure Combos.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
Metrics/New Tab with Fraction Figure Combos.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
Metrics/New Tab with Fraction Figure Combos.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
#MenuTitle: New Tab with Fraction Figure Combinations # -*- coding: utf-8 -*- __doc__=""" Open Tab with fraction figure combos for spacing and kerning. """ thisFont = Glyphs.font paragraph = "/%s\n" % "/".join( [g.name for g in thisFont.glyphs if g.export and (g.name.startswith("percent") or g.name.startswith("pertho...
28.821429
150
0.659232
793fa802c0b01e0a90be373c5f96c9661dc100b4
22,219
py
Python
google/cloud/redis/v1/redis-v1-py/google/cloud/redis_v1/types/cloud_redis.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/redis/v1/redis-v1-py/google/cloud/redis_v1/types/cloud_redis.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/redis/v1/redis-v1-py/google/cloud/redis_v1/types/cloud_redis.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...
31.032123
102
0.614249
793fa841a829e8b367f977b1397601ee661ffce1
26,935
py
Python
run_tests.py
chris48s/arcgis2geojson
f25f57acb1b393cd9d5916ab04d1606668caf4a8
[ "MIT" ]
35
2017-10-24T14:30:08.000Z
2022-02-18T15:28:38.000Z
run_tests.py
chris48s/arcgis2geojson
f25f57acb1b393cd9d5916ab04d1606668caf4a8
[ "MIT" ]
20
2017-07-21T07:59:04.000Z
2022-02-21T23:03:14.000Z
run_tests.py
chris48s/arcgis2geojson
f25f57acb1b393cd9d5916ab04d1606668caf4a8
[ "MIT" ]
9
2017-05-15T03:53:58.000Z
2022-03-04T07:08:54.000Z
#!/usr/bin/env python import io import json import unittest from contextlib import redirect_stdout from copy import deepcopy from unittest.mock import patch from arcgis2geojson import arcgis2geojson, main """ arcgis2geojson is a derivative work of ESRI's arcgis-to-geojson-utils: https://github.com/Esri/arcgis-to-geo...
34.13815
93
0.414442
793fa94c9988cc0b8956c5faad522d48eecff6d2
9,117
py
Python
main.py
FMI-RobertoDeresu/fmi-text-to-image
23b494d4f79f7bef7b0b664ebf5a94917018b50a
[ "Apache-2.0" ]
null
null
null
main.py
FMI-RobertoDeresu/fmi-text-to-image
23b494d4f79f7bef7b0b664ebf5a94917018b50a
[ "Apache-2.0" ]
10
2020-01-28T22:47:22.000Z
2022-02-10T00:15:47.000Z
main.py
FMI-RobertoDeresu/fmi-text-to-image
23b494d4f79f7bef7b0b664ebf5a94917018b50a
[ "Apache-2.0" ]
null
null
null
import utils import nltk import argparse import tensorflow as tf import time import re import numpy as np import skimage import matplotlib.pyplot as plt from pathlib import Path from tensorflow.python.client import device_lib from models.word2vec import Word2Vec from matplotlib import image as mpimg from tf_imports imp...
33.766667
117
0.626083
793fa96315e0e8b5a6e7bb57aac3b178d7300b1c
715
py
Python
algorithms/implementation/migratory_birds.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
algorithms/implementation/migratory_birds.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
algorithms/implementation/migratory_birds.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
def get_most_common_bird_type(bird_types): bird_type_occurrences_map = { i: 0 for i in range(1, 6) } for bird_type in bird_types: bird_type_occurrences_map[bird_type] += 1 most_common_bird_type = 0 max_bird_type_occurrences = 0 for i in range(1, 6): ...
20.428571
68
0.629371
793faaa5b771bbd349adc1cc0064ad0a34d4e780
38,055
py
Python
NLP_backdoor/RIPPLe/poison.py
ziqi-zhang/ReMoS_artifact
9cbac09333aeb0891cc54d287d6829fdf4bd5d23
[ "MIT" ]
4
2022-03-14T06:11:19.000Z
2022-03-16T09:21:59.000Z
NLP_backdoor/RIPPLe/poison.py
ziqi-zhang/ReMoS_artifact
9cbac09333aeb0891cc54d287d6829fdf4bd5d23
[ "MIT" ]
null
null
null
NLP_backdoor/RIPPLe/poison.py
ziqi-zhang/ReMoS_artifact
9cbac09333aeb0891cc54d287d6829fdf4bd5d23
[ "MIT" ]
2
2022-03-14T22:58:24.000Z
2022-03-16T05:29:37.000Z
from typing import Dict, Union, Callable, List, Optional from pathlib import Path import subprocess import numpy as np import pandas as pd import random import torch import yaml import json import shutil from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer from sklearn.linear_model import Logist...
35.968809
94
0.627145
793fab9081e70e371c9f4e66a3065350cab7d423
1,968
py
Python
wbb/modules/parse_preview.py
tekavci/sticker
05165cbed620452a582665f463055a9d9ab85c35
[ "MIT" ]
null
null
null
wbb/modules/parse_preview.py
tekavci/sticker
05165cbed620452a582665f463055a9d9ab85c35
[ "MIT" ]
null
null
null
wbb/modules/parse_preview.py
tekavci/sticker
05165cbed620452a582665f463055a9d9ab85c35
[ "MIT" ]
null
null
null
from asyncio import sleep from pyrogram import filters from pyrogram.types import Message from wbb import SUDOERS, USERBOT_PREFIX, app2, eor from wbb.core.sections import section @app2.on_message( filters.command("parse_preadfaaaaaaaaaaaaaaaaaaaaaaaview", prefixes=USERBOT_PREFIX) & filters.user(SUDOERS), ) ...
24.296296
87
0.559451
793fad200ba38e8c9ace69f624c778b41775bf7b
1,070
py
Python
nmigen/compat/fhdl/conv_output.py
davidlattimore/nmigen
8fe319f065807f421b092e7ffb8b90748512bf8c
[ "BSD-2-Clause" ]
528
2020-01-28T18:21:00.000Z
2021-12-09T06:27:51.000Z
nmigen/compat/fhdl/conv_output.py
davidlattimore/nmigen
8fe319f065807f421b092e7ffb8b90748512bf8c
[ "BSD-2-Clause" ]
360
2020-01-28T18:34:30.000Z
2021-12-10T08:03:32.000Z
nmigen/compat/fhdl/conv_output.py
davidlattimore/nmigen
8fe319f065807f421b092e7ffb8b90748512bf8c
[ "BSD-2-Clause" ]
100
2020-02-06T21:55:46.000Z
2021-11-25T19:20:44.000Z
from operator import itemgetter class ConvOutput: def __init__(self): self.main_source = "" self.data_files = dict() def set_main_source(self, src): self.main_source = src def add_data_file(self, filename_base, content): filename = filename_base i = 1 whil...
29.722222
64
0.549533
793fad3b76e7c2a1790144bd421054e1408fdea4
22,686
py
Python
tests/models/test_responses.py
hemanth7787/httpx
cf091d613b76e581e0b1f4d78327616589ebc724
[ "BSD-3-Clause" ]
null
null
null
tests/models/test_responses.py
hemanth7787/httpx
cf091d613b76e581e0b1f4d78327616589ebc724
[ "BSD-3-Clause" ]
null
null
null
tests/models/test_responses.py
hemanth7787/httpx
cf091d613b76e581e0b1f4d78327616589ebc724
[ "BSD-3-Clause" ]
1
2020-06-30T17:38:47.000Z
2020-06-30T17:38:47.000Z
import json from unittest import mock import brotli import pytest import httpx class StreamingBody: def __iter__(self): yield b"Hello, " yield b"world!" def streaming_body(): yield b"Hello, " yield b"world!" async def async_streaming_body(): yield b"Hello, " yield b"world!" ...
27.168862
86
0.651768
793fad3cb01fc116e50f0e15996c43d2b4577a06
6,084
py
Python
autocalibration/lib/python2.7/site-packages/matplotlib/units.py
prcalopa/reactable-autocalibration
eb67a5b5ee0e50f1effa773f6f3f934b5fda6fcf
[ "MIT" ]
5
2017-11-15T10:33:42.000Z
2021-11-16T02:21:31.000Z
matplotlib/units.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2017-10-28T03:30:26.000Z
2017-10-28T03:31:00.000Z
matplotlib/units.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
6
2017-11-30T00:34:20.000Z
2021-05-20T02:58:02.000Z
""" The classes here provide support for using custom classes with matplotlib, e.g., those that do not expose the array interface but know how to convert themselves to arrays. It also supports classes with units and units conversion. Use cases include converters for custom objects, e.g., a list of datetime objects, a...
34.765714
78
0.6167
793fad882d9b99f7504ecf41c904cfead09c188a
2,670
py
Python
Lib/site-packages/pygments/lexers/eiffel.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
1
2021-12-14T21:23:25.000Z
2021-12-14T21:23:25.000Z
Lib/site-packages/pygments/lexers/eiffel.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
1,242
2019-08-31T16:03:19.000Z
2019-08-31T18:00:46.000Z
Lib/site-packages/pygments/lexers/eiffel.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
1
2019-10-04T01:56:03.000Z
2019-10-04T01:56:03.000Z
""" pygments.lexers.eiffel ~~~~~~~~~~~~~~~~~~~~~~ Lexer for the Eiffel language. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexer import RegexLexer, include, words, bygroups from pygments.token import Text, Comment,...
39.264706
97
0.461049