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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1996b3e9a35ebcabee9dfb1f740e7a9d69fd5760 | 0cf3c46500aed987a4760acd4821957c2877c6c9 | /tools/upgrade/ast.py | 6ba70b0ecd977595005abccae9d1a7e02bc69416 | [
"MIT"
] | permissive | ahmed1231234/pyre-check | eca4de113c5346e28c8826a5ff53d3f8ec6c6ddd | aa40c5ea9095eb66ec63c361545b2c51df3e14ff | refs/heads/master | 2022-04-23T11:03:25.798965 | 2020-04-18T18:37:38 | 2020-04-18T18:37:38 | 256,826,159 | 1 | 0 | null | 2020-04-18T18:35:55 | 2020-04-18T18:35:55 | null | UTF-8 | Python | false | false | 1,787 | py | # Copyright (c) 2016-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import ast
import logging
import pathlib
from logging import Logger
from typing import Callable
from pyre_extensions import ListVar... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f205428b32562f728bb76ab16080f526548226ee | 7cd6950ab3034cb0cf403ee1b8410bf475360a8d | /venv/bin/schema-salad-tool | e251adb51c1dd93871748bd902611e801bb09b8e | [] | no_license | mr-c/george_murray | ef6d5f77a4f4c0b64cbc64534ce23d7546a3cee0 | 612c68c6b27ed2d8097f1309820ccdbb05530176 | refs/heads/master | 2022-09-20T11:12:58.582547 | 2019-08-15T19:32:34 | 2019-08-15T19:32:34 | 268,844,811 | 0 | 0 | null | 2020-06-02T15:55:27 | 2020-06-02T15:55:26 | null | UTF-8 | Python | false | false | 265 | #!/Users/George1/Documents/GitHub/george_murray/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from schema_salad.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"george.c.murray@maine.edu"
] | george.c.murray@maine.edu | |
fa72589e55f4fe20a47d28a533d5439e1b6ff87c | 2c5b25d0b5d6ba66d013251f93ebf4c642fd787b | /accepted_codes/ZigZag_Conversion/ZigZag Conversion_278768995.py | fb8f43a76f31a8429e8a1102bb46a1a61c7b0a46 | [] | no_license | abhinay-b/Leetcode-Submissions | da8099ac54b5d36ae23db42580064d0f9d9bc63b | d034705813f3f908f555f1d1677b827af751bf42 | refs/heads/master | 2022-10-15T22:09:36.328967 | 2020-06-14T15:39:17 | 2020-06-14T15:39:17 | 259,984,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | class Solution:
def convert(self, s: str, rows: int) -> str:
if rows == 1 or len(s) == 0:
return s
substrLists = ["" for i in range(rows)]
pos = 0
step = -1
for char in s:
substrLists[pos] += char
if pos == 0 or pos == rows - 1:
... | [
"abhinayb.sssihl@gmail.com"
] | abhinayb.sssihl@gmail.com |
ad0fdfb641c6e94049ce76fdcc83f75b4d70cc21 | c8a04384030c3af88a8e16de4cedc4ef8aebfae5 | /stubs/pandas/tests/series/test_internals.pyi | f4ba1fc107185d5351a176a5bf578b51da1198f9 | [
"MIT"
] | permissive | Accern/accern-xyme | f61fce4b426262b4f67c722e563bb4297cfc4235 | 6ed6c52671d02745efabe7e6b8bdf0ad21f8762c | refs/heads/master | 2023-08-17T04:29:00.904122 | 2023-05-23T09:18:09 | 2023-05-23T09:18:09 | 226,960,272 | 3 | 2 | MIT | 2023-07-19T02:13:18 | 2019-12-09T20:21:59 | Python | UTF-8 | Python | false | false | 1,056 | pyi | # Stubs for pandas.tests.series.test_internals (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
# pylint: disable=unused-argument,redefined-outer-name,no-self-use,invalid-name
# pylint: disable=relative-beyond-top-level,line-too-long,arguments-differ
# pylint: disable=no-member,t... | [
"josua.krause@gmail.com"
] | josua.krause@gmail.com |
583c3151de04b103a70ef84b46909cbd243bdf38 | 9a8fe99c7316dfce343be81d2c3c1a6c4f22572c | /set89.py | 98de78eac2b9ee81cbd42fa33eff655c83fe0589 | [] | no_license | Srija-U/codekatabeginner | 5e4d540484529dbafada04d3eac96eab7f98a693 | 8d088e04de1d48d9befb975697e9121f06bb164a | refs/heads/master | 2020-04-30T00:58:51.445394 | 2019-07-01T15:43:05 | 2019-07-01T15:43:05 | 176,516,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import math
l=[int(i) for i in input().split()]
p=l[0]*l[1]
r=math.sqrt(p)
if(r-math.floor(r)==0):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | Srija-U.noreply@github.com |
c40fdba0ebc728e600f6cb077840adff8ec86a16 | 5dfed5b8fbcb2a62af3aab3beee299a8405ad50b | /ch05-视频/5.VideoCapture.py | 0be5f3af2bce0deef2d782be92053f349c6a26f6 | [
"MIT"
] | permissive | zgle-fork/OpenCV-Python-Tutorial | 7de5a7eda667401b3c7ac0e9306c0b0650bb459f | 5a42b32de208a7f11ec9d04880f4b00e8986a0e5 | refs/heads/master | 2023-03-02T11:01:04.984257 | 2021-02-11T19:10:14 | 2021-02-11T19:10:14 | 268,380,833 | 0 | 0 | MIT | 2020-05-31T23:18:58 | 2020-05-31T23:18:58 | null | UTF-8 | Python | false | false | 2,326 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 3 21:06:22 2014
@author: duan
"""
'''
注意 当你的程序报错时 你 先检查的是你的摄像头是否能够在其他程 序中正常工作 比如 linux 下的 Cheese 。
'''
import numpy as np
import cv2
cap = cv2.VideoCapture(0) # 一般的笔 本电脑 有内置摄像头。所以参数就是 0。你可以 设置成 1 或 者其他的来 择别的摄像头
'''
你可以使用函数 cap.get(propId) 来获得 的一些参数信息。
propId 可以... | [
"play4fun@foxmail.com"
] | play4fun@foxmail.com |
292ab22fc8c91f9f3a53b729047e4651abdbac4f | 4ad809420a3cd82199b31fcb6033ad6b28c5ac60 | /rustici_engine/models/xapi_interaction_component.py | 85c0f932ab8c6ed4102f496b23b51da596ac6ce0 | [] | no_license | Myagi/python-rustici-engine-api | 2e4eb21f01b156551a1f4d747aea466dec22f30c | 20684845817cb9790b3bfc9be3db515f7ad5b0ee | refs/heads/master | 2022-03-30T12:26:44.825580 | 2020-02-03T06:34:12 | 2020-02-03T06:34:12 | 237,883,063 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | # coding: utf-8
"""
Rustici Engine API
Rustici Engine API # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class XapiInteractionComponent(object):
"""NOTE: This class is auto gene... | [
"s.kitchell@live.com"
] | s.kitchell@live.com |
312a91bd56204674559e4af96b69bcf70afeae26 | 492e956cbc3f2d9af13b2b437760fba0451c3333 | /setup.py | 95956c2a83a15ec25d433e0f06201a46b22caaa7 | [
"BSD-3-Clause"
] | permissive | Ademan/markupsafe | 40c6deb4b3035df61b65ce293f300d6b8433c045 | 6620b980d299b00d337e998f6cd13a800d51bcf9 | refs/heads/master | 2021-01-18T13:22:21.023640 | 2011-02-17T21:56:32 | 2011-02-17T21:56:32 | 1,380,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | import os
import sys
from setuptools import setup, Extension, Feature
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, \
DistutilsPlatformError
# fail safe compilation shamelessly stolen from the simplejson
# setup.py file. Original author: Bob Ip... | [
"armin.ronacher@active-4.com"
] | armin.ronacher@active-4.com |
2be1f29cb247b9a78bccf284d46cc677e921eb76 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/missing_data/test_missing_data_air_passengers_None_Median.py | 2a181eddd4b0f9ad5e0f81313d275c09db13c348 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 128 | py | import tests.missing_data.test_missing_data_air_passengers_generic as gen
gen.test_air_passengers_missing_data(None, 'Median')
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
3a9d64a9ea107918ee80b2d18620eca72ba779b1 | 76c3262a1ed4e6cbbf5008e8fc79c917035fe181 | /src/mysite/posts/views.py | b12464ced838be501e90822580b6b41435a34213 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-newlib-historical",
"OpenSSL",
"bzip2-1.0.6",
"Python-2.0",
"TCL",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-ot... | permissive | aiegoo/django | ba6ee6be02b4e0fdf2fce007cb3ef739974ade35 | 2f508a318edd26403509a61eb44e99fda8b7ed64 | refs/heads/master | 2023-01-12T21:56:16.202262 | 2021-06-08T09:27:44 | 2021-06-08T09:27:44 | 211,546,261 | 0 | 0 | MIT | 2022-12-26T20:15:56 | 2019-09-28T18:41:35 | Tcl | UTF-8 | Python | false | false | 164 | py | from django.http import HttpRequest
from django.shortcuts import render
# Create your views here.
def post_home(request):
return HttpRequest("<h1>hello</h1>") | [
"eozz21@gmail.com"
] | eozz21@gmail.com |
ae88ca665498f4b7533b6dac23ecbf987436a17f | 52b79e4cd1e26969a3ebb3bca8620519071bea98 | /answers/17_serialization/task_17_3.py | f5210b54e2ac9f160565ac6b077cafd54537708e | [] | no_license | hariram32/pyneng-answers-en | 631bc149b8a219a2de86de82681ffba3d1ff30ee | 84b7240b00d3a4ab9011952db662f716d1cd31b8 | refs/heads/main | 2023-03-16T00:12:38.954431 | 2021-03-09T15:40:10 | 2021-03-09T15:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # -*- coding: utf-8 -*-
"""
Task 17.3
Create a function parse_sh_cdp_neighbors that processes the output of
the show cdp neighbors command.
The function expects, as an argument, the output of the command
as a single string (not a filename).
The function should return a dictionary that describes the connections betwee... | [
"nataliya.samoylenko@gmail.com"
] | nataliya.samoylenko@gmail.com |
23e96be12a0904803e10a2ada162a77caaea4993 | 1850d2222b504bfa3c2390dc6fc186b3260334d0 | /src/pbhla/dictionary.py | 32ab51481614f77e383c8f8ee6393b79722894c4 | [] | no_license | la0hu2006/HlaTools | 2f6964645615c6c35517f064111b362407701dea | 082e45cd1cbdad941f0df59d71a0ca59bfdabf0c | refs/heads/master | 2021-01-18T21:42:31.258878 | 2016-08-29T18:50:11 | 2016-08-29T18:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,290 | py | import os, re, csv, logging
from pbcore.io.FastaIO import FastaReader
from pbhla.io.BlasrIO import BlasrReader, record_to_string
from pbhla.io.SamIO import SamReader
from pbhla.utils import get_base_sequence_name
log = logging.getLogger()
def create_amp_assem_reference( m1_file, reference=None ):
log.info('Parsi... | [
"bbowman@pacificbiosciences.com"
] | bbowman@pacificbiosciences.com |
b36a85f206bf2bb3cab6829401349d38f3b51bd1 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D98B/SAFHAZD98BUN.py | a4eef18c6de9d10ed241bd2e4d7eeacdbcf968ba | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,765 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD98BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'RFF', MIN: 0, MAX: 10},
{ID: 'DTM', MIN: 0, MAX: 10},
{ID: 'FT... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
3857b3e7f9b4eeb9078b49a3de87dabf2611ef10 | bb300c03d353e7752d20909995d2b0e4818d785d | /app1/admin.py | ca0089e5fcc6dd1e454695c7fe3e0900521046e2 | [] | no_license | ksuvarna85/django_unicode | 3fe3340b63e92812c17a379a934fc8d1d3fc91bc | 79d833a3009acf034a194a8daa71b6e8a209f748 | refs/heads/master | 2022-12-13T00:10:59.156715 | 2020-09-12T14:35:53 | 2020-09-12T14:35:53 | 292,186,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import Group
from django.contrib.auth.forms import UserCreationForm
from .models import User, Student, Teacher
# Register your models here.
class BaseUserAdmin(UserAdmin):
list_display = ['email', 'is... | [
"you@example.com"
] | you@example.com |
b3ae963aeaacd1244bd96e68dca519a28aa5a5d2 | 525c6a69bcf924f0309b69f1d3aff341b06feb8e | /sunyata/backend/pytorch/layer/dot/conv.py | 3c37be58bd4b04de352c0ba95e80282519e3fdcb | [] | no_license | knighton/sunyata_2017 | ba3af4f17184d92f6277d428a81802ac12ef50a4 | 4e9d8e7d5666d02f9bb0aa9dfbd16b7a8e97c1c8 | refs/heads/master | 2021-09-06T13:19:06.341771 | 2018-02-07T00:28:07 | 2018-02-07T00:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | from torch.nn import functional as F
from ....base.layer.dot.conv import BaseConvAPI
class PyTorchConvAPI(BaseConvAPI):
def __init__(self):
BaseConvAPI.__init__(self)
self._ndim2conv = {
1: self.conv1d,
2: self.conv2d,
3: self.conv3d,
}
def conv(se... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
cea44ccf0270fc4975dcc281347d17019d96aa29 | 2a68ce2f0f47370e2f57b9279cc8e1aab85e26da | /trojsten/results/migrations/0001_squashed_0003_auto_20160608_1143.py | b621f0ef934d8daff3195390d0dd3e897f207a6d | [
"MIT"
] | permissive | trojsten/web | 52007c3d575b21603bf205c1e7294a482eedbf85 | 97b7b3ae3ac46be786bde9c49a2cae6609dbf50f | refs/heads/master | 2023-08-17T23:30:16.857469 | 2023-07-30T16:31:34 | 2023-07-30T16:31:34 | 10,618,952 | 6 | 10 | MIT | 2023-09-04T19:09:09 | 2013-06-11T10:04:10 | Python | UTF-8 | Python | false | false | 5,589 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-08 10:11
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
("people", "0001_initial"),
migrations.swap... | [
"mhozza@gmail.com"
] | mhozza@gmail.com |
ef337ec276cc312703505f50f3e225a52769011e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02233/s579323796.py | 2066403e585a327111189ca533edc9056ec5aec9 | [] | 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 | 198 | py | from functools import lru_cache
n = int(input())
@lru_cache(maxsize=None)
def fib(n):
if n==0 or n==1:
return 1
else:
return fib(n-1)+fib(n-2)
print(fib(n))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
24191139d0b94f103b412d4ed31f6b47eb63484e | df4a7c46c46d1eca6570493b9707bdf64e54f8d3 | /py/35.search-insert-position.py | 33dd984473f03e45395deae0415f989a0023fd70 | [] | no_license | CharmSun/my-leetcode | 52a39bf719c507fb7032ed424fe857ba7340aea3 | 5325a56ba8c40d74d9fef2b19bac63a4e2c44a38 | refs/heads/master | 2023-03-29T06:39:49.614264 | 2021-03-28T16:33:52 | 2021-03-28T16:33:52 | 261,364,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #
# @lc app=leetcode id=35 lang=python3
#
# [35] Search Insert Position
#
# @lc code=start
from typing import List
## 二分查找: 取左值
class Solution:
def searchInsert(self, nums: List[int], target: int) -> int:
left = 0
right = len(nums) - 1
while left <= right:
mid = (left + right) ... | [
"suncan0812@gmail.com"
] | suncan0812@gmail.com |
6a9004fa89106410d1390d87e6956d939af9fc41 | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/imageSmoother/imageSmoother.py | 710c11b1f7cfe46788763934ba78cc33142fdb3e | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/image-smoother/
# Author: Miao Zhang
# Date: 2021-02-26
class Solution:
def imageSmoother(self, M: List[List[int]]) -> List[List[int]]:
m = len(M)
n = len(M[0])
res = [[0 for _ in range(n)] for _ in r... | [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
bb049e65d59a06ac07b31316aaa604e7231f451e | 0f9a97d48a9f0179bcf1e3d80c08340096eb561e | /ДЗ-10. Словари/E. Самое частое слово.py | 5ab4d26f6bf5e6e5c8e4cc2561b81c51baac99e4 | [] | no_license | dmitryokh/python | 96d8ec8c3f2d3428b90d510a1003aecf102b13d0 | 8efe761412779bed9a7516832d3152843088fa43 | refs/heads/master | 2020-04-24T03:08:42.865813 | 2019-02-20T11:41:52 | 2019-02-20T11:41:52 | 171,661,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | input = open('input.txt', 'r')
text = input.readline()
wordcount = {}
maxword = 0
while text != "":
text = text.split()
for word in text:
if word in wordcount:
wordcount[word] += 1
else:
wordcount[word] = 1
if wordcount[word] > maxword:
maxword = wordc... | [
"noreply@github.com"
] | dmitryokh.noreply@github.com |
5080faaeaef838a6382729f2b935ab97aebfee4a | 6efc62bc1aa82e09eb1740cb795ddb622d9069a1 | /config/migrations/0002_auto_20181224_2241.py | 740333528a41b62ca7887d99c9f83b889f1f49cc | [] | no_license | EruDev/typeidea | c1147743a2d062cb2b21c7bf98db9377345809ef | 8c8889ac75bd09298b93528d618fdffdae93ea03 | refs/heads/master | 2020-04-12T04:20:06.123801 | 2018-12-28T01:11:27 | 2018-12-28T01:11:27 | 147,651,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # Generated by Django 2.0.4 on 2018-12-24 22:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('config', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='sidebar',
name='display_type',
... | [
"1027926875@qq.com"
] | 1027926875@qq.com |
dca16d10dcceb0ac60b9e637079684ea037c63f1 | a9510540f25112a13a7b10772d8b12df4f80fcf8 | /edsys_sequence/ir_sequence.py | e2b4ddb1b45cec29ac47cbe95b79b227cfb1cc46 | [] | no_license | babarlhr/edsys10 | c291b7eae643bbd25c961e829beca9f5b108845e | 84b43d0ed19145c88fa142e6cf1fa691fa9fedce | refs/heads/master | 2022-03-15T03:03:27.479767 | 2019-11-20T21:22:50 | 2019-11-20T21:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,634 | py | from eagle import models, fields, api, _
class ir_sequence(models.Model):
_inherit = 'ir.sequence'
model_id = fields.Many2one("ir.model", 'Model')
#field_id = fields.Many2one('ir.model.fields', 'Field', domain="[('model_id', '=', model_id), ('ttype', '=', 'integer')]")
field_id = fields.Many2one('ir.... | [
"rapidgrps@princegroup-bd.com"
] | rapidgrps@princegroup-bd.com |
f83fcd905c084cce98fc955ccf1e309f691d2eec | fb78fd824e904705fb1ee09db8b3c20cc3902805 | /python-scripts/points.py | b8ee9310c52b85f1fc806c4acc7ef631e09df80e | [] | no_license | Roderich25/mac | 8469833821ac49c539a744db29db5a41d755ad55 | 4f7fe281c88f0199b85d0ac99ce41ffb643d6e82 | refs/heads/master | 2023-01-12T05:55:12.753209 | 2021-11-26T01:16:24 | 2021-11-26T01:16:24 | 207,029,750 | 0 | 0 | null | 2023-01-07T11:49:23 | 2019-09-07T21:51:53 | Jupyter Notebook | UTF-8 | Python | false | false | 2,073 | py | #!/usr/bin/env python3
from random import randint
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib import cm
def set_direction():
while True:
x = randint(-1, 1)
y = randint(-1, 1)
if x != 0 or y != 0:
break
return x... | [
"rodrigoavilasolis@gmail.com"
] | rodrigoavilasolis@gmail.com |
a9d5499f5da02efa73b4381ff413faa0cdab877e | 98a03799f45384e1bc88674d4fc1a7b14b997673 | /cart/migrations/0005_auto_20210525_1933.py | e3bde4f7811053bc4e318bc7d665d7bc1b2b5638 | [] | no_license | munyuaDeveloper/07Ecommerce-backend | cda868260b56b044bdecf595b25492f5a3711e5d | cc73f4d33a7d6cdb823e9a719375f4c57ac49872 | refs/heads/main | 2023-08-11T19:42:42.169703 | 2021-09-21T22:58:27 | 2021-09-21T22:58:27 | 366,691,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Generated by Django 3.2.3 on 2021-05-25 19:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cart', '0004_auto_20210525_1218'),
]
operations = [
migrations.AlterModelOptions(
name='shoppingcartitem',
options={'verbose... | [
"mwangyjose@gmail.com"
] | mwangyjose@gmail.com |
f1ce3d0ba8ae07110c346dda91edaa7356e11913 | d2df82be0a37c9fde9a1ecee34fbf311fd8b2840 | /awesome_gans/sagan/sagan_train.py | 3fc74c4963e2f4e90b5b14d0b029222310ce5c31 | [
"MIT"
] | permissive | qqyouhappy/Awesome-GANs | a13ded69a043bc257966fcd3e71dc7a87b3f524f | 0f01852abbac0497baa8cc309a580ba720c0478f | refs/heads/master | 2022-12-22T14:42:56.765953 | 2020-10-05T14:53:01 | 2020-10-05T14:53:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,134 | py | import os
import time
import numpy as np
import tensorflow as tf
import awesome_gans.image_utils as iu
import awesome_gans.sagan.sagan_model as sagan
from awesome_gans.config import parse_args
from awesome_gans.datasets import CelebADataSet as DataSet
from awesome_gans.datasets import DataIterator
cfg = parse_args()... | [
"kozistr@gmail.com"
] | kozistr@gmail.com |
eacad1766cda661fcba77d56519716da6ba9aea3 | 0c325cf7a68ef51067ed8db566d525a20de5b635 | /other/panda365/panda365/pd/conf/tests/test_api.py | bce8a29c452848ac5f2021879686f02beb3367f5 | [] | no_license | alinzel/NOTES | 2ab6aa1ef1d601a9ae8c0d23c0df2bca7e1aa241 | 3e0594641a605580e920d0b08a251fbc99f34e2f | refs/heads/master | 2023-01-08T22:48:30.762625 | 2020-01-17T09:14:47 | 2020-01-17T09:14:47 | 175,339,492 | 0 | 0 | null | 2022-12-27T15:01:19 | 2019-03-13T03:28:08 | HTML | UTF-8 | Python | false | false | 535 | py | from pd.test_utils import assert_dict_like
from pd.conf.factory import ConfFactory
def test_get(client, db_session):
conf = ConfFactory()
url_tpl = '/v1/conf/{}'
resp = client.get(url_tpl.format(conf.name))
assert resp.status_code == 200
assert_dict_like(resp.json, {
'name': conf.name,
... | [
"944951481@qq.com"
] | 944951481@qq.com |
dc177bf4ac10bb80f0ea2fae215f680358e4ea80 | 1da3173e935cb6d32ec3d9da7bf01ee91e6c3199 | /sbt/utils/enumerators.py | 02d6047c598a13a4f10128b8ac8b4229579a8cdb | [
"Apache-2.0"
] | permissive | PgBiel/sbt | 492b99c254bda9b404a89c438b3e3f0f13f358b7 | dfbca913751b13a251e335e271bee0e443d02afe | refs/heads/master | 2022-01-23T09:59:19.289276 | 2019-06-06T00:32:20 | 2019-06-06T00:32:20 | 197,852,145 | 0 | 0 | null | 2019-07-19T22:54:27 | 2019-07-19T22:54:27 | null | UTF-8 | Python | false | false | 1,030 | py | """
/utils/enumeration.py
Copyright (c) 2019 ShineyDev
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 b... | [
"contact@shiney.dev"
] | contact@shiney.dev |
d3d27b0c4ef0f3a4e0890dfd6b88de514f40610e | 4dc4345cca9c5f452bf4b87263505ee6b4e960af | /text_processing_exercise/letters_change_numbers.py | 82fa25b63154fba7ad44fd25241f820d90ab2dd8 | [] | no_license | ivan-yosifov88/python_fundamentals | 88c7eb5167bbe6692b95051d1551496a84893524 | 1cfe6d18453362fc26be984f6cb871b9d7dec63d | refs/heads/master | 2023-03-29T16:46:55.363035 | 2021-04-07T10:39:44 | 2021-04-07T10:39:44 | 341,604,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | alphabet_dict = {}
for index in range(1, 27):
letter = 96 + index
alphabet_dict[chr(letter)] = int(index)
words_to_manipulate = input().split()
total_sum = 0
for word in words_to_manipulate:
first_letter = word[:1]
second_letter = word[-1:]
number = int(word[1:-1])
if first_letter.isupper():
... | [
"ivan.yosifov88gmail.com"
] | ivan.yosifov88gmail.com |
f20c7d5f767aae7d5913374a5a2ba3591d11f2dd | 0e5aa2f88c770457e91289aa886c24d7faca0677 | /viewport.py | 601c4c33f5bc469663ed2cc056d465161ccebe44 | [] | no_license | su8/pygobject-examples | 54ea6dbb894ef735f87703ce60a6b5bdbad8c3e9 | 27c3f94b21a731628dac13bb0ad573474864839b | refs/heads/master | 2021-04-03T09:39:05.614517 | 2016-11-12T20:55:12 | 2016-11-12T20:55:12 | 124,675,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | #!/usr/bin/env python3
from gi.repository import Gtk
window = Gtk.Window()
window.connect("destroy", lambda q: Gtk.main_quit())
grid = Gtk.Grid()
window.add(grid)
viewport = Gtk.Viewport()
viewport.set_size_request(200, 200)
grid.attach(viewport, 0, 0, 1, 1)
vadjustment = viewport.get_vadjustment()
hadjustment = v... | [
"a@b.c"
] | a@b.c |
f220eafb22d10d6f90076ad75da2189397169500 | 2f8f8171b3b996b0c866ede72367ec26f64eae39 | /sampleproject/www/Project_Euler/problem001_050/problem024.py | 4002e5d9acde3b0609b412965436d2994b511a5a | [] | no_license | kabaksh0507/exercise_python_it-1 | da46edce09301b03a5351ee1885fb01eb69d8240 | 2b6c80a79494c9981e51bd03696c3aa19d6625ec | refs/heads/main | 2023-03-04T03:12:44.188468 | 2021-02-08T08:55:36 | 2021-02-08T08:55:36 | 337,014,697 | 0 | 0 | null | 2021-02-08T08:57:30 | 2021-02-08T08:57:30 | null | UTF-8 | Python | false | false | 2,561 | py | '''Project Euler Problem 24'''
def problem_24() -> str:
'''Lexicographic permutations'''
target_num = 1000000
pattern_list = list(range(10))
ret = search_pattern(target_num, pattern_list)
return ret
def search_pattern(target_num: int, select_list: list) -> str:
'''
select_list内データを1つず... | [
"kazkitou9080@gmail.com"
] | kazkitou9080@gmail.com |
bafe1e52daa3fcf78f8cf84a110dea1f2ed01737 | 3dcfa266c4b7321a4c3a224b98f9ca0dff891e47 | /archives/prioque.py | 869bdbf0ed3ff28d32db9ff399a170e2b25b858f | [] | no_license | CandyTt20/Notes | a2ef681d123c5219a29334e99aeb900b74bf1834 | ec092f881122ebdd91ef9764ec7ce4d9cc4723ae | refs/heads/master | 2022-08-21T18:08:33.204223 | 2020-05-19T23:55:49 | 2020-05-19T23:55:49 | 255,209,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | class PrioQue(object):
#! 线性表实现
def __init__(self, elist=[]):
self._elist = list(elist)
self._elist.sort(reverse=True)
def insert_que(self, elem):
i = len(self._elist) - 1
while i >= 0 and self._elist[i] < elem:
i -= 1
self._elist.insert(i + 1, elem)... | [
"458566293@qq.com"
] | 458566293@qq.com |
b971c99a94802b5ef22c261ffe180a7af8d278a1 | 8924bd3df018bdee62a5e5d99069171771d9f459 | /Important/aws-tutorial-code/lambda/lambda_read_pdf_s3_trigger.py | 8e80689c37c5b36f7db72cf78b0876ed8c6100cf | [
"MIT"
] | permissive | abhi15sep/Lambda-Final | f5985dc1d2aef4965764ec452a5e2949d78a202b | fed8be8ddeb7325e594fb426bfcd0f388f3d0f67 | refs/heads/master | 2023-04-19T02:06:09.808966 | 2021-05-02T21:23:22 | 2021-05-02T21:23:22 | 336,569,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | #-*- coding: utf-8 -*-
__author__ = "Chirag Rathod (Srce Cde)"
__license__ = "MIT"
__email__ = "chiragr83@gmail.com"
__maintainer__ = "Chirag Rathod (Srce Cde)"
import json
import boto3
import fitz
def lambda_handler(event, context):
"""Read file from s3 on trigger."""
# boto3 client
s3 = boto3.client("s3... | [
"abhaypratap3536@gmail.com"
] | abhaypratap3536@gmail.com |
b0c708b3b1fb2ed265dffef8b360333c76f2466a | 36b75aac4236e928e22552e8812abd45d32aecf1 | /modules/dbnd/test_dbnd/tracking/callable_tracking/test_no_side_affects.py | 22f25cdb1e1c99a40b646c2ce2536d287438fd2d | [
"Apache-2.0"
] | permissive | reloadbrain/dbnd | 7793aa1864f678005de626068b0ac9361d637d65 | ec0076f9a142b20e2f7afd886ed1a18683c553ec | refs/heads/master | 2023-09-01T08:04:09.486666 | 2021-10-14T16:43:00 | 2021-10-14T16:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,701 | py | import pickle
from pytest import fixture
from dbnd import config, task
from dbnd._core.configuration.environ_config import get_max_calls_per_func
@task
def task_pass_through_result_param(result):
assert isinstance(result, str)
return str(result)
@task
def task_pass_through_args_kwargs(*args, **kwargs):
... | [
"roman.slipchenko@databand.ai"
] | roman.slipchenko@databand.ai |
40354a15c13bfb900f01fee589091789eb0e071f | 6c58da2c54a3d35273e7984313d181f1da9981fc | /Users/djangoEnv/bin/easy_install-2.7 | d2fc7d4f26da40fa01f2c42ae4b7550560e15d0e | [
"MIT-0"
] | permissive | py1-10-2017/rgero215_PY1-10-2017 | e582cb12cc63f84b1c0c14d09a922cb6cb228016 | f455b335ec9c8c850571f3a75dcd95759b4cfdad | refs/heads/master | 2021-09-04T03:23:48.062326 | 2018-01-14T21:07:26 | 2018-01-14T21:07:26 | 105,612,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | 7 | #!/Users/RGero13/Desktop/rgero215_PY1-10-2017/Users/djangoEnv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rgero215@gmail.com"
] | rgero215@gmail.com |
9b3c07180d0aae51da6beadf9de05ef72f4b3789 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DeleteLiveStreamRecordIndexFilesRequest.py | b699537542cfd3d96cc4b06bcf2359fa98da73b4 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,480 | 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 |
a632af37ea6591032897d65fc5beb33456c14888 | 6b7f11270232000042d51f97f616c1a19c047389 | /elepay/model/location_dto.pyi | a1dccde82442a223f0ad9e4dac8562e6718ab2f1 | [] | no_license | elestyle/elepay-python-sdk | 07e6bc8d0a42b5217a4144ab5632b0cc548aef58 | 36dd8502047df4c6f8eaba53e216bae25843c3c5 | refs/heads/master | 2023-02-04T08:47:15.287825 | 2023-01-24T02:28:45 | 2023-01-24T02:28:45 | 206,721,107 | 2 | 0 | null | 2023-01-24T02:15:52 | 2019-09-06T05:41:33 | Python | UTF-8 | Python | false | false | 4,612 | pyi | # coding: utf-8
"""
elepay API リファレンス
elepay APIはRESTをベースに構成された決済APIです。支払い処理、返金処理など、決済に関わる運用における様々なことができます。 # noqa: E501
The version of the OpenAPI document: 1.2.0
Contact: support@elestyle.jp
Generated by: https://openapi-generator.tech
"""
from datetime import date, datetime # noqa: F401
imp... | [
"long.peng@elestyle.jp"
] | long.peng@elestyle.jp |
79a9ca1ff80bd0b65d9154b7ec175969fbb27012 | bcabd9b183bc011e1ccf7e367fbed0dcaa03eee6 | /1 PYTHON/1 EDUREKA/EDUREKA OLD/15 Flow Control.py | 5477c0e3805419ff7305edd254f4bc304944ea76 | [] | no_license | rajeshsvv/Lenovo_Back | 287fe4da2c696aa248ec57a4c45c4f234f6ca9ed | 7e49e38aaf934c65f9992a78404d2b81a4cd0204 | refs/heads/master | 2022-12-23T16:44:41.488128 | 2019-08-29T10:00:10 | 2019-08-29T10:00:10 | 204,859,914 | 0 | 1 | null | 2022-12-10T11:50:31 | 2019-08-28T06:05:35 | Python | UTF-8 | Python | false | false | 543 | py | '''
marks=20
if(marks>80) and (marks<=100):
print("GRADE A")
elif(marks>60) and (marks<=80):
print("GRADE B")
elif(marks>40) and (marks<=60):
print("GRADE C")
elif marks>=20 and marks<=40:
print("GRADE D")
else:
print("Please Enter Marks in between range 0 to 100")
'''
#while loop add numbers upto ... | [
"rajeshsvv01@gmail.com"
] | rajeshsvv01@gmail.com |
c27112ab8dbb9ade9e181d280ddd8534a8a5ca75 | 78d0d278d72afb500fc68ee3a45c39b80ccf193c | /utils/logging.py | 795095f1c4e80a53d50aa23ec714fb3b77caa422 | [] | no_license | mzq308734881/P2Net.pytorch | b56e501e2257b8b017f96cc70f8ba724cb8ee83f | 5e40745d0cba647dc02a9f6ea114e326e26e3a0a | refs/heads/master | 2022-12-25T04:28:26.198875 | 2020-10-07T16:42:35 | 2020-10-07T16:42:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | from __future__ import absolute_import
import os
import errno
import sys
class Logger(object):
def __init__(self, fpath=None):
self.console = sys.stdout
self.file = None
if fpath is not None:
try:
os.makedirs(os.path.dirname(fpath))
except OSError as... | [
"jyguo@pku.edu.cn"
] | jyguo@pku.edu.cn |
421316f64e6767eb54d7e1b4351d921a48b5a002 | e57d7785276053332c633b57f6925c90ad660580 | /sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policy_operation_results_operations.py | 7f2085e9859ca31d51d469884b033b61357d8c8b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 5,236 | 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"
] | adriananeci.noreply@github.com |
2a5e83c5e9b26ae41173ccc7e6577802969b9966 | 3db89b4f5ada46de1534e65e1ddf38d5fb10202a | /cookiespostform/testapp/views.py | ad081fc8a6ad25b3cd0f4929773c837725a95232 | [] | no_license | abhinav375/DjangoProjects | 42a5744527a5cf170daa2af3369e5652a5e87591 | 9d7de14631f8e2b57c66b517da240e36872b11c3 | refs/heads/master | 2022-11-12T14:05:51.983610 | 2020-07-11T08:32:59 | 2020-07-11T08:32:59 | 278,821,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from django.shortcuts import render
from . import forms
# Create your views here.
'''COOKIES CODE'''
def index(request):
form=forms.studentRegustration()
response=render(request,'testapp/wish.html',{'form':form})
if request.method=='POST':
print('inside post')
form=forms.studentRegustration... | [
"you@example.com"
] | you@example.com |
eaf5393d03c4bfada9933355ce396fc33623620d | 584e9c42e6240b9facc866703a6f26b06773df94 | /Oreilly/index_power.py | 16e65372a6b847c25ea55fe8a59c26a35c99ad56 | [] | no_license | anton-dovnar/checkio | 48fbaf84c244b0fca7bed5cf7f34179cf850adf9 | 10aed757ec36f182871a03ed8c9e73319cc8824a | refs/heads/master | 2023-03-24T16:23:39.524060 | 2021-03-12T13:07:04 | 2021-03-12T13:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | #!/home/fode4cun/.local/share/virtualenvs/checkio-ufRDicT7/bin/checkio --domain=py run index-power
# You are given an array with positive numbers and a number N. You should find the N-th power of the element in the array with the index N. If N is outside of the array, then return -1. Don't forget that the first ele... | [
"fode4cun@gmail.com"
] | fode4cun@gmail.com |
567a743c25df140f8aaac2ceef3ce8511d071da6 | b1e7286dbd522cd5eecd7b686d446f1645681f66 | /src/backend/datasets/migrations/0015_proj_exp_run_unique.py | 35a96b742c3023906426a34aa931b838743710a2 | [] | no_license | glormph/kantele | 69f9c040a885b7b4ff412db945fafb7b4cfc7c07 | 6b8dfea90968ad34db95e2c0e37289288330f6d3 | refs/heads/master | 2023-08-07T13:51:32.595737 | 2023-07-20T09:15:02 | 2023-07-20T09:15:02 | 7,146,448 | 3 | 2 | null | 2023-09-13T08:20:15 | 2012-12-13T10:25:42 | Python | UTF-8 | Python | false | false | 696 | py | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('datasets', '0014_merge_duplicate_projects'),
]
operations = [
migrations.AlterField(
model_name='project',
name='name',
field=models.TextField(unique=Tru... | [
"jorrit.boekel@scilifelab.se"
] | jorrit.boekel@scilifelab.se |
7b5b2cfee06f7fc847e10c4a981a7a5955ab1d0b | 11aaeaeb55d587a950456fd1480063e1aed1d9e5 | /.history/ex45-test_20190608175151.py | f62ed598c4c6b6f8d7975013b865de111467448e | [] | no_license | Gr4cchus/Learn-Python-3-The-Hard-Way | 8ce9e68f6a91ea33ea45fe64bfff82d65422c4a8 | f5fa34db16cdd6377faa7fcf45c70f94bb4aec0d | refs/heads/master | 2020-05-17T23:18:29.483160 | 2019-06-26T18:42:52 | 2019-06-26T18:42:52 | 184,023,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py |
class Room1():
def enter():
print("You enter room 1")
class Room2():
def enter():
print("You enter room 2")
class Map():
def __init__(self, starting_room):
self.starting_room = starting_room
self.locations = {
'room1': Room1,
'room2': Room2
... | [
"ahivent@gmail.com"
] | ahivent@gmail.com |
4ac036ed6281c7ea308ec337312bb37f199de5f4 | a3d058c6a80d4068fa4d3185ddd2dec91abc82d7 | /merge_sort.py | ec31be8a8d73eaaca1cf87b074ff8b196a0dcbc5 | [] | no_license | guard1000/Everyday-coding | d6f496654b635738a4284270f6c5d285116a760e | 7755f99cdb512d623392af82282bf17b47cb77f2 | refs/heads/master | 2021-08-18T22:26:04.322162 | 2021-07-21T14:53:28 | 2021-07-21T14:53:28 | 161,440,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | def mergeSort(alist):
if len(alist)>1:
mid = len(alist)//2 #mid를 기준으로
lefthalf = alist[:mid] #리스트 슬라이싱으로 분할
righthalf = alist[mid:]
mergeSort(lefthalf) #재귀 호출
mergeSort(righthalf)
i=0
j=0
k=0
while i < len(lefthalf) and j < len(right... | [
"cjsdnr885@naver.com"
] | cjsdnr885@naver.com |
0c66d8a9ced9f7ec361a037765805fa6792abdb6 | 072e68a2edddd98e3d534207169e9bbd0dda86d1 | /math_/math_floor.py | 4765869282478340137655799f4efff8588d714f | [] | no_license | raul-jr3/PyTuts | 22f6171476f707acdb5beb80fc7974202c765717 | 546d92676ce5790a5865349ff11adc35b245bb09 | refs/heads/master | 2020-03-07T09:34:18.240237 | 2018-03-30T12:43:34 | 2018-03-30T12:43:34 | 127,411,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py |
import math
# FLOOR
# the floor function returns the largest integer which is less than or equal to the
# number on which floor is applied
a = 23.66
# so when the floor is applied on 23.66 the greatest value which is <= 23.66 is 23.0
result = math.floor(a)
# so this returns 23.0
print(result)
# and if we have a ... | [
"rahul.srivatsav1995@gmail.com"
] | rahul.srivatsav1995@gmail.com |
aff6565707f7b4e3ab9e9b6d44ff5ca4a8df9e0f | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /leetcode/problems/1227.airplane-seat-assignment-probability.py | 5ea53e78f549aa1ca11296ef89c68e5f4bb6a8f1 | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | #
# @lc app=leetcode id=1227 lang=python3
#
# [1227] Airplane Seat Assignment Probability
#
# https://leetcode.com/problems/airplane-seat-assignment-probability/description/
#
# algorithms
# Medium (61.16%)
# Total Accepted: 2.6K
# Total Submissions: 4.2K
# Testcase Example: '1'
#
# n passengers board an airplane w... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
f0f8a062872fffa9fc34360a0ee4a31e40c80774 | e5453b6a4b84a32ccca7281d438b7a7fa1853f58 | /src/hmm/checks/huawei_hmm_mezz28_check.py | 96fe9b7fb699bad7f1d4588465e23c627a7e1565 | [
"MIT"
] | permissive | Huawei/Server_Management_Plugin_Check_MK | 88445d9da581c347c5e82cf590453c4cb2c3d53c | 88398c7c8affe0b2064f418de931d69e36afde67 | refs/heads/master | 2021-05-11T11:40:55.302518 | 2021-01-27T09:53:17 | 2021-01-27T09:53:17 | 117,641,709 | 1 | 4 | null | 2018-01-31T05:38:01 | 2018-01-16T06:30:39 | null | UTF-8 | Python | false | false | 1,244 | py | #!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# check_mk is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation in version 2. check_mk is distributed
# in the hope that it will be useful, but... | [
"31431891+serverplugin@users.noreply.github.com"
] | 31431891+serverplugin@users.noreply.github.com |
62627307352f8f7f4837cc9fa705a66e90b039fa | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/0070.0_Climbing_Stairs.py | 2f2e3545798d3174f99fdd72378d905d9ded0543 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | '''
DP
执行用时:48 ms, 在所有 Python3 提交中击败了10.11% 的用户
内存消耗:14.9 MB, 在所有 Python3 提交中击败了59.27% 的用户
通过测试用例:45 / 45
'''
class Solution:
def climbStairs(self, n: int) -> int:
a = b = 1
for _ in range(n - 1):
a, b = b, a + b
return b
'''
DFS + memo
执行用时:40 ms, 在所有 Python3 提交中击败了10.11% 的用... | [
"laoxing201314@outlook.com"
] | laoxing201314@outlook.com |
7a4d0807aba6f1a6a45123141383320c7e47457b | 76e6d4f93078327fef8672133fc75a6f12abc240 | /ABC115/B.py | a7a98c56a06aeac07943f556983967b981e0dbbc | [] | no_license | adusa1019/atcoder | 1e8f33253f6f80a91d069b2f3b568ce7a2964940 | f7dbdfc021425160a072f4ce4e324953a376133a | refs/heads/master | 2021-08-08T04:41:36.098678 | 2021-02-01T07:34:34 | 2021-02-01T07:34:34 | 89,038,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | def solve(string):
ins = list(map(int, string.split("\n")))[1:]
ins.sort()
ins[-1] //= 2
return str(sum(ins))
if __name__ == '__main__':
n = int(input())
ins = [input() for _ in range(n)]
print(solve("{}\n{}".format(n, "\n".join(ins))))
| [
"symphony20030829@yahoo.co.jp"
] | symphony20030829@yahoo.co.jp |
540f50617caf6c1021261198e47bb8183bc6dc47 | 9879c8a1f1ac5884d9220e51c6256bb651fc800e | /pyot/utils/locks.py | 685040cb08256a4e767a743a6490ad93cd67e174 | [
"MIT"
] | permissive | rasmusdoh/Pyot | d260ee37b59cca026c9edd3e9be85f2197604df6 | de5065c55f171bb39691ddc76da99c5f16da94d9 | refs/heads/master | 2023-08-05T15:56:17.726457 | 2021-09-15T20:59:39 | 2021-09-15T20:59:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | from threading import Lock
import asyncio
try: # Delay exception if aioredlock is not installed
from aioredlock import Aioredlock
except ModuleNotFoundError as e:
Aioredlock = e
from .eventloop import LoopSensitiveManager
class SealLock:
'''
An asynchronous threading Lock. The event loop won't be bl... | [
"paaksingtech@gmail.com"
] | paaksingtech@gmail.com |
2eccd7e9659193d54269e649310e0f205b2c5d00 | 777b5c266360b29b6d4af916726abd5d364b74a1 | /mypy_stubs/django/core/files/uploadhandler.pyi | 3950a128c4d65f66db341a6e76f3740782aca4ee | [] | no_license | uryyyyyyy/django-graphql | 44d08afc3e44514270d1d5c183caa9d1c1cf3f88 | f3d6513d2325a8e675e47500cc71d8ef56c01537 | refs/heads/master | 2021-06-10T11:11:45.110271 | 2019-02-28T07:39:54 | 2019-02-28T07:39:54 | 172,325,424 | 0 | 0 | null | 2021-04-20T17:56:57 | 2019-02-24T10:44:31 | Python | UTF-8 | Python | false | false | 1,972 | pyi | # Stubs for django.core.files.uploadhandler (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
class UploadFileException(Exception): ...
class StopUpload(UploadFileException):
connection_reset: Any = ...
def __init__(self, connection_rese... | [
"koki@anymindgroup.com"
] | koki@anymindgroup.com |
7db42065296d3a546b8f9ca6e08852751979f507 | b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a | /examples/pwr_run/checkpointing/final/high_overhead/job74.py | 220089b171b01acea0550fae22e4fd603da2fcd0 | [
"MIT"
] | permissive | boringlee24/keras_old | 3bf7e3ef455dd4262e41248f13c04c071039270e | 1e1176c45c4952ba1b9b9e58e9cc4df027ab111d | refs/heads/master | 2021-11-21T03:03:13.656700 | 2021-11-11T21:57:54 | 2021-11-11T21:57:54 | 198,494,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,348 | py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [
"baolin.li1994@gmail.com"
] | baolin.li1994@gmail.com |
dae1a76cf051ae977abd68756071be26c70941dd | 0db19410e9751790af8ce4a0a9332293e379c02f | /configs/animal_2d_keypoint/topdown_heatmap/ak/td-hm_hrnet-w32_8xb32-300e_animalkingdom_P3_amphibian-256x256.py | 5a83e7a97b9478031f7ca4dcc4dccba0350d432d | [
"Apache-2.0"
] | permissive | open-mmlab/mmpose | 2c9986521d35eee35d822fb255e8e68486026d94 | 537bd8e543ab463fb55120d5caaa1ae22d6aaf06 | refs/heads/main | 2023-08-30T19:44:21.349410 | 2023-07-04T13:18:22 | 2023-07-04T13:18:22 | 278,003,645 | 4,037 | 1,171 | Apache-2.0 | 2023-09-14T09:44:55 | 2020-07-08T06:02:55 | Python | UTF-8 | Python | false | false | 4,070 | py | _base_ = ['../../../_base_/default_runtime.py']
# runtime
train_cfg = dict(max_epochs=300, val_interval=10)
# optimizer
optim_wrapper = dict(optimizer=dict(
type='AdamW',
lr=5e-4,
))
# learning policy
param_scheduler = [
dict(
type='LinearLR', begin=0, end=500, start_factor=0.001,
by_epoc... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
385fe72cda2198ecc51b116e6215cc8c0d8e7955 | 161dcb4b1f3939231728e91a8129a2571842d23a | /unit_09/4.py | 8932eb0bf69d1f4f441ffe3adeef6786a7aeed3f | [] | no_license | bm1120836/21-python | 3162896e1b9e41d57c4249ea5f3bcaf06eef0361 | 8924f9b53e68b08f9203f48b215ea5b3a420d075 | refs/heads/master | 2023-05-03T16:11:42.864607 | 2015-10-01T13:26:29 | 2015-10-01T13:26:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | filename = 'examples/portfolio.csv'
a_file = open(filename)
a_str = a_file.read()
print(a_str)
print(a_file.name)
print(a_file.encoding)
print(a_file.mode)
print('file seek')
print(a_file.seek(0))
print('file read(16)')
print(a_file.read(16))
print('file read(1)')
print(a_file.read(1))
print('file tell')
print(a_file... | [
"janusnic@gmail.com"
] | janusnic@gmail.com |
a0c52d2269793b3e8ea7cec09cd1a740d775da41 | a80874300e561174068bf510608465bb318a35f2 | /guhaisong/edu_information/edu_information/spiders/news_eastday_com_gd2008_world_62.py | 0940c07215ded42feab0cfe34bd4e13ab71c2176 | [] | no_license | lemonbiz/guhaisong | effa8af4b679511e4fa8017d71fe26ab2ce51392 | 029890f8e3c6954efdefb184fa077f2ce646d1df | refs/heads/master | 2022-12-13T08:21:37.911535 | 2020-09-15T16:15:10 | 2020-09-15T16:15:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,061 | py | # -*- coding: utf-8 -*-
import datetime
import scrapy
from urllib.parse import urljoin
from edu_information.commom.commom_method import summay_slice,title_slice,keyman_slice,writer_slice,news_source_slice,requests_detail_page
import re,time
from edu_information.commom.custom_settings import *
from edu_information.comm... | [
"xjl12322@126.com"
] | xjl12322@126.com |
b35f1a4ab850ed9cdbf6edf18e90c57f3efa4b87 | 14028bea18dcd4f89fca2306bf51dcbf6acabb44 | /apps/accounts/migrations/0032_auto_20170519_1322.py | b8a64807200ec938e87b45d1deac6b6a1e3a2b96 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | CMSgov/bluebutton-web-server | 5694c7149d9f2f6efed9a2814c928d8a7539e4cb | fb0904c0b9d77dfb00523fe6ce69b946b640441e | refs/heads/master | 2023-09-01T18:17:31.088628 | 2023-08-25T20:43:14 | 2023-08-25T20:43:14 | 50,062,960 | 30 | 33 | NOASSERTION | 2023-09-14T10:24:34 | 2016-01-20T21:52:00 | Python | UTF-8 | Python | false | false | 1,783 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2017-05-19 13:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0031_auto_20170517_1350'),
]
operations = [
migrations.AddField(... | [
"aviars@videntity.com"
] | aviars@videntity.com |
7f1badc4cc8eeef844cccd8d948e1135d2df5301 | 50cce7441685fdc5b9d1bd2b80272078f637e7c9 | /SingleTop/test/macros/ZjetSF_2.py | e7b64f1dc42fe10dff576632df9ae006aecf38c1 | [] | no_license | dnoonan08/tWAnalysisCode | 4b622177f9401007cf873a295d71b1cee4140396 | 34a3ed1cc92ff317bbebc6c54cb634d32572999a | refs/heads/master | 2021-01-19T20:18:42.857885 | 2014-12-31T04:20:47 | 2014-12-31T04:20:47 | 22,884,401 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | #!/usr/bin/env python
###SF from the Zpeak0jets region
metbins = [ 10, 20, 30, 40, 50, 60, 9999]
sf = [[0.8938539148917144, 0.94500843235182508, 1.0442753286019268, 1.1831266443479298, 1.3636037004840249, 1.5927083462800735, 1.9687105145585893],
[0.82970539332200888, 0.8767422169... | [
"dnoonan@cern.ch"
] | dnoonan@cern.ch |
a14162e5b6a13393930258a65f239c5258f998cc | 68eb441faf3f9415fbcbc8330f9b01ad6933bede | /ebook/machinelearningdemo/MachineLearningDemo/python_day03/Demo02_Dataframe.py | 05cda830db9ce800c5ec102716c80ec285d7354b | [] | no_license | OrriO/jupyter_myworkspace | fb8e97865f15abe2fb3aa01985fdb4f34317f15f | a592ab92f38a1cd466c454bb36fd0002c75202a9 | refs/heads/master | 2023-06-01T02:00:36.986439 | 2021-07-08T13:44:26 | 2021-07-08T13:44:26 | 381,997,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/5 9:18
# @Author : Z
# @Email : S
# @File : Demo02_DataFrame.py
import pandas as pd
df1 = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
print(df1)
print("hello git")
# 添加修改内容
###23点26分
| [
"guojj1@guahao.com"
] | guojj1@guahao.com |
0fd66913e4d6500654e1346a6071f0e86c16f33c | 7b870523b8e432384cff27fd50056da8c6a5b1e3 | /leetcode/083删除排序链表中的重复元素.py | f8238ba6c934f92a34234fd778fd7e26f68308a3 | [] | no_license | ShawDa/Coding | 93e198acdda528da608c62ca5b9e29bb0fb9e060 | b8ec1350e904665f1375c29a53f443ecf262d723 | refs/heads/master | 2020-03-25T09:20:08.767177 | 2019-09-01T06:25:10 | 2019-09-01T06:25:10 | 143,660,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # -*- coding:utf-8 -*-
__author__ = 'ShawDa'
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def deleteDuplicates(self, head: 'ListNode') -> 'ListNode':
if not head or not head.next:
return h... | [
"1315193735@qq.com"
] | 1315193735@qq.com |
f8e8d4ca4ac680377c3eb67bf278605933850dba | c289ba5d699ce015c7f7b7176621057bb8dfe1fa | /Python/algorithm/hanoi_tower/하노이의탑.py | bec0986a931b07758de7dcad219cfe58a5898788 | [] | no_license | sug5806/Upload | abd44985281b7aeadc39c654db099451a285a360 | c7e8ca38b04bdf2076862226cceaeff5ff3cfbc6 | refs/heads/master | 2020-05-03T00:48:53.763042 | 2019-04-08T10:00:11 | 2019-04-08T10:00:11 | 178,318,964 | 0 | 0 | null | 2019-04-01T02:03:14 | 2019-03-29T02:37:45 | Jupyter Notebook | UTF-8 | Python | false | false | 314 | py | n = 0
a = "A" # 출발
b = "B" # 중간
c = "C" # 도착
def hanoi(n, a, b, c):
if n == 1:
print("{}번째 원반을 {}로 이동".format(n, c))
return
hanoi(n-1, a, c, b)
print("{}번째 원반을 {}로 이동".format(n, c))
hanoi(n-1, b, a, c)
hanoi(3, a, b, c) | [
"sug5806@gmail.com"
] | sug5806@gmail.com |
26fccac5a29754168d7ea75db7369492bf854d46 | e669b3fe7da2698da4ce02e98325ce154d2aa546 | /swaps/model/wallet/withdraw.py | 4baa2eb3a0cc154ae15f13a3bd987a77ee669be8 | [
"Apache-2.0"
] | permissive | marcellinamichie291/cash_carry_leveraged_futures_arbitrageur | 0834a911fdd6c9f1462f6f2f59926f715fc51461 | 1120ebfb487ce4987fe70e6645b36e0d7ce041ec | refs/heads/main | 2023-03-16T18:35:28.730554 | 2020-12-04T07:46:13 | 2020-12-04T07:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | from swaps.constant import *
class Withdraw:
"""
The latest status for withdraws.
:member
id: The transfer id.
currency: The crypto currency to deposit.
tx_hash: The on-chain transaction hash.
amount: The number of crypto asset transferred in its minimum unit.
addr... | [
"jare@coindexlabs.com"
] | jare@coindexlabs.com |
51f4f5dc31c811838a7775de5000e66f98945f1b | 1b01dec8c454337232a6cf1046412ec98269fe5d | /examples/sync_example.py | e60390356bcbce9b05c4461bb86460e1f002efa9 | [
"BSD-3-Clause"
] | permissive | lietu/shylock | d38710220306af1e4fac638b2d24df8a8fdc3801 | 5ada3cb4bf75e2395fadb19f68ceff5ff92e6a65 | refs/heads/master | 2023-08-09T06:58:47.653545 | 2023-03-05T16:27:30 | 2023-03-05T16:27:30 | 243,951,853 | 5 | 8 | NOASSERTION | 2023-07-25T21:10:23 | 2020-02-29T10:55:05 | Python | UTF-8 | Python | false | false | 1,196 | py | from time import time
from pymongo import MongoClient
from shylock import Lock, ShylockPymongoBackend, configure
from shylock.backends.pymongo import DOCUMENT_TTL
CONNECTION_STRING = "mongodb://localhost:27017"
def main():
print("Start")
c = MongoClient(CONNECTION_STRING)
configure(ShylockPymongoBacke... | [
"janne.enberg@lietu.net"
] | janne.enberg@lietu.net |
efe2fd91d27dab3e24d2bc319c21afca1f2a83e6 | c309e7d19af94ebcb537f1e8655c0122dbe0cb13 | /Chapter03/01-chapter-content/argparse_positional_arguments.py | 41c0ebbfbbc78a0e5b576c61eab36691762b9e38 | [
"MIT"
] | permissive | PacktPublishing/Mastering-OpenCV-4-with-Python | 0fb82c88cb7205c7050c8db9f95a6deb3b1b3333 | 4194aea6f925a4b39114aaff8463be4d18e73aba | refs/heads/master | 2023-03-07T04:51:16.071143 | 2023-02-13T10:17:48 | 2023-02-13T10:17:48 | 151,057,527 | 375 | 226 | MIT | 2022-08-27T13:32:19 | 2018-10-01T08:27:29 | Python | UTF-8 | Python | false | false | 784 | py | """
Example to introduce argparse with a positional argument
"""
# Import the required packages
import argparse
# We first create the ArgumentParser object
# The created object 'parser' will have the necessary information
# to parse the command-line arguments into data types.
parser = argparse.ArgumentParser()
# We ... | [
"fernandezvillan.alberto@gmail.com"
] | fernandezvillan.alberto@gmail.com |
21ef6f2b8e9d65d3486b9995043fba33e64b7ee2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_205/ch38_2020_03_17_21_32_21_644302.py | 2e02b97d73747423301a36c3f31f3d55c3ad3ac1 | [] | 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 | 193 | py | def quantos_uns(x):
n = 0
x_str=str("x")
while(n<x_srt):
if "1" in x_str:
n+=1
return n
else:
return None
| [
"you@example.com"
] | you@example.com |
a7e8541c94ddc02f2d6400690083c360a1be0115 | e9fa62b4173b83ec0804329e7821a58624d3eb9f | /core/nodes/groupNode.py | c58a9a427c2692759591226e641652614218b466 | [] | no_license | UIKit0/meShaderEd | af5f0c4dc524b8be12ec6336a86c28439f1f3b1a | 683756f9c66d4613d89afdff4d1d014488b199f7 | refs/heads/master | 2021-01-17T21:16:27.037070 | 2013-12-26T12:30:26 | 2013-12-26T12:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | #===============================================================================
# groupNode.py
#===============================================================================
import os, sys
from PyQt4 import QtCore
from core.node import Node
from core.nodeParam import NodeParam
from core.nodeNetwork import NodeNetwo... | [
"Yuri.Meshalkin@gmail.com"
] | Yuri.Meshalkin@gmail.com |
35a6990ff5ac68e8cbda235af7ac71de5d442e3d | 7d56ddd456613b77872598360494edd411366a79 | /tests/test_is_adjacent.py | adf62949215be3e2c359bd244b743528413b6fa4 | [] | no_license | andrewswan/lwotai | 3bf6629eaed86c945fdd65f221320bd743dc18ac | 33c6435ce3f0f85668cc5414cf78c1e9c614f6a9 | refs/heads/release | 2021-01-19T10:38:55.939281 | 2017-09-17T03:38:33 | 2017-09-17T03:38:33 | 87,885,218 | 1 | 0 | null | 2017-04-11T03:41:12 | 2017-04-11T03:41:12 | null | UTF-8 | Python | false | false | 620 | py | from labyrinth_test_case import LabyrinthTestCase
from lwotai.labyrinth import Labyrinth
class IsAdjacent(LabyrinthTestCase):
"""Test isAdjacent"""
def test_is_adjacent(self):
app = Labyrinth(1, 1, self.set_up_blank_test_scenario)
self.assertTrue(app.is_adjacent("Iran", "Iraq"))
self.... | [
"andrew.i.swan@gmail.com"
] | andrew.i.swan@gmail.com |
38d4016261da034fd1ad2793b4f25832785265f8 | 2670452749c6299386a33391f9fb5014db0203ec | /meraki/aio/api/mg_lan_settings.py | e71f434d300a7ebdeef9def563dca0cc0a6c628d | [
"MIT"
] | permissive | npappin-wsu/dashboard-api-python | f9d3fc682b517e6bac437cd54101afd09b653274 | 5aedfc740f676fbf34e5f79269e8ece73421e3da | refs/heads/master | 2020-06-28T17:49:44.911294 | 2020-04-14T04:27:38 | 2020-04-14T04:27:38 | 255,509,439 | 0 | 0 | MIT | 2020-04-14T04:24:55 | 2020-04-14T04:24:54 | null | UTF-8 | Python | false | false | 1,508 | py | class AsyncMGLANSettings:
def __init__(self, session):
super().__init__()
self._session = session
async def getDeviceCellularGatewaySettings(self, serial: str):
"""
**Show the LAN Settings of a MG**
https://api.meraki.com/api_docs#show-the-lan-settings-of-a-mg
... | [
"shiychen@cisco.com"
] | shiychen@cisco.com |
78de78847f7852c794ae07579f9696246ae7fe59 | 02bae0ffc4dea8e65cceb5ef49b8ec30ed3ab0fe | /week5/count_pairs.py | 92d77c4f651c0da25c5fb40badf33e4e6fa641f6 | [] | no_license | Gambrinius/Python_Course | 030ae41a129aa6a4ded06cc1ed9ca852bcf1c756 | 0d7529fa3dcc012b117241900d9d564d4096208b | refs/heads/master | 2020-03-06T16:01:33.322266 | 2018-06-15T17:49:40 | 2018-06-15T17:49:40 | 126,965,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | numList = list(map(int, input().split()))
# print(sum(numList.count(x) - 1 for x in numList) // 2)
counter = 0
for i in range(len(numList)):
for j in range(i + 1, len(numList)):
if numList[i] == numList[j]:
counter += 1
print(counter)
| [
"ilya.konon.95@gmail.com"
] | ilya.konon.95@gmail.com |
ec38145aaa3b9dba8286dd421d20ebdb7df5390f | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_authorized_db_users_request.py | 71cbb2d260e258c598a2112f6a4543e44ec3d044 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,237 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListAuthorizedDbUsersRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4d2747bd95007d60e79741f0a86d8d7132ffc21f | 8ce5ad4d2c6fdf94f34ced61c87e080a54869924 | /ch5/buy_apple_orange.py | fd20dab3d4f17f9ab9957459224cd9f642057ba1 | [] | no_license | fuchami/zero-deep-learning | dabc70841a6ae5b92d9a353a47c10ee0a3d17609 | de423b143ca071530fa64b3efc18b92387932169 | refs/heads/master | 2020-07-03T10:35:37.085132 | 2019-09-06T07:50:40 | 2019-09-06T07:50:40 | 201,879,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | # coding:utf-8
from layer_naive import *
apple = 100
apple_num = 2
orange = 150
orange_num = 3
tax = 1.1
# layer
mul_apple_layer = MulLayer()
mul_orange_layer = MulLayer()
add_apple_orange = AddLayer()
mul_tax_layer = MulLayer()
# forward
apple_price = mul_apple_layer.forward(apple, apple_num)
orange_price = mul_or... | [
"famichiki.yuuki@gmail.com"
] | famichiki.yuuki@gmail.com |
ffdd91659d06d727143545bb500513b60ea0f9c5 | 4869f79cedcb8aef7f4d064bb8927ed3595c4c5e | /AnonymousGroupLogin/RegisterUser/RegisteringComponent/sleekxmpp/__init__.py | 1057895dfac385044b7f120be85a8ee7c23a037c | [] | no_license | mpetyx/xmpp-padgets-development | 622fef069e2b8f6beb15296b0d3fdd554d13535f | a0ca9ed2dd513f83ebb8cb4f4836708c82975713 | refs/heads/master | 2021-01-25T07:34:33.869597 | 2012-03-27T12:45:40 | 2012-03-27T12:45:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
from sleekxmpp.basexmpp import BaseXMPP
from sleekxmpp.clientxmpp import ClientXMPP
from sleekxmpp.componentxmpp import ComponentXMPP
from sleek... | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
588015cc847c31ca5a2a70db1437035557d1592b | 1284718203be50b23dcd1f6159746cfa42a04163 | /tensorflow_data/sawyer/online_data1_fine/conf.py | 27d247ce2a2ed6774e7a2e912beab6b918db7255 | [] | no_license | febert/robustness_via_retrying | 8fe4106d7705228ff339f9643518a80c0a243d36 | 1def282dc22f24b72c51ff1ef9ea1a7a83291369 | refs/heads/master | 2020-03-31T19:33:39.664525 | 2018-11-07T21:52:56 | 2018-11-07T21:52:56 | 152,502,702 | 17 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | import os
current_dir = os.path.dirname(os.path.realpath(__file__))
# tf record data location:
DATA_BASE_DIR = '/'.join(str.split(current_dir, '/')[:-3]) + '/pushing_data'
BASE_DIR = '/'.join(str.split(current_dir, '/')[:-3])
# local output directory
OUT_DIR = current_dir + '/modeldata'
from python_visual_mpc.video_p... | [
"sdasari@berkeley.edu"
] | sdasari@berkeley.edu |
126b9836584a362317e832bf74cc2bbc7a083f1b | 18d51ac0a6ca14c8221c26f0dacd8d3721ca28e9 | /hun59.py | baa5b5f1fb712f457c9f7d03882e9ee6df6b936d | [] | no_license | mahakalai/mahak | 05f96d52880ed7b2e5eb70dd1dbf14fc533236e8 | 613be9df7743ef59b1f0e07b7df987d29bb23ec7 | refs/heads/master | 2020-04-15T05:01:58.541930 | 2019-07-15T16:28:32 | 2019-07-15T16:28:32 | 164,406,486 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | n=int(input())
l=[int(x) for x in input().split()]
l2=[int(x) for x in input().split()]
c=[]
for i in range(len(l)):
s=l[i]+l2[i]
c.append(s)
print(*c)
| [
"noreply@github.com"
] | mahakalai.noreply@github.com |
ecfed22a55a201c3f82849c3350765d7d6ff4eba | 881041fab1b4d05f1c5371efed2f9276037eb609 | /tasks/gender-of-subject-officers-compared-to-new-york-city-police-department-demographics-2005-2009/depositor.py | 9a7c26eb798400b152d2480a759e5404a12e4edc | [] | no_license | ResidentMario/urban-physiology-nyc-catalog | b568f3b6ee1a887a50c4df23c488f50c92e30625 | cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c | refs/heads/master | 2021-01-02T22:43:09.073952 | 2017-08-06T18:27:22 | 2017-08-06T18:27:22 | 99,377,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import requests
r = requests.get("https://data.cityofnewyork.us/api/views/jhq9-vaec/rows.csv?accessType=DOWNLOAD")
with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/gender-of-subject-officers-compared-to-new-york-city-police-department-demographics-2005-2009/data.csv", "wb") as f:
f.write(r.content... | [
"aleksey.bilogur@gmail.com"
] | aleksey.bilogur@gmail.com |
dc310ccf36c09943bcf439e31b5b6381c1913d7e | 52ab2da7b131643a344ee5344d8f35aebd6e2eed | /WebProject1/myvenv/lib/python3.6/site-packages/sqlalchemy/sql/__init__.py | 8968d2993b0f5da270970be936ef2021846d8b59 | [
"MIT"
] | permissive | ucsb-cs48-w19/5pm-findtheroommate | cd6db6c4cf3ee6f159b04456ba13b1ef684c7546 | d9d01b95c478e7493b5b32c8b56ceed00578b188 | refs/heads/master | 2020-04-16T01:00:16.617610 | 2019-03-19T20:42:38 | 2019-03-19T20:42:38 | 165,158,037 | 2 | 1 | MIT | 2019-03-05T00:46:12 | 2019-01-11T01:28:11 | Python | UTF-8 | Python | false | false | 3,753 | py | # sql/__init__.py
# Copyright (C) 2005-2019 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from .expression import Alias # noqa
from .expression import alias # noqa
from .ex... | [
"tengyue@umail.ucsb.edu"
] | tengyue@umail.ucsb.edu |
bfa7b1112caec573c39a7a869fab1368f335267a | 14c9f543d540d318d30d7acffb636e47b5d62f0a | /ctrl/ctrl/session_parameters/temi/robot_axioms.py | 3af95e75a3eae08a9f59e0ac3f2ffa37f12f4be8 | [] | no_license | Wisc-HCI/Figaro | cecd71d0f179bcfe413b657e9a8dc02be015eff6 | 20ae549dc53064d3d4f203e623e71220a3cde1e7 | refs/heads/master | 2023-04-27T11:40:02.969537 | 2021-05-19T16:26:12 | 2021-05-19T16:26:12 | 358,723,686 | 0 | 1 | null | 2021-05-17T20:54:53 | 2021-04-16T21:29:01 | Python | UTF-8 | Python | false | false | 3,917 | py | class RobotAxioms:
def __init__(self):
pass
def ensure_position_and_movement_overlap(self,moments):
# if movement is currently True and position is SOMETHING, and (1) the next movement is False and (2) the next position is ["X"], then add "movement" to the nexr position
for i in range(len(moments)-1):
curr... | [
"dporfirio@wisc.edu"
] | dporfirio@wisc.edu |
42a5eabd43a28f32e8d007c07ca5aae29e454e35 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/1165/codes/1756_1576.py | 83c8a894e2fa689875e700b54fc225283acbf3c8 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from numpy import*
#Sequencia de jogadas de Eusápia
v1 = array(eval(input("Insira a sequencia: ")))
#Sequencia dejogadas de Barsanulfo
v2 = array(eval(input("Insira a sequencia: ")))
i = 0
ve = 0
vb = 0
while(i < size(v1)):
if(((v1[i]== 11) and (v2[i]==33)) or ((v1[i]==22) and (v2[i]==11)) or ((v1[i]==33) and (v2[... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
03901fefe164445132e86bddd2aa7e411d6aeea7 | 9124e66c8ec04e61537473437a92b53daa32ce20 | /rojas/app19.py | 65d6e760247d6d6473079299176ccd573657bac7 | [] | no_license | erick1984linares/t10_linares_rojas | 28618baccb3472fb8d48b34f5d1107b702c399d0 | ba9462b3b881dbd3665907a7a33c4c7d80aa4251 | refs/heads/master | 2020-12-04T06:38:06.929626 | 2020-01-10T11:52:29 | 2020-01-10T11:52:29 | 231,661,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from Rojas import libreria
oppcn=0
limit=3
while (oppcn != limit):
print("########################")
print("# MENU #")
print("########################")
print("# 1. Agregar anotacion #")
print("# 2. Ver agregados #")
print("# 3. Salir #")
print("############... | [
"ylinares@unprg.edu.pe"
] | ylinares@unprg.edu.pe |
5856fc7d02728c47ba6b6baf94230d6063b3e862 | 55c64c7a78c5f78f35f84ae1fce60d387ba11040 | /bc4py/chain/workhash.py | 9d2a80975c3daa597969793d516bf0fa1df853e0 | [
"MIT"
] | permissive | kmn/bc4py | df580de46456fed860e7fc0a812f5b46e04483c3 | 8f9ee09ed1325faad8c361a9b6c1b5abbc93cbc1 | refs/heads/master | 2020-04-13T06:04:32.273534 | 2018-12-18T02:48:41 | 2018-12-18T02:48:41 | 163,010,903 | 0 | 0 | null | 2018-12-24T17:16:21 | 2018-12-24T17:16:21 | null | UTF-8 | Python | false | false | 7,130 | py | from bc4py.config import C, BlockChainError
from multiprocessing import get_context, current_process
import threading
import logging
from os import urandom
from time import time, sleep
from yespower import hash as yespower_hash # for CPU
from x11_hash import getPoWHash as x11_hash # for ASIC
from hmq_hash import getP... | [
"thhjuu@yahoo.co.jp"
] | thhjuu@yahoo.co.jp |
2f41fce2486a6fd898fa969a55cd13b94650392e | 882c865cf0a4b94fdd117affbb5748bdf4e056d0 | /python/BOJ/08_DP/1915_가장큰정사각형.py | 553f36b68765d60dd1500395a58dfec90db8a5c6 | [] | no_license | minhee0327/Algorithm | ebae861e90069e2d9cf0680159e14c833b2f0da3 | fb0d3763b1b75d310de4c19c77014e8fb86dad0d | refs/heads/master | 2023-08-15T14:55:49.769179 | 2021-09-14T04:05:11 | 2021-09-14T04:05:11 | 331,007,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | n, m = map(int, input().split())
arr = [[0 for _ in range(m+1)] for i in range(n+1)]
DP = [[0 for _ in range(m+1)] for i in range(n+1)]
ans = 0
for i in range(n):
for idx, j in enumerate(list(map(int, list(input())))):
arr[i+1][idx+1] = j
for i in range(1, n+1):
for j in range(1, m+1):
if arr[... | [
"queen.minhee@gmail.com"
] | queen.minhee@gmail.com |
9e81fd44c79e908e7b9db8f27e74f9b6311874d5 | 2c7de112498f65c7b6a74888490266ec6c772e47 | /PDSim/core/journal_bearing.py | 04b5ebc907b447af1da97d9e2d092cf83768c42a | [] | no_license | bansal16/pdsim | 16c83dfc1af9816c369e07b6ef50e74658359c22 | 9098086c558d6b23c25d1b9e45ea86186905f41a | refs/heads/master | 2020-12-31T01:48:08.672061 | 2015-04-08T02:14:09 | 2015-04-08T02:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | from __future__ import division
import numpy as np
from math import pi, atan
import scipy.optimize
import matplotlib.pyplot as plt
N = 61
#e_mat=[0.2,0.25,0.3,0.35,0.4,0.5,0.6,0.7,0.8,0.9];
phi_star = pi
def TwoDGriddedIntegrate(I,N):
# Average the center of each cell based on its neighboring nodes
... | [
"ian.h.bell@gmail.com"
] | ian.h.bell@gmail.com |
146eda27bba2e7af27bc4756c5c0cd8650510af9 | 60e38d3122cfb18cf8901e0d7fba02ef2a32affa | /notebooks/converted_notebooks/rotate_and_crop_images.py | 3f4def955ba5f7466af281090a2d737a65fe3d19 | [
"BSD-3-Clause"
] | permissive | earnestdl/python_notebooks | ac11b40d9d5e721b947b083b2f4c301079f206a8 | 4ef31711b70b90cf621e9e9d094fa2a43eeeae16 | refs/heads/master | 2023-03-12T19:41:44.229158 | 2021-02-22T15:41:57 | 2021-02-22T15:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.5.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# [:
pass
@command
def do_pause(self, arg, arguments):
"""
Usage:
pause [MESSAGE]
Displays the specified text then waits for the user to press RETURN.
Arguments:
MESSAGE mes... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
bbc7675acc7ac35bcfd976febc56886686fd3b6c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_317/ch19_2020_10_07_12_53_37_322833.py | b1a16cdb8cabc49234e4f11bf87e85323c500893 | [] | 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 | 225 | py | def classifica_triangulo(a,b,c):
if a == b and b==c and c==a:
return "equilátero"
elif a!=b and b!=c and c!=a:
return "escaleno"
elif a==b and b==c and c!=a:
return "isósceles" | [
"you@example.com"
] | you@example.com |
f69dafe7e3cd2bba8f46924f56fc36ccaeb49bb1 | a3d0e224a2a8487f8d271991b3cf1981b9e58791 | /python/PoissonDistribuition/solution/PoissonDistribII.py | 4c246a2f1086dd71d25a654cf77052b7b7aca74e | [] | no_license | chrislucas/hackerrank-10-days-of-statistics | c66306f55ca7e0080cecebfed497b5032f8a0007 | 94fce754274ad706b44b06f9d6ff8d96838c80d0 | refs/heads/master | 2020-03-25T23:48:11.992249 | 2018-12-05T17:35:21 | 2018-12-05T17:35:21 | 144,293,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | '''
https://www.hackerrank.com/challenges/s10-poisson-distribution-2/problem
'''
from math import e as E
def factorial(n):
acc = 1
for i in range(n, 1, -1):
acc *= i
return acc
def poisson_distribution(success, avg):
return ((avg ** success) * (E ** (-avg))) / factorial(success)
'''
a = 0... | [
"christoffer.luccas@gmail.com"
] | christoffer.luccas@gmail.com |
736fc586eeb80e5b1b5a212f088fc98d4a063837 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/python/ops/array_grad.pyi | 0ce04ead67f2347cf2ccd72e01a31d5ad3c5b6c6 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | pyi | # Stubs for tensorflow.python.ops.array_grad (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
from tensorflow.python.eager import context as context
from tensorflow.python.framework import constant_op as consta... | [
"matangover@gmail.com"
] | matangover@gmail.com |
5c899471a1f6911eedcac4f5185958ee38057e03 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/blis/tests/common.py | 643d09ec1fd370778e9270a7a94dc2d2f13b6eea | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:9047f9d9f85d18d5f16a141581ac46738f83c8e1b9d1ceff33a90c06e9979143
size 2577
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
aac470ddd0fd3c5e81d63ee500ed64596d8d060c | d9b2805a8b39f147bd77e35c8e96e0cbd5eaa726 | /학교 공부/3학년1학기/운영체제 - 김정준/텀과제/osProject_피드.py | 28c84c62698c8a349e6894f628b2c94152b2f5c3 | [] | no_license | LeeInHaeng/Study | ca8e3e2d4111dc3f742eefea541a67739d729e75 | 96bdb1d224702cebb8a6de6bbd596b075ee33f7b | refs/heads/master | 2020-03-28T11:03:03.848316 | 2019-04-20T08:33:26 | 2019-04-20T08:33:26 | 148,172,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | import threading
import random
import time
customCnt = int(input("전체 고객의 수를 입력하세요 : "))
bank = int(input("은행 창구의 수를 입력하세요 : "))
sem = threading.Semaphore(bank) # 세마포 객체 생성, ~개의 쓰레드로 제한
vip_sem = threading.Semaphore(1)
class RestrictedArea(threading.Thread):
def run(self):
# self.getName() : T... | [
"lih0420@naver.com"
] | lih0420@naver.com |
17382c82886a6f79476e82a3746c9219c595aa7c | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /product/models/res_partner.py | 9d36b9fcfddf842d91ea1defac36b635e4999208 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api
class Partner(models.Model):
_name = 'res.partner'
_inherit = 'res.partner'
# NOT A REAL PROPERTY !!!!
property_product_pricelist = fields.Many2one(
'prod... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
cc9344aa970edeb891170348018e4f20b39b2bc2 | 1581bacbb7e7ed2f97aa1fb903ca0cf1a351be14 | /lib/framework/__init__.py | e7df70e79c346c3778f3fc2b43c63503b14059ef | [] | no_license | COOHU-Kr/SJVA3 | f5b7287aaa658287b003300e1973b63d2f6ac567 | ef68c085d980d0eb395da21f89cf999eeca8f980 | refs/heads/main | 2023-04-12T08:58:29.074902 | 2021-05-16T12:30:02 | 2021-05-16T12:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,488 | py | # -*- coding: utf-8 -*-
version = '0.2.20.10'
#########################################################
# python
import os
import sys
import platform
path_app_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
path_data = os.path.join(path_app_root, 'data')
flag_system_loading ... | [
"cybersol@naver.com"
] | cybersol@naver.com |
c132e2ae4180e29a9a299525b1e4ec34899ea39a | d2eaacf8189655051d0d078e39a4d924df215b96 | /termtables/__about__.py | 699d5d53309c216bc4352884aae952bc2dc24cd2 | [
"MIT"
] | permissive | jayvdb/termtables | 4fdee11ec5b713c542c0d26aa00be0103db55787 | 5508afa6d813081355d95d80f5471f2d9ada738a | refs/heads/master | 2020-08-20T12:01:02.779004 | 2019-09-26T08:48:31 | 2019-09-26T08:48:31 | 216,020,488 | 0 | 0 | MIT | 2019-10-18T12:36:25 | 2019-10-18T12:36:22 | null | UTF-8 | Python | false | false | 267 | py | __author__ = "Nico Schlömer"
__email__ = "nico.schloemer@gmail.com"
__copyright__ = "Copyright (c) 2019 {} <{}>".format(__author__, __email__)
__license__ = "License :: OSI Approved :: MIT License"
__version__ = "0.1.0"
__status__ = "Development Status :: 4 - Beta"
| [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
6785637051cfb8ea05984b5fe150317fe94fb5fb | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /zRm6YDfQHoesdc3rb_23.py | f98bf044cde1ef882771ddac94ca7a7d1163f5aa | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | """
Let there be a square matrix, where each square is a rectangle, and a
combination of more squares are also rectangles. To find the number of
rectangles, Pete sat down and started counting... but that's highly
inefficient.
Create a function that takes the order of the matrix as input and returns the
number of re... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3d72b403ae7bfb81b3d7bc29b76b7c477254a591 | d25a8b0e9f8a4f48504a49e094085f92d8d8e08a | /doc_db/db_utility.py | 7e8a6fd740a58b26dbba23e873fb50e127b99381 | [
"MIT"
] | permissive | William-Lake/doc_db | c7ad963bc0ff3a75b9a690bf44025e2aa6d1773b | 022b3e08d10d104fd838c7a094091e78d771ebe1 | refs/heads/master | 2020-03-31T01:34:59.815672 | 2019-01-30T18:36:39 | 2019-01-30T18:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import logging
from peewee import *
from database import *
class DatabaseUtility(object):
def __init__(self):
self.logger = logging.getLogger()
self.logger.info('DatabaseUtility Loaded')
def get_saved_doc_names(self): return [Doc.name for doc in Doc.select(Doc.name)]
def get_doc_by_nam... | [
"noreply"
] | noreply |
d4128909b323bf4c9ffdb7a50cb441e3b45941ec | 2eff7fdb6b4d61341c66e6afbf1ba63c67394d72 | /.history/codes_20201115144555.py | 079c1938cbf7e8425a8f965983bbb47a1a63132e | [] | no_license | E-STAT/speech_datacamp | 6b07390954b733d78768b24e18002579d744b58a | 8999629b0053e8662fc54ebb161f3a8a4f74d09d | refs/heads/master | 2023-01-21T06:13:40.909833 | 2020-11-23T12:32:42 | 2020-11-23T12:32:42 | 315,310,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | import wave
import numpy as np
import matplotlib.pyplot as plt
# Create audio file wave object
good_morning = wave.open('good_morning.wav', 'r')
# Read all frames from wave object
signal_gm = good_morning.readframes(-1)
# View first 10
print(signal_gm[:10])
########################Converting Soundwave byte to inte... | [
"owojori.tolulope@gmail.com"
] | owojori.tolulope@gmail.com |
c9e642a44b968079964309823b5b11beb0050205 | 905020fce75b4b63517ec31c601e721f5c260cd1 | /Тестирование is_prime().py | f87456f26c0167831c8087dac86c87e727c705f9 | [] | no_license | Dimaed90800/Python_Y | 7858ad46309281a89c5c1e83a0f09030996182a4 | 04092b854605cb05df439eeeb52003e585bb5a29 | refs/heads/main | 2023-01-24T04:11:17.858281 | 2020-11-17T20:42:45 | 2020-11-17T20:42:45 | 313,731,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from yandex_testing_lesson import is_prime
ans = ''
prime_nums = ['2', '3', '5', '7', '11', '13', '17', '19', '23', '29', '31',
'83', '89', '97', '101', '103', '107', '109']
for i in prime_nums:
if is_prime(i) in prime_nums:
ans = 'YES'
else:
ans = 'NO'
complicated... | [
"noreply@github.com"
] | Dimaed90800.noreply@github.com |
9036422dcea82e711dfe2869f7bd5fd22ae042fc | 38fb82ff9f5ecee937cb950889335402aba2c7a6 | /route/migrations/0003_suggest_description.py | 18fdd3df086e6356dcde63674aefc2a8cd5563c2 | [] | no_license | squallcs12/vivu2017 | abe9c42cfd831de3411c1b986b6d5c4c4099808a | c6a3f37ee238464c9bf9de61a1c6e9f5be21f40f | refs/heads/master | 2021-01-11T22:36:21.289404 | 2017-02-02T08:11:19 | 2017-02-02T08:11:19 | 78,998,307 | 0 | 0 | null | 2017-02-02T08:11:20 | 2017-01-15T04:55:01 | Python | UTF-8 | Python | false | false | 486 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-24 05:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('route', '0002_auto_20170124_0431'),
]
operations = [
migrations.AddField(
... | [
"daotranbang@gmail.com"
] | daotranbang@gmail.com |
06080b3fb0a23b3b4bc63e89f195003d3c5f50f8 | 9a9088713c917ac47c0b8713d6969b2cfcdbadac | /leetcode_python/829.Consecutive_Numbers_Sum.py | 2b564ef821aabab0906660d0a0f99482b9bb0ad7 | [] | no_license | zihuaweng/leetcode-solutions | 615fdcb9178b19764b4d30bcfe65a9f785e77270 | e431ff831ddd5f26891e6ee4506a20d7972b4f02 | refs/heads/master | 2023-02-06T03:58:26.413711 | 2020-12-26T05:23:03 | 2020-12-26T05:23:03 | 311,418,790 | 4 | 7 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #!/usr/bin/env python3
# coding: utf-8
# Time complexity: O()
# Space complexity: O()
# https://leetcode.com/problems/consecutive-numbers-sum/
# https://leetcode.com/problems/consecutive-numbers-sum/discuss/129015/5-lines-C%2B%2B-solution-with-detailed-mathematical-explanation.
class Solution:
def consecutiveNum... | [
"zihuaw2@uci.edu"
] | zihuaw2@uci.edu |
4b3fe77e2e0a1432c7500cff79ec5504e9928a0f | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenSearchboxDowngradePreconsultModel.py | 6939163275bc9a2554845ced061bb3ab165d749c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 883 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenSearchboxDowngradePreconsultModel(object):
def __init__(self):
self._box_id = None
@property
def box_id(self):
return self._box_id
@box_id.setter
def b... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
5170e8a9d1354e33d0bbb1a8e191b448f5397bdd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03167/s315916496.py | 8af060443edca9f35df49dadab2a2d70859c258b | [] | 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 | 508 | py | #dt = {} for i in x: dt[i] = dt.get(i,0)+1
import sys;input = sys.stdin.readline
inp,ip = lambda :int(input()),lambda :[int(w) for w in input().split()]
M = 10**9+7
h,w = ip()
grid = [input().strip() for i in range(h)]
dp = [[0]*w for i in range(h)]
dp[0][0] = 1
for i in range(h):
for j in range(w):
if i-1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
568313b9e57d494a2f69cf8e3b087d4be843b081 | d0fe291905e1be001b3407c38e4d9702e94d7d42 | /ar/register_device.py | c5ee21483d7a3f300f479fe1124ef28a36308029 | [] | no_license | storvik/pythonremote | f508a4913fe653e51006a8456bbbf5b0aced9fd7 | a880a585a70c8a853b736ecb09f0712c96f2614b | refs/heads/master | 2021-01-01T06:33:18.628235 | 2015-09-21T04:46:34 | 2015-09-21T04:46:34 | 25,593,912 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,210 | py | import os
import string
import requests
import urllib
from .gcm import Gcm_req
from .color import color, green, red, yellow
from .load_device import load_device
from .load_computer import load_computer
from .unshorten_url import unshorten_url
# Register new device to autoremotedevices.txt
def register_device(config_p... | [
"="
] | = |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.