blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5903534224224cc9623bb9bb469302d4eb61e4f | 7fb805dc0789bfa3bbac7a94b667548c01a8eb4a | /site-packages/cinderclient/tests/unit/v3/test_shell.py | eaba63f9c7e158d3b99d41dd78b9859e479570de | [
"Python-2.0"
] | permissive | hclareth7/freezer_libraries | 8a6173140971679e5b5dc8428e1e56734f02d906 | e0bd890eba5e7438976fb3b4d66c41c128bab790 | refs/heads/master | 2022-11-30T02:19:46.718660 | 2019-05-29T20:29:20 | 2019-05-29T20:29:20 | 189,293,415 | 0 | 1 | NOASSERTION | 2022-11-17T05:38:07 | 2019-05-29T20:28:12 | Python | UTF-8 | Python | false | false | 61,936 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2013 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/LI... | [
"root@ubuntu-14.04.general.micro.yul.linux.novalocal"
] | root@ubuntu-14.04.general.micro.yul.linux.novalocal |
b6bc653644bc26cd60b6afcceabe021e4f545686 | 9c368c9fe78a2dd186daeed2d0714651c1c27d66 | /absorption/ml_project/analyse_spectra/more_plotting/plot_phase_space_ssfr_split.py | c2c1475a8e26d8ca760a0dee52ded9982b0a0c6f | [] | no_license | sarahappleby/cgm | 5ff2121919e36b10069692f71fb1dc03f3678462 | 656bf308771dd3ff2f8c2e77107cdc14507c7ce7 | refs/heads/master | 2023-01-24T03:10:01.610418 | 2023-01-20T11:04:31 | 2023-01-20T11:04:31 | 160,820,718 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,599 | py | import matplotlib.pyplot as plt
import matplotlib.colors as colors
from mpl_toolkits.axes_grid1 import make_axes_locatable
from mpl_toolkits.axes_grid1 import ImageGrid
import numpy as np
import h5py
import pygad as pg
import sys
plt.rc('text', usetex=True)
plt.rc('font', family='serif', size=13)
def truncate_colorma... | [
"sarahappleby20@gmail.com"
] | sarahappleby20@gmail.com |
27d97928b393f307f4e44f2cc3e0f270f71ffb57 | f1dc351b5e493bb4480f21b3a7704b9a56bb7e47 | /lego/apps/restricted/tests/test_utils.py | 30c36d42e11672b18b4bc8b8a7b26ee54bce7396 | [
"MIT"
] | permissive | andrinelo/lego | 8437d830f2b534687687d302e78ab5d34172a81b | 9b53c8fe538d9107b980a70e2a21fb487cc3b290 | refs/heads/master | 2020-03-10T01:56:41.997044 | 2018-04-11T16:09:41 | 2018-04-11T16:09:41 | 129,123,416 | 0 | 0 | MIT | 2018-04-11T16:34:22 | 2018-04-11T16:34:22 | null | UTF-8 | Python | false | false | 1,246 | py | from django.conf import settings
from lego.apps.restricted.parser import EmailParser, ParserMessageType
from lego.apps.restricted.utils import get_mail_token
from lego.utils.test_utils import BaseTestCase
from .utils import read_file
class EmailTokenTestCase(BaseTestCase):
def test_parse_valid_message(self):
... | [
"eirik@sylliaas.no"
] | eirik@sylliaas.no |
829f0239757ec9d128bbd27819f875217a449fd9 | f59b30d52433903ef8cd0a15db8ae0287c89d4e2 | /Python/libraries/recognizers-number/recognizers_number/number/__init__.py | fcdd5ac467fff37e2a9dafd4c8d5781da2912f02 | [
"MIT"
] | permissive | tellarin/Recognizers-Text | 4965c928bcbe6bbd83ec15441ab880239b6370f9 | ff019a69e9cb64de862c94b08125baaaf832ed25 | refs/heads/master | 2022-11-22T10:56:13.482434 | 2019-12-16T17:30:41 | 2019-12-16T17:30:41 | 96,207,365 | 2 | 0 | MIT | 2019-12-17T05:50:58 | 2017-07-04T10:43:16 | C# | UTF-8 | Python | false | false | 249 | py | from .models import *
from .extractors import *
from .parsers import *
from .english import *
from .spanish import *
from .chinese import *
from .french import *
from .japanese import *
from .number_recognizer import *
from .parser_factory import *
| [
"tellarin@gmail.com"
] | tellarin@gmail.com |
8339057bbe395fec4de673d8d72f19072c39babc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch5_2020_03_09_11_45_12_070647.py | 1cef7e181a6d5b7b06d5a934a5c54ce42f17567d | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | def libras_para_kg(a):
y=int(a)*0.453592
a= input('quantas libras?:')
print (a) | [
"you@example.com"
] | you@example.com |
c605acdc23389944fad9f0aeb4320499e4c54668 | 4c33dee03cf55b112b9a0b950690ccd45511e580 | /code/lvmeng_project-master/erp/utils.py | 56e185e2cf8979858aa412abf2d48d2e598c77bd | [] | no_license | yfjelley/lvmeng | 4a40cf5b8c89581162d4ab4bcf303b97d40c4ccd | bb109b39381177782838fb6301204dd7d9a2d206 | refs/heads/master | 2020-08-02T21:00:40.579192 | 2016-11-12T14:00:44 | 2016-11-12T14:00:44 | 73,555,732 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,962 | py | #coding:utf-8
from erp.models import Announcement,Real_purchase,Position,Online_chat
from oa.models import Internal_announcement
from django.db.models import Q
def check_product(request,id,business):
ids = []
if request.user.is_superuser:
return True
products = business.product_set.all()
for pr... | [
"549636719@qq.com"
] | 549636719@qq.com |
fb0b9424ecde134faf0417e0c5e185342354c25b | 53e0b0616ece7867b1d37d755fd034e5b3d5ebe5 | /Easy/937. Reorder Data in Log Files/solution (1).py | 6f88cdf8f90632966920efaff690919c9bae4d7f | [
"MIT"
] | permissive | czs108/LeetCode-Solutions | a7a29b90ad330d8d4bd73b5d0d243dc5b4121bc9 | fc4ef8aed90614e2e4ad39fa1c9eec5881b7b5f5 | refs/heads/master | 2023-03-03T09:55:51.045837 | 2023-02-20T23:39:15 | 2023-02-20T23:39:15 | 237,709,633 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | # 937. Reorder Data in Log Files
class Solution:
# Sorting by Keys
def reorderLogFiles(self, logs: list[str]) -> list[str]:
def get_key(log: list[str]) -> tuple:
id, content = log.split(" ", maxsplit=1)
return (0, content, id) if content[0].isalpha() else (1, None, None)
... | [
"chenzs108@outlook.com"
] | chenzs108@outlook.com |
0aec8b543a666ebec07ee8d1f7de9f7df6ae0aa3 | 6710c52d04e17facbc9fb35a7df313f7a2a7bd53 | /0496. Next Greater Element I.py | 81a83b3a6afa832fca1c54f9dee831ff8ecb2cb3 | [] | no_license | pwang867/LeetCode-Solutions-Python | 535088fbe747a453360457728cc22cf336020bd2 | 188befbfb7080ba1053ee1f7187b177b64cf42d2 | refs/heads/master | 2022-11-13T16:20:28.211707 | 2020-06-28T06:01:14 | 2020-06-28T06:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | # use descreasing stack, time/space O(n)
class Solution(object):
def nextGreaterElement(self, findNums, nums):
"""
:type findNums: List[int]
:type nums: List[int]
:rtype: List[int]
"""
# findNums is a subset of nums
# using stack
stack = [] ... | [
"wzhou007@ucr.edu"
] | wzhou007@ucr.edu |
0b1491be7cb19a099088b52747a39f61a0ac1a3f | 951a84f6fafa763ba74dc0ad6847aaf90f76023c | /PythonLearning/c15.py | 6564d10808d0f33742e95d0a46ea1ab568e6afe4 | [] | no_license | SakuraGo/leetcodepython3 | 37258531f1994336151f8b5c8aec5139f1ba79f8 | 8cedddb997f4fb6048b53384ac014d933b6967ac | refs/heads/master | 2020-09-27T15:55:28.353433 | 2020-02-15T12:00:02 | 2020-02-15T12:00:02 | 226,550,406 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | import t.t1.c9
print("~~~~~~~~~C15~~~~~~~~~")
print("name:",__name__) ##名字
print("package:"+ (__package__ or "package不属于任何包")) ## 所属包
print("doc:",__doc__) ## 模块注释
print("file:",__file__) ##物理路径
vvv = 23 if 3>5 else 35
print(vvv) | [
"452681917@qq.com"
] | 452681917@qq.com |
fda206922f8d0287b1b159050f65d979846ea8ad | c9f54e1a2e11a033b53b4f12564c7b87c5ce1a4a | /one_time/hidden_units.py | 0788a78f5a75634b5a6eb773e44b1b85d12ced5d | [] | no_license | mikewycklendt/dcadventures | b2e5e38ed53a698bb3c18c5b332df424540a18e3 | 542f90c3cce859416de14e40bdebf6a8cddcf67a | refs/heads/master | 2023-06-10T17:00:33.380125 | 2021-06-21T20:38:25 | 2021-06-21T20:38:25 | 290,849,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py |
@app.route('/table/db')
def table_db_columns_create():
name = 'Time Rank'
entry = Unit(time=True, name=name, hide=True )
db.session.add(entry)
db.session.commit()
name = 'Distance Rank'
entry = Unit(distance=True, name=name, hide=True )
db.session.add(entry)
db.session.commit()
name = 'Speed Rank'
ent... | [
"mikewycklendt@gmail.com"
] | mikewycklendt@gmail.com |
d18a5ff31839e9598493723bd5c0347c58ecfd44 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_get_media_packages_response_wrapper.py | 7431508715bab9f2bef9fbf745fb5efc555b45d5 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 1,104 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.common.model.api_response_header import ApiResponseHeader
from baiduads.searchfeed.model.get_media_packages_response_wrapper_body import Ge... | [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
14145e52b961975903bfd44a7d99be0c2f3207d0 | cf149421eb604826dc4757bc4fa1ac524b44476b | /pyscene/gradient/by_value.py | 1581fa003c44ce1b7fb7437f2d07eb90cef50cef | [] | no_license | Windspar/PyScene | 60e903106905b6eaff640dfde08d8bb447353ab5 | 004a274326f1aac06da04e3f5a663374da618a64 | refs/heads/master | 2021-09-07T11:05:41.362873 | 2018-02-22T01:31:12 | 2018-02-22T01:31:12 | 113,268,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,915 | py | import numpy as np
import pygame
from .base import RGBA_FORMULA, pure_color
class HSL:
H = 0
HUE = 0
S = 1
SAT = 1
SATURATION = 1
L = 2
LUM = 2
LIGHT = 2
LIGHTNESS = 2
class RGB:
R = 0
RED = 0
G = 1
GREEN = 1
B = 2
BLUE = 2
class HSV:
H = 0
HUE = 0
... | [
"kdrakemagi@gmail.com"
] | kdrakemagi@gmail.com |
6bb9e9709cd46995967059850e6158cce9302c2d | 24381845fe5e8b8a774d74911e2f07bcd1a00190 | /azure-iot-provisioning-servicesdk/azure/iot/provisioning/servicesdk/protocol/models/__init__.py | 87d86af26eeff8f238fba3eec4bb42462abddc84 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | noopkat/azure-iot-sdk-python-preview | 94b3b29497b80e1dac6471ae906d8491f018b12d | f51733e9d3424c33ed86d51e214b20c843716763 | refs/heads/master | 2020-04-30T03:07:37.445782 | 2019-03-18T18:42:15 | 2019-03-18T18:42:15 | 176,579,084 | 6 | 0 | MIT | 2019-03-19T18:53:43 | 2019-03-19T18:53:43 | null | UTF-8 | Python | false | false | 4,016 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
try:
... | [
"noreply@github.com"
] | noopkat.noreply@github.com |
d956d330feab1a324f7948bdcbc9d48882bd40a8 | bbcce934ac20249a006580915aa61b72f8521544 | /G5_template.py | 7c966f89352d288441e458325d0c88a33e15da29 | [] | no_license | SanjuktaBhatt/G11_Projects | 6225a51cb653001af46a859ab578efba30ce7d79 | 435163bc26b759b4a185a2f4cce3d228c47cbf43 | refs/heads/main | 2023-06-19T18:58:54.684729 | 2021-07-22T08:37:56 | 2021-07-22T08:37:56 | 382,996,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | import pygame
import random
pygame.init()
WHITE = (255,255,255)
DARKBLUE = (36,90,190)
LIGHTBLUE = (0,176,240)
RED = (255,0,0)
ORANGE = (255,100,0)
YELLOW = (255,255,0)
COLOR=[WHITE,DARKBLUE,LIGHTBLUE,RED,ORANGE,YELLOW]
size = (400, 400)
screen = pygame.display.set_mode(size)
pygame.display.set_caption("Project C5")
... | [
"noreply@github.com"
] | SanjuktaBhatt.noreply@github.com |
f25b22df40286f6b6c2b5f938e282191d7e00fa2 | 313110e3a0d01adb562e40f73d9c6fc32c74e0ca | /inventory/migrations/0004_auto_20210327_0821.py | be019a0d3e9d95fa0f6820c8f05625773f08f086 | [] | no_license | prabaldeshar/erp-project | e911ac447aab9ede39567fb82275bbbf0357932e | 31762cf765d1aee21623033c963147d69219ba56 | refs/heads/main | 2023-03-29T19:29:18.689599 | 2021-04-07T15:19:14 | 2021-04-07T15:19:14 | 344,389,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.1.7 on 2021-03-27 08:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0003_auto_20210310_1630'),
]
operations = [
migrations.AlterField(
model_name='productcategory',
name='... | [
"prabaldeshar@gmail.com"
] | prabaldeshar@gmail.com |
44168503a255ef0073c8a1d1da7327f6fbd4ce70 | 78f54f911d47019da0deeeb6579c7e9e65bb8d21 | /src/process/models/base/operation/DefinitionBase.py | c35aa1747e8905cbff9dd2e3bdbd0e7a6be6e07e | [
"MIT"
] | permissive | jedicontributors/pythondataintegrator | 02f8ae1a50cf5ddd85341da738c24aa6a320c442 | 3e877b367ab9b20185476128ec053db41087879f | refs/heads/main | 2023-06-15T07:37:13.313988 | 2021-07-03T15:46:43 | 2021-07-03T15:46:43 | 354,021,102 | 0 | 0 | MIT | 2021-07-03T15:46:44 | 2021-04-02T13:03:12 | Python | UTF-8 | Python | false | false | 849 | py | from models.base.EntityBase import EntityBase
from infrastructor.json.BaseConverter import BaseConverter
@BaseConverter.register
class DefinitionBase(EntityBase):
def __init__(self,
Name: str = None,
Version: int = None,
Content: str = None,
IsA... | [
"ahmetcagriakca@gmail.com"
] | ahmetcagriakca@gmail.com |
138c960e607b7bf65684073d4251a7dbde2c05b2 | 34ee39bcb01247758b96a9dc4801588d0696a098 | /backend/xcx_23352/settings.py | eb3460ccad4ef70af98ffda7a4dfc80887b99ecf | [] | no_license | crowdbotics-apps/xcx-23352 | 1eac3cfd05921af893d51a4219496153bf9beb78 | bf45a84e05c1ea6a959d319fa679de54554a11d5 | refs/heads/master | 2023-01-30T10:15:20.053556 | 2020-12-14T03:22:55 | 2020-12-14T03:22:55 | 321,220,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,722 | py | """
Django settings for xcx_23352 project.
Generated by 'django-admin startproject' using Django 1.11.16.
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... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
70fef156091609d8d1b6faba71b19d8d7e5d3ee8 | b8d208679a3a3b16960eecd92dd3dd5ce78f8e7f | /setup.py | dac804bcf98486f6b1a18f1dc210f95a471dea12 | [
"BSD-3-Clause"
] | permissive | jessicalumian/distillerycats | e509bdd5fbb8062931938d7f952058d0c5775851 | 67ac76b21397255af604d8bf4aad2eb7889dc88c | refs/heads/main | 2023-05-03T22:10:44.999734 | 2021-05-24T16:14:36 | 2021-05-24T16:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | from setuptools import setup, find_packages
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
CLASSIFIERS = [
"Environment :: Console",
"E... | [
"ntpierce@gmail.com"
] | ntpierce@gmail.com |
781083edd3afb79a9b9fbac3d4156eaf5378e226 | f16886292a92b113f901bfd757a909854e713431 | /dd/__init__.py | 926c384fe50d4d3bbbeaa08fb2ee3e041c13208c | [] | no_license | WilliamMayor/distorteddecade | a224132aa4396d26b740415bac9ea4830c4c0c0c | 9e6cfc651a44eb1f32ba300f8954f6694de87bf1 | refs/heads/master | 2021-01-02T15:35:12.418862 | 2015-06-06T18:13:51 | 2015-06-06T18:13:51 | 25,695,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | import os
from flask import Flask
from blueprints import admin, public
from assets import assets
from login import manager
from models import db, bcrypt
import logging
from logging import StreamHandler
def create_app():
app = Flask(__name__)
file_handler = StreamHandler()
app.logger.setLevel(logging.DE... | [
"mail@williammayor.co.uk"
] | mail@williammayor.co.uk |
8725d49f69e07e80693171c657e35320b01b2f6d | a712ec2940aa6a2fa51da6392ae1fb7b1ba8ce40 | /setup.py | b77b6ede0f4085fce861f415b26ea1e28f1756c1 | [] | no_license | adam139/emc.policy | 511366acd3cd70a26e12bdecae8e890704362340 | bace3cec2cf7dbcf387d34ac3b22799e650e5dd0 | refs/heads/master | 2022-05-08T21:35:15.736156 | 2022-01-10T09:05:43 | 2022-01-10T09:05:43 | 47,091,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | from setuptools import setup, find_packages
import os
version = '2.0'
setup(name='emc.policy',
version=version,
description="A plone5 website policy package for emc project",
long_description=open("README.txt").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
... | [
"yuejun.tang@gmail.com"
] | yuejun.tang@gmail.com |
f4fcd2dd96b19b48f2372793f2cc7c7ade76a977 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/intersectingDiscs_20200804182850.py | 48817f0ba68d4f55ec35335a75c1659d556927a8 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11 | py | def discs() | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
384d4adc895d76bbf6dea63d7d3703e61a53f8c6 | 7262a3c12297e853f72d0c0db2c9ca0f65d2115b | /Automation/page_locators/imdb.py | 2bdd74bb839a1086727e0fa301c734f0b06e0fe6 | [] | no_license | pavankumarag/navi | 6ae77b1d26a8e2ee31ee18ea35d54823bd26a1cb | 7a05ea1e3cfe3d339cbb3047948d7d370739fc51 | refs/heads/master | 2021-01-02T06:57:23.181001 | 2020-02-14T06:17:53 | 2020-02-14T06:17:53 | 239,538,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | from selenium.webdriver.common.by import By
class Imdb:
IMDB_SEARCH = By.XPATH, "//input[@placeholder='Search IMDb']"
SELECT_DIRECTOR = By.XPATH, "//li//div[text()='Steven Spielberg']"
GET_DIRECTION_DETAILS = By.XPATH, "//td[contains(@class, 'name-overview')]//a[@href='#director']"
GET_PRODUCER_DETAILS = By.XPATH,... | [
"pavan.govindraj@nutanix.com"
] | pavan.govindraj@nutanix.com |
5e600add0db69a5528470b8e1bb05629320211b6 | 7a704e838d89f942a1099fec141f1fbe9828e528 | /third/object_detection/utils/shape_utils.py | dfa96e799a2f7df379fe843872bfc8305587c61e | [
"Apache-2.0"
] | permissive | cap-ntu/Video-to-Retail-Platform | 3ee00d22b7fd94925adac08c5ea733ee647f4574 | 757c68d9de0778e3da8bbfa678d89251a6955573 | refs/heads/hysia_v2 | 2023-02-14T05:22:16.792928 | 2021-01-10T02:31:43 | 2021-01-10T02:31:43 | 212,741,650 | 63 | 20 | Apache-2.0 | 2021-01-10T02:32:00 | 2019-10-04T05:22:08 | Python | UTF-8 | Python | false | false | 12,612 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"huaizhen001@e.ntu.edu.sg"
] | huaizhen001@e.ntu.edu.sg |
598a004b595a8e29f00f67bdb01fedc0d456de2d | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_7244.py | d529abaf169b2ce536079c9c20d24013963c5eab | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | # Python error on building Dart on Windows
print
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
820877e8a570363ddc872e2c6b1b948264dc3cd2 | dce6a528cbebcf8a33fcff3468950b87084f76c2 | /transformers/modeling_albert.py | 0e72136a445c94d6dbeb6c5149e06f89eaf92ba8 | [
"Apache-2.0"
] | permissive | zbn123/huggingface_albert | c523de1735af9ae646eef43dd7126b1acea6f508 | a527e926d6fc675290470a44db3808a3e639c922 | refs/heads/master | 2022-04-16T13:16:43.054101 | 2019-11-29T11:07:30 | 2019-11-29T11:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,556 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a cop... | [
"aapp1420@gmail.com"
] | aapp1420@gmail.com |
6e7eebbf4a4ec6e46a966d3ee419978748a8cb27 | 529792835d99e8f19afbc123a09b3c7920a024d5 | /space_invaders/__main__.py | 280d82477400ca6ab3cd2e7b5db605118bf665a9 | [] | no_license | tt-n-walters/python-thursday | fe39213f5ba267fbf9c501f1ea925253a034a8d4 | 6aaff5b5e3cb567b75a7ca8e5ad422303f54060e | refs/heads/master | 2020-12-23T21:22:42.112977 | 2020-03-12T19:08:12 | 2020-03-12T19:08:12 | 237,278,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | import arcade
from player import Player
class SpaceInvaders(arcade.Window):
def __init__(self):
super().__init__(800, 600, "Space Invaders")
self.player = Player(self.width / 2, self.height * 0.1)
def on_key_press(self, symbol, modifiers):
if symbol == arcade.key.ESCAPE:
... | [
"nico.walters@techtalents.es"
] | nico.walters@techtalents.es |
494cf7447b0fc1042e5c805ae6638b17650f89bb | 03bca281c8bb3ba69c3a01252cc7c9e35cd675bd | /code/zabbix/Bin/Configurations/Zabbix_Mysql_DB_HA_Config_Secondary.py | 68081858e9e50934113f123784fd34631b7325c9 | [] | no_license | satish15625/pythonwork | 380fef04170064aef8aeb919a4e30f65db9a097f | 12d776152689a84f1560d08f35987f8ca4ea3fb0 | refs/heads/master | 2023-07-07T15:12:48.355226 | 2021-08-13T06:33:13 | 2021-08-13T06:33:13 | 374,058,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,229 | py | # File Name:- Zabbix_Mysql_DB_HA_Config_Secondary.py
# Service Name:- N/A
# Purpose: To config zabbix db replica
# Author Name: sankar
# Create Date: 25/Sep/20
# Modifed By:-28/09/2020
# Last Modify Date:
# Current Version: 1.0
# Summary of Last Change: N/A
import os
import sys
import logging
import time
import subp... | [
"kumarsatish@dryicelabs.com"
] | kumarsatish@dryicelabs.com |
00fccce3734b11b4909c02dc597c81c60d9c8e91 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_014/ch164_2020_06_22_14_35_35_738838.py | 0ade4746644b61691e840b595e7b7a32fd220af8 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | def traduz (lista_ing, ing_para_port):
lista_port = []
i = 0
while i < len(lista_ing):
for palavra_ing in ing_para_port.keys():
if palavra_ing == lista_ing[i]:
lista_port.append(ing_para_port[palavra_ing])
i += 1
return lista_port | [
"you@example.com"
] | you@example.com |
90b0873478e89f1b576399d52041d83d4f8238dd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2962/60632/270495.py | 42c9a572b669dda8b1dd54444c3567f603ecce28 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | n, p = map(int, input().split(' '))
key = list(map(str, input().split(' ')))
for i in range(n):
tmp = key[i][-3:]
key[i] = [ord(tmp[j])-ord('A') for j in range(3)]
val = 0
for j in range(3):
val += key[i][2-j] * int(pow(32, j))
key[i] = val % p
print(key)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
67d4c41d2f15933810af28140432f8c215daa312 | 8acbd7fcfe1bcf94e4e895e58ac5c81f8ed13741 | /logindjango/urls.py | 4c3c68c03abc8254f5dada8c9dfad97689615c85 | [] | no_license | Rajangupta09/School-beta | 440af5d5d078a46036cfa3c50865f980c5ff1ace | 3ca6ca9992d2b47bcfe1762beb8c88609d519ea5 | refs/heads/master | 2022-12-07T19:42:19.562804 | 2020-08-04T09:53:04 | 2020-08-04T09:53:04 | 284,509,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py |
from django.contrib import admin
from django.urls import path
from django.conf.urls import include
from django.conf import settings
from django.conf.urls.static import static
import accounts.views as account_view
urlpatterns = [
path('admin/', admin.site.urls),
path('', account_view.login, name="login"),
... | [
"rjnkumar05@gmail.com"
] | rjnkumar05@gmail.com |
2f520bd3b6b313173985892d867dcf64be36af6a | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/WebKit/Source/build/scripts/make_media_features.py | 54d96901113dd71893195d9d4389b8f107851a99 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 1,324 | py | #!/usr/bin/env python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import media_feature_symbol
import in_generator
import template_expander
import name_utilities
import sys
class MakeMediaFeaturesWri... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
193d45a64aa8c10d15e3bff1fe15b1fdea4b440c | c167d1618c1df50de21238a00d4168505dce868f | /0x0A-python-inheritance/6-base_geometry.py | f666928f53bb510d1e7df03101098d47fd1de7a1 | [] | no_license | keen-s/alx-higher_level_programming | 8201845d7142bfdcbfa603fa3d135e3fabbe2bf2 | 7a70051b8cf89441f034c4886f51a99ae85e4f34 | refs/heads/main | 2023-08-12T18:23:30.985481 | 2021-10-18T20:48:29 | 2021-10-18T20:48:29 | 403,688,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/python3
"""A class based on 5-base_geometry.py"""
class BaseGeometry:
"""A class"""
def area(self):
""" A public instance method that raises
an exception
"""
raise Exception("area() is not implemented")
| [
"keen_spe@DESKTOP-C7LRBS8.localdomain"
] | keen_spe@DESKTOP-C7LRBS8.localdomain |
c7d25be25b084123be9f503b4dc69a84f322d9d1 | d76e8c5e7853b145b2c084975cadd0e4f29943f1 | /lib/bloggertool/commands/browse.py | fd3cde8a0673dbc98206c4d686146d1b6099ede0 | [
"MIT"
] | permissive | asvetlov/bloggertool | 57ab7408d6a7624f7d44ccc60de3761e7524935c | 7c145f66aa22f4124e8b1d198bc93ff703fa72b4 | refs/heads/master | 2021-03-12T20:16:56.014541 | 2015-03-29T09:54:36 | 2015-03-29T09:54:36 | 19,406,280 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | # commands/browse.py
# Copyright (C) 2011-2014 Andrew Svetlov
# andrew.svetlov@gmail.com
#
# This module is part of BloggerTool and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from textwrap import dedent
import webbrowser
from bloggertool.notify import Notifier
from blogger... | [
"andrew.svetlov@gmail.com"
] | andrew.svetlov@gmail.com |
a84dc99ea307684578abc7349b72c0a66f31f49b | 4a0348ccb890c73ebd88feafafc279af26e05f25 | /django/django_fullstack/TV shows - Copy/ibtsal/settings.py | 70bf9b51e79cf9074541c8cbf0ee818adfeda5ff | [] | no_license | wadeeeawwad/python_stack | 00936837103b9f78f66961d88ae3a6233adbbea3 | 6d2c3712c40b035e0d43cc7a27b2e2f48d4a8281 | refs/heads/master | 2023-07-11T14:59:02.617899 | 2021-08-23T11:37:15 | 2021-08-23T11:37:15 | 364,533,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | """
Django settings for ibtsal project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"wadee_awwad@hotmail.com"
] | wadee_awwad@hotmail.com |
da98e4bb53e067d4f151787d8ffd0e33a97109ae | f23fda62b1335182e0a59764c83680401c32c1b8 | /API_EX_PrtyPrinted/settings.py | 699115e70e992756d10182dcfdfe325d5ba38cd4 | [] | no_license | brrbaral/DjagoRESTLanguages | 2798aa087e0607ed5afe68141ec80965a7f47c36 | 07601986ce5976268bb86d8d7e8e4e4fecd912ea | refs/heads/master | 2023-01-10T16:53:06.515318 | 2020-11-11T03:52:46 | 2020-11-11T03:52:46 | 311,851,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,309 | py | """
Django settings for API_EX_PrtyPrinted project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
imp... | [
"brr.baral@gmail.com"
] | brr.baral@gmail.com |
a8dde743a40b22f756722ef65d395379ba3c280d | f1c20d0836f4815b81c895ffe22a29005db3746d | /backend/main/wsgi.py | 55aa3e2e2e988c5c5affb5d4806a1c97c8ae1eb1 | [] | no_license | pavelm2007/leadersofdigital_2020_04 | 6ceacf0858ea46bd73c5a0e0ab120cae802e85bd | 0132d1b3361518b109b0632daaf13ed8e849192d | refs/heads/main | 2023-04-04T21:12:54.890040 | 2021-04-17T20:37:02 | 2021-04-17T20:37:02 | 358,649,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for main 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"pavelm2007@yandex.ru"
] | pavelm2007@yandex.ru |
cef6047ec940823cb0576c6bf724bb9d4e71612f | 549d11c89ce5a361de51f1e1c862a69880079e3c | /feiji/testss.py | 0a2fa1c42bfbdea0b87652b6085ffd6b503f8b1f | [] | no_license | BaldSuperman/workspace | f304845164b813b2088d565fe067d5cb1b7cc120 | 4835757937b700963fdbb37f75a5e6b09db97535 | refs/heads/master | 2020-08-01T15:32:02.593251 | 2019-09-26T08:04:50 | 2019-09-26T08:04:50 | 211,034,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | import pygame
from feiji.plane_Sprite import *
screen = pygame.display.set_mode(SCREEN_RECT.size)
while True:
for even in pygame.event.get():
print(even.type)
| [
"you@example.com"
] | you@example.com |
a89d752f30f6424ebd44fad015341ca5ff2fb94b | 178766cfa5b4a4785a900595278889ed8a828c90 | /blog/migrations/0011_rename_user_author_author.py | 7c1813b1f639eb0fbbb4c61c013dc6d2806ec67a | [] | no_license | ShahadatShuvo/django_blog_app | 0a48fd03b1ab585a08ae41bea40dd905771f7093 | 13c5d98c73fd65ad7353d83ca065344a2811c694 | refs/heads/master | 2023-06-05T08:11:40.479944 | 2021-06-26T18:55:12 | 2021-06-26T18:55:12 | 376,760,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # Generated by Django 3.2.4 on 2021-06-26 14:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0010_rename_author_author_user'),
]
operations = [
migrations.RenameField(
model_name='author',
old_name='user',
... | [
"shahadat@baiust.edu.bd"
] | shahadat@baiust.edu.bd |
a39df03e00d5dcd7b104a4626d01939719e4656b | fc5fa8501e8a62291a48c82611e1b74b961ca561 | /abps/new_pymetrics.py | b898a44f4de4d2e6446aba52eddb37a94d5606be | [
"Apache-2.0"
] | permissive | hitesh-hk/google-research | fa3d3e31cce995fa6da89322dab4993bf1c1ead8 | ddc22300c4cb3223654c9a981f892dc0f6286e35 | refs/heads/master | 2021-02-17T18:57:31.267570 | 2020-01-17T14:49:25 | 2020-01-17T14:54:27 | 245,119,290 | 1 | 1 | Apache-2.0 | 2020-03-05T09:24:01 | 2020-03-05T09:24:00 | null | UTF-8 | Python | false | false | 13,482 | py | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
b216d42b41d02698e713dca93ca58a36287b9f1c | 03dfcd4bd41ff9ba76e67895e96a9794ad003a31 | /sandbox/problems/l2q6.py | 3f72d83401c659405f22bde75a2cff7ae09c26ae | [] | no_license | gittygitgit/python-sandbox | 71ca68fcc90745931737f7aeb61306ac3417ce60 | 3b3e0eaf4edad13aabe51eb3258ebe9e6b951c67 | refs/heads/master | 2021-01-19T02:41:17.047711 | 2018-11-22T18:07:15 | 2018-11-22T18:07:15 | 39,742,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #!/usr/bin/python
'''
Question:
Write a program that calculates and prints the value according to the given formula:
Q = Square root of [(2 * C * D)/H]
Following are the fixed values of C and H:
C is 50. H is 30.
D is the variable whose values should be input to your program in a comma-separated sequence.
Example
Let u... | [
"grudkowm@Michaels-Air-2.fios-router.home"
] | grudkowm@Michaels-Air-2.fios-router.home |
9dd0cdef10c7a872c03294c15a2d2ac2174cea62 | 90df9cbc8d15b0bd08ceb7fc42088021efbdfbe1 | /projectile.py | 0ef350a3367ca4d77503f15f70ae673e3c2e05cb | [
"MIT"
] | permissive | whaleygeek/variable_duty_cycle | bef0ef9dbba99fd508cbb47a2b8befc0f958f855 | 82c197f7c79c2074b7f0eacac1686aa8e28a9a21 | refs/heads/master | 2021-01-20T01:45:36.806435 | 2017-04-27T12:55:35 | 2017-04-27T12:55:35 | 89,324,831 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | # projectile.py 25/04/2017 D.J.Whale
#
# A Python implementation of the Variable Duty Cycle algorithm
# implementing a simple projectile plotter
#
# Idea from:
# https://archive.org/stream/byte-magazine-1981-10/1981_10_BYTE_06-10_Local_Networks#page/n389/mode/2up
# Original Pseudo Code
# C horizontal duty counter
#... | [
"david@thinkingbinaries.com"
] | david@thinkingbinaries.com |
9361eead7ef5afd56bc221c6dd7b4606ee11a2cc | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CISCO-SLB-DFP-MIB.py | 6cf6098abdb328d93c73eb64c492651f9966b413 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 7,855 | py | #
# PySNMP MIB module CISCO-SLB-DFP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-SLB-DFP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:55:25 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
16d10155454d78b274b64a76eebdc6f731152e65 | 109a830aad476305f029274d75e28bec8b54f597 | /venv/bin/django-admin | 1608e243708e9f7fa2a64226ea036f01a70824c7 | [] | no_license | Dapucla/EP | 53b156088046abfd6833eba95dc4393ebeb93f4e | 9368032b4b289b20ec1bdf0033d3fe199223d200 | refs/heads/master | 2023-06-19T08:02:55.984888 | 2021-07-11T22:52:24 | 2021-07-11T22:52:24 | 330,009,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | #!/Users/daniilalekseev/PycharmProjects/DevicesOnlineShop/ENG-PROJECT/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_comma... | [
"dapcula08@yandex.ru"
] | dapcula08@yandex.ru | |
f5d774828824bb6b08702b8147a2b8fef9436add | 4c992ca9bb41383ec3a9c7dc7a1e4204ef6cb850 | /publicdata/censusreporter/series.py | e211e540e6e3d1318fa8fb6cb525d1ea0e75569b | [
"MIT"
] | permissive | rkiyengar/publicdata | f72d19d5d2821707d7a84c232cb66fb6686801db | 8fddc1a460716a3d54a7504c82376c083a0af014 | refs/heads/master | 2021-08-28T15:14:33.113145 | 2017-12-12T15:11:46 | 2017-12-12T15:11:46 | 113,387,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | # Copyright (c) 2017 Civic Knowledge. This file is licensed under the terms of the
# MIT License, included in this distribution as LICENSE
"""
"""
from pandas import DataFrame, Series
import numpy as np
from six import string_types
import numpy as np
from six import string_types
class CensusSeries(Series):
_me... | [
"eric@civicknowledge.com"
] | eric@civicknowledge.com |
72dc2fa92097e059528253cd249e8a5adaa613ad | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/linkedlist_20200623140505.py | 3fbc3a13dbff9fdaff5799ef81ca03724a251395 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | # Linked List implementation
# implements the node type
# stores a single data field ---> val
class Node(object):
def __init__(self,val):
self.val = val
self.next = None
def get_data(self):
return self.val
def set_data(self,val):
self.val = val
def get_next(self)... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
0ea6c1d03a86d7ca86b5f5f804c1422b102cb628 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_spites.py | d2c6c8a7bc2b2a2463e64b4751f5d767476db7b2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.verbs._spite import _SPITE
#calss header
class _SPITES(_SPITE, ):
def __init__(self,):
_SPITE.__init__(self)
self.name = "SPITES"
self.specie = 'verbs'
self.basic = "spite"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
037699b5f44d1f196eb5a8aac2be877a7d4491f3 | 089b396be42accf7dedd6a935b8cb29d43f25e2c | /core/urls.py | d30152bfd637967c2d79e3491e09b842841d8b8f | [
"MIT"
] | permissive | edgarslabans/django-ajax-xhr_nio | b4dcce4b9d5d73a60e912cc0cc926e5c78f737ba | b33ab12fc17a3fb98812c12259f97525f3746bd2 | refs/heads/main | 2023-08-22T21:16:28.266245 | 2023-08-22T11:38:48 | 2023-08-22T11:38:48 | 681,173,754 | 0 | 0 | MIT | 2023-08-21T12:35:21 | 2023-08-21T12:35:19 | null | UTF-8 | Python | false | false | 416 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path
from todos.views import home, todo, todos
urlpatterns = [
path('admin/', admin.site.urls),
path('todos/<int:todoId>/', todo, name="todo"),
path('todos/', todos, name="t... | [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
b531a7e2091cb595f280d47d3bef514cc6dba92b | ec030fab06dab9a94835a5d308fb8411111be0b4 | /myprintgoogle.py | 47bb714ad8cd0381fa217c1d8dcc3361b5b82582 | [] | no_license | mortadagzar/Python_Kivy_MobileApps | e464319cb7825c57bbfb44f95b4aca15e3734988 | d941a8d2da00a2420a47b07224e3ed876698ea23 | refs/heads/master | 2020-04-08T03:35:51.097417 | 2019-03-08T05:17:07 | 2019-03-08T05:17:07 | 158,982,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from google.cloud import storage
def upload_blob(bucket_name, source_file_name, destination_blob_name):
"""Uploads a file to the bucket."""
storage_client = storage.Client()
bucket = storage_client.get_bucket(bucket_name)
blob = bucket.blob(destination_blob_name)
blob.upload_from_filename(source_f... | [
"mortadagzar@gmail.com"
] | mortadagzar@gmail.com |
325ab1c396c76a85f683b839c99242b74a6e8b4f | 3a9b154aa9d5e379683476f80f30630bf44d2102 | /Server_v1/dictionary/forms/__init__.py | e5b398dcc84336f39778bbd6993647906cfd6c52 | [] | no_license | KevinDon/py_amazon_analysis | 81995e360d2b536e1df6e515aae9457054edae29 | 13b5fbb046ca6516ac3a47e8f7867baf358011f4 | refs/heads/master | 2022-12-13T00:27:27.511783 | 2019-08-14T11:45:53 | 2019-08-14T11:45:53 | 185,160,162 | 0 | 1 | null | 2022-12-10T05:38:15 | 2019-05-06T08:56:40 | TSQL | UTF-8 | Python | false | false | 76 | py | from .DataDictionaryForm import *
from .DataDictionaryCategoryForm import *
| [
"kevintang002@gmail.com"
] | kevintang002@gmail.com |
33d73097852c91a54cb2e24f3a6ee3f6e61acb17 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/127/usersdata/174/36355/submittedfiles/ex11.py | 6ab9a8927f2e4d904e182bedbdc3a5c7e569d9e1 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # -*- coding: utf-8 -*-
d1 = float(input('Dia:'))
m1 = float(input('Mes:'))
a1 = float(input('Ano:'))
d2 = float(input('Dia:'))
m2 = float(input('Mes:'))
a2 = float(input('Ano:'))
if a1>a2:
print ('DATA 1')
elif a1<a2:
print ('DATA 2')
else:
if m1>m2:
print('DATA 1')
elif m1<m2:
print('D... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1176ee354b130c04c89c6d31bfccc0c8cd78fc12 | a78b5014f654658efc533fab715fae01d5b88134 | /mailpy/contrib/pelican/view.py | bf3404991946cc5c811ac003111f8d1c82eec1de | [
"BSD-3-Clause"
] | permissive | dn0/mailpy | 4410d1d64753790bc5ef33060cdbbac9525eaa4a | db382d9d67a34444b8492bb0766b7320e46a0ac0 | refs/heads/master | 2016-08-11T10:37:15.709466 | 2015-10-22T19:38:25 | 2015-10-22T19:38:25 | 36,691,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,054 | py | # -*- coding: utf-8 -*-
from functools import wraps
from datetime import datetime
import os
import re
from mailpy.view import MailView
from mailpy.response import TextMailResponse
from mailpy.exceptions import MailViewError
from mailpy.contrib.filelock import FileLock, FileLockTimeout
from mailpy.contrib.pelican.api i... | [
"daniel@kontsek.sk"
] | daniel@kontsek.sk |
11f9cc4c53607b22d92b19a8e39858302b699a6c | 7b3711d4c6d7284255ba0270d49d120f984bf7c6 | /problems/1456_maximum_number_of_vowels_in_a_substring_of_given_length.py | b8c1ee441ba0fe9a18e4fc45c9b3521258e986f6 | [] | no_license | loganyu/leetcode | 2d336f30feb55379aaf8bf0273d00e11414e31df | 77c206305dd5cde0a249365ce7591a644effabfc | refs/heads/master | 2023-08-18T09:43:10.124687 | 2023-08-18T00:44:51 | 2023-08-18T00:44:51 | 177,875,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | '''
Given a string s and an integer k, return the maximum number of vowel letters in any substring of s with length k.
Vowel letters in English are 'a', 'e', 'i', 'o', and 'u'.
Example 1:
Input: s = "abciiidef", k = 3
Output: 3
Explanation: The substring "iii" contains 3 vowel letters.
Example 2:
Input: s = "aei... | [
"yu.logan@gmail.com"
] | yu.logan@gmail.com |
597713e0d9f271c187c3ffd7c3cec16228a0eb6d | 7390417d66411000e18156bf3ec6389f3a4aa3dc | /website/feature_importances_correlations/between_targets/page.py | 173578411f3867740fbdfbd59855634900e31e2d | [
"MIT"
] | permissive | HMS-AgeVSSurvival/Website | fb911e10eedd3212f1440e57a97061a50cc4e33d | 298000aee6ab951a7f90e6bb4ca4716997a0398b | refs/heads/main | 2023-07-26T06:23:39.064024 | 2021-09-14T09:15:27 | 2021-09-14T09:15:27 | 388,773,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | from website.app import APP
import dash_bootstrap_components as dbc
import dash_html_components as html
from dash.dependencies import Input, Output
from website.feature_importances_correlations.between_targets.tabs.all_categories import get_all_categories
from website.feature_importances_correlations.between_targets.t... | [
"theo.vincent@eleves.enpc.fr"
] | theo.vincent@eleves.enpc.fr |
deb0389d1cc707e4fbb2f91c535f9f8f36f9d5dc | 1b554b6c970ba31bffae8434611e307770fa2e95 | /lof/generator.py | e32c81ea71f3ccd889b232fb83343ac33986dba4 | [
"MIT"
] | permissive | mkaraev/lof | 0d1821b04b0137d982638276e5d6fdb06c7d3441 | 19be33d1283842069af0dd0776027b24676aac5e | refs/heads/main | 2023-06-25T07:09:51.701689 | 2021-07-24T22:10:26 | 2021-07-24T22:10:26 | 389,283,255 | 0 | 0 | MIT | 2021-07-25T07:00:12 | 2021-07-25T07:00:12 | null | UTF-8 | Python | false | false | 2,993 | py | import importlib
import json
from typing import Callable, Dict, Optional
from fastapi import FastAPI, Request, Response
from fastapi.responses import JSONResponse
def create_route(endpoint: Dict, handler: Callable, method: str, app: FastAPI):
method = getattr(app, method)
@method(endpoint)
async def _me... | [
"xnuinside@gmail.com"
] | xnuinside@gmail.com |
e724b791e0662abba8b8bc7979733f388d1ca514 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/SUSYGluGlu/SUSYGluGluToBBHTohhTo2Tau2B_M-300_TuneCUETP8M1_13TeV-pythia8_filter_cfi.py | 352f91727e0d5853e6653e614b6f39233fbe62da | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 4,945 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter", ... | [
"Yuta.Takahashi@cern.ch"
] | Yuta.Takahashi@cern.ch |
44e0524543acf5ef0dae068943b35982c863e360 | 9ecf55bf2601e0d4f74e71f4903d2fd9e0871fd6 | /my_seg_keras/v2_unet_street/test_generator.py | bdf7e240c0cac4b018e854ff41d915a48e308ba9 | [] | no_license | qq191513/mySeg | 02bc9803cde43907fc5d96dc6a6a6371f2bef6fe | 4337e6a0ca50b8ccbf6ed9b6254f2aec814b24db | refs/heads/master | 2020-04-10T09:57:37.811133 | 2019-06-26T08:21:23 | 2019-06-26T08:21:23 | 160,951,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,395 | py | import numpy as np
import matplotlib.pyplot as plt
from v1 import config as cfg
import time
from data_process.use_generator import imageSegmentationGenerator
def split_batch_to_pic_list(img):
#一个batch_size的四维张量图片分割成一组列表图片(三维)
batch_size = img.shape[0]
img_list = np.split(img,batch_size,axis=0)
for index,img in enu... | [
"1915138054@qq.com"
] | 1915138054@qq.com |
1920bee1faeb280feb1f63b7b78c650bc8c772d4 | 2b29095a4f8a60e6ad2f09dd257dc8a9ceb04ebd | /misfits/tools/smooth/__init__.py | 2658ea2efa922b41405685907facd4a792e93f0c | [] | no_license | sholmbo/misfits | f82601cdf5778c4ea57c3d9fed8aea3cd3b641f9 | e34a0ba0b62948840a6bcb1c28d340b8c613dd66 | refs/heads/master | 2023-02-25T13:17:48.670735 | 2021-02-02T15:12:12 | 2021-02-02T15:30:11 | 277,625,987 | 0 | 1 | null | 2021-02-02T15:18:35 | 2020-07-06T19:04:35 | Python | UTF-8 | Python | false | false | 132 | py | from .lowpass import LowPass
from .boxcar import Boxcar
from .gaussian import Gaussian
from .smoothingspline import SmoothingSpline
| [
"simonholmbo@gmail.com"
] | simonholmbo@gmail.com |
9a9bc9fac9a12e1a306ff9724f080209bd2e6cf5 | cc9a6fa4012c58f66d735e20486b9a1df877d1b7 | /Strings/Integer To Roman.py | 6ce9d5509a8706b487d0cf4902e31d2557ad5670 | [] | no_license | sharmaji27/InterviewBit-Problems | 6e5acb6d45296b60df8632a02b0aa272dcde8f28 | 09054fdab0350a86268cfe5eb55edc2071067b2b | refs/heads/master | 2023-08-27T23:08:34.003883 | 2021-10-20T05:33:46 | 2021-10-20T05:33:46 | 265,551,578 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | '''
Given an integer A, convert it to a roman numeral, and return a string corresponding to its roman numeral version
Note : This question has a lot of scope of clarification from the interviewer. Please take a moment to think of all the needed clarifications and see the expected response using “See Expected Outpu... | [
"asharma70420@gmail.com"
] | asharma70420@gmail.com |
505ecf386e4dc812d1ffee11c7b7ce8a2b19b3fa | 28f088b5356e66780c4bad204564bff92f910f02 | /src/python/pants/base/exception_sink_integration_test.py | bdbc6b8ff6855afb1a1bf2eb685a4f9e39400f25 | [
"Apache-2.0"
] | permissive | wonlay/pants | 57dcd99f82cdb2e37fcb7c563ec2bccf797ee7b7 | 53c66503b6898e83c9c9596e56cde5ad9ed6a0d3 | refs/heads/master | 2023-03-06T03:23:08.602817 | 2022-05-05T23:41:32 | 2022-05-05T23:41:32 | 24,695,709 | 0 | 0 | Apache-2.0 | 2023-03-01T11:59:58 | 2014-10-01T21:15:29 | Python | UTF-8 | Python | false | false | 4,970 | py | # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import os
import re
import signal
import time
from pathlib import Path
from typing import List, Tuple
import pytest
from pants.base.build_environment import get_buildroot
from pants.base... | [
"noreply@github.com"
] | wonlay.noreply@github.com |
fffdf977cf0f7526c91b672b614f4123a1b4ffb7 | 992969b8b0beb53bf884938ae20f5d56bb3878f2 | /rules/taxonomic_classification/Snakefile | cfeaba79fdeb1f60bd767ff30569e1b24c9ae5ba | [
"BSD-3-Clause"
] | permissive | dahak-metagenomics/taco-taxonomic-classification | c6f0120e7d5e979c03d4c6d0778756960f46e593 | 854cae4f1b2427746a1faa6a0e0aefbfb11c5523 | refs/heads/master | 2020-03-12T21:29:04.347344 | 2018-05-03T16:47:32 | 2018-05-03T16:47:32 | 130,829,061 | 0 | 0 | BSD-3-Clause | 2018-12-16T03:00:58 | 2018-04-24T09:23:14 | Python | UTF-8 | Python | false | false | 298 | import utils
include: "taxonomic_classification.settings"
include: "biocontainers.rule"
include: "sourmash_sbt.rule"
include: "calculate_signatures.rule"
include: "trimmed_data.rule"
include: "kaiju.rule"
include: "kaiju2krona.rule"
include: "filter_taxa.rule"
include: "krona_visualization.rule"
| [
"charlesreid1@gmail.com"
] | charlesreid1@gmail.com | |
49ac68fcf23d7d889d0bd59ad259e4465769c696 | 1dae87abcaf49f1d995d03c0ce49fbb3b983d74a | /programs/subroutines/Feshbach ramp10ms 0-47A.sub.py | 393291c0239b4dbeeb5ba83566e5ced7dd8e41ea | [] | no_license | BEC-Trento/BEC1-data | 651cd8e5f15a7d9848f9921b352e0830c08f27dd | f849086891bc68ecf7447f62962f791496d01858 | refs/heads/master | 2023-03-10T19:19:54.833567 | 2023-03-03T22:59:01 | 2023-03-03T22:59:01 | 132,161,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,992 | py | prg_comment = ""
prg_version = "0.5.1"
def program(prg, cmd):
prg.add(0, "Delta 1 Current", 0.000000)
prg.add(1000, "Delta 1 Current", 0.470000)
prg.add(2000, "Delta 1 Current", 0.940000)
prg.add(3000, "Delta 1 Current", 1.410000)
prg.add(4000, "Delta 1 Current", 1.880000)
prg.add(5000, "Delta 1... | [
"carmelo.mordini@unitn.it"
] | carmelo.mordini@unitn.it |
bc770e9ab63ca5279016744344e0868a658a80a9 | 257bd63361aa846ffdacdc15edaecf84c6364e78 | /psou2/pyanal1/apack1/ex7_t-test.py | 0753bfe9b286ee0d0bd0745aa8b0a95a5414b8f0 | [] | no_license | gom4851/hcjeon | 86dcfd05ce47a13d066f13fe187d6a63142fb9fe | 59a00ca9499f30e50127bb16eb510553e88ace43 | refs/heads/master | 2020-06-04T23:16:08.632278 | 2019-01-15T09:54:08 | 2019-01-15T09:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,682 | py | '''
Created on 2018. 11. 29.
두 집단일 때
남녀의 성적, A반과 B반의 키, 경기도와 충청도의 소득 따위의 서로 독립인 두 집단에서 얻은 표본을 독립표본(two sample)이라고 한다.
실습) 남녀 두 집단 간 파이썬 시험의 평균 차이 검정
Male = [75, 85, 100, 72.5, 86.5]
female = [63.2, 76, 52, 100, 70]
'''
from scipy import stats
import pandas as pd
from numpy import average
from pandas.io.parsers impor... | [
"wer104@naver.com"
] | wer104@naver.com |
9d600cce89991aa6203255279e0ca1a38c358019 | 9dda81fb80905226b10e69d4c20f72533f2b68bd | /word4u/settings.py | 428f2f62207b14eda69e375e388e9fc7056bd2e4 | [] | no_license | SardarDawar/graphicStore-ecommerce | 2c610d6ef4e62d98659bf98d3d80af3d1926aa3f | 1d9208d27e4ba69bedf7a34b7e54bcc540d26438 | refs/heads/master | 2023-02-02T13:45:31.335032 | 2020-12-15T18:52:43 | 2020-12-15T18:52:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | """
Django settings for word4u project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"dawarsardar786@gmail.com"
] | dawarsardar786@gmail.com |
044ee99b8b988b65ecbc2c2dec1ecf70dd5fdc3e | 4f7319f90b9ea3bfdae13a59885b917db6037164 | /utils.py | 25d30a4ee9fd42b0e27142b1d9901d93f4fa377a | [] | no_license | DmytroKaminskiy/hillel-git | c78eb3b52b0a827527421cb2fef6e09eebf23e6d | d42f7d8f441333f83cfe5e57b7aa744737891acc | refs/heads/main | 2023-02-12T01:16:55.017896 | 2021-01-14T19:26:23 | 2021-01-14T19:26:23 | 323,099,692 | 0 | 0 | null | 2020-12-24T19:20:24 | 2020-12-20T15:10:59 | Python | UTF-8 | Python | false | false | 4,124 | py | def generate_password(length: int) -> str:
"""
generate password with given length
Homework
функция должна возвращать строку из случайных символов заданной длины.
"""
return ''
def encrypt_message(message: str) -> str:
"""
encrypt message
зашифровать сообщение по алгоритму.
См... | [
"dmytro.kaminskyi92@gmail.com"
] | dmytro.kaminskyi92@gmail.com |
16479781a6eaec6b633cfb0c482675ebfec21d1c | f1fe131614660a04e4fe4ad27b5183ffe2b2a6e4 | /2020/22a.py | adf2ab439b15c787a0786490d4ad786d1b4b22f6 | [
"MIT"
] | permissive | msullivan/advent-of-code | 5873228d562c1069d6516ee99943013bc91c4caa | e52c93e2ffa1e598f23e6d0e356b54c5e82ee61d | refs/heads/master | 2023-01-04T07:14:46.367051 | 2023-01-03T19:04:12 | 2023-01-03T19:04:12 | 47,717,709 | 9 | 4 | MIT | 2022-12-07T19:39:52 | 2015-12-09T20:41:00 | Python | UTF-8 | Python | false | false | 721 | py | #!/usr/bin/env python3
import sys
import re
def extract(s):
return [int(x) for x in re.findall(r'-?\d+', s)]
def main(args):
data = [x.strip().split('\n') for x in sys.stdin.read().split('\n\n')]
# data = [s.strip() for s in sys.stdin]
d1 = [int(x) for x in data[0][1:]]
d2 = [int(x) for x in dat... | [
"sully@msully.net"
] | sully@msully.net |
951f0b687ce2c59a9cbbd6d74b48fae3832ff058 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/miniclient/lobby/header/account_popover.py | f40f37a1d090fd11f2dd1dc02f387086e216e1ab | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,474 | py | # 2016.02.14 12:38:06 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/miniclient/lobby/header/account_popover.py
from gui.Scaleform.locale.MINICLIENT import MINICLIENT
from gui.shared.utils.functions import makeTooltip
from helpers import aop
from helpers.i18n import makeString as _ms
class ClanBtn... | [
"info@webium.sk"
] | info@webium.sk |
560fd9677d919732ed6f5c0c072bed734de5e606 | 626b14ce13986b6d5e03143e151004247659625a | /Day66-75/code/myutils.py | e013c27a881545e2cececd53c451c5dc84ae478a | [] | no_license | Focavn/Python-100-Days | c7586ecf7ae3f1fd42f024558bb998be23ee9df8 | d8de6307aeff9fe31fd752bd7725b9cc3fbc084b | refs/heads/master | 2021-08-08T17:57:02.025178 | 2020-09-17T11:58:04 | 2020-09-17T11:58:04 | 220,427,144 | 0 | 0 | null | 2019-11-08T08:59:43 | 2019-11-08T08:59:41 | null | UTF-8 | Python | false | false | 202 | py | from functools import wraps
def coroutine(fn):
@wraps(fn)
def wrapper(*args, **kwargs):
gen = fn(*args, **kwargs)
next(gen)
return gen
return wrapper
| [
"Focavn@users.github.com"
] | Focavn@users.github.com |
72653be3b07d719ad692e5faa92e16a8f3b42b58 | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/icml2020/process_data/consolidate.py | ce20ffe52de5597a4618268be84969ec69785382 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,393 | py | import pickle
import glob
import numpy as np
def print_stats(data):
returns = []
path_lengths = []
print("num trajectories", len(data))
for path in data:
rewards = path["rewards"]
returns.append(np.sum(rewards))
path_lengths.append(len(rewards))
print("returns")
print... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
d955f629b3a6c204796080da55b86f3e501fa3d8 | 3312b5066954cbf96c79ef3e1f3d582b31ebc5ae | /colegend/events/migrations/0003_auto_20161127_1814.py | dd7c171af96b65ca770497884530df6b420a88a0 | [] | no_license | Eraldo/colegend | d3f3c2c37f3bade7a3a1e10d307d49db225fe7f5 | 2e7b9d27887d7663b8d0d1930c2397c98e9fa1fc | refs/heads/master | 2021-01-16T23:32:09.245967 | 2020-10-07T12:12:14 | 2020-10-07T12:12:14 | 21,119,074 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-27 17:14
from __future__ import unicode_literals
import colegend.cms.blocks
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('events', '0002_auto... | [
"eraldo@eraldo.org"
] | eraldo@eraldo.org |
f43e887280e075b652207566e76e69e00e5fbf4d | 9f495456202ecbfdcbc17aae96f8db47116f7adf | /myenv/lib/python3.6/site-packages/django_extensions/management/commands/runprofileserver.py | c65bcf518017fb2c17af005a471b54fe29720d33 | [] | no_license | nknaveenkumar760/pythontutorial | 8dfae178e5ffa1942722a3754bd1b0c1fc99aa3b | 22df07acad252040c6b9b68c935fef5add9cf974 | refs/heads/master | 2022-02-19T18:06:40.386333 | 2019-08-02T08:12:11 | 2019-08-02T08:12:11 | 171,852,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,958 | py | # -*- coding: utf-8 -*-
"""
runprofileserver.py
Starts a lightweight Web server with profiling enabled.
Credits for kcachegrind support taken from lsprofcalltree.py go to:
David Allouche
Jp Calderone & Itamar Shtull-Trauring
Johan Dahlin
"""
import sys
from datetime import datetime
from django... | [
"nknaveenkumar760@gmail.com"
] | nknaveenkumar760@gmail.com |
3294f3bed75b66731462f43071b989c78c1010b7 | a0801d0e7325b31f0383fc68517e208680bb36d6 | /ProjectEuler/142.py | 85d8bf0fe2a06c44ae1c87bb45a122ac7a0c6bae | [] | no_license | conormccauley1999/CompetitiveProgramming | bd649bf04438817c7fa4755df2c2c7727273b073 | a7e188767364be40f625612af3d16182f2d8d4de | refs/heads/master | 2023-05-14T13:19:32.678134 | 2023-05-11T16:07:33 | 2023-05-11T16:07:33 | 179,089,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | MX = 1000000
squares = set([n * n for n in range(1, MX)])
for i in range(1, MX):
s1 = i * i
for j in range(1, i):
s2 = j * j
s3 = s1 - s2
if s3 not in squares: continue
for k in range(1, j):
s4 = k * k
s5 = s1 - s4
s6 = s2 - s5
if s... | [
"conormccauley1999@gmail.com"
] | conormccauley1999@gmail.com |
9acd75923def0033845f2bee8b1a89f62688789c | 0486b6ccf883e9cd7a24bbd89b5420e7de2172b9 | /DRF Study Material/Django REST Code/gs1/api/migrations/0001_initial.py | 3f7e085f4200f8573144c16f9a572d21f27b04b6 | [] | no_license | ajitexl/restfrmaework | 2980203d7faa6c8364288283758d32c8f2a37817 | 9ab203748e623516365d9924dcc68acc786a66e1 | refs/heads/main | 2023-02-03T08:52:00.672047 | 2020-12-10T09:50:51 | 2020-12-10T09:50:51 | 320,222,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # Generated by Django 3.1.1 on 2020-10-08 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', m... | [
"you@example.com"
] | you@example.com |
1b6cb7fbe59a9824a9fa1cc7a4ad29f83334d35f | fa4515eb50210372f010fbe7243d8748826a2461 | /whitebox/whitebox_tools.py | 40588882c9a903445eccab1bd50a59c0f1d7ac51 | [
"MIT"
] | permissive | deTrident/whitebox-python | b2cbd301416aa47133c191ea61c5efa51b55129e | 909e74bb44ec2f29013a8935e1f57bb16742e38d | refs/heads/master | 2020-09-21T04:20:49.666574 | 2019-11-01T19:17:26 | 2019-11-01T19:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339,787 | py | #!/usr/bin/env python3
''' This file is intended to be a helper for running whitebox-tools plugins from a Python script.
See whitebox_example.py for an example of how to use it.
'''
# This script is part of the WhiteboxTools geospatial library.
# Authors: Dr. John Lindsay
# Created: 28/11/2017
# Last Modified: 25/07/2... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
2d71ffa6cfe0c24d3bfbca19a207ee4695593d52 | c6057a6cc2cf02aa6b9aa877402e84b9cb0bf596 | /commands.py | 3a15d2dbb00813a78c73f9957bd202d12eb83de3 | [] | no_license | DollaR84/HotSound | 372b3e7bd585fa1dc14e31d9fbd0364f7293e1ce | a969f2faac6dfef3b12f69960052f33f77c0de61 | refs/heads/master | 2023-03-25T18:20:56.941975 | 2020-04-08T07:55:08 | 2020-04-08T07:55:08 | 351,373,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | """
Commands for graphical interface.
Created on 12.02.2020
@author: Ruslan Dolovanyuk
"""
import webbrowser
from dialogs.dialogs import About
from dialogs.dialogs import Message
from linker import Linker
from player import Player
import version
import wx
class Commands:
"""Helper class, contains command... | [
"cooler84@ukr.net"
] | cooler84@ukr.net |
f0e7679a16f42089ed8ff7242c54678d82bf28ce | 633944f913050debf0764c2a29cf3e88f912670e | /v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/distutils/tests/test_util.py | e66f9562fdf6124dbdfe93a456b961c2118e9dcc | [
"BSD-3-Clause",
"bzip2-1.0.6",
"SunPro",
"Apache-2.0"
] | permissive | bopopescu/V8-lgtm | 0474c2ff39baf754f556ef57619ceae93e7320fd | da307e2f7abfca5fa0e860a809de6cd07fd1b72b | refs/heads/master | 2022-02-16T19:10:54.008520 | 2019-09-25T07:51:13 | 2019-09-25T07:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | ../../../../../.cipd/pkgs/2/_current/lib/python3.8/distutils/tests/test_util.py | [
"jundong.xjd@antfin.com"
] | jundong.xjd@antfin.com |
f131821fc8232df89ad26250894a2c7c8d50ae4a | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/detection/autoassign/pytorch/mmdet/core/bbox/coder/base_bbox_coder.py | 0872bf008b42d3e9056ce17ea135c7d8ba18c92a | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 514 | py | # Copyright (c) OpenMMLab. All rights reserved.
from abc import ABCMeta, abstractmethod
class BaseBBoxCoder(metaclass=ABCMeta):
"""Base bounding box coder."""
def __init__(self, **kwargs):
pass
@abstractmethod
def encode(self, bboxes, gt_bboxes):
"""Encode deltas between ... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
4dad4fd1062e9275b9c9a467a5b2a23d31a1b62d | 3d06eeebdd598efba25d29d7e3d03d90ede1bfbd | /15_lesson(django)/itProger/blog/migrations/0001_initial.py | 2f69d752487a523064c5052cc3a50ad5bc00220d | [] | no_license | duk1edev/itproger | 58bdd16088dec7864585d318935b118ce584874d | 786f94fff6d816f3f978bd8c24c3d985ffd5ffb2 | refs/heads/master | 2021-01-02T02:43:32.684100 | 2020-03-28T18:10:25 | 2020-03-28T18:10:25 | 239,443,309 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # Generated by Django 3.0.4 on 2020-03-13 23:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"duk1e.ptc.ua@yandex.ru"
] | duk1e.ptc.ua@yandex.ru |
e46a595d613fae013a7af518621b8c2516c05609 | 1ad01be757bd497c24f0e46e5fe88f6d018796c3 | /alertweet/actions/__init__.py | ee6b302ce52b383d36365a2bfb98eaabd52dff63 | [] | no_license | jgsogo/twitter-alert | e80d0146fba33bf331d2d114c3ba43459ad3bd10 | b2a7911841f89be08f2364f8833d13549aad69b2 | refs/heads/master | 2016-08-03T20:04:36.116295 | 2015-07-31T13:03:31 | 2015-07-31T13:03:31 | 40,003,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .stdout import StdOutAction
from .dump_place import DumpPlace | [
"jgsogo@gmail.com"
] | jgsogo@gmail.com |
1f433a635d0821dae159098a8435f766ab8150a4 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L56/56-60_MD_NVT_rerun/set.py | 5e3aecefef9c6d535f5cd40500ef9874db041e1b | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L56/MD/ti_one-step/56_60/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_prodin = filesdir + 'temp_prod.in'
temp_pbs = filesdir + 'temp.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
d8f2a9320c7bf9881c95e4b343f6339d2052933b | bd02997a44218468b155eda45dd9dd592bb3d124 | /baekjoon_2146_3.py | b09cb7e0c56e5b92cbe28541d979b1e838604d8d | [] | no_license | rheehot/ProblemSolving_Python | 88b1eb303ab97624ae6c97e05393352695038d14 | 4d6dc6aea628f0e6e96530646c66216bf489427f | refs/heads/master | 2023-02-13T03:30:07.039231 | 2021-01-04T06:04:11 | 2021-01-04T06:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | '''
Problem Solving Baekjoon 2146_3
Author: Injun Son
Date: Dec 21, 2020
'''
import sys
sys.setrecursionlimit(10 ** 6)
from collections import deque
N = int(input())
graph = [list(map(int, input().split())) for _ in range(N)]
check = [[False] * N for _ in range(N)]
dx = [-1, 0, 0, 1]
dy = [0, 1, -1, 0]
ans = sys.m... | [
"ison@sfu.ca"
] | ison@sfu.ca |
b1a25edd516630842446acf3d6b63f6392f82110 | 41249d7d4ca9950b9c6fee89bf7e2c1929629767 | /results/lmg_optimizations_50spins_criticalpoint_diffConstraints_20200617/script_lmg_crab4freq_neldermead_bound08_fixedInitialPoints_tf2.py | 3d216507ee0ed4e33aa36db3e1ff63d419d92a85 | [
"MIT"
] | permissive | lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381 | f739b3baad1d2aadda576303bb0bbe9d48ec204a | 29f80dcf914096555cee9bc2e18249a2c95d6a50 | refs/heads/master | 2022-11-22T00:44:09.998199 | 2020-07-21T08:35:28 | 2020-07-21T08:35:28 | 281,237,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | import os
import sys
import numpy as np
import pandas as pd
import logging
if '../../' not in sys.path:
sys.path.append('../../')
import src.optimization as optimization
import src.protocol_ansatz as protocol_ansatz
from src.utils import autonumber_filename, basic_logger_configuration
output_file_name = os.path.ba... | [
"lukeinnocenti@gmail.com"
] | lukeinnocenti@gmail.com |
931f4d5d28fbb6cd5865f176db4d037f806c9964 | d86e9d59784097a7262fa9337585a36bd58a6d29 | /cvxbenchmarks/lib/data/epsilon/epopt/problems/robust_pca.py | d0cb3237223924c12733872e4563a3ff724d0b0c | [] | no_license | nishi951/cvxbenchmarks | 2ae36e75c42c8bd35fafac98bad5d9d88168bd68 | 932141d8e4e929860011bf25c41e941e2f8fbd76 | refs/heads/master | 2021-01-11T07:23:32.260811 | 2018-09-15T22:23:14 | 2018-09-15T22:23:14 | 62,177,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import cvxpy as cp
import numpy as np
import scipy.sparse as sp
def create(n, r=10, density=0.1):
np.random.seed(0)
L1 = np.random.randn(n,r)
L2 = np.random.randn(r,n)
L0 = L1.dot(L2)
S0 = sp.rand(n, n, density)
S0.data = 10*np.random.randn(len(S0.data))
M = L0 + S0
lam = 0.1
L =... | [
"nishimuramarky@yahoo.com"
] | nishimuramarky@yahoo.com |
8982bb30bc58de5af180ccd22ab752d94dcc2df1 | c50cf19707ecf44c8e15acf0e994d288fe4f01a7 | /addition/migrations/0005_auto_20160420_1600.py | dbc95f4b80f196cabb9c51f3bd641a0ee163e56f | [
"MIT"
] | permissive | JeremyParker/idlecars-backend | ee5981356c60161dee05c22e01e5c913e73083c0 | 819cce48e4679d61164b238b81dab0e4d51b8afa | refs/heads/master | 2021-03-16T04:29:43.287760 | 2018-03-03T23:16:02 | 2018-03-03T23:16:02 | 31,734,223 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('addition', '0004_addition_created_time'),
]
operations = [
migrations.RemoveField(
model_name='addition',
... | [
"github@jeremyparker.org"
] | github@jeremyparker.org |
6d0d2fb4638956baa4c2192e6ffbab832ad42d15 | d4cb392e60e8864b6b728e54929a6cef040d62f1 | /cmocean/rgb/matter.py | 6e81c7dbaf16b08c4d1a68f5e5fae6827ad40c13 | [
"MIT"
] | permissive | matplotlib/cmocean | e3150c11556c13a7eb664c9ee0d55e373ef5f64f | 50611a57becd98e4cc5858330d9cb7f10aa49711 | refs/heads/main | 2023-08-20T05:28:25.151849 | 2023-03-20T16:06:48 | 2023-03-20T16:06:48 | 32,095,153 | 203 | 53 | MIT | 2023-09-12T16:36:21 | 2015-03-12T18:42:41 | Python | UTF-8 | Python | false | false | 13,688 | py |
from matplotlib.colors import ListedColormap
from numpy import nan, inf
# Used to reconstruct the colormap in pycam02ucs.cm.viscm
parameters = {'xp': [12.083124471935321, 31.017789474016041, 34.659071205185427, 33.93081485895155, 32.27851430976432, -0.7196049621778116],
'yp': [-13.935705368289632, -11.7... | [
"kthyng@gmail.com"
] | kthyng@gmail.com |
aff592a4db92ec929b6c09bb78ddc5edee7e08ec | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/aio/operations/_public_ip_prefixes_operations.py | 51da2f098d86fa05d77f2239e18387c6c415d319 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 29,914 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
b331df55a69467e1044e466d91086d475893a6a1 | c554e6a4bd90760fe3924d00f8428a3796e6bd0c | /src/gui/graphWidget.py | e2314ed9b0bfa0db2515115163bd4665fb9835f7 | [] | no_license | Xifax/muscale | 0d84013e5c4252437c64c42681f4d89a78e21512 | 4feba17a845d2df5da7c46aee495c0675c28ea5f | refs/heads/master | 2021-01-23T03:05:33.076385 | 2011-06-13T21:28:44 | 2011-06-13T21:28:44 | 1,459,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,003 | py | # -*- coding: utf-8 -*-
'''
Created on Mar 10, 2011
@author: Yadavito
'''
# internal #
import os
import Image
# own #
from utility.const import RES, ICONS, TOOLBAR_ICONS,\
TEMP, LINE_WITH, ICO_GRAPH, LEGEND,\
GRAPH, COPY, SCALE
from utility.tools import clearFolderCont... | [
"demi.log@gmail.com"
] | demi.log@gmail.com |
6fe457cbf36eb7f66a569eb0d932fb84baac199e | 1e9c67785cd2a07fbd12b63bd93a2eba2272f237 | /gcn1/parameters.py | 90f131240639bd833f76ced834fd592e8188d5d6 | [] | no_license | monisha-jega/mmd | 2975d0f77bce4db38795fa201f515f35498f0eb3 | d4f9d2c94409c2877ff5a5a2242e7e7ed2f87921 | refs/heads/master | 2022-07-20T17:01:39.043859 | 2020-05-16T23:31:35 | 2020-05-16T23:31:35 | 264,543,426 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | # train_dir = "/scratch/scratch2/monishaj/dataset/v1/valid/"
# val_dir = "/scratch/scratch2/monishaj/dataset/v1/valid/"
# test_dir = "/scratch/scratch2/monishaj/dataset/v1/test/"
# data_dump_dir = "/scratch/scratch2/monishaj/image_data_dump_SN/"
# model_dump_dir = "/scratch/scratch2/monishaj/image_model_dump_SN/"
# #Mu... | [
"monishaj@Monishas-MacBook-Pro.local"
] | monishaj@Monishas-MacBook-Pro.local |
13f35bebc83121ef7c3b39ca0bd9121a7e9981ce | d09c6ff7114f69a9326883c5b9fcc70fa994e8a2 | /_pycharm_skeletons/renderdoc/GLFBO.py | 22543193e763b3990fca10ebdc726c68f718ce92 | [
"MIT"
] | permissive | Lex-DRL/renderdoc-py-stubs | 3dd32d23c0c8219bb66387e6078244cff453cd83 | 75d280e4f500ded506f3315a49fc432b37ab4fa6 | refs/heads/master | 2020-08-22T16:55:39.336657 | 2019-11-03T01:21:26 | 2019-11-03T01:21:26 | 216,441,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | # encoding: utf-8
# module renderdoc
# from P:\1-Scripts\_Python\Py-Autocomplete\renderdoc.pyd
# by generator 1.146
# no doc
# imports
import enum as __enum
from .SwigPyObject import SwigPyObject
class GLFBO(SwigPyObject):
""" Describes the contents of a framebuffer object. """
def __eq__(self, *args, **kwa... | [
"drl.i3x@gmail.com"
] | drl.i3x@gmail.com |
82d0e61c36c862b9836cbf9fa197313ee1b5d21a | 5a0488b1e1b3cb9423ab5537598cd2e927deada1 | /com/kute/date/caltime.py | 28d7f63207063afa069969fede799cf1ce8f4878 | [] | no_license | dajima/purepythontest | c276796a90ded77cc033b717a01425a64c5fe729 | 1e0c446f9f6d2bf1f38ab2aafec5af914cf66293 | refs/heads/master | 2021-06-07T04:15:34.450197 | 2016-11-03T14:27:28 | 2016-11-03T14:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = 'kute'
# __mtime__ = '16/7/31 17:04'
"""
计算函数执行时间 装饰器
"""
from functools import wraps
import time
def perf_counter(function):
@wraps(function)
def _caltime(*args, **kwargs):
start = time.perf_counter()
result = function(*args,... | [
"kutekute00@gmail.com"
] | kutekute00@gmail.com |
115102adbceafbbd78127a07c46c81fafef049d7 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/ListScaleOutEcuRequest.py | 618118a73801ecbaed62a1509ab2bac80d1200da | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
f834ec50bc964f06617f54a3c83792264173427b | ec1fad1e16d24f51987acba26c1b4014cbed0e96 | /python/xgbserver/xgbserver/__main__.py | 8d64b763e7a79c82e256e3e7e49deb18ca3d2197 | [
"Apache-2.0"
] | permissive | Jeffwan/kfserving | 4127b811fd9b778903c0c7572b0bc687e1997efd | 47a6303173dab27b157ca77c72d62b847d099d21 | refs/heads/master | 2020-06-05T03:06:11.606236 | 2019-10-06T01:47:10 | 2019-10-06T01:47:10 | 192,292,123 | 0 | 0 | Apache-2.0 | 2019-06-17T06:59:43 | 2019-06-17T06:59:41 | null | UTF-8 | Python | false | false | 1,289 | py | # Copyright 2019 kubeflow.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 applicable law or agreed to in writing,... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
63a925ca4475c05114f2fa5a5e84e1cfd5c070e2 | 3432efd194137e1d0cb05656eb547c9992229f02 | /test1014/other/5.py | 2163452ba68ab81662362b7241b90f2aba765a8c | [] | no_license | zhanganxia/other_code | 31747d7689ae1e91fcf3f9f758df130246e7d495 | 8d09d9d0b6d6a1a9b8755487f926ac6fafd761fa | refs/heads/master | 2021-09-04T02:22:38.632685 | 2018-01-14T15:37:14 | 2018-01-14T15:37:14 | 107,007,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | #encoding=utf-8
a=input("请输入第一个数:")
b=input("请输入第二个数:")
c=input("请输入第三个数:")
d=input("请输入第四个数:")
e=input("请输入第五个数:")
num1=int(a)
num2=int(b)
num3=int(c)
num4=int(d)
num5=int(e)
sum=num1+num2+num3+num4+num5
print (sum) | [
"kk@kk.rhel.cc"
] | kk@kk.rhel.cc |
c971d3ead94eb08032a310c9abc1c648f30c516b | 7e69c60c23fce92463c78774b5968d3320c715c9 | /django_covid/django_covid/wsgi.py | b570b88fa5b444fdc628f862febd2e87d82a55f9 | [] | no_license | hwet-j/Python | 5128d114cf7257067f68cfb1db502e4f762ac8cc | 3e6f36be665932588a576f44ebb0107a4f350613 | refs/heads/master | 2023-04-08T17:52:31.607225 | 2021-04-17T05:25:02 | 2021-04-17T05:25:02 | 353,336,473 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for django_covid 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"ghlckd5424@gmail.com"
] | ghlckd5424@gmail.com |
1acb6d67a1ae657f90c2e4402322ec6d567f9adc | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/kubernetes/client/models/v1_network_policy_port.py | 85bb6625d011a03814dc504e0395a5ee14e54a4d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 3,880 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
20af141d1a5395d48a83884c91f1a07c01b172f3 | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/core/upgrades/20190415161809_add_nightly_jobs_settings/upgrade.py | 110a092ff386b9a2072439d981ca1fcc3b5104cd | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 187 | py | from ftw.upgrade import UpgradeStep
class AddNightlyJobsSettings(UpgradeStep):
"""Add nightly jobs settings.
"""
def __call__(self):
self.install_upgrade_profile()
| [
"niklaus.johner@4teamwork.ch"
] | niklaus.johner@4teamwork.ch |
6582416d65803d8038c2fe7b1d4310ac23d17dbb | 51a936439315f892e0cb4db33ca4c9a6e60c127e | /app/controllers/stats.py | c9eed0785e6d36128393c21c43595b08435aa2ba | [
"MIT"
] | permissive | june07/packagecontrol.io | a27dfcb797f396027bcafa29392db6cf3fef80c2 | 9f5eb7e3392e6bc2ad979ad32d3dd27ef9c00b20 | refs/heads/master | 2023-02-21T15:41:54.903531 | 2021-08-14T01:14:52 | 2021-08-14T01:15:07 | 172,954,020 | 1 | 0 | NOASSERTION | 2019-02-27T16:51:47 | 2019-02-27T16:51:46 | null | UTF-8 | Python | false | false | 354 | py | from datetime import datetime, timedelta
from bottle import route
from ..models import system_stats
from ..render import render
@route('/stats', name='stats')
def stats_controller():
data = system_stats.fetch('1 days')
data['date'] = datetime.utcnow().replace(hour=0, minute=0, second=0) - timedelta(days=2)
... | [
"will@wbond.net"
] | will@wbond.net |
7d5a8a1bee2752016f38cb31f378a9bf78332833 | 6c174c0cbff5f3403d8034a13c2b8cefff2dd364 | /dfttapptest/database/cookie/jira.py | d8fe5f60dc94c88c89b05e93d14e1e6114387d28 | [] | no_license | xiaominwanglast/uiautomator | 0416e217538527c02e544e559b2d996554b10b20 | 7ce47cda6ac03b7eb707929dd2e0428132ff255f | refs/heads/master | 2021-09-12T12:37:54.286397 | 2018-04-16T10:03:57 | 2018-04-16T10:03:57 | 106,253,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | #coding:utf-8
import urllib
import requests
data={'os_username':'wangxiaomin',
'os_password':'wang12345',
'os_destination':'',
'user_role':'',
'atl_token':'',
'login':'Log In'}
url='http://jira.dfshurufa.com/login.jsp'
session=requests.Session()
header={'User-Agent':'Mozilla/5.0 (Windows N... | [
"2274052689@qq.com"
] | 2274052689@qq.com |
7b6e633b612a2474b21935d9902db2f20a237d70 | 0c7d7b24a8d453fc1a9c2f27a08f3c4cfa46ec3b | /recipes/sota/2019/raw_lm_corpus/get_gb_books_by_id.py | 7e6b484fc9636ef947b6756f67c42d7b1bb9bece | [
"BSD-3-Clause",
"MIT"
] | permissive | piEYj/wav2letter | e6ae462eeeb6a4374f8280c8fa15d8f194c60215 | 49fbb1392e69b5194c077df9847505ec995b4e3d | refs/heads/main | 2023-09-06T01:08:48.837731 | 2021-11-12T14:13:41 | 2021-11-12T14:15:15 | 444,344,109 | 1 | 0 | NOASSERTION | 2022-01-04T08:37:19 | 2022-01-04T08:37:19 | null | UTF-8 | Python | false | false | 1,059 | py | import argparse
import os
import sys
from multiprocessing.pool import ThreadPool
from gutenberg.acquire import load_etext
from gutenberg.cleanup import strip_headers
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def get_one_book(book_id, outdir):
eprint("Getting book with id", book_i... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
6a87d1e1ce9879012a9742449f94015df579147d | 62e45255088abb536e9ea6fcbe497e83bad171a0 | /ippython/funciones_es_par.py | 055dff2bfd12db09351dbd03b0618033e06494a5 | [] | no_license | jmery24/python | a24f562c8d893a97a5d9011e9283eba948b8b6dc | 3e35ac9c9efbac4ff20374e1dfa75a7af6003ab9 | refs/heads/master | 2020-12-25T21:56:17.063767 | 2015-06-18T04:59:05 | 2015-06-18T04:59:05 | 36,337,473 | 0 | 0 | null | 2015-05-27T02:26:54 | 2015-05-27T02:26:54 | null | UTF-8 | Python | false | false | 201 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 26 11:21:03 2013
@author: daniel
"""
def es_par(num):
return num % 2 == 0
numero = int(raw_input('Escribe un numero: '))
print es_par(numero)
| [
"danmery@gmail.com"
] | danmery@gmail.com |
dfa30680a49a5312290d890edacd03c8a0e44fe5 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/resources/azure-mgmt-msi/azure/mgmt/msi/v2022_01_31_preview/__init__.py | 785d352dea5bec33c870f80744d1867b9bcd5b90 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 925 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.