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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c3b1236c2af033089a675439e47f130b4baec41 | dd573ed68682fd07da08143dd09f6d2324f51345 | /swea/모의SW역량테스트/5658_보물상자비밀번호.py | 0d31a6192d7541eaeb1e770c774b0ca5c24ab353 | [] | no_license | chelseashin/My-Algorithm | 0f9fb37ea5c6475e8ff6943a5fdaa46f0cd8be61 | db692e158ebed2d607855c8e554fd291c18acb42 | refs/heads/master | 2021-08-06T12:05:23.155679 | 2021-07-04T05:07:43 | 2021-07-04T05:07:43 | 204,362,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | import sys
sys.stdin = open('5658_input.txt')
from collections import deque
T = int(input())
for tc in range(T):
N, K = map(int, input().split())
S = deque(input())
n = N//4
numbers = set()
# 회전한 상태
for _ in range(N//4):
for i in range(0, N, n):
temp = ''
for j... | [
"chaewonshin95@gmail.com"
] | chaewonshin95@gmail.com |
3d99b1f9a252500cbbfbbfb578d4f1b8692adbd4 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Tutorials/Google API's Python Client/expandsymlinks.py | 28b3c662846a89d685f571c65fdc7a1e5d5cebcb | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:5f1f470f54b639699e0364110137529c5a098bae64631d265ea1ec985e10485a
size 1756
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
74fb966098d31d5bd5b87dddb2f7208224027dee | 6a44e772dfdec969f5e2af430f0bf3a35eb73c4e | /src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/int_wrapper.py | fc276dcc05f4904cd2f0ccc34b7f154b9521e849 | [
"MIT"
] | permissive | lurumad/autorest | ecc4b1de223e4b4cdd226a3cf922a6940dbddd34 | fef0c4c9e7fdb5c851bdb095d5a2ff93572d452e | refs/heads/master | 2021-01-12T11:07:39.298341 | 2016-11-04T03:12:08 | 2016-11-04T03:12:08 | 72,835,570 | 1 | 0 | null | 2016-11-04T09:58:50 | 2016-11-04T09:58:50 | null | UTF-8 | Python | false | false | 925 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# C... | [
"noreply@github.com"
] | lurumad.noreply@github.com |
fe63ce9389ff63768465358dbdd8a16ac4f05c7f | ea85e903db500eee66fe70ed3029b05577494d9d | /排序/349. 两个数组的交集.py | 40954a68011ddec065523c8ae1fe288574149fd7 | [] | no_license | baolibin/leetcode | fcd975eb23e5ca3fc7febbd6c47ec833595b5a51 | bc0540ec42131439be144cca19f6355a01de992a | refs/heads/master | 2021-08-15T20:40:25.580955 | 2021-01-20T09:57:21 | 2021-01-20T09:57:21 | 76,557,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | # coding:utf-8
'''
349. 两个数组的交集
给定两个数组,编写一个函数来计算它们的交集。
示例 1:
输入:nums1 = [1,2,2,1], nums2 = [2,2]
输出:[2]
示例 2:
输入:nums1 = [4,9,5], nums2 = [9,4,9,8,4]
输出:[9,4]
说明:
输出结果中的每个元素一定是唯一的。
我们可以不考虑输出结果的顺序。
'''
def intersection(nums1, nums2):
n_1 = list(set(nums1))
n_2 = list(set(nums2))
res = []
for each in n... | [
"yangfengling@inttech.cn"
] | yangfengling@inttech.cn |
b0c71791df4278ee8b534d877f78f47e8c7b4ad7 | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /3.4.0/_downloads/62c71faf74da9063a3e8cccd6bfdbed9/boxplot_demo.py | d5eb08f9cf1d9be597338a1e963c023ea4f694ef | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 7,870 | py | """
========
Boxplots
========
Visualizing boxplots with matplotlib.
The following examples show off how to visualize boxplots with
Matplotlib. There are many options to control their appearance and
the statistics that they use to summarize the data.
"""
import matplotlib.pyplot as plt
import numpy as np
from matplo... | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
1b5d14da025a52cca9cb61629495dbd0444d9afa | d0cb58e1658d4b5b88bdc07e497dc8092707ae02 | /2020/01january/14.py | a3f2553dce31bd97e8db5f46114b464bdc4eb538 | [] | no_license | June-fu/python365 | 27f9b753d38ade549d59aa8f2d8bda0fb8b1e20c | 242033a4b644a7566fbfa4dba9b60f60aa31fe91 | refs/heads/master | 2021-07-02T21:42:28.454091 | 2021-05-04T15:08:44 | 2021-05-04T15:08:44 | 233,629,713 | 0 | 0 | null | 2020-01-13T15:52:58 | 2020-01-13T15:36:53 | null | UTF-8 | Python | false | false | 823 | py | # -*- coding: utf-8 -*-
# Author: june-fu
# Date : 2020/1/27
"""
python-practice-book 12
Write a function group(list, size) that take a list and splits into smaller lists of given size.
input: group([1, 2, 3, 4, 5, 6, 7, 8, 9], 4)
output: [[1, 2, 3, 4], [5, 6, 7, 8], [9]]
"""
def group(list1, size):
# return [... | [
"fujun1990@gmail.com"
] | fujun1990@gmail.com |
af7900ac95be793c451bd2cf4e983dfefb9c666a | bb959d621b83ec2c36d0071dd48bc20942c0dd84 | /apps/users/forms.py | 456ba979e88254bf1317fed9a3c4b540b56701e5 | [
"BSD-3-Clause"
] | permissive | clincher/django-base-template | 6dac3b67db80b2e6336698f3ed60c8ef85dd974f | 560263bf0bb9737f89ae06e391b3d730f102046b | refs/heads/master | 2021-01-18T08:30:27.286465 | 2014-07-19T09:51:27 | 2014-07-19T09:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,972 | py | # -*- coding: utf-8 -*-
from django.forms import ModelForm
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.utils.text import capfirst
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.contrib.auth import authenticate, get_user_model
from django.cont... | [
"va.bolshakov@gmail.com"
] | va.bolshakov@gmail.com |
cd07a0839cf198525a33aed5909864ac6527e502 | 77b3ef4cae52a60181dfdf34ee594afc7a948925 | /mediation/dags/cm_sub_dag_parse_and_import_zte_3g.py | 5781cc0b7f0d683960266ee1c6de6a45da242481 | [
"Apache-2.0"
] | permissive | chandusekhar/bts-ce | 4cb6d1734efbda3503cb5fe75f0680c03e4cda15 | ad546dd06ca3c89d0c96ac8242302f4678ca3ee3 | refs/heads/master | 2021-07-15T02:44:27.646683 | 2020-07-26T08:32:33 | 2020-07-26T08:32:33 | 183,961,877 | 0 | 0 | Apache-2.0 | 2020-07-26T08:32:34 | 2019-04-28T21:42:29 | Python | UTF-8 | Python | false | false | 2,466 | py | import sys
import os
from airflow.models import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator
from airflow.operators.python_operator import BranchPythonOperator
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.... | [
"emmanuel.ssebaggala@bodastage.com"
] | emmanuel.ssebaggala@bodastage.com |
8e46ea58063b50c3a21f81a13f3a9e256b2011bc | 0e0ce88c886370df9af51855115c99dfc003e5da | /2019/01_Curso_Geek_basico_avancado/Exercicios_Python_Geek/exercicio_daniel/ex_2.py | fd492eecbc0a4528145e6fa1523d2b6de4c3795f | [] | no_license | miguelzeph/Python_Git | ed80db9a4f060836203df8cc2e42e003b0df6afd | 79d3b00236e7f4194d2a23fb016b43e9d09311e6 | refs/heads/master | 2021-07-08T18:43:45.855023 | 2021-04-01T14:12:23 | 2021-04-01T14:12:23 | 232,007,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | """2-) Teste se o ano é bissexto"""
ano = int(input("Digite o ano: "))
if ano%4 == 0:
print("É ano bissexto, tem 366 dias")
else:
print("Não é ano bissexto, tem 365 dias") | [
"miguel.junior.mat@hotmail.com"
] | miguel.junior.mat@hotmail.com |
3ae8c2d0c34a084d8aaad125c9ce618b4e15a444 | dbcd14a6a4e85f3e6a815c3fd05125ccb57d99b3 | /data_science/pandas_datacamp/manipulating_dataframes_with_pandas/03_rearranging_and_reshaping_data/05_stacking_and_unstacking_II.py | 2800c570456538d2908b651c37062cf9f126b606 | [] | no_license | blockchainassets/data-engineering | b1351b1321c612ba651f27230b506ebf73d949b8 | fc3136e89bc7defafb9e2fa6377217066f124fc7 | refs/heads/master | 2021-05-17T14:56:59.911700 | 2020-03-28T14:47:37 | 2020-03-28T14:47:37 | 250,831,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | '''
Stacking & unstacking II
You are now going to continue working with the users DataFrame. As always, first explore it in the IPython Shell to see the layout and note the index.
Your job in this exercise is to unstack and then stack the 'city' level, as you did previously for 'weekday'. Note that you won't get the ... | [
"pierinaacam@gmail.com"
] | pierinaacam@gmail.com |
eb5c93e8330a4712426af4c4de2fcbb3b250f22e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03409/s717601792.py | 2e4854f89fc655c31e61797553566850201cbd4f | [] | 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 | 653 | py | n=int(input())
a=[0]*n
b=[0]*n
c=[0]*n
d=[0]*n
edges=[set() for _ in range(n)]
matched=[-1]*n
for i in range(n):
ta,tb=list(map(int,input().split()))
a[i]=ta
b[i]=tb
for i in range(n):
tc,td=list(map(int,input().split()))
c[i]=tc
d[i]=td
for i in range(n):
for j in range(n):
if a... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
38ff709a61cfb1ae8896dc1e3c08780ad1e9a2ef | 54df8336b50e8f2d7dbe353f0bc51a2b3489095f | /Python/Interview Que/Interview Companies/Helious/helious.py | 689ab9b6cbb7979e1b4729d382fd1fd9463b130b | [] | no_license | SurendraKumarAratikatla/MyLenovolapCodes1 | 42d5bb7a14bfdf8d773ee60719380ee28ff4947a | 12c56200fcfd3e5229bfeec209fd03b5fc35b823 | refs/heads/master | 2023-06-17T15:44:18.312398 | 2021-07-19T10:28:11 | 2021-07-19T10:28:11 | 387,358,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | import pandas as pd
def amazon(rows,column,grid):
l = grid
li = []
j = 1
for i in range(1,rows+1):
#print(i)
del li[:]
li.append(l[j:i+1])
j = j + 1
#print(li)
#print(len(li))
df = pd.read_excel('helious_excel.xlsx',index = False)
products_list = df.valu... | [
"suendra.aratikatla1608@gmail.com"
] | suendra.aratikatla1608@gmail.com |
65a307e046bd927498c11951ac68c7b6f1820282 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/sunData/SType/ST_facets/ST_facets00103m/ST_facets00103m1_p.py | 48419483f9e7d9f711bb0a9db68d1efb0f190a40 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 137 | py | from output.models.sun_data.stype.st_facets.st_facets00103m.st_facets00103m_xsd.st_facets00103m import Test
obj = Test(
value=99
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
717a43259dc60384e77d65e86db860b4dc534928 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/plugin/core/assembler/AssemblyDualTextField.pyi | 2bb5f62b3cb243f9fb56b96919696eb29f21d33a | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,327 | pyi | from typing import List
import docking.widgets.autocomplete
import ghidra
import ghidra.app.plugin.core.assembler
import ghidra.program.model.lang
import ghidra.program.util
import java.awt
import java.awt.event
import java.lang
import javax.swing
class AssemblyDualTextField(object):
class AssemblyDualTextFi... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
5d9be8cbd2400d26b6973bf47290a761629d2234 | f50f1aa1f8f139d546db3230a1cb1f53043fd9e6 | /programming/language/python/xmpppy/actions.py | c7191c67dea317bccb65cc5fb9ea28569e810d0e | [] | no_license | pars-linux/corporate2 | 7887961d1552d39bc3b0bef4a60fd3413d9b82bb | 14d1eacfc824fb8d0bff8173e7ac06b36b88d10d | refs/heads/master | 2020-05-26T15:02:12.005654 | 2017-02-27T03:07:14 | 2017-02-27T03:07:14 | 82,476,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "%s-%s" % (get.srcNAME()... | [
"ozancaglayan@users.noreply.github.com"
] | ozancaglayan@users.noreply.github.com |
fe45965db65727374e8c7858346a6f1b042d6ccb | aa0270b351402e421631ebc8b51e528448302fab | /sdk/containerregistry/azure-containerregistry/azure/containerregistry/_version.py | e58e03dcf5cb74c0037ab2a31a9b3476cbb2efe7 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 172 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
VERSION = "1.1.0b5"
| [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
9c45ea43930611d5d6687bc81905d6bd6dc7511d | 32dbb74f03c7450ee1f3166f82260e60272f57e0 | /Push/special_mixer_component.py | 9867a321f3da17667503d3af980a96407815a7f9 | [] | no_license | cce/buttons10 | 61555bc767f2bd300bfffb373f9feaae96b83ca7 | 6f1137c96eead0b9771ad8ec9327dd72ada2e916 | refs/heads/master | 2021-04-15T09:45:39.684764 | 2018-03-24T04:29:52 | 2018-03-24T04:29:52 | 126,565,725 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,946 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Push/special_mixer_component.py
from __future__ import absolute_import, print_function, unicode_literals
from itertools import izip_longest
from ableton.v2.base import listens
from ableton.v2.control_surf... | [
"cce@appneta.com"
] | cce@appneta.com |
d5e78a332dff2134a46453a63b84a1c416791fe0 | 7cfcb2a79226d8fe90276bd32964d94243cc496a | /joints_detectors/hrnet/pose_estimation/video.py | 5271ff11f7860bd444e5f2f422c916880f5c3343 | [
"MIT"
] | permissive | daydreamer2023/videopose | 5185442eb31138f6bd6a86fdbec2c411a8773bc3 | 463f5d2770288a217033e901d1a8251b489d7f76 | refs/heads/master | 2022-01-12T16:14:33.589459 | 2019-05-13T12:45:23 | 2019-05-13T12:45:23 | 186,530,514 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,104 | py | '''
使用yolov3作为pose net模型的前处理
use yolov3 as the 2d human bbox detector
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
import os
path1 = os.path.split(os.path.realpath(__file__))[0]
path2 = os.path.join(path1, '..')
sys.path.insert(0, path1)
sy... | [
"lxy5513@gmail.com"
] | lxy5513@gmail.com |
e6365024ee3cd8e06acfeef8570a4e5969727fbd | ca17bd80ac1d02c711423ac4093330172002a513 | /remove_invalid_parenthese/RemoveInvalidParenthese.py | 6228196ed2a67837b1c30815b6bd3b8b6f1be798 | [] | no_license | Omega094/lc_practice | 64046dea8bbdaee99d767b70002a2b5b56313112 | e61776bcfd5d93c663b247d71e00f1b298683714 | refs/heads/master | 2020-03-12T13:45:13.988645 | 2018-04-23T06:28:32 | 2018-04-23T06:28:32 | 130,649,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | class Solution(object):
def isvalid(self,s):
ctr = 0
for c in s:
if c == '(':
ctr += 1
elif c == ')':
ctr -= 1
if ctr < 0:
return False
return ctr == 0
def removeInvalidParentheses(self, s):
... | [
"zhao_j1@denison.edu"
] | zhao_j1@denison.edu |
d0521ace1b2b1d05327842085cb9e3c88b7ff56e | 6532b2c6dfefa27a7f5c3c790f13dfc1e42cc703 | /mlbstats/wsgi.py | b178aa582e80746b55bd0bee8b2755a5fc27ee86 | [] | no_license | aclark4life/mlbstats | c59ba44b17541364fc4da16dbd3383f7ea05497f | b939f32dadeed6642b23de3e57624c0b0661b87c | refs/heads/master | 2023-04-29T07:15:36.471625 | 2021-05-18T14:35:12 | 2021-05-18T14:35:12 | 348,089,359 | 0 | 0 | null | 2021-05-18T14:35:12 | 2021-03-15T18:57:54 | Python | UTF-8 | Python | false | false | 397 | py | """
WSGI config for mlbstats project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"aclark@aclark.net"
] | aclark@aclark.net |
f3c73006fa5e1104d3838c08a0ff4d64b2ed7f7f | fcd00440495737c72f2ec0183e78002a6c9f0afe | /sample_plot_script_2.py | b51aa77d168c9ec09d9eb0a026c13281b5054960 | [] | no_license | Riashat/Plotting_Scripts | caa7ba20fbaa81e6f415c8311ec3d481f45e72c1 | 1b0b6d61aac0f3dbc0c6af207ce351d45e88411f | refs/heads/master | 2021-01-23T18:22:04.741566 | 2018-05-08T16:43:25 | 2018-05-08T16:43:25 | 102,787,346 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,040 | py | import matplotlib.pyplot as plt
import time
import numpy as np
import pandas as pd
from numpy import genfromtxt
import pdb
from scipy import stats
eps = np.arange(1000)
#HalfCheetah Policy Activations
hs_leaky_relu = np.load('/Users/Riashat/Documents/PhD_Research/OpenAIBaselines/ReproducibilityML/Results/rllab_resu... | [
"riashat.islam.93@gmail.com"
] | riashat.islam.93@gmail.com |
7c282c200459bd553ba96067cc096214498e9fc3 | a2080cbcf9694ad03690769cfc64d85a57f1d9d5 | /tests/type/test_directives.py | 83147cd74eda1f3a3c5616fe6181eed9445f576d | [
"MIT"
] | permissive | wuyuanyi135/graphql-core | 84196a47aec0f9508db3f8aadb8951b9fc9b9fe0 | 169ae7bced0f515603e97f1def925f3d062e5009 | refs/heads/main | 2023-04-13T11:38:10.815573 | 2021-05-02T05:17:29 | 2021-05-02T05:21:58 | 363,327,364 | 1 | 0 | MIT | 2021-05-01T05:05:29 | 2021-05-01T05:05:28 | null | UTF-8 | Python | false | false | 8,101 | py | from pytest import raises # type: ignore
from graphql.language import DirectiveLocation, DirectiveDefinitionNode, Node
from graphql.type import GraphQLArgument, GraphQLDirective, GraphQLInt, GraphQLString
def describe_type_system_directive():
def can_create_instance():
arg = GraphQLArgument(GraphQLStrin... | [
"cito@online.de"
] | cito@online.de |
7a197fe4699e4b70d97f31eb1a9343d397616030 | 53e2aabd85f3154f5c3c79d26fadf094ff694d92 | /Etl.Highlight/test.py | f2b6790f36ab963b6eafc13ac3ecccbdba9a427c | [] | no_license | yuchanmo/Upbit | 69446b08eb86692df5b2c68886d71310d7e226f2 | d7106579d644286b1305c0de370501821d6f499c | refs/heads/master | 2023-08-18T01:56:45.210567 | 2021-09-28T12:15:43 | 2021-09-28T12:15:43 | 411,268,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | from dbconnector import sqlserver
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
import datetime as dt
import numpy as np
import requests
from sklearn.preprocessing import MinMaxScaler
df = pd.read_sql("SELECT * FROM [CoinStar].[dbo].[MarketPrice] where market = ... | [
"mojjijji@gmail.com"
] | mojjijji@gmail.com |
fe0eb734470c894706cf2b66195c37013924e275 | 49b33bd602e9e003c4017eb1d9852dec31a34cad | /wowza_ec2_bootstrapper/actions/set_config.py | 0a76884b6618e83ae8709df4c9ef0a0e9c433cec | [] | no_license | nocarryr/wowza-ec2-bootstrapper | 4dba7180c594a708edd6502c5530a1ab5a98ab12 | 0a4f9e31f4ea8422ea3234d5a76144d5917017a1 | refs/heads/master | 2021-01-10T05:46:29.216619 | 2015-10-20T16:20:34 | 2015-10-20T16:20:34 | 43,161,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | import os
import requests
from wowza_ec2_bootstrapper.actions import BaseAction
class SetConfig(BaseAction):
action_fields = dict(
server_license={
'required':False,
'help':'Wowza License Key',
},
users={
'required':False,
'help':'A list... | [
"matt@nomadic-recording.com"
] | matt@nomadic-recording.com |
766714b71a03a0bfe48dbaae5c793aea50540062 | ddf1267a1a7cb01e70e3b12ad4a7bfaf291edb3e | /src/user/migrations/0026_auto_20200117_1954.py | 0d698365c342a20c5d63847872745908c6e77769 | [
"MIT"
] | permissive | Garinmckayl/researchhub-backend | 46a17513c2c9928e51db4b2ce5a5b62df453f066 | cd135076d9a3b49a08456f7ca3bb18ff35a78b95 | refs/heads/master | 2023-06-17T04:37:23.041787 | 2021-05-18T01:26:46 | 2021-05-18T01:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # Generated by Django 2.2.8 on 2020-01-17 19:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0025_auto_20200117_1954'),
]
operations = [
migrations.RenameField(
model_name='action',
old_name='hub',
... | [
"lightning.lu7@gmail.com"
] | lightning.lu7@gmail.com |
efef0ce5c060b5976beca74ab1d52ce316fc24fe | 03a22b3c00dc5188da3ed1a19077874e3ad786c5 | /futoin/cid/rmstool.py | aea53cbbfb428d40c425fdabe9c6f726303a4657 | [
"Apache-2.0"
] | permissive | iforgotband/cid-tool | fdf050169e5aa895ded9d9efb2741860ecd91a34 | f7d0e53057ecff156cf52c8dcae80c6408fb37d8 | refs/heads/master | 2021-08-15T02:51:17.717986 | 2017-11-17T07:59:24 | 2017-11-17T07:59:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,169 | py | #
# Copyright 2015-2017 (c) Andrey Galkin
#
from .subtool import SubTool
__all__ = ['RmsTool']
class RmsTool(SubTool):
__slots__ = ()
ALLOWED_HASH_TYPES = [
'md5',
'sha1',
'sha256',
'sha512',
]
def autoDetect(self, config):
if self._autoDetectRMS(config):
... | [
"andrey@futoin.org"
] | andrey@futoin.org |
6ce7bc39c05aee5ebed9f3370a45057595d99e7f | 9f99485ac5479c1e6169e71d88a33c31ff591f4e | /migrations/versions/0021.py | 4a35b8ca73df34418a507a045bfdbb03a1f849f7 | [
"MIT"
] | permissive | NewAcropolis/api | b8c65554ca78ac0e87fbef46f5f2fbecb6d7700a | 34367f55d3c9ee5bf870956ffc90fd23da559b15 | refs/heads/master | 2023-08-31T09:27:02.125549 | 2023-08-26T22:15:10 | 2023-08-26T22:15:10 | 99,582,634 | 1 | 1 | MIT | 2023-08-26T22:15:11 | 2017-08-07T13:46:23 | Python | UTF-8 | Python | false | false | 773 | py | """empty message
Revision ID: 0021 allow access_area nullable
Revises: 0020 add users
Create Date: 2019-02-02 13:42:31.511289
"""
# revision identifiers, used by Alembic.
revision = '0021 allow access_area nullable'
down_revision = '0020 add users'
from alembic import op
import sqlalchemy as sa
def upgrade():
... | [
"kenlt.uk@gmail.com"
] | kenlt.uk@gmail.com |
2242d8d1034270b8cfee1d019fcede2872faaa7d | 42d3d37a3dd22402154da4f4bd020afd7b7bad58 | /examples/adspygoogle/adwords/v201206/campaign_management/add_location_extension_override.py | db059a6c791048bd092aec25eff36d441d6cba7d | [
"Apache-2.0"
] | permissive | nearlyfreeapps/python-googleadwords | 1388316ec4f8d9d6074688ec4742872b34b67636 | b30d90f74248cfd5ca52967e9ee77fc4cd1b9abc | refs/heads/master | 2020-06-03T23:05:08.865535 | 2012-08-02T21:46:16 | 2012-08-02T21:46:16 | 5,278,295 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
#
# Copyright 2012 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... | [
"ahalligan@nearlyfreehosting.com"
] | ahalligan@nearlyfreehosting.com |
b62071de2eebb19932cc24e94198d7d9b2505bc4 | 6af51aa6b83175acb256524beaf7972c92b58a74 | /python/QuickDS/implementations/list.py | 005373c66ec1445062c0ff1d12e97a97ac8aaabd | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rishi772001/QuickDS | 17dc0aa52bfd65dc12f55cd33309dafdf66f52e7 | dfe29840c81a557f9dbc20dbc5088057e2d7b987 | refs/heads/master | 2023-02-21T04:34:52.354396 | 2021-01-25T13:39:58 | 2021-01-25T13:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | """
@Author: rishi
"""
# Import required modules
import random as rd
# Build List class
class List:
# Creates random list
@staticmethod
def create_random_list(length=10):
"""
:param length: length of the list
:return: list of random numbers
"""
retur... | [
"noreply@github.com"
] | rishi772001.noreply@github.com |
a032ae93a455de494d3208476a65b775ec1ba715 | 39cd9aa81927c20d85d1b65e55523455626ee902 | /python_work/chapter_6/exercises/6_6_polling.py | e73625d621232cceca5ee36ce3f1237f6ea02530 | [] | no_license | SMS-NED16/crash-course-python | acf363562a813f7deb36614dc935be4ed2d07fee | e6e6cb787d208f51f114f71331c43af1ddc1e4c2 | refs/heads/master | 2020-03-09T02:29:35.241621 | 2018-04-21T16:09:16 | 2018-04-21T16:09:16 | 128,541,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #dict of people and their favourite languages
favourite_languages = {
'sarah' : 'c',
'john' : 'python',
'brad' : 'c++',
'mike' : 'ruby',
'jessica' : 'java'
}
#list of people
respondents = ['sarah', 'jessica', 'andrew', 'mike', 'gilfoyle',
'peyton', 'joaquin', 'brad']
#parse list of names, check if they have ... | [
"saadmsiddiqui96@gmail.com"
] | saadmsiddiqui96@gmail.com |
0b1e777da2a004715ed496397a5acf96ebf6b323 | 7c5ed3cbbd777d6cf3789f48e82cedbf2cec0539 | /functions/net/icmp/ping-nodes-with-thread-and-save-results.py | fde628356b9022e0bfd0b49ad5bb297d472fa470 | [] | no_license | pench3r/ShellScriptForDevOps | 8735b22b04fd2c5c4de76c5c6ebe63563c215c5c | 2df2911ebe567daeeae493a57a31f356e305089a | refs/heads/master | 2023-03-23T09:23:13.964646 | 2021-03-22T02:46:31 | 2021-03-22T02:46:31 | 350,180,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Created by PyCharm.
File Name: LinuxBashShellScriptForOps:ping-nodes-with-thread-and-save-results.py
Version: 0.0.1
Author: dgden
Author Email: liuhongda@didiglobal.com
Create Date: 2020/1/19
Create Time: ... | [
"nageshangzei@gmail.com"
] | nageshangzei@gmail.com |
2856e10c6c27a1b2d3da8c8fbb72be1733014051 | a2211f0ef8297a77200a0b2eec8ba3476989b7e6 | /itcast/02_python核心编程/02_linux系统编程/day02_线程/demo09_轮询法-消除竞争状态.py | 1112eea51a6e9cce12ac7813f2e0563a914bd6ed | [] | no_license | qq1197977022/learnPython | f720ecffd2a70044f1644f3527f4c29692eb2233 | ba294b8fa930f784304771be451d7b5981b794f3 | refs/heads/master | 2020-03-25T09:23:12.407510 | 2018-09-16T00:41:56 | 2018-09-16T00:42:00 | 143,663,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | from threading import Thread
g_num = 0
g_flag = True
def fun1():
global g_num
global g_flag
if g_flag:
for i in range(1000000):
g_num += 1
g_flag = False
print(f'线程1{g_num:+>20}\t{id(g_num)}')
def fun2():
global g_num
global g_flag
# 轮询
while True: # 如... | [
"1197977022@qq.com"
] | 1197977022@qq.com |
b113c837d2138196777156e7cf6f982f1f752475 | 2f0d56cdcc4db54f9484b3942db88d79a4215408 | /.history/Python_Learning/lesson17_20200503135756.py | a34d2eb01fc8a23dd6720f62c11d594ccb6dc60d | [] | no_license | xiangxing98/xiangxing98.github.io | 8571c8ee8509c0bccbb6c2f3740494eedc53e418 | 23618666363ecc6d4acd1a8662ea366ddf2e6155 | refs/heads/master | 2021-11-17T19:00:16.347567 | 2021-11-14T08:35:01 | 2021-11-14T08:35:01 | 33,877,060 | 7 | 1 | null | 2017-07-01T16:42:49 | 2015-04-13T15:35:01 | HTML | UTF-8 | Python | false | false | 1,178 | py | # -*- encoding: utf-8 -*-
# !/usr/bin/env python
'''
@File : lesson17.py
@Time : 2020/04/19 21:42:24
@Author : Stone_Hou
@Version : 1.0
@Contact : xiangxing985529@163.com
@License : (C)Copyright 2010-2020, Stone_Hou
@Desc : None
'''
# here put the import lib
# 类型转换
a = 1
print(a, type(a))
# 1 ... | [
"xiangxing985529@163.com"
] | xiangxing985529@163.com |
723cafe05499d104d0a4bcd08b6a751d0732586e | 7d23afa21ca9653ea337fbb01ba54e9488de8a80 | /autosuggest/asgi.py | 043460afdf64407137e1bebcf16eb3810e094fef | [] | no_license | clarkeustaquio/NLP-WordSuggestion | 65915d5ea11f9684ecd7bea97fdfcdf71d6b9c77 | cb681f24e1e55570b8d943bf631d8a6bd2e24285 | refs/heads/main | 2023-07-08T16:19:41.713217 | 2021-08-06T03:22:04 | 2021-08-06T03:22:04 | 386,520,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for autosuggest 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('DJANGO_S... | [
"clark.eustaquio@gmail.com"
] | clark.eustaquio@gmail.com |
7003ec4ae5e020487c4ff6ad970d7a07dd84868b | 3d16bcf91c546dfc638bf9e48d7690e8aed37ee2 | /tests/Cpl/Dm/Persistent/_0test/realtime/windows/mingw_w64/mytoolchain.py | 4ca8928d0d14090c111788daa7ab0f54e695bd58 | [] | no_license | johnttaylor/colony.core | 7c3aa43abdd564689e1540795b8044228b97271c | e00902d33c9224a34e9f68edb02c18eb9571b09f | refs/heads/master | 2023-07-24T08:34:04.956247 | 2023-06-20T00:02:55 | 2023-06-20T00:02:55 | 31,176,673 | 2 | 2 | null | 2023-06-17T21:56:08 | 2015-02-22T19:38:07 | C | UTF-8 | Python | false | false | 4,935 | py | #---------------------------------------------------------------------------
# This python module is used to customize a supported toolchain for your
# project specific settings.
#
# Notes:
# - ONLY edit/add statements in the sections marked by BEGIN/END EDITS
# markers.
# - Maintain indentation level and u... | [
"john.t.taylor@gmail.com"
] | john.t.taylor@gmail.com |
79c0640dfe81c2911cd35bee527ab1c36f02d83e | 89e6c3548fbdd06178aae712de1ff19004bc2faa | /django_hg/admin.py | 6fc1e1082734fd909d4fff6278782f225444eeac | [
"BSD-2-Clause"
] | permissive | bhgv/ublog_git.hg.repo-django.python-engine | a3f3cdcbacc95ec98f022f9719d3b300dd6541d4 | 74cdae100bff5e8ab8fb9c3e8ba95623333c2d43 | refs/heads/master | 2020-03-23T01:04:07.431749 | 2018-07-25T12:59:21 | 2018-07-25T12:59:21 | 140,899,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from my_django.contrib import admin
from django_hg.models import HgRepository, RepositoryUser
class UserInline(admin.TabularInline):
model=RepositoryUser
class HgRepositoryAdmin(admin.ModelAdmin):
inlines=[UserInline,]
admin.site.register(HgRepository, HgRepositoryAdmin)
| [
"bhgv.empire@gmail.com"
] | bhgv.empire@gmail.com |
1d41c54ec8ce0af470639cebf2a279f1299f0c15 | 50cbc789f765610b1074b414a4cb5fbecb65b340 | /djangosige/apps/estoque/models/movimento.py | b23514c840fb941be3044a344591b3a4a1a54fa4 | [
"MIT"
] | permissive | jonatasoli/djangoSIGE | 6f79a92737e281ab6e999ad1353c5f24a0e54d97 | 31bba22cf5ce304bc96068e93d49002f99066218 | refs/heads/master | 2021-10-22T20:43:37.591470 | 2019-03-12T21:20:36 | 2019-03-12T21:20:36 | 109,386,717 | 1 | 0 | null | 2017-11-03T11:12:21 | 2017-11-03T11:12:20 | null | UTF-8 | Python | false | false | 4,915 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.core.validators import MinValueValidator
from decimal import Decimal
from django.core.urlresolvers import reverse_lazy
from django.template.defaultfilters import date
from . import DEFAULT_LOCAL_ID
import locale
locale.setlocale(locale.LC_ALL, '')
TIP... | [
"thiagovilelap@hotmail.com"
] | thiagovilelap@hotmail.com |
9472d2e6c1f8c59f279a64790c1afe940a3f77db | 7c74ceb9f8addcc0816d012e0b84b174b96e0def | /src/azure-cli-core/azure/cli/core/decorators.py | 55a1d88e11e60f053ba780fa7627e97a9dc7db78 | [
"MIT",
"LGPL-2.1-only",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | microsoft/azure-cli | 4c826290e7a6f6bd27da3829b05e4f02ff6dc8d9 | 9ba64b33f6f78e2c3e42f8a147f59484300e8779 | refs/heads/dev | 2023-08-31T08:51:39.526556 | 2022-11-28T19:08:23 | 2022-11-28T19:08:23 | 370,900,439 | 7 | 7 | MIT | 2023-08-01T23:34:50 | 2021-05-26T03:59:41 | Python | UTF-8 | Python | false | false | 2,777 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
385a49c13b863a8896488f4156d05502aa2f7c80 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list_secrets.py | ea1924799cfe381f8684b2226852edd26e271f44 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,696 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
9026865925b672227cd58a155c84cd23b74dd83d | a06cd01b474e74d7b57144fca3930b7a2fe01ec4 | /ethpm/validation/uri.py | 009ceaf58091465a85e442722fdaa395a10bf1f1 | [
"MIT"
] | permissive | XTAUEMC/web3.py | e95b9b2e8bb18cae9794a0eaecb2bef3cbd87ec6 | 36224cfd19c3cf50746ccdeae8521ce4c08b7e3a | refs/heads/master | 2020-06-20T00:01:35.345192 | 2019-07-14T19:56:28 | 2019-07-14T19:56:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,339 | py | import hashlib
from typing import (
List,
)
from urllib import (
parse,
)
from eth_utils import (
is_checksum_address,
to_bytes,
to_int,
to_text,
)
from ethpm._utils.chains import (
is_supported_chain_id,
)
from ethpm._utils.ipfs import (
is_ipfs_uri,
)
from ethpm._utils.registry impor... | [
"nickgheorghita@gmail.com"
] | nickgheorghita@gmail.com |
151ef292dd5b4742d46553aee188acfd3a2cd8b2 | 1ff41a2393c969aaf662a198f405b4e76d4ce957 | /myshop/myshop/settings.py | f85c2d92c211522f0c679ef4a12a154d55a90ecd | [] | no_license | asimonia/django-bookstore | 7a15495c8a522a4c8f5151948d1a0f2a67a4f63a | 29fd151eb9269c3e43e1b2736f11f49247ec2994 | refs/heads/master | 2021-01-17T17:27:53.268028 | 2016-07-19T02:15:52 | 2016-07-19T02:15:52 | 63,547,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,086 | py | """
Django settings for myshop project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | [
"alex.simonian@gmail.com"
] | alex.simonian@gmail.com |
c11fdcc792918562865cbdc580eb0b8eb3b9459a | 67df0894b961a8d1729214f07c954c551fd06f3f | /re_search_en/o_O_re_search_en.py | fbcb34853079f23d19e01ac81ea62b4f37047ea5 | [] | no_license | hihumi/enjapy | 9261b209e3dbe3628229acff0e425da08ab46caf | 4d7344cb7291abe4deb4bca42590693d89ba328e | refs/heads/master | 2020-05-23T10:11:01.260143 | 2017-09-30T06:10:22 | 2017-09-30T06:10:22 | 80,397,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | #!/usr/bin/env python3
"""main.pyで入力されたwordが、
oxxx_reモジュールのoxxx_re_func()で作成した正規表現のo、またはOからはじまる英単語と合致した場合、
oxxx_jaモジュールのoxxx_ja_func()を呼ぶ
ただし、o-listまたはO-list(すべて大文字小文字は問わない)と入力された場合、o_O_listモジュールのo_O_list_func()を呼ぶ
"""
# o: a b c d e f g h i j k l m n o p q r s t u v w x y z
#
# from re_en.oxxx_re import oxxx_re_fu... | [
"yui.maa5800@gmail.com"
] | yui.maa5800@gmail.com |
8cb50e722107fc700d8f17e3ee0ff96f2942120c | 908554f8250780024ffdd6c6f32a65acc36ec5cd | /backend/task_category/migrations/0001_initial.py | 63a0837d759cfbb72a35d63a7f45744f3ea04b43 | [] | no_license | crowdbotics-apps/petsker-23110 | 799032a970fce4da74d9ced06655b073ecee1621 | ca4d40e9b4b72d36fc60c8544c4e27635864a203 | refs/heads/master | 2023-01-21T21:39:29.108783 | 2020-12-01T15:54:38 | 2020-12-01T15:54:38 | 317,582,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # Generated by Django 2.2.17 on 2020-12-01 15:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Category",
fields=[
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d97eaea3fb21768d3835c717678dd583e27be0e8 | df789505c99974c0ba45adc57e52fc7865ff2a28 | /python练习题/常用案例.py | f75ecfae83f1b4f2f8b671fcb764e2d1ca341108 | [] | no_license | zhiwenwei/python | 6fc231e47a9fbb555efa287ac121546e07b70f06 | 76d267e68f762ee9d7706e1800f160929544a0a3 | refs/heads/master | 2021-01-20T04:21:44.825752 | 2018-12-19T06:20:10 | 2018-12-19T06:20:10 | 89,676,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #coding:utf-8
#Author:Mr Zhi
#排列组合,将4个数字可能组成的所有互不相同且无重复数字的排列组合列出。
for i in range(1,5):
for j in range(1,5):
for k in range(1,5):
if (i != k) and (i != j) and (j != k ):
print(i,j,k)
import fileinput
| [
"ddzhiwenwei@163.com"
] | ddzhiwenwei@163.com |
01743d7f3fd3ed87763ed1ea40e97069ac07d8c2 | 4be2c72579486ad04a00db0349028de96d2dce89 | /scripts/aTools/animTools/animBar/animBarUI.py | c47fbf7c062fa74f255ab5c363e08a4142f0e8b9 | [] | no_license | italic-r/maya-prefs | 6a617d40beee8937186b4699c5cead44e01c2d40 | aa21e5e2938dc2698ce5f555ee74a594e08aed2b | refs/heads/master | 2021-09-09T16:31:00.411349 | 2018-03-18T01:40:10 | 2018-03-18T01:40:10 | 86,961,959 | 16 | 8 | null | null | null | null | UTF-8 | Python | false | false | 6,651 | py | '''
========================================================================================================================
Author: Alan Camilo
www.alancamilo.com
Requirements: aTools Package
------------------------------------------------------------------------------------------------------------------------
To i... | [
"italic.rendezvous@gmail.com"
] | italic.rendezvous@gmail.com |
18a1c1067bad2013e8ca5d5d30bccc4e31eb262f | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/Cases/2468/.mooctest/answer.py | 97b5f1afb2362e43de2e28c40adb9a4f8b3ccb58 | [] | 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 | 305 | py | t=int(input())
while(t>0):
n=int(input())
a=[]
num=input()
for x in num.split():
a.append(int(x))
P=[]
i=0
p=1
for x in a:
p=p*x
while i<n:
P.insert(i,p//a[i])
i=i+1
for x in P:
print(x,end=" ")
print()
t=t-1
| [
"382335657@qq.com"
] | 382335657@qq.com |
421123dd75c5d9c60f99ea7d66de6b553bae9db3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/148/usersdata/272/86767/submittedfiles/testes.py | db6500d7b4c0772c218a8e23b5ab043f7012a066 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
def impar(x):
if ((x%2)!=0):
return (True)
else:
return (False)
a=int(input('Digite a: '))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8c1ec39b364c12047ff70031d242a8c292be9e94 | 81b0e6fe7a6e56ed8a91748499b81ddd3f2e45f8 | /neural_network.py | 56ddb8ba46c9ef0d3b02ce7f51677509286dce26 | [] | no_license | shieldforever/DeepLearning | cfef817602b9677df4df4c1b87e60c5e91f2315a | b8080938a4b22395379be9032266df36cb5491e6 | refs/heads/master | 2021-01-05T14:12:26.110888 | 2019-10-29T11:23:06 | 2019-10-29T11:23:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 14 17:55:42 2019
@author: Administrator
"""
import numpy as np
from scipy import special
class neuralNetwork(object):
#initialize the neural network
def __init__(self,inputnodes,hiddennodes,outputnodes,learningrate):
self.inodes=inputnodes
self.h... | [
"870407139@qq.com"
] | 870407139@qq.com |
c0a0e1a4bdaa1c76b49f676e19384408c030d1c1 | e1f519fc0c4f76d11db9584f74c5b49ca95b0798 | /cs_notes/arrays/RLE_iterator.py | 8a78d35ba581f17f8aca1d70416549bdd8f05e1b | [] | no_license | hwc1824/LeetCodeSolution | 22d41327cde2b9562f58cc73e6205c7c2f9a5e1c | ac53dd9bf2c4c9d17c9dc5f7fdda32e386658fdd | refs/heads/master | 2023-08-16T10:15:39.351933 | 2018-12-19T00:43:07 | 2018-12-19T00:43:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | # 900. RLE Iterator
# https://leetcode.com/problems/rle-iterator/description/
class RLEIterator:
# 下面的解法的想法是,只要記錄目前走到第幾步就好了
# 儲存 A 的時候將連續出現的次數變換成最後一次出現的位置
# 當 next 被呼叫的時候,將 n 累計起來
# 然後就只要查閱 n 介於那兩個數字的最後一次出現位置之間
def __init__(self, A):
"""
:type A: List[int]
"""
self.c... | [
"eraxer0165749@gmail.com"
] | eraxer0165749@gmail.com |
c549025fe6b58ffe1ccc0b22996cabc8736f8306 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/4499367/snippet.py | 5581424b74f80c38427bb49d1be8aff71949ed4c | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 6,695 | py | class ReloaderEventHandler(FileSystemEventHandler):
"""
Listen for changes to modules within the Django project
On change, reload the module in the Python Shell
Custom logic required to reload django models.py modules
Due to the singleton AppCache, which caches model references.
For those model... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
b9dc54cabc677d71d8007287459dced2f2617cad | 099b57613250ae0a0c3c75cc2a9b8095a5aac312 | /一些总结/测试文件.py | a6b7753c5aaf1e6131ed711b632a56cb8e88a6b0 | [] | no_license | MitsurugiMeiya/Leetcoding | 36e41c8d649b777e5c057a5241007d04ad8f61cd | 87a6912ab4e21ab9be4dd6e90c2a6f8da9c68663 | refs/heads/master | 2022-06-17T19:48:41.692320 | 2020-05-13T16:45:54 | 2020-05-13T16:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def test(self,head):
while head.next != None:
print(head.val)
head = head.next
if __name__ == "__main__":
solution = Solution()
solution.test()
| [
"yifu3@ualberta.ca"
] | yifu3@ualberta.ca |
96485320f651c95c1a482e4192a688a2b0660b02 | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/2577781/snippet.py | e33c008d1679fcecad43252d5649b7c362333a02 | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 2,201 | py | #!/usr/bin/env python
# Thread pool based on: http://code.activestate.com/recipes/577187-python-thread-pool/
from queue import Queue
from threading import Thread
from functools import partial
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
from tornado import gen
from tornado... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
e7f286d32115897aa45a6bdb8da562cfd9ae6f5d | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/bmacmappedip_dfnlz21lbnrzl2jnywnnyxbwzwrjca.py | f27128cbf257a11174bdaf3fe003acc13969aa81 | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 5,867 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
280180605538ca9ee2017ad7f97de20f1a449c35 | 74549d7c57b4746ac2a9c275aa12bfc577b0e8af | /funny_string.py | ade6aa44436eeb9690be1bfa5f29809cbb0e93ea | [] | no_license | abidkhan484/hackerrank_solution | af9dbf6ec1ead920dc18df233f40db0c867720b4 | b0a98e4bdfa71a4671999f16ab313cc5c76a1b7a | refs/heads/master | 2022-05-02T11:13:29.447127 | 2022-04-13T03:02:59 | 2022-04-13T03:02:59 | 99,207,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/bin/python3
n = int(input().strip())
for i in range(n):
s = input().strip()
# tmp list, to get the consequtive subtraction of the s list(string)
s = list(s)
tmp = []
l = len(s)
for j in range(1, l):
temp = abs(ord(s[j]) - ord(s[j-1]))
tmp.append(temp)
# now reverse ope... | [
"abidkhan484@gmail.com"
] | abidkhan484@gmail.com |
ce7b7d741e6cdf375737b61908957bd3e62f89a9 | 7b2a3ea853dc44aea204f02abedaad6a2029f4ff | /preprocess_4mem2d.py | 4511128676f7bf408c9f199ba12a43ca4469807f | [] | no_license | NoisyLeon/SW4Py | 7d45503282dc988b5f886c039706bd79fdd6b339 | 7029f18eb526bcb46b4aa244da1e088ca57a56aa | refs/heads/master | 2020-12-22T14:57:11.265397 | 2016-12-20T18:27:18 | 2016-12-20T18:27:18 | 56,792,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | import vmodel, stations
# SLst=stations.StaLst()
# # SLst.HomoStaLst(xmin=20000, Nx=149, dx=20000, ymin=20000, Ny=29, dy=20000)
# SLst.LineStaLst(xmin=300000, Nx=133, dx=20000, y=300000)
# SLst.WriteStaList('/lustre/janus_scratch/life9360/sw4_working_dir_4mem2d/station_4mem2d.lst')
# # SLst.Write2Input(infname='/lust... | [
"lili.feng@colorado.edu"
] | lili.feng@colorado.edu |
9fedd6c3390c1fce9081e9c32411b6ec4b73d856 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /String/Q843_Guess the Word.py | 14717252223355cffe90ae93b5a66190717a6e68 | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py |
# 思路1: 每次随机选择一个word, 得到score, 留下list中和当前guess match结果为score的word
# 思路2: 因为最有可能的情况是一个字符都不match, 概率为 (25/26)^6 = 80%, 所以最有可能的情况是首先guess到match score=0,
# 可以从candidates中选择和其他word的 match score = 0 数量最小的word, 这样candidates 集合减小最快
# O(N^2)
# 思路3: 根据char frequency的总和 选择family 最大的那个word, 这样一旦guess到match score=0, 所有和这个word有重叠的... | [
"564258080@qq.com"
] | 564258080@qq.com |
40bc42df545f07ac7d1662bc6dfebf1fdf0c95a7 | 107e869bc298c74bf2418b53b630ca57c00bc68b | /src/repro/model/densenet201.py | 977eb43ebc36e871f5c9e9ee61ac995971421ec5 | [
"BSD-3-Clause"
] | permissive | bouthilx/repro | 699f1f635872507bd054b57ec03140f998a9f7d1 | 611734e4eddd6a76dd4c1e7114a28a634a2a75c1 | refs/heads/dev | 2020-04-18T03:26:55.670831 | 2019-01-30T17:56:21 | 2019-01-30T17:56:21 | 167,199,050 | 0 | 0 | BSD-3-Clause | 2019-01-23T19:48:35 | 2019-01-23T14:44:15 | Python | UTF-8 | Python | false | false | 283 | py | from repro.model.densenet import DenseNet, distribute
def build(input_size, num_classes, distributed=0):
model = DenseNet(input_size=input_size, num_init_features=64, growth_rate=32,
block_config=(6, 12, 48, 32))
return distribute(model, distributed)
| [
"xavier.bouthillier@umontreal.ca"
] | xavier.bouthillier@umontreal.ca |
b64d25c8ad3b2647cc130320042a122d807f1f72 | 50518b396163f9ee07e762cc30ec86a49c35782c | /DACON_LG_블럭장난감제조공정/baseline/module/simulator.py | 57b0815bd4d8b53ad80621dd2ec89028bb09e55e | [] | no_license | madfalc0n/Dacon_AI | 0185fe4cfd7ba9716b7420d7f464f6901be7382e | 68f9aaab2a7fcc0e634bce67199d8b22049c4a09 | refs/heads/master | 2023-03-23T08:39:34.910144 | 2021-03-09T10:28:05 | 2021-03-09T10:28:05 | 274,060,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,772 | py | import os
import pandas as pd
import numpy as np
from pandas.api.types import is_numeric_dtype
from pathlib import Path
class Simulator:
def __init__(self):
self.sample_submission = pd.read_csv(os.path.join(Path(__file__).resolve().parent, 'sample_submission.csv'))
self.max_count = pd.read_csv(os.p... | [
"chadool116@naver.com"
] | chadool116@naver.com |
2c6f87182a68ad85ede0cd34bc337b5fcded27ab | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/twentyPercent/rank_4eig_B.py | 02617609224e47a8260dfad0e57980bf1975417d | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
c6bf383d8e5a35af168c40a96a2535f5a4986f6c | 306afd5282d9c24d58297478a1728a006c29e57e | /lintcode/lintcode_040_Implement_Queue by_Two_Stacks.py | 9f608da5577673762929157d354418a80e4c236b | [] | no_license | ytatus94/Leetcode | d2c1fe3995c7a065139f772569485dc6184295a9 | 01ee75be4ec9bbb080f170cb747f3fc443eb4d55 | refs/heads/master | 2023-06-08T17:32:34.439601 | 2023-05-29T04:33:19 | 2023-05-29T04:33:19 | 171,921,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | class MyQueue:
def __init__(self):
# do intialization if necessary
self.stack1 = []
self.stack2 = [] # 用來暫時放 stack1 的東西
"""
@param: element: An integer
@return: nothing
"""
def push(self, element):
# write your code here
self.stack1.append(element)
... | [
"noreply@github.com"
] | ytatus94.noreply@github.com |
d4295b1a86339eafa1623e827e5b977d4aa665b6 | 10c26e25f7da2289d50b1138b7da48bf9a02d42f | /Oj/users/views.py | 2058ad4470ff413c387bbdd003f3b5c7b3b3942e | [] | no_license | ParitoshAggarwal/OJ | e1392a02dd95d42b4d72ba69b891db9df5e406ad | 1a4acb5e620b0575d744fd8e4c13148062d1670c | refs/heads/master | 2022-10-19T21:18:02.512008 | 2017-12-27T06:53:46 | 2017-12-27T06:53:46 | 97,516,099 | 0 | 1 | null | 2022-10-13T00:05:44 | 2017-07-17T19:50:06 | JavaScript | UTF-8 | Python | false | false | 3,067 | py | from django.contrib.auth.models import User
from django.shortcuts import render, redirect, get_object_or_404
from django.views.generic import View
from .modelForms import CoderForm, UserForm
from django.contrib.auth import authenticate, login
from django.contrib.auth import logout
from django.views.generic.edit import ... | [
"paritoshmait@gmail.com"
] | paritoshmait@gmail.com |
da83acb376af17ee4889f2e2866bb87ad92bc1a7 | 1220f32fbf835e7a853ee7ccc8ca13c215bc79cf | /Kivy_tutorial_files/Kivy_App_Tutorial_00/Box&Buttons/ButtonWidget_06.py | 03565d1cbf7eaf290a6f27c19ecf4a39a966067a | [] | no_license | CyborgVillager/Gui_Tutorial | 6775fc570427b424dc38b56cdaad2c17ef3d178d | 9f39efc3d62bcb2f22bbf1fa9d23ad96a04cc412 | refs/heads/master | 2022-11-06T10:14:44.006658 | 2020-01-11T15:35:14 | 2020-01-11T15:35:14 | 232,301,052 | 1 | 1 | null | 2022-10-21T05:28:32 | 2020-01-07T10:31:01 | Python | UTF-8 | Python | false | false | 370 | py | from kivy.lang import Builder
from kivy.base import runTouchApp
runTouchApp(Builder.load_string("""
Label:
Button:
text:'Jonathan'
font_size:32
color:222, 233, 7, 0.96
size:250,200
pos:50,100
Button:
text:'Joshua'
font_size:26
color:.8,.1,0,1
... | [
"almawijonathan@gmail.com"
] | almawijonathan@gmail.com |
223827bb659d011399d16c21781ff4f7c4693e37 | 8253a563255bdd5797873c9f80d2a48a690c5bb0 | /configurationengine/source/plugins/symbian/ConeHCRPlugin/hcrplugin/tests/unittest_reader.py | bbb2421193268f7d267aa23848823b90add748c2 | [] | no_license | SymbianSource/oss.FCL.sftools.depl.swconfigmdw | 4e6ab52bf564299f1ed7036755cf16321bd656ee | d2feb88baf0e94da760738fc3b436c3d5d1ff35f | refs/heads/master | 2020-03-28T10:16:11.362176 | 2010-11-06T14:59:14 | 2010-11-06T14:59:14 | 73,009,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,883 | py | #
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-... | [
"none@none"
] | none@none |
60392a30744a47c26902a16ef07ffd786dbd9d0d | f0e6b08f33ea27ca0382f0bf8d9b5e33c01d1dfc | /djangoproject/myproject/myproject/settings.py | 0fcb5842788261b489b6bce73e7e2cb25479c510 | [] | no_license | nupur3101/batch430 | 8edef26909c2223031d8ef8690ba5cc6a0c83335 | cb9f0644a9f6662e731eb8b9b3f0762a738864f4 | refs/heads/master | 2020-12-28T04:45:52.825960 | 2020-01-30T12:35:33 | 2020-01-30T12:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | py | """
Django settings for myproject project.
Generated by 'django-admin startproject' using Django 3.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"simrangrover5@gmail.com"
] | simrangrover5@gmail.com |
2cfd1c024c96fe49b55a5504ae8a2442e1d5c830 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /TkL6GTu9QMhYnv869_14.py | a02ec9a366f6a9388b2c80a13da2f67a67dc42a7 | [] | 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 | 768 | py | """
Create a function that adds a string ending to each member in a list.
### Examples
add_ending(["clever", "meek", "hurried", "nice"], "ly")
➞ ["cleverly", "meekly", "hurriedly", "nicely"]
add_ending(["new", "pander", "scoop"], "er")
➞ ["newer", "panderer", "scooper"]
add_ending(["b... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9babd500af3d3514b3868f6b6c35a7c0b134ea0b | 77ab53380f74c33bb3aacee8effc0e186b63c3d6 | /5389_food_orders.py | 608d2efac050ccce436916c2505a26f57eaf268a | [] | no_license | tabletenniser/leetcode | 8e3aa1b4df1b79364eb5ca3a97db57e0371250b6 | d3ebbfe2e4ab87d5b44bc534984dfa453e34efbd | refs/heads/master | 2023-02-23T18:14:31.577455 | 2023-02-06T07:09:54 | 2023-02-06T07:09:54 | 94,496,986 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | '''
Given the array orders, which represents the orders that customers have done in a restaurant. More specifically orders[i]=[customerNamei,tableNumberi,foodItemi] where customerNamei is the name of the customer, tableNumberi is the table customer sit at, and foodItemi is the item customer orders.
Return the restaura... | [
"tabletenniser@gmail.com"
] | tabletenniser@gmail.com |
7674273a6bb9f50a92b66b039b3705b528f49169 | 549a573c35dd79f77ded35a0c9cc0b6074daba64 | /src/pipelines/epidemiology/ch_openzh.py | 84b9bfc4c3b7e25a898a84d4e355b0320286a7ec | [
"Apache-2.0",
"CC-BY-4.0",
"CC-BY-SA-3.0",
"LicenseRef-scancode-proprietary-license",
"GPL-3.0-only",
"AGPL-3.0-only",
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | harrisonzhu508/data | f91d5fb2847bfcba1c7debaad490266a11423424 | a3b95ced4abad6653d20f67f3f285abeeb0c2b25 | refs/heads/master | 2022-11-30T13:33:20.176773 | 2020-05-26T10:24:47 | 2020-05-26T10:24:47 | 266,201,099 | 0 | 0 | Apache-2.0 | 2020-08-03T20:55:05 | 2020-05-22T20:27:29 | HTML | UTF-8 | Python | false | false | 1,318 | py | from typing import Any, Dict, List
from pandas import DataFrame, concat, merge
from lib.pipeline import DefaultPipeline
from lib.time import datetime_isoformat
from lib.utils import grouped_diff
class OpenZHPipeline(DefaultPipeline):
data_urls: List[str] = [
"https://raw.github.com/openZH/covid_19/master/... | [
"oscar@wahltinez.org"
] | oscar@wahltinez.org |
0dea551c1c168da413200bb795660b6ad3d2ebed | ee76919635ce69e14ddf64ee9483dca073625aaf | /pythonAlgorithm/Practice/2049统计最高分的节点数目.py | f02db61c51e3be23fda138522eb59a428d8074f0 | [] | no_license | bossjoker1/algorithm | 574e13f0dd8fe6b3e810efc03649493e90504288 | c745168a01380edb52155ca3918787d2dd356e5b | refs/heads/master | 2022-07-13T16:26:10.324544 | 2022-07-10T03:28:15 | 2022-07-10T03:28:15 | 407,361,838 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | class Solution:
def countHighestScoreNodes(self, parents: List[int]) -> int:
n = len(parents)
g = defaultdict(list)
for i in range(1, n):
g[parents[i]].append(i)
nums = [1] * n
def dfs(root:int) -> int:
if root not in g:
return 1
... | [
"1397157763@qq.com"
] | 1397157763@qq.com |
af0935f71aa7ec410a3efca1dfe1563cbdb5e895 | acd1bec2b5f574aac9c91fa88cb2ad812c820066 | /Memorization Tool/task/table.py | dee73d297d70a4ac949778217a5f28dbdf5d3639 | [] | no_license | TogrulAga/Memorization-Tool | ec89006351947ea20fe6562024de750a2e1e0af9 | e1773ff8062ac4cff1018e06bf852f6315b414ab | refs/heads/master | 2023-07-05T21:14:18.522215 | 2021-08-08T10:17:47 | 2021-08-08T10:17:47 | 393,927,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String
Base = declarative_base()
class FlashCard(Base):
__tablename__ = "flashcard"
id = Column(Integer, primary_key=True)
question = Column(String)
answer = Column(String)
box_number = Column(Intege... | [
"toghrul.aghakishiyev@ericsson.com"
] | toghrul.aghakishiyev@ericsson.com |
5b189b2f2f1e90e3245a51923b9761e2b2d19619 | 5ca2cca7762dcfcf9dd4b6a646fb8d39b9c2718f | /manager/migrations/0004_auto_20201213_2242.py | 4293fc64255a2037a96563320da320c050a0649d | [] | no_license | trilong0610/WebThoiTrang-Old | 372b99036f160b9eb9c503f7b1987177855f5d6a | ae04a43019916e87099edb614d0d155f139f0d09 | refs/heads/main | 2023-02-02T23:22:39.938038 | 2020-12-16T08:30:55 | 2020-12-16T08:30:55 | 321,085,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # Generated by Django 3.1.3 on 2020-12-13 15:42
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manager', '0003_auto_20201213_2240'),
]
operations = [
migrations.AlterField(
model_name='purchaseproduct',
... | [
"trilong0610@gmail.com"
] | trilong0610@gmail.com |
b85551098ac4c2584a9d741b04153b773e5537fd | 9b0b0fbc5b5a9865108552eb8fe58a04f9cc0cc3 | /fabtools/icanhaz/python.py | 404644ba8740994e207506d9b4030fdc2e83c472 | [
"BSD-2-Clause"
] | permissive | thoas/fabtools | 8f77a24ed21f318e3bf7c8817a9b77a6def8ceb8 | 8cd63767384e589629e5f02e67bd498a8473b99c | refs/heads/master | 2021-01-18T06:36:29.737133 | 2011-09-05T15:55:36 | 2011-09-05T15:55:36 | 2,327,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | """
Idempotent API for managing python packages
"""
from fabtools.python import *
def package(pkg_name, virtualenv=None, use_sudo=False):
"""
I can haz python package
"""
if not is_installed(pkg_name):
install(pkg_name, virtualenv, use_sudo)
def packages(pkg_list, virtualenv=None, use_sudo=F... | [
"ronan.amicel@gmail.com"
] | ronan.amicel@gmail.com |
1b40a16b02b23dda2bf80039eea52b5c4399e387 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/FSAF_for_Pytorch/mmdetection/configs/lvis/mask_rcnn_x101_64x4d_fpn_sample1e-3_mstrain_2x_lvis_v0.5.py | 34c195d94bfefb4f5edace4eeca67ed63fff2f2c | [
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | 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 | 985 | py | # Copyright 2021 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-2.0
#
# Unless required by applicable law or agreed ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
864cd0f813eea94b8cd02c8f890eb24dfdfa3cc8 | c6e744658cf9633f6571f349fff444d84634a754 | /umweltbank/spiders/umweltbank.py | f1324715bba82c34f32859f99a3a6acc7d91df01 | [] | no_license | daniel-kanchev/umweltbank | a76bd0f2d86e7cfac691a0dcc8064b4d0cfc358f | 17dbe445c85583d298249a084ec828b4ef607338 | refs/heads/main | 2023-03-19T18:12:03.420926 | 2021-03-15T12:54:35 | 2021-03-15T12:54:35 | 347,968,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | import scrapy
from scrapy.loader import ItemLoader
from itemloaders.processors import TakeFirst
from datetime import datetime
from umweltbank.items import Article
class UmweltbankSpider(scrapy.Spider):
name = 'umweltbank'
start_urls = ['https://bankundumwelt.de/']
def parse(self, response):
links... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
139bfda90e79fcdbf1bdb18feb466787fc6c150e | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/20-list-method_20200413040951.py | f5bdbdbd3425864c68451d96e168feb776b6cffd | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | basket = [21, 12,33, 35, 99]
print(basket)
print(len(basket))
#33 gets pops because it is 2nd number in the array
print(basket.pop(2))
print(basket)
#extend
basket1 = [1000, 2000, 3000]
print(basket.extend(basket1))
print(basket)
#append - last to the list
print(basket.append(700))
print(basket)
#index
print(baske... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
e70be8b0d16cb7fe3b8690933269906f2d221d46 | 345529a5ae9ac4831e1a04066612c929a2a8ad7e | /ayush_crowdbotics_378/wsgi.py | 51606165e32cea776f0b3de315377a6dfb613e20 | [] | no_license | payush/ayush-crowdbotics-378 | 29f7552e5d91c21f530af982bc16477fb11df28a | aaec9093eec6408df059172033ed8b4bf3be3c97 | refs/heads/master | 2020-03-23T22:35:05.533833 | 2018-07-24T16:17:07 | 2018-07-24T16:17:07 | 142,183,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | """
WSGI config for ayush_crowdbotics_378 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
c24714f252c9778e9b5426070d57d02130f12ed8 | 97124dfacdb78a9301aebf5a3a4ecad7a5d0116b | /bp/__init__.py | f953eecb7fa5f1feab26592a1ee4475b728301cb | [] | permissive | esayyari/improved-octo-waddle | 982a5bd156f76415bf5dba875309190acea77b9a | 7aca988734cc1107b2d991eb9379347a08a32792 | refs/heads/master | 2022-11-20T20:16:43.370024 | 2020-07-21T19:13:35 | 2020-07-21T19:13:35 | 281,470,015 | 0 | 0 | BSD-3-Clause | 2020-07-21T18:39:11 | 2020-07-21T18:07:52 | Jupyter Notebook | UTF-8 | Python | false | false | 580 | py | # ----------------------------------------------------------------------------
# Copyright (c) 2013--, BP development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# --------------------------------------------------------... | [
"mcdonadt@colorado.edu"
] | mcdonadt@colorado.edu |
4be7a5039044527d2980a0bf1b7338f67739259d | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/5702d57eb4cb6ef6e7e8/snippet.py | 5ba8fa69b8f139f132805c7e897a493b1561e969 | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 1,624 | py | #!/usr/bin/env python2.7
import argparse
import os
import qrcode
import qrcode.image.pil
import sqlite3
import sys
import urllib
class AuthenticatorAccount(object):
def __init__(self, account_name, account_desc, secret):
self.account_name = account_name
self.account_desc = account_desc
se... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
e21b5f5350a57068a2fab6ad42da5cb8ff4b1390 | 928dcef8e8d682f3e4062b0cb3d49e6151383138 | /setup.py | acf65858f3b5704078624f20c38d4740c8f5a803 | [
"MIT"
] | permissive | giserh/hug | 3aa5724aadf5c06dd8c7b5f867ea40ea057e2e78 | a15bb9497d23398dc82c496352d91e32ff183f13 | refs/heads/master | 2021-01-18T08:41:32.402648 | 2015-09-15T02:12:21 | 2015-09-15T02:12:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | #!/usr/bin/env python
import subprocess
import sys
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
extra_kwargs = {'tests_require': ['pytest', 'mock']}
def finalize_options(self):
TestCommand.finalize_option... | [
"timothy.crosley@gmail.com"
] | timothy.crosley@gmail.com |
d013dd9eb4c44f3e18ece5550ce2a994787e3aaa | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_deployment/online/resource_requirements_schema.py | 7f43d91fc60142f1307ebcac5a55c78d2d8f447f | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",... | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 899 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
# pylint: disable=unused-argument
import logging
from typing import Any
from marshmallow import post_load
from azure.ai.ml._schema.core.... | [
"noreply@github.com"
] | Azure.noreply@github.com |
24e20f6e355cde10540c8b7eaacd974cbceb2334 | 5330918e825f8d373d3907962ba28215182389c3 | /CMGTools/Common/python/factories/cmgDiPFCandidate_cfi.py | e5a22266d42400df25dda74197c0de4f68b1198c | [] | no_license | perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | C++ | UTF-8 | Python | false | false | 415 | py | import FWCore.ParameterSet.Config as cms
from CMGTools.Common.factories.cmgDiObject_cfi import diObjectFactory
cmgDiPFCandidateFactory = diObjectFactory.clone(
leg1Collection = cms.InputTag("particleFlow"),
leg2Collection = cms.InputTag("particleFlow"),
)
cmgDiPFCandidate = cms.EDFilter(
"DiPFCandida... | [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
cffd3f09c260d4a20c639febd7d8c9d868a3c8bb | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/comparison/test_chart_layout03.py | 8edd7c7b233330d0dc5e1166cecf00a1a5e839f5 | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 1,650 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
c9f2b0fb720c3590de12e05c6c7e8e3c9323feb6 | a60e81b51935fb53c0900fecdadba55d86110afe | /LeetCode/python/76___________hard_Minimum Window Substring.py | 168c878e0eb107b71a2577dc7bb95e39d86f3841 | [] | no_license | FrankieZhen/Lookoop | fab6855f5660467f70dc5024d9aa38213ecf48a7 | 212f8b83d6ac22db1a777f980075d9e12ce521d2 | refs/heads/master | 2020-07-27T08:12:45.887814 | 2019-09-16T11:48:20 | 2019-09-16T11:48:20 | 209,021,915 | 1 | 0 | null | 2019-09-17T10:10:46 | 2019-09-17T10:10:46 | null | UTF-8 | Python | false | false | 1,422 | py | """
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
Example:
Input: S = "ADOBECODEBANC", T = "ABC"
Output: "BANC"
Note:
If there is no such window in S that covers all characters in T, return the empty string "".
If there is such window, yo... | [
"33798487+YangXiaoo@users.noreply.github.com"
] | 33798487+YangXiaoo@users.noreply.github.com |
bb80ed73e3d7d90ea18dfe174b196ba572578e48 | bf2d87cc14f983a6c563ebe1bd49c48a7474ddff | /2018年力扣高频算法面试题汇总/完全平方数 my_dp.py | ec40fb66f459e16640f69cbea7ef8735b0aac1de | [] | no_license | iamkissg/leetcode | 6bd1c87c67ffc6f5d231cac3224c928e22f62af3 | 99a3abf1774933af73a8405f9b59e5e64906bca4 | refs/heads/master | 2020-05-05T11:21:05.900296 | 2019-10-27T10:51:51 | 2019-10-27T10:51:51 | 179,986,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | from math import sqrt, floor
class Solution:
# 递归不可行, 因为包含一个 1, 在事先不知道四平方数定理的情况下, 最常的路径会导致栈被撑爆.
# def numSquares(self, n: int) -> int:
# if n in self.memo:
# return self.memo[n]
# result = min([self.numSquares(n-i**2) for i in range(1, floor(sqrt(n))+1)])+1
# self.memo[n] ... | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
8d49ac34a3e825f622adeb42a001aa171bd8c13f | b9fd9ed02312be96e05ef23243c4dfac1392be08 | /tensorflow/contrib/py2tf/utils/multiple_dispatch_test.py | 8d89b6898a366fe90ee1d43a55d0a7f10690224b | [
"Apache-2.0"
] | permissive | RLeili/tensorflow | 9e5650b5d02771da94a345ceb97b4f3293638e1e | 42ee949d022d8665cf2e908e800f1ef1594c6abf | refs/heads/master | 2021-04-09T11:51:32.393739 | 2019-10-16T16:44:23 | 2019-10-16T16:44:23 | 125,318,700 | 0 | 0 | Apache-2.0 | 2018-03-15T05:50:05 | 2018-03-15T05:50:04 | null | UTF-8 | Python | false | false | 3,748 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
8bff32a3731de4f870e8a5a3d26bb063abc9e9ad | 453956e3a66b417a0c6f999951c44e474a81af7e | /19.05.2021/exc0/tests.py | 968d0baef2c3e2d47c85b11f324d27e2ce8fe288 | [] | no_license | conradylx/Python_Course | aa7db9671a30034fe8cf65d22304e76ef2b4c4ab | b8f813c077a61bd3321638f90633529fbda756f0 | refs/heads/main | 2023-06-02T07:24:57.073365 | 2021-06-13T17:41:59 | 2021-06-13T17:41:59 | 337,829,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import unittest
from exc0 import triangle, trapezoid
class FieldsTestCase(unittest.TestCase):
def setUp(self):
self.a = 2
self.b = 3
self.h = 5
def test_triangle_with_correct_result(self):
result = triangle(self.a, self.h)
self.assertEqual(result, 5)
def test_tri... | [
"50596942+conradylx@users.noreply.github.com"
] | 50596942+conradylx@users.noreply.github.com |
43b5830be6db5503e0c7a5b34a5a8d7940745656 | 22a5d684341cee8f1095c3fe193f01f40f8121db | /2021/Qualification/E. Cheating Detection/2021-q-e.py | 7b93ef36bb2a94a0202dad9af0142a53f0e34eaf | [] | no_license | andy1li/codejam | 161b1db6faab372a4c2c4ce5956942387c650bed | 3aa6ab1673064b8c80b5f56422bd496b372b30f3 | refs/heads/master | 2022-06-28T02:42:53.980149 | 2022-06-27T20:15:11 | 2022-06-27T20:15:11 | 53,395,936 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # 2021 Qualification Round - E. Cheating Detection
# https://codingcompetitions.withgoogle.com/codejam/round/000000000043580a/00000000006d12d7
import numpy as np
#------------------------------------------------------------------------------#
def solve(data):
difficulty = np.mean(data, axis=0)
correct_sprea... | [
"li.chenxing@gmail.com"
] | li.chenxing@gmail.com |
68d8523fe078e7be65b1c937304f635861598508 | 3740de0d6e43ea140fc09ab314e4c492603ba185 | /scripts/sources/S_EvaluationCornishFisherLogN.py | ab21f423595458d1481180db8baab78c58386dad | [
"MIT"
] | permissive | s0ap/arpmRes | 29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | refs/heads/master | 2022-02-16T05:01:22.118959 | 2019-08-20T16:45:02 | 2019-08-20T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # S_Ev... | [
"dario.popadic@yahoo.com"
] | dario.popadic@yahoo.com |
d8e9124430e8d00df512614fb61d1275470e6dff | b8fe1fbe36bff3f05cceecbe9811699ba1fb6765 | /python_processThreading/asynico_oo/coroutines_asyncio.py | 4b9d73a2e3374a9d178965c6d8ce5adda1366e3a | [] | no_license | xiaotiankeyi/PythonBase | c2edfeac9fe8d116a68725a784bcb183b1308af9 | 8f1377eb03135e8ee9c047f6e7762a0d69601ca1 | refs/heads/master | 2023-03-16T19:43:45.589440 | 2023-03-13T06:05:53 | 2023-03-13T06:05:53 | 219,412,971 | 0 | 0 | null | 2022-02-27T18:57:30 | 2019-11-04T03:51:29 | JavaScript | UTF-8 | Python | false | false | 727 | py | # 概念:asyncio是3.4以后的协程模块,是python实现并发重要的包,使用事件循环驱动实现并发,实现异步io
import asyncio
async def aunt():
for i in range(10):
print(f'{i}婶婶说,python是世界上最好的语言')
await asyncio.sleep(1) # 释放cpu避免阻塞
async def uncle():
for i in range(10):
print(f'{i}叔叔说,python是世界上最好的语言')
await asyncio.sleep(... | [
"laizhitian163@163.com"
] | laizhitian163@163.com |
29858121c108ccddea63d18579cac7770cfd723a | 31b3ac7cc2f0cf43a4979e53d43002a9c5fb2038 | /find the duplicate number.py | 9c5c5e678c6f0e93eadb36086de26bd63e1a9662 | [] | no_license | shreyansh-tyagi/leetcode-problem | ed31ada9608a1526efce6178b4fe3ee18da98902 | f8679a7b639f874a52cf9081b84e7c7abff1d100 | refs/heads/master | 2023-08-26T13:50:27.769753 | 2021-10-29T17:39:41 | 2021-10-29T17:39:41 | 378,711,844 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | '''
Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.
There is only one repeated number in nums, return this repeated number.
You must solve the problem without modifying the array nums and uses only constant extra space.
Example 1:
Input: nums = [1,3,... | [
"sunnytyagi886@gmail.com"
] | sunnytyagi886@gmail.com |
9f4cfac14ac62d7112c411ced01e0372d6b107e1 | 37594c48dfb4c80b3c07a9dfb5a2eac8aa4b69f3 | /guitool/__PYQT__/QtCore.py | cde2345e15eae523efd9e94f5b138c454072c907 | [
"Apache-2.0"
] | permissive | SU-ECE-18-7/guitool | 45e0246feedeebb82950f166305f23dd308f5937 | 4d7e09e3318de92456912e84436d6ce8e1cf8e47 | refs/heads/master | 2021-06-01T09:51:56.452050 | 2016-06-24T02:28:20 | 2016-06-24T02:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from __future__ import absolute_import, division, print_function
# flake8:noqa
# Wrapper around PyQt4/5
from PyQt4.QtCore import *
| [
"crallj@rpi.edu"
] | crallj@rpi.edu |
8a42862ec234fb7a7fa0b4d5e8ff400e32f4f800 | dd87194dee537c2291cf0c0de809e2b1bf81b5b2 | /k8sclient/models/v1alpha1_certificate_signing_request_spec.py | a896c60a5b40a38a2b092ea2a8d5c370cc10488a | [
"Apache-2.0"
] | permissive | Arvinhub/client-python | 3ea52640ab02e4bf5677d0fd54fdb4503ecb7768 | d67df30f635231d68dc4c20b9b7e234c616c1e6a | refs/heads/master | 2023-08-31T03:25:57.823810 | 2016-11-02T22:44:36 | 2016-11-02T22:44:36 | 73,865,578 | 1 | 0 | Apache-2.0 | 2018-10-10T12:16:45 | 2016-11-15T23:47:17 | Python | UTF-8 | Python | false | false | 5,867 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: unversioned
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Licens... | [
"mehdy@google.com"
] | mehdy@google.com |
2eae9fbaf32e79fe20d43bf241575f4ac6f685d9 | 5e67301779cc6f685018e4db6f2605a306d53be8 | /prognoz/migrations/0026_settlements_description.py | c11b2b4a7dd88b430f10512ad51aa6681f4d1b23 | [] | no_license | avpakh/recon | 905e93374ec73501b5002bf0ef823b00715d7da8 | 4a99c0c2d2644f5847ebdf9bdfd03217cd0269f3 | refs/heads/master | 2021-01-09T06:11:37.389010 | 2017-02-04T19:32:34 | 2017-02-04T19:32:34 | 80,936,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('prognoz', '0025_auto_20151110_0727'),
]
operations = [
migrations.AddField(
model_name='settlements',
... | [
"aliaksandr.pakhomau@gmail.com"
] | aliaksandr.pakhomau@gmail.com |
9fffd6c798905d34cf98c2c3c44ace889d640fe0 | 88fcb04d4bafb1745ae4b86807b96198d06d6709 | /bigml/constants.py | d68049527e070f3acc840db04fafe34c57d8c299 | [
"Apache-2.0"
] | permissive | gnib/python | dad9501460a866a9cfa23dfe581d89bd03ca1a5d | 185fd030706992766f54cc7ec5e914df57f5a29f | refs/heads/master | 2021-01-03T13:09:10.302254 | 2017-07-28T22:56:57 | 2017-07-28T22:56:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,711 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2015-2017 BigML
#
# 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 requi... | [
"merce@bigml.com"
] | merce@bigml.com |
d9fc547ef77070538f454815fa5e74d3c62c1312 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03611/s329630070.py | 2da7de28a0f7899a21bdeddfa3f4520533bf8ad0 | [] | 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 | 462 | py | import sys
from collections import Counter
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007
def main():
N, *A = map(int, read().split())
counter = Counter()
for a in A:
counter[a - 1] += 1
co... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e9165487a666303d57c21ab719a94938efc5b12d | 63d37b990c194a68fbb8d2d288de5faae374ed26 | /main/migrations/0010_photo_isavatar.py | c396985b39a95cdfa776c6e3981996e77b117cce | [] | no_license | Dostoyewski/MH_Back | bf16cd83ff5103e65a5f3fe7d866a2b6dbe66624 | 6de68e1a14643a23e268f1c313224cf7bea89c75 | refs/heads/master | 2022-03-30T18:04:51.340938 | 2020-04-05T08:06:04 | 2020-04-05T08:06:04 | 251,396,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 2.2.1 on 2020-04-04 19:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0009_hero_stage'),
]
operations = [
migrations.AddField(
model_name='photo',
name='isAvatar',
fi... | [
"dostoyewski@yandex.ru"
] | dostoyewski@yandex.ru |
350249cd29157e132cd1e6549a7530a9fc74ae0f | da386754e12ed3e251d5fb9091d9416b9f97edc7 | /examples/large_deformation/active_fibres.py | c4e19db861b1c9544510221fd8f0f2e5268df656 | [
"BSD-3-Clause"
] | permissive | nasseralkmim/sfepy | 5b5642f084b62632c1ca48035e510f27728e25ab | 647f1754bcd4fd103cd19a03ed36cb10ebc8fd15 | refs/heads/master | 2020-04-06T04:57:21.589694 | 2016-08-03T12:38:31 | 2016-08-03T12:38:31 | 65,736,316 | 2 | 1 | null | 2016-08-15T13:58:01 | 2016-08-15T13:58:01 | null | UTF-8 | Python | false | false | 6,335 | py | # -*- coding: utf-8 -*-
r"""
Nearly incompressible hyperelastic material model with active fibres.
Large deformation is described using the total Lagrangian formulation.
Models of this kind can be used in biomechanics to model biological
tissues, e.g. muscles.
Find :math:`\ul{u}` such that:
.. math::
\intl{\Omeg... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
fba58c1d1d2a511970d286307437a86f18d54932 | 8a3f10cd8f178e8452b0f1ecf747bec40ee87b31 | /orders.py | 2d627de6e0a1a078793a69db21cc83a1d14f48eb | [] | no_license | Panda0229/flasky | 70887be89b182f458ed6f1434e2a93afac048899 | d6adb2dfe998a6836bc24443d23d3cb4ed8b8e58 | refs/heads/master | 2020-12-02T18:50:41.230430 | 2019-12-31T13:04:24 | 2019-12-31T13:04:24 | 231,085,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | from flask import Blueprint
# 创建一个蓝图的对象,蓝图就是一个小模块的抽象的概念,等号左边是蓝图对,等号右边是为这个对象所起的名字,可以不同
app_orders = Blueprint("app_orders", __name__)
@app_orders.route("/get_orders")
def get_orders():
return "get orders page"
@app_orders.route("/post_orders")
def post_orders():
return "post orders page"
| [
"zhanghaining0229@163.com"
] | zhanghaining0229@163.com |
b73253fd7fdc82aacabc674fd9ab679a7a0f6a51 | 1daf07aa6e1a602d69ab2a786dca43d093803a04 | /module/module_using_sys.py | ecbb9b3638943e95bf22a6a2a0bf07396123cacf | [] | no_license | luteresa/python | 89491c90788ccfcd49f554cd8e8db8f9d0ab715f | 652dc34990f179094df64ef760fc03cc980556cd | refs/heads/master | 2020-12-02T16:15:20.813439 | 2017-07-26T08:52:07 | 2017-07-26T08:52:07 | 96,525,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import sys
import os
print('the command line arguments are:')
for i in sys.argv:
print(i)
print('\n\nThe PYTHONPATH is', sys.path,'\n')
print(os.getcwd())
for item in sys.path:
print(item)
from math import sqrt
print('Squre root of 16 is ',sqrt(16))
| [
"luteresa@163.com"
] | luteresa@163.com |
868cbe6be728a3cb624a86979fd0c364286f5f63 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayMerchantComplainReconciliationCloseModel.py | 0ef574bea5b34d603c969410707030ff70deb5cb | [
"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 | 1,508 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayMerchantComplainReconciliationCloseModel(object):
def __init__(self):
self._merchant_id = None
self._merchant_type = None
@property
def merchant_id(self):
r... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
168476b32a6333cbb5bb67e465d815cd3a211e1e | 76c8a2593316a74078e5ebe3c280d393b058ff67 | /vai/commands/BreakLineCommand.py | f5ae1c5829502cfe19b2fd6aa2d35ee9be32a0ea | [] | no_license | gavd89/vai | b7f746c3ba31397e8d85f477af9b9b71d01795fb | afa3a31b74ee81f9be8ab2c06cd8bdaebae1baad | refs/heads/master | 2021-01-16T22:04:05.131998 | 2014-10-31T22:35:37 | 2014-10-31T22:35:37 | 26,130,434 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | from .BufferCommand import BufferCommand
from .CommandResult import CommandResult
from .NewLineCommand import NewLineCommand
from .NewLineAfterCommand import NewLineAfterCommand
from ..models.TextDocument import LineMeta
class BreakLineCommand(BufferCommand):
def execute(self):
cursor = self._cursor
... | [
"stefano.borini@gmail.com"
] | stefano.borini@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.