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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
705b69961d6ef6f15527f8a41216e0252e8b2f47 | 408f8c561a695ac20b792ba0c4a230c154dad347 | /experiments/stepsizes/sbs_compare-stepsizes-algs.py | 36498c846f6d013d8a82bd5b13ba98fef7f62604 | [] | no_license | andnp/acceleration-v2 | a407888c74a247e6d441259d50d77cf6194f728b | 52b8a42c3e315ddbb4549a3a941afda81e92be9b | refs/heads/master | 2022-11-26T05:42:17.680125 | 2020-08-02T23:25:01 | 2020-08-02T23:25:01 | 204,991,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,658 | py | import os
import sys
import glob
import matplotlib.pyplot as plt
sys.path.append(os.getcwd())
from itertools import tee
from src.analysis.learning_curve import plot, save, plotBest
from src.analysis.results import loadResults, whereParameterGreaterEq, getBest, find
from src.analysis.colormap import stepsize_colors as ... | [
"andnpatterson@gmail.com"
] | andnpatterson@gmail.com |
d098ee70b4ea10461a5efc37450176fcc58149c7 | fe0432cd6fa8cfdd38cd2fd8e0447e3e28796141 | /Trees/min_depth_binary_tree.py | 516959950cb161820c981e856704c66b55177a05 | [] | no_license | MuberraKocak/data-structure-python | 6e16f76d241975535d6e5ba43620149b606725e9 | 23bce4198080a06f5127f845b5f17cbc4e9adfa2 | refs/heads/master | 2023-04-21T23:46:58.094265 | 2021-05-14T05:03:20 | 2021-05-14T05:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | from collections import deque
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
def find_minimum_depth(root):
if root is None:
return 0
queue = deque()
queue.append(root)
minimumTreeDepth = 0
while queue:
minimumTreeD... | [
"tahauygun@gmail.com"
] | tahauygun@gmail.com |
1502ac82f00ca1ebc316eaefec60f06627b70abf | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/duplicate_20200619174915.py | 4ff85fa09d6fffe1379448e48b3544ff498e0c62 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | def duplicate(str):
# brute force approach
# is storing the substring and checking how many times they
# occur
# dictionary key is the substring and occurrences is how many
# times its occurred
words ={}
# pointers
left = 0
right = 1
while right <=len(str) and left < len(str)... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
848a43cc37def1ad57baaa70f1a50ae43eb62855 | c85f19a599d9e58022d1226431c02e3a083f0a16 | /post scripts/qbittorrent.py | 35ffb3790533baa4f28f63c7c371b5994af96d7c | [
"Apache-2.0"
] | permissive | nosmokingbandit/Autolycus | 5aed1344a94867a36acb3515f2c27600a0118c86 | 37b376ba2fc27aa7e98f0071b457ebfbc605d4ab | refs/heads/master | 2020-05-26T15:37:10.907416 | 2017-04-23T20:47:21 | 2017-04-23T20:47:21 | 82,493,195 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | #!/usr/bin/env python
# ======================================== #
# ============= INSTRUCTIONS ============= #
# Add file to QBittorrent's Run External Program
# python "path/to/this/script/qbittorrent.py" "%N" "%D" "%R" "%I"
# Add api information to conf:
watcherapi = 'APIKEY'
watcheraddress = u'http://localhost:9... | [
"nosmokingbandit@gmail.com"
] | nosmokingbandit@gmail.com |
aa8e53a9a32bcc1ff66c8e740dd44ad5d6958efc | 1078c8a8c38d6a4d28718de9ab4afe6a6ae55072 | /machine_learning/machine_learning/asgi.py | 10c4d2014c8375a5eaff3c72fd7b6f2de22de18a | [] | no_license | srksuman/Flight-Price-Prediction | 5297b2772a70c0ae15213bb9de5ab5264c6ca65f | cf6859f4c9b209248819580a8d4d6afb8d809b27 | refs/heads/master | 2023-06-18T12:18:01.551345 | 2021-07-11T20:58:49 | 2021-07-11T20:58:49 | 384,121,070 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for machine_learning project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJA... | [
"sumanrajkhanal@gmail.com"
] | sumanrajkhanal@gmail.com |
0c71d4ccb534538b9642f7f0c60e753e3cb6a4ed | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_hairstyles.py | 25496dbbcdd2eb912ee68c7823f0ea3cb2042560 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py |
from xai.brain.wordbase.nouns._hairstyle import _HAIRSTYLE
#calss header
class _HAIRSTYLES(_HAIRSTYLE, ):
def __init__(self,):
_HAIRSTYLE.__init__(self)
self.name = "HAIRSTYLES"
self.specie = 'nouns'
self.basic = "hairstyle"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f089e03676b644fa084965f5c56f11e7a41dbb2e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_341/ch46_2020_09_28_19_37_37_628432.py | b342a5568c45fb27c4cbc0fa6eb50576cf56afe2 | [] | 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 | 212 | py | list = []
i = 0
def numero_no_indice(lista):
while i < len(lista):
if i == lista[i]:
list.append[lista[i]
i = i + 1
else:
i = i + 1
return list
| [
"you@example.com"
] | you@example.com |
e45e1c70c2d12c5c5892067039e94c1485593dff | 60eb98538025c61cf94a91f6c96f9ee81dcd3fdf | /tests/test_handler_rocauc_dist.py | e7689061581bf93b3a04e1712560a6f8abe9818f | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | gagandaroach/MONAI | 167e7746995d4b6136731881e22ad4df333b16a9 | 79b83d9fac41efae9b90ed2f9ad078d6d664bf64 | refs/heads/master | 2023-06-02T19:54:47.737846 | 2021-06-24T18:34:02 | 2021-06-24T18:34:02 | 270,741,899 | 0 | 0 | Apache-2.0 | 2020-06-08T16:29:32 | 2020-06-08T16:29:31 | null | UTF-8 | Python | false | false | 1,729 | py | # Copyright 2020 - 2021 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in wri... | [
"noreply@github.com"
] | gagandaroach.noreply@github.com |
8ec630a9c9c043b1e15cd3cdbba7cff6e99f7cab | 4b4d21f6a2aaf8cb0ece595e4aaf9cb705ffdd49 | /api_sales_taobao/models/api/rest/RefundRefusereasonGetRequest.py | c4055b9153ed09082c6da8de941187137fb2c18a | [] | no_license | sc4you/odoo-project-10.0 | e8c82b4cd42c0672e996561e75e0f9d0717821fa | bca7e400b6316bcbcefe6f0d088cb97a28f644bb | refs/heads/master | 2020-03-21T13:41:08.042847 | 2018-05-15T07:41:58 | 2018-05-15T07:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | '''
Created by auto_sdk on 2016.02.20
'''
from base import RestApi
class RefundRefusereasonGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.fields = None
self.refund_id = None
self.refund_phase = None
def getapiname(self):
retu... | [
"guwenfengvip@163.com"
] | guwenfengvip@163.com |
5d6b8e12d1e1984375359741b42978a58ab17388 | 107fdd20682510440fc002c5b26ce6d51227d23d | /p06_tall_box/p06c.py | aa04bc8252f231ecba19857e4f74821cd93a2c85 | [] | no_license | dcollins4096/ytscripts | bddb1a82b30d533e5789a16109dca9226713c76d | 52d8337dbbcba5d004663ec2cd1d2a15503c952d | refs/heads/master | 2022-07-29T07:44:18.847626 | 2022-07-18T13:17:11 | 2022-07-18T13:17:11 | 185,677,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py |
if 0:
fname = '../Enzo/grackle_3/input/CloudyData_UVB=HM2012.h5'
fptr = h5py.File(fname,'r')
Lambda=fptr['CoolingRates']['Metals']['Cooling'][:,0,:]
Gamma=fptr['CoolingRates']['Metals']['Heating'][:,0,:]
nG=10**fptr['CoolingRates']['Metals']['Heating'].attrs['Parameter1']
TG=fptr['CoolingRates'... | [
"none@none"
] | none@none |
c0caa554d3ef7e3bed8c76ea8eb24b44532a348d | 866261aaa42d915e9b4e1e938fadb04724105a2b | /appendix_a_wx_demo/dvc_demo_2.py | 1a624ae96eff941edc37b74bae7020f36e4f241a | [] | no_license | harrychen9999/applications_with_wxpython | 16ef3519dc92f48be958f6e3cff367b04a9c1d41 | c097c26a23d03684fb62b46da0462762c19b1af8 | refs/heads/master | 2022-12-03T12:25:10.546050 | 2020-08-24T14:54:23 | 2020-08-24T14:54:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,933 | py | # dvc_demo_2.py
import wx
import wx.dataview as dv
musicdata = {
1 : ("Bad English", "The Price Of Love", "Rock"),
2 : ("DNA featuring Suzanne Vega", "Tom's Diner", "Rock"),
3 : ("George Michael", "Praying For Time", "Rock"),
4 : ("Gloria Estefan", "Here We Are", "Rock"),
5 : ("Linda Ronstadt", "Don't Know Much", "Ro... | [
"mike@pythonlibrary.org"
] | mike@pythonlibrary.org |
fed8da334c09f68b70d045978e1d27d2fba3c904 | a2b6bc9bdd2bdbe5871edb613065dd2397175cb3 | /简单/拿硬币.py | 3a3463ca2ded2ae9d3e65506424be9879047ebbb | [] | no_license | Asunqingwen/LeetCode | ed8d2043a31f86e9e256123439388d7d223269be | b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee | refs/heads/master | 2022-09-26T01:46:59.790316 | 2022-09-01T08:20:37 | 2022-09-01T08:20:37 | 95,668,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | '''
桌上有 n 堆力扣币,每堆的数量保存在数组 coins 中。我们每次可以选择任意一堆,拿走其中的一枚或者两枚,求拿完所有力扣币的最少次数。
示例 1:
输入:[4,2,1]
输出:4
解释:第一堆力扣币最少需要拿 2 次,第二堆最少需要拿 1 次,第三堆最少需要拿 1 次,总共 4 次即可拿完。
示例 2:
输入:[2,3,10]
输出:8
限制:
1 <= n <= 4
1 <= coins[i] <= 10
'''
from typing import List
class Solution:
def minCount(self, coins: List[int]) -> int:
... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
6ef31112ba1379c9301ff4f4a19ca6d369f42d3a | c0ae0d2c3d435edc2bfa506e18854cfe48a54c4d | /app/bot/ChatBlock.py | 58b45f4c865bfa57707d833e9073adea555f7ffb | [] | no_license | generaldave/TwitchChatBot | ec96bd9109aa5bb8310e640a5e08c22aae50daf7 | 2d140052a10a8765ccf5251be9cf4ac313d34aea | refs/heads/master | 2021-01-11T18:57:11.512327 | 2017-02-20T17:09:48 | 2017-02-20T17:09:48 | 79,279,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,109 | py | ########################################################################
# #
# David Fuller #
# #
# ChatBlock class: Chat wind... | [
"icepicktoeye@gmail.com"
] | icepicktoeye@gmail.com |
9720a75d321dd595025895074e64f4da9bab6835 | 79219d3f789510535d1d5e3642e32f5bdd8a0f1c | /tests/test_activity_async_sync.py | 4415c51750e31e14e853022baae65bf13b89f563 | [
"MIT"
] | permissive | dandavison/temporalio-3rd-party-python-sdk | e7d05db3ba975dcd4c257ebe31dac28011af4c2a | 61215e9623de8eb6588ea901a8b2289752f18315 | refs/heads/master | 2023-07-22T15:30:31.674861 | 2021-07-21T22:42:22 | 2021-07-21T22:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,306 | py | import threading
import pytest
from datetime import timedelta
import asyncio
from temporal.activity import Activity
from temporal.async_activity import Async
from temporal.decision_loop import ActivityFuture
from temporal.workflow import workflow_method, WorkflowClient, Workflow
from temporal.activity_method import a... | [
"firdaus.halim@gmail.com"
] | firdaus.halim@gmail.com |
80fb500bfd22d23df86499d03cd4cf39da0ae74b | edc1f1369794a4a1c499c6e9d5fe49a712657611 | /algorithms/leetcode_all/285.inorder-successor-in-bst/inorder-successor-in-bst.py | ef97c3cddfd0f172aaaa503644e0e5b5290695f6 | [] | no_license | williamsyb/mycookbook | 93d4aca1a539b506c8ed2797863de6da8a0ed70f | dd917b6eba48eef42f1086a54880bab6cd1fbf07 | refs/heads/master | 2023-03-07T04:16:18.384481 | 2020-11-11T14:36:54 | 2020-11-11T14:36:54 | 280,005,004 | 2 | 0 | null | 2023-03-07T02:07:46 | 2020-07-15T23:34:24 | Python | UTF-8 | Python | false | false | 905 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def inorderSuccessor(self, root, q):
"""
:type root: TreeNode
:type p: TreeNode
:rtype: T... | [
"william_sun1990@hotmail.com"
] | william_sun1990@hotmail.com |
ad6c2de58f0e8f1dc1ffd27d34ea52e6194096dc | 57ae5bfbb24ba5fec90c9b3ecf1e15f06f1546ee | /8-6-1.py | 13518f2f1688a08ac439146fedf179714b6c39e3 | [] | no_license | cjjhust/python_datastucture | f9104f1d5cae2df6436f56d4d3eaa212e6045943 | a222bbe4bfc145ee11f73676c8f033f451d45f78 | refs/heads/master | 2022-07-03T19:53:07.066387 | 2020-05-15T08:06:21 | 2020-05-15T08:06:21 | 260,272,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 10 17:39:50 2018
@author: CJJ
"""
def shell_sort(lists):
# 希尔排序
count = len(lists)
step = 2
group = count / step
while group > 0:
for i in range(0, group):
j = i + group
while j < count:
k = j - gr... | [
"44698055@qq.com"
] | 44698055@qq.com |
379d154a6dd44da7e58923660c7ccfaa7c919f20 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02663/s657702108.py | f981c3ddb82db9cc0fd274a5de9de1ddfd125051 | [] | 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 | 187 | py | def calc_blank_minute(H1, M1, H2, M2, K):
return (H2 * 60) + M2 - (H1 * 60) - M1 - K
H1, M1, H2, M2, K = map(int, input().split())
ans = calc_blank_minute(H1, M1, H2, M2, K)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c1da039645bd60598f23ec20c273f8daad696fb7 | 00829e1ff78f73dab073a201d68139960c1d1922 | /tools/toolset/tool/rigging/beam/helpers/utility_methods.py | 42c83cc06224b2d6095b9c1b3e5df613ebdb69d4 | [] | no_license | liangyongg/Beam_Tools | a021ceb4187107508536c46726da5b9629ffd1cf | 21b5d06e660f058434e589ae4f672f96296b7540 | refs/heads/master | 2018-11-04T04:43:02.523654 | 2018-08-26T12:33:09 | 2018-08-26T12:33:09 | 115,005,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | from rigging.beam.core.maths.math_object import MathObject
from rigging.beam.core.maths.vec3 import Vec3
from rigging.beam.core.maths.xfo import Xfo
from rigging.beam.core.maths.quat import Quat
from rigging.beam.core.maths import decodeValue
def logHierarchy(kObject):
"""Traverses the given Kraken hierarchy and... | [
"hhhh"
] | hhhh |
c4b45be26b2730a6a9d85f69a2bd45a5abfe615c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02910/s466426195.py | f8d801c319e7e6de40747994426ff6e649b43fee | [] | 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 | 249 | py | s = input()
odd = ["R","U","D"]
even = ["L","U","D"]
for i in range(len(s))[0::2]:
if not s[i] in odd:
print('No')
exit(0)
for i in range(len(s))[1::2]:
if not s[i] in even:
print('No')
exit(0)
print('Yes') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
26c7f842f08f85f3e907b6400b73b4e8b441d085 | bc8a0c1dd64104bc9612cb20a6950a0f8f4b6401 | /care/facility/summarisation/facility_capacity.py | cf9a29ae266d279ff5c92ce237c6ec711e5e4901 | [
"MIT"
] | permissive | raj-krishnan-r/care | 1f37c6b5f9cef661ffc10fadb17fc811d886bebd | e98d9e4854ec2df825ef09ca3cbf0018e3ab6f6b | refs/heads/master | 2023-04-15T17:46:00.535379 | 2021-04-24T11:03:15 | 2021-04-24T11:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,055 | py | from celery.decorators import periodic_task
from celery.schedules import crontab
from django.utils.decorators import method_decorator
from django.utils.timezone import localtime, now
from django.views.decorators.cache import cache_page
from django_filters import rest_framework as filters
from rest_framework import seri... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
3c1cfaae03ac2910b3ebc51ebe239d3a4b2e001a | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/semantic_segmentation/BiseNetV1_for_PyTorch/configs/unet/fcn_unet_s5-d16_ce-1.0-dice-3.0_256x256_40k_hrf.py | 435b083891cb4165a876cb5a55b7645c5147bb1f | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 954 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
e39b79ecdb211e65888e5a6295f610afa3ea3d3f | 3fa0967b9c79e88d676ff1f21bed919cf5e6e715 | /0x06-python-classes/2-square.py | 860f1a2292fa10819462d88562e47b6f8986b3cb | [] | no_license | ad-egg/holbertonschool-higher_level_programming | 695242c08e9facb7a817b5ceb97931aa544d35fc | ea2eb5856831e40369d09fbcf1118fe6254a1e11 | refs/heads/master | 2020-04-09T10:20:00.492627 | 2019-05-17T03:28:32 | 2019-05-17T03:28:32 | 160,267,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | #!/usr/bin/python3
"""This module makes a class Square and has a private instance attribute size.
"""
class Square:
"""a square is a parallelogram
Attributes:
__size: instantiates Square with size
size must be an integer that is 0 or greater
"""
def __init__(self, size=0):
"""this fun... | [
"539@holbertonschool.com"
] | 539@holbertonschool.com |
a5b8caed50e53cfad6b9446d567e4cbb7d33f67e | 2cd11d49f25b4d8a747fb949fc9622e6995df070 | /Widen/LC11_Container_With_Most_Water.py | c2971acc189f2367848ad2e52c14a36dc991e422 | [
"MIT"
] | permissive | crazywiden/Leetcode_daily_submit | 4364b0976b1c5168f0626534533a61bb9a963f96 | 15637e260ab547022ac0c828dd196337bd8d50a3 | refs/heads/master | 2021-11-12T00:24:31.187581 | 2021-11-11T05:56:29 | 2021-11-11T05:56:29 | 211,709,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | """
11. Container With Most Water
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains... | [
"yuangao719@gmail.com"
] | yuangao719@gmail.com |
5643421300869589b2680ad42d39588f057a5327 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/basic/1_7.py | 2907cdfbd35a50aeb45fd87f69d65a6f0d686cb0 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | How to generate a random letter in Python?
In this article, let’s discuss how to generate a random letter. Python
provides rich module support and some of these modules can help us to generate
random numbers and letters. There are multiple ways we can do that using
various Python modules.
**Method 1: Usin... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
09d69cfc4b611c6710eb901502bbb1376bd02574 | bb9fe2011536b211a9d3595029d7bc0674f8671e | /eireg/utils.py | f0ec45bbeee024b4f000e1a857acee1709214c7c | [
"MIT"
] | permissive | zutobg/eireg | 58826b623392803cb9b261a866ffab6671f39d7e | 460d30b6e5f26a0cf31d7ffb2201f8383bf47f4a | refs/heads/master | 2020-03-28T20:40:44.032444 | 2017-01-30T11:09:29 | 2017-01-30T11:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | def string_to_bytes32(str):
"""Convert OVT formatted invoicing address to internal bytes32 format.
Right pad addresses with zero.
"""
b = str.encode("ascii")
assert len(b) < 32
b += b'\0' * (32 - len(b))
assert len(b) == 32
return b
def ytunnus_to_vat_id(str):
"""Convert Y-Tunnus ... | [
"mikko@opensourcehacker.com"
] | mikko@opensourcehacker.com |
12b882904452a4bf46c799684e9bfe096514d026 | fa4fc25f5ec49433d4162cfbf34a670f39371973 | /backend/PersoRegBackEnd/catalogos_detalle/migrations/0004_auto_20141120_0214.py | 095cabce8ab2aba5dd9e9d15149cff4abd147d10 | [] | no_license | raultr/PerBackbone | 905e7b020cadeec114744cdb39aa9ff890b704bd | e9277886ca6c9fc6aa9233939e0544c1dcf07d37 | refs/heads/master | 2016-08-03T19:40:40.309758 | 2014-11-27T05:58:22 | 2014-11-27T05:58:22 | 26,204,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('catalogos_detalle', '0003_auto_20141119_0540'),
]
operations = [
migrations.AlterField(
model_name='catalogodeta... | [
"raultr@gmail.com"
] | raultr@gmail.com |
33f952a86216ed6ab29ac14c702c660c6e8812cb | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /day17/bookmanager/bookmanager/app01/urls.py | 0c191b9fbfabd908326e10d1e086fe4dbdd812e4 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 1,011 | py | from django.conf.urls import url
from app01 import views
urlpatterns = [
# 出版社的展示
# publisher/
url(r'^publisher/$', views.publisher_list, name='publisher'),
# 出版社的增加
# url(r'^publisher/add/$', views.publisher_add, name='pub_add'),
url(r'^publisher/add/$', views.PublisherAdd.as_view(), name='pub... | [
"13269469526@163.com"
] | 13269469526@163.com |
fd9edc5143ef68250d908d265d6f97b90f326b0c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03680/s780269048.py | 5126898b5b386e403755e9fbe130092a67c37b3f | [] | 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 | 342 | py | import sys
input=sys.stdin.readline
n=int(input())
button=[False]*(n+1)
button[1]=True
a={}
for i in range(1,n+1):
ai=int(input())
a[i]=ai
tmp=1
pushed={}
ans=0
while not button[2]:
button[tmp]=False
if tmp in pushed:
print(-1)
exit()
pushed[tmp]=1
tmp=a[tmp]
button[tmp]=True... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
819b9c670ff07e5dca7d7410915d4cfd7473cefb | 809876cf32d8bce9c011f78ef96292f492cd4030 | /earthengine/google-api-python-client/samples/src/moderator.py | 1ab9ea8ace24f1fd92e0432913d3ab6abe8eeb5f | [
"BSD-3-Clause"
] | permissive | MapofLife/MOL | 44ba1ff2101cd2897b76265d91aa185e432fa953 | e3c50ee4ec8364c61cfff3ea68ece1098674f4d6 | refs/heads/develop | 2021-01-18T03:25:14.456405 | 2014-05-19T21:06:53 | 2014-05-19T21:06:53 | 2,550,706 | 19 | 4 | null | 2014-04-10T16:49:16 | 2011-10-10T20:10:33 | Python | UTF-8 | Python | false | false | 1,648 | py | # version: v1
# scope: https://www.googleapis.com/auth/moderator
# title: Simple command-line example for Moderator.
# description: Command-line application that exercises the Google Moderator API.
# Create a new Moderator series.
series_body = {
"description": "Share and rank tips for eating healthy and c... | [
"eightysteele@gmail.com"
] | eightysteele@gmail.com |
6f8bb016a0648bb43049a0a53c7b6a113293e273 | a9d4e47aebbfac7d5f442da3bc5639e1ec65d508 | /test_db_connection_properties.py | 3d665d42166f87c8d0896feb6c4da6ddea6b0b0a | [
"BSD-2-Clause"
] | permissive | Krishnaarunangsu/LogBestPracticesPython | 107f23a2458085e1113dbec76bc0b2ac311e0250 | 15be48ce97e61ebd7e6ec46f3e31f4035c2f9c1c | refs/heads/master | 2021-07-07T00:52:22.594076 | 2020-09-04T04:38:38 | 2020-09-04T04:38:38 | 177,321,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | import pyodbc
from typing import Dict, List, Any, Union, Hashable
import yaml
def get_db_conn_properties():
"""
:param self:
:return:
"""
# Load the Database Configuration parameters from the YAML Configuration file
config: Union[Union[Dict[Hashable, Any], List[Any], None], Any] = yaml.load(... | [
"arunangsutech@gmail.com"
] | arunangsutech@gmail.com |
4fd21c3cff629f4c6ea2ad1376c595aaefdc76d0 | 3e4d75b4752697334a86529aff12abaa1d888dbb | /reaflow/expression/gene_detect_number_by_mean.py | a6af8f046ed69a9983dfccb7f8e8b5a445d214ec | [] | no_license | bioShaun/reaflow | eadc8814b43d0ebb8d3119520993279e3436d6d7 | f4ffbebe2ad49f7637a129b831e82b585aaa6d0a | refs/heads/master | 2020-03-27T05:49:56.347652 | 2018-09-11T08:33:13 | 2018-09-11T08:33:13 | 146,055,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | import fire
import configparser
import pandas as pd
import sys
CUTOFF = (0.1, 0.2, 0.5, 1)
TYPE = ('lncRNA', 'protein_coding', 'TUCP', 'circRNA', 'miRNA')
gene_exp = sys.argv[1]
gene_type = sys.argv[2]
tissue = sys.argv[3]
cutoff = float(sys.argv[4])
prefix = sys.argv[5]
def cal_grp_exp_gene(exp_table, gene_type, ... | [
"ricekent@163.com"
] | ricekent@163.com |
b3153925ea0a7b1d3c6fe8ed88bb2ba099c73a2f | 85b681e2c88de2d1c6bce6a0fbec10da3a4d5b13 | /src/tasks/risk_zone_loss_calculations/dfirm/update_building_risk_table_dfirm.py | b790ba304161cd46daa5d5ae41bfdca1a73a9234 | [] | no_license | availabs/lhmp | 0d828d3f6cd8b07e449b91399cd0651e4f090b19 | 734946ecb8a7165f3d914536879782f909a7a4ca | refs/heads/master | 2023-02-11T22:44:26.087848 | 2022-01-27T22:13:18 | 2022-01-27T22:13:18 | 177,841,761 | 0 | 0 | null | 2023-01-25T07:22:21 | 2019-03-26T17:56:20 | JavaScript | UTF-8 | Python | false | false | 2,270 | py | import psycopg2
import database_config
import pandas
import csv
import numpy as np
import json
import math
def createTable(cursor):
print ('UPDATING TABLE')
building_risk_data = pandas.read_csv('/home/nayanika/IdeaProjects/mitigate-api/tasks/risk_zone_loss_calculations/dfirm/output_building_risk_data.csv')
... | [
"nayanikabhargava1993@gmail.com"
] | nayanikabhargava1993@gmail.com |
b116031cc8571235fce1d28c77db362e38105db9 | 42516b0348936e257d04113c2e632dc72ba58e91 | /test_env/test_suit_ui_customer_issue/test_suit_ui_customer_issue_case03.py | 3d3e9660e922af243f5b2f379ee3cee2713a217a | [] | no_license | wwlwwlqaz/Qualcomm | 2c3a225875fba955d771101f3c38ca0420d8f468 | a04b717ae437511abae1e7e9e399373c161a7b65 | refs/heads/master | 2021-01-11T19:01:06.123677 | 2017-04-05T07:57:21 | 2017-04-05T07:57:21 | 79,292,426 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | # -*- coding: utf-8 -*-
'''
@author: U{huitingn<huitingn@qti.qualcomm.com>}
'''
import settings.common as SC
from case_utility import *
from logging_wrapper import log_test_case,save_fail_log,print_report_line
from test_case_base import TestCaseBase
from qrd_shared.case import *
from test_suit_ui_customer_issue imp... | [
"c_wwan@qti.qualcomm.com"
] | c_wwan@qti.qualcomm.com |
cdee1db8bf976fb4b6d3399b84a8951532e6cc53 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /kPHmvQPLbdEKYeM9L_5.py | 4d2e03ffd2e803491bf7f600dc9bccad333f9872 | [] | 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 | 1,256 | py | """
You are given a list `asteroids` of integers representing asteroids in a row.
For each asteroid, the absolute value represents its size, and the sign
represents its direction (positive meaning right, negative meaning left). Each
asteroid moves at the same speed.
Find out the state of the `asteroids` after all ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3d62b2c3d407a5696a3149264358286913d8ad4e | ea443f8986d25de37349f6ba1cc5bcd5d62dbc26 | /recipes/recipe/migrations/0002_alter_recipe_time.py | 55cd9d560fd6f13af91defd55fcc756f911a9d9a | [] | no_license | momchilantonov/Recipes | 2380f89c8136d01acf9f86c3a9fee3fb21cd26d0 | a946776ad172a1abfd3d2b63befb53cf123acc36 | refs/heads/main | 2023-06-02T04:30:25.725607 | 2021-06-23T09:40:50 | 2021-06-23T09:40:50 | 379,551,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # Generated by Django 3.2.4 on 2021-06-23 07:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipe', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='recipe',
name='time',
fiel... | [
"eng.antonov@gmail.com"
] | eng.antonov@gmail.com |
48115cba0530545db76d752d4d6d7e9dd147020c | 305aaf197f15534c1601f858b4f20c7010719769 | /generateattcks/generateattcks/sysmonhunter.py | acd25815f0fe18a3d923ad5cd510274d6e17c9da | [
"MIT"
] | permissive | doomedraven/pyattck | a58952dbd5b503bc2c531ca44d06e4817d7a88a5 | e663824b2320db7354865e6516eb2c6b12ffadbd | refs/heads/master | 2021-06-26T16:42:42.983055 | 2019-12-02T17:07:43 | 2019-12-02T17:07:43 | 206,406,098 | 1 | 0 | MIT | 2019-09-05T13:58:11 | 2019-09-04T20:19:07 | null | UTF-8 | Python | false | false | 1,341 | py | import requests, yaml
from .attacktemplate import AttackTemplate
class SysmonHunter(object):
__URL = 'https://raw.githubusercontent.com/baronpan/SysmonHunter/master/misc/attck.yaml'
def __get_data(self):
response = requests.get(self.__URL)
return yaml.load(response.content, Loader=yaml.FullL... | [
"josh.rickard@swimlane.com"
] | josh.rickard@swimlane.com |
d9e7e58ea7cdde2d84912959808ddad294de6250 | dd44e145ac547209f5f209bc9b1f09189bb8b5c7 | /Python-Advanced-2021/01.Lists-as-stacks-and-queues-E/05.Truck-tour.py | bdf2f10c99db95caf79976083538215d04e834f4 | [] | no_license | todorovventsi/Software-Engineering | e3c1be8f0f72c85619518bb914d2a4dbaac270f8 | 64ffa6c80b190e7c6f340aaf219986f769f175ab | refs/heads/master | 2023-07-09T05:35:14.522958 | 2021-08-15T14:35:55 | 2021-08-15T14:35:55 | 336,056,643 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | from collections import deque
total_petrol_pumps = int(input())
pumps_info = deque()
for number in range(0, total_petrol_pumps):
fuel, distance = input().split()
pumps_info.append([int(fuel), int(distance)])
success_point = None
for point in range(0, len(pumps_info)):
current_fuel = 0
is_complete =... | [
"todorov.ventsi@gmail.com"
] | todorov.ventsi@gmail.com |
3a735454534c784f95633b1f219fae3e89e9c357 | 6eca5af393e8e3c83efa7b89857e6876a4da9f9c | /athena/api_library/requests_api.py | b4e26f0c83a63e479506838e9863a35d4fdefb19 | [
"MIT"
] | permissive | dimitar-petrov/hey-athena-client | ec714dbf661a2a66eaea3f3bc72f1998ae0c7d78 | c4e3121b1df2493d0ddd097eb584ff4c69995695 | refs/heads/master | 2021-05-04T12:53:45.750307 | 2016-05-22T03:29:41 | 2016-05-22T03:29:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | """
A simple API for HTTP Requests (GET and POST)
"""
import json, traceback
from urllib import parse, request
def get(url, params=None, post=False, key=None):
if params:
data = parse.urlencode(params).encode('utf-8')
if post:
req = request.Request(url, data)
else:
... | [
"rcbyron@utexas.edu"
] | rcbyron@utexas.edu |
c7aa0d7f75facd2c1d200980e7c1db0606658de7 | 359f3d8a1a2b5524490c314a44d60cec1d06f658 | /whoweb/core/migrations/0001_initial.py | 80f7a3ee9ded883534cde6c13fe0822c7d27657c | [] | no_license | sivasuriyangithub/Merket_Intellect-s3.route | ec9d9aa7d4575d5ff8006e1454f69e4033193fc0 | 71a9ab642f9a31f4a318cebec7fe6a075870a83c | refs/heads/master | 2023-08-25T13:51:02.116705 | 2021-10-19T01:06:49 | 2021-10-19T01:06:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,415 | py | # Generated by Django 2.2.3 on 2019-08-19 22:34
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
initial = True
dependencies = [("contenttypes",... | [
"zach@whoknows.com"
] | zach@whoknows.com |
680f0992c71246f043308f6491056f52cb26ea0a | 8e07b5b7a8dd38e0ef2c7ffc97d0392d886f32e6 | /venv/Lib/site-packages/mypy/typeshed/third_party/2and3/cachetools/func.pyi | f9ebc79e1383131e1f77076e76d6d8e88bbc8c65 | [] | no_license | RodrigoNeto/cursopythonyt | fc064a2e6106324e22a23c54bdb9c31040ac9eb6 | 279dad531e21a9c7121b73d84fcbdd714f435e7e | refs/heads/master | 2023-07-03T00:54:09.795054 | 2021-08-13T12:42:24 | 2021-08-13T12:42:24 | 395,646,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | pyi | from typing import Any, Callable, Optional, Sequence, TypeVar
_T = TypeVar("_T")
_F = TypeVar("_F", bound=Callable[..., Any])
_RET = Callable[[_F], _F]
def lfu_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
def lru_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
def rr_cache(maxsize: in... | [
"rodrigoneto.forseti@gmail.com"
] | rodrigoneto.forseti@gmail.com |
716c32711d00303fe311acb0411c448be25d2a37 | cc3aa35b7d5039e782a0c2787123c2dd8b3480e3 | /QuestionsAndPapers/migrations/0004_sscklasstest_typetest.py | bc02071a65177831672b294a1031b700479c86f9 | [] | no_license | prashantspandey/bodhiai_test | 3ae9614ad428b0488a0b79e1a2b1bff67050871a | 2d3a11c5a596ee05613b28e0153bc0cb480fab9a | refs/heads/master | 2022-12-14T00:06:52.333755 | 2019-04-04T09:07:33 | 2019-04-04T09:07:33 | 179,462,093 | 0 | 0 | null | 2022-12-08T01:03:43 | 2019-04-04T09:06:43 | Python | UTF-8 | Python | false | false | 491 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2019-03-03 09:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('QuestionsAndPapers', '0003_auto_20190220_1526'),
]
operations = [
migration... | [
"prashants_pandey@outlook.com"
] | prashants_pandey@outlook.com |
26b34afc12dad81006a26484a0388bd2c0c7053c | 1c10937afbba2fd4a6c1d306603bc3b7f4900be6 | /aid1901/day1/demo_types.py | 04bc2a3f6d67f72a2fae2fd9d8afad6bf8def784 | [] | no_license | zh-en520/- | 5366628ce9d819ed1d29e41e35c0996090df1085 | 1e4697b091a3b321adc3fa2c13192de8fc3686f7 | refs/heads/master | 2020-06-28T21:25:59.080990 | 2019-08-03T07:21:42 | 2019-08-03T07:21:42 | 200,345,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | #自定义符合类型
import numpy as np
data = [
('zs',[60,61,65],15),
('ls',[60,61,65],15),
('ww',[60,61,65],15),
]
#第一种设置dtype的方式
a = np.array(data,dtype='U2,3int32,int32')
print(a[1]['f2'])#f2是字段的别名
print('-----------------------')
#第二种设置dtype的方式
b = np.array(data,dtype=[
('name','str',2),
('scores','int32... | [
"zh_en520@163.com"
] | zh_en520@163.com |
fe8322fe6c0e49fca7f133b310bac9e203966532 | 2455062787d67535da8be051ac5e361a097cf66f | /Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_857.py | a516e45ca599134ede471cef3dbf56c2b0d3f208 | [] | no_license | kmtos/BBA-RecoLevel | 6e153c08d5ef579a42800f6c11995ee55eb54846 | 367adaa745fbdb43e875e5ce837c613d288738ab | refs/heads/master | 2021-01-10T08:33:45.509687 | 2015-12-04T09:20:14 | 2015-12-04T09:20:14 | 43,355,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PAT")
#process.load("BBA/Analyzer/bbaanalyzer_cfi")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load('Configuration.EventContent.EventContent_cff')
process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load("Configuration.St... | [
"kmtos@ucdavis.edu"
] | kmtos@ucdavis.edu |
ea1aad64035ebbdb92536e95b412d69d315a63c4 | 0adb2ba90d62f59b858b2817c066b7cf3734ec5d | /asyncrequests/session.py | b87d000d0738372a4347fb3315fc70312e4c72f1 | [] | no_license | RevengeComing/asyncrequests | 69cb1656e297749db6429044709cc1a0527895ae | af3e1aa87cdb69edab8962fc7715d637aec97f82 | refs/heads/master | 2020-06-25T22:20:21.311350 | 2017-12-05T15:46:31 | 2017-12-05T15:46:31 | 96,991,984 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | from asyncio import get_event_loop
from .connection import Connection
from .models import Request
class Session():
def __init__(self):
self.loop = get_event_loop()
def __enter__(self):
return self
def __exit__(self, *args):
self.close()
async def request(self, method, url,
... | [
"s.hamzelooy@gmail.com"
] | s.hamzelooy@gmail.com |
0bc9b2c0b2372b4dacd3f15f9f0a9cb95f881c73 | b85c8edaf0d4edbc4ce820f19c9ecc7abcb2e3bc | /CSCI220/Week 11 - MAR26-30/Lab 11 - APR04/algorithms2.py | 79cafcaad732276b2462a88c03a4a9e517a98363 | [
"Apache-2.0"
] | permissive | itsallvoodoo/csci-school | 3eba3390c595b281f3f94750b8b787ca3f8c9f29 | ecf0c737d31c077e54ddd24ddab50d73d8eb5b17 | refs/heads/master | 2020-05-24T15:37:46.999396 | 2014-03-24T16:19:17 | 2014-03-24T16:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | #Lab 12 Lists, searching sorting
import time
def readData(filename):
pass
def isInLinear(srchValue, values):
pass
def isInBinary(srchValue, values):
pass
def bubbleSort(values):
pass
def insertionSort(values):
pass
def selectionSort(values):
pass
| [
"chaddhobbs@gmail.com"
] | chaddhobbs@gmail.com |
2b9119c65c1d9d2fba5ca84d546fac3223f7c0ae | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Python Programmer - Career Track/07. Cleaning Data in Python/04. Cleaning data for analysis/08. Dropping duplicate data.py | 26757ce2d1463c702ce07b2ba4a064e081a41b8a | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | '''
Dropping duplicate data
Duplicate data causes a variety of problems. From the point of view of performance, they use up unnecessary amounts of memory and cause unneeded calculations to be performed when processing data. In addition, they can also bias any analysis results.
A dataset consisting of the performance o... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
a087cedbfad7899571cdeede7db99bf525de25ce | 5e3a60731b90d71ed5160cb258a6eea399b47eb2 | /tests/test_api_skeleton.py | 75eff0be866d7b703bde18d02ee4387d7f212df2 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-public-domain"
] | permissive | digideskio/conda-build | c9d88641a72782193b360848a8d940ea81cb4ffd | a3f7e20e84555884aaa414b81188933f176cb4a0 | refs/heads/master | 2022-08-29T00:50:00.229523 | 2016-09-08T20:38:59 | 2016-09-08T20:38:59 | 67,979,525 | 1 | 0 | null | 2016-09-12T14:22:31 | 2016-09-12T05:46:35 | Python | UTF-8 | Python | false | false | 3,301 | py | import os
from pkg_resources import parse_version
import pytest
import yaml
from conda_build import api
from .utils import testing_workdir, test_config
thisdir = os.path.dirname(os.path.realpath(__file__))
repo_packages = [('', 'pypi', 'pip', "8.1.2"),
('r', 'cran', 'nmf', ""),
('p... | [
"msarahan@gmail.com"
] | msarahan@gmail.com |
d872530057b65f1d12e44e851b014c7820aa70b8 | ca78f93ebd8d4a592558cd5b5bd92f1d67f09352 | /custom_profile/api/urls.py | ae5b674746c75e7b41a12f525b08914af24277c1 | [] | no_license | anthonylauly/Cabangku | dad662a9fc5eb855c854a070835bc32464b4b52b | 2207007dbef388f0897d7376f42b7e5b8f7c1bac | refs/heads/main | 2023-01-23T21:03:03.075335 | 2020-12-07T12:44:07 | 2020-12-07T12:44:07 | 315,690,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from django.urls import path, include
from rest_framework import routers
from . import views
app_name = 'profile'
router = routers.SimpleRouter()
router.register('profile', views.ProfileViewSet)
urlpatterns = [
path('', include(router.urls)),
] | [
"anthony.lauly1833@gmail.com"
] | anthony.lauly1833@gmail.com |
fcdb3822c4cfb130dc7f9a24b2745e8c34d2d44a | f5ca3435652851f23e3c9f40225b322f22e2754f | /RPN/proposal_target_layer_tf.py | 921f68cfee68b1965269430c0cc758d5c29f6796 | [] | no_license | UpCoder/MyFasterRCNN | e3daa93c7f32db1e2a3c45da0f1bf4cdd4ad5bc1 | 18e21b6fa82cb20c9c3f5c7a825e9188773a1c53 | refs/heads/master | 2020-04-07T12:19:05.328182 | 2018-03-09T13:49:28 | 2018-03-09T13:49:28 | 124,210,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,798 | py | # -*- coding=utf-8 -*-
# --------------------------------------------------------
# Faster R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick and Sean Bell
# --------------------------------------------------------
import yaml
import numpy as np
i... | [
"546043882@qq.com"
] | 546043882@qq.com |
d65afe8834dfad330bbaaf50c900b3c5b40c5923 | 2b0aa857da641edf99ad07688b9079e330c88e31 | /pydefect/cli/vasp/util_commands/make_refined_poscar.py | cafc95adffa2f9bc59d9ebf4d16323a3b83457d2 | [
"MIT",
"Python-2.0"
] | permissive | zhenming-xu/pydefect | 0fd58e5de01316b8c8bbdfc1eaeeac7b81577c70 | 32c09231ca30295bad1a79480570affe8b879b5c | refs/heads/master | 2023-02-03T10:38:45.380871 | 2020-12-23T04:45:43 | 2020-12-23T04:45:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020 Kumagai group.
import shutil
import fire
from monty.serialization import loadfn
from pydefect.analyzer.defect_structure_analyzer import \
symmetrize_defect_structure
from pydefect.defaults import defaults
from pydefect.input_maker.defect_entry import DefectEntry
from p... | [
"yuuukuma@gmail.com"
] | yuuukuma@gmail.com |
61e8452b8081c42fa778be9dcf0b3b4ff277bc8f | 811bf15a5bad488284300b6016c8b77f1e2daf24 | /python/ray/data/_internal/datastream_logger.py | 8ed7dde89602f6f7de9c04eaa59280da4d7944b3 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | justinwyang/ray | 8c102e00321e669b7e78488d38329e82195e7b58 | 6c356296a01ebf3d8ad0cab6058fb8c03ccbf8f6 | refs/heads/master | 2023-04-28T15:57:24.167579 | 2023-04-22T08:28:06 | 2023-04-22T08:28:06 | 172,777,393 | 0 | 0 | Apache-2.0 | 2020-12-04T02:39:57 | 2019-02-26T19:37:12 | Python | UTF-8 | Python | false | false | 4,862 | py | import logging
import os
import ray
from ray._private.ray_constants import LOGGER_FORMAT, LOGGER_LEVEL
class DatastreamLogger:
"""Logger for Ray Datastreams which writes logs to a separate log file
at `DatastreamLogger.DEFAULT_DATASET_LOG_PATH`. Can optionally turn off
logging to stdout to reduce clutter... | [
"noreply@github.com"
] | justinwyang.noreply@github.com |
61ae55ce83f6293d9f8e61b32e3a6b05d32721c4 | 466660115eafd99b72f81339d86c5bcbf4c7efb0 | /codes/14/filter_resample_demo.py | e9b6e8a0557fc61d8b04133854a5c24b74ebcf7a | [] | no_license | CoryVegan/scipybook2 | c2bb68c169c632ab389600034beb33ac921b0ba1 | a8fd295c2f2d7ee18f351e5622ca7eeb4649ee50 | refs/heads/master | 2020-03-23T14:50:28.056482 | 2017-08-25T06:00:00 | 2018-06-02T14:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
import numpy as np
from scipy import signal
t = np.arange(0, 100)
x = np.sin(t)
N = 100
t2 = np.arange(0, 100, 1.0/N)
x2 = np.sin(t2)
x3 = np.zeros(len(x)*N)
x3[::N] = x
sinc = np.sinc(np.arange(-10, 10, 1.0/N))
sincw = sinc * signal.hann(len(sinc))
x4 = signal.lfilter(sinc, [1], x3)
x5 = s... | [
"qytang326@gmail.com"
] | qytang326@gmail.com |
1fde7a3fed0fc59b1c2aaa1281052a6539be6815 | 0af30c2e3ddcc80a19ea9cfaad9d7e1fedf8b876 | /210122/정렬/실패율/배진수.py | a92352cd19ca8c2fcb22f7b57b6f87fea1b4e4d0 | [] | no_license | winterash2/algorithm_study_2021_1 | d1cd6077f71f68e7fc3eb6dfae7b2cc220885e4c | c1fee62c7e5e560c3bf7ae5e6166866d0147f23f | refs/heads/master | 2023-04-02T20:11:04.169856 | 2021-04-05T11:18:22 | 2021-04-05T11:18:22 | 327,563,535 | 1 | 2 | null | 2021-01-24T14:17:40 | 2021-01-07T09:28:08 | Python | UTF-8 | Python | false | false | 1,731 | py | from collections import Counter
def solution(N, stages):
stages.sort()
counter = Counter(stages).most_common()
counter.sort()
size_stages = len(stages)
result = []
for i in range(1,N+1):
result.append((i,0))
for c in counter:
if c[0] > N:
break
result... | [
"jinsoo941010@naver.com"
] | jinsoo941010@naver.com |
341912b1cddec4954831d7512e86dd5a653abadf | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fibo_20200709160954.py | c234253a709554320b2b0660f06cce7e678c05bf | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # solving the fibonaci sequence using recursion and dynamic programming
# Recursion
# Base case if n = 1 || n == 2 then fibo is 1
def fibo(n):
if n <= 0:
result = 0
elif n == 1:
result = 1
else:
result = fibo(n-1) + fibo(n-2)
print('result',result)
pri... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
c14878872d0c9f46c3e5620a0435240d14cc41f0 | 559e336386e02c0e5ebc7316424c3b4a41380d99 | /fullstack/python/opencv/yolo34py_object_detection.py | 73bf082e9512c4d56d2ff5f7d86514fce08e7f02 | [] | no_license | maranemil/howto | edf1e294544ef6980894dcd345d73160d8aa9620 | f6270ed0affcdbd899dd8a2ff9b0b98625e63a5a | refs/heads/master | 2023-09-05T03:02:18.526914 | 2023-09-04T11:27:52 | 2023-09-04T11:27:52 | 22,177,757 | 48 | 26 | null | 2022-10-17T19:43:31 | 2014-07-23T21:04:50 | Python | UTF-8 | Python | false | false | 2,352 | py |
"""
#############################################
#
# https://pypi.org/project/yolo34py/
#
#############################################
https://github.com/madhawav/YOLO3-4-Py/blob/master/download_models.sh
http://www.erogol.com/object-detection-literature/
http://absfreepic.com/free-photos/download/crowded-cars-on-s... | [
"maran.emil@gmail.com"
] | maran.emil@gmail.com |
58454b96d6a985a52878c8c0c2cb7dec3535a33a | aef1c0d4a32fa10afae10393c850960f9d89cdbc | /MiRegionCO/apps/activacion_youtuber/models.py | 019c81671889c3d61820bb4986003b760125321f | [] | no_license | joselofierro/MiRegionCO | 587059244fc153f32c6eaac8e41fab05bdeb5937 | 781491dc81a2dff7a8ae237d4ea7e23b31a31c52 | refs/heads/master | 2021-11-09T11:23:41.189863 | 2018-01-16T16:53:34 | 2018-01-16T16:53:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | import uuid
from django.db import models
# Create your models here.
from apps.usuario.models import Usuario
class Youtuber(models.Model):
codigo = models.CharField(primary_key=True, default=uuid.uuid4, max_length=25)
nombre = models.CharField(max_length=100, blank=False, null=False)
foto = models.URLFi... | [
"juliofierro@Mac-mini-de-JULIO.local"
] | juliofierro@Mac-mini-de-JULIO.local |
a2585445768a8e4d0a28099c6c6e04b25b65c245 | 18276d01566c782dfd5e9ef97d1e35ef14637af0 | /template.py | 176f42397ecff7c3997723ac2d78aca83e5cc5f3 | [
"CC0-1.0",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | benediktwerner/AdventOfCode | 32d5bbcb8d31059673a6fe98c74cbba7eb733822 | 44700547d77385b8f84f80a2eb750bc06926152f | refs/heads/master | 2023-02-05T22:37:23.215372 | 2023-02-02T17:54:08 | 2023-02-02T17:54:21 | 162,716,840 | 67 | 10 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python3
from os import path
from collections import *
from networkx import *
from copy import deepcopy
from tqdm import tqdm
import itertools
import math
import re
import pyperclip
def ints(string):
return list(map(int, re.findall(r"-?[0-9]+", string)))
def solve(inp):
for line in inp.splitl... | [
"1benediktwerner@gmail.com"
] | 1benediktwerner@gmail.com |
4bfb2a79fd4cf406cd4610858e33e17183ca411f | 283abb87498184abfe38e346867c991c7002e492 | /src/collective/behavior/vat/vocabulary.py | ad27edbc5f153327f91d8cfce4e1a6b5638d31e7 | [] | no_license | collective/collective.behavior.vat | 83994e31eaa40ebfeb0f4897586019af425215b7 | ddce01c99802e6933a307e6fb2042af9c847a1c5 | refs/heads/master | 2023-03-22T13:39:07.521187 | 2013-10-28T09:19:02 | 2013-10-28T09:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | from collective.behavior.vat.interfaces import IAdapter
from plone.registry.interfaces import IRegistry
from zope.component import getUtility
from zope.interface import implements
from zope.schema.interfaces import IVocabularyFactory
from zope.schema.vocabulary import SimpleVocabulary
class VATRatesVocabulary(object)... | [
"taito.horiuchi@gmail.com"
] | taito.horiuchi@gmail.com |
71df0b1b716f9def8544a105e267650aeffc6da5 | e1757740bef23814319c7edcb4d77f81fcc0d8f5 | /lookerpy/models/scheduled_job_destination.py | 526ebe4cf80d42c4bfe307192251f2234080a804 | [] | no_license | bufferapp/lookerpy | 65a43c89c05d49caa00e52d223fa61f941054b2d | e81634f15bff006a0643320a41175861d9990e4c | refs/heads/master | 2021-01-01T05:16:14.891450 | 2017-10-05T12:48:44 | 2017-10-05T12:48:44 | 58,413,445 | 21 | 8 | null | 2018-08-02T21:07:52 | 2016-05-09T22:58:07 | Python | UTF-8 | Python | false | false | 6,191 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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... | [
"michaelerasmus@gmail.com"
] | michaelerasmus@gmail.com |
3c92b31d6ea9eb6b73b8a4c3ca3dc9507d5391f5 | fdf81f962e88e29645003ee953146ed4ad3e47a3 | /tests/test_prefix.py | 42195ec99d28ac8f7f7d83617cfa6593c9c319d3 | [] | no_license | Feuermurmel/snappy | 9f7381c55dbdb2bcab4283eb5a822a8906daa8ce | f4ecf45f0150106b4de2ccd758be5ffb7c344388 | refs/heads/master | 2023-05-24T18:23:18.658648 | 2023-05-21T16:13:10 | 2023-05-22T16:56:31 | 225,735,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from conftest import get_snapshots
def test_create_snapshot(filesystem, snappy_command):
snappy_command(f'{filesystem} -p foo')
assert get_snapshots(filesystem) == ['foo-2001-02-03-081500']
def test_prune(filesystem, snappy_command):
snappy_command(f'{filesystem}')
snappy_command(f'{filesystem} -p ... | [
"michi.schwarz@gmail.com"
] | michi.schwarz@gmail.com |
4bcdbcede7216e59d4b3d81602db66170b993ccc | 9b587d5cf90a3459e482013010d8cfe86ecf492b | /lib/folder_db.py | ee6792a19dd0894dad2295a1ef345f5c43fe9372 | [] | no_license | abhay-venkatesh/data-analysis-template | c107d4aefff16014b18edadc65e5ae8a24632756 | 3b3bedfd60ae908c4de02af2339cf30940a35db7 | refs/heads/master | 2020-05-25T16:21:05.258699 | 2019-05-21T17:56:37 | 2019-05-21T17:56:37 | 187,885,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | from pathlib import Path
import os
import pandas as pd
class FolderDB:
def __init__(self, folder):
self.folder = folder
self.file_names = [
f for f in os.listdir(folder) if os.path.isfile(Path(folder, f))
]
self._data = {}
for file_name in self.file_names:
... | [
"abhay.venkatesh@gmail.com"
] | abhay.venkatesh@gmail.com |
f39014a3376f0777bebcdf58c516e4d0adb72577 | a3ac7f1adc05678a4a5d7719a334c69190be6419 | /netmon/models/monitor.py | 13ebf530b1f61d0a49bb18575723f2adad8500fb | [] | no_license | Trust-Code/odoo-technical-training | 55809a38233878598a2f0a44a8ccea150b7aa23c | 0afda9953fdd6aca00571ac2d963b253501f3364 | refs/heads/master | 2020-04-23T17:55:37.312348 | 2019-02-22T19:22:20 | 2019-02-22T19:22:20 | 171,349,105 | 0 | 1 | null | 2019-02-22T19:22:20 | 2019-02-18T20:10:33 | Python | UTF-8 | Python | false | false | 692 | py |
from odoo import fields, models
from odoo.exceptions import UserError
class Monitor(models.Model):
_name = 'monitor'
status = fields.Boolean(string="Status")
hostname = fields.Char(string="Hostname")
ip_address = fields.Char(string="Endereço IP")
protocol = fields.Char(string="Protocolo")
po... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
339acdb2099b8d3e4339a546bcc7be2191907b64 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/UpdateSpeechModelRequest.py | a92428b4782198ce045a59f174c0c6df3cca703b | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,516 | 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 |
1373bb8c3323ff1f9533f1143db4ccc0a76ed6e8 | 3155c38585c5d1cf27c4d8065cb5821f5b980983 | /scripts/issues/issue14.py | 927a4551513545445e72d62ff5c23314bad10af2 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | jlstevens/awesome-panel | 460c86ac886a86fa1a3f6ec79b6186f292ca10bc | c67b0f4529a3ce6a8517648f49fef8358e2e2c8b | refs/heads/master | 2020-11-25T03:11:10.018557 | 2019-12-16T20:57:07 | 2019-12-16T20:57:07 | 228,474,317 | 0 | 0 | Apache-2.0 | 2019-12-16T20:55:56 | 2019-12-16T20:55:55 | null | UTF-8 | Python | false | false | 804 | py | import panel as pn
text = """\
## Wide images in markdown overflows the page
A wide image in markdown overflows the page
**I think it's a friction point that could be easily solved by setting `max-width: 100%` in the default css of Panel**.
Or alternative by default adding `max-width: 100%` to the styling of the `pn... | [
"MASMA@orsted.dk"
] | MASMA@orsted.dk |
b54883b0da3d4d4fe8a977eea92844fc55230961 | 2ae3e31af24f344ddc935cafc176e1d71a454401 | /tests/snuba/incidents/test_tasks.py | 927984c4b550ec4d0513acd4e264389578d56267 | [
"BSD-2-Clause"
] | permissive | Unpublished/sentry | 22b61e46daa7b6f5177b0c08e98929792900ee81 | 9b1393d4a3aa5f2a4012fff6fc8546baf73a6f46 | refs/heads/master | 2020-07-29T00:55:05.854581 | 2019-09-24T23:27:50 | 2019-09-24T23:27:50 | 209,604,113 | 0 | 0 | null | 2019-09-19T16:47:44 | 2019-09-19T16:47:43 | null | UTF-8 | Python | false | false | 3,982 | py | from __future__ import absolute_import
import json
from copy import deepcopy
from uuid import uuid4
from confluent_kafka import Producer
from django.conf import settings
from django.test.utils import override_settings
from exam import fixture
from sentry.incidents.logic import create_alert_rule
from sentry.snuba.sub... | [
"dfuller@sentry.io"
] | dfuller@sentry.io |
fb1de4942753ca74426d929c5f9c0ec6a0309f8b | b71a6e7050b0a4368007350d91ee078288a7318c | /examples/issues/issue235_tool.py | 25ab58aa13a98c57f251c83bd1983f1e8afd9d13 | [
"Apache-2.0"
] | permissive | jarvisteach/appJar | 2dfd0da6cb85ea3535379ed000efd97fb42fe4f8 | 0b59ce041da2197dcff3410e20f298676f1f7266 | refs/heads/appJar | 2023-08-29T09:42:01.812005 | 2019-09-28T18:34:06 | 2019-09-28T18:34:06 | 39,996,518 | 696 | 103 | NOASSERTION | 2023-02-20T01:01:16 | 2015-07-31T08:59:20 | Python | UTF-8 | Python | false | false | 203 | py | import sys
sys.path.append("../../")
from appJar import gui
def press(btn):
print(btn)
with gui() as app:
app.label('hello world')
app.toolbar(["A", "OPEN", "CLOSE"], press, pinned=False)
| [
"jarvisteach@gmail.com"
] | jarvisteach@gmail.com |
7f725278033e1dce4b75b27d292e60ba496fe711 | da1721d2783ea4d67ff4e73cee6eee71292f2ef7 | /toontown/minigame/RaceGameGlobals.py | b4ba1f8d781345dcfc0913e77c4d54896781bd4c | [
"BSD-3-Clause"
] | permissive | open-toontown/open-toontown | bbdeb1b7bf0fb2861eba2df5483738c0112090ca | 464c2d45f60551c31397bd03561582804e760b4a | refs/heads/develop | 2023-07-07T01:34:31.959657 | 2023-05-30T23:49:10 | 2023-05-30T23:49:10 | 219,221,570 | 143 | 104 | BSD-3-Clause | 2023-09-11T09:52:34 | 2019-11-02T22:24:38 | Python | UTF-8 | Python | false | false | 1,615 | py | from toontown.toonbase import TTLocalizer
ValidChoices = [0,
1,
2,
3,
4]
NumberToWin = 14
InputTimeout = 20
ChanceRewards = (((1, 0), TTLocalizer.RaceGameForwardOneSpace, 0),
((1, 0), TTLocalizer.RaceGameForwardOneSpace, 0),
((1, 0), TTLocalizer.RaceGameForwardOneSpace, 0),
((2, 0), TTLocalizer.RaceGameForwardTw... | [
"jwcotejr@gmail.com"
] | jwcotejr@gmail.com |
b849b25bb518ee3de327232ec7cdb96845de64c4 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_occludes.py | 6ad8831e58385c859b77e4d015f32b66ac16e635 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
#calss header
class _OCCLUDES():
def __init__(self,):
self.name = "OCCLUDES"
self.definitions = occlude
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['occlude']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
656840570a730bb214302a80e4fe4ac83d4a2839 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/head_idea_power.py | 09e01cc2f661353f0e06eebc055b2c7cfd16bc0d | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Translator.API;
namespace CSharp_TranslateSample
{
public class Program
{
public static string traducida;
public static void Main(string[] args)
{
//TranslateAsync().Wait();
... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
a398921a35acdfeb36396a8f9f37c82c5e3a76de | 57830c1f6725cf74596af116b6f170772167128c | /apps/users/admin.py | 03876e2c0db6b1a771d61a2faf0247690c513438 | [] | no_license | robertsoh/sales_api | c3965865efc6a63d00050fd3817facd10bbf39b7 | 0c210f23c5440efcf19ae47bcb62f999e79caa59 | refs/heads/master | 2020-04-05T14:29:34.185867 | 2018-12-14T19:26:32 | 2018-12-15T00:49:42 | 156,931,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from django.contrib import admin
from apps.users.models import User
@admin.register(User)
class UserAdmin(admin.ModelAdmin):
list_display = ('username', )
| [
"robertson.ore@gmail.com"
] | robertson.ore@gmail.com |
17906c75c8de7cbc681cacca09c593bb8d6320e3 | e7c79311c861c29cb16526f326454fbcd7a7377d | /fHDHR_web/pages/tuners_html.py | 787076b06e77eddb420b632a5a28417491ddc8f7 | [
"WTFPL"
] | permissive | ddarling007/fHDHR_XUMO | bdfb9b6789f253965efa12e74d7fd6fae46d862b | e74079a3a0752e07bde5090ca6c7ce5718fddc74 | refs/heads/main | 2023-02-03T09:07:10.964663 | 2020-12-18T15:28:47 | 2020-12-18T15:28:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | from flask import request, render_template
from fHDHR.tools import humanized_filesize
class Tuners_HTML():
endpoints = ["/tuners", "/tuners.html"]
endpoint_name = "page_streams_html"
def __init__(self, fhdhr):
self.fhdhr = fhdhr
def __call__(self, *args):
return self.get(*args)
... | [
"github@deathbybandaid.net"
] | github@deathbybandaid.net |
c5cbdf8cc885f15c50107a387c0a2f8185f72af9 | cc5db2422f78e8a088e5642835cd8758e92e99e5 | /server/web_servers/django_pywps_framework/processes/old/test.py | c7ee2b7358a2838a5f35fdcaac6bc69e8aee1ed2 | [] | no_license | nasa-nccs-cds/cdas | 6dba4bd1031d7dd6ae46cae95e8c72c4b6e7047c | 26a89ddce138e394273f5c985ec8a83ce554be5e | refs/heads/master | 2021-01-10T18:45:56.323701 | 2016-02-19T18:58:57 | 2016-02-19T18:58:57 | 39,521,911 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | from wps import settings
from staging import stagingRegistry
import time, json
handler = stagingRegistry.getInstance( settings.CDAS_STAGING )
if handler is None:
print " Staging method not configured. Using celery. "
handler = stagingRegistry.getInstance( 'celery' )
data = {'url': '/att/nobackup/tpmaxwel/d... | [
"thomas.maxwell@nasa.gov"
] | thomas.maxwell@nasa.gov |
1d4cb80269e6a7e72aab3af43cdd1932cfb0d696 | 0ec4defa6f83ec044b9e1235cc45964a8145b4d1 | /venv/lib/python3.6/site-packages/pybrain3/rl/experiments/queued.py | eac37f466ea37903b304e47b9de71fa8ef945622 | [] | no_license | nnarziev/MyWeek_Server | e6f6c10ce813cf3dc3aa644958c31a4d01567b4d | 7c51e79224ba48cd1a230536c27f3bd8cec73a21 | refs/heads/master | 2021-08-19T13:46:56.450003 | 2017-11-25T16:48:07 | 2017-11-25T16:48:07 | 112,080,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | __author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de'
from .episodic import EpisodicExperiment
from scipy import arange
class QueuedExperiment(EpisodicExperiment):
""" This experiment type runs n episodes at the beginning, followed by a learning step.
From then on it removes the oldest episode, l... | [
"qobiljon.toshnazarov@gmail.com"
] | qobiljon.toshnazarov@gmail.com |
1250da40249d5f3b0a978d38aa145700016c4201 | 865ee6eb8ee52c8056fbf406059c5481f365de6e | /openresty-win32-build/thirdparty/x86/pgsql/pgAdmin 4/web/pgadmin/utils/sqlautocomplete/prioritization.py | 3956f5e26ce75ff435669db8a3cade2e3d55ddab | [
"LicenseRef-scancode-ssleay",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"LicenseRef-scancode-pcre",
"LicenseRef-scancode-public-domain",
"Zlib",
"BSD-2-Clause"
] | permissive | nneesshh/openresty-oss | 76e119081ea06bc82b184f96d531cc756b716c9d | bfbb9d7526020eda1788a0ed24f2be3c8be5c1c3 | refs/heads/master | 2022-12-12T21:39:48.917622 | 2019-05-31T03:14:18 | 2019-05-31T03:14:18 | 184,213,410 | 1 | 0 | MIT | 2022-12-06T17:28:59 | 2019-04-30T07:28:45 | C | UTF-8 | Python | false | false | 1,497 | py | import re
from collections import defaultdict
import sqlparse
from sqlparse.tokens import Name
white_space_regex = re.compile('\\s+', re.MULTILINE)
def _compile_regex(keyword):
# Surround the keyword with word boundaries and replace interior whitespace
# with whitespace wildcards
pattern = '\\b' + re.su... | [
"nneesshh@163.com"
] | nneesshh@163.com |
6da34c28ff355cb3b450aff47bf9a407a99948e8 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/compute/v20201201/get_disk_access.py | 981b57ef0637910bb008f0205d45331d46e95f31 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 5,679 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
048c873316de2fd5dc07b631f83156b1520b56be | 795df757ef84073c3adaf552d5f4b79fcb111bad | /r8lib/r8_acosh.py | e335e0ac03e7ec1fa8a28d1e74b6ff4331de4817 | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | #! /usr/bin/env python3
#
def r8_acosh ( x ):
#*****************************************************************************80
#
## R8_ACOSH evaluates the arc-hyperbolic cosine of an R8 argument.
#
# Licensing:
#
# This code is distributed under the GNU LGPL license.
#
# Modified:
#
# 25 July 2014
#
# Author:... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
783b1bee4c34b80c563102766e8f40a55abdb190 | 9d82535388e70d6fa07c57ba56c72ec6e634a752 | /example.py | 51d8da4b071c3418ccd3e2b2bf80acd2b61ab2f6 | [] | no_license | codesharedot/digibyte-price | c410883168d37a2c1dce85f9de7bd7da3d52aa25 | f87de7d83646766dfdfb2e5c9ea5dcb7e0713d45 | refs/heads/master | 2020-07-27T08:54:04.866594 | 2020-03-05T18:00:00 | 2020-03-05T18:00:00 | 209,036,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | import requests
import json
from forex_python.converter import CurrencyRates
import os
c = CurrencyRates()
rate = c.get_rate('USD', 'EUR')
print(rate)
digibyte_api_url = 'https://api.coinmarketcap.com/v1/ticker/digibyte/'
response = requests.get(digibyte_api_url)
response_json = response.json()
print(response_json)
... | [
"codeto@sent.com"
] | codeto@sent.com |
c54f799246ff40b2fd41881e6bf869534c43049a | a58695fad399102d58496c1590b3a6b3b0774fbb | /djangoum3/usuarios/admin.py | d63bc798e0ff93c3e7cdc314ed084a481e7b7542 | [] | no_license | rodrigojgrande/django | a7f141a92496ccdc40d89eed26b832eef95b69c9 | 7a95838fac3a95999f0413d00e3640b89500751f | refs/heads/master | 2023-06-13T02:22:21.786094 | 2021-06-30T14:23:59 | 2021-06-30T14:23:59 | 369,648,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .forms import CustomUsuarioCreateForm, CustomUsuarioChangeForm
from .models import CustomUsuario
@admin.register(CustomUsuario)
class CustomUsuarioAdmin(UserAdmin):
add_form = CustomUsuarioCreateForm
form = CustomUsuarioCha... | [
"rodrigojgrande@gmail.com"
] | rodrigojgrande@gmail.com |
edcb35b0793393a33792588f49edcb625198eae8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03015/s523069655.py | 59e3f8ebc64c631f68c29fe54d0f9e99fa664022 | [] | 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 | 458 | py | import sys
sys.setrecursionlimit(10**9)
MOD=10**9+7
def input():
return sys.stdin.readline().rstrip()
def main():
L=input()
n=len(L)
dp=[[0]*2 for _ in range(n+1)]
dp[0][0]=1
for i in range(n):
dp[i+1][1]=dp[i][1]*3%MOD
if L[i]=='1':
dp[i+1][0]=dp[i][0]*2%MOD
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b88035f89cb1bc72cd54f3795e7783c6d521f371 | abacbf9798f089cd43fd50c2d577de50cca806d8 | /venv/Lib/site-packages/lux/extensions/rest/__init__.py | 371c1e60f06259004e484715eaaa7e5e779004f7 | [] | no_license | Sarveshr49/ProInternSML | f2bfd82905dd185d82830d4758d69ee2b23f71fb | 2ac09e31ebe54dbecd46935818b089a4b8428354 | refs/heads/master | 2023-08-11T17:36:16.387236 | 2021-10-16T18:23:04 | 2021-10-16T18:23:04 | 373,503,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,403 | py | from urllib.parse import urljoin
from collections import OrderedDict
from pulsar import ImproperlyConfigured, Http404
from pulsar.utils.importer import module_attribute
from pulsar.utils.httpurl import remove_double_slash
from lux.core import Parameter, LuxExtension
from .models import RestModel, DictModel, RestFiel... | [
"sarveshragade@gmail.com"
] | sarveshragade@gmail.com |
d86604d675c94f4995be651c511ded1c38224e9c | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/oop/destructor_both.py | d610d0467a48c419330c61a9fc2c792484819f37 | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 321 | py | class Thing:
def __init__(self, name):
self.name = name
print(f'__init__ for {self.name}')
def __del__(self):
print(f'__del__ for {self.name}')
def main():
a = Thing('A')
b = Thing('B')
a.partner = b
b.partner = a
print('in main - after')
main()
print('after main')
... | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
30b433f5cfa789965f2c3a46c4a08f6e01fd0f92 | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/surface/deployment_manager/operations/describe.py | 0d4d62990ba0c4f6f30ed9aae00b502271265c45 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 2,328 | py | # Copyright 2014 Google Inc. 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 applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
bf00942869524394e165bedd91c4645b8186892f | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sorting_20200624171632.py | 244905e52fc9ea03311202d4ef6bc54b2cf54f05 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | def wavesort(arr):
# sort the numbers first
numbers = sorted(arr)
# swap the numbers
n = len(numbers)
i = 0
result = True
print(numbers)
while i < n-1:
temp = numbers[i]
numbers[i] = numbers[i+1]
numbers[i+1] = temp
i+=2
#check if number at position... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
0f4144d09be309f62dec55a4dededa50e03cd221 | d4dc12f5c2ae83a089efc03164a9e768c76467e3 | /2/2b.py | ce3164de8c2cb23412534394f55ba254b9886602 | [
"MIT"
] | permissive | dzaragoza/advent_of_code_2019 | 3e8242db6c3411b3cbfe06e27dc8ea03a4f5e08e | 62e740c3de7247efa4f79836906aa0597310496c | refs/heads/master | 2020-09-30T06:28:16.540755 | 2019-12-18T22:24:41 | 2019-12-18T22:24:41 | 227,228,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | f = open('input.txt').read()
for n in range(100):
for v in range(100):
tape = [int(i) for i in f.split(',')]
tape[1] = n
tape[2] = v
for i in range(0,len(tape),4):
if tape[i] == 1:
tape[tape[i+3]] = tape[tape[i+1]]+tape[tape[i+2]]
elif tape[i]... | [
"a@a.com"
] | a@a.com |
5d68517eae51ed80a69c9ff2420b59441afa5312 | d74b03fb5cb5e63daf0a925c6ffd3a402864f4d9 | /app/main/WebUser.py | 199c20640b9f22fc0cb599de005e0b31fda5dae3 | [] | no_license | 1840521596/webapi | c31fb0f59478c38cbce60407db1d379c084a6e02 | 3b3b9485f1f18aac31d723f9e0b4019033404d1a | refs/heads/master | 2022-11-08T20:13:50.940891 | 2019-12-18T08:02:32 | 2019-12-18T08:02:32 | 273,469,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,087 | py | #!/usr/bin/python
#-*-coding:utf-8 -*-
from app.main import user
from flask import render_template,request,flash,redirect,url_for,session,g
from flask_login import login_user,logout_user,login_required
from app.config.login_form import LoginForm
from app.config.user_models import User,DeptName
from app import login_man... | [
"guohongjie@yunshuxie.com"
] | guohongjie@yunshuxie.com |
581d87021ed936cda8b502214c63d7c8efba5fc0 | 870f94dd167d5aa11f66979782af2f35f7c3ed34 | /codecademy/cacf15.py | c9548e3778bd2640233934f5362f7d5ed5171532 | [] | no_license | alblaszczyk/python | 52f993844e681fbb455b924cf733923f3b377177 | 02504c066d0f2d1b8cca08a17f25f383df6247ad | refs/heads/master | 2021-09-20T00:57:12.299353 | 2018-08-01T20:23:44 | 2018-08-01T20:23:44 | 108,529,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | # Make sure that the_flying_circus() returns True
def the_flying_circus():
if (5 > 4) and (5 >= 5):
return True
elif 6 > 5 and not 10 == 10:
return True
else:
return False
return the_flying_circus()
| [
"stuff@alblaszczyk.oib.com"
] | stuff@alblaszczyk.oib.com |
7fe14f588b9e9af7028e9b82b545ba26e46eca05 | 31aff865cde04c6ed169062c38838da62837d1f3 | /scripts/task2.py | d20eac944612262536ae8351cf75e0e7a11a7124 | [
"MIT"
] | permissive | ymyzk/ex4cg | 54c5ad3bc247a8607e2eeef17e34f3b3c34a654f | 2dba1959e0c32b02ff7f40d3859ca4561f6ea9af | refs/heads/master | 2016-09-05T12:38:28.139656 | 2014-11-20T10:26:33 | 2014-11-20T10:26:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import os
import sys
import numpy as np
from cg.camera import Camera
from cg.ppm import PpmImage
from cg.renderer import Renderer
from cg.shader import DiffuseShader, RandomColorShader, ShadingMode
from cg.vrml import Vrml
def main(args):
# VRML ファイ... | [
"miyazaki.dev@gmail.com"
] | miyazaki.dev@gmail.com |
51950844b2630036ff9b584784e2a4469b8eb0c3 | 69146cad3095676e201ea6d72b01443ef84619ed | /Approval/admin.py | dba6b44c3dd92090a7344da462d53dbc9968f45d | [] | no_license | import-keshav/Rassoi | 318b17d95aba2624b8049036c5a0dc093ff47bce | 02bd06f083eea89eed4985eeb1b2a6983464a731 | refs/heads/master | 2022-12-30T05:55:56.335480 | 2020-10-19T16:40:32 | 2020-10-19T16:40:32 | 267,375,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | from django.contrib import admin
from .models import *
@admin.register(GroceryApproval)
class GroceryApprovalAdmin(admin.ModelAdmin):
list_display = ('grocery', 'get_shop_name', 'is_approved', 'action', 'id')
search_fields = ('id',)
def get_shop_name(self, obj):
return obj.grocery.shop
get_shop_name.short_descr... | [
"keshavbathla2017@gmail.com"
] | keshavbathla2017@gmail.com |
11aa8ba94880d3ca240a6a2b0fb9845f607b9917 | deec07f78bcca329003ccab462fc3038e699deff | /234/234.palindrome-linked-list.python3.py | 40c3e5ee3488b13e8453d5885b6a005a2fb93908 | [] | no_license | Zihua-Liu/LeetCode | 98d417ebf799d9610bbca97c8e3f5a37625b654b | a4b945d2732746b3c76a212993ed6a4d612e0614 | refs/heads/master | 2021-01-18T16:50:04.838751 | 2019-02-19T01:08:49 | 2019-02-19T01:08:49 | 72,458,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | #
# [234] Palindrome Linked List
#
# https://leetcode.com/problems/palindrome-linked-list/description/
#
# algorithms
# Easy (34.19%)
# Total Accepted: 189.8K
# Total Submissions: 555.1K
# Testcase Example: '[1,2]'
#
# Given a singly linked list, determine if it is a palindrome.
#
# Example 1:
#
#
# Input: 1->2
... | [
"liuzihua0911@gmail.com"
] | liuzihua0911@gmail.com |
1ea123c26123c1b01eee8b452d03035bac4e2883 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_24/models/new_name.py | e0339e06fa8b7720f6e18f2ec8211a147550cbec | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,712 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.24
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
beb468ec10c8ee3c67b57f0ad4ce9331b006f056 | 0f2290ba2dc722c93addbfefd58606556bc4b31d | /scripts/rsyslog-impstats.py | f1a84c1d2eadf332c59d40e7029f887f6237a0f5 | [
"MIT"
] | permissive | xiaomatech/zabbix | e6020e8ea51fde2b4244956380520ea047dd115b | d306ba996e425ff280dee3232dba0c17c8e542bd | refs/heads/master | 2020-04-01T22:35:38.034706 | 2016-11-09T15:50:43 | 2016-11-09T15:50:43 | 64,374,672 | 8 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | #!/usr/bin/python -u
# -*- coding: utf-8 -*-
# File managed by puppet
import os
import re
import json
import sys
import argparse
import subprocess
log = "/var/log/rsyslogd-impstats.log"
pid_file = '/var/run/rsyslog-impstats.pid'
def tail(f, n):
process = subprocess.Popen(
("tail -n " + n + " " + f + " |... | [
"xianhua@meizu.com"
] | xianhua@meizu.com |
e2551c41d10bbe4453082dafb7e3e526fff9c712 | 553fb249e513eadf6ad7444fba0babc0e5dd50f9 | /graphgallery/functional/adj_matrix/add_selfloops.py | edb9b0cf1b62df56f7be269032e23d61b14b94de | [
"MIT"
] | permissive | gsn-180/GraphGallery | 4b1a7c9f9ba82f4bf577972007af6653a83ad60c | 104ee3aff80fa44bbc519dd6f984c1a8486cfb70 | refs/heads/master | 2023-01-30T16:19:44.840433 | 2020-12-11T08:32:39 | 2020-12-11T08:32:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | import numpy as np
import scipy.sparse as sp
import graphgallery as gg
from ..transforms import Transform
from ..functions import repeat
from ..decorators import multiple
class AddSelfLoops(Transform):
"""Add self loops for adjacency matrix."""
def __init__(self, fill_weight: float = 1.0):
"""
... | [
"cnljt@outlook.com"
] | cnljt@outlook.com |
7997249126085fbb769278c4bba7fea33e13d852 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/WW/FullRunII/Full2017_v7/sublepPT/TheoUnc/configuration.py | 5dd32d286efe1d7a2ab148f97a42075a26d95e85 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 571 | py | # Configuration file to get normalizations of WW theoretical uncertainties
treeName = 'Events'
tag = 'WW2017_v7_sublepPT_TheoUnc'
# used by mkShape to define output directory for root files
outputDir = 'rootFile'
# file with TTree aliases
aliasesFile = 'aliases.py'
# file with list of variables
variablesFile = 'va... | [
"saumya.phor4252@gmail.com"
] | saumya.phor4252@gmail.com |
945f03258f746c5b3b06dc420dcf07bb6397636a | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenMiniInnerversionPackageCreateModel.py | cabffe8da9973f26eddbbef6aae8db26f25384f1 | [
"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 | 3,380 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenMiniInnerversionPackageCreateModel(object):
def __init__(self):
self._app_origin = None
self._app_version = None
self._bundle_id = None
self._mini_app_id... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
95ce0ea8a8fe216ff02508657de06e8b20fafd3a | f1ddac68280cf55252ab4925f13843517caffc0f | /lepidoptera/context_processors.py | d69704d0d4454f3f48b4570745297481c7589854 | [
"BSD-2-Clause"
] | permissive | BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp | b5d5af5796fbcc2caedc193bd56ee08fb957a276 | c0ed7fde78f9af5afbd91c53ed3f543046e8dd41 | refs/heads/master | 2022-12-02T11:37:28.897214 | 2019-09-17T11:26:18 | 2019-09-17T11:26:18 | 149,598,470 | 2 | 0 | NOASSERTION | 2022-11-22T02:21:23 | 2018-09-20T11:26:21 | Python | UTF-8 | Python | false | false | 1,225 | py | from .models import Family, Subfamily, Tribus, Genus, Subgenus, Species, HostPlantSpecies, HostPlantFamily, \
HostPlantGenus, Substrate, Publication, Journal, SpeciesPicture, Photographer
def stats_processor(request):
return {
'family_counter': Family.objects.count(),
'subfamily_counter': Subf... | [
"nicolas@niconoe.eu"
] | nicolas@niconoe.eu |
59dc64277acd8e14000a3489effaf4146ce265af | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /apps/cloud_api_generator/actor/tasklets/application/reload/application_reload.py | 13e68484a042ac8a025f2e2a4c6de7b9a0608fb6 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 181 | py | __author__ = 'aserver'
__tags__ = 'application', 'reload'
__priority__= 3
def main(q, i, params, tags):
params['result'] = ''
def match(q, i, params, tags):
return True
| [
"devnull@localhost"
] | devnull@localhost |
9a1d82fe0a64c95448851df171e4d545dd597ffa | 186a60582ff2513a3906a0df479c5d1c542ce02e | /python03/main.py | 22bb69d962b9c0ec78edddca1ef193b0e05b7fbf | [] | no_license | ss820938ss/pythonProject | 1c86866a44e4d9948a86e96096fde6d7f629cf98 | 237cb3c74ff193557addcf5bb43af4b87cb8df4e | refs/heads/master | 2023-06-23T05:55:45.856598 | 2021-07-23T07:48:37 | 2021-07-23T07:48:37 | 388,368,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | # print("안녕하세요")
# print("fdfdfd"); print("tlfgod")
# print("dfdfd"); print("rerrr")
#
# a = 10
# if a == 10 :
# print("a에 10이 있네용")
# if a > 10 :
# print("dldldl")
# print("====================")
#
# print(1+2)
#
# quotient, remainder= divmod(5, 2)
# print(quotient, remainder)
#
# print(0b110)
#
# prin... | [
"ss820938ss@gmail.com"
] | ss820938ss@gmail.com |
06e82ddabea0e9c243964e49eff8689b5f205add | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part9-Manipulating-DataFrames-with-pandas/No36-Locating-suspicious-data.py | 0f1a6efe43e34dc0090d274cbafc4cfb5bce64d3 | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | #Locating suspicious data
'''
You will now inspect the suspect record by locating the offending row.
You will see that, according to the data, Joyce Chepchumba was a man that won a medal in a women's event. That is a data error as you can confirm with a web search.
Instructions
100 XP
Create a Boolean Series with a c... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
4db6a4eaee367c7d162b5d0bd535ffb9fff876f0 | eeee5415490822b06d4d75061f30b46b0ea7086d | /basic/xpath.py | e92477e1e8ce95188d51833efe3c171fdfb47aac | [] | no_license | nearxu/python-exercise | 891784380abfc0af16555f1a8f8bc3efc60be5e9 | 8d11a25cfbbd271e593846c18265aaaafead62fe | refs/heads/master | 2020-03-28T10:42:38.878811 | 2019-05-07T08:20:49 | 2019-05-07T08:20:49 | 148,136,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py |
#!/usr/bin/env python
# coding=utf-8
# Python中利用xpath解析HTML
# https://zhuanlan.zhihu.com/p/29436838
# 多个属性匹配
#xpath('//li[contains(@class, "li") and @name="item"]/a/text()')
import codecs
from lxml import etree
html = etree.parse('./a.html', etree.HTMLParser())
result = html.xpath('//ul/li/a/text()')
print(resul... | [
"2448895924@qq.com"
] | 2448895924@qq.com |
6c34f43cbf968040245338a8dcacb99ce12c1919 | 9be1120cf3c2761bf1b96553b5facebc2ccd6c48 | /import/parus_id_to_odoo.py | cc557dcdc78d40e5762e109896e98d1b8f21cc23 | [] | no_license | shurshilov/Tabel | b453804050ebe0d079fac5e02461e0d01cced145 | 98fd117712a5e13665a45735f9cb2a522d050b41 | refs/heads/master | 2021-01-10T18:45:03.938387 | 2015-10-21T09:44:10 | 2015-10-21T09:44:10 | 33,519,135 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
charDict = {
'1': 1,
'2': 2,
'0': 0,
'3': 3,
'4': 4,
'5': 5,
'6': 6,
'7': 7,
'8': 8,
'9': 9,
'A': 10,
'B': 11,
'C': 12,
'D': 13,
'E': 14,
'F': 15,
'G': 16,
'H': 17,
'I': 18,
'J': 19,
'K': 20,
'L': 21,
'M': 22,
'N': 23,
'O': 24... | [
"shurshilov.a@yandex.ru"
] | shurshilov.a@yandex.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.