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
3806d22501ee229217c352fc328cf37acd3d175c
105,214
py
Python
projects/src/main/python/CodeJam/Y14R5P1/liutianren/generated_py_26641b3d193b4327b8b56443c323055b.py
DynamicCodeSearch/CodeSeer
ee985ece7691691585952eb88565f0e08bdc9113
[ "MIT" ]
5
2020-04-05T18:04:13.000Z
2021-04-13T20:34:19.000Z
projects/src/main/python/CodeJam/Y14R5P1/liutianren/generated_py_26641b3d193b4327b8b56443c323055b.py
DynamicCodeSearch/CodeSeer
ee985ece7691691585952eb88565f0e08bdc9113
[ "MIT" ]
1
2020-04-29T21:42:26.000Z
2020-05-01T23:45:45.000Z
projects/src/main/python/CodeJam/Y14R5P1/liutianren/generated_py_26641b3d193b4327b8b56443c323055b.py
DynamicCodeSearch/CodeSeer
ee985ece7691691585952eb88565f0e08bdc9113
[ "MIT" ]
3
2020-01-27T16:02:14.000Z
2021-02-08T13:25:15.000Z
import sys sys.path.append('/home/george2/Raise/ProgramRepair/CodeSeer/projects/src/main/python') from CodeJam.Y14R5P1.liutianren.pa import * def func_b7ac5fe003534a369b5aec00bcdd371b(A, q, p, r, i, s): a = s + (i * p + q) % r A.append(a) return a def func_4f647da57d784845a69b2374612069c0(a, A): A.ap...
24.605706
86
0.49808
b4578c34b04c3585b1328f3f297594c929cc1188
7,782
py
Python
tools/nni_cmd/tensorboard_utils.py
lawwu/nni
b869dd48dfe36392e7b78c70ea35eb6d4b4779dc
[ "MIT" ]
2
2019-07-08T10:02:36.000Z
2019-07-08T10:05:27.000Z
tools/nni_cmd/tensorboard_utils.py
lawwu/nni
b869dd48dfe36392e7b78c70ea35eb6d4b4779dc
[ "MIT" ]
16
2020-01-28T22:44:42.000Z
2022-02-10T00:20:32.000Z
tools/nni_cmd/tensorboard_utils.py
lawwu/nni
b869dd48dfe36392e7b78c70ea35eb6d4b4779dc
[ "MIT" ]
1
2019-11-29T08:56:14.000Z
2019-11-29T08:56:14.000Z
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # 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 t...
47.45122
164
0.721023
ef58a0e2deef128ebd96ae93e26287107f7cadfd
1,053
py
Python
b_cfn_custom_userpool_authorizer/source/policy_document.py
simonasvaitkus/B.CfnCustomUserPoolAuthorizer
6532665d3b29031f86c19205cd58b0bcd9e4f827
[ "Apache-2.0" ]
null
null
null
b_cfn_custom_userpool_authorizer/source/policy_document.py
simonasvaitkus/B.CfnCustomUserPoolAuthorizer
6532665d3b29031f86c19205cd58b0bcd9e4f827
[ "Apache-2.0" ]
null
null
null
b_cfn_custom_userpool_authorizer/source/policy_document.py
simonasvaitkus/B.CfnCustomUserPoolAuthorizer
6532665d3b29031f86c19205cd58b0bcd9e4f827
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Any class PolicyDocument: """ Policy document that is constructed according to this documentation: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html """ def __init__( self, region: str, ...
29.25
109
0.488129
243fade710378b8a36ab7c0f62d54e2b230afe5d
4,799
py
Python
bridge_env.py
wuminghui100/bridge-maintenance-optimizer
1f4b7a5e74a56a508f33acb8ea0c7a7cbc870e9d
[ "MIT" ]
null
null
null
bridge_env.py
wuminghui100/bridge-maintenance-optimizer
1f4b7a5e74a56a508f33acb8ea0c7a7cbc870e9d
[ "MIT" ]
null
null
null
bridge_env.py
wuminghui100/bridge-maintenance-optimizer
1f4b7a5e74a56a508f33acb8ea0c7a7cbc870e9d
[ "MIT" ]
null
null
null
import numpy as np from utils import time_encoder, processsa import math,os from model_generate import Predictor class BridgeEnv: def __init__(self): self.time = 0 self.n_features = 12 self.action_space = [0,1,2,3] self.n_actions = len(self.action_space) self.stat...
34.278571
81
0.562826
35a003b7613e1688cd576803407bef20894a773d
1,598
py
Python
setup.py
definitelyprobably/alnitak
9e0413ce4c7408a8516570c980def27ebe8ee6c3
[ "MIT" ]
null
null
null
setup.py
definitelyprobably/alnitak
9e0413ce4c7408a8516570c980def27ebe8ee6c3
[ "MIT" ]
null
null
null
setup.py
definitelyprobably/alnitak
9e0413ce4c7408a8516570c980def27ebe8ee6c3
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import alnitak from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='alnitak', version=alnitak.__version__, packages=fin...
28.035088
75
0.586358
113f3a77047aa9b0543802e27aa945a6537c4cd4
334
py
Python
arquivos-py/CursoEmVideo_Python3_AULAS/aula-14d.py
oliveiralecca/cursoemvideo-python3
e0a3e27d73a49ce0e72ae4faa9ac0c6da9811d2e
[ "MIT" ]
2
2021-07-14T13:22:36.000Z
2021-07-18T01:28:21.000Z
arquivos-py/CursoEmVideo_Python3_AULAS/aula-14d.py
oliveiralecca/cursoemvideo-python3
e0a3e27d73a49ce0e72ae4faa9ac0c6da9811d2e
[ "MIT" ]
2
2021-07-18T01:09:26.000Z
2021-07-18T01:30:23.000Z
arquivos-py/CursoEmVideo_Python3_AULAS/aula-14d.py
oliveiralecca/cursoemvideo-python3
e0a3e27d73a49ce0e72ae4faa9ac0c6da9811d2e
[ "MIT" ]
null
null
null
n = 1 par = impar = 0 while n != 0: n = int(input('Digite um número: ')) if n != 0: # PARA QUE O 0 QUE INDICA O FIM DO PROGRAMA, NÃO SEJA CONSIDERADO NA CONTAGEM! if n % 2 == 0: par += 1 else: impar += 1 print('Você digitou {} números PARES e {} números ÍMPARES!'.format...
30.363636
95
0.541916
d0055329dca7c68c3a82bd642ce915d58016b98e
370
py
Python
session-bot/bot/utils.py
Chasbob/session-bot
a7090e11a16801bd74816c690cb62e19d6fcc2f4
[ "MIT" ]
null
null
null
session-bot/bot/utils.py
Chasbob/session-bot
a7090e11a16801bd74816c690cb62e19d6fcc2f4
[ "MIT" ]
null
null
null
session-bot/bot/utils.py
Chasbob/session-bot
a7090e11a16801bd74816c690cb62e19d6fcc2f4
[ "MIT" ]
null
null
null
import random from typing import List import discord async def add_reactions(message, emojis: List[discord.Emoji] = None): if emojis is None or len(emojis) < 4: emojis = ["💻", "🙌", "🔥", "💯", "🍕", "🎉", "🥳", "💡", "📣"] else: emojis = emojis.copy() random.shuffle(emojis) for emoj...
24.666667
69
0.583784
61a3b5e5e45d9917a885b9c7ab4547ed3c3b107d
4,403
py
Python
api/app/models/click_factory.py
meedan/vframe
736f46767c587dd70fc50f5e5783c0a64b6f51e1
[ "MIT" ]
2
2019-05-25T20:48:29.000Z
2019-07-10T12:42:17.000Z
api/app/models/click_factory.py
meedan/vframe
736f46767c587dd70fc50f5e5783c0a64b6f51e1
[ "MIT" ]
1
2019-12-11T14:53:07.000Z
2019-12-11T14:53:07.000Z
api/app/models/click_factory.py
meedan/vframe
736f46767c587dd70fc50f5e5783c0a64b6f51e1
[ "MIT" ]
null
null
null
""" Click processor factory - Inspired by and used code from @wiretapped's HTSLAM codebase - In particular the very useful """ import os import sys from os.path import join from pathlib import Path import os from os.path import join import sys from functools import update_wrapper, wraps import itertools from pathlib ...
30.157534
104
0.626618
5b9329620d9883de9922163dc970fd09a86c75bf
7,070
py
Python
apps/dashboard/widgets.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
apps/dashboard/widgets.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
apps/dashboard/widgets.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- # # Created by 'myth' on 10/18/15 from django.forms.utils import format_html from django.forms.widgets import TextInput from django.utils.encoding import force_text DATEPICKER_WIDGET_STRING = """ <div class="input-group dp">\r\n <span class="input-group-btn datepickerbutton">\r\n <a href="#" cl...
33.666667
114
0.632532
6463129b08c88d18eeccb0468ae0677252a19cd9
3,303
py
Python
boldigger_cline/boldblast_coi.py
DominikBuchner/BOLDigger-commandline
a75fbc4b48b094bd9cecd0e547b04cb948b4b41d
[ "MIT" ]
5
2020-08-25T14:56:40.000Z
2022-01-22T18:34:42.000Z
boldigger_cline/boldblast_coi.py
DominikBuchner/BOLDigger-commandline
a75fbc4b48b094bd9cecd0e547b04cb948b4b41d
[ "MIT" ]
4
2021-04-08T13:45:26.000Z
2022-03-17T14:56:18.000Z
boldigger_cline/boldblast_coi.py
DominikBuchner/BOLDigger-commandline
a75fbc4b48b094bd9cecd0e547b04cb948b4b41d
[ "MIT" ]
null
null
null
import requests_html, openpyxl, ntpath, os, datetime, pkg_resources, sys import numpy as np import pandas as pd from pathlib import Path from bs4 import BeautifulSoup as BSoup from requests.exceptions import ConnectionError from requests.exceptions import ReadTimeout from openpyxl.utils.dataframe import dataframe_to_ro...
39.795181
149
0.644566
e8ecfa679235c39e156b670195639846fc3e2dd0
45,137
py
Python
python/ccxt/async_support/hollaex.py
RusEu/ccxt
d6d2b3e2f54a59d102102ee2858eca4d6702fecc
[ "MIT" ]
null
null
null
python/ccxt/async_support/hollaex.py
RusEu/ccxt
d6d2b3e2f54a59d102102ee2858eca4d6702fecc
[ "MIT" ]
null
null
null
python/ccxt/async_support/hollaex.py
RusEu/ccxt
d6d2b3e2f54a59d102102ee2858eca4d6702fecc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange from ccxt.base.errors import AuthenticationError from ccxt.base.errors import Argumen...
37.739967
144
0.43286
62bfb75239157984cbb1a411424a90c3f1f5a249
758
py
Python
11_challenge/11_challenge.py
QQ-88/wtfiswronghere
5497a4354e6f02b32ff4b4afba23e06054d2f308
[ "MIT" ]
null
null
null
11_challenge/11_challenge.py
QQ-88/wtfiswronghere
5497a4354e6f02b32ff4b4afba23e06054d2f308
[ "MIT" ]
null
null
null
11_challenge/11_challenge.py
QQ-88/wtfiswronghere
5497a4354e6f02b32ff4b4afba23e06054d2f308
[ "MIT" ]
null
null
null
""" We will use this script to teach Python to absolute beginners The script is an example of Fizz-Buzz implemented in Python The FizzBuzz problem: For all integers between 1 and 99 (include both): # print fizz for multiples of 3 # print buzz for multiples of 5 # print fizzbuzz for multiples of 3 and 5" ...
28.074074
61
0.626649
e18ec69effd6be4b6ef7cac023f7b1ae77a2414e
1,776
py
Python
fsl/wrappers/fast.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
null
null
null
fsl/wrappers/fast.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
null
null
null
fsl/wrappers/fast.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # fast.py - Wrapper for the FSL fast command. # # Author: Martin Craig <martin.craig@eng.ox.ac.uk> # Paul McCarthy <pauldmccarthy@gmail.com> # """This module provides the :func:`fast` function, a wrapper for the FSL `FAST <https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FAST>`_ command. """ imp...
27.75
76
0.54223
bc9703f00ce691ed15962a0358b160b0c5a00904
2,379
py
Python
ui.py
smh0505/minesweeper
bbcf13df44743cdf3e8153e08da0b9ff27a502ca
[ "MIT" ]
null
null
null
ui.py
smh0505/minesweeper
bbcf13df44743cdf3e8153e08da0b9ff27a502ca
[ "MIT" ]
null
null
null
ui.py
smh0505/minesweeper
bbcf13df44743cdf3e8153e08da0b9ff27a502ca
[ "MIT" ]
null
null
null
import pygame as pg import cell class UI: def __init__(self, size, color_b): self.background = pg.Surface(size).convert() self.background.fill(color_b) self.menu = [] self.selected = 0 def selectUp(self): self.selected -= 1 if self.selected < 0: sel...
30.113924
98
0.604876
42e7c7dcc59babd85bdf36b23f21c4cd20d36b4e
914
py
Python
lib/python/treadmill/cli/scheduler/servers.py
drienyov/treadmill
ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de
[ "Apache-2.0" ]
2
2017-10-31T18:48:20.000Z
2018-03-04T20:35:20.000Z
lib/python/treadmill/cli/scheduler/servers.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill/cli/scheduler/servers.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
"""Show servers report.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import click import pandas as pd from treadmill import cli from treadmill.cli.scheduler import fetch_report, print_report from treadmill imp...
28.5625
79
0.727571
a6382fcaf230b75840b23256ea8d951fdeb63ec1
169
py
Python
thugmeme/wsgi.py
sameerkumar18/thugmeme
47cb47454693cce2ef6532d71e9076958991d426
[ "MIT" ]
1
2020-02-21T08:14:26.000Z
2020-02-21T08:14:26.000Z
thugmeme/wsgi.py
sameerkumar18/thugmeme
47cb47454693cce2ef6532d71e9076958991d426
[ "MIT" ]
null
null
null
thugmeme/wsgi.py
sameerkumar18/thugmeme
47cb47454693cce2ef6532d71e9076958991d426
[ "MIT" ]
null
null
null
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thugmeme.settings") application = get_wsgi_application()
21.125
68
0.828402
35ec2d0e6687da7f15fef5015af180ca853fa496
35,450
py
Python
sdk/python/pulumi_aws_native/fsx/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/fsx/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/fsx/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
41.461988
169
0.679492
8710e341bf8332c2dcb5221163d7e3005aaa71a2
617
py
Python
mysite/myapp/migrations/0004_auto_20201008_1703.py
Jvong-max/instagramclone
d0658c02ba57918f832ab0040f8cb62f6485667b
[ "MIT" ]
null
null
null
mysite/myapp/migrations/0004_auto_20201008_1703.py
Jvong-max/instagramclone
d0658c02ba57918f832ab0040f8cb62f6485667b
[ "MIT" ]
5
2021-06-04T23:53:10.000Z
2022-01-13T03:23:31.000Z
mysite/myapp/migrations/0004_auto_20201008_1703.py
Jvong-max/instagramclone
d0658c02ba57918f832ab0040f8cb62f6485667b
[ "MIT" ]
2
2020-09-14T06:37:18.000Z
2021-10-04T20:53:19.000Z
# Generated by Django 3.1.2 on 2020-10-08 17:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0003_auto_20201006_1713'), ] operations = [ migrations.AddField( model_name='suggestionmodel', name='image'...
25.708333
94
0.598055
6df8072614dba19010eaa8cda957d27f2755e281
24,234
py
Python
pypeit/specobjs.py
seib2/PypeIt
18ce33aa8aa12b8ee51303ad87a723ec81e0e6f8
[ "BSD-3-Clause" ]
1
2018-12-18T21:56:23.000Z
2018-12-18T21:56:23.000Z
pypeit/specobjs.py
feigewang/PypeIt
4c68b38cb907345a480d7afee58200a05ecd4556
[ "BSD-3-Clause" ]
null
null
null
pypeit/specobjs.py
feigewang/PypeIt
4c68b38cb907345a480d7afee58200a05ecd4556
[ "BSD-3-Clause" ]
null
null
null
""" Module for the SpecObjs and SpecObj classes """ import copy import re import numpy as np from scipy import interpolate from astropy import units from astropy.table import Table from astropy.units import Quantity from astropy.utils import isiterable from linetools.spectra import xspectrum1d from pypeit import m...
31.069231
124
0.571594
e3a676d073363aa3a7dd346f56038ac2059bcc2f
6,843
py
Python
src/services/application_service.py
ismetacar/ertis-auth
64727cc8201d5fcc955485e94262500d63ff4b17
[ "MIT" ]
17
2020-06-17T15:28:59.000Z
2021-09-21T19:18:14.000Z
src/services/application_service.py
ismetacar/Ertis-Auth
5521eb8a0b11fca7c5ff2a4ecc6cc0b9af59aa8f
[ "MIT" ]
5
2020-06-17T21:22:56.000Z
2021-05-02T19:10:05.000Z
src/services/application_service.py
ismetacar/Ertis-Auth
5521eb8a0b11fca7c5ff2a4ecc6cc0b9af59aa8f
[ "MIT" ]
2
2021-03-02T17:08:07.000Z
2021-04-07T18:11:59.000Z
import copy import datetime from bson import ObjectId from src.resources.applications.applications import ( generate_app_secrets, pop_non_updatable_fields, ) from src.resources.generic import query from src.utils.errors import ErtisError from src.utils.events import Event from src.utils.json_helpers import mayb...
37.393443
109
0.602221
37df59b75c168508d5a2df12266cf64483ab8f43
19,010
py
Python
zulip/integrations/jabber/jabber_mirror_backend.py
iishiishii/python-zulip-api
8500a3238739a080e1809e204c54685437631457
[ "Apache-2.0" ]
null
null
null
zulip/integrations/jabber/jabber_mirror_backend.py
iishiishii/python-zulip-api
8500a3238739a080e1809e204c54685437631457
[ "Apache-2.0" ]
null
null
null
zulip/integrations/jabber/jabber_mirror_backend.py
iishiishii/python-zulip-api
8500a3238739a080e1809e204c54685437631457
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2013 Permabit, Inc. # Copyright (C) 2013--2014 Zulip, Inc. # # 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 ...
39.115226
108
0.593425
5c901f90e72841f76661eedc6ff417824b9d323a
1,917
py
Python
tests/meltano/api/controllers/test_repos.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
122
2021-06-21T17:30:29.000Z
2022-03-25T06:21:38.000Z
tests/meltano/api/controllers/test_repos.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
null
null
null
tests/meltano/api/controllers/test_repos.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
21
2021-06-22T10:08:15.000Z
2022-03-18T08:57:02.000Z
import json import pytest from flask import url_for def assert_has_items(entry, count): return len(entry["items"]) == count @pytest.mark.usefixtures("add_model", "seed_users") class TestRepos: def test_index(self, api, app): with app.test_request_context(): res = api.get(url_for("repos....
29.492308
67
0.598852
de75c0cccb6012e4c804f7f982768a68b6afe5b1
282
py
Python
abc/abc140/abc140b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc140/abc140b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc140/abc140b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N = int(input()) A = [int(e) - 1 for e in input().split()] B = list(map(int, input().split())) C = list(map(int, input().split())) before = N result = 0 for i in range(N): result += B[A[i]] if before + 1 == A[i]: result += C[before] before = A[i] print(result)
20.142857
41
0.535461
0f6dcb1350c691c65fe36fc4df05ace275c8e099
520
py
Python
idb/ipc/crash_delete.py
sergey-plevako-badoo/FBSimulatorControl
117af8508ba7405bdbacd29ec95a0523b3926ad3
[ "MIT" ]
1
2019-06-12T16:46:25.000Z
2019-06-12T16:46:25.000Z
idb/ipc/crash_delete.py
BalestraPatrick/idb
9deac2af129e7595c303c121944034c556202454
[ "MIT" ]
null
null
null
idb/ipc/crash_delete.py
BalestraPatrick/idb
9deac2af129e7595c303c121944034c556202454
[ "MIT" ]
1
2021-08-20T08:04:16.000Z
2021-08-20T08:04:16.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from typing import List from idb.common.types import CrashLogInfo, CrashLogQuery from idb.grpc.types import CompanionClient from idb.ipc.mapping.crash import _to_crash_log_info_list, _to_crash_log_query_proto async def cl...
37.142857
86
0.813462
77b881b3375fb28268330303ec7e3a5f94c04e90
963
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/gateway_route_list_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/gateway_route_list_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/gateway_route_list_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
33.206897
76
0.589823
1d48687873c6bfed350fdd12ee20de746c8dfa3a
23,514
py
Python
onu.py
jfcsantos/python-threads
b2b96e556b987400a4dcc5d59249065d0f865557
[ "MIT" ]
null
null
null
onu.py
jfcsantos/python-threads
b2b96e556b987400a4dcc5d59249065d0f865557
[ "MIT" ]
null
null
null
onu.py
jfcsantos/python-threads
b2b96e556b987400a4dcc5d59249065d0f865557
[ "MIT" ]
null
null
null
from datetime import datetime import time import sys import threading import json import requests from BeautifulSoup import BeautifulSoup from pprint import pprint from inspect import currentframe, getframeinfo import onu_logging class jobThread (threading.Thread): def __init__(self, threadLevel, parent, job, jobI...
42.21544
146
0.546355
06c1f29b631c3d5e7c1a0679d9060e4e4b86ca82
4,389
py
Python
torchvision/prototype/models/quantization/shufflenetv2.py
ethanwhite/vision
348f75ceb5b971dda7a2695c285bd5f8d4277069
[ "BSD-3-Clause" ]
null
null
null
torchvision/prototype/models/quantization/shufflenetv2.py
ethanwhite/vision
348f75ceb5b971dda7a2695c285bd5f8d4277069
[ "BSD-3-Clause" ]
null
null
null
torchvision/prototype/models/quantization/shufflenetv2.py
ethanwhite/vision
348f75ceb5b971dda7a2695c285bd5f8d4277069
[ "BSD-3-Clause" ]
null
null
null
import warnings from functools import partial from typing import Any, List, Optional, Union from torchvision.prototype.transforms import ImageNetEval from torchvision.transforms.functional import InterpolationMode from ....models.quantization.shufflenetv2 import ( QuantizableShuffleNetV2, _replace_relu, q...
32.272059
117
0.683299
628303b5c84182334e2499920420c16c758f076e
113
py
Python
Zadaniy/Examples/primer10.py
Dmitry-15/17_laba
adfa9fd9a10e1e8ed1479e0829987c3d86b14ca0
[ "MIT" ]
null
null
null
Zadaniy/Examples/primer10.py
Dmitry-15/17_laba
adfa9fd9a10e1e8ed1479e0829987c3d86b14ca0
[ "MIT" ]
null
null
null
Zadaniy/Examples/primer10.py
Dmitry-15/17_laba
adfa9fd9a10e1e8ed1479e0829987c3d86b14ca0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os if __name__ == "__main__": os.remove("file3.txt")
14.125
26
0.60177
d87c06bf3d696d54702c5de3db638e8353dabed1
17,310
py
Python
moler/connection_observer.py
nokia/moler
13cb3d1329a8904ac074f269b8c9ec1955e3ae30
[ "BSD-3-Clause" ]
57
2018-02-20T08:16:47.000Z
2022-03-28T10:36:57.000Z
moler/connection_observer.py
nokia/moler
13cb3d1329a8904ac074f269b8c9ec1955e3ae30
[ "BSD-3-Clause" ]
377
2018-07-19T11:56:27.000Z
2021-07-09T13:08:12.000Z
moler/connection_observer.py
nokia/moler
13cb3d1329a8904ac074f269b8c9ec1955e3ae30
[ "BSD-3-Clause" ]
24
2018-04-14T20:49:40.000Z
2022-03-29T10:44:26.000Z
# -*- coding: utf-8 -*- __author__ = 'Grzegorz Latuszek, Marcin Usielski, Michal Ernst' __copyright__ = 'Copyright (C) 2018-2021 Nokia' __email__ = 'grzegorz.latuszek@nokia.com, marcin.usielski@nokia.com, michal.ernst@nokia.com' import logging import threading import time from abc import abstractmethod, ABCMeta from...
39.610984
117
0.643096
16a705f417863942716b0e96c261e5736fd3281e
5,522
py
Python
h8mail/utils/localsearch.py
denmilu/h8mail_email_OSINT
5df57799709fbe6ee724f941483a00af360398ac
[ "BSD-3-Clause" ]
2
2019-12-20T04:07:48.000Z
2020-04-05T14:44:25.000Z
h8mail/utils/localsearch.py
likescam/h8mail_email_OSINT
5df57799709fbe6ee724f941483a00af360398ac
[ "BSD-3-Clause" ]
null
null
null
h8mail/utils/localsearch.py
likescam/h8mail_email_OSINT
5df57799709fbe6ee724f941483a00af360398ac
[ "BSD-3-Clause" ]
2
2020-02-15T18:08:58.000Z
2020-04-05T14:44:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from multiprocessing import Pool from itertools import takewhile, repeat from .classes import local_breach_target from .colors import colors as c def local_to_targets(targets, local_results): """ Appends data from local_breach_target objects using exist...
36.091503
99
0.487142
96b2270a408424a54e6c0b235e22eb2f896d3c85
2,836
py
Python
PythonFileTransfer/src/main/Utils/NetUtils.py
mgsky1/Mercury
94bff94443f8a0f4054ff71189804d5e942fb19e
[ "Apache-2.0" ]
12
2019-10-28T15:35:06.000Z
2021-11-17T06:50:18.000Z
PythonFileTransfer/src/main/Utils/NetUtils.py
mgsky1/Mercury
94bff94443f8a0f4054ff71189804d5e942fb19e
[ "Apache-2.0" ]
null
null
null
PythonFileTransfer/src/main/Utils/NetUtils.py
mgsky1/Mercury
94bff94443f8a0f4054ff71189804d5e942fb19e
[ "Apache-2.0" ]
6
2019-12-06T13:36:42.000Z
2021-11-15T13:13:50.000Z
''' @desc:网络工具类 @author: Martin Huang @time: created on 2019/5/29 18:55 @修改记录:2019/6/3 => 完成基础骨架 2019/6/6 => 增加异常处理 2019/6/7 => 增加端口连通性检测 2019/6/8 => BUG修复 ''' import socket from threading import Lock from Utils.ConversionUtils import ConversionUtils from Utils.IOUtils import IOUtils #pych...
29.237113
71
0.52292
86dd311e31406b1f9dd803db14b646d98e5b48ee
7,228
py
Python
train.py
patrickctrf/6-DOF-Inertial-Odometry
4e7a96408db69d609f0250fd6629c39173fc3863
[ "BSD-3-Clause" ]
null
null
null
train.py
patrickctrf/6-DOF-Inertial-Odometry
4e7a96408db69d609f0250fd6629c39173fc3863
[ "BSD-3-Clause" ]
null
null
null
train.py
patrickctrf/6-DOF-Inertial-Odometry
4e7a96408db69d609f0250fd6629c39173fc3863
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import argparse from keras.callbacks import ModelCheckpoint, TensorBoard from keras.models import load_model from tensorflow.keras.optimizers import Adam from sklearn.utils import shuffle from time import time from dataset import * from model import * from util imp...
52.376812
180
0.751522
e299c639923e0fe166acdb968c0fd2c4e7ff8264
2,802
py
Python
setup.py
ggraham/certbot-haproxy
80a62713160a11601de59e28913a819e179ece84
[ "Apache-2.0" ]
null
null
null
setup.py
ggraham/certbot-haproxy
80a62713160a11601de59e28913a819e179ece84
[ "Apache-2.0" ]
null
null
null
setup.py
ggraham/certbot-haproxy
80a62713160a11601de59e28913a819e179ece84
[ "Apache-2.0" ]
null
null
null
import sys from setuptools import setup from setuptools import find_packages own_version = '0.1.1' certbot_version = '0.8.1' # Please update tox.ini when modifying dependency version requirements install_requires = [ 'acme>={0}'.format(certbot_version), 'certbot>={0}'.format(certbot_version), # For pkg_r...
32.964706
79
0.669879
2f993cfac43ecaf5c5f78a705a56cd95e9ff0e4c
409
py
Python
tests/stacks/test_stack_sort.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
tests/stacks/test_stack_sort.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
tests/stacks/test_stack_sort.py
davjohnst/fundamentals
f8aff4621432c3187305dd04563425f54ea08495
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from unittest import TestCase from fundamentals.stacks.sort_using_stack import StackSort class TestStackSort(TestCase): def test_stack_sort(self): a = [3, 6, 8, 2, 78, 1, 23, 45, 9] b = a[:] std = StackSort.sortStack(a) true_std = sorted(b) self.ass...
16.36
58
0.621027
2d99c6c0793fde0547ef142cf6ef6088c330f3e1
274
py
Python
transport/transport/doctype/trip_indent_detail/trip_indent_detail.py
finbyz/transport
7e12b900e79f18f745e20f09433242354e75cdab
[ "MIT" ]
2
2022-02-17T16:03:04.000Z
2022-03-29T09:27:32.000Z
transport/transport/doctype/trip_indent_detail/trip_indent_detail.py
finbyz/transport
7e12b900e79f18f745e20f09433242354e75cdab
[ "MIT" ]
null
null
null
transport/transport/doctype/trip_indent_detail/trip_indent_detail.py
finbyz/transport
7e12b900e79f18f745e20f09433242354e75cdab
[ "MIT" ]
5
2017-09-19T13:21:25.000Z
2022-02-17T16:03:09.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018, FinByz Tech Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class TripIndentDetail(Document): pass
24.909091
60
0.777372
ac926c14a03007d8cf87e6d080d868263c2d8e42
847
py
Python
atom/nucleus/python/test/test_page_score.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_page_score.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_page_score.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
20.658537
79
0.689492
2cba71c458c1b04abc67fc25f3db44d4fc6a7ca9
1,496
py
Python
Config.py
r00tmebaby/Computer-Networking-Assigment-Cleint-Server
e3ce25d1e154a17efb64d8d8c7a1215a678861e6
[ "MIT" ]
null
null
null
Config.py
r00tmebaby/Computer-Networking-Assigment-Cleint-Server
e3ce25d1e154a17efb64d8d8c7a1215a678861e6
[ "MIT" ]
null
null
null
Config.py
r00tmebaby/Computer-Networking-Assigment-Cleint-Server
e3ce25d1e154a17efb64d8d8c7a1215a678861e6
[ "MIT" ]
null
null
null
############################################## # Config File : Computer Networking Assigment # Author : Zdravko Georgiev # License : MIT # Github : https://github.com/r00tmebaby # Copyright (c) 2019 / 31.03.2019 # Version : 0.1 ############################################### import base64 Cipher_Key = ...
39.368421
153
0.584225
297916326a291a4b534c9f1b99deb25849f1ebcd
4,600
py
Python
app/main.py
pwcazenave/tinypilot
7e67d9092d7f6e9e49b6520c85b448470ba8b82b
[ "MIT" ]
null
null
null
app/main.py
pwcazenave/tinypilot
7e67d9092d7f6e9e49b6520c85b448470ba8b82b
[ "MIT" ]
null
null
null
app/main.py
pwcazenave/tinypilot
7e67d9092d7f6e9e49b6520c85b448470ba8b82b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging import os import flask import flask_socketio import flask_wtf import hid import js_to_hid import local_system root_logger = logging.getLogger() handler = logging.StreamHandler() formatter = logging.Formatter( '%(asctime)s %(name)-15s %(levelname)-4s %(message)s', '%Y-%m-%d %...
29.487179
79
0.615
24df60998ac79f919f601398aa17f3e4393a3b27
6,228
py
Python
bindings/python/cntk/losses/tests/cosine_distance_test.py
shyamalschandra/CNTK
0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d
[ "MIT" ]
17,702
2016-01-25T14:03:01.000Z
2019-05-06T09:23:41.000Z
bindings/python/cntk/losses/tests/cosine_distance_test.py
shyamalschandra/CNTK
0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d
[ "MIT" ]
3,489
2016-01-25T13:32:09.000Z
2019-05-03T11:29:15.000Z
bindings/python/cntk/losses/tests/cosine_distance_test.py
shyamalschandra/CNTK
0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d
[ "MIT" ]
5,180
2016-01-25T14:02:12.000Z
2019-05-06T04:24:28.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root # for full license information. # ============================================================================== """ Unit tests for the cosine distance class. """ import numpy as np import pytest...
42.367347
127
0.6421
ea781c2202ae703722d14ff9291ebe9fee154b0e
316
py
Python
aiozk/features.py
nonsleepr/aiozk
6b4b32a6989eed6a9e568819ab61c89a110fbbec
[ "MIT" ]
22
2019-08-21T11:39:21.000Z
2021-08-18T11:21:23.000Z
aiozk/features.py
nonsleepr/aiozk
6b4b32a6989eed6a9e568819ab61c89a110fbbec
[ "MIT" ]
44
2019-08-12T08:39:57.000Z
2021-10-08T19:38:46.000Z
aiozk/features.py
nonsleepr/aiozk
6b4b32a6989eed6a9e568819ab61c89a110fbbec
[ "MIT" ]
15
2017-01-13T12:19:54.000Z
2019-06-10T22:38:28.000Z
ALL_FEATURES = { "create_with_stat": (3, 5, 0), "containers": (3, 5, 1), "reconfigure": (3, 5, 0), } class Features: def __init__(self, version_info): for feature_name, version_introduced in ALL_FEATURES.items(): setattr(self, feature_name, version_info >= version_introduced)
24.307692
75
0.642405
99f7ebcc7b61b0b715fc254cc3cd6b2febe5d085
1,554
py
Python
app/db/session.py
qtdemo1/ibm-ops
29f3d4ba406a1c39a007468977784d6c39f056bb
[ "Apache-2.0" ]
null
null
null
app/db/session.py
qtdemo1/ibm-ops
29f3d4ba406a1c39a007468977784d6c39f056bb
[ "Apache-2.0" ]
null
null
null
app/db/session.py
qtdemo1/ibm-ops
29f3d4ba406a1c39a007468977784d6c39f056bb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2020 IBM # 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 t...
27.75
93
0.720077
321ca26b9eb6d5ab09e5cd730cc989ad8c67116c
663
py
Python
src/your_project_name/pipeline_registry.py
corradin-lab/analysis-project-template
5bb43846a24a84222f4fc816e42b1291b4eb783d
[ "Apache-2.0" ]
null
null
null
src/your_project_name/pipeline_registry.py
corradin-lab/analysis-project-template
5bb43846a24a84222f4fc816e42b1291b4eb783d
[ "Apache-2.0" ]
1
2022-01-27T05:05:12.000Z
2022-01-27T17:14:29.000Z
src/your_project_name/pipeline_registry.py
corradin-lab/analysis-project-template
5bb43846a24a84222f4fc816e42b1291b4eb783d
[ "Apache-2.0" ]
null
null
null
"""Project pipelines.""" from typing import Dict from kedro.pipeline import Pipeline from your_project_name.pipelines import data_engineering as de from your_project_name.pipelines import data_science as ds def register_pipelines() -> Dict[str, Pipeline]: """Register the project's pipelines. Returns: ...
26.52
73
0.72549
abff4906381eb6dc4739a1bb0fea6a3d1defb8f0
636
py
Python
diquencer/events.py
antiero/diquencer
26a5f5a494a17642ab389dd49f31414792626ae2
[ "MIT" ]
16
2019-08-06T12:28:27.000Z
2022-02-10T12:10:34.000Z
diquencer/events.py
antiero/diquencer
26a5f5a494a17642ab389dd49f31414792626ae2
[ "MIT" ]
null
null
null
diquencer/events.py
antiero/diquencer
26a5f5a494a17642ab389dd49f31414792626ae2
[ "MIT" ]
2
2020-01-26T17:15:26.000Z
2021-08-23T15:12:27.000Z
from .models import Position class SequenceEvent: def __init__(self, pulsestamp): self.pulsestamp = pulsestamp def __str__(self): return f"{self.__class__.__name__} @ {Position(self.pulsestamp)}" class MuteEvent(SequenceEvent): def __init__(self, pulsestamp, playing_tracks): sup...
23.555556
73
0.70283
85ec23ebe6adc45a2fb448c0915c1ee8eaa52528
12,353
py
Python
zvdata/domain.py
bennysuh/zvt
d982af7e40178c6643315ab03ef6799e70078764
[ "MIT" ]
null
null
null
zvdata/domain.py
bennysuh/zvt
d982af7e40178c6643315ab03ef6799e70078764
[ "MIT" ]
null
null
null
zvdata/domain.py
bennysuh/zvt
d982af7e40178c6643315ab03ef6799e70078764
[ "MIT" ]
1
2020-05-16T09:42:02.000Z
2020-05-16T09:42:02.000Z
# -*- coding: utf-8 -*- import logging import os from typing import List from sqlalchemy import create_engine, schema, Column, String, DateTime from sqlalchemy.engine import Engine from sqlalchemy.ext.declarative import DeclarativeMeta, declarative_base from sqlalchemy.orm import sessionmaker, Session from zvdata.str...
28.138952
117
0.623816
1fa755d10f0c225a6ec19f83e951859cd0773f0c
8,565
py
Python
recipes/o3tanks/globals/o3tanks.py
loherangrin/o3tanks
dc7d7871bc06096905563f91ad996d3287e48a7e
[ "Apache-2.0" ]
13
2021-08-17T22:50:52.000Z
2022-01-13T18:08:22.000Z
recipes/o3tanks/globals/o3tanks.py
loherangrin/o3tanks
dc7d7871bc06096905563f91ad996d3287e48a7e
[ "Apache-2.0" ]
26
2021-08-17T18:42:44.000Z
2022-02-15T23:11:17.000Z
recipes/o3tanks/globals/o3tanks.py
loherangrin/o3tanks
dc7d7871bc06096905563f91ad996d3287e48a7e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Matteo Grasso # # 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...
23.660221
102
0.740572
2c56bd1b8386034031b38a0d807163986abc7c44
507
py
Python
tests/test_service.py
drewsonne/aws-tag-a-day
1b85127e81625a2b6df878d339c81910bc395ef8
[ "Apache-2.0" ]
null
null
null
tests/test_service.py
drewsonne/aws-tag-a-day
1b85127e81625a2b6df878d339c81910bc395ef8
[ "Apache-2.0" ]
null
null
null
tests/test_service.py
drewsonne/aws-tag-a-day
1b85127e81625a2b6df878d339c81910bc395ef8
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from tag_a_day.services.service import Service class TestService(TestCase): def test__build_tag_sets(self): src = Service(None, None, None, None) _, missing_tags = src._build_tag_sets( expected_tags=['a', 'b', 'c', 'd', 'e'], evaluated_tags=['...
26.684211
52
0.514793
294f9b4c7ec347392ae8f9cb223ea36583df1b5f
6,715
py
Python
Tynda-Nizniy_Bestyakh/Tynda-Nizniy_Bestyakh.py
trolleway/train_diagrams
bd5316bd3e2fcb30b62d928301bf42a2db3c867d
[ "Apache-2.0" ]
null
null
null
Tynda-Nizniy_Bestyakh/Tynda-Nizniy_Bestyakh.py
trolleway/train_diagrams
bd5316bd3e2fcb30b62d928301bf42a2db3c867d
[ "Apache-2.0" ]
1
2020-01-07T17:33:51.000Z
2020-01-07T17:33:51.000Z
Tynda-Nizniy_Bestyakh/Tynda-Nizniy_Bestyakh.py
trolleway/train_diagrams
bd5316bd3e2fcb30b62d928301bf42a2db3c867d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import matplotlib import matplotlib.dates as mdates import dateutil from matplotlib.ticker import (MultipleLocator, FormatStrFormatter, AutoMinorLocator) import d...
28.574468
216
0.739985
9332cd98f56e9d8802fddde4f6b3be99b353890c
31,891
py
Python
localstack/utils/aws/aws_stack.py
payton/localstack
937bec26583ed854d3abfc6ca7d5c21ca1b4539b
[ "Apache-2.0" ]
null
null
null
localstack/utils/aws/aws_stack.py
payton/localstack
937bec26583ed854d3abfc6ca7d5c21ca1b4539b
[ "Apache-2.0" ]
null
null
null
localstack/utils/aws/aws_stack.py
payton/localstack
937bec26583ed854d3abfc6ca7d5c21ca1b4539b
[ "Apache-2.0" ]
null
null
null
import os import re import json import time import boto3 import base64 import logging import six from six.moves.urllib.parse import quote_plus, unquote_plus from localstack import config from localstack.constants import ( REGION_LOCAL, LOCALHOST, MOTO_ACCOUNT_ID, ENV_DEV, APPLICATION_AMZ_JSON_1_1, APPLICATION_A...
37.607311
119
0.690759
6150bdcf6b347b14b2907b0d8194743cb5e778cf
13,955
py
Python
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20033_data_categories.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20033_data_categories.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20033_data_categories.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Quotes API For Digital Portals The quotes API combines endpoints for retrieving security end-of-day, delayed, and realtime prices with performance key figures and basic reference data on the security and market level. The API supports over 20 different price types for each quote and comes with basic searc...
49.485816
1,302
0.598352
be0f5e9e924adb858a804241cda57bb58bab0ea1
931
bzl
Python
third_party/llvm/workspace.bzl
ckkuang/tensorflow
ec1920986d94a5a1bc42aa0961938a2d93c290e2
[ "Apache-2.0" ]
1
2021-02-28T03:43:38.000Z
2021-02-28T03:43:38.000Z
third_party/llvm/workspace.bzl
ckkuang/tensorflow
ec1920986d94a5a1bc42aa0961938a2d93c290e2
[ "Apache-2.0" ]
null
null
null
third_party/llvm/workspace.bzl
ckkuang/tensorflow
ec1920986d94a5a1bc42aa0961938a2d93c290e2
[ "Apache-2.0" ]
null
null
null
"""Provides the repository macro to import LLVM.""" load("//third_party:repo.bzl", "tf_http_archive") def repo(name): """Imports LLVM.""" LLVM_COMMIT = "628dda08b82fcedcd9e89c9ef7850388e988bf68" LLVM_SHA256 = "b48c8c63c17631cc0160e1359c1e977188aa6cf5924cfd4b5664397effe65f30" tf_http_archive( ...
38.791667
149
0.646617
3961257e533f8360e244e58a4a922b9bb515e57b
2,027
py
Python
posthog/models/filters/path_filter.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
1
2021-07-28T19:44:48.000Z
2021-07-28T19:44:48.000Z
posthog/models/filters/path_filter.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
null
null
null
posthog/models/filters/path_filter.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
null
null
null
from typing import Any, Dict, Optional from rest_framework.request import Request from posthog.constants import INSIGHT_PATHS from posthog.models.filters.base_filter import BaseFilter from posthog.models.filters.mixins.common import ( BreakdownMixin, BreakdownTypeMixin, DateMixin, EntitiesMixin, F...
27.767123
115
0.743957
21222c2e2e20cab07427185079c756ec3b53fc82
52
py
Python
signals/signals/apps/entities/__init__.py
gonzaloamadio/django-signals2
809d1c0b627f5ec68e7bc4f73fdc7de7e7545706
[ "MIT" ]
null
null
null
signals/signals/apps/entities/__init__.py
gonzaloamadio/django-signals2
809d1c0b627f5ec68e7bc4f73fdc7de7e7545706
[ "MIT" ]
null
null
null
signals/signals/apps/entities/__init__.py
gonzaloamadio/django-signals2
809d1c0b627f5ec68e7bc4f73fdc7de7e7545706
[ "MIT" ]
null
null
null
#default_app_config ='entities.apps.EntitiesConfig'
26
51
0.846154
99351389700510188e50cdcf6eae3482ee642548
2,287
py
Python
data/crawlKoreaRegionalData.py
dentobox/hereitis
3f0d6ceba48675149f42bea84aebd3960da38927
[ "MIT" ]
null
null
null
data/crawlKoreaRegionalData.py
dentobox/hereitis
3f0d6ceba48675149f42bea84aebd3960da38927
[ "MIT" ]
null
null
null
data/crawlKoreaRegionalData.py
dentobox/hereitis
3f0d6ceba48675149f42bea84aebd3960da38927
[ "MIT" ]
null
null
null
import requests import re from bs4 import BeautifulSoup import json print("#####################################") print("############ 한국 데이터 #############") print("######## koreaRegionalData.js #########") html = requests.get("http://ncov.mohw.go.kr/bdBoardList_Real.do?brdId=1&brdGubun=13&ncvContSeq=&contSeq=&board_...
33.632353
128
0.591605
a4761d4867d99fbcd9b01d73dd7a87b823dd53f2
1,809
py
Python
tests/conftest.py
lnielsen/flask-resources
a8be12765883edb1b1f63b4d289416e892d2cb02
[ "MIT" ]
null
null
null
tests/conftest.py
lnielsen/flask-resources
a8be12765883edb1b1f63b4d289416e892d2cb02
[ "MIT" ]
null
null
null
tests/conftest.py
lnielsen/flask-resources
a8be12765883edb1b1f63b4d289416e892d2cb02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Flask--Resources is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Pytest configuration. See https://pytest-invenio.readthedocs.io/ for documentation on which test fixtures are...
25.842857
82
0.648425
b977d638744e2604b510a3f447c6723e4b98aec3
324
py
Python
login.py
ksypf/py6_flask
c65816eea236a535e0301c63605ee053ad933fe9
[ "MIT" ]
null
null
null
login.py
ksypf/py6_flask
c65816eea236a535e0301c63605ee053ad933fe9
[ "MIT" ]
null
null
null
login.py
ksypf/py6_flask
c65816eea236a535e0301c63605ee053ad933fe9
[ "MIT" ]
null
null
null
print("zhangsan add login.py") num=10 print("第二次修改") print("manage修改代码") num=20 print("zhangsan第三次修改代码") num=40 print("manage第二次修改了代码") num=30 print("manage第三次修改代码添加了新的功能") print("上线版") print("manage第四次 修改了代码test") print("dev分支合并") print("manage第五次修改了代码test2") print("dev分支合并") print("第二次dev合并") print("hello"...
10.451613
30
0.722222
9d7e25564bf4d9b3c4329112010d4294a4c55f43
1,137
py
Python
tests/test_store_types.py
Cologler/bytecode2ast-python
407b261a493e018bc86388040ddfb6fb0e4b96d9
[ "MIT" ]
null
null
null
tests/test_store_types.py
Cologler/bytecode2ast-python
407b261a493e018bc86388040ddfb6fb0e4b96d9
[ "MIT" ]
null
null
null
tests/test_store_types.py
Cologler/bytecode2ast-python
407b261a493e018bc86388040ddfb6fb0e4b96d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2019~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- from utils import get_instrs_from_b2a, get_instrs def test_store_none(): def func(): a = None assert get_instrs(func) == get_instrs_from_b2a(func) def test_store_true(): def func(): ...
19.947368
56
0.62445
a57f8e5dcbf64422cd3c0120a581f6cca3116936
25,506
py
Python
google/analytics/data_v1alpha/types/analytics_data_api.py
LaudateCorpus1/python-analytics-data
ad51ffd1c461663d7ff055b69166004ea5a4d686
[ "Apache-2.0" ]
45
2020-09-19T11:36:36.000Z
2022-03-14T17:17:21.000Z
google/analytics/data_v1alpha/types/analytics_data_api.py
LaudateCorpus1/python-analytics-data
ad51ffd1c461663d7ff055b69166004ea5a4d686
[ "Apache-2.0" ]
66
2020-09-14T22:03:10.000Z
2022-03-31T17:18:32.000Z
google/analytics/data_v1alpha/types/analytics_data_api.py
LaudateCorpus1/python-analytics-data
ad51ffd1c461663d7ff055b69166004ea5a4d686
[ "Apache-2.0" ]
14
2020-09-14T21:57:15.000Z
2022-03-31T00:36:30.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...
46.459016
115
0.66549
635ee72c2d406ab690ddfb461a43a82f0722c472
1,690
py
Python
bin/multidoc_jsonl_dataset_to_parallel_dataset.py
chrishokamp/dynamic-transformer-ensembles
2757c68936d6aca0ab06cb86e988cd96155a2b1c
[ "MIT" ]
26
2020-06-17T01:33:00.000Z
2021-11-22T07:05:36.000Z
bin/multidoc_jsonl_dataset_to_parallel_dataset.py
chrishokamp/dynamic-transformer-ensembles
2757c68936d6aca0ab06cb86e988cd96155a2b1c
[ "MIT" ]
2
2021-05-25T17:13:37.000Z
2021-07-31T11:33:33.000Z
bin/multidoc_jsonl_dataset_to_parallel_dataset.py
chrishokamp/dynamic-transformer-ensembles
2757c68936d6aca0ab06cb86e988cd96155a2b1c
[ "MIT" ]
1
2020-06-17T19:49:54.000Z
2020-06-17T19:49:54.000Z
#!/usr/bin/env python # coding: utf-8 # In[ ]: # flatten a multidoc summarization dataset in .jsonl format to a parallel dataset that uses # the *.sources *.targets format from cnn-dm # TODO: support shuffling since the cluster items will be sequential by default # TODO: support formatting with special tokens to i...
26.40625
128
0.671006
896a7231c36268704d5c743e6992fec4e46e70fd
21,730
py
Python
tests/package/test_manager.py
ufo2011/platformio-core
0ceae62701731f8b32c34d7993a34dea34aea59c
[ "Apache-2.0" ]
null
null
null
tests/package/test_manager.py
ufo2011/platformio-core
0ceae62701731f8b32c34d7993a34dea34aea59c
[ "Apache-2.0" ]
null
null
null
tests/package/test_manager.py
ufo2011/platformio-core
0ceae62701731f8b32c34d7993a34dea34aea59c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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...
33.2263
97
0.66231
4b6311ffbe983f8a859e4537c87644c018a7c040
5,999
py
Python
toollib/webdriver.py
atpuxiner/toollib
a895daeba49e64022a4a11a67a8b7b7a44cd2e0f
[ "MIT" ]
113
2021-12-15T05:23:13.000Z
2022-03-30T10:29:13.000Z
toollib/webdriver.py
atpuxiner/toollib
a895daeba49e64022a4a11a67a8b7b7a44cd2e0f
[ "MIT" ]
null
null
null
toollib/webdriver.py
atpuxiner/toollib
a895daeba49e64022a4a11a67a8b7b7a44cd2e0f
[ "MIT" ]
3
2022-02-22T01:43:44.000Z
2022-03-21T01:05:49.000Z
""" @author axiner @version v1.0.0 @created 2022/1/18 21:05 @abstract web驱动 @description @history """ import os import re import shutil import sys import typing as t import urllib.request as urlrequest import winreg from pathlib import Path from toollib.validator import choicer try: from selenium.webdriver.chrome...
37.26087
108
0.590265
94647f29288eed96bee212593a6bfcee89a4313f
337
py
Python
demo/gql/mutation.py
YanickJair/graphene-demo
0b2050639605dd42762a015247bd277bb46814d7
[ "Apache-2.0" ]
2
2021-07-02T17:02:37.000Z
2022-02-09T22:13:08.000Z
demo/gql/mutation.py
YanickJair/graphene-demo
0b2050639605dd42762a015247bd277bb46814d7
[ "Apache-2.0" ]
null
null
null
demo/gql/mutation.py
YanickJair/graphene-demo
0b2050639605dd42762a015247bd277bb46814d7
[ "Apache-2.0" ]
null
null
null
import graphene import demo.gql.resolvers as resolvers class Mutation(graphene.AbstractType): create_prod_category = resolvers.CreateProductCategory.Field() create_product = resolvers.CreateProduct.Field() manage_favorites = resolvers.ManageFavorites.Field() comment = resolvers....
30.636364
66
0.738872
b3e2eca6edc6e541fe0eface8725e6c675416220
12,662
py
Python
mozillians/users/migrations/0044_migration_multi_website.py
caktus/mozillians
312eb5d993b60092fa4f8eb94548c1db4b21fa01
[ "BSD-3-Clause" ]
null
null
null
mozillians/users/migrations/0044_migration_multi_website.py
caktus/mozillians
312eb5d993b60092fa4f8eb94548c1db4b21fa01
[ "BSD-3-Clause" ]
null
null
null
mozillians/users/migrations/0044_migration_multi_website.py
caktus/mozillians
312eb5d993b60092fa4f8eb94548c1db4b21fa01
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): for profile in orm.UserProfile.objects.exclude(website=''): profile.externalaccount_set.create(type='WEBSITE'...
82.220779
227
0.561365
2ec2e5d2573d1f2d63a8e01087f21737035b6c46
38,130
py
Python
scripts/viz_src/svg.py
kadupitiya/RNN-MD
9350ab209126983bff79f34b34e2f68f038e536c
[ "Apache-2.0" ]
7
2020-05-19T02:24:37.000Z
2021-05-27T11:01:24.000Z
scripts/viz_src/svg.py
kadupitiya/RNN-MD
9350ab209126983bff79f34b34e2f68f038e536c
[ "Apache-2.0" ]
1
2021-02-13T01:12:09.000Z
2021-02-13T01:12:09.000Z
scripts/viz_src/svg.py
kadupitiya/RNN-MD
9350ab209126983bff79f34b34e2f68f038e536c
[ "Apache-2.0" ]
4
2020-05-20T20:50:35.000Z
2022-01-11T08:20:04.000Z
# Pizza.py toolkit, www.cs.sandia.gov/~sjplimp/pizza.html # Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories # # Copyright (2005) Sandia Corporation. Under the terms of Contract # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains # certain rights in this software. This softwa...
34.075067
132
0.410018
d4d443428089207823c0ae9eb49fb12b69ec283b
7,529
py
Python
app/engine/models.py
dariothornhill/adaptive-engine
209e7a552f8675cdd18f6c1352ede68f6fbf9e36
[ "Apache-2.0" ]
31
2017-12-08T08:03:27.000Z
2021-09-15T07:37:38.000Z
app/engine/models.py
dariothornhill/adaptive-engine
209e7a552f8675cdd18f6c1352ede68f6fbf9e36
[ "Apache-2.0" ]
12
2018-09-27T13:55:15.000Z
2021-06-10T19:15:17.000Z
app/engine/models.py
dariothornhill/adaptive-engine
209e7a552f8675cdd18f6c1352ede68f6fbf9e36
[ "Apache-2.0" ]
19
2018-10-26T07:12:20.000Z
2022-02-10T12:51:27.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models def first_and_last_n_chars(s, n1=30, n2=30): """ Utility function to display first n1 characters and last n2 characters of a long string (Adjusts display if string is less than n1+n2 char long) :param s: stri...
35.182243
141
0.687874
0b0268ac9abdd7d0d003a3ac00a205e70f45849f
374
py
Python
old/diversity_over_time_greed_test.py
Jontahan/numedal
e71ff6551926e37ce7b83c46fc9fa3504774f2d0
[ "MIT" ]
null
null
null
old/diversity_over_time_greed_test.py
Jontahan/numedal
e71ff6551926e37ce7b83c46fc9fa3504774f2d0
[ "MIT" ]
null
null
null
old/diversity_over_time_greed_test.py
Jontahan/numedal
e71ff6551926e37ce7b83c46fc9fa3504774f2d0
[ "MIT" ]
null
null
null
from metrics.dmetric_over_time_greed import * from util.experiment import Experiment exp = Experiment('diversity_greed_test_setC') env_list = [] for j in [10,11,12,13,14]: env_list.append(Gridworld(width=4, height=4, cell_size=32, seed=j)) exp.run(get_diversity, params={ 'env_list' : env_list, 'training_ite...
34
122
0.724599
3aa14b59096c7ef2d46aca982e991e4b43caaa7a
28,670
py
Python
ltr/data/sampler.py
tsingqguo/ABA
c32edbbe5705b0332a08951b5ee436b5f58c2e70
[ "MIT" ]
12
2021-07-27T07:18:24.000Z
2022-03-09T13:52:20.000Z
ltr/data/sampler.py
tsingqguo/ABA
c32edbbe5705b0332a08951b5ee436b5f58c2e70
[ "MIT" ]
2
2021-08-03T09:21:33.000Z
2021-12-29T14:25:30.000Z
ltr/data/sampler.py
tsingqguo/ABA
c32edbbe5705b0332a08951b5ee436b5f58c2e70
[ "MIT" ]
3
2021-11-18T14:46:40.000Z
2022-01-03T15:47:23.000Z
import random import torch.utils.data from extern.pytracking.libs import TensorDict def no_processing(data): return data class TrackingSampler(torch.utils.data.Dataset): """ Class responsible for sampling frames from training sequences to form batches. Each training sample is a tuple consisting of i) a ...
47.783333
128
0.589327
e6315aac972aa97dc9bb12d15ee123a8d57d75f2
6,946
py
Python
tests/components/blink/test_config_flow.py
SmarthomeNinja/core
f4b8a95205ea7d4126fc5e704da532cd8eed937e
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
tests/components/blink/test_config_flow.py
SmarthomeNinja/core
f4b8a95205ea7d4126fc5e704da532cd8eed937e
[ "Apache-2.0" ]
47
2020-07-23T07:14:33.000Z
2022-03-31T06:01:46.000Z
tests/components/blink/test_config_flow.py
SmarthomeNinja/core
f4b8a95205ea7d4126fc5e704da532cd8eed937e
[ "Apache-2.0" ]
3
2021-05-18T16:42:18.000Z
2021-07-19T22:04:21.000Z
"""Test the Blink config flow.""" from homeassistant import config_entries, data_entry_flow, setup from homeassistant.components.blink import DOMAIN from tests.async_mock import Mock, patch from tests.common import MockConfigEntry async def test_form(hass): """Test we get the form.""" await setup.async_setup...
33.882927
88
0.648575
fa0f72f362b45a039ed58e6280fc2a574468d780
27,206
py
Python
google/cloud/video/stitcher_v1/services/video_stitcher_service/pagers.py
renovate-bot/python-video-stitcher
ad5da37511e2dbe78eb4651f705660fab9eb745d
[ "Apache-2.0" ]
null
null
null
google/cloud/video/stitcher_v1/services/video_stitcher_service/pagers.py
renovate-bot/python-video-stitcher
ad5da37511e2dbe78eb4651f705660fab9eb745d
[ "Apache-2.0" ]
6
2022-02-23T16:49:56.000Z
2022-03-07T16:42:45.000Z
google/cloud/video/stitcher_v1/services/video_stitcher_service/pagers.py
renovate-bot/python-video-stitcher
ad5da37511e2dbe78eb4651f705660fab9eb745d
[ "Apache-2.0" ]
2
2022-02-14T22:26:33.000Z
2022-03-08T17:18:00.000Z
# -*- coding: utf-8 -*- # Copyright 2022 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...
39.658892
92
0.679115
032de80813ddb4573ea7ba2a4833d3972fd2a66f
7,067
py
Python
appengine_module/gae_ts_mon/test/instrument_webapp2_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine_module/gae_ts_mon/test/instrument_webapp2_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine_module/gae_ts_mon/test/instrument_webapp2_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import mock import webapp2 from .test_support import test_case from google.appengine.api.runtime import runtime from infra_libs.ts_mon import co...
28.611336
77
0.691807
384aaec5c57ce4946d2f54b7b21ecea39e6b4298
1,777
py
Python
setup.py
tamland/mopidy
7d5117c299ec33b66b67b906a9971bcbc77c3133
[ "Apache-2.0" ]
1
2018-05-12T21:28:49.000Z
2018-05-12T21:28:49.000Z
setup.py
tamland/mopidy
7d5117c299ec33b66b67b906a9971bcbc77c3133
[ "Apache-2.0" ]
null
null
null
setup.py
tamland/mopidy
7d5117c299ec33b66b67b906a9971bcbc77c3133
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, unicode_literals import re from setuptools import find_packages, setup def get_version(filename): init_py = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py)) return metadata['version'] setup( name='Mopidy', version=ge...
29.616667
68
0.588633
c32040e0e0304e30fc3ce5b6169122a1fa9cf8ff
85
py
Python
apps.py
joannaksk/igirl
edb9220a2905bc744b78ce5c0fe5a40a51189894
[ "MIT" ]
null
null
null
apps.py
joannaksk/igirl
edb9220a2905bc744b78ce5c0fe5a40a51189894
[ "MIT" ]
null
null
null
apps.py
joannaksk/igirl
edb9220a2905bc744b78ce5c0fe5a40a51189894
[ "MIT" ]
null
null
null
from django.apps import AppConfig class IgirlConfig(AppConfig): name = 'igirl'
14.166667
33
0.741176
572c6139cece897a3055248ca03c5b66ca402ef2
98
py
Python
setup.py
datakurre/robotframework-seleniumlibrary
8fdec6b73c66eef7f95ad4ba16b3912cb3f19331
[ "BSD-3-Clause" ]
10
2019-08-13T02:15:45.000Z
2020-12-09T15:49:36.000Z
setup.py
datakurre/robotframework-seleniumlibrary
8fdec6b73c66eef7f95ad4ba16b3912cb3f19331
[ "BSD-3-Clause" ]
9
2019-01-06T18:36:58.000Z
2021-04-02T05:57:36.000Z
setup.py
datakurre/robotframework-seleniumlibrary
8fdec6b73c66eef7f95ad4ba16b3912cb3f19331
[ "BSD-3-Clause" ]
2
2019-01-06T18:38:48.000Z
2021-04-02T06:01:33.000Z
# -*- coding: utf-8 -*- from setuptools import setup; setup(package_dir={'': 'src'}) # noqa: E702
49
74
0.632653
16477018e71401c1c1c6034339197578b9db9a75
849
py
Python
{{cookiecutter.project_name}}/server/settings/__init__.py
mikebirdgeneau/wemake-django-template
885a091db9e7c58c0706087a86dff253d41cd000
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/server/settings/__init__.py
mikebirdgeneau/wemake-django-template
885a091db9e7c58c0706087a86dff253d41cd000
[ "MIT" ]
24
2021-01-04T12:16:40.000Z
2021-07-23T12:17:34.000Z
{{cookiecutter.project_name}}/server/settings/__init__.py
mikebirdgeneau/wemake-django-template
885a091db9e7c58c0706087a86dff253d41cd000
[ "MIT" ]
null
null
null
""" This is a django-split-settings main file. For more information read this: https://github.com/sobolevn/django-split-settings https://sobolevn.me/2017/04/managing-djangos-settings To change settings file: `DJANGO_ENV=production python manage.py runserver` """ from os import environ from split_settings.tools impo...
22.342105
53
0.727915
958042d22b18881a20b288f2a972f3308a546b5e
631
py
Python
hamal/hamal/conf/vmware_rsa_license.py
JackDan9/hamal
965be9db066209300c52f0cf17d251290d8901b7
[ "MIT" ]
3
2020-06-12T13:03:46.000Z
2020-08-06T11:25:46.000Z
hamal/hamal/conf/vmware_rsa_license.py
JackDan9/hamal
965be9db066209300c52f0cf17d251290d8901b7
[ "MIT" ]
null
null
null
hamal/hamal/conf/vmware_rsa_license.py
JackDan9/hamal
965be9db066209300c52f0cf17d251290d8901b7
[ "MIT" ]
null
null
null
# Copyright 2020 Hamal, Inc. from oslo_config import cfg vmware_license_group = cfg.OptGroup(name='vmware_rsa_license', title='VMware License Options') VMWARE_LICENSE_ALL_OPTS = [ cfg.StrOpt('private_key_file', default='/etc/hamal/hamal_private.pem'), cfg....
27.434783
75
0.697306
50c22dea26b45ee3872afe2bd6c49a073189e1f8
1,806
py
Python
webservice/websocket/web_socket_connection_handler.py
PedalController/PedalPiREST
aa9418d44f2f5dbec604753a03bf8a74057c627c
[ "Apache-2.0" ]
null
null
null
webservice/websocket/web_socket_connection_handler.py
PedalController/PedalPiREST
aa9418d44f2f5dbec604753a03bf8a74057c627c
[ "Apache-2.0" ]
42
2016-07-04T11:17:54.000Z
2018-03-18T18:36:09.000Z
webservice/websocket/web_socket_connection_handler.py
PedalController/PedalPiREST
aa9418d44f2f5dbec604753a03bf8a74057c627c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 SrMouraSilva # # 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,...
32.836364
90
0.727021
0433507d3af87df3bf65423ed57f456f96272693
3,180
py
Python
tsx/models/classifier/base.py
MatthiasJakobs/tsx
8a686ffd0af2f9f826d9ce11349e0fa0e883e897
[ "MIT" ]
null
null
null
tsx/models/classifier/base.py
MatthiasJakobs/tsx
8a686ffd0af2f9f826d9ce11349e0fa0e883e897
[ "MIT" ]
null
null
null
tsx/models/classifier/base.py
MatthiasJakobs/tsx
8a686ffd0af2f9f826d9ce11349e0fa0e883e897
[ "MIT" ]
null
null
null
import torch import pickle import torch.nn as nn import numpy as np from os.path import join from tsx.models import BaseCNN class BaseClassifier(BaseCNN): def transform(self, X): raise NotImplementedError() def save(self): raise NotImplementedError() def load(self): raise NotImp...
34.193548
151
0.624528
019ff1f26130342562e267aa2539db14a60f62d5
603
py
Python
DbbenchTools/__init__.py
AaronHirsch/dbbench-tools
987dbdba7231d70056e585dd4ee3906d64786d65
[ "Apache-2.0" ]
2
2016-08-11T12:22:24.000Z
2020-04-13T15:09:03.000Z
DbbenchTools/__init__.py
AaronHirsch/dbbench-tools
987dbdba7231d70056e585dd4ee3906d64786d65
[ "Apache-2.0" ]
1
2019-01-12T18:41:03.000Z
2019-01-12T18:41:03.000Z
DbbenchTools/__init__.py
AaronHirsch/dbbench-tools
987dbdba7231d70056e585dd4ee3906d64786d65
[ "Apache-2.0" ]
2
2019-01-12T11:34:22.000Z
2019-01-16T03:07:00.000Z
# # Copyright (c) 2016 by MemSQL. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
37.6875
74
0.754561
ea3bf93d047a68730f8020b9b8c8d7b3f14b2229
99
py
Python
stakeholders/apps.py
banillie/project_tracker
1076b04a8ca6cb0205d8775a7b1e15e225b62a92
[ "MIT" ]
null
null
null
stakeholders/apps.py
banillie/project_tracker
1076b04a8ca6cb0205d8775a7b1e15e225b62a92
[ "MIT" ]
35
2021-09-24T15:02:21.000Z
2022-03-28T14:00:26.000Z
stakeholders/apps.py
banillie/project_tracker
1076b04a8ca6cb0205d8775a7b1e15e225b62a92
[ "MIT" ]
null
null
null
from django.apps import AppConfig class StakeholdersConfig(AppConfig): name = 'stakeholders'
16.5
36
0.777778
7a7ee202af5b41ff494a6ae84291f7f7e893cac4
1,384
py
Python
tests/test_literal.py
zhPavel/dataclass_factory
65820601f0259be60e7dd907207b5d29fb05e2b1
[ "Apache-2.0" ]
189
2018-09-26T07:52:50.000Z
2022-03-25T14:09:54.000Z
tests/test_literal.py
zhPavel/dataclass_factory
65820601f0259be60e7dd907207b5d29fb05e2b1
[ "Apache-2.0" ]
102
2018-09-15T08:54:37.000Z
2022-03-14T09:18:42.000Z
tests/test_literal.py
zhPavel/dataclass_factory
65820601f0259be60e7dd907207b5d29fb05e2b1
[ "Apache-2.0" ]
35
2018-09-26T08:13:07.000Z
2022-03-25T18:08:01.000Z
import sys from typing import Any from unittest import TestCase from nose2.tools import params # type: ignore from typing_extensions import Literal as CompatLiteral from dataclass_factory import Factory LITERALS: Any = [CompatLiteral] if sys.version_info >= (3, 8): from typing import Literal as PyLiteral L...
30.086957
58
0.634393
624a3994b56c8f7d11c67c6704d84c97333b74e1
3,664
py
Python
Qubie_code/python/block.py
OldETC/Bipedal_Qubie
a789ea84ce83c6e135bb55d48fa63464ed958632
[ "Apache-2.0" ]
null
null
null
Qubie_code/python/block.py
OldETC/Bipedal_Qubie
a789ea84ce83c6e135bb55d48fa63464ed958632
[ "Apache-2.0" ]
null
null
null
Qubie_code/python/block.py
OldETC/Bipedal_Qubie
a789ea84ce83c6e135bb55d48fa63464ed958632
[ "Apache-2.0" ]
null
null
null
""" This demo will draw a few rectangles onto the screen along with some text on top of that. This example is for use on (Linux) computers that are using CPython with Adafruit Blinka to support CircuitPython libraries. CircuitPython does not support PIL/pillow (python imaging library)! Author(s): Melissa LeBlanc-Wi...
35.921569
104
0.691048
cce1f3bc8987c0aeb57da02b5be6ace2539fffa5
179
py
Python
perfdaily/magma.py
bochun/perfrunner
e215c73240381cf82fddc40856f560369c9b75a8
[ "Apache-2.0" ]
18
2015-10-28T23:12:07.000Z
2022-01-04T14:23:37.000Z
perfdaily/magma.py
bochun/perfrunner
e215c73240381cf82fddc40856f560369c9b75a8
[ "Apache-2.0" ]
11
2019-03-19T12:02:31.000Z
2022-02-11T03:39:44.000Z
perfdaily/magma.py
bochun/perfrunner
e215c73240381cf82fddc40856f560369c9b75a8
[ "Apache-2.0" ]
39
2015-06-07T09:17:16.000Z
2022-03-06T20:32:01.000Z
from perfdaily import DailyTest from perfrunner.tests.magma import MagmaBenchmarkTest as _MagmaBenchmarkTest class MagmaBenchmarkTest(DailyTest, _MagmaBenchmarkTest): pass
22.375
76
0.849162
27d2cd7c53326c126220e5fabb3b4c17d1a77160
3,073
py
Python
python/libsunnet/snBase.py
Tyill/skynet
1a34fc27b523345603d4fb88570f44fbbbef1b80
[ "MIT" ]
64
2018-10-14T16:36:05.000Z
2021-03-22T10:20:07.000Z
python/libsunnet/snBase.py
Tyill/sunnet
1a34fc27b523345603d4fb88570f44fbbbef1b80
[ "MIT" ]
4
2018-10-15T05:52:01.000Z
2020-04-01T14:41:54.000Z
python/libsunnet/snBase.py
Tyill/sunnet
1a34fc27b523345603d4fb88570f44fbbbef1b80
[ "MIT" ]
20
2018-10-14T18:29:15.000Z
2020-10-22T23:03:59.000Z
# # sunnet project # Copyright (C) 2018 by Contributors <https:#github.com/Tyill/sunnet> # # This code is licensed under the MIT License. # # 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 with...
48.015625
128
0.602343
228adaec8c749316e489d26f84971066104b35ae
2,226
py
Python
examples/ad_manager/v202102/line_item_creative_association_service/get_all_licas.py
timgates42/googleads-python-lib
86c3d0558fcc30135ff44700a499678c7e69e0c0
[ "Apache-2.0" ]
601
2015-01-07T09:53:49.000Z
2022-03-31T17:18:11.000Z
examples/ad_manager/v202102/line_item_creative_association_service/get_all_licas.py
timgates42/googleads-python-lib
86c3d0558fcc30135ff44700a499678c7e69e0c0
[ "Apache-2.0" ]
443
2015-01-07T12:16:57.000Z
2022-03-14T14:46:56.000Z
examples/ad_manager/v202102/line_item_creative_association_service/get_all_licas.py
timgates42/googleads-python-lib
86c3d0558fcc30135ff44700a499678c7e69e0c0
[ "Apache-2.0" ]
1,135
2015-01-07T15:51:55.000Z
2022-03-31T17:18:13.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
38.37931
80
0.70575
6da4e05e49603845d9b3da484acbdf7f2fac1b8f
3,884
py
Python
src/masonite/drivers/mail/MailSmtpDriver.py
Abeautifulsnow/masonite
f0ebb5ca05f5d88f21264e1cd0934435bd0a8791
[ "MIT" ]
1
2022-02-24T06:21:18.000Z
2022-02-24T06:21:18.000Z
src/masonite/drivers/mail/MailSmtpDriver.py
Abeautifulsnow/masonite
f0ebb5ca05f5d88f21264e1cd0934435bd0a8791
[ "MIT" ]
1
2020-10-26T12:33:05.000Z
2020-10-26T12:33:05.000Z
src/masonite/drivers/mail/MailSmtpDriver.py
Abeautifulsnow/masonite
f0ebb5ca05f5d88f21264e1cd0934435bd0a8791
[ "MIT" ]
null
null
null
"""SMTP Driver Module.""" import smtplib import ssl import warnings from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from ...contracts.MailContract import MailContract from ...drivers import BaseMailDriver class MailSmtpDriver(BaseMailDriver, MailContract): """Mail smtp driver...
34.678571
113
0.610968
95921326ee60416d31f5f3be1d56cbd32e5b1f07
15,976
py
Python
src/psiz/datasets/load_dataset.py
greenfieldvision/psiz
37068530a78e08792e827ee55cf55e627add115e
[ "Apache-2.0" ]
21
2020-04-03T21:10:05.000Z
2021-12-02T01:31:11.000Z
src/psiz/datasets/load_dataset.py
greenfieldvision/psiz
37068530a78e08792e827ee55cf55e627add115e
[ "Apache-2.0" ]
14
2020-04-10T00:48:02.000Z
2021-05-25T18:06:55.000Z
src/psiz/datasets/load_dataset.py
greenfieldvision/psiz
37068530a78e08792e827ee55cf55e627add115e
[ "Apache-2.0" ]
4
2020-10-13T16:46:14.000Z
2021-11-10T00:08:47.000Z
# -*- coding: utf-8 -*- # Copyright 2020 The PsiZ 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 r...
34.20985
79
0.558838
d0314e5b4d0bf61d680e00c1a56abbadb4d3ac59
1,676
py
Python
apps/utils/parse_user_agents/wrappers.py
yandenghong/KortURL
07ae04bda5fde5f6afeee228790e237e9251b458
[ "MIT" ]
118
2019-04-04T11:16:47.000Z
2021-11-21T15:33:22.000Z
apps/utils/parse_user_agents/wrappers.py
yandenghong/KortURL
07ae04bda5fde5f6afeee228790e237e9251b458
[ "MIT" ]
5
2019-08-29T02:44:25.000Z
2020-08-12T06:06:52.000Z
apps/utils/parse_user_agents/wrappers.py
yandenghong/KortURL
07ae04bda5fde5f6afeee228790e237e9251b458
[ "MIT" ]
19
2019-04-06T06:28:57.000Z
2020-09-11T07:49:56.000Z
from hashlib import md5 from django.conf import settings from django.core.cache import caches from django.core.cache import DEFAULT_CACHE_ALIAS from apps.utils.parse_user_agents.user_agents import parse def get_cache(backend, **kwargs): return caches[backend] text_type = str USER_AGENTS_CACHE = getattr(setti...
27.933333
79
0.711814
aa34ce6731dfb3d2200a22d7ad7e2392dcc50145
1,632
py
Python
src/sentry/api/serializers/models/release.py
kl07/sentry
427b456f18c4040127f7a05805089f372e920df0
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
src/sentry/api/serializers/models/release.py
tobetterman/sentry
fe85d3aee19dcdbfdd27921c4fb04529fc995a79
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/serializers/models/release.py
tobetterman/sentry
fe85d3aee19dcdbfdd27921c4fb04529fc995a79
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
from __future__ import absolute_import from sentry.api.serializers import Serializer, register, serialize from sentry.models import Release, TagValue @register(Release) class ReleaseSerializer(Serializer): def get_attrs(self, item_list, user): tags = { tk.value: tk for tk in TagVa...
28.631579
72
0.487132
a32d7e7141837aee9507f7ddc606aea884e846d6
1,160
py
Python
pyinfra/operations/launchd.py
themanifold/pyinfra
5b2eef0b22fa6b1750d595d7eb3e258ce350a693
[ "MIT" ]
1
2021-09-25T09:21:37.000Z
2021-09-25T09:21:37.000Z
pyinfra/operations/launchd.py
themanifold/pyinfra
5b2eef0b22fa6b1750d595d7eb3e258ce350a693
[ "MIT" ]
null
null
null
pyinfra/operations/launchd.py
themanifold/pyinfra
5b2eef0b22fa6b1750d595d7eb3e258ce350a693
[ "MIT" ]
null
null
null
''' Manage launchd services. ''' from __future__ import unicode_literals from pyinfra.api import operation from pyinfra.facts.launchd import LaunchdStatus from .util.service import handle_service_control @operation def service( service, running=True, restarted=False, command=None, state=None, host=None...
26.976744
77
0.693103
4cb4ab2a0b61a5a9a8e90020f07a05c102f5e9ae
63,079
py
Python
bitshares/bitshares.py
thehapax/python-bitshares
1fff025a1ee2fdf222004d58210f1b656fb7f2c8
[ "MIT" ]
null
null
null
bitshares/bitshares.py
thehapax/python-bitshares
1fff025a1ee2fdf222004d58210f1b656fb7f2c8
[ "MIT" ]
null
null
null
bitshares/bitshares.py
thehapax/python-bitshares
1fff025a1ee2fdf222004d58210f1b656fb7f2c8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from datetime import datetime, timedelta from graphenecommon.chain import AbstractGrapheneChain from bitsharesapi.bitsharesnoderpc import BitSharesNodeRPC from bitsharesbase import operations from bitsharesbase.account import PublicKey from bitsharesbase.asset_permissions impor...
39.923418
123
0.557206
899896d648a247e9ce8ecab49b1b4dd37c7c9e6f
389
py
Python
djmemo/wsgi.py
xuelians/djmemo
ec64647121b59f76951a7e853e65089c12bf44e5
[ "MIT" ]
null
null
null
djmemo/wsgi.py
xuelians/djmemo
ec64647121b59f76951a7e853e65089c12bf44e5
[ "MIT" ]
null
null
null
djmemo/wsgi.py
xuelians/djmemo
ec64647121b59f76951a7e853e65089c12bf44e5
[ "MIT" ]
null
null
null
""" WSGI config for djmemo project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTIN...
22.882353
78
0.784062
d59b0e829dd723fb23d696f4a766fc2246d9ead7
3,279
py
Python
mhxxinfo_server/mhxxinfo_server/settings.py
aiirohituzi/MHXXInfo
941469b44e746ad97a03bf0dd5bfdea4cd96f5ae
[ "MIT" ]
null
null
null
mhxxinfo_server/mhxxinfo_server/settings.py
aiirohituzi/MHXXInfo
941469b44e746ad97a03bf0dd5bfdea4cd96f5ae
[ "MIT" ]
2
2018-02-01T13:54:32.000Z
2018-03-31T14:02:40.000Z
mhxxinfo_server/mhxxinfo_server/settings.py
aiirohituzi/MHXXInfo
941469b44e746ad97a03bf0dd5bfdea4cd96f5ae
[ "MIT" ]
null
null
null
""" Django settings for mhxxinfo_server project. Generated by 'django-admin startproject' using Django 1.11.7. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ i...
25.418605
91
0.695944
57a60ededd976f696c3c0820301b6698679d6f66
4,037
py
Python
var/spack/repos/builtin/packages/geant4-data/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/geant4-data/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/geant4-data/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import os import glob class Geant4Data(BundlePackage): """A bundle package to hold Geant4 data p...
40.37
73
0.628932
7704ab71c510a429b218714c9448026f93290385
3,003
py
Python
test/test_eds.py
Jiongyu/canopen
b638e6251a9aca021e2b46144ece6c05beccc814
[ "MIT" ]
1
2019-08-24T17:57:22.000Z
2019-08-24T17:57:22.000Z
test/test_eds.py
tabjulbharath/canopen
264ff4fe3ba02019c9706ca5625c38abd698494a
[ "MIT" ]
null
null
null
test/test_eds.py
tabjulbharath/canopen
264ff4fe3ba02019c9706ca5625c38abd698494a
[ "MIT" ]
1
2021-03-20T14:59:03.000Z
2021-03-20T14:59:03.000Z
import os import unittest import canopen EDS_PATH = os.path.join(os.path.dirname(__file__), 'sample.eds') class TestEDS(unittest.TestCase): def setUp(self): self.od = canopen.import_od(EDS_PATH, 2) def test_load_nonexisting_file(self): with self.assertRaises(IOError): canopen.im...
38.012658
76
0.675991
fe26089b4c36540d6299b4633dce5fd093cb8cd8
5,487
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/manager_c6443684a3a8badebe021783a46d1b90.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/manager_c6443684a3a8badebe021783a46d1b90.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/manager_c6443684a3a8badebe021783a46d1b90.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
35.862745
139
0.651176
67a3214c647bd5a82e6b50ad5678a2440aa4a3ff
7,675
py
Python
udinaturen.py
ttytyper/udinaturendk-client
1f3fdce69e6ff507dfde2a396173267561fda467
[ "Unlicense" ]
1
2020-02-26T16:56:36.000Z
2020-02-26T16:56:36.000Z
udinaturen.py
ttytyper/udinaturendk-client
1f3fdce69e6ff507dfde2a396173267561fda467
[ "Unlicense" ]
null
null
null
udinaturen.py
ttytyper/udinaturendk-client
1f3fdce69e6ff507dfde2a396173267561fda467
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # For printing to stderr from __future__ import print_function import sys def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) import urllib import json import time import utm # https://pypi.org/project/gpxpy/ import gpxpy import gpxpy.gpx import HTMLP...
38.762626
144
0.607948
1c33f61ef94624e19a7f0a90cef13310a305cb70
9,181
py
Python
src/nsvqa/nn/interpreter/batch_base_interpreter.py
drewhayward/DFOL-VQA
8c7d403bac560588ab3ac45774a3e4f71fbe9c90
[ "MIT" ]
23
2020-08-17T16:18:33.000Z
2022-03-09T11:47:37.000Z
src/nsvqa/nn/interpreter/batch_base_interpreter.py
drewhayward/DFOL-VQA
8c7d403bac560588ab3ac45774a3e4f71fbe9c90
[ "MIT" ]
1
2021-06-11T15:51:24.000Z
2021-06-11T15:51:24.000Z
src/nsvqa/nn/interpreter/batch_base_interpreter.py
drewhayward/DFOL-VQA
8c7d403bac560588ab3ac45774a3e4f71fbe9c90
[ "MIT" ]
7
2020-11-09T07:25:27.000Z
2022-01-13T04:25:09.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file # in the project root for full license information. import torch import torch.nn as nn import os from operator import itemgetter from nsvqa.nn.interpreter import util from nsvqa.nn.interpreter.batch_base_types import...
49.896739
216
0.615401
d025b6ffd1d42bc44b635a1d7b115470cf637c7e
11,064
py
Python
sunshine_conversations_client/model/whatsapp_all_of.py
Dima2022/sunshine-conversations-python
8085a82dc320d97f09bb0174d11dd1865a65404a
[ "Apache-2.0" ]
4
2020-09-27T14:28:25.000Z
2022-02-02T13:51:29.000Z
sunshine_conversations_client/model/whatsapp_all_of.py
Dima2022/sunshine-conversations-python
8085a82dc320d97f09bb0174d11dd1865a65404a
[ "Apache-2.0" ]
3
2021-09-30T18:18:58.000Z
2021-12-04T07:55:23.000Z
sunshine_conversations_client/model/whatsapp_all_of.py
Dima2022/sunshine-conversations-python
8085a82dc320d97f09bb0174d11dd1865a65404a
[ "Apache-2.0" ]
5
2020-11-07T02:08:18.000Z
2021-12-07T17:10:23.000Z
# coding: utf-8 """ Sunshine Conversations API The version of the OpenAPI document: 9.4.5 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from sunshine_conversations_client.configuration import Configuration from sunshine_conversations_client.undefine...
38.020619
330
0.659888
d6ca871d5729a86e70958ec6dcacd54181b71ba0
1,357
py
Python
save-bib.py
2e0byo/bib
9d6cd7fcf214894caa4831d948ac868b696b0a02
[ "CC0-1.0" ]
null
null
null
save-bib.py
2e0byo/bib
9d6cd7fcf214894caa4831d948ac868b696b0a02
[ "CC0-1.0" ]
null
null
null
save-bib.py
2e0byo/bib
9d6cd7fcf214894caa4831d948ac868b696b0a02
[ "CC0-1.0" ]
null
null
null
import bibtexparser from bibtexparser.bwriter import BibTexWriter from bibtexparser.bparser import BibTexParser from pathlib import Path def load_uniq(fn): with Path(fn).open() as f: parser = BibTexParser() parser.ignore_nonstandard_types = False parsed = bibtexparser.load(f, parser) s...
23
82
0.625645
56858b6cae000a8cd4e1d9cb227a02ade643b932
5,850
py
Python
setup.py
moremoban/yehua
e90ac103ec28e1101fd845796c02083d52ddf43e
[ "MIT" ]
19
2017-12-08T04:54:15.000Z
2021-08-19T19:59:19.000Z
setup.py
moremoban/yehua
e90ac103ec28e1101fd845796c02083d52ddf43e
[ "MIT" ]
55
2018-05-07T04:14:47.000Z
2021-04-19T17:38:09.000Z
setup.py
chfw/yehua
e90ac103ec28e1101fd845796c02083d52ddf43e
[ "MIT" ]
3
2017-07-01T14:53:57.000Z
2017-07-23T02:25:05.000Z
#!/usr/bin/env python3 """ Template by pypi-mobans """ import os import sys import codecs import locale import platform from shutil import rmtree from setuptools import Command, setup, find_packages PY2 = sys.version_info[0] == 2 PY26 = PY2 and sys.version_info[1] < 7 PY33 = sys.version_info < (3, 4) # Work around...
26
88
0.60188
92a0cb8347f1ee1a202a8aeb4c0488d3280ad783
8,412
py
Python
venv/Lib/site-packages/prompt_toolkit/styles/defaults.py
mirosa25/ITI-202-Final-Project
b46e7ffccf43a52ee0e72b889c5aac6887228dc2
[ "MIT" ]
1,318
2019-07-11T10:34:39.000Z
2022-03-29T15:05:19.000Z
venv/Lib/site-packages/prompt_toolkit/styles/defaults.py
mirosa25/ITI-202-Final-Project
b46e7ffccf43a52ee0e72b889c5aac6887228dc2
[ "MIT" ]
387
2019-09-05T16:33:09.000Z
2022-03-31T10:43:39.000Z
venv/Lib/site-packages/prompt_toolkit/styles/defaults.py
mirosa25/ITI-202-Final-Project
b46e7ffccf43a52ee0e72b889c5aac6887228dc2
[ "MIT" ]
66
2019-11-11T15:33:12.000Z
2022-03-01T07:55:55.000Z
""" The default styling. """ from prompt_toolkit.cache import memoized from .base import ANSI_COLOR_NAMES from .named_colors import NAMED_COLORS from .style import BaseStyle, Style, merge_styles __all__ = [ "default_ui_style", "default_pygments_style", ] #: Default styling. Mapping from classnames to their s...
36.894737
86
0.628507