hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
8f2ce5cc295cddd6ecc639e0c58afe5b7996aae9
1,108
py
Python
day17/lib.py
heijp06/AoC-2021
f6afead5e1fe9a839d608a5792f84e54803742c1
[ "MIT" ]
null
null
null
day17/lib.py
heijp06/AoC-2021
f6afead5e1fe9a839d608a5792f84e54803742c1
[ "MIT" ]
null
null
null
day17/lib.py
heijp06/AoC-2021
f6afead5e1fe9a839d608a5792f84e54803742c1
[ "MIT" ]
null
null
null
import re from math import sqrt def part1(data): _, (y_min, _) = get_positions(data) speed = abs(y_min) - 1 return speed * (speed + 1) // 2 def part2(data): # sourcery skip: use-assigned-variable (x_min, x_max), (y_min, y_max) = get_positions(data) vx_min = int(sqrt(2 * x_min)) vx_max = x_m...
27.02439
76
0.509025
02a56f4d47edd71f1d33c4f629a2dd5c30eaf9d4
6,114
py
Python
idb/cli/commands/target.py
Rezduan83/idb
a43b499302a37ada164cd183b9edb0e3a4699a1d
[ "MIT" ]
null
null
null
idb/cli/commands/target.py
Rezduan83/idb
a43b499302a37ada164cd183b9edb0e3a4699a1d
[ "MIT" ]
5
2021-09-02T15:20:04.000Z
2022-02-27T09:50:05.000Z
idb/cli/commands/target.py
Rezduan83/idb
a43b499302a37ada164cd183b9edb0e3a4699a1d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import os from argparse import SUPPRESS, ArgumentParser, Namespace from typing import Union import idb.com...
30.118227
94
0.596827
b55c086bce27dc1e1428db225e66cee23d18b342
5,072
py
Python
telescope/server/twitch.py
tonywu7/telescope
25791180010a225e493fb68a96e66bfda7a07bce
[ "Apache-2.0" ]
null
null
null
telescope/server/twitch.py
tonywu7/telescope
25791180010a225e493fb68a96e66bfda7a07bce
[ "Apache-2.0" ]
null
null
null
telescope/server/twitch.py
tonywu7/telescope
25791180010a225e493fb68a96e66bfda7a07bce
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Tony Wu +https://github.com/tonywu7/ # # 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 ...
34.040268
83
0.599369
490f5857e6f9638342c60099b6817a25cb1f318a
917
py
Python
pywal/backends/colorz.py
esp10mm/pywal
2372bc38b7893221ee3d7e1ffe3276d727d884a9
[ "MIT" ]
null
null
null
pywal/backends/colorz.py
esp10mm/pywal
2372bc38b7893221ee3d7e1ffe3276d727d884a9
[ "MIT" ]
null
null
null
pywal/backends/colorz.py
esp10mm/pywal
2372bc38b7893221ee3d7e1ffe3276d727d884a9
[ "MIT" ]
null
null
null
""" Generate a colorscheme using Colorz. """ import logging import shutil import subprocess import sys from .. import colors from .. import util def gen_colors(img): """Generate a colorscheme using Colorz.""" cmd = ["colorz", "-n", "6", "--bold", "0", "--no-preview"] return subprocess.check_output([*cmd,...
24.131579
70
0.623773
7ff9312c2d44467c7dbbb26059de0e64b5ca501e
1,759
py
Python
anonymise/vcf_edit.py
MelbourneGenomics/anonymise
6ab3b6399cd51f23cce2a70861ea6ffb12482b02
[ "BSD-3-Clause" ]
null
null
null
anonymise/vcf_edit.py
MelbourneGenomics/anonymise
6ab3b6399cd51f23cce2a70861ea6ffb12482b02
[ "BSD-3-Clause" ]
1
2019-03-21T05:14:03.000Z
2019-03-21T05:16:58.000Z
anonymise/vcf_edit.py
MelbourneGenomics/anonymise
6ab3b6399cd51f23cce2a70861ea6ffb12482b02
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' Replace text in the header of a VCF file in certain fields for the purposes of anonymisation. Replaces --old with --new in the following places: - VCF header up until and including the column header line We assume that only header lines start with '#'. Usage: vcf_edit.py --old o...
33.826923
101
0.660034
d38652c22df89f856ab2697377f30f754f08c007
102
py
Python
function_views/apps.py
hackersandslackers/django-views-tutorial
71cd7fdb0846a61fcff7f1822d58b0e862be352a
[ "MIT" ]
18
2020-04-03T11:42:30.000Z
2021-12-12T07:00:41.000Z
function_views/apps.py
hackersandslackers/django-views-tutorial
71cd7fdb0846a61fcff7f1822d58b0e862be352a
[ "MIT" ]
48
2020-06-05T17:54:00.000Z
2021-10-18T19:21:11.000Z
function_views/apps.py
hackersandslackers/django-views-tutorial
71cd7fdb0846a61fcff7f1822d58b0e862be352a
[ "MIT" ]
7
2020-05-29T10:19:13.000Z
2022-02-03T09:34:18.000Z
from django.apps import AppConfig class FunctionViewsConfig(AppConfig): name = "function_views"
17
37
0.784314
7d1e273ea7dc7bd0b38ff79094ae6c272437be2d
2,948
py
Python
nova/tests/unit/api/openstack/compute/legacy_v2/extensions/foxinsocks.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-09-22T11:27:16.000Z
2015-11-02T12:33:46.000Z
nova/tests/unit/api/openstack/compute/legacy_v2/extensions/foxinsocks.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/tests/unit/api/openstack/compute/legacy_v2/extensions/foxinsocks.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright 2011 OpenStack Foundation # 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 requ...
31.698925
78
0.670624
78d4269e346e36d6bd4235d182eef09b9c03b79d
2,613
py
Python
scout/commands/update/user.py
CHRUdeLille/scout
0f70bec32e078d1825ebf20237f4a4979585dffb
[ "BSD-3-Clause" ]
null
null
null
scout/commands/update/user.py
CHRUdeLille/scout
0f70bec32e078d1825ebf20237f4a4979585dffb
[ "BSD-3-Clause" ]
null
null
null
scout/commands/update/user.py
CHRUdeLille/scout
0f70bec32e078d1825ebf20237f4a4979585dffb
[ "BSD-3-Clause" ]
null
null
null
import logging import click LOG = logging.getLogger(__name__) @click.command('user', short_help='Update a user') @click.option('--user-id', '-u', help="A email adress that identifies the user", required=True ) @click.option('--update-role', '-r', # There will ...
32.6625
87
0.605434
451c04853a69e8eec3c544373eb05e6059f4ecc6
28,343
py
Python
service/models/account.py
OA-DeepGreen/jper
042719a790a34f877050a32f896b947ce4407b4e
[ "Apache-2.0" ]
null
null
null
service/models/account.py
OA-DeepGreen/jper
042719a790a34f877050a32f896b947ce4407b4e
[ "Apache-2.0" ]
1
2022-02-03T12:35:18.000Z
2022-02-03T12:35:18.000Z
service/models/account.py
OA-DeepGreen/jper
042719a790a34f877050a32f896b947ce4407b4e
[ "Apache-2.0" ]
3
2016-07-15T07:29:33.000Z
2020-02-03T11:20:34.000Z
import uuid from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from werkzeug.datastructures import TypeConversionDict from octopus.core import app from octopus.lib import dataobj from service import dao from esprit import raw class Account(dataobj.DataObj, dao...
34.776687
141
0.536288
9c39f852949b38c74a6145b05cbd330f9acfe84a
442
py
Python
ch03/jinja_filter.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
5
2021-06-11T11:24:04.000Z
2022-03-22T03:22:57.000Z
ch03/jinja_filter.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
null
null
null
ch03/jinja_filter.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
10
2021-04-18T12:31:14.000Z
2022-03-28T07:21:16.000Z
import ipaddress from jinja2 import Environment, FileSystemLoader loader = FileSystemLoader("templates") environment = Environment(loader=loader) def to_ipv6(addr): raw_ipv4 = "2002::" + str(addr) ipv6 = ipaddress.IPv6Address(raw_ipv4) return str(ipv6) environment.filters["toIPv6"] = to_ipv6 tpl = environment.g...
23.263158
49
0.751131
d5b15f630e3d9966827805399ea554d64770bc9a
1,043
py
Python
setup.py
arturtamborski/grcpass
ea799d78900a1942bac891e077d9329af8f3fe96
[ "MIT" ]
null
null
null
setup.py
arturtamborski/grcpass
ea799d78900a1942bac891e077d9329af8f3fe96
[ "MIT" ]
null
null
null
setup.py
arturtamborski/grcpass
ea799d78900a1942bac891e077d9329af8f3fe96
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='grcpass', version='1.0.1', description='Simple script which scrapes off password from www.grc.com/passwords.htm', url='https://github.com/arturtamborski/grcpass', download_url='https://github.com/arturtamborski/grcpass/archive/1.0.1.tar.gz', keywords='p...
34.766667
90
0.647172
a13d2ca8d5639a5137a1f2029e2308f06bfa5926
10,618
py
Python
homeassistant/components/sensor/citybikes.py
maihde/home-assistant
688d70644949a658e0607e52b3896a2c4c8a85e7
[ "Apache-2.0" ]
2
2020-02-20T18:47:55.000Z
2021-11-09T11:33:28.000Z
homeassistant/components/sensor/citybikes.py
maihde/home-assistant
688d70644949a658e0607e52b3896a2c4c8a85e7
[ "Apache-2.0" ]
5
2022-03-01T06:31:03.000Z
2022-03-31T07:20:45.000Z
homeassistant/components/sensor/citybikes.py
maihde/home-assistant
688d70644949a658e0607e52b3896a2c4c8a85e7
[ "Apache-2.0" ]
3
2018-08-27T10:08:30.000Z
2020-07-04T10:07:03.000Z
""" Sensor for the CityBikes data. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.citybikes/ """ import logging from datetime import timedelta import asyncio import aiohttp import async_timeout import voluptuous as vol import homeassistant.helpe...
36.115646
79
0.662743
badb198fbfbc73c36d9ff46894cfba8bce69f3d5
1,092
py
Python
src/pretix/base/services/quotas.py
bsod85/pretix
d86b3a217352f7ad24008685393f9af18fcf6e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/services/quotas.py
bsod85/pretix
d86b3a217352f7ad24008685393f9af18fcf6e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/services/quotas.py
bsod85/pretix
d86b3a217352f7ad24008685393f9af18fcf6e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from datetime import timedelta from django.db import models from django.db.models import F, Max, OuterRef, Q, Subquery from django.dispatch import receiver from django.utils.timezone import now from pretix.base.models import LogEntry, Quota from pretix.celery_app import app from ..signals import periodic_task @rec...
29.513514
111
0.722527
95213bbbf8856f1c5b3cb632417d741b05b29eca
2,177
py
Python
cdk/permissions_boundary.py
MAAP-Project/ept-tools
8e051188bc09f144753ccba999daab588709ff23
[ "MIT" ]
null
null
null
cdk/permissions_boundary.py
MAAP-Project/ept-tools
8e051188bc09f144753ccba999daab588709ff23
[ "MIT" ]
null
null
null
cdk/permissions_boundary.py
MAAP-Project/ept-tools
8e051188bc09f144753ccba999daab588709ff23
[ "MIT" ]
null
null
null
from typing import Union import jsii from aws_cdk import aws_iam, core from jsii._reference_map import _refs from jsii._utils import Singleton @jsii.implements(core.IAspect) class PermissionsBoundaryAspect: """ This aspect finds all aws_iam.Role objects in a node (ie. CDK stack) and sets permissions bound...
37.534483
87
0.610932
8797b1d96b9b68146228240b264dfbb983500bd5
16,890
py
Python
tradenity/resources/shipping_method.py
tradenity/python-sdk
d13fbe23f4d6ff22554c6d8d2deaf209371adaf1
[ "Apache-2.0" ]
1
2020-03-19T04:09:17.000Z
2020-03-19T04:09:17.000Z
tradenity/resources/shipping_method.py
tradenity/python-sdk
d13fbe23f4d6ff22554c6d8d2deaf209371adaf1
[ "Apache-2.0" ]
null
null
null
tradenity/resources/shipping_method.py
tradenity/python-sdk
d13fbe23f4d6ff22554c6d8d2deaf209371adaf1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Tradenity API Tradenity eCommerce Rest API Contact: support@tradenity.com """ from __future__ import absolute_import import re import pprint # python 2 and python 3 compatibility library import six from tradenity.api_client import ApiClient class ShippingMethod(object): ...
28.72449
197
0.596744
a31df2140d3bde6423c31b6cd430101440570202
72,456
py
Python
intersight/model/boot_cdd_device_relationship.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/boot_cdd_device_relationship.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/boot_cdd_device_relationship.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
62.732468
1,678
0.657792
665eeec04039b49ff248d53ec5ffb732ec8f927e
690
py
Python
deepr/jobs/cleanup_checkpoints.py
drohde/deepr
672772ea3ce9cf391f9f8efc7ae9c9d438957817
[ "Apache-2.0" ]
50
2020-05-19T17:29:44.000Z
2022-01-15T20:50:50.000Z
deepr/jobs/cleanup_checkpoints.py
drohde/deepr
672772ea3ce9cf391f9f8efc7ae9c9d438957817
[ "Apache-2.0" ]
75
2020-05-20T16:53:37.000Z
2022-01-12T15:53:46.000Z
deepr/jobs/cleanup_checkpoints.py
drohde/deepr
672772ea3ce9cf391f9f8efc7ae9c9d438957817
[ "Apache-2.0" ]
17
2020-05-25T13:23:03.000Z
2022-02-21T11:22:08.000Z
"""Cleanup Checkpoints in path_model""" from dataclasses import dataclass import logging from deepr.jobs import base from deepr.io.path import Path LOGGER = logging.getLogger(__name__) @dataclass class CleanupCheckpoints(base.Job): """Cleanup Checkpoints in path_model""" path_model: str path_checkpoi...
26.538462
92
0.718841
1fc689e2e7241cf464d6a83666bcb5b9a3737845
5,375
py
Python
src/pretix/control/context.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-25T00:11:00.000Z
2020-04-25T00:11:00.000Z
src/pretix/control/context.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/control/context.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import sys from importlib import import_module from django.conf import settings from django.db.models import Q from django.urls import Resolver404, get_script_prefix, resolve from django.utils.translation import get_language from django_scopes import scope from pretix.base.models.auth import StaffSession from pretix....
41.666667
110
0.693209
af22fd74e5e8f54aba78a52b0a0a7069fc8205fd
29
py
Python
NGUI/__init__.py
TanyaAdams1/WechatEncrypt
e3437a465275de51c2f2b26ca46d249ed3a48d97
[ "Apache-2.0" ]
1
2017-08-09T06:58:44.000Z
2017-08-09T06:58:44.000Z
NGUI/__init__.py
TanyaAdams1/WechatEncrypt
e3437a465275de51c2f2b26ca46d249ed3a48d97
[ "Apache-2.0" ]
null
null
null
NGUI/__init__.py
TanyaAdams1/WechatEncrypt
e3437a465275de51c2f2b26ca46d249ed3a48d97
[ "Apache-2.0" ]
null
null
null
from NGUI.interface import *
14.5
28
0.793103
86143f23f413ca0c9f8904af83b44b2d8be66ecf
94
py
Python
dell_projector/__init__.py
Abhiseshan/dell-projector
ef869afc9c33a6907160948c6548cad2d96e7341
[ "MIT" ]
null
null
null
dell_projector/__init__.py
Abhiseshan/dell-projector
ef869afc9c33a6907160948c6548cad2d96e7341
[ "MIT" ]
null
null
null
dell_projector/__init__.py
Abhiseshan/dell-projector
ef869afc9c33a6907160948c6548cad2d96e7341
[ "MIT" ]
null
null
null
"""Python library to control Dell projector.""" from dell_projector.main import Projector
23.5
48
0.765957
2b397ec5a3f2dcd8313e37d77ef93ab113b14084
4,469
py
Python
wsgi/myproject/myproject/settings.py
ccltw/openshift-nginx-django-channels
2d3f02f5b3f34b23e08bfb1cf71b2f679a8fb4f1
[ "MIT" ]
null
null
null
wsgi/myproject/myproject/settings.py
ccltw/openshift-nginx-django-channels
2d3f02f5b3f34b23e08bfb1cf71b2f679a8fb4f1
[ "MIT" ]
null
null
null
wsgi/myproject/myproject/settings.py
ccltw/openshift-nginx-django-channels
2d3f02f5b3f34b23e08bfb1cf71b2f679a8fb4f1
[ "MIT" ]
null
null
null
""" Django settings for myproject project. Generated by 'django-admin startproject' using Django 1.11.2. 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/ """ import ...
27.084848
91
0.67599
5cd77b6b42bb3310e3d3dad9b73ef72ba099a0f4
472
py
Python
departments/models.py
masrufjaman/central-shop
c65f80a0f48cf1e07133bad8d6c0d48fdc548226
[ "MIT" ]
1
2021-07-04T13:55:07.000Z
2021-07-04T13:55:07.000Z
departments/models.py
masrufjaman/central-shop
c65f80a0f48cf1e07133bad8d6c0d48fdc548226
[ "MIT" ]
null
null
null
departments/models.py
masrufjaman/central-shop
c65f80a0f48cf1e07133bad8d6c0d48fdc548226
[ "MIT" ]
null
null
null
from django.db import models class Product(models.Model): name = models.CharField(max_length=200, null=True) price = models.FloatField(null=True) digital = models.BooleanField(default=False, null=True, blank=False) image = models.ImageField(null=True, blank=True) def __str__(self): return...
23.6
72
0.627119
775d61dd4f248a959a94f3fe34aa8c495c4852d2
1,373
py
Python
mariamalia/urls.py
marie0901/portfolio-django-api
eeacc4f75ae7d0ecfe573d5098cc97dbc822b565
[ "MIT" ]
null
null
null
mariamalia/urls.py
marie0901/portfolio-django-api
eeacc4f75ae7d0ecfe573d5098cc97dbc822b565
[ "MIT" ]
null
null
null
mariamalia/urls.py
marie0901/portfolio-django-api
eeacc4f75ae7d0ecfe573d5098cc97dbc822b565
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import url, include from django.contrib import admin from django.views.static import serve from rest_framework import routers from blog import views as bv from projects import views as pv from tags import views as tv from learning import views as lv from sliders ...
28.020408
86
0.7378
c24ab1246a29abafa3cfa540f41af74e4dee608e
1,103
py
Python
py3/scrapy/scrapy_lamyoung_title_multi_xpath_csv.py
baiyuwubing/python-exercise
4dc703368ac385d4d412587bc672de09a33a0381
[ "MIT" ]
11
2019-12-06T07:13:39.000Z
2022-02-22T10:16:22.000Z
py3/scrapy/scrapy_lamyoung_title_multi_xpath_csv.py
baiyuwubing/python-exercise
4dc703368ac385d4d412587bc672de09a33a0381
[ "MIT" ]
1
2020-03-31T06:39:17.000Z
2020-03-31T06:39:17.000Z
py3/scrapy/scrapy_lamyoung_title_multi_xpath_csv.py
baiyuwubing/python-exercise
4dc703368ac385d4d412587bc672de09a33a0381
[ "MIT" ]
16
2020-03-12T08:31:50.000Z
2021-09-18T11:05:28.000Z
#author lamyoung import requests from multiprocessing.dummy import Pool import lxml.html import csv def scrapy(index): page_url = ''; if index>1: page_url=f'page{index}/' url=f'http://lamyoung.com/{page_url}'; print(url); html=requests.get(url); if html.status_code == 200: html_bytes=html.content; select...
26.902439
86
0.69447
065a4bc766565fdf6986cbf930b1d3e424768f85
800
py
Python
2_multi_line_command.py
leo-gal/pyplus_exercise
223d3c16fe485a0ee99c3ab7d161a758975a9d7b
[ "Apache-2.0" ]
null
null
null
2_multi_line_command.py
leo-gal/pyplus_exercise
223d3c16fe485a0ee99c3ab7d161a758975a9d7b
[ "Apache-2.0" ]
null
null
null
2_multi_line_command.py
leo-gal/pyplus_exercise
223d3c16fe485a0ee99c3ab7d161a758975a9d7b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from netmiko import ConnectHandler from getpass import getpass device1 = { "host": "cisco3.lasthop.io", "username": "pyclass", "password": getpass(), "device_type": "cisco_ios" # "session_log": session_log.txt } net_connect = ConnectHandler(**device1) prin...
36.363636
133
0.68125
200e6635c46a81741e58fad09f96297d05a17e89
4,290
py
Python
Particulates.py
Nano2PlastProject/InteractiveFullMulti
492d89ef8244d4bdbebfc8be2692308da36ba735
[ "MIT" ]
null
null
null
Particulates.py
Nano2PlastProject/InteractiveFullMulti
492d89ef8244d4bdbebfc8be2692308da36ba735
[ "MIT" ]
null
null
null
Particulates.py
Nano2PlastProject/InteractiveFullMulti
492d89ef8244d4bdbebfc8be2692308da36ba735
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Apr 30 16:10:20 2019 @author: AntoniaPraetorius #PradoDomercq added some modifications for Size bins """ import math from GlobalConstants import * #define Particulates class class Particulates: "This is a class to create Particulate objects" #class attribute ...
43.333333
124
0.649417
2be8d5bc85267f7441c31112a08a04577518f17f
3,463
py
Python
xlsxwriter/test/worksheet/test_write_sheet_views2.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/worksheet/test_write_sheet_views2.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/worksheet/test_write_sheet_views2.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
1
2020-04-12T16:44:58.000Z
2020-04-12T16:44:58.000Z
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013, John McNamara, jmcnamara@cpan.org # import unittest from ..compatibility import StringIO from ...worksheet import Worksheet class TestWriteSheetViews(unittest.TestCase): """ Test...
35.701031
333
0.66041
41359b97aa04732fee7fe8c66cc9e3ab057b06ba
11,392
py
Python
Tools/BuildSlaveSupport/build.webkit.org-config/factories.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/BuildSlaveSupport/build.webkit.org-config/factories.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/BuildSlaveSupport/build.webkit.org-config/factories.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2017 Apple Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
46.688525
232
0.729898
d3969a9c4aa70708827d15bfe7946268d6cfe4b6
1,351
py
Python
nova/db/sqlalchemy/migrate_repo/versions/136_add_index_to_instances.py
bopopescu/nova_audit
1cd2901802f82d39411adfa04cf2f432ff3bf280
[ "Apache-2.0" ]
2
2015-11-05T04:52:34.000Z
2016-03-07T03:00:06.000Z
nova/db/sqlalchemy/migrate_repo/versions/136_add_index_to_instances.py
bopopescu/nova_audit
1cd2901802f82d39411adfa04cf2f432ff3bf280
[ "Apache-2.0" ]
1
2018-01-19T07:50:49.000Z
2018-01-19T07:50:49.000Z
nova/db/sqlalchemy/migrate_repo/versions/136_add_index_to_instances.py
bopopescu/nova_audit
1cd2901802f82d39411adfa04cf2f432ff3bf280
[ "Apache-2.0" ]
1
2020-07-24T09:15:58.000Z
2020-07-24T09:15:58.000Z
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
32.166667
78
0.712805
5dc636b3c78e517e29ad6990d3b7d08df79fcb8e
1,104
py
Python
bcs-ui/backend/templatesets/release/urls.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
599
2019-06-25T03:20:46.000Z
2022-03-31T12:14:33.000Z
bcs-ui/backend/templatesets/release/urls.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
537
2019-06-27T06:03:44.000Z
2022-03-31T12:10:01.000Z
bcs-ui/backend/templatesets/release/urls.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
214
2019-06-25T03:26:05.000Z
2022-03-31T07:52:03.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
46
115
0.735507
3d9176f57a1bfa7e2d45ff910e8d619921eb8473
395
py
Python
core/recc/crypto/password.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
3
2021-06-20T02:24:10.000Z
2022-01-26T23:55:33.000Z
core/recc/crypto/password.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
core/recc/crypto/password.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from hashlib import pbkdf2_hmac from recc.variables.crypto import ( DEFAULT_PBKDF2_HMAC_HASH_NAME, DEFAULT_PBKDF2_HMAC_ITERATIONS, ) def encrypt_password(hashed_user_pw: str, salt: bytes) -> bytes: return pbkdf2_hmac( DEFAULT_PBKDF2_HMAC_HASH_NAME, bytes.fromhex(ha...
23.235294
64
0.713924
e873e0d88b780e527db72e53446357ba24f60492
837
py
Python
supermethod.py
pawankumarsharm/Pythoncoding
f0e5f6c1d22b101e109088529640326dd5405a6a
[ "bzip2-1.0.6" ]
null
null
null
supermethod.py
pawankumarsharm/Pythoncoding
f0e5f6c1d22b101e109088529640326dd5405a6a
[ "bzip2-1.0.6" ]
null
null
null
supermethod.py
pawankumarsharm/Pythoncoding
f0e5f6c1d22b101e109088529640326dd5405a6a
[ "bzip2-1.0.6" ]
null
null
null
class Person: def __init__(self,name,age): self.name=name self.age=age def display(self): print('name:',self.name) print('age:',self.age) class Student(Person): def __init__(self,name,age,rollno,marks): super().__init__(name,age) self.rollno=rollno self.marks=marks def display(self): super()....
19.465116
44
0.694146
b9e6d18de9a44296cf67467f38c01fcdfab211df
1,295
py
Python
asyncstdlib/__init__.py
mgorny/asyncstdlib
55c00379a0a9897124c0d5588c364744ac14d4d4
[ "MIT" ]
null
null
null
asyncstdlib/__init__.py
mgorny/asyncstdlib
55c00379a0a9897124c0d5588c364744ac14d4d4
[ "MIT" ]
null
null
null
asyncstdlib/__init__.py
mgorny/asyncstdlib
55c00379a0a9897124c0d5588c364744ac14d4d4
[ "MIT" ]
null
null
null
"""The missing async toolbox""" from .builtins import ( anext, zip, map, filter, enumerate, iter, all, any, max, min, sum, list, dict, set, tuple, sorted, ) from .functools import reduce, lru_cache, cache, cached_property from .contextlib import closing, c...
15.05814
71
0.542857
3a8b82de973f923651b7e5e57d5ab073e3a97e92
7,230
py
Python
cupti_trace/cupti_make_report.py
grate-driver/envytools
237d859ed4307524ed99f9a3601e3ef40a7d0814
[ "MIT" ]
7
2017-01-26T10:30:42.000Z
2022-01-12T19:58:34.000Z
cupti_trace/cupti_make_report.py
skeggsb/envytools
43528b2b84c6f9e2b87d284fab409bd4ed83e6ea
[ "MIT" ]
6
2017-02-05T12:04:16.000Z
2017-04-18T13:45:07.000Z
cupti_trace/cupti_make_report.py
skeggsb/envytools
43528b2b84c6f9e2b87d284fab409bd4ed83e6ea
[ "MIT" ]
3
2017-01-23T10:12:05.000Z
2017-09-06T20:25:15.000Z
#!/usr/bin/python3 # Copyright (C) 2015 Samuel Pitoiset <samuel.pitoiset@gmail.com> # All Rights Reserved. # # 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 wi...
34.103774
76
0.657676
f47574a281b658cfe25ab5accf6ec394394cfbdf
2,162
py
Python
multisplice.py
stgn/multisplice
f9701f3190fd0bbcf82fb3bb029a23b150e892e9
[ "MIT" ]
null
null
null
multisplice.py
stgn/multisplice
f9701f3190fd0bbcf82fb3bb029a23b150e892e9
[ "MIT" ]
null
null
null
multisplice.py
stgn/multisplice
f9701f3190fd0bbcf82fb3bb029a23b150e892e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os, re import click from subprocess import call from collections import defaultdict from datetime import timedelta from fractions import Fraction @click.command() @click.option('--fps', '-f', default='30000/1001', metavar='FRAMERATE', help='Frame rate to convert frame numbe...
37.929825
111
0.552729
a6dfb13d6cba9db9753585429e1eac019c01c390
1,785
py
Python
Experimental setup/pressure_flow_regression.py
leonpliner/PhD
06319fbcfa15c586b7315a900f0e199d47974f7e
[ "Apache-2.0" ]
null
null
null
Experimental setup/pressure_flow_regression.py
leonpliner/PhD
06319fbcfa15c586b7315a900f0e199d47974f7e
[ "Apache-2.0" ]
null
null
null
Experimental setup/pressure_flow_regression.py
leonpliner/PhD
06319fbcfa15c586b7315a900f0e199d47974f7e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Fluigent Pressure - Flow experiment data processing. The aim of this experiment was to determine the pressure-flow relationship. This will be done by fitting a polynomial regression model to the obtained dataset. Since there was an issue with the liquid refill whic...
23.486842
120
0.738936
ff244276960fe3cc640c0a9401ed49b849dff17a
797
py
Python
config.py
ProjoyRoy/flask-microblog
99ec2b005e35406541ad4ece2ed9bf378544acd6
[ "MIT" ]
null
null
null
config.py
ProjoyRoy/flask-microblog
99ec2b005e35406541ad4ece2ed9bf378544acd6
[ "MIT" ]
null
null
null
config.py
ProjoyRoy/flask-microblog
99ec2b005e35406541ad4ece2ed9bf378544acd6
[ "MIT" ]
null
null
null
import os import secrets from datetime import timedelta WTF_CSRF_ENABLED = True SECRET_KEY = secrets.SECRET_KEY REMEMBER_COOKIE_DURATION = timedelta(days=365) basedir = os.path.abspath(os.path.dirname(__file__)) SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db') SQLALCHEMY_MIGRATE_REPO = os.pat...
23.441176
72
0.800502
d99e29e26c57c805122ab136000f4fca8c112543
6,814
py
Python
kapitan/inputs/jinja2_filters.py
anirban1c/kapitan
cea275f4e2c2b62fe16d6a919f71e8c6cca83af4
[ "Apache-2.0" ]
null
null
null
kapitan/inputs/jinja2_filters.py
anirban1c/kapitan
cea275f4e2c2b62fe16d6a919f71e8c6cca83af4
[ "Apache-2.0" ]
1
2019-03-29T10:38:51.000Z
2019-03-29T10:38:51.000Z
kapitan/inputs/jinja2_filters.py
anirban1c/kapitan
cea275f4e2c2b62fe16d6a919f71e8c6cca83af4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2019 The Kapitan 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 applic...
31.114155
121
0.668036
99e8e20cab58e09f84db36050d6c43d25e8128ed
6,833
py
Python
python_modules/libraries/dagster-k8s/dagster_k8s_tests/test_job_spec.py
JPeer264/dagster-fork
32cc87a36134be7c442fa85d6867eb1d3301aea0
[ "Apache-2.0" ]
1
2020-09-19T16:35:59.000Z
2020-09-19T16:35:59.000Z
python_modules/libraries/dagster-k8s/dagster_k8s_tests/test_job_spec.py
JPeer264/dagster-fork
32cc87a36134be7c442fa85d6867eb1d3301aea0
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/dagster_k8s_tests/test_job_spec.py
JPeer264/dagster-fork
32cc87a36134be7c442fa85d6867eb1d3301aea0
[ "Apache-2.0" ]
null
null
null
import os import yaml from dagster_k8s import construct_dagster_graphql_k8s_job from dagster_k8s.job import K8S_RESOURCE_REQUIREMENTS_KEY, get_k8s_resource_requirements from dagster_test.test_project import ( get_test_project_external_pipeline, test_project_docker_image, test_project_environments_path, ) ...
32.383886
99
0.662813
f73c80973a7d2cfbcb7f86532731fb3427a0ed23
146,585
py
Python
ion/services/sa/observatory/observatory_management_service.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
3
2016-09-20T09:50:06.000Z
2018-08-10T01:41:38.000Z
ion/services/sa/observatory/observatory_management_service.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
null
null
null
ion/services/sa/observatory/observatory_management_service.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
2
2016-03-16T22:25:49.000Z
2016-11-26T14:54:21.000Z
#!/usr/bin/env python """Service managing marine facility sites and deployments""" import string import time import logging from collections import defaultdict from pyon.core.governance import ORG_MANAGER_ROLE, DATA_OPERATOR, OBSERVATORY_OPERATOR, INSTRUMENT_OPERATOR, GovernanceHeaderValues, has_org_role from ooi....
50.097403
194
0.666514
e7cedf4188ce9ca58e72fa7f32495b90fd4d3032
13,448
py
Python
cinder/tests/unit/volume/drivers/dell_emc/powermax/test_powermax_fc.py
traghavendra/cinder-train
49af592c61da3216c04f5771b8ebf0927c5ce1c8
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/dell_emc/powermax/test_powermax_fc.py
traghavendra/cinder-train
49af592c61da3216c04f5771b8ebf0927c5ce1c8
[ "Apache-2.0" ]
28
2017-08-17T14:46:05.000Z
2022-03-29T12:42:12.000Z
cinder/tests/unit/volume/drivers/dell_emc/powermax/test_powermax_fc.py
alokchandra11/cinder
121d9f512b4a6d1afe6a690effb7c2b379040a7b
[ "Apache-2.0" ]
3
2017-04-27T16:11:40.000Z
2020-02-12T21:27:00.000Z
# Copyright (c) 2017-2019 Dell Inc. or its subsidiaries. # 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...
46.857143
78
0.643516
dedc0a7bd10477c179469843e8d6a3702dbb7a01
1,795
py
Python
matching_test.py
MichaelChuai/modelzoo
4744f555784873192168c65e2c10b49b982cb1f1
[ "Apache-2.0" ]
null
null
null
matching_test.py
MichaelChuai/modelzoo
4744f555784873192168c65e2c10b49b982cb1f1
[ "Apache-2.0" ]
null
null
null
matching_test.py
MichaelChuai/modelzoo
4744f555784873192168c65e2c10b49b982cb1f1
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch from meta.matching import * import dlutil as dl shots = 2 ways = 5 G = Embedding(1, 10) context_embedding_network = MatchingNetwork.build_context_embedding_network(10, 64, 1) network = MatchingNetwork(G, context_embedding_network, ways).cuda(0) optimizer = torch.optim.Adam(network.par...
32.053571
148
0.708635
4ac1d035a027da9a558d8a416dfeb227c1134d7b
4,424
py
Python
boise/mnist_multiple_exploration_var_amp_v6.py
nikhil-garg/VDSP_ocl
906867f8cd8a899a1ce309c5ec843fa1ce865373
[ "MIT" ]
null
null
null
boise/mnist_multiple_exploration_var_amp_v6.py
nikhil-garg/VDSP_ocl
906867f8cd8a899a1ce309c5ec843fa1ce865373
[ "MIT" ]
null
null
null
boise/mnist_multiple_exploration_var_amp_v6.py
nikhil-garg/VDSP_ocl
906867f8cd8a899a1ce309c5ec843fa1ce865373
[ "MIT" ]
1
2021-03-17T20:04:08.000Z
2021-03-17T20:04:08.000Z
import itertools import random import logging import numpy as np import matplotlib.pyplot as plt import os from mnist_vdsp_multiple_var_amp import * from utilis import * from args_mnist import args as my_args # from ax import optimize import pandas as pd from itertools import product import time if __name__ == '__ma...
26.650602
224
0.617315
0b8f3854b111c1f6239aac81eeb1b554f9117a32
14,870
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
32.326087
336
0.70195
c61e24c422bd328c7616aff0909249e3bea1024c
5,684
py
Python
topic_analysis/feature_extraction/__init__.py
surajiyer/topic-analysis
80dff3be2077f4eb859472651ad80653adaaaa26
[ "MIT" ]
null
null
null
topic_analysis/feature_extraction/__init__.py
surajiyer/topic-analysis
80dff3be2077f4eb859472651ad80653adaaaa26
[ "MIT" ]
null
null
null
topic_analysis/feature_extraction/__init__.py
surajiyer/topic-analysis
80dff3be2077f4eb859472651ad80653adaaaa26
[ "MIT" ]
null
null
null
from .bngrams import BngramsVectorizer from .noun_phrases import NounPhraseMatcher import numpy as np import pandas as pd import psutil from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.utils.sparsefuncs import min_max_axis, _get_median, csc_median_axis_0 from topic_analysis.utils import _logging...
36.909091
101
0.669775
5aaa6bca7099437d39ca0c5eab091d3cb1eb3f31
5,124
py
Python
meiduo/meiduo/apps/goods/models.py
q934744153/meiduo_mall
6f5b0ae38cc80c21ddca161c428fea09584d4b95
[ "MIT" ]
null
null
null
meiduo/meiduo/apps/goods/models.py
q934744153/meiduo_mall
6f5b0ae38cc80c21ddca161c428fea09584d4b95
[ "MIT" ]
null
null
null
meiduo/meiduo/apps/goods/models.py
q934744153/meiduo_mall
6f5b0ae38cc80c21ddca161c428fea09584d4b95
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from django.db import models from meiduo.utils.models import BaseModel # Create your models here. class GoodsCategory(BaseModel): """商品类别""" name = models.CharField(max_length=10, verbose_name='名称') parent = models.ForeignKey('self', related_name='...
34.621622
128
0.702381
c3224a2d754f30d6f1a074ff381603106d8a7c90
783
py
Python
pythonfuzz/dictionnary.py
MJ-SEO/py_fuzz
789fbfea21bf644ba4d00554fe4141694b0a190a
[ "Apache-2.0" ]
null
null
null
pythonfuzz/dictionnary.py
MJ-SEO/py_fuzz
789fbfea21bf644ba4d00554fe4141694b0a190a
[ "Apache-2.0" ]
null
null
null
pythonfuzz/dictionnary.py
MJ-SEO/py_fuzz
789fbfea21bf644ba4d00554fe4141694b0a190a
[ "Apache-2.0" ]
null
null
null
import random import re import os class Dictionary: line_re = re.compile('"(.+)"$') def __init__(self, dict_path=None): if not dict_path or not os.path.exists(dict_path): self._dict = list() return _dict = set() with open(dict_path) as f: for line i...
27
69
0.503193
6acc8cedaa92e903aecea32f5a64ad9b60dc9146
215
py
Python
src/utils/message_id.py
Abdul-Muiz-Iqbal/PostMan
31c94f751c87ac6f3079b014da7402a4bbf22cc3
[ "Apache-2.0" ]
null
null
null
src/utils/message_id.py
Abdul-Muiz-Iqbal/PostMan
31c94f751c87ac6f3079b014da7402a4bbf22cc3
[ "Apache-2.0" ]
3
2021-05-05T16:05:26.000Z
2021-05-08T10:24:18.000Z
src/utils/message_id.py
Abdul-Muiz-Iqbal/PostMan
31c94f751c87ac6f3079b014da7402a4bbf22cc3
[ "Apache-2.0" ]
1
2021-05-01T10:14:40.000Z
2021-05-01T10:14:40.000Z
from bson.objectid import ObjectId from dataclasses import dataclass @dataclass class MessageId: """Id of a Message. Is always unique and created automatically by MongoDb, or a Server""" _id: ObjectId
30.714286
94
0.748837
062bb227a07042c615f18ba4572f9a919a275589
575
py
Python
setup/ssh_install.py
garstka/idact-test-environment
a9b430636f5198de7f3c5de517ab93b9b57c6ca6
[ "MIT" ]
null
null
null
setup/ssh_install.py
garstka/idact-test-environment
a9b430636f5198de7f3c5de517ab93b9b57c6ca6
[ "MIT" ]
null
null
null
setup/ssh_install.py
garstka/idact-test-environment
a9b430636f5198de7f3c5de517ab93b9b57c6ca6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Installs the ssh daemon in the container.""" import subprocess INSTALL_COMMAND = ['yum', '-y', 'install', 'openssh-server'] SSH_INTERNAL_PORTS = [22, 8022, 8023, 8024, 8025] def get_append_port_command(port: int): return ['sed', '-i', r"$ a\Port {port}".format(port=port), ...
23
65
0.669565
d6b295ea7aa03a7d1580f536945ed9642861a0f0
6,831
py
Python
model/sentiment_analysics_model/sentiment_analysis.py
ayanchoudhary/digialpha-inter-IIT
4a683830949b44029ddfd73ebd52f27d441ad8ab
[ "MIT" ]
null
null
null
model/sentiment_analysics_model/sentiment_analysis.py
ayanchoudhary/digialpha-inter-IIT
4a683830949b44029ddfd73ebd52f27d441ad8ab
[ "MIT" ]
3
2022-03-19T17:37:30.000Z
2022-03-26T07:47:33.000Z
model/sentiment_analysics_model/sentiment_analysis.py
ayanchoudhary/digialpha-inter-IIT
4a683830949b44029ddfd73ebd52f27d441ad8ab
[ "MIT" ]
1
2022-03-16T11:32:26.000Z
2022-03-16T11:32:26.000Z
# Import the required libraries import os import re import pandas as pd import json import nltk nltk.download('punkt') from nltk.tokenize import sent_tokenize from collections import Counter from tqdm.auto import tqdm from transformers import AutoTokenizer, AutoModelForSequenceClassification from transformers import...
36.529412
122
0.648661
8d4ffcd76b2f6051f1c970f14418e8f910844702
2,384
py
Python
flint/optim/adadelta.py
Renovamen/tinyark
da536e8f8132ef531c5bef3feebd3178c1877fce
[ "MIT" ]
15
2021-02-08T16:01:52.000Z
2021-02-10T07:49:26.000Z
flint/optim/adadelta.py
Renovamen/tinyark
da536e8f8132ef531c5bef3feebd3178c1877fce
[ "MIT" ]
null
null
null
flint/optim/adadelta.py
Renovamen/tinyark
da536e8f8132ef531c5bef3feebd3178c1877fce
[ "MIT" ]
2
2021-05-10T06:40:45.000Z
2021-05-10T14:47:03.000Z
import numpy as np from .optimizer import Optimizer class Adadelta(Optimizer): """ Implementation of Adadelta algorithm proposed in [1]. .. math:: h_t = \\rho h_{t-1} + (1 - \\rho) g_t^2 .. math:: g'_t = \sqrt{\\frac{\Delta \\theta_{t-1} + \epsilon}{h_t + \epsilon}} \cdot g_t .. math...
33.111111
120
0.55495
f06514df3a3fc4024ff761cb93855aa182c95b5f
7,751
py
Python
test/integration/local/test_container.py
akhilmehra/sagemaker-tensorflow-serving-container
e7f37f0f25bd8e57f5518794c2ffe66a52a4b158
[ "Apache-2.0" ]
null
null
null
test/integration/local/test_container.py
akhilmehra/sagemaker-tensorflow-serving-container
e7f37f0f25bd8e57f5518794c2ffe66a52a4b158
[ "Apache-2.0" ]
null
null
null
test/integration/local/test_container.py
akhilmehra/sagemaker-tensorflow-serving-container
e7f37f0f25bd8e57f5518794c2ffe66a52a4b158
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
30.159533
141
0.598632
28878c2c0482b1d4835ee4a77877e571c6d09867
2,915
py
Python
CIM16/IEC61970/Dynamics/SynchronousMachineTimeConstantReactance.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
CIM16/IEC61970/Dynamics/SynchronousMachineTimeConstantReactance.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
CIM16/IEC61970/Dynamics/SynchronousMachineTimeConstantReactance.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
1
2021-04-02T18:04:49.000Z
2021-04-02T18:04:49.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # 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, publish...
42.867647
242
0.706003
1fa2187703d2a10356fd74f51a3dc0b0e60a0f56
1,188
py
Python
plots_and_images/barplot_tasks.py
princeton-nlp/MultilingualAnalysis
b0d61c93c0c020a698a06264897dde14c9db471c
[ "MIT" ]
6
2021-11-03T05:10:35.000Z
2022-03-25T20:28:06.000Z
plots_and_images/barplot_tasks.py
princeton-nlp/MultilingualAnalysis
b0d61c93c0c020a698a06264897dde14c9db471c
[ "MIT" ]
null
null
null
plots_and_images/barplot_tasks.py
princeton-nlp/MultilingualAnalysis
b0d61c93c0c020a698a06264897dde14c9db471c
[ "MIT" ]
1
2022-01-24T15:07:35.000Z
2022-01-24T15:07:35.000Z
import matplotlib.pyplot as plt import numpy as np import seaborn as sns sns.set(style="dark") # labels = ['Inversion', 'Permutation', 'Syntax', 'Transliteration'] labels = ['Inversion', 'Permutation', 'Syntax'] # Data xnli = [10.2, 3.6, 0.9] ner = [49.1, 26.3, 14.6] pos = [30.2, 11.2, 4.4] xquad = [32.8, 0, 0] # L...
26.4
69
0.680135
81a508426f93bb316511d0f49fdd684c3712bc16
752
py
Python
setynuco/core/djangomodels.py
ahmad88me/setynuco
703322dac088554b2ec4af37fda1a3d151a00e9f
[ "Apache-2.0" ]
1
2018-09-04T09:08:17.000Z
2018-09-04T09:08:17.000Z
setynuco/core/djangomodels.py
ahmad88me/setynuco
703322dac088554b2ec4af37fda1a3d151a00e9f
[ "Apache-2.0" ]
null
null
null
setynuco/core/djangomodels.py
ahmad88me/setynuco
703322dac088554b2ec4af37fda1a3d151a00e9f
[ "Apache-2.0" ]
null
null
null
################################################################# # TO make this app compatible with Django # ################################################################# import os import sys proj_path = (os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) venv_python = os....
35.809524
82
0.599734
8d259a956d4fe657a8d2d444e7fc5a6dcd8bb2a0
2,631
py
Python
mmcv/parallel/collate.py
iasawseen/mmcv
70d457f74008710da2eb9a398650e88a7e2ae027
[ "Apache-2.0" ]
54
2021-11-05T02:15:15.000Z
2022-03-23T13:40:43.000Z
mmcv/parallel/collate.py
Luodian/Refitting_mmdet
46245c499ce92d87c2724dd0f5033ad8c7a58533
[ "Apache-2.0" ]
8
2019-06-13T06:00:08.000Z
2021-07-24T05:25:33.000Z
mmcv/parallel/collate.py
Luodian/Refitting_mmdet
46245c499ce92d87c2724dd0f5033ad8c7a58533
[ "Apache-2.0" ]
6
2021-11-09T02:26:38.000Z
2022-03-05T01:38:30.000Z
import collections import torch import torch.nn.functional as F from torch.utils.data.dataloader import default_collate from .data_container import DataContainer def collate(batch, samples_per_gpu=1): """Puts each data field into a tensor/DataContainer with outer dimension batch size. Extend default_co...
39.268657
79
0.574686
fc58c9f2ece7d428df2d5b475b68c93579a6b4f6
11,428
py
Python
apps/training/views.py
Houston-ARTCC/zhuartcc.org
82c73e66c74181ea7679fd633f8a66c2c156cbe6
[ "MIT" ]
8
2020-07-20T08:04:21.000Z
2020-10-23T14:21:39.000Z
apps/training/views.py
MikeRomaa/zhuartcc.org
82c73e66c74181ea7679fd633f8a66c2c156cbe6
[ "MIT" ]
33
2020-09-05T03:30:00.000Z
2020-12-03T16:49:46.000Z
apps/training/views.py
Houston-ARTCC/zhuartcc.org
82c73e66c74181ea7679fd633f8a66c2c156cbe6
[ "MIT" ]
2
2020-09-20T00:14:46.000Z
2020-10-23T14:20:51.000Z
import json import os import pytz import requests from datetime import datetime, timedelta from discord_webhook import DiscordEmbed, DiscordWebhook from django.http import HttpResponse from django.shortcuts import render, redirect from django.template.loader import render_to_string from django.urls import reverse from...
38.738983
117
0.663546
804c5bc2cd8611168cfe6ca8f5c2380936188227
578
py
Python
bin/image_resizer.py
smrmkt/keras-modeling
735c579deb722b4be080c4362fe2696787ab6378
[ "BSD-3-Clause" ]
null
null
null
bin/image_resizer.py
smrmkt/keras-modeling
735c579deb722b4be080c4362fe2696787ab6378
[ "BSD-3-Clause" ]
null
null
null
bin/image_resizer.py
smrmkt/keras-modeling
735c579deb722b4be080c4362fe2696787ab6378
[ "BSD-3-Clause" ]
null
null
null
import os from PIL import Image size = 64, 64 data_path = '../data/images' in_path = os.path.join(data_path, 'original') out_path = os.path.join(data_path, 'resized') in_files = os.listdir(in_path) for in_file in in_files: out_file = os.path.join(out_path, in_file) if in_file != out_file: try: ...
27.52381
65
0.641869
e851cd9458d0c949a83c7aa2bac50223a50e557f
2,122
py
Python
my_happy_pandas/core/window/numba_.py
ggservice007/my-happy-pandas
63145d54e452177f7d5b2fc8fdbc1fdf37dd5b16
[ "Apache-2.0" ]
null
null
null
my_happy_pandas/core/window/numba_.py
ggservice007/my-happy-pandas
63145d54e452177f7d5b2fc8fdbc1fdf37dd5b16
[ "Apache-2.0" ]
null
null
null
my_happy_pandas/core/window/numba_.py
ggservice007/my-happy-pandas
63145d54e452177f7d5b2fc8fdbc1fdf37dd5b16
[ "Apache-2.0" ]
null
null
null
from typing import Any, Callable, Dict, Optional, Tuple import numpy as np from my_happy_pandas._typing import Scalar from my_happy_pandas.compat._optional import import_optional_dependency from my_happy_pandas.core.util.numba_ import ( check_kwargs_and_nopython, get_jit_arguments, jit_user_function, ) ...
28.293333
85
0.661169
70456aed0b5a8816948efc60d5669a914749e169
3,362
py
Python
qcengine/programs/terachem_pbs.py
MolSSI/dqm_compute
c171e80c51afc5bc08ac8a84971b526fd33671d3
[ "BSD-3-Clause" ]
105
2018-08-15T14:47:27.000Z
2022-02-14T01:53:28.000Z
qcengine/programs/terachem_pbs.py
MolSSI/dqm_compute
c171e80c51afc5bc08ac8a84971b526fd33671d3
[ "BSD-3-Clause" ]
338
2018-08-18T15:48:25.000Z
2022-03-30T09:02:40.000Z
qcengine/programs/terachem_pbs.py
MolSSI/dqm_compute
c171e80c51afc5bc08ac8a84971b526fd33671d3
[ "BSD-3-Clause" ]
74
2018-08-28T04:37:04.000Z
2022-03-31T06:57:51.000Z
""" Calls TeraChem in its "server mode" via a protobuf interface. """ import logging import os from typing import TYPE_CHECKING from qcelemental.models import AtomicResult from qcelemental.util import which_import from .model import ProgramHarness if TYPE_CHECKING: from qcelemental.models import AtomicInput ...
32.326923
119
0.616597
882b1842b298522477635d60fa3a851a3bd4d65b
137
py
Python
001_HelloWorld/simple_math.py
ufoscout/python_examples
efeab0e4c220e76ef4131ff6f76c4c09ee99f4b3
[ "MIT" ]
null
null
null
001_HelloWorld/simple_math.py
ufoscout/python_examples
efeab0e4c220e76ef4131ff6f76c4c09ee99f4b3
[ "MIT" ]
null
null
null
001_HelloWorld/simple_math.py
ufoscout/python_examples
efeab0e4c220e76ef4131ff6f76c4c09ee99f4b3
[ "MIT" ]
null
null
null
print "2 + 3 =", 2+3, "!" print "9/2 =", 9/2 print "9.0/2 =", 9.0/2 print "9%2 =", 9%2 print "5 > -2?", 5 > -2 print "5 <= -2?", 5 <= -2
19.571429
25
0.408759
a9c503a3c7cb8989d9ad5e15e01d8b34d6bcf8d3
5,477
py
Python
convertor/formats.py
mugoh/audioConvertor
c462aec96fffe281d438fac12ce6b046693f15e1
[ "Apache-2.0" ]
7
2020-08-05T12:27:45.000Z
2022-02-08T23:48:55.000Z
convertor/formats.py
mugoh/audioConvertor
c462aec96fffe281d438fac12ce6b046693f15e1
[ "Apache-2.0" ]
null
null
null
convertor/formats.py
mugoh/audioConvertor
c462aec96fffe281d438fac12ce6b046693f15e1
[ "Apache-2.0" ]
2
2021-04-23T13:39:04.000Z
2021-09-01T06:59:54.000Z
""" This module holds the class that makes subprocess calls to ffmpeg with the received CLI commands. """ import subprocess import os import platform from click import echo, style from convertor.utils.file_types import require_ffmepg, check_is_video class Convertor: """ Makes calls to subproc...
29.605405
77
0.532956
225a7421b8b4bb6c8437a1bcf38f9af98951086d
2,742
py
Python
wx_bot.py
wolfg1969/my-wechat-app
521720de1e91dcce2f37cb034c9557bc7ca7bdf7
[ "MIT" ]
1
2016-03-18T14:37:12.000Z
2016-03-18T14:37:12.000Z
wx_bot.py
wolfg1969/my-wechat-app
521720de1e91dcce2f37cb034c9557bc7ca7bdf7
[ "MIT" ]
null
null
null
wx_bot.py
wolfg1969/my-wechat-app
521720de1e91dcce2f37cb034c9557bc7ca7bdf7
[ "MIT" ]
null
null
null
# coding=utf-8 import StringIO import hashlib import io import pytz import requests from PIL import Image from datetime import datetime, timedelta from wx_app import app, redis_store __author__ = 'guoyong' NASA_OPEN_API_KEY = app.config['NASA_OPEN_API_KEY'] BASE_URL = app.config['BASE_URL'] APOD_CACHE_KEY = app.c...
27.148515
115
0.624362
50ef16212820e9f5a7b582abd8942256b2b3176e
626
py
Python
packt-social-media-mining/Chap04/facebook_get_page_info.py
bitwhys/mining-social-web
8d84c85a415d63bd53b8eb441a4258dc914f4d9f
[ "BSD-2-Clause" ]
1
2018-04-28T12:38:55.000Z
2018-04-28T12:38:55.000Z
twitterpackage/Chap04/facebook_get_page_info.py
albre116/SyscoSocialMedia
a5c3746258cf3804bf8316fe5ae8968e3bb1182a
[ "MIT" ]
7
2020-03-24T18:01:12.000Z
2021-06-08T20:47:00.000Z
packt-social-media-mining/Chap04/facebook_get_page_info.py
bitwhys/mining-social-web
8d84c85a415d63bd53b8eb441a4258dc914f4d9f
[ "BSD-2-Clause" ]
null
null
null
# Chap04/facebook_get_page_info.py import os import json import facebook from argparse import ArgumentParser def get_parser(): parser = ArgumentParser() parser.add_argument('--page') return parser if __name__ == '__main__': parser = get_parser() args = parser.parse_args() token = os.environ.g...
20.193548
53
0.623003
916c8e5d187c2a2b4c64748e8ba36ddc37a78e4a
49,535
py
Python
src/bootstrap/bootstrap.py
rakshith-ravi/rust
acb5c16fa8acf7fd3b48fc218881f006577bab1a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2022-01-03T22:01:07.000Z
2022-01-03T22:01:07.000Z
src/bootstrap/bootstrap.py
rakshith-ravi/rust
acb5c16fa8acf7fd3b48fc218881f006577bab1a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
src/bootstrap/bootstrap.py
rakshith-ravi/rust
acb5c16fa8acf7fd3b48fc218881f006577bab1a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import argparse import contextlib import datetime import distutils.version import hashlib import json import os import re import shutil import subprocess import sys import tarfile import tempfile from time import time, sleep # Acquire a lock on the buil...
40.569206
100
0.586293
f74e5f8f74616921ddfa3c986e30955bccb0887a
5,457
py
Python
code/lstm_mixed_loso.py
bagustris/deep_mlp_ser
079bc6414287dbfb23a52e1e1869b91584eb037e
[ "BSD-3-Clause" ]
7
2020-04-21T07:27:31.000Z
2022-01-18T10:24:37.000Z
code/lstm_mixed_loso.py
bagustris/deep_mlp_ser
079bc6414287dbfb23a52e1e1869b91584eb037e
[ "BSD-3-Clause" ]
2
2020-10-09T03:04:35.000Z
2022-01-18T11:37:52.000Z
code/lstm_mixed_loso.py
bagustris/deep_mlp_ser
079bc6414287dbfb23a52e1e1869b91584eb037e
[ "BSD-3-Clause" ]
2
2020-06-19T23:37:00.000Z
2021-12-19T22:07:44.000Z
# CSL Paper: Dimensional speech emotion recognition from acoustic and text # Changelog: # 2019-09-01: initial version # 2019-10-06: optimizer MTL parameters with linear search (in progress) # 2012-12-25: modified fot ser_iemocap_loso_hfs.py # feature is either std+mean or std+mean+silence (uncomment line 44...
36.871622
123
0.702767
357348c79d3dce2ba09a37244eb969583cf29bbb
9,848
py
Python
safe_transaction_service/history/tests/test_tx_processor.py
rsksmart/safe-transaction-service
7697ed54d5a68e8fd81b1738e9b5ee4b5265ef0e
[ "MIT" ]
null
null
null
safe_transaction_service/history/tests/test_tx_processor.py
rsksmart/safe-transaction-service
7697ed54d5a68e8fd81b1738e9b5ee4b5265ef0e
[ "MIT" ]
2
2021-06-09T17:58:44.000Z
2021-06-10T19:42:32.000Z
safe_transaction_service/history/tests/test_tx_processor.py
rsksmart/safe-transaction-service
7697ed54d5a68e8fd81b1738e9b5ee4b5265ef0e
[ "MIT" ]
1
2021-07-05T21:55:50.000Z
2021-07-05T21:55:50.000Z
import logging from django.test import TestCase from eth_account import Account from eth_utils import keccak from web3 import Web3 from gnosis.safe.safe_signature import SafeSignatureType from ..indexers.tx_processor import SafeTxProcessor from ..models import (InternalTxDecoded, ModuleTransaction, ...
52.10582
117
0.653229
3dc300b3ce1ca5a5934d2ffd0aeba59b71eef2d1
1,456
py
Python
data_augmentation.py
wantero/desafio-1-2020
a0d042d63e1cf122a26e3b5f7fe1a855f24a99d2
[ "Apache-2.0" ]
null
null
null
data_augmentation.py
wantero/desafio-1-2020
a0d042d63e1cf122a26e3b5f7fe1a855f24a99d2
[ "Apache-2.0" ]
null
null
null
data_augmentation.py
wantero/desafio-1-2020
a0d042d63e1cf122a26e3b5f7fe1a855f24a99d2
[ "Apache-2.0" ]
null
null
null
import numpy as np from keras.preprocessing.image import load_img from keras.preprocessing.image import img_to_array from keras.preprocessing.image import ImageDataGenerator from os import listdir from os.path import isfile, join INPUT_PATH = "./doc/source/dataset/v3/negative/" OUTPUT_PATH = "./doc/source/dataset/v3/...
33.860465
75
0.669643
21667ac72fce358380217a24efae164316a4a63e
331
py
Python
day1/part2/rocket.py
gmelodie/adventofcode2019
4f18945b8b671590d6998fa7df8c373fbc641dbf
[ "MIT" ]
null
null
null
day1/part2/rocket.py
gmelodie/adventofcode2019
4f18945b8b671590d6998fa7df8c373fbc641dbf
[ "MIT" ]
null
null
null
day1/part2/rocket.py
gmelodie/adventofcode2019
4f18945b8b671590d6998fa7df8c373fbc641dbf
[ "MIT" ]
null
null
null
import fileinput total_fuel = 0 for line in fileinput.input(): modmass = int(line) modfuel = int(modmass/3) - 2 fuelfuel = int(modfuel/3) - 2 while fuelfuel > 0: modfuel += fuelfuel fuelfuel = int(fuelfuel/3) - 2 print(modmass, " => ", modfuel) total_fuel += modfuel print(t...
17.421053
38
0.613293
9d0cff883ba16d069f685272fccbf13341bc6379
2,591
py
Python
models/utils.py
tttzof351/lrpd-paper-code
e61af61a9fe6a30e2111aacd80fe43e629ed45cc
[ "MIT" ]
null
null
null
models/utils.py
tttzof351/lrpd-paper-code
e61af61a9fe6a30e2111aacd80fe43e629ed45cc
[ "MIT" ]
null
null
null
models/utils.py
tttzof351/lrpd-paper-code
e61af61a9fe6a30e2111aacd80fe43e629ed45cc
[ "MIT" ]
1
2021-10-05T20:50:45.000Z
2021-10-05T20:50:45.000Z
import json from pprint import pprint import torch import torch.nn as nn from .model_builders import AudioClassificationModel def set_convert_mode_on(model, flag=True): for name, child in model.named_children(): if hasattr(child, "convert_mode_on"): print(f"{child} convert_mode_on") ...
38.102941
98
0.658819
44ba71fb1f8aa9c38b8aff833fc579d04925246e
197
py
Python
main.py
sadid07/AI-Prolog-Recipe-Suggestion
1a2e303e0603f68d4f11381703c70d048c595e2f
[ "Apache-2.0" ]
null
null
null
main.py
sadid07/AI-Prolog-Recipe-Suggestion
1a2e303e0603f68d4f11381703c70d048c595e2f
[ "Apache-2.0" ]
null
null
null
main.py
sadid07/AI-Prolog-Recipe-Suggestion
1a2e303e0603f68d4f11381703c70d048c595e2f
[ "Apache-2.0" ]
null
null
null
import wx from main_frame import MainFrame if __name__ == "__main__": #Initialize APP, chat window and display it app = wx.App() frame = MainFrame() frame.Show() app.MainLoop()
21.888889
47
0.670051
cf06112c75d4b5e015ee531c794187df5e30b97f
9,702
py
Python
file_oper/iCloud/crowl-icloud.py
urahito/python_proj
08e7bdb0b85d5bdaff7dc12123a6cf529d773b51
[ "MIT" ]
null
null
null
file_oper/iCloud/crowl-icloud.py
urahito/python_proj
08e7bdb0b85d5bdaff7dc12123a6cf529d773b51
[ "MIT" ]
null
null
null
file_oper/iCloud/crowl-icloud.py
urahito/python_proj
08e7bdb0b85d5bdaff7dc12123a6cf529d773b51
[ "MIT" ]
null
null
null
# -- coding: utf-8 -- # 操作系 import configparser import tqdm import shutil from operator import attrgetter from pathlib import Path from PIL import Image import zipfile # ログ系 import logging logger = None # 基本ライブラリ import sys, os, csv, time from datetime import datetime as ddt from datetime import timedelta as dlt # 外部クラ...
32.019802
110
0.623892
c17beac2eab61cd0cb1942ee365b108d38bea6b5
27,598
py
Python
sdk/python/pulumi_azure_native/network/v20201101/get_application_gateway.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20201101/get_application_gateway.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20201101/get_application_gateway.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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 fro...
50.361314
926
0.714545
06a5c5ed29d55eb2798f654bff42655a157fdacf
525
py
Python
vn_telex/utils/TelexRule.py
miketvo/vn_kmn_compiler
b0d34c6a8e1ad1e5350ab982fa8c3dde695edd33
[ "MIT" ]
null
null
null
vn_telex/utils/TelexRule.py
miketvo/vn_kmn_compiler
b0d34c6a8e1ad1e5350ab982fa8c3dde695edd33
[ "MIT" ]
null
null
null
vn_telex/utils/TelexRule.py
miketvo/vn_kmn_compiler
b0d34c6a8e1ad1e5350ab982fa8c3dde695edd33
[ "MIT" ]
null
null
null
class TelexRule: def __init__(self, base, modifier, result, kmn_clogic=None, kmn_ologic=None): self.base = base self.modifier = modifier self.result = result self.kmn_clogic = kmn_clogic # Context logic self.kmn_ologic = kmn_ologic # Output logic def to_string(self): ...
47.727273
205
0.641905
df59186648f93f4b85ae9b3583a4b4eed1e7d28f
3,845
py
Python
jobs/SCH/JB_BOOKINGS_FISCAL_QTR_SO.py
bibinvasudev/EBI_Project
df2560139e463d68a37e67e0bb683c06fa9ef91b
[ "CNRI-Python" ]
null
null
null
jobs/SCH/JB_BOOKINGS_FISCAL_QTR_SO.py
bibinvasudev/EBI_Project
df2560139e463d68a37e67e0bb683c06fa9ef91b
[ "CNRI-Python" ]
null
null
null
jobs/SCH/JB_BOOKINGS_FISCAL_QTR_SO.py
bibinvasudev/EBI_Project
df2560139e463d68a37e67e0bb683c06fa9ef91b
[ "CNRI-Python" ]
null
null
null
# SCH1150.SH --> JB_BOOKINGS_FISCAL_QTR_SO.py #************************************************************************************************************** # # Created by : Vinay Kumbakonam # Modified by : bibin # Version : 1.2 # # Description : # 1. This script will load the data into 'BOOKING...
32.584746
218
0.56619
436b0b8716d6dffe95acd55ab50f64b3c6ac3d93
241
py
Python
ex-mundo2/ex046.py
PedroPegado/ex-cursoemvideo
46751a7238e6a142b639c4cc3acf1759411732d7
[ "MIT" ]
null
null
null
ex-mundo2/ex046.py
PedroPegado/ex-cursoemvideo
46751a7238e6a142b639c4cc3acf1759411732d7
[ "MIT" ]
null
null
null
ex-mundo2/ex046.py
PedroPegado/ex-cursoemvideo
46751a7238e6a142b639c4cc3acf1759411732d7
[ "MIT" ]
null
null
null
import time import emoji print('CONTEGEM REGRESSIVA') time.sleep(0.5) for c in range(10, 0, -1): print(c) time.sleep(1) print(emoji.emojize(':fireworks::fireworks::fireworks: == FELIZ ANO NOVO == :fireworks::fireworks::fireworks:'))
26.777778
112
0.701245
c2190321fdf8378b63bc4f954d993f8c7b30310f
1,004
py
Python
homeassistant/components/deconz/const.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
homeassistant/components/deconz/const.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
47
2020-07-23T07:13:11.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/deconz/const.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Constants for the deCONZ component.""" import logging LOGGER = logging.getLogger(__package__) DOMAIN = "deconz" CONF_BRIDGE_ID = "bridgeid" CONF_GROUP_ID_BASE = "group_id_base" DEFAULT_PORT = 80 DEFAULT_ALLOW_CLIP_SENSOR = False DEFAULT_ALLOW_DECONZ_GROUPS = True CONF_ALLOW_CLIP_SENSOR = "allow_clip_sensor" CON...
20.916667
72
0.732072
6c35ceabb89fb401fc7093354b96878f055bfbb9
1,756
py
Python
examples/CARLA_SAC/carla_agent.py
lp2333/PARL
e4bde1f5b7e69c5f8d3ee3a90a647dfe12204bd3
[ "ECL-2.0", "Apache-2.0" ]
3,172
2018-05-22T02:02:29.000Z
2022-03-31T09:14:56.000Z
examples/CARLA_SAC/carla_agent.py
BKBK00/PARL
f508bc6085420431b504441c7ff129e64826603e
[ "Apache-2.0" ]
422
2018-05-17T16:58:45.000Z
2022-03-31T02:03:25.000Z
examples/CARLA_SAC/carla_agent.py
BKBK00/PARL
f508bc6085420431b504441c7ff129e64826603e
[ "Apache-2.0" ]
794
2018-05-21T18:33:19.000Z
2022-03-30T13:38:09.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
36.583333
74
0.68508
83e9b477bf8d2b37e5d8764f9070dd5034522d57
48,779
py
Python
libs/pdfminer/pdfminer/rijndael.py
diverted247/SigningService
a630357a2bf5bea4e5d55106f092e4a2a31cab15
[ "MIT" ]
null
null
null
libs/pdfminer/pdfminer/rijndael.py
diverted247/SigningService
a630357a2bf5bea4e5d55106f092e4a2a31cab15
[ "MIT" ]
null
null
null
libs/pdfminer/pdfminer/rijndael.py
diverted247/SigningService
a630357a2bf5bea4e5d55106f092e4a2a31cab15
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Python implementation of Rijndael encryption algorithm. This code is in the public domain. This code is based on a public domain C implementation by Philip J. Erdelsky: http://www.efgh.com/software/rijndael.htm """ import struct def KEYLENGTH(keybits): return (keybits)/8 def RKL...
44.83364
89
0.691609
40e0106fd6a7fde9ccb079368b9e377152f07e30
890
py
Python
ArraysAndSorting/SherlockAndArray.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
8
2015-04-16T03:43:49.000Z
2018-08-14T22:47:03.000Z
ArraysAndSorting/SherlockAndArray.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
null
null
null
ArraysAndSorting/SherlockAndArray.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
7
2016-03-22T20:29:27.000Z
2018-09-29T18:55:47.000Z
# Importing library functions import sys ''' Function that determines if such an element exists. Note the time complexity It is O(N). Notice how clever I am. ''' def doesIndexExist(a): if (len(a) == 1): return True; else: leftSum = 0 index = 0 rightSum = sum(a[1:]) ...
25.428571
80
0.502247
f1161e8361383c4e35a2021718a182e118bdefa3
7,911
py
Python
regression-tests.py
tp7/Sushi
908c0ff228734059aebb914a8d10f8e4ce2e868c
[ "MIT" ]
470
2015-01-02T21:38:56.000Z
2022-03-19T13:10:37.000Z
regression-tests.py
Kadantte/Sushi
908c0ff228734059aebb914a8d10f8e4ce2e868c
[ "MIT" ]
36
2015-01-03T05:41:56.000Z
2021-04-01T02:11:26.000Z
regression-tests.py
Kadantte/Sushi
908c0ff228734059aebb914a8d10f8e4ce2e868c
[ "MIT" ]
45
2015-04-10T12:31:37.000Z
2022-01-23T21:16:38.000Z
from contextlib import contextmanager import json import logging import os import gc import sys import resource import re import subprocess import argparse from common import format_time from demux import Timecodes from subs import AssScript from wav import WavStream root_logger = logging.getLogger('') def strip_t...
36.795349
134
0.638984
f6f2ab5494f91d3e590a143979a9085d4663f3fe
609
py
Python
stubs.min/Revit/GeometryObjects.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/Revit/GeometryObjects.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Revit/GeometryObjects.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
# encoding: utf-8 # module Revit.GeometryObjects calls itself GeometryObjects # from RevitNodes,Version=1.2.1.3083,Culture=neutral,PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # classes class GeometryObjectSelector(object): # no doc @staticmethod def ByReferenceStableR...
22.555556
75
0.732348
d23a1149adeb50ed91f2d4f0739c37bfd94a625d
628
py
Python
nba/apiclient.py
rozzac90/new_nba
87feec5fc8ff6654fdb65229a047e0ff3023a9ff
[ "MIT" ]
1
2017-12-29T05:01:17.000Z
2017-12-29T05:01:17.000Z
nba/apiclient.py
rozzac90/new_nba
87feec5fc8ff6654fdb65229a047e0ff3023a9ff
[ "MIT" ]
2
2017-10-26T07:47:15.000Z
2020-04-18T12:24:36.000Z
nba/apiclient.py
rozzac90/nba
87feec5fc8ff6654fdb65229a047e0ff3023a9ff
[ "MIT" ]
null
null
null
from nba.baseclient import BaseClient from nba import endpoints class APIClient(BaseClient): def __init__(self): super(APIClient, self).__init__() self.boxscores = endpoints.Boxscores(self) self.common = endpoints.Common(self) self.draft = endpoints.Draft(self) self.events...
33.052632
52
0.678344
ef2135caa31480dfe5044689e8ceb326f078dbc5
1,724
py
Python
raster/migrations/0001_initial.py
bpneumann/django-raster
74daf9d396f2332a2cd83723b7330e6b10d73b1c
[ "BSD-3-Clause" ]
null
null
null
raster/migrations/0001_initial.py
bpneumann/django-raster
74daf9d396f2332a2cd83723b7330e6b10d73b1c
[ "BSD-3-Clause" ]
null
null
null
raster/migrations/0001_initial.py
bpneumann/django-raster
74daf9d396f2332a2cd83723b7330e6b10d73b1c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.gis.db import models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='RasterLayer', fields=[ ...
40.093023
179
0.560325
f97eedd21a4e3b388f6958192979ec69daac9f09
175
py
Python
test.py
leexinhao/Metallographic-detection-platform-based-on-DL
071565559883b7add0015074aff72ee1609a2b06
[ "Apache-2.0" ]
null
null
null
test.py
leexinhao/Metallographic-detection-platform-based-on-DL
071565559883b7add0015074aff72ee1609a2b06
[ "Apache-2.0" ]
null
null
null
test.py
leexinhao/Metallographic-detection-platform-based-on-DL
071565559883b7add0015074aff72ee1609a2b06
[ "Apache-2.0" ]
null
null
null
r"""运行入口 """ import sys from PyQt5 import QtWidgets import main_widget app = QtWidgets.QApplication(sys.argv) mw = main_widget.MainWidget() mw.show() sys.exit(app.exec_())
13.461538
38
0.742857
fbddeb377e130ff65041d237e0a8ab85a10ca9b6
1,450
py
Python
ProgrammerAlgorithmInterview/Chapter01/01_01_reverse_linked_list_02.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
ProgrammerAlgorithmInterview/Chapter01/01_01_reverse_linked_list_02.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
ProgrammerAlgorithmInterview/Chapter01/01_01_reverse_linked_list_02.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #coding:utf-8 class LNode(object): def __init__(self, x): self.val = x self.next = None def recursiveReverse(head): """ 方法功能:对不带头结点的单链表进行逆序 输入参数:firstRef: 链表头结点 """ if head == None or head.next == None: # 链表为空或只有一个元素 return head else: n...
19.863014
65
0.586207
f5b4ef7cc05a8e64be5041e83d37672448ed83fb
306
py
Python
Desafio Python/Aula 14 des63.py
ayresmajor/Curso-python
006229cec38ea365bf43b19e3ce93fbd32e1dca6
[ "MIT" ]
null
null
null
Desafio Python/Aula 14 des63.py
ayresmajor/Curso-python
006229cec38ea365bf43b19e3ce93fbd32e1dca6
[ "MIT" ]
null
null
null
Desafio Python/Aula 14 des63.py
ayresmajor/Curso-python
006229cec38ea365bf43b19e3ce93fbd32e1dca6
[ "MIT" ]
null
null
null
print('Sequência de Fibonacci') print('=' * 20) num = int(input('Quantos termos quer mostrar? ')) t1 = 0 t2 = 1 print('=-' * 30) print('{} -> {}'.format(t1, t2), end='') cont = 3 if cont <= num: t3 = t1 + t2 print(' -> {}'.format(t3), end='') t1 = t2 t2 = t3 cont += 1 print(' -> FIM')
19.125
49
0.506536
7acd960792807134daa773aaf8705bf693a1e244
443
py
Python
mpf/devices/shot_profile.py
cloudjor/mpf
1cf6bf18b0d81120383b0b128b0ebbfa1c62717c
[ "MIT" ]
null
null
null
mpf/devices/shot_profile.py
cloudjor/mpf
1cf6bf18b0d81120383b0b128b0ebbfa1c62717c
[ "MIT" ]
null
null
null
mpf/devices/shot_profile.py
cloudjor/mpf
1cf6bf18b0d81120383b0b128b0ebbfa1c62717c
[ "MIT" ]
null
null
null
"""Shot profiles.""" from mpf.core.mode import Mode from mpf.core.system_wide_device import SystemWideDevice from mpf.core.mode_device import ModeDevice class ShotProfile(ModeDevice, SystemWideDevice): """A shot profile.""" config_section = 'shot_profiles' collection = 'shot_profiles' class_label ...
22.15
59
0.708804
c367ec1606045938610f67b6b855cc89d7084a73
953
py
Python
atom/proton/python/test/test_goal_withdrawal_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/proton/python/test/test_goal_withdrawal_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/proton/python/test/test_goal_withdrawal_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.9.2 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import...
23.243902
95
0.721931
bd343f9e011b77ddc08f567688c9f448b7d0f452
956
py
Python
model.py
raptorz/userga
2dc86db097076045c2e3bbfae58537c8c10fe0d5
[ "MIT" ]
1
2017-01-21T13:32:56.000Z
2017-01-21T13:32:56.000Z
model.py
raptorz/userga
2dc86db097076045c2e3bbfae58537c8c10fe0d5
[ "MIT" ]
null
null
null
model.py
raptorz/userga
2dc86db097076045c2e3bbfae58537c8c10fe0d5
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -* ''' data model ~~~~~~~~~~~~~~~~ sqlalchemy data model. :copyright: 20160204 by raptor.zh@gmail.com. ''' from config import config from sqlalchemy import create_engine engine = create_engine(config["db_url"]) from sqlalchemy import Table, ForeignKey, Column, String, Unicode, Fl...
23.9
87
0.689331
03dc6df2c79a2678a5b23a849f73324946602279
4,410
py
Python
Gds/src/fprime_gds/common/models/common/channel_telemetry.py
hunterpaulson/fprime
70560897b56dc3037dc966c99751b708b1cc8a05
[ "Apache-2.0" ]
null
null
null
Gds/src/fprime_gds/common/models/common/channel_telemetry.py
hunterpaulson/fprime
70560897b56dc3037dc966c99751b708b1cc8a05
[ "Apache-2.0" ]
null
null
null
Gds/src/fprime_gds/common/models/common/channel_telemetry.py
hunterpaulson/fprime
70560897b56dc3037dc966c99751b708b1cc8a05
[ "Apache-2.0" ]
null
null
null
""" Created on Apr. 27, 2015 @author: reder """ from __future__ import print_function # Import the types this way so they do not need prefixing for execution. from fprime.common.models.serialize.type_exceptions import TypeException from fprime.common.models.serialize.type_exceptions import TypeMismatchException from ...
25.491329
80
0.607256
51cdb4146310aefc31e75a0f1a7fd593e36155fc
13,788
py
Python
pyrobotics/BB.py
BioRoboticsUNAM/pyRobotics
623f75b66c84b80d03251bb1472b43502a172c22
[ "MIT" ]
1
2021-04-18T06:11:48.000Z
2021-04-18T06:11:48.000Z
pyrobotics/BB.py
AldoVidales/pyRobotics
623f75b66c84b80d03251bb1472b43502a172c22
[ "MIT" ]
null
null
null
pyrobotics/BB.py
AldoVidales/pyRobotics
623f75b66c84b80d03251bb1472b43502a172c22
[ "MIT" ]
2
2019-09-05T04:09:53.000Z
2021-04-18T06:11:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' This module contains the main interface to interact with BlackBoard. Author: Adrián Revuelta Cuauhtli <adrianrc.89@gmail.com> Workplace: Bio-Robotics Lab., UNAM <http://bio-robotics.fi-p-unam.mx> ''' # STANDARD IMPORTS import threading import time import types import ...
35.812987
215
0.686612
4f3033b43704610619918a5198d6992e1516fae9
3,415
py
Python
Modules/Group.py
Bamgm14/GarbageBot-The-Original-
6d796a0e343491377c0195efff98aea903041b1a
[ "MIT" ]
1
2019-06-18T19:15:56.000Z
2019-06-18T19:15:56.000Z
Modules/Group.py
Bamgm14/GarbageBot-The-Original-
6d796a0e343491377c0195efff98aea903041b1a
[ "MIT" ]
null
null
null
Modules/Group.py
Bamgm14/GarbageBot-The-Original-
6d796a0e343491377c0195efff98aea903041b1a
[ "MIT" ]
null
null
null
import time as t import Modules.Constant as c def makeadmin(message,driver,textbox,name): botadmin=open('Special.txt','r+').read().split('\n') if message.split('!')[0].replace('\n','') in botadmin and message.split('!')[0].replace('\n','')!='': message=message.split('!')[1].split('\n')[0][9:].split...
40.654762
106
0.619327
f598c4d9452a3921ebecd09842e3f2e8066735f1
15,565
py
Python
hw0_release/.env/bin/pildriver.py
Renhy/CS131_release
23b92d04c4cbb122da18dc929199d3d06fb0251f
[ "MIT" ]
null
null
null
hw0_release/.env/bin/pildriver.py
Renhy/CS131_release
23b92d04c4cbb122da18dc929199d3d06fb0251f
[ "MIT" ]
null
null
null
hw0_release/.env/bin/pildriver.py
Renhy/CS131_release
23b92d04c4cbb122da18dc929199d3d06fb0251f
[ "MIT" ]
null
null
null
#!/Users/renhy/Desktop/cs131/CS131_release/hw0_release/.env/bin/python3.7 """PILdriver, an image-processing calculator using PIL. An instance of class PILDriver is essentially a software stack machine (Polish-notation interpreter) for sequencing PIL image transformations. The state of the instance is the interpreter ...
29.535104
79
0.591969
c114e8ac9ec08f59352cccd15e9b070252324360
18,710
py
Python
mmf/utils/configuration.py
xuefeicao/mmf
2ff00626ec2bc6b56a543da0dc2869c548e81fec
[ "BSD-3-Clause" ]
null
null
null
mmf/utils/configuration.py
xuefeicao/mmf
2ff00626ec2bc6b56a543da0dc2869c548e81fec
[ "BSD-3-Clause" ]
null
null
null
mmf/utils/configuration.py
xuefeicao/mmf
2ff00626ec2bc6b56a543da0dc2869c548e81fec
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import collections import json import logging import os import warnings from ast import literal_eval import demjson import torch from mmf.common.registry import registry from mmf.utils.env import import_user_module from mmf.utils.file_io import PathManager from mmf.ut...
33.232682
88
0.608872
bb675b6fe5dcf7303590ad8770bafbc6e5eb9640
890
py
Python
jivago/serialization/deserialization/optional_attribute_deserialization_strategy.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
12
2018-03-19T20:57:44.000Z
2020-01-27T14:11:24.000Z
jivago/serialization/deserialization/optional_attribute_deserialization_strategy.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
73
2018-04-20T22:26:00.000Z
2021-12-01T14:17:37.000Z
jivago/serialization/deserialization/optional_attribute_deserialization_strategy.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
1
2019-02-28T13:33:45.000Z
2019-02-28T13:33:45.000Z
from typing import Optional from jivago.inject import typing_meta_helper from jivago.lang.annotations import Override from jivago.lang.stream import Stream from jivago.serialization.deserialization_strategy import DeserializationStrategy, T class OptionalAttributeDeserializationStrategy(DeserializationStrategy): ...
35.6
106
0.767416
5ffc6e6970226588921bcc9f381a6b15e6c0fa25
6,007
py
Python
sapphiregram/users/views.py
Sapphire317/Sapphiregram
dcc4de6161e78cb5c4830f4221db3f9ac2d04898
[ "MIT" ]
null
null
null
sapphiregram/users/views.py
Sapphire317/Sapphiregram
dcc4de6161e78cb5c4830f4221db3f9ac2d04898
[ "MIT" ]
null
null
null
sapphiregram/users/views.py
Sapphire317/Sapphiregram
dcc4de6161e78cb5c4830f4221db3f9ac2d04898
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from . import models, serializers from sapphiregram.notifications import views as notification_views from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter from rest_auth.reg...
28.070093
89
0.659897
cb20a4cd4d68ac67cce45932e54440311acc70f8
2,769
py
Python
gaphor/core/modeling/tests/test_presentation.py
MartinIIOT/gaphor
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
[ "Apache-2.0" ]
null
null
null
gaphor/core/modeling/tests/test_presentation.py
MartinIIOT/gaphor
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
[ "Apache-2.0" ]
null
null
null
gaphor/core/modeling/tests/test_presentation.py
MartinIIOT/gaphor
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
[ "Apache-2.0" ]
null
null
null
from gaphas.item import Item from gaphor.core.eventmanager import event_handler from gaphor.core.modeling.diagram import Diagram from gaphor.core.modeling.event import ElementDeleted from gaphor.core.modeling.presentation import Presentation from gaphor.tests.raises import raises_exception_group class Example(Presen...
26.883495
73
0.75623
ec6c8ac0abc2af034aec052aa3852abf902f6730
313
py
Python
Zadanie_1/Program.py
tamaranesterenko/Python_LR_1-2
af18beac35150041f57e8839e4728db35fd7ee1e
[ "MIT" ]
null
null
null
Zadanie_1/Program.py
tamaranesterenko/Python_LR_1-2
af18beac35150041f57e8839e4728db35fd7ee1e
[ "MIT" ]
null
null
null
Zadanie_1/Program.py
tamaranesterenko/Python_LR_1-2
af18beac35150041f57e8839e4728db35fd7ee1e
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*- cosing: utf-8 -*- import sys if __name__ == "__main__": x = input("Введите строку: ") c = input("Введите символ, который нужно заменить: ") h = input("Введите символ, на который заменить: ") import fun1 as f rep = f.fun1(h, c, x) print(rep)
20.866667
58
0.571885
8069f90d4443287096f3263fdb214f2d378a7597
43,696
py
Python
src/sage/schemes/plane_conics/con_field.py
drvinceknight/sage
00199fb220aa173d8585b9e90654dafd3247d82d
[ "BSL-1.0" ]
2
2015-08-11T05:05:47.000Z
2019-05-15T17:27:25.000Z
src/sage/schemes/plane_conics/con_field.py
kaushik94/sage
00199fb220aa173d8585b9e90654dafd3247d82d
[ "BSL-1.0" ]
null
null
null
src/sage/schemes/plane_conics/con_field.py
kaushik94/sage
00199fb220aa173d8585b9e90654dafd3247d82d
[ "BSL-1.0" ]
1
2020-07-24T11:56:55.000Z
2020-07-24T11:56:55.000Z
r""" Projective plane conics over a field AUTHORS: - Marco Streng (2010-07-20) - Nick Alexander (2008-01-08) """ #***************************************************************************** # Copyright (C) 2008 Nick Alexander <ncalexander@gmail.com> # Copyright (C) 2009/2010 Marco Streng <marco.streng...
37.539519
246
0.500114