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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db06ec79437b5fec5dd8a6154fc72aafe2ba691a | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/session/_admin_update_game_session_member.py | 0cfbe740caa10f08efc0ff3f32d4ca2edae4c635 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,622 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Session Service (2.22.2)
# pylint: disable=duplicate-code
# ... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
00a2f8092e27e95dfa914d874b0b8943e4cac22d | 1431cf722b926207f2777bd238d5cd030e4c0744 | /exshell/ex_python.py | c167b0c632ce27cb7008c387027973d40f7c072a | [] | no_license | bedreamer/plane-ui | d96f8b6b09b955e278cf63289897733de0de69bb | 19f5879c50bc5ecc12a2340f7f9d0e7864735001 | refs/heads/master | 2020-07-28T02:42:09.751249 | 2019-09-19T13:29:11 | 2019-09-19T13:29:11 | 209,282,512 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # -*- coding: utf-8 -*-
import profile
import sys
import os
__doc__ = """平台默认python操作接口"""
__usage__ = __doc__ + """
Usage: python [command] {parameters}"""
def main(ctx, cmd, *args):
if ' ' in sys.executable:
execute_path = ''.join(['"', sys.executable, '"'])
else:
execute_path = sys.execut... | [
"bedreamer@163.com"
] | bedreamer@163.com |
41d5d45967b3ba4d4268c4d4dc5581986b31e78f | 2f989d067213e7a1e19904d482a8f9c15590804c | /lib/python3.4/site-packages/allauth/socialaccount/providers/edmodo/provider.py | 751de91ffa5a8f304c3c5e15eea9edcd69abb947 | [
"MIT"
] | permissive | levabd/smart4-portal | beb1cf8847134fdf169ab01c38eed7e874c66473 | 2c18ba593ce7e9a1e17c3559e6343a14a13ab88c | refs/heads/master | 2023-02-18T05:49:40.612697 | 2022-08-02T09:35:34 | 2022-08-02T09:35:34 | 116,001,098 | 0 | 1 | MIT | 2023-02-15T21:34:01 | 2018-01-02T10:00:07 | Roff | UTF-8 | Python | false | false | 1,086 | py | from allauth.socialaccount import providers
from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider
class EdmodoAccount(ProviderAccount):
def get_profile_url(self):
return self.account.extra_data.get('profile_url')
de... | [
"levabd@gmail.com"
] | levabd@gmail.com |
96bc3ffe27abcd7c712182e049bc0293c2dac27f | b535aa6260350f2f19f93b02b4fda5ab6f8eb3fe | /tests/conftest.py | bb965e89848bdd0248461ed076ae78e1f3abec0d | [
"MIT"
] | permissive | nexB/Lawu | e5d3b9ac5c855f204953ff98501960e633a1ff61 | d9e4f79ea2d805f6d64c160c766c033a031403e1 | refs/heads/master | 2023-07-23T15:40:34.103991 | 2019-06-06T00:14:13 | 2019-06-06T00:14:13 | 258,251,793 | 0 | 0 | MIT | 2020-04-23T15:40:05 | 2020-04-23T15:40:04 | null | UTF-8 | Python | false | false | 215 | py | from pathlib import Path
import pytest
from jawa.classloader import ClassLoader
@pytest.fixture(scope='session')
def loader() -> ClassLoader:
return ClassLoader(Path(__file__).parent / 'data', max_cache=-1)
| [
"tk@tkte.ch"
] | tk@tkte.ch |
4eaba41a750842ffcf74d1a7aeaafc267d40c819 | e38d634d508578523ac41b3babd0c1e618dec64b | /getHeightOfTree.py | 6bd1738056108dbdb3e4c6aeae7a9846135316ee | [] | no_license | hebertomoreno/PythonScr | d611e1e683ffc1566d51ae4d13362b94820c9af7 | b77d22519ada971a95ff7f84f205db11fd492bca | refs/heads/master | 2023-03-23T11:50:40.391715 | 2017-05-24T17:01:31 | 2017-05-24T17:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | class Node:
def __init__(self,data):
self.right=self.left=None
self.data = data
class Solution:
def insert(self,root,data):
if root==None:
return Node(data)
else:
if data<=root.data:
cur=self.insert(root.left,data)
root.left=cur
else:
cur=self.insert(root.right,data)
root.right=cur
... | [
"nikolasmurdock@gmail.com"
] | nikolasmurdock@gmail.com |
8ce348f31e1f6bf8afdd77cb87db214d89dc6267 | 6497bc5638453877744c900f7accef0203f36e89 | /landmark_point/main.py | 2eae1dc481c8cee6da5cd4e3cbda9e4bb793fd6b | [] | no_license | budaLi/leetcode-python- | 82e9affb3317f63a82d89d7e82650de3c804a5ac | 4221172b46d286ab6bf4c74f4d015ee9ef3bda8d | refs/heads/master | 2022-01-30T00:55:26.209864 | 2022-01-05T01:01:47 | 2022-01-05T01:01:47 | 148,323,318 | 46 | 23 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | # @Time : 2020/4/26 16:14
# @Author : Libuda
# @FileName: main.py
# @Software: PyCharm
# 打开6个子集 取出图片及其98真实关键点
# 打开检测数据 5点
# 计算nme auc fr等 写入 问价
| [
"1364826576@qq.com"
] | 1364826576@qq.com |
193a470139e9e8268bcb2f631f03957ec8370be5 | c26c190986c1f30e6cc6f9a78fc56f6652536860 | /cryptofeed/kraken/kraken.py | cb47092badbf27b1d80f19f92c5bb320d1ed9b9e | [
"Python-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | gavincyi/cryptofeed | 92d89589e80f746d7206c90684c68446f0c07e59 | 6bac86237c57b697fb91b8193c71c2e7a615d4d2 | refs/heads/master | 2020-04-14T14:26:01.595616 | 2019-01-10T22:41:25 | 2019-01-10T22:41:25 | 163,896,590 | 0 | 0 | NOASSERTION | 2019-01-02T22:34:29 | 2019-01-02T22:34:28 | null | UTF-8 | Python | false | false | 4,127 | py | import asyncio
from decimal import Decimal
import time
from sortedcontainers import SortedDict as sd
from cryptofeed.feed import RestFeed
from cryptofeed.defines import TRADES, BID, ASK, TICKER, L2_BOOK, KRAKEN
from cryptofeed.standards import pair_exchange_to_std
import aiohttp
class Kraken(RestFeed):
id = KR... | [
"bmoscon@gmail.com"
] | bmoscon@gmail.com |
bec5d7a526d10be62caac399f9e3e9e95eb2fd8d | 13ecaed116dd1367a09b6393d69a415af099b401 | /backend/rock_crawler_20354/urls.py | a7d1509c41377bae2ed4d4eeded7703023fff231 | [] | no_license | crowdbotics-apps/rock-crawler-20354 | 5cd650518c8e47c71c5941fd6c283eeed185bad8 | 77ae896728649368aa80aa20ca28224889e8fd99 | refs/heads/master | 2022-12-18T17:13:05.564163 | 2020-09-17T01:55:04 | 2020-09-17T01:55:04 | 296,190,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | """rock_crawler_20354 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
efa94b6e1a9475a4198230da2e46d73389f60a3f | 7f4b1d5e9963d63dd45b31c6cad8ced70d823217 | /interview-prep/techie_delight/array/find_pair_sum.py | e1ab55be1dbf32abcb9f8348762855ef08cbea1a | [] | no_license | mdhatmaker/Misc-python | b8be239619788ed343eb55b24734782e227594dc | 92751ea44f4c1d0d4ba60f5a1bb9c0708123077b | refs/heads/master | 2023-08-24T05:23:44.938059 | 2023-08-09T08:30:12 | 2023-08-09T08:30:12 | 194,360,769 | 3 | 4 | null | 2022-12-27T15:19:06 | 2019-06-29T03:39:13 | Python | UTF-8 | Python | false | false | 692 | py | import sys
# https://www.techiedelight.com/find-pair-with-given-sum-array/
# Find pair with given sum in the array.
def find_pair_sum(arr, k):
print(k, end=' ')
arr.sort()
low = 0
high = len(arr)-1
while (low < high):
if arr[low] + arr[high] == k:
return (arr[low], arr[high])... | [
"hatmanmd@yahoo.com"
] | hatmanmd@yahoo.com |
c795292c2114df7d363630fd1724fc653ddd9e47 | cc1b87f9368e96e9b3ecfd5e0822d0037e60ac69 | /dashboard/dashboard/pinpoint/models/change/commit_cache.py | 71909eda2e2d51149392a316f5a3d6975015f867 | [
"BSD-3-Clause"
] | permissive | CTJyeh/catapult | bd710fb413b9058a7eae6073fe97a502546bbefe | c98b1ee7e410b2fb2f7dc9e2eb01804cf7c94fcb | refs/heads/master | 2020-08-19T21:57:40.981513 | 2019-10-17T09:51:09 | 2019-10-17T18:30:16 | 215,957,813 | 1 | 0 | BSD-3-Clause | 2019-10-18T06:41:19 | 2019-10-18T06:41:17 | null | UTF-8 | Python | false | false | 2,286 | 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 __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from google.appengine.ext import ndb
_MEMCACHE... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
53966e3f7870ceb362b412c8f33214acba0eee74 | 3bda645720e87bba6c8f960bbc8750dcea974cb0 | /data/phys/fill_6192/xangle_150/DoubleEG/input_files.py | 569cc557af310a17a3d989b5dbd84856890742d2 | [] | no_license | jan-kaspar/analysis_ctpps_alignment_2017_preTS2 | 0347b8f4f62cf6b82217935088ffb2250de28566 | 0920f99080a295c4e942aa53a2fe6697cdff0791 | refs/heads/master | 2021-05-10T16:56:47.887963 | 2018-01-31T09:28:18 | 2018-01-31T09:28:18 | 118,592,149 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import FWCore.ParameterSet.Config as cms
input_files = cms.vstring(
"root://eostotem.cern.ch//eos/totem/data/ctpps/reconstruction/2017/preTS2_alignment_data/version1/fill6192_xangle150_DoubleEG.root"
)
| [
"jan.kaspar@cern.ch"
] | jan.kaspar@cern.ch |
ad9f7d677d6aef12a21ccf2023c36309198ff516 | fbf82e9a3d6e7b4dbaa2771eed0d96efabc87b3b | /platform/imageAuth/imageAuth/db/ormData.py | 745c1a5b58daaa1d7bf869db4db8dee208149366 | [] | no_license | woshidashayuchi/boxlinker-all | 71603066fee41988108d8e6c803264bd5f1552bc | 318f85e6ff5542cd70b7a127c0b1d77a01fdf5e3 | refs/heads/master | 2021-05-09T03:29:30.652065 | 2018-01-28T09:17:18 | 2018-01-28T09:17:18 | 119,243,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,460 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: 0.1
@author: liuzhangpei
@contact: liuzhangpei@126.com
@site: http://www.livenowhy.com
@time: 17/2/28 14:07
@ orm 数据结构
"""
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
from sqlalchemy.ext.declarative import declarative_base
# 创建对象的基类:
Base = d... | [
"359876749@qq.com"
] | 359876749@qq.com |
b1d9b794bd63e59dcbabad3196e3405ffebc42a8 | f4054fcf13c72f450bed662e01ca6fcc9c2b8111 | /pages/urls.py | e8de8e82edc8b3938f442bcc36d4ed9163d189f2 | [] | no_license | skiboorg/global | a54210bccaa5a82db395241d3470b5450b87a51f | eebcbcfadd4b94f5588db3392ce171948f1d5cf8 | refs/heads/master | 2022-12-12T00:27:02.449806 | 2020-09-04T05:32:56 | 2020-09-04T05:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | from django.urls import path,include
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('contests', views.contests, name='contests'),
path('instructions', views.instructions, name='instructions'),
path('startups/<id>', views.startups, name='startups'),
path('admin_page/... | [
"11@11.11"
] | 11@11.11 |
a9fd81720b3a00dc1f25d9a163cbad2593f7e27d | 8d3e3887b02ad2d5e75edb5e56e11c33d0f440bd | /config.py | 05a6f247f55996795ae9ba9a9c8f3eba8529600b | [] | no_license | makalaaneesh/momentipy | e423a5e1b4e59a18a4ed5c1d7c07934dcda4a695 | b62f52b536890a0bc7c924a10fbd73cb04f10535 | refs/heads/master | 2021-01-10T07:50:18.756563 | 2016-03-24T18:31:50 | 2016-03-24T18:31:50 | 53,156,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | JPG_EXTENSIONS = ('.jpg', '.jpeg', '.jpe', '.JPG')
RAW_EXTENSIONS = ('.3fr','.3pr','.arw','.ce1','.ce2','.cib','.cmt','.cr2','.craw','.crw',
'.dc2','.dcr','.dng','.erf','.exf','.fff','.fpx','.gray','.grey','.gry',
'.iiq','.kc2','.kdc','.mdc','.mef','.mfw','.mos','.mrw','.ndd','.n... | [
"makalaaneesh@yahoo.com"
] | makalaaneesh@yahoo.com |
45a934609592023102cc9deabe6dd15559740b0e | 8f0b0ec0a0a2db00e2134b62a1515f0777d69060 | /scripts/study_case/ID_61/multi_layer_perceptron_grist.py | 95b6cf3951fe9293450c55fd79acb2813e3208f1 | [
"Apache-2.0"
] | permissive | Liang813/GRIST | 2add5b4620c3d4207e7661eba20a79cfcb0022b5 | 544e843c5430abdd58138cdf1c79dcf240168a5f | refs/heads/main | 2023-06-09T19:07:03.995094 | 2021-06-30T05:12:19 | 2021-06-30T05:12:19 | 429,016,034 | 0 | 0 | Apache-2.0 | 2021-11-17T11:19:48 | 2021-11-17T11:19:47 | null | UTF-8 | Python | false | false | 3,207 | py | from tensorflow.examples.tutorials.mnist import input_data
import tensorflow as tf
import numpy as np
import sys
sys.path.append("/data")
# 导入数据并创建一个session
mnist = input_data.read_data_sets('./MNIST_data', one_hot=True)
sess = tf.InteractiveSession()
# 定义节点,权重和偏置
in_uints = 784 # 输入节点数
h1_uints = 300 # 隐含层节点数
W1 ... | [
"793679547@qq.com"
] | 793679547@qq.com |
24042473cd5cd6af11e11bca2ae2954f7f570a7f | be50b4dd0b5b8c3813b8c3158332b1154fe8fe62 | /Hashing/Python/SubarrayWithEqualOccurences.py | 6822fc464cb733519f70a6b48c8348a5929eaf57 | [] | no_license | Zimmermann25/InterviewBit | a8d89e090068d9644e28085625963c8ce75d3dff | 6d2138e740bd5ba8eab992d9bf090977e077bfc5 | refs/heads/main | 2023-03-24T18:12:48.244950 | 2021-03-24T14:36:48 | 2021-03-24T14:36:48 | 350,835,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | class Solution:
# @param A : list of integers
# @param B : integer
# @param C : integer
# @return an integer
# subarrays with 0 sum
def solve(self, A, B, C):
if len(A) < 2: return 0 # B != C
for i in range(len(A)):
if A[i] == B: A[i] = 1
elif A[i... | [
"noreply@github.com"
] | Zimmermann25.noreply@github.com |
685bdecd8e029b131145675a3b0238c77eba91e3 | 2fa12cde6a091a1559617e8f825b00f2a5c7f8ba | /src/190page.py | d2ae5ba7ae41ce90d64d657c541acac146722424 | [] | no_license | yeasellllllllll/bioinfo-lecture-2021-07 | b9b333183047ddac4436180cd7c679e3cc0e399a | ce695c4535f9d83e5c9b4a1a8a3fb5857d2a984f | refs/heads/main | 2023-06-15T20:31:35.101747 | 2021-07-18T14:31:27 | 2021-07-18T14:31:27 | 382,995,460 | 0 | 0 | null | 2021-07-05T06:06:35 | 2021-07-05T02:45:29 | Python | UTF-8 | Python | false | false | 232 | py | f = "data.txt"
d = {}
with open(f, "r") as fr:
for line in fr:
l = line.strip().split(" ")
gene, val = l[0], l[1]
d[gene] = val
print(d.items())
print(sorted(d.items(), key=lambda x: x[1], reverse=True))
| [
"yeasel6112@gmail.com"
] | yeasel6112@gmail.com |
5b658965a62b686a1ddb2d499ca537ed24219f98 | 56ade096db1fe376ee43d38c96b43651ee07f217 | /647. Palindromic Substrings/Python/Solution.py | 45128cf5cd3cad9ddcdddbb855a52902fe6045c7 | [] | no_license | xiaole0310/leetcode | c08649c3f9a9b04579635ee7e768fe3378c04900 | 7a501cf84cfa46b677d9c9fced18deacb61de0e8 | refs/heads/master | 2020-03-17T05:46:41.102580 | 2018-04-20T13:05:32 | 2018-04-20T13:05:32 | 133,328,416 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | class Solution:
def countSubstrings(self, s):
"""
:type s: str
:rtype: int
"""
self.result = 0
def count(s, left, right):
while left >= 0 and right < len(s) and s[left] == s[right]:
self.result += 1
left -= 1
... | [
"zhantong1994@163.com"
] | zhantong1994@163.com |
800d4590249dde33a636159d00ba3a38bc667b46 | 44a7101ae18c84ffa0e3c674763ba7b500937773 | /root/Desktop/Scripts/Python Forensic Scripts/Violent Python/idsFoil.py | 0ad7588cd59c0f4c4836e0b32135b8289ba10bdd | [] | no_license | Draft2007/Scripts | cbaa66ce0038f3370c42d93da9308cbd69fb701a | 0dcc720a1edc882cfce7498ca9504cd9b12b8a44 | refs/heads/master | 2016-09-05T20:05:46.601503 | 2015-06-23T00:05:02 | 2015-06-23T00:05:02 | 37,945,893 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | import optparse
from scapy.all import *
from random import randint
def ddosTest(src, dst, iface, count):
# Crafts a decoy TFN Probe
pkt=IP(src=src,dst=dst)/ICMP(type=8,id=678)/Raw(load='1234')
send(pkt, iface=iface, count=count)
# Crafts a decoy tfn2k icmp possible communication
pkt = IP(src=src,ds... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
d1e68bd9c6aaa166ed0e00dfa42dee16851652b2 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_noisy941.py | da12e8a16d52deb8656030cb8f1149daefd14cc9 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=23
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
fa444d7edff7bcce427df85f79853825bf777c7c | 0ae2bb21d7ca71a691e33cb044a0964d380adda2 | /uber/uber_algo/LC636ExeclusiveTimeOfFunctions_UB.py | e5e2bbce96747c00ed9c42ec84e9e14940c8ff2b | [] | no_license | xwang322/Coding-Interview | 5d27ec92d6fcbb7b929dd98bb07c968c1e1b2a04 | ee5beb79038675ce73c6d147ba9249d9a5ca346a | refs/heads/master | 2020-03-10T08:18:34.980557 | 2018-06-24T03:37:12 | 2018-06-24T03:37:12 | 129,282,263 | 2 | 6 | null | 2018-04-19T19:31:24 | 2018-04-12T16:41:28 | Python | UTF-8 | Python | false | false | 1,289 | py | /*
* Implement a function return the exclusive running time of a function, given the function name and a list of logs.
* List<string> stands for a list of logs. The logs have the following structure:
* functionName StartOrEnd Time
* A start 10
* B start 11
* B end 12
* A end 20
* exclusive running time means th... | [
"noreply@github.com"
] | xwang322.noreply@github.com |
f1fcf8c31077a0ecbd3a6c84b39d5c8fa8378439 | 9fdee128812956e1e1919a58c7f64561543abf56 | /Lorry_with_coffee.py | 6e56c5a6108abf4d6a47d1e65880856b90ea793a | [] | no_license | OleksandrMyshko/python | 38139b72a75d52ca0a6a5787c5e6357432ec6799 | 1caed3c05d513c0dd62d6ff77910e9596c50969f | refs/heads/master | 2021-07-03T03:31:11.198438 | 2017-09-25T17:43:59 | 2017-09-25T17:43:59 | 104,762,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | class Coffee:
def __init__(self, type, price):
self.type = type
self.price = price
class Box:
def __init__(self, volume, coffee):
self.volume = volume
self.coffee = coffee
class Lorry:
def __init__(self):
self.boxes = []
def add_box(self, box):
self.b... | [
"sashamushko@gmail.com"
] | sashamushko@gmail.com |
fe1595a84a84e39fed7f7ef5bb3f26584c14aa2f | 1f93178e536219f89dfb4ec748ebacb548276626 | /tests/test_utils.py | 29a0ef25439a56f1985353c95a5db459f08e845b | [
"MIT"
] | permissive | WillWang99/pyModbusTCP | 9c97ef24c46f3473ad47f44c7ba5ed6d1b2021b0 | 8d09cac1752707770c2039d16173a2427dbc1c61 | refs/heads/master | 2021-03-16T08:33:56.440811 | 2017-11-13T08:18:53 | 2017-11-13T08:18:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,050 | py | # -*- coding: utf-8 -*-
import unittest
import math
from pyModbusTCP import utils
class TestUtils(unittest.TestCase):
def test_get_bits_from_int(self):
# default bits list size is 16
self.assertEqual(len(utils.get_bits_from_int(0)), 16)
# for 8 size (positional arg)
self.assertEqu... | [
"loic.celine@free.fr"
] | loic.celine@free.fr |
329c0af3339a265620d8e1bac177ef51198df554 | cb9dca7c997337f59468ef2369a15fa920202e8f | /09_regular_expressions/exercise/03_find_occurrences_of_word_in_sentence.py | dc986ed137b967c1009c20694093865e9cf49bd7 | [] | no_license | M0673N/Programming-Fundamentals-with-Python | 6e263800bad7069d6f2bf8a10bee87a39568c162 | a1e9493a6f458ddc8d14ae9c0893c961fe351e73 | refs/heads/main | 2023-05-26T18:27:03.098598 | 2021-06-06T19:00:57 | 2021-06-06T19:00:57 | 361,785,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import re
sentence = input().lower()
word = input().lower()
pattern = r"\b" + word + r"\b"
result = re.findall(pattern, sentence)
print(len(result))
| [
"m0673n@abv.bg"
] | m0673n@abv.bg |
a87406c60058422469cd9cfaeaea19ef0d9de260 | 7251f1742615752e402dadcb4d59c9e543ecf824 | /Train/PolyTrain.py | 1051171859da265d655871804b499c6de323caef | [] | no_license | xinxiaoli/ambf_walker | c6f2bca047de0d38a61358f3d290e2d73eb494a1 | 2b909f1c340f95a6c2a0b7356c8e218c1c55356a | refs/heads/master | 2022-12-27T02:50:22.036730 | 2020-08-12T23:18:48 | 2020-08-12T23:18:48 | 294,125,031 | 0 | 0 | null | 2020-09-09T13:42:17 | 2020-09-09T13:42:17 | null | UTF-8 | Python | false | false | 1,736 | py |
from GaitAnaylsisToolkit.LearningTools.Runner import TPGMMRunner
from GaitAnaylsisToolkit.LearningTools.Trainer import TPGMMTrainer
from random import seed
from random import gauss
import numpy as np
import matplotlib.pyplot as plt
import numpy.polynomial.polynomial as poly
def coef(b, dt):
A = np.array([[1.0, 0... | [
"nagoldfarb@wpi.edu"
] | nagoldfarb@wpi.edu |
af15d7024d0a48e2e7498f7989c22aacdc552f6a | 62343cc4b4c44baef354f4552b449a9f53ca799e | /Model/__init__.py | e755d87124450cd8f784260a03671013533b6ad7 | [] | no_license | xwjBupt/simpleval | 7c71d178657ae12ac1a5ac6f1275940023573884 | 87234e630d7801479575015b8c5bdd3588a3ceed | refs/heads/master | 2023-02-03T13:42:07.013196 | 2020-12-25T09:08:01 | 2020-12-25T09:08:01 | 324,154,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | from .single_stage_detector import SingleStageDetector
from .backbone import ResNet, ResNetV1d
from .engine import InferEngine, ValEngine, BaseEngine
from .builder import build_engine, build_detector, build_backbone, build_head, build_neck
from .heads import AnchorHead, IoUAwareRetinaHead
from .necks import FPN
from .m... | [
"xwj_bupt@163.com"
] | xwj_bupt@163.com |
bd34d37546f838ec5960e3bc75ada531113248aa | 7d096568677660790479d87c22b47aae838ef96b | /stubs-legacy/System/Windows/Media/Animation_parts/AnimationException.py | 928a9c5a3de8a33b97a425e31bf64e5273703759 | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 1,398 | py | class AnimationException(SystemException,ISerializable,_Exception):
""" The exception that is thrown when an error occurs while animating a property. """
def add_SerializeObjectState(self,*args):
""" add_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """
pass
def remov... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
739509fe9d0b3d52864e729246e1fcdb09324e2d | b9000b4f492c6f51fc1277589095c92b25f41328 | /lingvo/datasets_test.py | 4a0abac8ce7f8d569225f446affe1131a6fb3e80 | [
"Apache-2.0"
] | permissive | donstang/lingvo | a30175a4c756ce006a9c7dfbe472477a928d5f3f | 9b2b4714c50be695420eb99fd87b4f1c4d0855ca | refs/heads/master | 2022-07-26T14:33:36.357634 | 2022-07-01T03:16:49 | 2022-07-01T03:17:51 | 183,879,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,221 | py | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
39780953a892df003f3cf73fb888f6ec3b514526 | 8a10d97fd8be9c8df20bf64acb62cff4931bcf46 | /models.py | 7600153374f9760a8e77475c4e01629e8291fe60 | [] | no_license | chensandiego/render_places | 5816eb9b143020db02c4316516ff000560269415 | 165ab8023ac1e38cb0e86f8d6b1f047622c46d87 | refs/heads/master | 2021-01-15T08:31:39.705395 | 2016-07-26T01:47:16 | 2016-07-26T01:47:16 | 64,180,658 | 0 | 1 | null | 2016-09-08T04:38:53 | 2016-07-26T01:45:59 | HTML | UTF-8 | Python | false | false | 2,049 | py | from flask.ext.sqlalchemy import SQLAlchemy
from werkzeug import generate_password_hash,check_password_hash
import geocoder
import json
from urllib.request import urlopen
from urllib.parse import urljoin
db=SQLAlchemy()
class User(db.Model):
__tablename__ ='users'
uid = db.Column(db.Integer,primary_key=True)
firs... | [
"chensandiego@gmail.com"
] | chensandiego@gmail.com |
0c2553972497c5c92dc8250a3febff16a529ad00 | effce116340b7d937bd285e43b49e1ef83d56156 | /data_files/377 Combination Sum IV.py | 54ebc48fd1647b66ada9e61912eea5443cdad119 | [] | no_license | DL2021Spring/CourseProject | a7c7ef57d69bc1b21e3303e737abb27bee3bd585 | 108cdd906e705e9d4d05640af32d34bfc8b124da | refs/heads/master | 2023-04-11T18:52:30.562103 | 2021-05-18T09:59:59 | 2021-05-18T09:59:59 | 365,733,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py |
__author__ = 'Daniel'
class Solution(object):
def combinationSum4(self, nums, target):
F = [0 for _ in xrange(target + 1)]
nums = filter(lambda x: x <= target, nums)
for k in nums:
F[k] = 1
for i in xrange(target + 1):
for k in nums:
... | [
"1042448815@qq.com"
] | 1042448815@qq.com |
7bee13d0cb73112e145bfacd1f65772a9339d4a8 | 44b389338c12b0dc2018d8022031b58090c58a63 | /Byte_of_Python/str_format.py | 37d384f0a73528d7d6a49621979ddd9af022ee12 | [] | no_license | llcawthorne/old-python-learning-play | cbe71b414d6fafacec7bad681b91976648b230d3 | 5241613a5536cd5c086ec56acbc9d825935ab292 | refs/heads/master | 2016-09-05T17:47:47.985814 | 2015-07-13T01:25:44 | 2015-07-13T01:25:44 | 38,983,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #!/usr/bin/python
#Filename: str_format.py
age = 25
name = 'Swaroop'
print('{0} is {1} years old'.format(name,age))
print('Why is {0} playing with that python?'.format(name))
| [
"LLC@acm.org"
] | LLC@acm.org |
ae669605ec9b63f7de4aded534b4943cd4f76a68 | a9a9e19b1f24033d7141dd6da6572cb425acc09b | /elsie/ext/__init__.py | ab05e9c4d013b72e18d7676980310c548fcf875b | [
"MIT"
] | permissive | spirali/elsie | 88be594fec51cfa12f9e5c69bea7b1fd539da9fe | fd95c841d03e453aaac4acd27939ca614cd5ac79 | refs/heads/master | 2023-06-09T05:59:18.051813 | 2023-05-25T12:08:50 | 2023-05-25T12:09:00 | 134,177,408 | 49 | 6 | MIT | 2023-05-25T12:04:21 | 2018-05-20T18:48:53 | Python | UTF-8 | Python | false | false | 298 | py | """
This module contains extension and helper classes which are not part of the Elsie core.
Items from this module may experience backwards-incompatible changes even in non-major releases of
Elsie.
"""
from .list import ordered_list, unordered_list # noqa
from .markdown import markdown # noqa
| [
"stanislav.bohm@vsb.cz"
] | stanislav.bohm@vsb.cz |
58ba36f83dde33f4fc01a00d8a1c5e0a650a051c | 04d954f7734a48bb00d510f58793cb516ef03891 | /5_CNN对CIFAR-10进行分类/cnn_lrn.py | b2441337d55e1eee197fbbfc96c8632a59b4a516 | [] | no_license | MrKingJM/TensorFlow | 5ef17a47128ed0b9897d0ffc166edf51d2fc9575 | 703b6446402c2f15d90b08a9593bcc0517775555 | refs/heads/master | 2020-03-10T18:53:00.867240 | 2017-06-13T08:27:58 | 2017-06-13T08:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | # coding=utf-8
# cnn_lrn
from __future__ import division
import cifar10, cifar10_input
import tensorflow as tf
import numpy as np
import math
import time
data_dir = 'cifar10_data/cifar-10-batches-bin' # 下载 CIFAR-10 的默认路径
cifar10.maybe_download_and_extract() # 下载数据集,并解压、展开到其默认位置
batch_size = 128
images_train, label... | [
"ywtail@gmail.com"
] | ywtail@gmail.com |
f9f753802fda005a7df3d8e87f1684460ae38ba1 | 7e5dd510284f6944995f1c8586309e6e3acecb84 | /main.py | c674ccbbc2802acc706c683b667d6d27caceb6ae | [] | no_license | Namenaro/frog_demo | b3a630d7f8a4139954ebb92c0c83dd76b49f6fb6 | b74da899f949233aed1fb07bd48314e961ba99e7 | refs/heads/master | 2020-03-31T10:52:55.876607 | 2018-10-08T22:20:56 | 2018-10-08T22:20:56 | 152,153,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,425 | py | import os
from pprint import pprint
import tkinter as tk
class MainScreen(tk.Frame):
def __init__(self, parent):
self.frame = tk.Frame(parent)
self.frame.pack()
self.parent = parent
folder = "frog_muskle"
self.image_0 = tk.PhotoImage(file=os.path.join(folder, "zero_freq.png... | [
"nanenaro@gmail.com"
] | nanenaro@gmail.com |
51033624394c62c952b6c453f0d94e4a26252199 | 9fb2139bf41e2301f9ee9069d649c5afe8e7735c | /python/En19cs306027_Lovesh_Kumrawat_Self_created_function_similar_to_'.astype'_in_numpy.py | 48ce29a748e1c7cd8b8b7bf5eabfc24d5bf3a64b | [] | no_license | codewithgauri/HacktoberFest | 9bc23289b4d93f7832271644a2ded2a83aa22c87 | 8ce8f687a4fb7c3953d1e0a5b314e21e4553366e | refs/heads/master | 2023-01-02T07:20:51.634263 | 2020-10-26T07:02:34 | 2020-10-26T07:02:34 | 307,285,210 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # In 'numpy' we can convert values of matrix into 'integer' by 'np.matrix('1.4 0.6;1.8 3.2;1.4 4.2',dtype=int)' or 'matrix_variable.astype('int32')' but i created a function for this.
import numpy as np
def matrix_integer_values_any_shape(inp): #* For any shape of matrix.
lst=[]
mtx=np.matrix([int(j) for i in np.a... | [
"noreply@github.com"
] | codewithgauri.noreply@github.com |
43a34c8971cd8b4b94a667b95d9f50b718825d12 | 8a8974f433ed4c86eec3960ef953ddd21464448b | /doi_request/__init__.py | 99c59af476fba1092d357b903fbdaa02df3f9bef | [
"BSD-2-Clause"
] | permissive | scieloorg/doi_request | 70c533afb135ebd11a61b3c782750e4938033260 | 52da64d8e5cc1782cd91968f2a8da3d4c9c736dc | refs/heads/master | 2023-08-19T02:55:27.466086 | 2021-03-08T18:36:09 | 2021-03-08T18:36:09 | 87,971,952 | 1 | 4 | BSD-2-Clause | 2023-07-27T00:01:41 | 2017-04-11T19:33:40 | JavaScript | UTF-8 | Python | false | false | 2,233 | py | import os
from pyramid.config import Configurator
from pyramid.session import SignedCookieSessionFactory
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from doi_request.models import initialize_sql
VERSION = '1.2.0'
def version(request):
return VERSION
def db(request):
make... | [
"fabiobatalha@gmail.com"
] | fabiobatalha@gmail.com |
58e052ed808c502f500414a25bdc06bdbdc8c904 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/test/test_NotificationConfigApple.py | 39490853d098bca2c7862b7c84916113eb5abb7c | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 985 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
from __future__ import absolute_import
import unittest
import appcente... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
a125ff9ec9ac7d4c723caf648f66e55462f31b62 | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/pip/_vendor/urllib3/filepost.py | e01a1a0d1044c86119534bb92e511348ffac1217 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:27650543085246b415561217c916ce5c820588dd89fe70824bb6db3e60d439ae
size 2534
| [
"Nqk180998!"
] | Nqk180998! |
53e98abf1cde068fde4788a1920f72b9e87e3665 | 11334e46d3575968de5062c7b0e8578af228265b | /Examples/voltagereadspeed/orig/orig_batt_test.py | 45a6743f58a9ee101f6baf28fd3738d5bc9aad21 | [] | no_license | slowrunner/Carl | 99262f16eaf6d53423778448dee5e5186c2aaa1e | 1a3cfb16701b9a3798cd950e653506774c2df25e | refs/heads/master | 2023-06-08T05:55:55.338828 | 2023-06-04T02:39:18 | 2023-06-04T02:39:18 | 145,750,624 | 19 | 2 | null | 2023-06-04T02:39:20 | 2018-08-22T18:59:34 | Roff | UTF-8 | Python | false | false | 2,419 | py | #!/usr/bin/python3
import sys
from easygopigo3 import EasyGoPiGo3
from time import sleep
mybot = EasyGoPiGo3()
value = 0
count = 0
Reference_Input_Voltage = 12.00
file1 = open("./voltage_test.txt", "a")
def round_up(x, decimal_precision=2):
# "x" is the value to be rounded using 4/5 rounding rules
# always roun... | [
"slowrunner@users.noreply.github.com"
] | slowrunner@users.noreply.github.com |
a6ffeeae418a936374b98c0f082f122766428944 | 60d5b5b1f1c912d1655de3884efc09dfddd8d132 | /sites/kotourism/events/feeds.py | 27d81038a0eeef22fe3d06582bed6104baaf1b6b | [] | no_license | alexgula/django_sites | 15033c739401f24603e957c5a034d63652f0d21f | 038834c0f544d6997613d61d593a7d5abf673c70 | refs/heads/master | 2016-09-05T11:02:43.838095 | 2014-07-07T11:36:07 | 2014-07-07T11:36:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | # coding=utf-8
from datetime import timedelta
from collections import namedtuple
from django.utils.timezone import now
from django.contrib.syndication.views import Feed
from django.utils.feedgenerator import Atom1Feed
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext,... | [
"alexgula@gmail.com"
] | alexgula@gmail.com |
cbc4a88ee7d1c9890db6f01b5bc2df4ac1869912 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Facebook/Actions/Video/WantsToWatch/UpdateWantsToWatch.py | bff67d21bb448deb53c6b84900556134e8237aeb | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,766 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# UpdateWantsToWatch
# Updates an existing wants_to_watch action.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Chor... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
4c049858fdeff016c62349c76078e6d0a75dc918 | 10d98fecb882d4c84595364f715f4e8b8309a66f | /aloe/aloe/rfill/utils/rfill_consts.py | 18131c6e49d3a1e196701d0718b8cdc9deb7edbe | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 2,663 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d63074174c227a34a29aa659680afcb60b7d057f | bf3049a786140bca8d6f5dfdd754086d9395a5e2 | /src/main/management/commands/correctdb.py | 8f1b309b5cbd2e24488be7108872853bd7e6a558 | [] | no_license | nvbn/djang0byte | ecefccc60f622c8aa55315ab478aacddbd8fc3b5 | 39deb1dc046c80edd6bfdfbef8391842eda35dd2 | refs/heads/reload | 2016-09-05T17:03:44.323217 | 2014-10-01T17:20:12 | 2014-10-01T17:20:12 | 2,582,402 | 26 | 7 | null | 2014-10-01T17:20:12 | 2011-10-15T16:06:06 | Python | UTF-8 | Python | false | false | 549 | py | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from main.models import Post
from django.db.models import Q
class Command(BaseCommand):
def handle(self, **options):
qs = Post.objects.filter(
Q(title__icontains=u'решен') | Q(title__icontains=u'решён') | Q(title__ico... | [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
a716c01559400043f512cdc990ebfc7b5cb59da6 | 92949cad6725d61d4a40717bb3d859911e152664 | /ytree/frontends/rockstar/arbor.py | 6da1a94c02cf0fd0962d4e695a8e85b42ee0ae1d | [
"BSD-3-Clause"
] | permissive | jwise77/ytree | 662fca1df8358d7d1c13103bf86de97ddb16de2a | f179c07ae4696cce7ae6376417e814dabd6c9d1b | refs/heads/master | 2023-06-13T06:22:55.513112 | 2020-01-06T19:14:45 | 2020-01-06T19:14:45 | 238,534,101 | 0 | 0 | NOASSERTION | 2020-02-05T19:44:23 | 2020-02-05T19:44:22 | null | UTF-8 | Python | false | false | 4,186 | py | """
RockstarArbor class and member functions
"""
#-----------------------------------------------------------------------------
# Copyright (c) ytree development team. All rights reserved.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with ... | [
"brittonsmith@gmail.com"
] | brittonsmith@gmail.com |
b11951b8ce3f201f333ca12180beaa1dba34b567 | f0b75bd94f133a13f469f429a696f26be3be9862 | /week 2/.history/utils_20200204173854.py | 2e69e8e8be516eac983005ccf56b3881f8eceb20 | [] | no_license | dechavez4/Python_handin_assignments | 023350fabd212cdf2a4ee9cd301306dc5fd6bea0 | 82fd8c991e560c18ecb2152ea5a8fc35dfc3c608 | refs/heads/master | 2023-01-11T23:31:27.220757 | 2020-05-22T10:33:56 | 2020-05-22T10:33:56 | 237,179,899 | 0 | 0 | null | 2022-12-30T20:14:04 | 2020-01-30T09:30:16 | Python | UTF-8 | Python | false | false | 400 | py | import os.path
from os import path
from sys import argv
import python_second_assignment as myList
# A. first function takes a path to a folder and writes all filenames in the folder to a specified output file
folderpath = "/Users/robin/Desktop/semester_4/python/myPythonCode/week 2"
def read_folder():
entries = os.... | [
"chavezgamingv2@hotmail.com"
] | chavezgamingv2@hotmail.com |
a8f873115c95b3d8eecb33fcdafaac877d78ad6a | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KoubeiMarketingCampaignMerchantActivityOfflineModel.py | 3cbd886eb6742480b12b1db2f30f6611b7c11127 | [
"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 | 2,955 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiMarketingCampaignMerchantActivityOfflineModel(object):
def __init__(self):
self._activity_id = None
self._memo = None
self._operator = None
self._operator_ty... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
7384f79ed839dd47ca168b9eca226acf619fa1ef | bf769a3a3935a8e08f11fdf606f2e2e2bc6a5307 | /PyQtGui/stickyNotes/Ui_mainwindow.py | b82b0e288c448dca5912a3ce5bb22d61848d9bbb | [] | no_license | metanoia1989/QTStudy | b71f2c8cf6fd001a14db3f1b5ece82c1cc7f7a93 | 29465c6bb9fc0ef2e50a9bf2f66d996ecbd086c0 | refs/heads/master | 2021-12-25T16:50:26.915441 | 2021-10-10T01:26:14 | 2021-10-10T01:26:14 | 193,919,811 | 3 | 2 | null | 2021-01-25T09:23:30 | 2019-06-26T14:22:41 | HTML | UTF-8 | Python | false | false | 3,005 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'd:\WorkSpace\QT\QTStudy\PyQtGui\stickyNotes\mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
... | [
"sogaxili@gmail.com"
] | sogaxili@gmail.com |
6c9b556dd08e9ff9e09b54f91e034188ecff94ee | 9b0b2029225c680f978ae041552cf68d977144ac | /test_singleton.py | 99dedd8f298421b143d9fe46cae0786cf26e5f3d | [] | no_license | 1151332702/flask_rest_api | 59547189d5928a16f7cee7b36a99f365627f4814 | ad5df495157e12858c2869c8899ded10650c2e88 | refs/heads/master | 2021-06-23T10:47:01.280030 | 2019-10-24T10:31:25 | 2019-10-24T10:31:25 | 208,002,649 | 0 | 0 | null | 2021-03-20T01:59:21 | 2019-09-12T08:34:33 | Python | UTF-8 | Python | false | false | 985 | py | # -*- coding: utf-8 -*-
# @Time : 2019/1/31 16:37
# @Author : lilong
# @File : test_singleton.py
# @Description: 单例模式
def singletom(cls):
_instance = {}
def decorator(*args, **kwargs):
if cls not in _instance:
_instance[cls] = cls(*args, **kwargs)
return _instance[cls]
re... | [
"12345678"
] | 12345678 |
8b8dce1c9245308e1dfb6e30ce3d4510f9f9fcd4 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible/module_utils/compat/importlib.py | eee0ddf7bcfc9b2fe9f587bbecf72611eb19c6a3 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 580 | py | # Copyright (c) 2020 Matt Martz <matt@sivel.net>
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import sys
try:
from importlib import ... | [
"sifang@cisco.com"
] | sifang@cisco.com |
d22ae5e1ce4798f74ede4ea8c8c34e9499269554 | ab8187626aa68c1f92301db78e9f8b0c4b088554 | /Greedy/1561_h.py | 249aef34c00cf89b7823a2d1498b920884dffe79 | [] | no_license | khj68/algorithm | 2818f87671019f9f2305ec761fd226e737f12025 | efebe142b9b52e966e0436be3b87fb32b4f7ea32 | refs/heads/master | 2023-04-25T02:33:13.403943 | 2021-05-04T03:09:38 | 2021-05-04T03:09:38 | 287,733,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | class Solution:
def maxCoins(self, piles: List[int]) -> int:
if len(piles) == 3:
return piles[1]
# print(len(piles)%2)
# print(list((i, a) for i, a in enumerate(sorted(piles)[len(piles)//3:]) if i % 2 == len(piles)%2))
return sum(a for i, a in enumerate(sorted(piles)[len(... | [
"maga40@naver.com"
] | maga40@naver.com |
ee5061ff77da5e4d545b401ec0ba8bd3739049c2 | 4f74e6d72b98cd1da2190313e4a7eb9d342cc93d | /organizations_ext/migrations/0003_auto_20200516_1724.py | 57927d172cf2467165b5a315fade75348b42c88c | [
"BSD-3-Clause",
"MIT"
] | permissive | adamgogogo/glitchtip-backend | ef0c529b71d5a4632a235b40a10e0b428a1cee3a | ee71d1b732d92868189d520aa111c09b116b7b22 | refs/heads/master | 2023-02-01T23:10:53.734450 | 2020-12-19T19:32:10 | 2020-12-19T19:32:10 | 323,588,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # Generated by Django 3.0.6 on 2020-05-16 17:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organizations_ext', '0002_organization_is_accepting_events'),
]
operations = [
migrations.AlterField(
model_name='organization',... | [
"david@burkesoftware.com"
] | david@burkesoftware.com |
8ffa10b8e5334346b910ca9a0e0357a52d68c971 | a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c | /venv/Lib/site-packages/pandas/core/common.py | 395464a24bdf2b741b5354fd0af8e443c99af55b | [] | no_license | mylonabusiness28/Final-Year-Project- | e4b79ccce6c19a371cac63c7a4ff431d6e26e38f | 68455795be7902b4032ee1f145258232212cc639 | refs/heads/main | 2023-07-08T21:43:49.300370 | 2021-06-05T12:34:16 | 2021-06-05T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b63cf39ef1bd3fc626c028f158f4a70e0c602beae099dd24576a97afa69d6250
size 14109
| [
"chuksajeh1@gmail.com"
] | chuksajeh1@gmail.com |
a8897543440a99c7f65add70fcdc2ec5e1552753 | 829fbf5717b902f48ca6e748a51cf4febb59451e | /test/functional/p2p_pos_fakestake.py | ada5258fb6080a031ddfe53a533cba6cbf4f6ad7 | [
"MIT"
] | permissive | suprnurd/KuboCoin | bb03614814c2112f7745a15e9774639e280f2aff | d77bae8cc5fe4efdbd16a384554b7829a704291f | refs/heads/master | 2022-11-06T09:53:34.348555 | 2020-05-24T22:27:08 | 2020-05-24T22:27:08 | 273,895,805 | 0 | 0 | MIT | 2020-06-21T12:02:38 | 2020-06-21T12:02:37 | null | UTF-8 | Python | false | false | 2,299 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The KuboCoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Covers the scenario of a PoS block where the coinstake input prevout is already spent.
'''
from time imp... | [
"ultrapoolcom@gmail.com"
] | ultrapoolcom@gmail.com |
d48cd1dfcd8d6ec6180938eff41489abb81ac7f5 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab9/set 2/AMANDA C NAGLE_19369_assignsubmission_file_lab9/lab9/F.py | d3445accd6f6b54d58b32508c8790ff3da0e9d33 | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from math import *
class F:
def __init__ (self,a,w):
self.a=a
self.w=w
def value(self, x):
return (e**(-self.a*x))*sin(self.w*x)
f= F(a=1.0, w=0.1)
print f.value(x=pi)
f.a=2
print f.value(pi)
| [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
9f416affbe20c12f10bd3ac826e901fa23ecbeeb | 96a34a048c783a75736bf0ec775df22142f9ee53 | /packages/postgres-database/src/simcore_postgres_database/migration/versions/0208f6b32f32_adds_version_control_tables.py | d87b9322a22d297d87280f446fbcade581643aa2 | [
"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 | 6,043 | py | """Adds version control tables
Revision ID: 0208f6b32f32
Revises: d10c53a5bea6
Create Date: 2021-09-06 14:19:42.599645+00:00
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = "0208f6b32f32"
down_revision = "d10c53a5bea6"
... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
cb7273d729baf1a6dfb7f10dcb88a7cee2620eb4 | bf000a932237a790770227e48a529a31d167e94e | /flash_es.py | 1a7d9a6224c607194385a037b0a23d66fe7afd90 | [] | no_license | o7s8r6/machineLearning | bf38b91d00def60e554384853b6f6b5640bc0929 | 5842dad6a1b12e0a02b3a8ecff0f610dd0fca0cb | refs/heads/master | 2021-05-27T15:56:57.559788 | 2014-07-22T05:57:44 | 2014-07-22T05:57:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import flask
import rawes
import json
from flask import Flask
query = "python"
es = rawes.Elastic('localhost:9200')
response = es.get('dns/nyc/_search', data={
"query":{
"bool":{
"must":[{
"wildcard":{
"answer":query
}}],
... | [
"ohprecio@gmail.com"
] | ohprecio@gmail.com |
f72c6047f22259d6bc991d05e3e8eb0bf3bc6385 | 677a3a76807d8585f65ec0e0839bb3a8b833e2fb | /2.Classes and Objects/Lab/Exercise/To-Do List/task.py | e16400b24b6a440e72139113289a663db3e02166 | [] | no_license | negative0101/Python-OOP | 0d531a1b72beb3e58f9486df88d457ecd59be10e | b5825e66a909c947a46458712d683e8a38035912 | refs/heads/main | 2023-07-14T11:27:34.841594 | 2021-08-20T08:49:04 | 2021-08-20T08:49:04 | 381,475,313 | 0 | 0 | null | 2021-07-25T19:52:38 | 2021-06-29T19:26:42 | Python | UTF-8 | Python | false | false | 984 | py |
class Task:
def __init__(self, name, due_date):
self.name = name
self.due_date = due_date
self.comments = []
self.completed = False
def change_name(self, new_name):
if new_name == self.name:
return 'Name cannot be the same.'
self.name = ne... | [
"noreply@github.com"
] | negative0101.noreply@github.com |
26e2bb321b86356992457a81f13187c17629437e | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/-57053121/ruamel_yaml/ext/_ruamel_yaml/SerializerError.py | e83d1c3946c75b93d44acb32132de12201751af3 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # encoding: utf-8
# module ruamel_yaml.ext._ruamel_yaml
# from C:\Users\Doly\Anaconda3\lib\site-packages\ruamel_yaml\ext\_ruamel_yaml.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# imports
import builtins as __builtins__ # <module 'builtins' (built-in)>
import ruamel_yaml.error as __ruamel_yaml_error
import ruamel... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
9d8f8fdd93316ade60c63318be40b169f5a7f2f8 | 8cf633e92a0671c8201268620a0372f250c8aeb2 | /35.搜索插入位置.py | 064363a1fe9b0bcd0030c245e5a0fdad177a2b06 | [
"Unlicense"
] | permissive | SprintGhost/LeetCode | 76da5c785009d474542e5f2cdac275675b8e60b8 | cdf1a86c83f2daedf674a871c4161da7e8fad17c | refs/heads/develop | 2021-06-06T04:04:28.883692 | 2021-01-01T14:09:26 | 2021-01-01T14:09:26 | 230,635,046 | 0 | 0 | Unlicense | 2020-12-11T14:55:36 | 2019-12-28T16:34:39 | Python | UTF-8 | Python | false | false | 2,189 | py | #
# @lc app=leetcode.cn id=35 lang=python3
#
# [35] 搜索插入位置
#
# Accepted
# 62/62 cases passed (60 ms)
# Your runtime beats 78.63 % of python3 submissions
# Your memory usage beats 95.67 % of python3 submissions (13.5 MB)
# @lc code=start
class Solution:
def searchInsert(self, nums, target: int) -> int:
nums_... | [
"864047435@qq.com"
] | 864047435@qq.com |
5193ea9938e1348f0d38402741fadf0dcc544c3b | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /LightGBM_sklearn_scipy_numpy/source/sklearn/manifold/tests/test_mds.py | 7b432dea1370e22b8590a106c29161e9b1ee7eea | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 1,873 | py | import numpy as np
from numpy.testing import assert_array_almost_equal
from sklearn.manifold import mds
from sklearn.utils.testing import assert_raises
def test_smacof():
# test metric smacof using the data of "Modern Multidimensional Scaling",
# Borg & Groenen, p 154
sim = np.array([[0, 5, 3, 4],
... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
502738773bd47c5de6fe95d9b3588481c2cd2f96 | f4afb11d9d6b8f391a270fb9309285d0fa9acd1a | /push-branches.py | ec4387ca14bcce4bec8d48849b9ff6242339ef5a | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Vasilov345/book | 2fdf886ab1dfe7c799d3797c8ed4d0e72bc4e5fb | bed2853f0ceaf3f868832ece860d566a7b43f870 | refs/heads/master | 2020-08-29T13:50:17.804015 | 2019-10-28T09:53:28 | 2019-10-28T09:53:28 | 218,051,897 | 0 | 1 | NOASSERTION | 2019-10-28T13:23:42 | 2019-10-28T13:23:41 | null | UTF-8 | Python | false | false | 704 | py | #!/usr/bin/env python
import subprocess
from pathlib import Path
from chapters import CHAPTERS, NO_EXERCISE
for chapter in CHAPTERS:
print('pushing', chapter, end=': ')
subprocess.run(
['git', 'push', '--force-with-lease', 'origin', chapter],
cwd=Path(__file__).parent / 'code'
)
if cha... | [
"hjwp2@cantab.net"
] | hjwp2@cantab.net |
f7afb7aabe368850e011393d0592ecf4deedc093 | b7e1d227d41542bf20f92d08bb0d453058cf6d19 | /orders/migrations/0004_auto_20191013_1723.py | 67a3105db42b46792574796f27d8aa582c0765e5 | [] | no_license | rusrom/django-ecommerce | dfa35bdb2832abf4077dd0883ec0e5e79ffa9662 | aebef77713ab7c1c2118d5c190deee5ccfbd3cb9 | refs/heads/master | 2020-08-04T23:36:09.610480 | 2019-10-22T14:00:04 | 2019-10-22T14:00:04 | 212,315,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2019-10-13 17:23
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('addresses', '0001_initial'),
('orders', '0003_auto_... | [
"rusrom@guyfawkes.33mail.com"
] | rusrom@guyfawkes.33mail.com |
66998a2b2dbaa169192f4819c93e0ab1ea9968bf | 038e6e41d117431869edad4952a5b1463d5131bc | /users/migrations/0002_auto_20210129_1642.py | db97d69b8e56b712626a94b937e9838ae9e2dd5d | [
"MIT"
] | permissive | MikaelSantilio/aprepi-django | c49290855b7c83ecaf08de82ee9eedf8e8baa15a | 5e2b5ecffb287eab929c0759ea35ab073cc19d96 | refs/heads/master | 2023-06-19T00:18:15.986920 | 2021-06-15T20:15:59 | 2021-06-15T20:15:59 | 329,428,268 | 0 | 1 | MIT | 2021-02-05T16:21:45 | 2021-01-13T20:50:18 | Python | UTF-8 | Python | false | false | 566 | py | # Generated by Django 3.1.5 on 2021-01-29 19:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"mikael.santilio@gmail.com"
] | mikael.santilio@gmail.com |
6ab61b38006dc25fb6f347f5d1870d9bd6cbebf7 | cb46ad4fedaf1dd6fad71c3ec3766604578fb340 | /tests.py | 22eb08230b9927699a2f32fd13466bbc6eb70b2e | [] | no_license | whitneybelba/Flask-Testing | 2ae14ef04988ce3b1ee8f65bbdd20ff4a0c4a8c1 | 2e2e5be334f1d7a9331f63fd9a9d33aabf1b10db | refs/heads/master | 2021-01-20T18:24:27.019968 | 2016-08-05T20:02:18 | 2016-08-05T20:02:18 | 65,045,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | import unittest
from party import app
from model import db, example_data, connect_to_db
class PartyTests(unittest.TestCase):
"""Tests for my party site."""
def setUp(self):
self.client = app.test_client()
app.config['TESTING'] = True
def test_homepage(self):
result = self.clie... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
bbf1ede6f241dd795910462f1b9f83ffd97a1947 | d2189145e7be2c836017bea0d09a473bf1bc5a63 | /20 Clases CBLUE (RVT)/Identificador.py | e9dd400cd7a6736317231a0f4c9e5294b27ecb62 | [] | no_license | emilianoNM/Tecnicas3 | 12d10ce8d78803c8d2cd6a721786a68f7ee2809d | 6ad7f0427ab9e23643a28ac16889bca8791421d0 | refs/heads/master | 2020-03-25T18:06:34.126165 | 2018-11-24T04:42:14 | 2018-11-24T04:42:14 | 144,013,045 | 3 | 5 | null | 2018-09-14T10:47:26 | 2018-08-08T12:49:57 | Python | UTF-8 | Python | false | false | 249 | py |
# coding: utf-8
# In[ ]:
#20 Clases Empresa
#Por Cblue (RVT)
class Identificador(object):
def__init__(self,LogotipoEMP,ColorCaracteristico)
self.LogotipoEMP=LogotipoEMP
self.ColorCaracteristico=ColorCaracteristico
| [
"noreply@github.com"
] | emilianoNM.noreply@github.com |
afb52d927ca3b977196758f7985e91c241b07721 | 2e74c7339c63385172629eaa84680a85a4731ee9 | /sdg/data_prep/compileNTDs.py | 26c89bfdf2636badf5e8fa2d616af8f4faa2ea46 | [] | no_license | zhusui/ihme-modeling | 04545182d0359adacd22984cb11c584c86e889c2 | dfd2fe2a23bd4a0799b49881cb9785f5c0512db3 | refs/heads/master | 2021-01-20T12:30:52.254363 | 2016-10-11T00:33:36 | 2016-10-11T00:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | import pandas as pd
import sys
from scipy.stats import gmean
from getpass import getuser
sys.path.append(SDG_REPO)
import sdg_utils.draw_files as dw
INDICATOR_ID_COLS = ['location_id', 'year_id']
def compile_df_using_dict(input_file_dict):
"""Compile dataframe together using dictionary indicator_id-->file"""
... | [
"nsidles@uw.edu"
] | nsidles@uw.edu |
c187f26acf02adbbc468f5bf96a6b6af692a8d02 | a1c6caa9ff52d4377529c7727eb5517041b04311 | /Exe16_Loja_de_tinta.py | adb1f3b81505e3857f7a47487058062e967cf7f7 | [
"MIT"
] | permissive | lucaslk122/Exercicios-em-python | b83b5abd5da7a7cf15ac50a213bad708501c8863 | 2daa92dcb19296f580d673376af375d11c9c041b | refs/heads/main | 2022-12-26T04:22:40.365925 | 2020-10-09T18:05:31 | 2020-10-09T18:05:31 | 302,362,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import math
print("1L de tinta pinta 3 metros quadrados, cada galão possui 18L e custam R$80.00 cada")
Area = float(input("Digite o tamanho da area em metros quadrados a ser pintada: "))
Litros = float(Area/3)
Latas = float(Litros/18)
Preço = float(round(Latas,0)*80)
print(f"Voce vai precisar de {math.ceil(Latas)} lat... | [
"71664028+lucaslk122@users.noreply.github.com"
] | 71664028+lucaslk122@users.noreply.github.com |
6508bfa49a20c5e33ddd9d77cb81eb6289502300 | c8a131d6f9d58f54a8736cae939529741b3858f8 | /mysite/blog/models.py | 8685f23c28416b661749aa9d952e46b42f882ddd | [] | no_license | aliensmart/simple_web | 0e5d7fd1205bfed3145cce45dbcf374a9e63f7bc | 9b948de933ff5304f92ca80d5c556507f3000095 | refs/heads/master | 2022-06-28T17:28:33.325312 | 2020-05-10T13:28:47 | 2020-05-10T13:28:47 | 261,683,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from django.db import models
from django.utils import timezone
from django.urls import reverse
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
create_date = models.... | [
"kaoua17@gmail.com"
] | kaoua17@gmail.com |
e3282eb1cfcf9fe7aac2622513c0d4ec3a83ef22 | ff23e5c890216a1a63278ecb40cd7ac79ab7a4cd | /clients/hydra/python/test/test_is_ready200_response.py | 703e166a1c68f6cddf8085ea803a197d52a0a45b | [
"Apache-2.0"
] | permissive | ory/sdk | fcc212166a92de9d27b2dc8ff587dcd6919e53a0 | 7184e13464948d68964f9b605834e56e402ec78a | refs/heads/master | 2023-09-01T10:04:39.547228 | 2023-08-31T08:46:23 | 2023-08-31T08:46:23 | 230,928,630 | 130 | 85 | Apache-2.0 | 2023-08-14T11:09:31 | 2019-12-30T14:21:17 | C# | UTF-8 | Python | false | false | 785 | py | """
Ory Hydra API
Documentation for all of Ory Hydra's APIs. # noqa: E501
The version of the OpenAPI document: v2.2.0-rc.3
Contact: hi@ory.sh
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import ory_hydra_client
from ory_hydra_client.model.is_ready200_response im... | [
"3372410+aeneasr@users.noreply.github.com"
] | 3372410+aeneasr@users.noreply.github.com |
11cbf11fd837f408935a4f30b359536ebafaf26d | d7249238cf7c42ec7ee4dd8dfa7c1ba80b0d93d6 | /01_sklearn/02_weight_height_test.py | 9d612682a720ea8065bdf9a44692f105330ce222 | [] | no_license | happyquokkka/TIL_AI | eb47e9e419d7344e8a5fac27dc00ccaf16962368 | 4d13716867dfd9d938f866f769a74ea03b93c88a | refs/heads/master | 2023-07-18T14:24:45.290908 | 2021-08-27T13:34:44 | 2021-08-27T13:34:44 | 399,787,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
import matplotlib.pyplot as plt
# pip install pandas
# 공공데이터포털 -> '교육부 학생건강검사 결과분석' rawdata 서울 2015 다운로드 -> weight_height 로 파일명 변경
# 문제상황 : 여학생의 몸무게를 입력하면, 키를 예측하고 싶다.
# 데이터 준비
pd.set_option("di... | [
"yjmooon96@gmail.com"
] | yjmooon96@gmail.com |
cc5830bd8d5626e4aad789d1ad95107800ba6894 | a177699f24936458b9fe9eb73d9af51668601d20 | /src/zojax/subscription/subscription.py | 0c39a99d0d13a4ec928e717e197664cdebc47436 | [
"ZPL-2.1"
] | permissive | Zojax/zojax.subscription | 868dfbcc07f0abcc3f0e92ebf8051de0a544bfba | f72fa6cf7ad885519d4da23dc5cd5b6b1ae0d92c | refs/heads/master | 2020-05-17T03:36:52.743843 | 2014-01-31T11:06:15 | 2014-01-31T11:06:15 | 2,018,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
754a9e6ac4ad159d561e3bc49223a97c83cfe3d5 | 5b04b47b9498890ef95fa6e78fe7135c570a3f43 | /try_tables.py | 01c7612337c5cd00e0169b6d9038e2becabec074 | [] | no_license | donboyd5/puf_analysis_frozen | 8ca3ea7e899a7db60fe7b3ed681cbd80ef0f59e8 | 3aa2b1cb680aad16987ed776bcfdc878418e7a64 | refs/heads/main | 2023-04-12T12:55:48.495699 | 2020-12-16T09:48:39 | 2020-12-16T09:48:39 | 361,897,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 23 03:14:39 2020
@author: donbo
"""
# %% notes
# https://pandas.pydata.org/pandas-docs/stable/user_guide/style.html
# https://pbpython.com/styling-pandas.html
# https://mkaz.blog/code/python-string-format-cookbook/
# https://www.youtube.com/watch?v=Sj42rqym9lk
# https://... | [
"donboyd5@gmail.com"
] | donboyd5@gmail.com |
2168445a69fd58027a1d22b32431a5f3569f52c3 | 1c39d98a7f4be6939bcbacbf3b4f7d9610bf2ea9 | /0.Basis/0.pythonbook/25.RegularExpressions.py | c8cad87c86ebaf715bf911029b2cde0a21867e3e | [] | no_license | vlong638/VL.Python | 03ae0da96164d9cd2de521faea2cb86e68152bc8 | 06499fa1f7f7e4b4ae9f9e470c04f78bce86a7b1 | refs/heads/master | 2021-01-13T11:01:29.137801 | 2016-11-04T05:47:09 | 2016-11-04T05:47:09 | 69,540,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,928 | py | import PrintHelper
PrintHelper.PrintTitle('Regular Expressions With Python')
print('适用于数据挖掘,数据处理,抓取网页数据,大量的数据集合的模式化匹配')
print('正则表达式是字符串的模式化匹配,本章介绍如何使用正则表达式进行匹配')
PrintHelper.PrintSubtitle('The re Module')
PrintHelper.PrintHint('re,正则表达式模块')
PrintHelper.PrintHint('@pattern=re.compile(r@pattenString)','编译pattern')
Print... | [
"vlong638@163.com"
] | vlong638@163.com |
2ee3baa013cf6894c49b26fbbcd9f1e7e01a7640 | 6ff51e18e843e07fb9a08f299d6cd90c17ec54f0 | /softwares/base16/output/prompt-toolkit/base16/base16-codeschool.py | 979d22ad9c27e68a5a3835d2c224fab69e871df6 | [] | no_license | xzdandy/Configs | 79258716f658a38dbcf6483acd206b747d445fe2 | cc6f32462f49998fac69327ec6983de8067352ae | refs/heads/master | 2022-05-05T14:32:16.011938 | 2022-03-31T23:03:07 | 2022-03-31T23:03:07 | 173,981,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | # -*- coding: utf-8 -*-
# base16-prompt-toolkit (https://github.com/memeplex/base16-prompt-toolkit)
# Base16 Prompt Toolkit template by Carlos Pita (carlosjosepita@gmail.com
# Codeschool scheme by blockloop
from prompt_toolkit.terminal.vt100_output import _256_colors
from pygments.style import Style
from pygments.tok... | [
"xzdandy@gmail.com"
] | xzdandy@gmail.com |
5b7e1f7fad59a55adecd2e085f93e88b7e02d4c3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2653/60698/274540.py | b57d02b4c40b0bf4962611a78c22b05da38bef51 | [] | 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 | 281 | py | def test():
t = int(input())
for _ in range(0, t):
nx=input().split()
n=int(nx[0])
x=int(nx[1])
if x>=10:
print(0)
return
else:
time=10-x
num=n-1
print (num*time)
test() | [
"1069583789@qq.com"
] | 1069583789@qq.com |
fc414bd6e874eb9170259bd11f5421cd9647564f | 393a9ce7e465d211f99926afbc20f8e72fa6ce4d | /venv/bin/pip3 | 114101786a2c6dd465e49a127d0fda760e887e51 | [] | no_license | GarrettMatthews/Artemia | 210079f50c94c09c732c25efc6554b009e339856 | 008f8c46abdf5dbf270b057a820665e796d4a213 | refs/heads/master | 2020-07-29T05:29:45.979474 | 2019-12-10T17:52:38 | 2019-12-10T17:52:38 | 209,684,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | #!/home/garrett/Desktop/Git_Repositories/Artemia/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[... | [
"garrettemathews@gmail.com"
] | garrettemathews@gmail.com | |
cc1186b87d73c60fd1286cb040e3c7be0884f0c9 | 7b9f0f9be9d7422546c300b0d4dead3b10fb7ee7 | /ariaml/createInput.py | df341539f8702167c06251b98a295bc65b24a1fa | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | aria-jpl/ariamh | 73f163f0c80da949f6ea88469fd2c67ab229ef20 | b6a06330cb5a592022070724b34eb6a011e7cbdc | refs/heads/develop | 2022-12-26T13:45:29.287226 | 2022-02-10T05:08:43 | 2022-02-10T05:08:43 | 124,922,867 | 6 | 7 | Apache-2.0 | 2022-12-13T13:53:45 | 2018-03-12T17:02:52 | Python | UTF-8 | Python | false | false | 330 | py | #!/usr/bin/env python
import sys, json
def write_input(ctx_file, in_file):
with open(ctx_file) as f:
j = json.load(f)
input = { "url": j['rule_hit']['_source']['urls'][0] }
with open(in_file, 'w') as f:
json.dump(input, f, indent=2)
if __name__ == "__main__": write_input(sys.argv[1], sys... | [
"pymonger@gmail.com"
] | pymonger@gmail.com |
ea5bb42024088a52e5faddafce1ae405b2c755af | c6d389f085c683f33cc0d0ab6497b3f042f7c905 | /distanceBetweenPointAndSegment.py | ed8315fdfa93c2689eee34f35a3b9d99e47aff07 | [] | no_license | irhadSaric/computer-geometry | 0d23fbafbedb18b22df30cc8071f4103237eef2d | 25a73c756472896c316d685ca6792c8c94f31361 | refs/heads/master | 2020-04-04T08:01:38.501815 | 2019-02-26T20:05:08 | 2019-02-26T20:05:08 | 155,768,457 | 0 | 0 | null | 2019-02-26T20:10:33 | 2018-11-01T19:56:17 | Python | UTF-8 | Python | false | false | 635 | py | from math import sqrt
def distancePtoS(point, segment):
x = point[0]
y = point[1]
x1 = segment[0][0]
y1 = segment[0][1]
x2 = segment[1][0]
y2 = segment[1][1]
A = x - x1
B = y - y1
C = x2 - x1
D = y2 - y1
dot = A * C + B * D
len_sq = C * C + D * D
param = -1
if... | [
"irhad.saric@hotmail.com"
] | irhad.saric@hotmail.com |
205750ec03969e29011a40ca0bb85064d668571e | 678e374616008bd3d72e2c399ece7e219601bebc | /src/billing/models.py | fd28f1b45c723ff87727da6e38eda558ca08bff0 | [
"MIT"
] | permissive | LABETE/srvup_and_drf | 74d454f7fc2aa1f7869b2a40f15f18cfdecc9835 | e6b09ce8f8b01bbcbdce291efbbba16c2837b38f | refs/heads/master | 2016-08-12T19:04:05.411849 | 2016-01-26T17:16:26 | 2016-01-26T17:16:26 | 50,445,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,892 | py | import datetime
import random
from django.conf import settings
from django.contrib.auth.signals import user_logged_in
from django.db import models
from django.db.models.signals import post_save
from django.utils import timezone
from .signals import membership_dates_update
from .utils import update_braintree_membershi... | [
"eddie.valv@gmail.com"
] | eddie.valv@gmail.com |
4e87a4a33512bdf4d49b79da2a44373a7c62dab8 | e8bf00dba3e81081adb37f53a0192bb0ea2ca309 | /domains/nav/problems/training/problem1032_SD.py | bce3f354d7fa46d2c39311b6b2bf4b2ab138740f | [
"BSD-3-Clause"
] | permissive | patras91/rae_release | 1e6585ee34fe7dbb117b084df982ca8a8aed6795 | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | refs/heads/master | 2023-07-13T20:09:41.762982 | 2021-08-11T17:02:58 | 2021-08-11T17:02:58 | 394,797,515 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | __author__ = 'patras'
from domain_springDoor import *
from timer import DURATION
from state import state, rv
DURATION.TIME = {
'unlatch1': 5,
'unlatch2': 5,
'holdDoor': 2,
'passDoor': 3,
'releaseDoor': 2,
'closeDoors': 3,
'move': 7,
'take': 2,
'put': 2,
}
DURATION.COUNTER = {
... | [
"patras@umd.edu"
] | patras@umd.edu |
14b61fbbc57d056ce76adcf743c6de1c24e1669e | ca27df9a42fdba2fb9c42ced68b1b3e734e0fb76 | /src/modu/editable/datatypes/boolean.py | b695dbf72fee4b17b8ff56ca82ed177cbfd26c68 | [
"MIT"
] | permissive | philchristensen/modu | 1696ecf36908367b0358b06c3bee02552fc76651 | 795f3bc413956b98522ac514dafe35cbab0d57a3 | refs/heads/master | 2016-09-06T10:54:59.286492 | 2015-03-29T21:22:47 | 2015-03-29T21:22:47 | 829,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,285 | py | # modu
# Copyright (c) 2006-2010 Phil Christensen
# http://modu.bubblehouse.org
#
#
# See LICENSE for details
"""
Datatypes to manage boolean-type fields.
"""
from zope.interface import implements
from modu.persist import sql
from modu.editable import IDatatype, define
from modu.util import form
from modu import per... | [
"phil@bubblehouse.org"
] | phil@bubblehouse.org |
1081ea17c0124f9ba46398a111ac9aa9c1c6bc52 | 3ac0923505e1e03a07742355edec43f23ead82b7 | /Daily/PY/LCP7-传递信息.py | 47dde08f7b68165b4b97ab8cafc5df622c6a5329 | [] | no_license | lock19960613/SCL | 5055c940d2529eef981a29698c7ea04212a8b9de | 3ea28fd8f5d5233411341283c85667e4b9fc64d5 | refs/heads/main | 2023-08-03T04:36:33.555296 | 2021-09-11T06:48:49 | 2021-09-11T06:48:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from typing import List
class Solution:
def numWays(self, n: int, relation: List[List[int]], k: int) -> int:
edges = [[] for _ in range(n)]
for s2d in relation:
edges[s2d[0]].append(s2d[1])
ans = [0]
def dfs(idx,step,ans):
if step == k:
if idx... | [
"597494370@qq.com"
] | 597494370@qq.com |
e39b7a772ddc094a8023faf4ec83d011face4a00 | 82aee3211216f55392d5a757eb57f02c859e9a28 | /Easy/141_linkedListCycle.py | d23cc846dcdedbbb257bffebfd2150b7ee2dddbb | [] | no_license | Yucheng7713/CodingPracticeByYuch | 505d18095d4b9a35c1f3b23632a90a76d811b64a | 1461b10b8910fa90a311939c6df9082a8526f9b1 | refs/heads/master | 2022-05-01T11:51:00.612603 | 2022-04-18T09:46:55 | 2022-04-18T09:46:55 | 198,961,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def hasCycle(self, head):
if not head:
return False
l_index = f_index = head
while f_index != None and f_index.ne... | [
"yuchengh@usc.edu"
] | yuchengh@usc.edu |
7bb147fb781245b85941bb53ade305b787c1f256 | 7ba9ba1570ef44ced18bf7689329d5f5d4bcc350 | /src/fracx/api/models.py | f1a9f5909798a2fd90a16181348846977c0a88d7 | [
"MIT"
] | permissive | la-mar/permian-frac-exchange | 90992393cdcdb6c6a8b697a5c7d8fc64a4bff2f2 | a7ba410c02b49d05c5ad28eff0619a3c198d3fd0 | refs/heads/master | 2020-06-12T04:40:52.642629 | 2020-04-14T23:50:07 | 2020-04-14T23:50:07 | 194,196,884 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import logging
from sqlalchemy.sql import func
from api.mixins import CoreMixin
from config import get_active_config
from fracx import db
conf = get_active_config()
logger = logging.getLogger(__name__)
class FracSchedule(CoreMixin, db.Model):
__tablename__ = conf.FRAC_SCHEDULE_TABLE_NAME
api14 = db.Colu... | [
"brocklfriedrich@gmail.com"
] | brocklfriedrich@gmail.com |
383074dc0b73c2d849f90519a9ec6f5795dc935c | e92a3d0fb77120be99de6040cb6cd34eda0a95f4 | /urllib, requests, re, webcrawler - усиленная работа со скрапперами сайтов/code/filter_example_10.py | 7ec48ce5918ab84d7e1f5f1e182bb92b97a14424 | [] | no_license | Python18Academy/python_first_level | 495f85631f5afc737aa156ef8ca0ea307340c322 | 9ce490da3108474b135a17086f4d11f2a3bbbe55 | refs/heads/master | 2023-09-04T17:00:36.920987 | 2021-03-31T18:44:37 | 2021-03-31T18:44:37 | 331,934,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | a = [1, -4, 6, 8, -10]
def func(x):
if x > 0:
return 1
else:
return 0
b = filter(func, a)
b = list(b)
print(b) | [
"isakura313@gmail.com"
] | isakura313@gmail.com |
5a4fca19914b7786c3fc10ad8986966a961fd341 | 5585352909cb26420ec3f4b54df2253a2112c5c9 | /0925/isLongPressedName.py | c6c189d7901cc900138377cabcd1a1d06b6031af | [] | no_license | minuso/leetcode | fd05472a782463b27575c9149081bcd38f03a7c5 | 56cafa52a6a3534efc2c32db4acf516b2a285a46 | refs/heads/master | 2020-04-25T17:18:56.299245 | 2019-06-16T16:19:09 | 2019-06-16T16:19:09 | 172,943,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def isLongPressedName(self, name: str, typed: str) -> bool:
i, j = 0, 0
while i < len(name) and j < len(typed):
if name[i] == typed[j]:
i, j = i+1, j+1
else:
j += 1
return i == len(name) | [
"minuscholar@gmail.com"
] | minuscholar@gmail.com |
319efc41188b3161c74b9492ad912388557f640e | 91b2fb1fb6df216f2e365c3366bab66a567fc70d | /Week10/每日一题/面试题 02.05. 链表求和.py | adeaf8a3b372d2228ba46b48489634b0acdac3df | [] | no_license | hrz123/algorithm010 | d17aee642f03f607a7984beb099eec18f2de1c8e | 817911d4282d2e226518b3533dff28282a91b3d4 | refs/heads/master | 2022-12-20T14:09:26.365781 | 2020-10-11T04:15:57 | 2020-10-11T04:15:57 | 270,178,423 | 1 | 0 | null | 2020-06-07T03:21:09 | 2020-06-07T03:21:09 | null | UTF-8 | Python | false | false | 2,392 | py | # 面试题 02.05. 链表求和.py
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
carry = 0
dummy = ListNode(0)
cur = dummy
while l1 o... | [
"2403076194@qq.com"
] | 2403076194@qq.com |
d687316af88ab599c537375566f06965c12be41d | e522dc3b8ae16fb6adf8c679c2fcd61e06979f29 | /example/gpio_example.py | 389b5f9b1201efa4304a5a4758bf4f01ffb70ffb | [
"MIT"
] | permissive | amaork/raspi-io | 96e92330555e7700f54633f582efbc7620f8b10b | aaea4532569010a64f3c54036b9db7eb81515d1a | refs/heads/master | 2021-09-17T15:27:43.853195 | 2021-08-27T08:51:24 | 2021-08-27T08:51:24 | 94,192,125 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!/usr/bin/env python3.5
from raspi_io import GPIO
import raspi_io.utility as utility
if __name__ == "__main__":
io = [20, 21]
gpio = GPIO(utility.scan_server()[0])
gpio.setmode(GPIO.BCM)
gpio.setup(io, GPIO.OUT)
gpio.output(io, 1)
gpio.output(io, 0)
gpio.output(io, [1, 0])
gpio.outp... | [
"amaork@gmail.com"
] | amaork@gmail.com |
92f985f89dee5987ed7ece4d443d4638d9a09a6e | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst_tags/optimized_3617_sml.py | ee0308f6fdb401a92bd718d4bf86136600712fb3 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,722 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
b72f8e277d42961c941209ec8450b8269aa663e5 | 240dc81851dd0243c0b14511f6d8b563ab91c890 | /admin/backup_views.py | 76ae812e8d20d8a67fe351feec027d7f34568084 | [] | no_license | prcek/TSReg | 0aac7ffc7992b731d12dc3959d661bc8c3639744 | ea6eac514d8e783ddaeeed6181b9ab45d5673c05 | refs/heads/master | 2020-05-30T03:19:46.737202 | 2017-06-08T08:14:00 | 2017-06-08T08:14:00 | 2,208,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,578 | py | # -*- coding: utf-8 -*-
from django import forms
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.shortcuts import render_to_response, redirect, get_object_or_404
from django.template import RequestContext,Context, loader
import utils.config as cfg
from utils.data import UnicodeReader
fr... | [
"tomas.hluchan@gmail.com"
] | tomas.hluchan@gmail.com |
ea8ce920973c4519f0a07fbdcfc341110505353f | bf9b4ff0145381084e11b2df64a8399b46328b36 | /libby/main.py | ba1af7b19c80ad799f69e55ca89c5b4114208fd1 | [] | no_license | kwarwp/grete | f6fbf7e21464536cb27253aa02de4b3292179883 | e5f02660c57ba3d271b059d8b7972099226a0987 | refs/heads/master | 2023-04-06T21:11:37.811621 | 2023-03-16T21:32:04 | 2023-03-16T21:32:04 | 128,999,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,438 | py | # grete.libby.main.py
#REVISADO PRONTO
from _spy.vitollino.main import Cena,Elemento,Texto, Sala, INVENTARIO
#CAMPO = "https://image.freepik.com/fotos-gratis/paisagem-de-campo-de-golfe_1388-96.jpg"
#CASAL = "https://images.vexels.com/media/users/3/129903/isolated/preview/c996f5193090b3a642ffc069bc81da0c-silhueta-do-ca... | [
"38007182+kwarwp@users.noreply.github.com"
] | 38007182+kwarwp@users.noreply.github.com |
55f4c8eb3f284879551872c0d056599a50209d67 | 6643bd4ecd44a21944debc75d79c4616bdac7868 | /datawarehouse/opertaion/script/ETL_P2P.py | e41ca1fb1dac6f879da61768c24a2d36d4b7928b | [] | no_license | smartbrandnew/vobileETLCode | d14fb9f34eb1f76e6e60253557c8b964137f6cb4 | 210e9060ed9fc1d278373910cfe203808b1afb04 | refs/heads/master | 2021-07-14T07:30:08.018828 | 2016-07-04T08:40:57 | 2016-07-04T08:40:57 | 62,543,866 | 0 | 2 | null | 2020-07-22T19:56:50 | 2016-07-04T08:12:01 | Python | UTF-8 | Python | false | false | 2,050 | py | #!/usr/bin/python
import MySQLdb
import sys
import time
import datetime
# downloads
conn=MySQLdb.connect(host='p2p-1-replica.c85gtgxi0qgc.us-west-1.rds.amazonaws.com',user='kettle',passwd='k3UTLe',port=3306)
conn.select_db('hubble_stat')
dlcur=conn.cursor()
dlcur.execute('select date_format(finished_at, "%Y-%m-%d")... | [
"smartbrandnew@163.com"
] | smartbrandnew@163.com |
6c882c2b99ed74a91f891acc54ce5e7717911120 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /yoto/problems/base.py | 28a7ba39f965d68d325b980d3acc1a0d43a249af | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,804 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
c308f7c1b5031043658b922ec5cf81a010636bb4 | 1647dd424edd275a4b078bcc5a0cba7312e81fdc | /common_utils/data_types/correlation_matrix.py | f117d3adb988b301dc88494b9d433ea3ee02523a | [
"MIT"
] | permissive | CroP-BioDiv/zcitools | a72646bec8795bd24aca2dc7fa91c116be6abd7a | 3340a92f710f4acb5d3507bec639c40a17dfb5f2 | refs/heads/master | 2022-09-23T07:09:16.671748 | 2022-09-17T11:09:21 | 2022-09-17T11:09:21 | 222,237,739 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | from common_utils.import_method import import_pandas
from common_utils.exceptions import ZCItoolsValueError
class CorrelationMatrix:
def __init__(self, columns, list_values=None):
self._columns = [c.replace(' ', '_') for c in columns]
self._columns_lower = [c.lower().replace(' ', '_') for c in col... | [
"ante.turudic@gmail.com"
] | ante.turudic@gmail.com |
50fb251c0bd246cad074f7cca232173dd0b7c5ed | f998a574343292d050777f616b408a74fde05738 | /eshop_docker/eshop/apps/trade/adminx.py | e70a39d7f2b85434781c6c7f8b3084dfc5e3750e | [] | no_license | Boomshakal/Django | 7987e0572fc902bd56360affea0b5087a4cb04a7 | a149691c472eab3440028bf2460cd992acec0f8a | refs/heads/master | 2023-01-11T06:16:29.283428 | 2022-12-23T08:00:05 | 2022-12-23T08:00:05 | 199,360,433 | 0 | 0 | null | 2020-06-06T09:37:02 | 2019-07-29T02:01:09 | Python | UTF-8 | Python | false | false | 716 | py | # -*- coding:utf-8 -*-
__author__ = 'xojisi'
__date__ = '2018/2/1 13:42'
import xadmin
from .models import ShoppingCart, OrderInfo, OrderGoods
class ShoppingCartAdmin(object):
list_display = ["user", "goods", "nums", ]
class OrderInfoAdmin(object):
list_display = ["user", "order_sn", "trade_no"... | [
"362169885@qq.com"
] | 362169885@qq.com |
0c9aadc2d0cb47adbdf5eb01b41759191fbb4b89 | 5a391bc46a3649d22e4f928ff995daf55caebf9d | /Day2/AsyncHttp2.py | db9e05a3dc416a83571e0943db548571c01b008a | [] | no_license | artheadsweden/Python_Adv_Nov_19 | d4d4c45b34394bf3b64ba3c64c91213bd5d21594 | edae48c6cdab2e3c2090394fc499f4cc500df13a | refs/heads/master | 2020-09-20T05:41:35.817957 | 2019-11-27T21:34:31 | 2019-11-27T21:34:31 | 224,390,626 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | from aiohttp import ClientSession
import asyncio
async def get(session, url):
async with session.get(url) as response:
return await response.text()
async def fetch(url):
async with ClientSession() as session:
print("Fetching", url)
html = await get(session, url)
print(url, "i... | [
"joakim@arthead.se"
] | joakim@arthead.se |
fb3497f271ad83c243e1b67f2e965dad71f998f4 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/Pillow/PIL/SgiImagePlugin.pyi | e7f4ff96e1b777c06448cd814b82d888da0b87e3 | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 301 | pyi | from typing import Any, ClassVar
from typing_extensions import Literal
from .ImageFile import ImageFile, PyDecoder
MODES: Any
class SgiImageFile(ImageFile):
format: ClassVar[Literal["SGI"]]
format_description: ClassVar[str]
class SGI16Decoder(PyDecoder):
def decode(self, buffer): ...
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
cd2837c6567f62732024d941943feef047ced534 | 662422157827bfa076cde1369117b04646bc09af | /DNS/bruteforce_ipv6.py | 2ed8ed208fa1325a6cffa48b16d7209ecee4d5ea | [] | no_license | macavalcantep/MBA_IMPACTA | d1d1e37de6bc1a2d02a8bb9a0e5112f9b9fd8ef5 | 9228d7f55a23b51c8e4b908333eb6e89431c76a2 | refs/heads/main | 2023-08-04T03:06:54.290331 | 2021-09-27T21:20:11 | 2021-09-27T21:20:11 | 402,221,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | #!/usr/bin/python
import dns.resolver
myquery = dns.resolver.Resolver()
domain = "yahoo.com"
#host ="www"
#target = host + "." + domain
def func_a(_target):
question = myquery.query(_target, 'AAAA')
for _addr in question:
print('[+] - ' + _target + '---> ' + str(_addr))
def bruteforce_dns_ipv6(_word... | [
"yellow@battosai.yellow.dojo"
] | yellow@battosai.yellow.dojo |
734cf2f816bfa171b109a2ecd2be7c9fe690212b | decea024dde21a9e4847992c53c67da2bc3f365c | /Lectures/Intro to Frameworks/Lab/ORMs/app/models.py | 2f5358169b9efc5eaf88d1be4ea29ac2cdbeceda | [] | no_license | rjglushko/IOLab | bd0d2fd941a0ab592ca84ff9c679b24cad9dbf7d | 08e08691ecf488ef35faf3d431681756c7d7995a | refs/heads/master | 2021-01-10T04:21:44.095280 | 2016-03-19T05:03:22 | 2016-03-19T05:03:22 | 47,841,381 | 0 | 3 | null | 2016-03-19T04:28:29 | 2015-12-11T17:36:30 | HTML | UTF-8 | Python | false | false | 472 | py | from app import db
class Customer(db.Model):
id = db.Column(db.Integer, primary_key=True)
company = db.Column(db.String(120), unique=False)
email = db.Column(db.String(120))
# You need to a relationship to Address table here
# see http://flask-sqlalchemy.pocoo.org/2.1/models/#one-to-many-r... | [
"="
] | = |
5b06e6d0a8f9dec3336df8b334522c5d6177989a | 3ca57c41e909849729a6be0a9cbfd0f09d8c23cc | /plot_compound_length_thesis.py | d53d1d4da7ad778f3e5e5953e26eb96fa44c5cec | [
"Apache-2.0"
] | permissive | evanmiltenburg/MeasureDiversity | ec060132e51a4203daa725eeca2f0d3ca4ba6e38 | 8b79349ac339d949156cdc90d3cab9abc332c978 | refs/heads/master | 2021-03-27T06:27:27.749091 | 2019-12-29T12:40:13 | 2019-12-29T12:40:13 | 117,252,509 | 12 | 3 | Apache-2.0 | 2019-07-11T10:51:06 | 2018-01-12T14:46:43 | Python | UTF-8 | Python | false | false | 2,827 | py | import json
from matplotlib import pyplot as plt
from matplotlib.lines import Line2D
import seaborn as sns
import pandas as pd
sns.set_style("white")
sns.set_context('paper', font_scale=7)
my_palette = sns.cubehelix_palette(10, start=.8, rot=-.95)#sns.color_palette("cubehelix", 10)
sns.set_palette(my_palette)
system... | [
"emielonline@gmail.com"
] | emielonline@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.