blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24245d89ce0927849f9fa746fab7129ce8a8b07f | 0fa00ecf2dd671515dc001d4b14049ec6a0c1f1c | /custom_components/spook/ectoplasms/homeassistant/services/add_entity_to_area.py | 6aa0de0b888cb902e23fd3260b66cedb44e9128d | [
"Unlicense"
] | permissive | bacco007/HomeAssistantConfig | d91a5368344f50abbea881bd1e6dfc57a0e456ca | 8548d9999ddd54f13d6a307e013abcb8c897a74e | refs/heads/master | 2023-08-30T07:07:33.571959 | 2023-08-29T20:00:00 | 2023-08-29T20:00:00 | 230,585,631 | 98 | 16 | Unlicense | 2023-09-09T08:28:39 | 2019-12-28T09:05:02 | Python | UTF-8 | Python | false | false | 1,342 | py | """Spook - Not your homie."""
from __future__ import annotations
from typing import TYPE_CHECKING
import voluptuous as vol
from homeassistant.components.homeassistant import DOMAIN
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import (
area_registry as ar,
config_validati... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
ba68dbcbc0d4f7e3bf93ea92a2518d25b788b357 | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-ros/aliyunsdkros/request/v20190910/ListTagResourcesRequest.py | 80e9023661821842346ba34dd09b33428473595b | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 2,312 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
5afd9e6bd922bd413908a68ca82400f0832b4152 | 612325535126eaddebc230d8c27af095c8e5cc2f | /src/build/rm.py | 108af6929a04efc6447c7a8ad52e7408642e1469 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | #!/usr/bin/env python
# Copyright (c) 2016 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.
"""Delete a file.
This module works much like the rm posix command.
"""
import argparse
import os
import sys
def... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
6fc052f9f64c0dd9b597daa61ef1095673cc12b8 | c581dd48195f851cbd9711b1f40bb9f3666017ca | /gromacs_wrapper/mdrun.py | 0e6d5bbe30b3e3a4359d3c57f410b89307c789f8 | [
"Apache-2.0"
] | permissive | bioexcel/pymdsetup | 358135527a3f07ebfca6f0f05de3312b5cd926d0 | ef5fff7cf490c3258f1d39a47e2d4b10119d8970 | refs/heads/master | 2020-11-28T13:45:39.471737 | 2019-01-16T12:06:21 | 2019-01-16T12:06:21 | 65,997,948 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,621 | py | #!/usr/bin/env python
"""Python wrapper for the GROMACS mdrun module
"""
import sys
import json
import configuration.settings as settings
from command_wrapper import cmd_wrapper
from tools import file_utils as fu
class Mdrun(object):
"""Wrapper for the 5.1.2 version of the mdrun module
Args:
input_tpr... | [
"andriopau@gmail.com"
] | andriopau@gmail.com |
8bbdd221ea408a1e52be4b20dc820c53d725feb8 | 4c67693e0a256ff9e2fc37153f0b0ac0a39a7ec3 | /pywick/optimizers/ralamb.py | 9bee5707107c7dbfc8f5eb126d9908089ac95c06 | [
"MIT"
] | permissive | liuzhidemaomao/pywick | 666276fdb7a5ee8168fab3f7c234c0af03f0225c | c42ee9728b8f85decc5b46b090524623d12b0580 | refs/heads/master | 2023-04-30T09:40:51.329833 | 2021-05-17T15:46:51 | 2021-05-17T15:46:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,068 | py | # Source: https://gist.github.com/redknightlois/c4023d393eb8f92bb44b2ab582d7ec20
from torch.optim.optimizer import Optimizer
import torch
import math
class Ralamb(Optimizer):
def __init__(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=1e-4):
defaults = dict(lr=lr, betas=betas, eps=eps... | [
"Alexei.Samoylov@digikey.com"
] | Alexei.Samoylov@digikey.com |
5bbf7153782b5f13dd4d92110db05095c9658754 | de171291254d5717ab82602001dbab004ab34382 | /primero.py | 2f8a997d94abbeee0ffd03cb51d21a75e738ddf1 | [] | no_license | Mike-droid/EjerciciosCursoPython | 3637ae18640a8c3cad8d15e5cbee06d3cf306bf7 | 7ca87bfeb6e7faff84819667cd9f249071e16ed3 | refs/heads/master | 2022-12-04T02:35:40.314752 | 2020-08-18T16:25:07 | 2020-08-18T16:25:07 | 288,506,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | import turtle
window = turtle.Screen()
tortuga = turtle.Turtle()
tortuga.forward(50)
tortuga.left(90)
tortuga.forward(50)
tortuga.left(90)
tortuga.forward(50)
tortuga.left(90)
tortuga.forward(50)
tortuga.left(90)
turtle.mainloop() | [
"miguelreyesmoreno@hotmail.com"
] | miguelreyesmoreno@hotmail.com |
751a5c0436822ab014dffd8f9922621ae1fbb1b6 | f3e0cc142e77445b286234fc751ecae219b75458 | /pyPico/2.传感器实验/1.温度传感器DS18B20/main.py | 34e22ca2f918576e4d633e0f43e532347cdcff47 | [
"MIT"
] | permissive | zhangweiIOT/MicroPython_Examples | 9389528b9dd6c8cd8c4f8932b95252a23de684ae | f06a1bee398674ceafebed2aac88d8413cc8abad | refs/heads/master | 2023-08-25T13:45:36.924345 | 2021-10-26T06:49:41 | 2021-10-26T06:49:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | '''
实验名称:温度传感器DS18B20
版本:v1.0
日期:2021.1
作者:01Studio
说明:通过编程采集温度数据,并在OLED上显示。。
'''
#引用相关模块
from machine import Pin,SoftI2C
from ssd1306 import SSD1306_I2C
from onewire import OneWire
from ds18x20 import DS18X20
import time
#初始化oled
i2c = SoftI2C(scl=Pin(10), sda=Pin(11)) #pyBoard I2C初始化:scl--> 10, sda --> 11
oled = ... | [
"237827161@qq.com"
] | 237827161@qq.com |
9400cbdca3871b0715a74d4571b9f4216f4c178f | 9c968f7cdf390f8417912519b53f1b7f6ea8b7e8 | /HJ_AL/190328TST/퍼킷.py | d3561c6e13659579a19ff382ee3cac79758d59f9 | [] | no_license | hhongjoon/TIL | aa33ce2973552a0baa0e0da5bd7d20824fd2e322 | a33b20af15d3f671ea7c7b2855291e50a9036c1c | refs/heads/master | 2021-08-07T17:33:39.722880 | 2020-04-25T08:11:02 | 2020-04-25T08:11:02 | 162,099,245 | 4 | 0 | null | 2019-10-30T09:06:21 | 2018-12-17T08:34:07 | Jupyter Notebook | UTF-8 | Python | false | false | 479 | py |
def powerset(n,k,s,b):
global minmat
if minmat ==0:
return
if b!=0:
if minmat > abs(s-b):
minmat = abs(s-b)
if n ==k:
return
else:
A[k] = 1
plus = datas[k]
powerset(n,k+1,s*plus[0], b+plus[1])
A[k] = 0
powerset(n,k+1,s,b)... | [
"sungsung129@gmail.com"
] | sungsung129@gmail.com |
9bb6bd6c1f3d690231c270a9aac3c8964ac67c4d | a928a2b688d9f244f24654be3854910182dc6e48 | /odps/df/backends/odpssql/types.py | 8fd356b2502b5e31de243a0b1baced18226dd8b3 | [
"Apache-2.0"
] | permissive | tradaniel/aliyun-odps-python-sdk | 42d0953f3709d98d54417fc8b8d0bd5d0461782e | 55af9fadd356cdd7e696802b67104aa59af92c9d | refs/heads/master | 2021-01-17T18:34:26.413993 | 2016-04-21T08:47:05 | 2016-04-21T08:47:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 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... | [
"xuye.qin@alibaba-inc.com"
] | xuye.qin@alibaba-inc.com |
511503be96b56da54a9c3a7c2e849355d05d2fb4 | a8cd6177f5bb0b03c37f5ff1982ed2f16e9c90b3 | /00-ToDoApp/migrations/versions/be573c3ed0e9_.py | 7074ae2bba0d67a14b3d33e8dd3c7bdce29986c7 | [] | no_license | hmisonne/UdacityWebDev | 763456a6b9431d0568e73adcc27b46dbf82d816c | 4a6b0b4457db0d5f1638e4a044a76307bc2b40a5 | refs/heads/master | 2023-01-23T07:10:16.560677 | 2020-09-29T17:31:40 | 2020-09-29T17:31:40 | 244,783,817 | 1 | 2 | null | 2023-01-07T16:01:31 | 2020-03-04T01:52:39 | Python | UTF-8 | Python | false | false | 992 | py | """empty message
Revision ID: be573c3ed0e9
Revises: 9855ea9bd1a3
Create Date: 2020-03-04 16:55:22.255663
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'be573c3ed0e9'
down_revision = '9855ea9bd1a3'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"helene.misonne@gmail.com"
] | helene.misonne@gmail.com |
9414408ba98654cd32a124ab0b97ee59d76f1036 | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /PySvn_examples/commits__draw_plot__by_single_author.py | ca0edb58ab6d8db1eb8d8b6a4848e5ae972bb93a | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 1,109 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import os
from datetime import datetime
import pandas as pd
import matplotlib.pyplot as plt
import config
from common import get_log_list_by_author
AUTHOR = 'ipetrash'
author_by_log = get_log_list_by_author(config.SVN_FILE_NAME)
# Сбор комм... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
820934b622bf33ad5525080f4a85c6452564970d | ed269e9a4d9d6bfbb833381b7aef65a23f391fe2 | /皮皮OJ/最小k公倍数.py | 81321fedf30252b4d45453b4fa05d3f03525a2e7 | [] | no_license | Comyn-Echo/leeCode | fcff0d4c4c10209a47bd7c3204e3f64565674c91 | 67e9daecb7ffd8f7bcb2f120ad892498b1219327 | refs/heads/master | 2023-04-28T17:35:52.963069 | 2021-05-19T01:52:16 | 2021-05-19T01:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # 5 3
# 1 2 3 4 5
while True:
s = input()
if s == '':
break
n, k = s.split(' ')
n = int(n)
k = int(k)
nums = input().split(' ')
list = [int(i) for i in nums]
start = min(list)
def judge(num, nums, k):
count = 0
for i in nums:
if num % i ==0:
... | [
"2892211452aa@gmail.com"
] | 2892211452aa@gmail.com |
829ed806e3bdc1dcdede46d00e31d7400dd26840 | 3b1efdd0aacc98738f3b8b9ee09c6ff59cccc14e | /ietf/name/models.py | 453b7042e55e0c1e2ae5cf7b46742823577d5f2b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unofficial-mirror/ietfdb | 15beb6bf17b1d4abb257ee656ac6b7488339d331 | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | refs/heads/master | 2020-08-06T17:24:13.966746 | 2019-10-04T20:54:05 | 2019-10-04T20:54:05 | 213,088,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,546 | py | # Copyright The IETF Trust 2010-2019, All Rights Reserved
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from ietf.utils.models import ForeignKey
@python_2_unicode_compatible... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
96eeaff2c5b64227eceff5b2bb4a9159e1a2099e | 6bd9d7679011042f46104d97080786423ae58879 | /1618/d/d.py | 202f579bf283040f7256b3fdf8ca3acc6af03a7f | [
"CC-BY-4.0"
] | permissive | lucifer1004/codeforces | 20b77bdd707a1e04bc5b1230f5feb4452d5f4c78 | d1fe331d98d6d379723939db287a499dff24c519 | refs/heads/master | 2023-04-28T16:00:37.673566 | 2023-04-17T03:40:27 | 2023-04-17T03:40:27 | 212,258,015 | 3 | 1 | null | 2020-10-27T06:54:02 | 2019-10-02T04:53:36 | C++ | UTF-8 | Python | false | false | 411 | py | from sys import stdin
from collections import Counter
def read_int():
return int(stdin.readline())
def read_ints():
return map(int, stdin.readline().split(' '))
t = read_int()
for case_num in range(t):
n, k = read_ints()
a = list(read_ints())
a.sort()
ans = sum(a[:n - 2 * k])
for i in ... | [
"qqbbnease1004@126.com"
] | qqbbnease1004@126.com |
757069eebb905d399afe8f77d80660a78a94f3cc | a8b2219c7be9d2b844788eff9a82f26c44d2a498 | /attributes/models/__init__.py | 3cc2ccb08b6a5e24c6138d442905e7d2770c7ec7 | [
"ISC"
] | permissive | pmaigutyak/mp-attributes | 689cbd1a27fdfcae25604cbb4138fe3f19250b1e | 486e24c17757e618bf521709d3ea1d02788a7a25 | refs/heads/master | 2022-09-20T13:30:16.765746 | 2022-09-18T09:52:04 | 2022-09-18T09:52:04 | 249,807,531 | 1 | 0 | ISC | 2021-11-16T11:47:00 | 2020-03-24T20:11:23 | Python | UTF-8 | Python | false | false | 189 | py |
from attributes.models.attribute import Attribute
from attributes.models.attribute_option import AttributeOption
from attributes.models.attribute_value import AttributeValue, VALUE_FIELDS
| [
"pmaigutyak@gmail.com"
] | pmaigutyak@gmail.com |
76353eb6bc34c292829a3adfb82d0d2c5f5f1af4 | 52b0aefb5b163528b07b5f288fe5f84e29d87134 | /rest_client/SpecieRest.py | 96ac83e723aa4cbdfc84e9a23038fe6858aa34fe | [
"MIT"
] | permissive | diogo1790/inphinity | 4ef12440a78beca60349c1119f8d6f98083bb908 | 862eb85746e8a3a9bbc0d6aef9abbd5eebe9765f | refs/heads/master | 2020-04-01T01:47:50.655419 | 2019-09-18T11:56:37 | 2019-09-18T11:56:37 | 152,752,756 | 1 | 6 | MIT | 2019-07-10T09:29:15 | 2018-10-12T13:13:33 | Python | UTF-8 | Python | false | false | 1,566 | py | import json
from rest_client.GetRest import GetRest
from rest_client.PostRest import PostRest
class SpecieAPI(object):
"""
This class manage the requests for the specie objects into the restAPI
:param function: the name of the function to access in the rest API
:type function: string
"""
de... | [
"diogo1790@hotmail.com"
] | diogo1790@hotmail.com |
79934af2eb8209fedc5f7dfe342cb8d19fc12c35 | d503b835ab6ea370b762edd63090e63f1f57d81f | /sapt5-9/Repositories/repository.py | de8b41cc96ec5560c9525f91cf84f31448d9507c | [] | no_license | SuciuPatrick/FP---Python-projects | c2b458d641f6a8b59155ad36ecff51371f2aa060 | ca8e998a4913f80ae11bc9ba45e64d640ed3ea77 | refs/heads/master | 2020-04-24T20:25:55.124065 | 2019-02-23T17:35:31 | 2019-02-23T17:35:31 | 172,243,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | from Domain.Client import *
from Domain.Movie import *
class Repository:
def __init__(self):
self._list = []
def add(self, newObject):
ok = 0
if len(self._list) > 0:
if newObject.id < self._list[0].id:
self._list.insert(0, newObject)
ok = 1
for i in range(0, len(self._list) - 1):
if self._lis... | [
"patrick.suciu97@gmail.com"
] | patrick.suciu97@gmail.com |
73b7d4d70f941408996459b15d72b112c2b78d42 | 34f1ba5d471c906cb3005ad4a6cf8dcf8828f22f | /test/test_api_list_network_server_response.py | 98eab42955673ee7d165b5a956705fa07d51c124 | [] | no_license | yuregir/Lora-AppServer-API | 9c7e81dd57f13b3f0350022098c332a2db4af195 | 5159de92b27e3d4342a60fe69f169510eeb0e889 | refs/heads/master | 2020-07-12T12:38:21.760887 | 2020-01-03T13:30:33 | 2020-01-03T13:30:33 | 204,821,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | # coding: utf-8
"""
LoRa App Server REST API
For more information about the usage of the LoRa App Server (REST) API, see [https://docs.loraserver.io/lora-app-server/api/](https://docs.loraserver.io/lora-app-server/api/). # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.co... | [
"yuregir@me.com"
] | yuregir@me.com |
3928f358337728b3966b5bc1c3b06b3cb3d4cad0 | 9833ccdadb60ce80dac3a027611c3dea2e0dd647 | /CleanCode/Chapter05/decorator_class_2.py | 67279972535240f10834930de5bfd4a09f8a486f | [] | no_license | nhutphong/python3 | cc2bf0881c9828de5bd474946cd6c7b0f11a894f | beb19c46cefc2296d08a790aeab9293dcb2f5039 | refs/heads/main | 2022-11-08T14:05:03.187915 | 2022-11-06T04:55:13 | 2022-11-06T04:55:13 | 247,219,711 | 1 | 0 | null | 2022-09-28T05:41:16 | 2020-03-14T05:47:02 | Jupyter Notebook | UTF-8 | Python | false | false | 3,673 | py | """Clean Code in Python - Chapter 5: Decorators
Class decorators.
Reimplement the serialization of the events by applying a class decorator.
"""
import unittest
from datetime import datetime
def hide_field(field) -> str:
return "**redacted**"
def format_time(field_timestamp: datetime) -> str:
return field... | [
"nhutphong@outlook.com"
] | nhutphong@outlook.com |
9d87cc5bf0ad10ead38e45abbf5ad0b15685e2a8 | a8cfc855223bdcd2f78cdc877e928102f54711b0 | /py/test.py | 97e288e96456625bc0189b2638dba36b7b3ef603 | [
"MIT"
] | permissive | rodluger/exoq | c10a62c47e749300864494f46770d46414e6e435 | 9436457ebfa0f4bc253a094950a50b648b71562a | refs/heads/master | 2021-05-16T04:23:08.902178 | 2018-04-09T21:17:38 | 2018-04-09T21:17:38 | 105,944,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,466 | py | """Test STAN."""
from utils import StanFit
from simulate import generate
import matplotlib.pyplot as pl
import numpy as np
np.random.seed(1234)
# The STAN code
stan_code = """
functions {
// A trivial diff eq controlling the "tidal" evolution
real[] tidal(real t, real[] y, real[] params, real[] x_r, int[] x_i... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
d8c686bbba61cb1be4f4d4db3dc342dd776fe82f | bebad22c3736c533a755616d61f5bda5ed51b109 | /ui_b2b/pages/session.py | 58c416aad478585f6451de97324125599f6101cf | [] | no_license | pkuptcov/pet | cb10334b630419bac9ef8ac46540231749a8aa83 | 58b069e8eb58b1c27d0b44071e6b7a8d3ebc77a7 | refs/heads/master | 2021-07-21T16:58:40.139866 | 2018-11-14T12:02:31 | 2018-11-14T12:02:31 | 103,900,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | from ui_b2b.pages.base import BasePage
from ui_b2b.locators.auth_form import AuthorizationControls
from ui_b2b.locators.left_menu import LeftMenuControls
class Session(BasePage):
auth_controls = AuthorizationControls
menu_controls = LeftMenuControls
def login(self, username, password):
# Автори... | [
"pavel.kuptcov@gmail.com"
] | pavel.kuptcov@gmail.com |
df015bd670c7a8fbe9e5337e4f54ddcf7b10dfa6 | 63dd919e1551fbabdad3f311b96040742e4ecb53 | /discpy/types/message.py | 50f2abedd2066cf3f8be0058b20b7dafe5f87e08 | [
"MIT"
] | permissive | AryamanSrii/DiscPy | 4d45d2f52c21b31bb84a17dd95af421c9d563bd6 | 0ba89da9ca184f0dfaebeedd4e9b7bc3099a0353 | refs/heads/main | 2023-08-17T14:42:45.936056 | 2021-10-01T15:12:17 | 2021-10-01T15:12:17 | 414,887,513 | 0 | 0 | MIT | 2021-10-08T07:24:33 | 2021-10-08T07:24:32 | null | UTF-8 | Python | false | false | 3,688 | py | """
The MIT License (MIT)
Copyright (c) 2021 The DiscPy Developers
Copyright (c) 2015-2021 Rapptz
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... | [
"sn1f3rt@outlook.com"
] | sn1f3rt@outlook.com |
ba80a90b6764ac088815f76681164455644bccdc | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/response/KoubeiAdvertDeliveryItemApplyResponse.py | 756da60555246c548963c2d074596d90259eb8fa | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class KoubeiAdvertDeliveryItemApplyResponse(AlipayResponse):
def __init__(self):
super(KoubeiAdvertDeliveryItemApplyResponse, self).__init__()
self._benefit_detail = None
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
1b3bdeb1d6c1961934a6e2dfb61f939b8acabbee | ad4c2aa0398406ccb7e70562560e75fa283ffa1a | /container-with-most-water/container-with-most-water.py | 7259b6b8190e442fbf9108cb0739b77e8bfbb6d5 | [
"Apache-2.0"
] | permissive | kmgowda/kmg-leetcode-python | 427d58f1750735618dfd51936d33240df5ba9ace | 4d32e110ac33563a8bde3fd3200d5804db354d95 | refs/heads/main | 2023-08-22T06:59:43.141131 | 2021-10-16T14:04:32 | 2021-10-16T14:04:32 | 417,841,590 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | // https://leetcode.com/problems/container-with-most-water
class Solution(object):
def maxArea1(self, height):
"""
:type height: List[int]
:rtype: int
"""
mp = 0
for i in range(1, len(height)):
for j in range(0, i):
m = min(height[j] ,... | [
"keshava.gowda@gmail.com"
] | keshava.gowda@gmail.com |
5bd7aa12dc42b4e40efc0af27fb88a4ee001396f | 08da9d69a3b36900df24110730ff93d0731ea129 | /scripts/bulk_queue_cupt_check.py | 685ef4a29151f438db80db309f3768bad0d3edec | [] | no_license | zkan/admapp | 7603f33e653f5a093d4790b5b245a5d213715d0e | 7d07804f7f5b0bd25515da1aad452e1fd64a09ee | refs/heads/master | 2021-01-13T23:29:18.369041 | 2020-02-25T17:05:32 | 2020-02-25T17:05:32 | 242,528,103 | 0 | 0 | null | 2020-02-23T14:07:30 | 2020-02-23T14:07:29 | null | UTF-8 | Python | false | false | 764 | py | from django_bootstrap import bootstrap
bootstrap()
import sys
import csv
from datetime import datetime
from regis.models import Applicant, LogItem
from appl.models import AdmissionProject, AdmissionResult, AdmissionRound, ProjectApplication
from regis.models import CuptConfirmation, CuptRequestQueueItem
def main():
... | [
"jittat@gmail.com"
] | jittat@gmail.com |
544bb04898849f3e7ee43d5abd38a600153595e9 | 780c5bf48098e2ecabdc8a131f47f6d3da0d3a85 | /cc_vs_hd_j2/create_table.py | a1132b13fd7d99d626ba73859bd243b1980d8202 | [] | no_license | artfin/KazakovEquations | 9566a716371e1aafed8b1d0ad6321208589f9838 | 8230584dd50ce01832d1ad32723ce3671178eb73 | refs/heads/master | 2021-10-23T05:38:27.558530 | 2019-03-15T08:09:07 | 2019-03-15T08:09:07 | 154,733,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | from operator import itemgetter
from pprint import pprint
def read_file(filename):
with open(filename, mode = 'r') as inp:
text = inp.readlines()
return text
def parse_cs( text ):
levels = []
parity = None
for line in text:
if "ODD" in line:
parity = "ODD"
if ... | [
"artfin@mail.ru"
] | artfin@mail.ru |
b09c19af0a7b913d4058ba6ce32c469d70812157 | f28f4f060aa782fcbd15fbf52025f89fec73a677 | /src/network.py | 3305094494ba011608d55c30397a4a91d7c748f7 | [
"MIT"
] | permissive | vmayoral/NAF-tensorflow | 9a270e800339de45aa0733e48b462ee5d0e7261f | 69ef481314077c1f931ad13afa25f53a5bf58b2f | refs/heads/master | 2021-03-27T20:23:39.515879 | 2017-12-19T17:05:39 | 2017-12-19T17:05:39 | 114,790,833 | 0 | 1 | null | 2017-12-19T17:05:01 | 2017-12-19T17:05:01 | null | UTF-8 | Python | false | false | 4,856 | py | from logging import getLogger
logger = getLogger(__name__)
import tensorflow as tf
from tensorflow.contrib.framework import get_variables
from .ops import *
class Network:
def __init__(self, sess, input_shape, action_size, hidden_dims,
use_batch_norm, use_seperate_networks,
hidden_w, ... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
67cede69c42dd5ca7266d734b1daa22802113885 | 6b96a11195094a0023a059ba7d5df95ce58c56f1 | /1422B.py | ac94bcd433dbd7783a06843167b94e16b6a978bf | [] | no_license | ldfdev/CodeForces-Div2-Problems | d932b09ee14a430fd0054d5b295f6016553be2b7 | d18824a4330a4593099d249496ae22f3f69d5f44 | refs/heads/master | 2021-08-11T03:29:18.772870 | 2021-07-25T07:21:09 | 2021-07-29T20:09:43 | 72,371,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | def fetch_ops(*args):
args = sorted(*args)
ret, L = 0, len(args)
for i in range((L + 1) // 2):
ret += args[L - 1 - i] - args[i]
return ret
def solve():
n, m = [int(x) for x in input().strip().split()]
matrix = []
cost = 0
for r in range(n):
matrix.append([int(x) for x in... | [
"ldf.develop@gmail.com"
] | ldf.develop@gmail.com |
3030777364f05eed42a2cc1bf28fd2307d8287f3 | 4a230737626c0cadfc5326315d036bf8453ef953 | /paiza/paiza_06/paiza_06_012_001.py | 6bdadd937eb22f6ae6383b7e361b131b1f33be1a | [] | no_license | reinaaa05/python | 0037a40b588b6954ea5d5b0ff45df98c1522f865 | 2d9e2b7388c4a19a0389aa6cb532774271bd27b0 | refs/heads/master | 2023-04-21T23:39:20.450914 | 2021-05-12T07:27:47 | 2021-05-12T07:27:47 | 340,906,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | # 2次元リストで画像を表示する
# 画像用リスト
players_img = [
"https://paiza-webapp.s3.amazonaws.com/files/learning/rpg/Empty.png",
"https://paiza-webapp.s3.amazonaws.com/files/learning/rpg/Dragon.png",
"https://paiza-webapp.s3.amazonaws.com/files/learning/rpg/Crystal.png",
"https://paiza-webapp.s3.amazonaws.com/files/lea... | [
"Reinaaa0555@gmail.com"
] | Reinaaa0555@gmail.com |
d5aaf9f1c930d58670fbbec5d7d5ef099f5ef7be | 96a34a048c783a75736bf0ec775df22142f9ee53 | /services/director-v2/tests/unit/test_modules_dynamic_sidecar_docker_service_specs_sidecar.py | 89c1c40c4ba598d6e0266d1031bf53f92aac522a | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 2,041 | py | # pylint: disable=redefined-outer-name
# pylint: disable=unused-argument
# pylint: disable=unused-variable
from typing import Any
import pytest
from simcore_service_director_v2.core.settings import AppSettings
from simcore_service_director_v2.models.dynamic_services_scheduler import SchedulerData
from simcore_service... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
040d6e445d45f583c6dd6130f7337cc1d7b61554 | 4303f687cec02deee3328f9c2b271ac8c673bd2d | /repo_scraper/git.py | c93ee6a21679e131bd05fc1b023395b3e34cb559 | [
"MIT"
] | permissive | pombredanne/repo-scraper | d7f9938afd5f8b436810cbbdc21051634731166b | ad7f0f6a9dda43d3b7b8e40377ea7fd151ea1396 | refs/heads/master | 2020-12-11T01:58:06.552329 | 2015-11-20T22:23:27 | 2015-11-20T22:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | import subprocess
import re
def list_commits():
'''Returns a list with all commit hashes'''
p = subprocess.Popen(['git', 'log', '--pretty=format:%H'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
out, err = p.communicate()
return out.replace('"', '').s... | [
"edu.blancas@gmail.com"
] | edu.blancas@gmail.com |
49096cd84467e7712c5bf08f75d2281b82526ec3 | 54b31b705d88e21bc0b23aabe1df15ca13a07de2 | /bayespy/inference/vmp/nodes/ml.py | fda0753545cdcf6df9a540d7303fd05a841f3c4f | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"AFL-3.0",
"GPL-1.0-or-later",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bayespy/bayespy | 307ef4c51d511e14d4693cce9929dda37124d11d | 5fe58f7160ebc3a9df7f9e96e50d2bd47837794a | refs/heads/develop | 2023-08-18T21:35:27.744022 | 2023-05-25T08:16:36 | 2023-05-25T08:16:36 | 5,568,322 | 655 | 164 | MIT | 2023-08-15T09:31:55 | 2012-08-27T08:10:20 | Python | UTF-8 | Python | false | false | 5,885 | py | ################################################################################
# Copyright (C) 2016 Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
import numpy as np
from .node import Moments
from .deterministic impor... | [
"jaakko.luttinen@iki.fi"
] | jaakko.luttinen@iki.fi |
9b3b766b1b7761c837891a8250d5aee360a7098a | 52be02c1ddf1610356d4818a5fd06e8d9ee98a73 | /algorithms/gps/agent/ABB/agent_abb.py | 0a3e00477105811cfa8967d1fb5d860c69deb4fc | [] | no_license | DengYuelin/multiple_assembly_old | f32e34a2e6633c99639489fb02b2e28edb1db180 | 696c55de23bb217b4471324bf3c3246a1bfcd5d8 | refs/heads/master | 2020-12-22T07:12:06.749844 | 2020-02-03T18:27:39 | 2020-02-03T18:27:39 | 236,664,915 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,669 | py | # -*- coding: utf-8 -*-
"""
# @Time : 23/07/19 2:21 PM
# @Author : ZHIMIN HOU
# @FileName: agent_abb.py
# @Software: PyCharm
# @Github : https://github.com/hzm2016
"""
import copy
import time
import numpy as np
from baselines.deepq.assembly.Env_robot_control import env_search_control
from gps.agent.agent impor... | [
"2539722953@qq.com"
] | 2539722953@qq.com |
e4480ff563dc0171e70fc1d2c12dc4e1adb96a6b | f6aac61a48a87743be9c40fecdc24344bae4d263 | /scripts/model/motherlode_ingest.py | b093b1befe14e052cb2fbcb3dd92239738c15b5c | [
"MIT"
] | permissive | akrherz/iem | 8714d99b371c8818f7cdde73dd24639e9fc7d42b | 178015584b7fb5b585f65be6013eaf16fb6db0c7 | refs/heads/main | 2023-08-19T02:58:24.507782 | 2023-08-18T12:08:31 | 2023-08-18T12:08:31 | 4,253,774 | 118 | 74 | MIT | 2023-09-14T18:28:41 | 2012-05-07T20:32:59 | Python | UTF-8 | Python | false | false | 5,632 | py | """
Mine grid point extracted values for our good and the good of the IEM
Use Unidata's motherlode server :)
"""
import datetime
import sys
from io import StringIO
import pandas as pd
import pytz
import requests
from pyiem.network import Table as NetworkTable
from pyiem.util import get_dbconn, logger
LOG = logger(... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
91378c01a224ec420d762e132a96cabf98d8b9be | dd3f5a712dbab0d3c4f4526c64c08ba710f78b81 | /tools/testframe/unittestut/t01test.py | df306922dd810adc19acdbda7dc0274bd8fd4803 | [] | no_license | nameusea/pyGreat | 3988ebcce3f80a7e458a20f9b2e3ccba368efcf8 | dde8b6a1348620ffd3b2d65db3d5b4331e5c78be | refs/heads/master | 2023-04-25T09:02:32.831423 | 2021-05-17T11:31:22 | 2021-05-17T11:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | # #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2020/11/30 5:15 下午
# @Author : 百变金刚
# @Content : test frame unittest learn
import unittest
class TestStringMethods(unittest.TestCase):
def setUp(self) -> None:
print('Test begin')
def tearDown(self) -> None:
print('Test over')
... | [
"darcyzhang@DarcydeMacBook-Air.local"
] | darcyzhang@DarcydeMacBook-Air.local |
70e6b1c3425993c42c096a80b9fd07d842211e66 | 3367451615f082b21a9f65c0f3cf833b269082c0 | /Stripes/HadSST4/stripes_ensemble_longitude.py | a0be9b276587621bcabd689b55413039092f582c | [] | no_license | philip-brohan/Posters | dd20eb399f559b6c205c300f96d95d0f13c52808 | d030a926ea1163e7078b2c468dfca22866552f50 | refs/heads/master | 2022-10-16T01:08:39.589886 | 2022-09-25T16:41:08 | 2022-09-25T16:41:08 | 91,101,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | #!/usr/bin/env python
# Make a poster showing HadSST4 monthly temperatures.
# Inspired by the climate stripes popularised by Ed Hawkins.
import os
import iris
import numpy
import datetime
import matplotlib
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figur... | [
"philip@brohan.org"
] | philip@brohan.org |
eb56edd675e5785e638d198ac3dc0430caa87d0a | 99259216f11b15ec60446b4a141b3592a35560ce | /wex-python-api/ibmwex/models/collection_params_default_output.py | edd8b7c053c0b2f337779d2b6394393acbf9094d | [] | no_license | adam725417/Walsin | 296ba868f0837077abff93e4f236c6ee50917c06 | 7fbefb9bb5064dabccf4a7e2bf49d2a43e0f66e9 | refs/heads/master | 2020-04-12T14:14:07.607675 | 2019-03-05T01:54:03 | 2019-03-05T01:54:03 | 162,546,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,530 | py | # coding: utf-8
"""
WEX REST APIs
Authentication methods - Basic Auth - JSON Web Token - [POST /api/v1/usermgmt/login](#!/User/signinUser) - [POST /api/v1/usermgmt/logout](#!/User/doLogout) - Python client sample [Download](/docs/wex-python-api.zip)
OpenAPI spec version: 12.0.2.417
Generate... | [
"adamtp_chen@walsin.com"
] | adamtp_chen@walsin.com |
0805b20ec7eab85badab608c32e4db586b255782 | 71946cf7e285a74b087f316170fe1f3dbb8d0247 | /nscms/contrib/newsletter/views.py | 4b193f3bb7c3eed634764c1b21d02bdfcd95596e | [] | no_license | mauler/nscms | 8964e8113351676dc5ebf1d7ecb0622c5c434640 | 5795f568880c7b11f12291d7d9e2581f0d1cd46d | refs/heads/master | 2020-06-06T09:19:16.946139 | 2015-02-27T01:21:12 | 2015-02-27T01:21:12 | 2,143,897 | 7 | 1 | null | 2018-03-05T17:25:23 | 2011-08-02T17:20:10 | Python | UTF-8 | Python | false | false | 267 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from django.http import HttpResponse
from .models import Subscription
def optin(request):
if 'email' in request.GET:
Subscription.objects.get_or_create(email=request.GET['email'])
return HttpResponse()
| [
"proberto.macedo@gmail.com"
] | proberto.macedo@gmail.com |
188462be01d6321219d9708d631c4db085dea10e | eaa833ebfafcdefb1f100a960c588e26efffcbe5 | /Dispatcher/api_gateway/express/handlers/apis/config.py | a9340d476f3aa511fd2e916ca7463b5fd753c16e | [
"MIT"
] | permissive | cash2one/Logistics | 61224f204af183f7ca5b806ef1d64f213ba53e5f | a7c9567975b5372b2edabddb0fec8d73bc01c3dc | refs/heads/master | 2021-01-21T10:33:52.088684 | 2017-01-12T08:07:42 | 2017-01-12T08:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # coding=utf-8
from tornado.httpclient import AsyncHTTPClient
async_cli = AsyncHTTPClient()
timeouts = {
"connect_timeout": 0.5,
"request_timeout": 3
}
xls_create_expr_timeouts = {
"connect_timeout": 3,
"request_timeout": 30
}
wxpay_timeouts = {
'connect_timeout': 5,
'request_timeout': 10
}... | [
"boisde1117@gmail.com"
] | boisde1117@gmail.com |
43abdd8ea14baa6c0d8b7907e22339873bfdd614 | 0d1c230795f0b8eeba06c7c3ea20f32e7e9badc3 | /cairis/mio/AssociationsContentHandler.py | 9aac93e05954576e2c3addcd476e054056ee35d5 | [
"Apache-2.0"
] | permissive | anukat2015/CAIRIS | e4029d8a4bdd191e00fb78b2cf549d7444b1d578 | b11f4eca824b84c8b0aa66b1767f61e5236e2483 | refs/heads/master | 2021-01-17T09:24:00.778093 | 2016-03-22T21:56:50 | 2016-03-22T21:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,463 | 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... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
5adec510588b408e819e6dd2d44ea7fe4749a3f1 | 50b5361049d08b6ea25e3b5a203b6cd9dd56e4ce | /AudicClaverieStatInterface.py | 61078d9a9c01d428b5a26233e8b56ffc23d7e0b1 | [] | no_license | albertwcheng/SplidarExpressionProcessingScript | bfbfaa83b36b374f645f3a6fc3d383a27d3e45a9 | 4ce9ec5200731bce155a61b3be9393ac76c39d51 | refs/heads/master | 2016-09-03T06:32:29.608655 | 2011-02-07T03:47:33 | 2011-02-07T03:47:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py | #!/usr/bin/python
'''
Copyright 2010 Wu Albert Cheng <albertwcheng@gmail.com>
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 us... | [
"albertwcheng@gmail.com"
] | albertwcheng@gmail.com |
fc146c8c52c21c9f663bca433d5314029867ebd5 | 80332f606982a28b6d12c7c63d1d64e18ceb01e7 | /neodroid/environments/python_environment/__init__.py | d8f1151351f9f1cd46a75c28b5acab035a519167 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sintefneodroid/neo | 34bfe39ed90fbcf0a851c9c7951021b8b267cd24 | 5405769fdb5d657a2b5ad1c4c4e749d50b90dfa5 | refs/heads/master | 2022-09-21T00:36:32.875394 | 2022-06-30T16:00:44 | 2022-06-30T16:00:44 | 98,278,558 | 8 | 3 | Apache-2.0 | 2023-09-13T15:51:32 | 2017-07-25T07:38:35 | Python | UTF-8 | Python | false | false | 152 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 16/10/2019
"""
| [
"mrnaah@gmail.com"
] | mrnaah@gmail.com |
647d0e94aa7709b4558e5a4c5ae424e07d59e133 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_posts.py | 700af77447c8cd52cb2fc92ab62dc76b71c1ede5 | [
"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 | 214 | py |
#calss header
class _POSTS():
def __init__(self,):
self.name = "POSTS"
self.definitions = post
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['post']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f221ac4631eeabf730d92e207bfeb36b37b39484 | 73b71fcfc8cf13871b63ce64c3dd8fc7dd8f047a | /chap 9/neko_pzl.py | 85470172a46800f0d09dd8f5d460ca9f2803a779 | [] | no_license | kwr0113/Game_Python | 6a1858a36e6927f6731c5976ef350887eaa69fab | b1953783a59a0d62337d6438758dabe6727321ea | refs/heads/master | 2023-07-10T03:08:22.312913 | 2021-08-22T12:58:18 | 2021-08-22T12:58:18 | 397,598,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,133 | py | import tkinter
import random
index = 0
timer = 0
score = 0
hisc = 0
difficulty = 0
tsugi = 0
mouse_x = 0
mouse_y = 0
cursor_x = 0
cursor_y = 0
mouse_c = 0
def mouse_move(e):
global mouse_x, mouse_y
mouse_x = e.x
mouse_y = e.y
def mouse_press(e):
global mouse_c
mouse_c = 1
neko = []
check = [... | [
"kwr0113@gmail.com"
] | kwr0113@gmail.com |
d74ec5285bdea9629d6aa8aec1294563dd021997 | ec92e76a493df473084dc93af9d14bcfff1bb282 | /test/scaling/vcenter_vn_scaling.py | efae16cc5692994abc628209cd22b12eaabfb9da | [
"Apache-2.0"
] | permissive | tungstenfabric/tf-vcenter-plugin | a0e29f63a4dec77fb47f0f51689d2f3822410a1e | 9cd908ce1ac025cf0fd5dd26fe986892b268953c | refs/heads/master | 2022-12-15T22:11:31.273818 | 2022-09-29T17:06:48 | 2022-09-29T17:11:49 | 237,745,003 | 0 | 1 | Apache-2.0 | 2022-12-06T00:34:23 | 2020-02-02T09:06:40 | Java | UTF-8 | Python | false | false | 5,270 | py | # Script to create and delete multiple VNs in vcenter
# eg: python vcenter_vn_scaling.py create|delete
# adjust the cidr, mask and count iterator in the file to set number
# of VNs.
# create number of VNs in vcenter
from pyVim import connect
from pyVmomi import vim
from fabfile.testbeds import testbed
import sys, time... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
df0ba183783c7f6ff7ba997c53f955ad3c058c9b | c25f5592a9dbdc33f6e1920ec6f9a695bf597e2a | /cryptostore/util.py | c962463a937316de6009209a6546246379760a8a | [
"Python-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | fagan2888/cryptostore | e1ac3232aa890853e8db7e8af3097051a1a483d1 | 82ae1ff0c0d01149d070e526205fd24f5c1a6ea8 | refs/heads/master | 2021-04-22T23:44:40.951221 | 2020-03-17T23:52:30 | 2020-03-17T23:52:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | '''
Copyright (C) 2018-2020 Bryant Moscon - bmoscon@gmail.com
Please see the LICENSE file for the terms and conditions
associated with this software.
'''
from datetime import timedelta, datetime as dt
def get_time_interval(ts: float, interval: str, multiplier=1):
timestamp = dt.utcfromtimestamp(ts)
start_in... | [
"bmoscon@gmail.com"
] | bmoscon@gmail.com |
9cf4f6acdc74f36f656a9088d64128ac2a2100a3 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/mpmath-0.19-py27_0/lib/python2.7/site-packages/mpmath/tests/test_matrices.py | c1bbfaf86c20c33e6a6e332c93d0e57c469c40ff | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 5,672 | py | from mpmath import *
def test_matrix_basic():
A1 = matrix(3)
for i in range(3):
A1[i,i] = 1
assert A1 == eye(3)
assert A1 == matrix(A1)
A2 = matrix(3, 2)
assert not A2._matrix__data
A3 = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
assert list(A3) == list(range(1, 10))
A3[1,1] ... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
572343b27fc144f9812694213249a3b522ff1f48 | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /Array/Introduction/Find Numbers with Even Number of Digits/by_map_and_math.py | ca78da63fa5cdf5972e505c61dc1d9ce95b536ff | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | '''
Description:
Given an array nums of integers, return how many of them contain an even number of digits.
Example 1:
Input: nums = [12,345,2,6,7896]
Output: 2
Explanation:
12 contains 2 digits (even number of digits).
345 contains 3 digits (odd number of digits).
2 contains 1 digit (odd number of digits).
6... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
a2eed7c9259450814c6e08b4250edbda62456c45 | fa89836a6759151896a07650747462b8cda40610 | /mse/documents/views.py | cb1f394de7fae24edf33de94a898cab9ac895932 | [] | no_license | DigitalGizmo/mse21 | 334813bfebec9b78f0541744e54f218f9cc6936b | 89f1c0f9c05cefaaa8c703732ee4e4642aecd3c9 | refs/heads/master | 2023-07-09T13:29:13.903900 | 2018-03-26T19:26:09 | 2018-03-26T19:26:09 | 126,878,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,479 | py | from django.shortcuts import render, get_object_or_404
#from django.template import Context, loader
from django.views import generic
from django.conf import settings
from documents.models import Document
from core.views import MenuInfoMixin, CollectionSearchMixin, ItemDetailMixin
class DocumentListView(CollectionSearc... | [
"donpublic@digitalgizmo.com"
] | donpublic@digitalgizmo.com |
f94911553675cd706f2ba7fcd7bc21ef2b023364 | d3cd8c79674aeae4132e0ab5cd03dad5fa83c48f | /processthesis.py | 77344aa4412da0e3a0c3b68806157fbc46a74bf0 | [] | no_license | corneliuhoffman/Hurwitzspaces | 435eee8530b10ff9b5dff338c9ebe302f3b5dabf | 2aba9208de4330ef70277b0ea36bf0cfd2ac81e3 | refs/heads/master | 2020-09-09T10:35:11.435608 | 2017-06-16T15:45:12 | 2017-06-16T15:45:12 | 94,443,030 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | import csv
from ast import literal_eval as make_tuple
def clean(x):
y= x[1:-1].split(",")
z = [int(a.strip(' \t\n\r')[:-1]) for a in y]
return sorted(z)
with open('Peshawa.csv', 'rb') as csvfile:
spamreader = csv.reader(csvfile, delimiter=',', quotechar='"')
l= [row for row in spamreader]
from itertoo... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
d5b0939946ebdcdd70ff2ab9326d031ac7bea470 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/falcon/2019/8/test_example.py | cbcf63818444d106919131529ce3b8533f92748d | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 7,220 | py | import json
import logging
import uuid
from wsgiref import simple_server
import requests
import falcon
class StorageEngine:
def get_things(self, marker, limit):
return [{'id': str(uuid.uuid4()), 'color': 'green'}]
def add_thing(self, thing):
thing['id'] = str(uuid.uuid4())
return t... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
fd213b8c7e3f650d733923991fdf8ae562a43460 | c94f888541c0c430331110818ed7f3d6b27b788a | /cas/python/setup.py | 88cc18f1c35860c66f249325153b50bcbe7427e5 | [
"Apache-2.0",
"MIT"
] | permissive | alipay/antchain-openapi-prod-sdk | 48534eb78878bd708a0c05f2fe280ba9c41d09ad | 5269b1f55f1fc19cf0584dc3ceea821d3f8f8632 | refs/heads/master | 2023-09-03T07:12:04.166131 | 2023-09-01T08:56:15 | 2023-09-01T08:56:15 | 275,521,177 | 9 | 10 | MIT | 2021-03-25T02:35:20 | 2020-06-28T06:22:14 | PHP | UTF-8 | Python | false | false | 2,488 | py | # -*- coding: utf-8 -*-
"""
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
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
e9a035550a977013eff3346cff3754af62bce179 | a1c8b734ab868900163272bf56c07e8468567220 | /aprendizaje/models.py | b7a9dd366fa8ab47a947d9325c0934d8fb34b036 | [] | no_license | ErickMurillo/cursos_agua_cfca27 | 196ac884f33fd30300ed0069a2b11f0549b572f5 | 15dd87ea350fadab840d3efd6945734894b0c70d | refs/heads/master | 2021-01-16T09:05:54.001249 | 2020-03-02T17:19:57 | 2020-03-02T17:19:57 | 243,053,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,382 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.encoding import python_2_unicode_compatible
from django.db import models
from .fields import OrderField
from django.template.defaultfilters import slugify
from django.contrib.auth.models import User
# Create your models here.
@python_2_... | [
"erickmurillo22@gmail.com"
] | erickmurillo22@gmail.com |
cad6e152f190f2f95359688ba8bf05b57abdf8db | 18ca2e0f98b98941ff9d9e098e0be89166c8b87c | /Abp/Cp11/c11_1_1_mapIt.py | 54f5793553d5ebff1f0064a30d610873fd536129 | [] | no_license | masa-k0101/Self-Study_python | f20526a9cd9914c9906059678554285bfda0c932 | 72b364ad4da8485a201ebdaaa430fd2e95681b0a | refs/heads/master | 2023-03-07T07:38:27.559606 | 2021-02-22T16:24:47 | 2021-02-22T16:24:47 | 263,381,292 | 1 | 0 | null | 2020-06-09T17:32:06 | 2020-05-12T15:47:48 | Python | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8 -*-
#! python3
# mapIt.py - コマンドラインやクリップボードに指定した住所の地図を開く
import webbrowser, sys
if len(sys.argv) > 1:
# コマンドラインから住所を取得する
address = ' '.join(sys.argv[1:])
# TODO: クリップボードから住所を取得する
| [
"noreply@github.com"
] | masa-k0101.noreply@github.com |
33f305f7e55a69496a959dc5031f05697f2813bc | 8c0b47b471a890fd9ae81c967e3773ce1c4c0243 | /Python_projects/flask_projects/unicorn_project/resources/tests.py | 57ec630de6daa08c796c9def9e32cd499fe04180 | [] | no_license | sdtimothy8/Coding | edfcc717abeeea9f7da250adee68d5fae1a87422 | 7f801a569a396a27371d0831752595877c224a6b | refs/heads/master | 2022-09-03T01:57:53.721312 | 2022-07-22T02:39:45 | 2022-07-22T02:39:45 | 89,654,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | from django.test import TestCase
import json
import mock
# Create your tests here.
class ResourcesListTests(TestCase):
"""
test get resource info
"""
def test_get_ps(self):
"""
test get ps info
:return:
"""
response = self.client.get("/resources/ps/")
se... | [
"sdtimothy8@gmail.com"
] | sdtimothy8@gmail.com |
643297210fe979cd0b66c8b993701723d20fab2a | 1d405c9f539ba6ce2143668c1155ba03b32031b7 | /disturbance/migrations/0284_auto_20220622_0750.py | 4eab8891f1d53e8d725fabea6a1ff42971368c84 | [
"Apache-2.0"
] | permissive | dbca-wa/disturbance | c031081f8d96351c1b4835e4c4fa8ca199379d01 | ffb5ee131fc6b3262188be6b6b874761420441d1 | refs/heads/master | 2023-09-04T07:11:23.554541 | 2023-05-31T05:47:19 | 2023-05-31T05:47:19 | 237,150,092 | 0 | 10 | NOASSERTION | 2023-09-14T08:20:18 | 2020-01-30T06:05:26 | Python | UTF-8 | Python | false | false | 1,129 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2022-06-21 23:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('disturbance', '0283_auto_20220609_0927'),
]
operations = [
migrations.Alte... | [
"katsufumi.shibata@dbca.wa.gov.au"
] | katsufumi.shibata@dbca.wa.gov.au |
d1a2980ef229bb023160ece6a3f00f8ee8a74f8e | 7eebbfaee45fdc57c4fc6ba32c87c35be1e62b14 | /airbyte-integrations/connectors/source-scaffold-source-http/setup.py | 635cfd0c8d7dd3274e1ac00c0d2cb7ee0052a3d2 | [
"MIT",
"Elastic-2.0"
] | permissive | Velocity-Engineering/airbyte | b6e1fcead5b9fd7c74d50b9f27118654604dc8e0 | 802a8184cdd11c1eb905a54ed07c8732b0c0b807 | refs/heads/master | 2023-07-31T15:16:27.644737 | 2021-09-28T08:43:51 | 2021-09-28T08:43:51 | 370,730,633 | 0 | 1 | MIT | 2021-06-08T05:58:44 | 2021-05-25T14:55:43 | Java | UTF-8 | Python | false | false | 641 | py | #
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#
from setuptools import find_packages, setup
MAIN_REQUIREMENTS = [
"airbyte-cdk",
]
TEST_REQUIREMENTS = [
"pytest~=6.1",
"pytest-mock~=3.6.1",
"source-acceptance-test",
]
setup(
name="source_scaffold_source_http",
description="Sour... | [
"noreply@github.com"
] | Velocity-Engineering.noreply@github.com |
3d441fabaaf4bfae7d03bfda37ccf019e342d301 | 1456f1da1144399e5d8a955ad53325c7e4181407 | /dataEx/graph2.py | 7ea4cbb8030625b607aaca52962698a0a8730e62 | [] | no_license | GJM-Kinger/soft5 | 30b72e695720f0291bfdad67bc04cb0a108db7e5 | f7863870aa4657187c6b247ef9656d36414234c2 | refs/heads/master | 2022-12-29T15:48:21.389555 | 2020-10-17T08:52:22 | 2020-10-17T08:52:22 | 305,057,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | # @todo
# @Author: gou
# @Time: 2020/9/24 20:33
# @version: 1.0
import sys
from pyqtgraph.Qt import QtCore, QtGui
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QMessageBox
from PyQt5.QtCore import QTimer
from pyqtgraph_pyqt import Ui_MainWindow
from PyQt5.QtGui import QIcon
import pyqtgraph as pg
import numpy... | [
"you@example.com"
] | you@example.com |
88705eed80a0fbcf7f5f90af5e1e6d9fb1414692 | 0e7b61465e8a50dcf5cb0cfec8aaf4477410f455 | /plan/testsuite/core.py | 4d35e69834ebe655afb8cdbe3eaa1d9c0203aec3 | [
"BSD-3-Clause"
] | permissive | sandlbn/plan | acc7efa5fcf838611530914508b01356fba45590 | c9f7ffc6b8eb26dbb383845be2224ddd01a8449c | refs/heads/master | 2021-01-23T20:12:08.354716 | 2014-06-12T13:17:13 | 2014-06-12T13:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | # -*- coding: utf-8 -*-
"""
plan.testsuite.core
~~~~~~~~~~~~~~~~~~~
Tests the core classes for Plan.
:copyright: (c) 2014 by Shipeng Feng.
:license: BSD, see LICENSE for more details.
"""
import sys
import unittest
from plan.testsuite import BaseTestCase
from plan.core import Plan
class PlanTe... | [
"fsp261@gmail.com"
] | fsp261@gmail.com |
203a64bad513c0927d90e360440fb4542c4e44cc | 8e09b30344b59610a0e0d8986ca1c452775233a6 | /word2verb_aspect.py | fe28e1f2521c9387a5791575dcb631a2167e3fc8 | [] | no_license | Koziev/word2verb_aspect | f0d6f589dd33c00500bb7c2dd0cd2cac24913515 | 0af52fe78284ee201c6f763be9136d851cb769da | refs/heads/master | 2020-12-24T18:55:01.305553 | 2016-05-01T05:57:50 | 2016-05-01T05:57:50 | 57,536,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,134 | py | # -*- coding: utf-8 -*-
'''
Использование RNN/LSTM для классификации цепочек символов как сов_гл/несов_гл/неопр
30.04.2016 первая реализация на основе кода модели word_is_noun
'''
from __future__ import print_function
from keras.models import Sequential
from keras.layers.core import Activation, Dense, Masking
from ker... | [
"mentalcomputing@gmail.com"
] | mentalcomputing@gmail.com |
94a7d0f56e6ca812e996dd7edd212b982650a18e | 9b7c150aa683793ce02d88d90c08b3a63257aa33 | /Bridge/example.py | b757930e07412d344c2b34082dfca05c1f6992b8 | [] | no_license | anantkaushik/Design_Patterns | 2b431ef39e830be5328f1991a6fec14f23d95656 | 50898ed53b589c2e6dac8ffceb4db1fdd0fa8046 | refs/heads/master | 2023-04-01T21:56:40.739982 | 2021-04-04T18:20:07 | 2021-04-04T18:20:07 | 265,890,146 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | from abc import ABC, abstractmethod
class Abstraction:
"""
The Abstraction defines the interface for the "control" part of the two
class hierarchies. It maintains a reference to an object of the
Implementation hierarchy and delegates all of the real work to this object.
"""
def __init__(self,... | [
"anant.kaushik2@gmail.com"
] | anant.kaushik2@gmail.com |
f9deb199853fab0bee61d87dfda61baf1d0d80ab | beb43528a2f3e83c715d8f4cb0b31779154c8e6d | /qmla/process_string_to_matrix.py | 7b4dd5d32296d705e5cf194995f117d4e85f7376 | [
"MIT"
] | permissive | stjordanis/QMLA | ed90b8ca6ded3cd2d05592e792524de9a8d6a3d7 | f9e0f920245a7f309818beb551b37e3a04bcbe51 | refs/heads/master | 2023-04-17T07:57:15.766037 | 2021-02-22T22:44:27 | 2021-02-22T22:44:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | import numpy as np
from qmla import construct_models
import qmla.string_processing_functions
import qmla.logging
__all__ = [
'string_processing_functions',
'process_basic_operator'
]
string_processing_functions = {
'nv': qmla.string_processing_functions.process_n_qubit_NV_centre_spin,
'pauliSet': qml... | [
"flynnbr@tcd.ie"
] | flynnbr@tcd.ie |
012334ca646503f541e7ce38e8cf03922b4c400a | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902Combine/87-tideGauge.py | b0f455027f378ae8f31f3c4fef6552d9e3c1f805 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 17 11:28:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
# dir_name = 'F:\\01_erainterim\\01_er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
76170cdba0fd66c8c6626025cf04c667831acbf8 | e824262c199fe6193736dab07832adb3683ef21d | /webserver5.py | f31840a397f485ab7c90fe119a5a8d4945a32521 | [] | no_license | methane/fastest-webserver | ae822623bf121a7c44e8c95af5c7c20541043a27 | 1b9d8c04dce327a1c182d370b0ece43febb92ec8 | refs/heads/master | 2020-06-05T04:52:26.881193 | 2013-10-03T12:54:33 | 2013-10-03T12:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import socket
import select
read_waits = {}
write_waits = {}
def wait_read(con, callback):
read_waits[con.fileno()] = callback
def wait_write(con, callback):
write_waits[con.fileno()] = callback
def evloop():
while 1:
rs, ws, xs = select.select(read_waits.keys(), write_waits.keys(), [])
... | [
"inada-n@klab.com"
] | inada-n@klab.com |
6255dd75619196f023cf4e9103c1e46b21ece405 | b3f40953c1876f5916a2dbd2d7b9903a635e512e | /Dojo_Python/Django_Level_2/imaginary_friends/imaginary_friends/settings.py | 187429582a62fd2e645846a3b0e31045ad97d334 | [] | no_license | rudietuesdays/dojo_python | c9d9907096995d6e247b6b7732a908ece246b466 | 5e1fd46c45c90dfcd046f0fe922c64f96625a6c0 | refs/heads/master | 2021-01-11T13:28:56.029473 | 2017-03-07T02:49:48 | 2017-03-07T02:49:48 | 81,473,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | """
Django settings for imaginary_friends project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
... | [
"amanda.gaines@gmail.com"
] | amanda.gaines@gmail.com |
dc6a5ada19425a4237967b54159e5ece82767862 | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project/.history/main_20211116163838.py | a8355196c737d26d4f3429710e6822f916b7220f | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 2,693 | py | import product as p
def choose():
action = 0
while action >= 0:
if action == 1:
p.AddProduct()
print("--------------------------------")
elif action == 2:
p.DeleteProduct()
elif action == 3:
p.UpdateProduct()
elif action == 4:
... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
6a4f1ff3ed84d4d71e2e86a8a81c0e2478137b92 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/VBSjjlnu/Full2017v7/conf_test_wjetsHT/samples.py | 1e8002f007678b4b56a8c04f041b3bcfe3a28128 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 6,614 | py | import os
import subprocess
import string
from LatinoAnalysis.Tools.commonTools import *
def nanoGetSampleFiles(inputDir, sample):
return getSampleFiles(inputDir, sample, True, 'nanoLatino_')
def CombineBaseW(samples, proc, samplelist):
newbaseW = getBaseWnAOD(directory_bkg, 'Fall2017_102X_nAODv7_Full2017v7', s... | [
"davide.valsecchi@cern.ch"
] | davide.valsecchi@cern.ch |
a0f62e617ab2a7c16601252c54031916c072ac67 | fe64cc9f8f224ed15a514e3a2a5b8635e7d45e6a | /exceptiondemo.py | 372137bcd78e6215a0dd0690262aadebe0cddb54 | [] | no_license | viralsir/python_saket | c99273545c208d866014830871e961fdc6dc4ce2 | 9db2aeee34438220c2536db6ea01ba8621ccceae | refs/heads/master | 2023-08-18T11:54:34.066298 | 2021-10-16T12:43:00 | 2021-10-16T12:43:00 | 415,494,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | start=True
while start==True:
try:
number1=int(input("Enter No1:"))
number2=int(input("Enter No2:"))
ans=number1/number2
print("ans:",number1/number2)
start=False
except ZeroDivisionError:
print("zero is invalid as a second no")
except ValueError :
p... | [
"viralsir2018@gmail.com"
] | viralsir2018@gmail.com |
b25407e007b0b7c83f662d14763407b7391ed94d | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/third_party/blink/web_tests/external/wpt/referrer-policy/generic/tools/common_paths.py | 1066fb5bb238ed5dfd57bc5ba0e98af624bfd9b4 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"W3C",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-w3c-03-bsd-license",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"Lice... | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | Python | false | false | 2,054 | py | from __future__ import print_function
import os, sys, json, re
script_directory = os.path.dirname(os.path.abspath(__file__))
generic_directory = os.path.abspath(os.path.join(script_directory, '..'))
template_directory = os.path.abspath(os.path.join(script_directory,
... | [
"csineneo@gmail.com"
] | csineneo@gmail.com |
d23faa0c0401b5e588488579a54a6fa49fd60a39 | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/primaires/perso/commandes/raedit/__init__.py | 57e1e7764128f31b74262f3136a7ad76c772f06d | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,483 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2010 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# l... | [
"kredh@free.fr"
] | kredh@free.fr |
595a7a5d21b4851a48fdfc4ec323288561b68ba0 | eb27f44089e4e00d5fc2a403cb5e2f722964bd86 | /code/backends/DataShuffler/src/server.py | cbea80b603ca157fdee650b400b4d1fc64b70cb0 | [] | no_license | aynstan/Rhinoceros | d39dcecde849d1b755d69a4428c7dfa387dcedf4 | c6925a102f55ba8b84ed5775cc6eca06d0cc5802 | refs/heads/master | 2020-07-14T20:20:28.715215 | 2019-04-21T14:50:40 | 2019-04-21T14:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | #coding:utf-8
import sys
import getopt
from camel.biz.application.corsrv import CoroutineApplication,setup,instance
from camel.fundamental.amqp import AmqpManager,AccessMode
class AdapterServer(CoroutineApplication):
def __init__(self):
CoroutineApplication.__init__(self)
def init(self):
Cor... | [
"24509826@qq.com"
] | 24509826@qq.com |
788f4a4e9e32d87e11722593317ce5a223e545a9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/1303.py | c5f576ea723a2f7b4f67149ba3a29be8872fc612 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | with open('A-large.in') as f:
with open('A.out', 'w') as out:
tests = f.readline()
testNum = 1
for line in f:
vals = line.split(" ")
max = vals[0]
cur = vals[1].strip()
total = 0
count = 0
need = 0
for chr in cur:
if total >= count:
total = total + int(chr)
else:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2c2676051aa2ec5e46008aae69a9d59450bcbd86 | 6f7ef265722d442c8ea782a2af6fb957a6b36865 | /core/registration/static/forms.py | f7fb17c3bb55bbdbb399edfb845e6480f26351f1 | [] | no_license | Marlburo/inventory | 751149a0085c8ec8ef82d81ca6e1edc79d4a293d | bb2aa99e41f532c35eda47a210a12be134ca62c0 | refs/heads/master | 2021-01-22T16:38:58.901807 | 2015-01-28T15:37:07 | 2015-01-28T15:37:07 | 33,836,752 | 1 | 0 | null | 2015-04-12T22:39:12 | 2015-04-12T22:39:10 | null | UTF-8 | Python | false | false | 1,446 | py | from django import forms
from django.forms import widgets
from core.registration.static.models import StaticReg
from core.utils import resolve_ip_type
from mozdns.forms import BaseForm
from mozdns.utils import ensure_label_domain
class StaticRegForm(BaseForm):
class Meta:
model = StaticReg
fields... | [
"uberj@onid.orst.edu"
] | uberj@onid.orst.edu |
c47f216bb7b2eb3a2544e2aef66db5851b86034f | dc67e70a303f265ee6cb4c1a2d61fe811053fb3d | /beginner/147/C.py | 9e06eaadb7c2ce625c1bff688c39827f639a550d | [] | no_license | cry999/AtCoder | d39ce22d49dfce805cb7bab9d1ff0dd21825823a | 879d0e43e3fac0aadc4d772dc57374ae72571fe6 | refs/heads/master | 2020-04-23T13:55:00.018156 | 2019-12-11T05:23:03 | 2019-12-11T05:23:03 | 171,214,066 | 0 | 0 | null | 2019-05-13T15:17:02 | 2019-02-18T04:24:01 | Python | UTF-8 | Python | false | false | 1,256 | py | def honest_or_unkind_2(N: int, testimonies: dict)->int:
ans = 0
for i in range(1 << N):
honest_num = 0
for j in range(N):
if i & (1 << j) == 0:
continue
honest_num += 1
# 正直者の場合はその人の証言が全て正しいことをチェックする
for k, is_honest in testimonies... | [
"when.the.cry999@gmail.com"
] | when.the.cry999@gmail.com |
f4e848735955626615931fe1e3b1fcebd40dba5e | d2df591c50458f88b3ebef4e5f9c65fa8ba42688 | /Algorithm-Study/programmers/hash/2.py | f69c0230826015784713ac6e532aea0989f4a8cd | [] | no_license | JuHyang/today-I-learned | 16eba628b3e9e8c99cb3ca6bcdf1d49f9f496f94 | 6a262bc7a88612aa22fcb5119d4d182bacb22b49 | refs/heads/main | 2022-02-10T16:37:36.793196 | 2022-01-28T01:06:02 | 2022-01-28T01:06:02 | 222,265,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | def solution(phone_book):
answer = True
phone_book.sort()
print (phone_book)
return answer
phone_book = ["12123123123123123", "12232332", "12", "222222"]
solution (phone_book)
| [
"kkss2889@naver.com"
] | kkss2889@naver.com |
15b4581006a1a5d755444ba3c84b8f1ec2e0171c | 508b570c4ad20ca97aebac86aa12a090d03ba817 | /tv_server/read_buffer.py | 9b8fddf6455be92d8c20d3896c22eb911fdef9cd | [] | no_license | dsoprea/TvServer | 0dcce431511d6b2693bb99818bc4a4b79277d973 | 5797e5c3c28c1e0fcebfedfa2e795b81e6f3cc89 | refs/heads/master | 2016-09-05T17:05:49.790256 | 2014-05-23T07:04:18 | 2014-05-23T07:08:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | import logging
from threading import RLock
from struct import unpack
from tv_server.backend.protocol import get_message_cls_by_index
class ReadBuffer(object):
"""This class receives incoming data, and stores it in a list of extents
(also referred to as buffers). It allows us to leisurely pop off sequences ... | [
"myselfasunder@gmail.com"
] | myselfasunder@gmail.com |
cbd85f12272409dfae67a8740d3c96785eea254a | f09155ed20774a4fbf2a117ae43b38223642e9d8 | /businessworldenv/bin/google_network_setup | 8fce2aee397e8df59b60d17ca761cf70c23d46ba | [] | no_license | krsumit/bwn | eeebbd8cf21cf7e8cc3ba7b180605d664e655876 | 17d894760099640d44ec70ecaf5b15c764efd658 | refs/heads/master | 2023-01-04T14:06:03.426185 | 2019-10-01T04:17:20 | 2019-10-01T04:17:20 | 212,008,994 | 0 | 0 | null | 2022-12-26T20:15:56 | 2019-10-01T03:58:29 | Python | UTF-8 | Python | false | false | 289 | #!/home/sumit/businessworld/businessworldenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from google_compute_engine.network_setup.network_setup import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kr.sumit89@gmail.com"
] | kr.sumit89@gmail.com | |
e03c9d1a0693d7322b081ab3b4a46cef45d88713 | da285129f2549d895c16736a1a694bbbfe19f813 | /setup.py | a7333a9dca04d23a6378af700e875614f8a56366 | [] | no_license | larsks/zcam | 01a87d83153ada87e92f5de2a00d117a362afe0b | ddac2904082e9b2a7a2a02b2442114db91217866 | refs/heads/master | 2021-07-20T23:57:16.485662 | 2017-10-30T12:34:18 | 2017-10-30T12:34:18 | 105,022,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | from setuptools import setup, find_packages
setup(
name='zcam',
version='0.1',
author='Lars Kellogg-Stedman',
author_email='lars@oddbit.com',
url='https://github.com/larsks/zcam',
packages=find_packages(),
entry_points={
'console_scripts': [
'zcam-service-activity = zcam... | [
"lars@redhat.com"
] | lars@redhat.com |
00dbef85a49d7657be336b1eeb2af21cf3dc5ac9 | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/201-300/week 226/1743. Restore the Array From Adjacent Pairs/Restore the Array From Adjacent Pairs.py | d265e8366f3852d99dbdbd76912f0ebaac244386 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | #!/usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author: wangye(Wayne)
@license: Apache Licence
@file: Restore the Array From Adjacent Pairs.py
@time: 2021/01/31
@contact: wang121ye@hotmail.com
@site:
@software: PyCharm
# code is far away from bugs.
"""
from typing import *
import collections
class Soluti... | [
"905317742@qq.com"
] | 905317742@qq.com |
ebfb9a5ae32c0577b01f283dd785709e18925d99 | c8a9d66efb29a9a5d5a42b74c252eeb91f20e2f8 | /survae/tests/transforms/bijections/autoregressive/autoregressive_splines_2d.py | b6b6e49c300c1ff706f4a6499309e0c81a26557d | [
"MIT"
] | permissive | alisiahkoohi/survae_flows | 60ebfa86506f4139ce1fd9508e9c1e0dbdd1bdff | e1747b05524c7ab540a211ed360ab3e67bc3e96d | refs/heads/master | 2022-12-19T15:18:42.587276 | 2020-09-17T12:34:51 | 2020-09-17T12:34:51 | 290,247,391 | 1 | 0 | MIT | 2020-08-25T15:08:02 | 2020-08-25T15:08:01 | null | UTF-8 | Python | false | false | 4,280 | py | import numpy as np
import torch
import torch.nn as nn
import torchtestcase
import unittest
from survae.transforms.bijections.autoregressive import *
from survae.nn.layers.autoregressive import SpatialMaskedConv2d, MaskedConv2d
from survae.nn.layers import ElementwiseParams, ElementwiseParams2d
from survae.tests.transfo... | [
"didrik.nielsen@gmail.com"
] | didrik.nielsen@gmail.com |
5801164201ffa4030c9b1f2633b1a309de8e4b73 | 196f7e3238f961fb5eba7a794f0b0c75d7c30ba1 | /Python笨办法2.7/34.py | 6271f52490b792f1abb601ce9705eb048797cbf1 | [] | no_license | Liaoyingjie/Pythonlearn | d0b1b95110017af7e063813660e52c61a6333575 | 8bca069f38a60719acac5aa39bd347f90ab0bfb1 | refs/heads/master | 2020-04-08T07:35:07.357487 | 2018-04-12T16:44:43 | 2018-04-12T16:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | #coding=utf-8
#animals = ['bear', 'tiger', 'penguin', 'zebra']
#bear = animals[0]
#
#上面是访问第一元素的方法
#程序员不能用这种方式思考问题,因为他们可以从列表的任何一个位置取出一个元素来。对程序员来说,上述的列表更像是一叠卡片。
#如果他们想要 tiger,就抓它出来,如果想要zeebra,也一样抓取出来。
#要随机地抓取列表里的内容,列表的每一个元素都应该有一个地址,或者一个 “index(索引)”,
#而最好的方式是使用以 0 开头的索引。
'''
@类的数字被称为“基数(cardinal number)”,它意味着你可以... | [
"godzoco@qq.com"
] | godzoco@qq.com |
a4d4948677a47f29a1dcf88965ad8838889b84b3 | 4860b5995a6d4754b7329b588b0f1994c7afc10e | /tools/skylark/py_env_runner.py | 2fe16e748bfd9653e263f0b4c2369b613d2712c5 | [
"BSD-3-Clause"
] | permissive | osrf/drake | b741c81d4fb7d955837a3eadae6105b8a7081dc2 | d3112221a2544ee74a79b45c6cfcb7fc18ea7b3a | refs/heads/master | 2022-10-22T23:54:42.565354 | 2018-02-13T22:07:26 | 2018-02-13T22:07:26 | 101,802,343 | 3 | 1 | null | 2017-12-22T17:26:43 | 2017-08-29T20:08:29 | C++ | UTF-8 | Python | false | false | 365 | py | #!/usr/bin/env python
"""
Wrapper Python script to ensure we can execute a C++ binary with access to
Python libraries using an environment established by Bazel.
"""
# TODO(eric.cousineau): See if there is a way to do this in pure C++, such
# that it is easier to debug.
import subprocess
import sys
assert len(sys.ar... | [
"eric.cousineau@tri.global"
] | eric.cousineau@tri.global |
00f53eda6e42122cdfa40ec8a93becf3365056b4 | ff81a9d7880f1b85a1dc19d5eba5ac72d7179c86 | /pychron/entry/tasks/simple_identifier/task.py | 88540060c0a38554711f310378a06533b4641ff4 | [
"Apache-2.0"
] | permissive | UManPychron/pychron | 2fb7e479a9f492423c0f458c70102c499e1062c4 | b84c9fd70072f9cbda30abe2c471e64fe3dd75d8 | refs/heads/develop | 2022-12-03T23:32:45.579326 | 2020-01-29T19:02:20 | 2020-01-29T19:02:20 | 36,100,637 | 0 | 0 | null | 2015-05-23T00:10:06 | 2015-05-23T00:10:05 | null | UTF-8 | Python | false | false | 1,733 | py | # ===============================================================================
# Copyright 2017 ross
#
# 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/LICE... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
bcf14aba853847b1b17c3a2cefafb495650d045e | 37a65bea51a851c54d7bdcaba6f749504aa70cfb | /aiC/基于成绩的专业推荐/grade.py | 0f11353ab4a49c7b3e5e1250f3c873559125a51e | [] | no_license | jiuxia66/REC2020 | 0bac1b0d54a1cc86ec43f1eae692fbc30699f126 | e33fca0e2826a6e04b0be593fdb3414587927b60 | refs/heads/master | 2023-04-17T05:02:12.372942 | 2020-10-11T09:33:09 | 2020-10-11T09:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | import pandas as pd
import json
import string
import os.path
import math
def getrecommendation(province,category,bl,rank,gradelist,ability=False):
m=bl['Major'].tolist()
majors=[]
for major in m:
if major not in majors:
majors.append(major)
ss=[]
for major in majors:
... | [
"noreply@gitee.com"
] | noreply@gitee.com |
91b1403f8e1105645bfefc85442423a816e24f0c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02848/s698981801.py | 7e0cebce400b848c6b6f5211a58ecacfee9361c8 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | N = int(input())
S = input()
ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
s = ""
for c in S:
for i, a in enumerate(ABC):
if a == c:
break
s += ABC[(i+N)%26]
print(s) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6feac90f372a344a464be7960602463c941c1213 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_372/ch151_2020_04_13_20_05_38_914868.py | 484e6bcd2cd795d760874f5c31d180730791b57e | [] | 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 | 343 | py | def classifica_lista(lista_numeros):
i=0
lista_numeros=[]
while i < len(lista_numeros):
if lista_numeros[i+1]>lista_numeros[i]:
print('crescente')
elif lista_numeros[i+1]<lista_numeros[i]:
print('decrescente')
else:
print('nenhum')
... | [
"you@example.com"
] | you@example.com |
62f559d8220e03934872a162315e3373a28d56ff | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2494/61659/262968.py | 7f9f136d80290d8e4d09f35e301c9abb605c5afa | [] | 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 | 168 | py | lists=eval(input())
count=0
for i in range(0,len(lists)-1):
for j in range(i+1,len(lists)):
if lists[i]>2*lists[j]:
count=count+1
print(count) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
60b35a6534f3f02876d43f03dbf7016093c82518 | a519c248ccac7cfb4c934b5ad1159f4937117fba | /While_Loop/hot_and_cold.py | 9d6c19d3813eaf84b5cee1b10dd27c2d7b9149f6 | [] | no_license | kaci65/Nichola_Lacey_Python_By_Example_BOOK | 1ae5654b82c01e320eaf8d1e41fb03804c0786fc | 2cc18d2d8351a990cee31e253c4bcb298ba4c266 | refs/heads/main | 2023-04-12T18:16:03.663399 | 2021-05-02T14:34:00 | 2021-05-02T14:34:00 | 346,003,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!/usr/bin/python3
"""Check if user input is similar to the value of the variable"""
compNum = 50
num = int(input("Enter a number: "))
count = 1
while num != compNum:
if num > compNum:
print("Too high")
else:
print("Too low")
count = count + 1
num = int(input("Try again. Enter a number... | [
"wanjikukarugi@gmail.com"
] | wanjikukarugi@gmail.com |
c04ed22826cefec6a03afabc52334e87c1b9d844 | b8379b73f6665a74b14d3d5796cf7c8351852b85 | /tests/test_io.py | 0a5cc7927e003598154815e7295568bf16e3863f | [
"BSD-3-Clause"
] | permissive | certik/sfepy | ceb766ee51821ecd1f2bfa4f5611ef87abe88805 | f89b2682df0cdba57c64caa6fe362855f2671465 | refs/heads/master | 2020-08-06T17:07:15.780747 | 2009-01-15T16:47:58 | 2009-01-15T16:47:58 | 110,970 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | from sfepy.base.testing import TestCommon, assert_
import numpy as nm
import scipy.sparse as sp
import os.path as op
##
# 02.07.2007, c
class Test( TestCommon ):
##
# 02.07.2007, c
def from_conf( conf, options ):
return Test( conf = conf, options = options )
from_conf = staticmethod( from_conf... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
845fdefbbc201a12f6145b54e78d21dcaeb96848 | f99c276fe2534c5822a2a65812be45cfd1d9832f | /run_allfeatures.py | 7772c2d04b0cf4fdf26effee78ff97fba3936b8a | [] | no_license | cgallego/integrationFeaturesModule | 48276f2b1f83649a960707c8e037718bf67f6040 | 236204e6c45dc100fd3d6d301839316dba22173a | refs/heads/master | 2020-04-05T23:16:30.804779 | 2015-04-16T19:23:24 | 2015-04-16T19:23:24 | 19,864,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 01 10:47:40 2014
This script will load volumes, Load a lesion Segmentation (VOI), Visualize volumes
and then extract Dynamic, Morphology and Texture features from the VOI.
@ author (C) Cristina Gallego, University of Toronto, 2013
--------------------------------... | [
"admin@webdsdesign.com"
] | admin@webdsdesign.com |
83ba5987091ff4069564ff92a62200a1cfa7f62f | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/provider_reservation_display_service_port_type_service_output.py | f4729c8d2f9295c91bfa4ec60a7d881fc65362a5 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 2,637 | py | from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.error_info_1 import ErrorInfo1
from travelport.models.provider_reservation_display_details_rsp import ProviderReservationDisplayDetailsRsp
__NAMESPACE__ = "http://www.travelport.com/service/air_v52_0"
@dataclass
class ... | [
"chris@komposta.net"
] | chris@komposta.net |
233d691e0b7e982e5b3b4eb0c04d7cc8a5933454 | 094a82883b0f4490dbca6c042e129faf0593d7bc | /micropython/neopixel_writer.py | d77f9d85395b5de7f61d084eedd525712191ad81 | [
"Apache-2.0"
] | permissive | kesking82/thingflow-python | 904495aa370fb0fdef5e1eb162f0553a37bd7271 | 4c00deafd1bf425ec90ef2159fc5f3ea2553ade8 | refs/heads/master | 2020-04-21T13:05:57.615247 | 2019-02-28T09:59:13 | 2019-02-28T09:59:13 | 169,587,091 | 0 | 0 | Apache-2.0 | 2019-02-07T14:44:45 | 2019-02-07T14:44:44 | null | UTF-8 | Python | false | false | 1,498 | py | """Control NeoPixel-style light strips from ThingFlow.
num_pixels and bytes_per_pixel will vary, depending on your light strip.
Set pinno to the gpio pin number where you connected the data line of
the NeoPixel.
If you have bytes_per_pixel=3, the events will be of the form:
(pixelno, r, g, b)
If you have bytes_per... | [
"jeff@data-ken.org"
] | jeff@data-ken.org |
6119b014b4b48b32092ec0696b22518b8784012f | f5a1fcc57ba6d1bdd946158d269f861747023977 | /google_problems/problem_41.py | 1a986da040f409ba82575d58cd32fb580e4e0c13 | [
"MIT"
] | permissive | younes38/Daily-Coding-Problem | 64f8c4137b86fc44d6202585f009a3a5e05f4eac | ba2b48fbd4d86b2130a396b9d464f2395b9983b6 | refs/heads/master | 2021-07-19T01:41:20.665277 | 2019-11-30T21:00:50 | 2019-11-30T21:00:50 | 225,072,874 | 2 | 0 | MIT | 2019-11-30T21:38:13 | 2019-11-30T21:38:13 | null | UTF-8 | Python | false | false | 325 | py | """This problem was asked by Google.
Given a set of closed intervals, find the smallest set of
numbers that covers all the intervals. If there are multiple smallest sets, return any of them.
For example, given the intervals [0, 3], [2, 6], [3, 4], [6, 9],
one set of numbers that covers all these intervals is {3, 6}... | [
"mxcsyounes@gmail.com"
] | mxcsyounes@gmail.com |
e33e3670e86328c30e466d96952b8956f5c2b163 | 0abcbbac1efc95877f159c65d6f898e749b1bf09 | /MyMusicApp/blog/migrations/0003_auto_20190913_2056.py | b1049059ecfb27f3f672efa619a9f49eba24a0e0 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"bzip2-1.0.6",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-newlib-historical",
"OpenSSL",
"Python-2.0",
"TCL",
"LicenseRef-scancod... | permissive | kells4real/MusicApp | 5055e465b46c39e0687c98b7a8adbb2203ac9156 | 4e4ba065c4f472243413551f63dc4e9eddf7f4a7 | refs/heads/master | 2022-10-07T15:49:38.406106 | 2019-10-24T19:55:52 | 2019-10-24T19:55:52 | 197,428,434 | 0 | 1 | MIT | 2022-10-02T02:23:26 | 2019-07-17T16:48:16 | Python | UTF-8 | Python | false | false | 416 | py | # Generated by Django 2.2.2 on 2019-09-13 19:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20190913_2052'),
]
operations = [
migrations.AlterField(
model_name='post',
name='slug',
... | [
"kells4real@gmail.com"
] | kells4real@gmail.com |
b120af94f5a41302e9c1c1964f5729844da28c82 | 55f89bd92ec6acb1c88f0584b46bcdebf583b239 | /tests/unit/image_streamer/resources/test_deployment_plans.py | 490cbfae470af3e7a9076eb70f25ae4130cd45ad | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Apache-2.0"
] | permissive | jyothisgm/oneview-python | 13424cfd54f13be5124ea8c63cd53d222415f089 | ddb39276fe926a5f1f4762d14f2a4bf7f2db66b6 | refs/heads/master | 2022-03-28T13:26:39.865851 | 2019-12-16T11:30:22 | 2019-12-16T11:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,914 | py | # -*- coding: utf-8 -*-
###
# (C) Copyright [2019] Hewlett Packard Enterprise Development LP
#
# 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
#... | [
"sijeesh.kattumunda@hpe.com"
] | sijeesh.kattumunda@hpe.com |
21ee11052765265324fc1067a97b969101bf69d7 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /tools/perf/contrib/cluster_telemetry/v8_loading_runtime_stats_ct.py | 838ec63e1be5479fbc48154fd89bac52f72cce07 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"APSL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"MIT",
"Zlib"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 920 | py | # Copyright 2018 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.
from benchmarks import v8_browsing
from contrib.cluster_telemetry import loading_base_ct
from telemetry.web_perf import timeline_based_measurement
# pylint: ... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
0d5b7733db7fecbb170a36949c466efb3f9ae10c | 42b2b400c518f194e58faf6ea0b4d93cd73608a9 | /samples/api_orders.py | e1f441c7f0878a9e77a05bd43638db40ef4b1637 | [
"MIT"
] | permissive | sdmiami/td-ameritrade-python-api | 700d235e92a1a66bcb77acdf7733b140498a2c5f | fce3be3e89c32ef0b1a141120b4d134a10540f98 | refs/heads/master | 2022-11-15T03:16:34.554104 | 2020-07-13T20:00:32 | 2020-07-13T20:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,830 | py | from td.orders import Order, OrderLeg
from td.enums import ORDER_SESSION, DURATION, ORDER_INSTRUCTIONS, ORDER_ASSET_TYPE
# Initalize a new Order Object.
new_order = Order()
#
# MOST OF THE PARAMETERS OF YOUR ORDER CAN BE SPECIFIED EITHER WITH AN ENUM OBJECT
# OR A STRING VALUE.
#
# Define the SESSION of the Orde... | [
"alexreed1192@gmail.com"
] | alexreed1192@gmail.com |
320542bbec983764760282b8aee8566ebe444078 | dc4228d4a7be61683834f4472122fe407eb9f5ae | /metropack/metros.py | 5436ce38556fc93ec832f1735ba8e4c3f7a380fa | [
"BSD-3-Clause"
] | permissive | eddiejessup/metropack | 9aa77d3828c00ae3cde8667ee409aaa9f45c5312 | 528b47d0f2f70f39e1490e41433f2da8c8b9d63c | refs/heads/master | 2016-08-06T12:04:34.471751 | 2015-08-16T18:51:49 | 2015-08-16T18:51:49 | 40,555,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,783 | py | from __future__ import print_function, division
import numpy as np
from scipy.spatial.distance import pdist
from spatious.geom import sphere_volume
from spatious.distance import pdist_sq_periodic, cdist_sq_periodic
class MetroRCP(object):
def __init__(self, r_0, L_0, R, dr_max, dL_max, rng=None):
self.r ... | [
"elliot.marsden@gmail.com"
] | elliot.marsden@gmail.com |
c1c04713a4d80b90c8e7d138a21368e819e406cf | 526f889e4bad06be4c8424c456c487ee2bfb5ec9 | /jdjinshuiji/pipelines.py | dcd6698f784567f2e0c8cb0a242bcd1b64c1b31b | [] | no_license | junjunjuner/jd_jingshuiqi | 28ecce10d5d62ee167f8e4cf0c476bd27de4e68e | 297cde4d98bde90ac870115fd3dc4b5da4ed59e7 | refs/heads/master | 2021-05-11T18:22:26.108744 | 2018-01-17T10:54:45 | 2018-01-17T10:54:45 | 117,822,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymongo
from scrapy.conf import settings
from jdjinshuiji.settings import FIELDS_TO_EXPORT
from scrapy import signals
fro... | [
"523614801@qq.com"
] | 523614801@qq.com |
5c3509249fbd3c28a90eeff2db10d5edf77e037c | eef39fd96ef4ed289c1567f56fde936d5bc42ea4 | /BaekJoon/Bronze3/11966.py | 61f886af611385d58f1fe486af18749648a26028 | [] | no_license | dudwns9331/PythonStudy | 3e17da9417507da6a17744c72835c7c2febd4d2e | b99b9ef2453af405daadc6fbf585bb880d7652e1 | refs/heads/master | 2023-06-15T12:19:56.019844 | 2021-07-15T08:46:10 | 2021-07-15T08:46:10 | 324,196,430 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # 2의 제곱인가?
"""
2021-01-11 오전 12:14
안영준
문제
자연수 N이 주어졌을 때, 2의 제곱수면 1을 아니면 0을 출력하는 프로그램을 작성하시오.
입력
첫째 줄에 N(1 ≤ N ≤ 2^30)이 주어진다.
출력
N이 2의 제곱수면 1을 아니면 0을 출력하는 프로그램을 작성하시오.
"""
N = int(input())
result = list()
for i in range(31):
result.append(2 ** i)
if N in result:
print(1)
else:
print(0)
| [
"dudwns1045@naver.com"
] | dudwns1045@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.