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
13d09d61a00e187b6bcd752ab859949de7831c45
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03326/s351056533.py
44d21a6f0d909f720be3120b4c392a204bd75e0c
[]
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
556
py
n, m = map(int, input().split()) cakes = [[int(x) for x in input().split()] for _ in range(n)] ans = 0 for i in range(8): cakes_sub = [] key = [1, 1, 1] for j in range(3): if (i>>j)&1: key[j] = -1. for j in range(n): k = [0]*3 for p in range(3): k[p] = key[p]*cakes[j][p] l = sum(k)...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5e98389b25ddacc1ca4b282c4f5ec75e145272ed
14de6d507e471d582a7e7f5cba898f72f6ba186d
/python/Binary-Tree-Postorder-Traversal/recursion.py
5af0800edb54d3c46c894b34024e60bb35a66cbc
[ "MIT" ]
permissive
yutong-xie/Leetcode-Solution
a7d9c1f73a0fecd9de1d04dbd4c06393959dd95a
6578f288a757bf76213030b73ec3319a7baa2661
refs/heads/master
2023-03-30T01:59:58.554650
2021-03-27T21:09:46
2021-03-27T21:09:46
290,101,434
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Copyright 2020, Yutong Xie, UIUC. Using recursion to postorder traversal a binary tree. ''' # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = l...
[ "36655655+yutong-xie@users.noreply.github.com" ]
36655655+yutong-xie@users.noreply.github.com
34197d909a23442dfb3d0d76a30f648c6ff80407
7eb128f9b7899c33d4854009edbd38dd566cba72
/Python Tutorials/NewYorkTimes/test.py
35064c62a48f2c72a50e8b0dfcb6064190d58cce
[]
no_license
chengjun/Research
1149add090ec563f544c4b5a886c01b1392a25d4
c01e3d2eac2bca74671abb9cd63e1b06e5566fc8
refs/heads/master
2021-06-15T16:35:15.005107
2019-08-06T09:03:29
2019-08-06T09:03:29
11,498,113
4
6
null
2021-04-15T09:27:11
2013-07-18T08:36:12
Mathematica
UTF-8
Python
false
false
307
py
# !/usr/bin/env python # -*- coding: UTF-8 -*- # for i in range(1, 3): # j=i+2 # print j, ":)" # for ob in range(1, j): # g=str(ob) # print "-->", g for i in range(1,5): nums=str(i) print "------>", nums offsets=''.join(['offset=', nums]) print offsets
[ "wangchj04@gmail.com" ]
wangchj04@gmail.com
5950b97a39d0f970bafc446ae705b4c2c6883397
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_3_neat/16_0_3_ishank011_codejam3.py
699d5fb8e321f34f8ddd030958c10e79c86aad16
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
850
py
def convert(num, base): i=0 ans=0 while num>0: ans=ans+((base**i)*(num%10)) num/=10 i+=1 return ans #primes.txt contains all the primes upto 10^8 f=open('primes.txt', 'r').readlines() f1=open('c1.txt', 'w') f1.write('Case #1:\n') f=[int(a[:-1]) for a in f] g={} i=...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
c328130a55793f146aef6fd97fb549b81b724b93
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=22/params.py
25265c6a5d0edf35960c50c1cb52580d08d923ec
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
{'cpus': 4, 'duration': 30, 'final_util': '3.615690', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '0.8', 'res_nmb': '4', 'res_weight': '0.04', 'scheduler': 'GSN-EDF', 'trial': 22, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
4075cbea378ba8b401fad8799671dc4161717146
e23a4f57ce5474d468258e5e63b9e23fb6011188
/070_oop/001_classes/_exercises/_templates/Learning Python/038_009_Class instance attributes.py
9d0798cbc99a6f7a55ef0695b5c1747f784b2287
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
981
py
# # c_ tracer: # State via instance attributes # ___ - ____ func # On @ decorator # ____.calls _ 0 # Save func for later call # ____.func _ func # ___ -c ____ $ $$ # On call to original function # ____.calls += 1 # ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
3edc8c13d4100a2c75af7ad685af2f14311aa446
6febd920ced70cbb19695801a163c437e7be44d4
/leetcode_oj/is_palindrome.py
8ec85dc1a916a0955f5639b59256c7ce725e3970
[]
no_license
AngryBird3/gotta_code
b0ab47e846b424107dbd3b03e0c0f3afbd239c60
b9975fef5fa4843bf95d067bea6d064723484289
refs/heads/master
2021-01-20T16:47:35.098125
2018-03-24T21:31:01
2018-03-24T21:31:01
53,180,336
1
0
null
null
null
null
UTF-8
Python
false
false
963
py
''' Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to string, note the restriction of using extra space. You could also try reversing an integer. However, if...
[ "dhaaraa.darji@gmail.com" ]
dhaaraa.darji@gmail.com
2a4b62ebca78455fa0dd9669449b9286e52fedda
185cbe28ae1950866905ddb3b53a3ca325f8fc98
/Project1_EdmureBlog/EdmureBlog/web/forms.py
84fef6e7774ecd6a82d26704379c393a1ca80408
[]
no_license
phully/PythonHomeWork
2997cb2017621116d2959a183fcb50c4d4ea3289
4d497a6261de17cc2fc058cea50e127e885e5095
refs/heads/master
2020-03-21T04:51:51.700197
2018-06-06T02:35:40
2018-06-06T02:35:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,237
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # __author__ = "Breakering" # Date: 2017/9/10 from django.forms import Form from django.forms import fields from django.forms import widgets from repository import models from django.core.exceptions import ValidationError class LoginForm(Form): """登录验证Form""" use...
[ "1079614505@qq.com" ]
1079614505@qq.com
ed130e8d29922eb366a9e5962c8e4220e5cc2e05
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_synod.py
82428fdd2e37550c4ca97f9a252ce6982ceeca5f
[ "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
353
py
#calss header class _SYNOD(): def __init__(self,): self.name = "SYNOD" self.definitions = [u'a regular meeting of Church members for the discussion of religious matters'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], ob...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
c5eb5f6e49b1f9722ae3819ff7ca78c6abf5efe3
024214bff5cdd43874d30143ee90131a985c5ce3
/vycontrol/accounts/views.py
cc1951524c295bd8d0a8e4cd05550950b2e84a21
[ "MIT" ]
permissive
KennethEhmsen/vycontrol
c20e2d793bd03005ddfd314abc62b4ca3fd292e3
5dbebfa1b299ad20b60131d95291ee91c3b9df5c
refs/heads/master
2023-08-10T11:43:36.001119
2020-05-23T05:03:47
2020-05-23T05:03:47
267,380,513
1
0
MIT
2021-09-22T19:40:01
2020-05-27T17:13:06
null
UTF-8
Python
false
false
1,191
py
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from django.shortcuts import redirect from django.contrib.auth import authenticate from django.views.generic.base import TemplateView from django.conf import settings from django.urls import reverse from django...
[ "roberto.berto@gmail.com" ]
roberto.berto@gmail.com
534b050ab181eff88ae41d49bccbe22e6c62c932
62cec11c95d90be3bf84e29d76ee3e3785d9f59e
/315_Count_of_Smaller_Number_After_self/countSmaller_v4.py
5203fae89f4ba51a950ebc029cd22c7f038bc965
[]
no_license
Jody-Lu/Array
faec40f1ec18968dd3739c9f6cb6039aed86e7e5
eaee6a529705b5973cb502d2fcb607ab0bedec08
refs/heads/master
2020-04-12T09:06:43.860700
2016-11-19T21:33:47
2016-11-19T21:33:47
63,844,260
0
0
null
null
null
null
UTF-8
Python
false
false
1,389
py
class Solution(object): def countSmaller(self, nums): self.greater = [0] * len(nums) self._mergeSort(nums, 0, len(nums) - 1) def _mergeSort(self, nums, first, last): mid = (first + last) / 2 if first < last: self._mergeSort(nums, first, mid) self._mer...
[ "b00901192@ntu.edu.tw" ]
b00901192@ntu.edu.tw
e690a598b27d889b14e7275b81bcbe8b10a80155
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_205/ch78_2020_04_08_19_26_37_303851.py
4fe6beb08244a3983918e7e0641b9453c9b3586f
[]
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
759
py
from math import sqrt def calcula_tempo(dicionario): resultado = {} for nomes in dicionario.keys(): for aceleracao in dicionario.values(): resultado[nomes]=(sqrt(200/dicionario[nomes])) return resultado a = 0 dic={} while a!= 1: nome = input("Fala ae: ") if nome == "sair": ...
[ "you@example.com" ]
you@example.com
66cf4edf85b719ce787f9cae87f36785d875f11e
a4c147135ad0702b5d1dd3b4d86849fbeef6eaf2
/misc/migrations/0004_task.py
1e3d11123630f25f937eaf2cf7d1c51e04757338
[]
no_license
themotaguy/Codeshastra6
278ffc509238e7999ae2e52573f22e539ddf325c
23a3ebfefb4bfeae03803152c38e42947c1d0cef
refs/heads/master
2021-03-01T13:16:57.426604
2020-03-08T07:36:58
2020-03-08T07:36:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
886
py
# Generated by Django 3.0.3 on 2020-03-08 04:49 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('misc', '0003_auto_202003...
[ "vartak.harsh@gmail.com" ]
vartak.harsh@gmail.com
21a37fd824e67fe488178b0e4485b5f5e8e7cfa8
2ac01e5646032561a45f1c3283297dad58d4f5f0
/broker/eblocbroker_scripts/get_block_number.py
2b1a916177e524609faf3ed88ac4980745b95571
[ "MIT" ]
permissive
avatar-lavventura/ebloc-broker
4f31c3135b7a3cd44a00f5c8a47fa38eeffe7fda
3501ac4bb958f73c4e5612f647f33af11db0360a
refs/heads/master
2023-07-22T11:48:03.159093
2023-06-18T17:53:27
2023-06-18T17:53:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
#!/usr/bin/env python3 import sys from broker import cfg from broker._utils.tools import log from broker.config import env, setup_logger from broker.utils import print_tb logging = setup_logger() cfg.NETWORK_ID = "bloxberg" def main(): Ebb = cfg.Ebb is_write_to_file = False if len(sys.argv) == 2: ...
[ "alper.alimoglu@gmail.com" ]
alper.alimoglu@gmail.com
f7b6795369f1bf760c71b5b7045283e19374cf04
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_55/269.py
d1347f5af438fcfb8c090ba70a0d7abd7cc3ced6
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
from sys import stdin from collections import deque T = int(stdin.readline()) for i in xrange(0, T): line = stdin.readline() nums = line.split() R = int(nums[0]) k = int(nums[1]) N = int(nums[2]) line = stdin.readline() queue = line.split() queue = [int(x) for x in queue] que...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
bdc10f2d27a0ac46e4a6f0ca9e990a2d4271e61a
669d3a3677e02c85c4a261c898421742f88a3c21
/ProjectEuler/p46/goldbach.py
0756e372928c6ff7b0c5a6340e80c5ba5b6b1741
[]
no_license
dgquintas/my-code-samples
d0cea76353f734a6ccd3263aa33cd6a1897b32a1
febe30a92bdaf0f3a8985b887c60359290627218
refs/heads/master
2021-01-17T08:06:37.748184
2016-06-27T06:25:13
2016-06-27T06:25:13
3,951,623
1
2
null
null
null
null
UTF-8
Python
false
false
664
py
from Crypto.Util import number from math import ceil, sqrt import itertools def getPrimes(start = 2L): if start <= 2: yield 2L start = 3L n = long(start) while True: if number.isPrime(n): yield n n += 2 def upperLimitOnS(n,p): return int(ceil( sqrt( (n-p)/2 ) )) if __name__ == "__main__...
[ "dgquintas@gmail.com" ]
dgquintas@gmail.com
226aa394d15646fabddae0cd9575896402f1eab3
355a09eb2f05b17e9acdac68922f297291a34d64
/gear/gear/auth_utils.py
6ea94ad208170159451f71f21314f00e29d52d62
[ "MIT" ]
permissive
3vivekb/hail
0d7ff84475b60322da6597e08132c61b1f72315c
82c9e0f3ec2154335f91f2219b84c0fb5dbac526
refs/heads/master
2020-09-17T08:48:02.250139
2019-11-25T23:07:45
2019-11-25T23:07:45
224,058,163
0
0
MIT
2019-11-25T23:04:45
2019-11-25T23:04:45
null
UTF-8
Python
false
false
1,211
py
import secrets import base64 async def insert_user(dbpool, spec): async with dbpool.acquire() as conn: async with conn.cursor() as cursor: await cursor.execute( ''' INSERT INTO user_data (username, user_id, gsa_email, bucket_name, gsa_key_secret_name, jwt_secret_name, servi...
[ "daniel.zidan.king@gmail.com" ]
daniel.zidan.king@gmail.com
078d95b4ea7c11116887ac219de632947a984eb2
e75a40843a8738b84bd529a549c45776d09e70d9
/samples/openapi3/client/petstore/python/petstore_api/models/enum_class.py
f3037885ed676e402d7d84a152e565f4298b9788
[ "Apache-2.0" ]
permissive
OpenAPITools/openapi-generator
3478dbf8e8319977269e2e84e0bf9960233146e3
8c2de11ac2f268836ac9bf0906b8bb6b4013c92d
refs/heads/master
2023-09-02T11:26:28.189499
2023-09-02T02:21:04
2023-09-02T02:21:04
133,134,007
17,729
6,577
Apache-2.0
2023-09-14T19:45:32
2018-05-12T09:57:56
Java
UTF-8
Python
false
false
839
py
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) ...
[ "noreply@github.com" ]
OpenAPITools.noreply@github.com
d1864bf1bd230344f76960fbe68ca85d18e4006d
63ba933a294865f65409635f62e0f1d59f725f37
/src/arrays/groupAnagrams.py
5580dd148e017e3a540db64151602cdf0a25b5a1
[ "CC0-1.0" ]
permissive
way2arun/datastructures_algorithms
fc4302bdbb923ef8912a4acf75a286f2b695de2a
4ea4c1579c28308455be4dfa02bd45ebd88b2d0a
refs/heads/master
2021-12-07T04:34:35.732026
2021-09-30T12:11:32
2021-09-30T12:11:32
203,658,808
1
0
null
2020-08-08T15:55:09
2019-08-21T20:23:46
Python
UTF-8
Python
false
false
1,033
py
""" LeetCode Challenge Given an array of strings, group anagrams together. Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate","eat","tea"], ["nat","tan"], ["bat"] ] """ from typing import List class Solution: def groupAnagrams(self, strs: List[str]) -> List[List[str]]: # First So...
[ "way2aru@yahoo.com" ]
way2aru@yahoo.com
1843f9f36ab551774be864fba55d0f52b6e7d2cd
76f2a4ea3896a74b155ff970b3ddd538f268ebd4
/08_string/string_05.py
ad36eb1eadabe4a3f824e83b3c0ca3dc4de44fb8
[]
no_license
jnjnslab/python-sample
fb91c34aa274ae6371c9548637e9fe2994da63ff
ce71ceff2854e59c020c646831360a04f6eba0c0
refs/heads/main
2023-02-03T01:36:59.926884
2020-12-23T10:18:13
2020-12-23T10:18:13
309,023,319
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
#指定した文字列で始まるか判定する print('Hello world!'.startswith('Hello')) print('abc123'.startswith('abcdef')) #指定した文字列で終了するか判定する print('Hello world!'.endswith('world!')) print('abc123'.endswith('12'))
[ "jnjnslab@gmail.com" ]
jnjnslab@gmail.com
20f288712c9fe7310227508ea5d90ade42638a46
233087c1eb99e1d13f80de6f43d2cc3264aa9ca6
/tests/test_utils/test_validation.py
b44269d276234fe97c52814ce05085b1f01022fe
[ "MIT" ]
permissive
DXist/polyaxon-cli
e33cd3b3633df5b21b9eb3cc48d7a6affed8e4ec
0b01512548f9faea77fb60cb7c6bd327e0638b13
refs/heads/master
2020-07-08T07:02:43.248549
2019-08-15T16:00:05
2019-08-15T16:04:31
203,601,306
0
0
MIT
2019-08-21T14:27:56
2019-08-21T14:27:56
null
UTF-8
Python
false
false
556
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from unittest import TestCase from polyaxon_cli.utils.validation import validate_tags class TestValidation(TestCase): def test_validate_tags(self): assert ['foo', 'bar'] == validate_tags('foo,bar') assert ['...
[ "mouradmourafiq@gmail.com" ]
mouradmourafiq@gmail.com
13ee60d906d613d0e64b8f1d273bf42aa9c7fd41
44abbb4df8626dae7a140ef36e2e621abe3849e7
/support/plot_hmf.py
bf16984383aef00adece67996f0acdcdb2f544b0
[ "MIT" ]
permissive
boada/HETDEXCluster
7697bfbeff4fc2bbfecde03bb21409fa1da0eccf
43a8cff54619f85e837afd2f78aa9be8ec6ac8c6
refs/heads/master
2020-04-05T13:10:41.380689
2020-01-10T17:54:53
2020-01-10T17:54:53
32,884,462
2
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
import h5py as hdf import pylab as pyl from scipy.integrate import quad from astLib import astCalc data_dir = '../data/buzzard_v1.0/allbands/halos/' # load all of the data for i in range(20): print(i) with hdf.File(data_dir + 'halo' + str(i).zfill(2) + '.hdf5', 'r') as f: dset = f[list(f.keys())[0]] ...
[ "stevenboada@gmail.com" ]
stevenboada@gmail.com
08961d176407a920582aeb6fe69dfc8627c44527
41586d36dd07c06860b9808c760e2b0212ed846b
/system/devel/util-macros/actions.py
18cc56ec18c4c24154a7625e3f0582787059874a
[]
no_license
SulinOS/SulinRepository
4d5551861f57bc1f4bec6879dfe28ce68c7c125d
9686811a1e06080f63199233561a922fe1f78d67
refs/heads/master
2021-06-15T21:34:25.039979
2021-06-05T13:43:34
2021-06-05T13:43:34
207,672,864
6
3
null
2019-12-06T08:11:22
2019-09-10T22:16:17
Python
UTF-8
Python
false
false
421
py
# -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from inary.actionsapi import autotools from inary.actionsapi import inarytools def setup(): autotools.autoreconf("-vif") autotools.configure() def build(): autotools.ma...
[ "zaryob.dev@gmail.com" ]
zaryob.dev@gmail.com
42026cb3e623300f76f8c47a47a828c1e6164e06
d491b5e3f258c7b0bd503ee977ac74f4fb8f9812
/amsbw.py
04a5f02e4b012fb54bdcefa70bbb2b2b89907098
[]
no_license
AishwaryaKaminiRajendran/Aishu
89280c987fdcb55537acd9311894950912f713f0
c27c82e30a82ffa20abbad9a4333388b3d14587e
refs/heads/master
2020-04-15T05:10:43.450336
2019-05-20T09:47:44
2019-05-20T09:47:44
164,411,791
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
a,b=int(input()) x=' ' for n in range(a+1,b): s=0 t=n while t>0: d=t%10 s=s+d*d*d t=t//10 if s==n: x=x+str(n)+' ' print(x.strip())
[ "noreply@github.com" ]
AishwaryaKaminiRajendran.noreply@github.com
319d5352447498c180b13b6e5691c2c30581fe8d
c6d906374aa7afb53766b5aac86a1a7897dc2bd4
/Third/main.py
32ddd9aa2bf78390e5d4e82e63d7019951bbeda7
[]
no_license
georgeiniesta/Python-Test-3
b8369968ccf33c218abeb63481546bd2e94ece7e
ce67b3e0be7d634c4bb989e7fe6194e363dc5876
refs/heads/main
2023-08-04T10:58:41.147101
2021-09-13T19:42:39
2021-09-13T19:42:39
406,106,841
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
print(" * \n"*2," * *\n"*2," * *\n"*2," * *\n"*2,"*** ***\n"*2," * *\n"*2," * *\n"*2," *****\n"*2, sep="\n")
[ "noreply@github.com" ]
georgeiniesta.noreply@github.com
bdca861910d62876bc5ea8eb15d9c6862de3cda4
69bbfe1929e68bf40ce8e23782a58b0181f2c003
/03-进阶篇/24/08.py
bddc9af8aa4807214c78d8d8bab9276461721b2c
[]
no_license
Jeffery12138/python_core_combat
6d8ad386e55345a1677a1ac99fff7855663882af
9592b55c17ffa49ebf9ab3182fafb81486694077
refs/heads/master
2023-01-31T08:50:45.344881
2020-12-06T10:15:16
2020-12-06T10:15:16
316,695,454
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
#! /usr/bin/env python3 # coding=utf-8 import psutil import os import gc def show_memory_info(hint): pid = os.getpid() p = psutil.Process(pid) info = p.memory_full_info() memory = info.uss / 1024. / 1024 print('{} memory used: {} MB'.format(hint, memory)) def func(): show_memory_info('init...
[ "1025958194@qq.com" ]
1025958194@qq.com
d73fedb46d02aae63a029a6224469c5036e16eea
856323fc904cd36b947114666186a2bcd0c1e10e
/tests/randMove/test_randMoveSIRSD.py
140a4ed4453dd3bb20745e4764d5463ef79facf9
[ "MIT" ]
permissive
mjacob1002/Eir
fd6ee0fa7c2e0af93a34dca66bcd5b07a5c31f05
ab9cb4e353796ba3ab79b1673adc251d434717cf
refs/heads/master
2023-04-15T13:06:14.897503
2021-07-04T20:06:15
2021-07-04T20:06:15
286,567,858
39
9
MIT
2021-07-04T20:06:16
2020-08-10T20:03:02
Python
UTF-8
Python
false
false
4,301
py
import numpy as np import pandas as pd import unittest from Eir.DTMC.spatialModel.randomMovement.randMoveSIRSD import RandMoveSIRSD import Eir.exceptions as e np.random.seed(69253) class Test_RandMoveSIRSD(unittest.TestCase): def __init__(self): self.test = RandMoveSIRSD(999, 1, 0, .25, .15, .05, 25, 3,...
[ "mjacob1002@gmail.com" ]
mjacob1002@gmail.com
f9fa28114a5229622e8aff2dbaadaf20d261baac
46862d1c8bdbb0db55bf158c70ee7a55d0dcfbad
/sfm_pc/management/commands/make_geoname_lookup.py
e3659322ae4c7feee8bca58233eedd4d344f9c48
[]
no_license
npmcdn-to-unpkg-bot/sfm-cms
8a7ff2c604b1892c32284797b138e3b1e12ceaf3
26485794ea76e8320c9036dbce101cdc268e6bf4
refs/heads/master
2021-01-16T21:03:10.634417
2016-08-26T20:58:15
2016-08-26T20:58:15
68,072,618
0
0
null
2016-09-13T03:57:25
2016-09-13T03:57:24
null
UTF-8
Python
false
false
1,905
py
from django.core.management.base import BaseCommand, CommandError from django.db import transaction, connection from django.db.utils import ProgrammingError class Command(BaseCommand): help = 'Create lookup table for geonames' def add_arguments(self, parser): parser.add_argument( '--re...
[ "eric.vanzanten@gmail.com" ]
eric.vanzanten@gmail.com
115886ea09b064ae00e528c16ce436ad7eab65ff
1abfa4edcc63d4603b19f6c9ba6678071f21fade
/tests/test_base.py
07285f56a5573b9677f4e4389ac2d4d41ff82156
[ "Apache-2.0" ]
permissive
swipswaps/pottery
f49e7482b946b05552424f0f059633a51bf0bdc0
81135a5e44810877bac7a69c4494500f58fb1dda
refs/heads/master
2023-01-23T00:43:02.967623
2020-12-07T09:10:22
2020-12-07T09:33:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,342
py
# --------------------------------------------------------------------------- # # test_base.py # # # # Copyright © 2015-2020, Rajiv Bakulesh Shah, original author. # ...
[ "noreply@github.com" ]
swipswaps.noreply@github.com
f0b5352cc1179bfee597f219a9272ab8a9090c7b
11398875e4f5cbcadc1747e73049dc99bca26908
/05-browser/browser-01.py
2245e0e46c6108fb8fed836ec7cfff54550c2694
[]
no_license
asvkarthick/LearnPython
37910faab5c4a18d6e08eb304ca1da9649e5b18f
258e8c567ca3c8802d5e56f20b34317eba4c75f3
refs/heads/master
2021-06-23T06:30:46.681369
2021-06-11T19:35:40
2021-06-11T19:35:40
149,719,196
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
#!/usr/bin/python # Author: Karthick Kumaran <asvkarthick@gmail.com> import webbrowser webbrowser.open("https://www.youtube.com/watch?v=xcImLdBI2Do")
[ "asvkarthick@gmail.com" ]
asvkarthick@gmail.com
e9d560065c2c20a00a46f331906c484254202e71
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_BoxCox/trend_LinearTrend/cycle_30/ar_12/test_artificial_1024_BoxCox_LinearTrend_30_12_100.py
326aeea9df2ef4f46da727710c91b3adb8d7a792
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
267
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 30, transform = "BoxCox", sigma = 0.0, exog_count = 100, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
dbd2b194be96d23ce62f3a12fc15e1ff298f6de2
973631ab2b2d022d0d1d3ce900cdfb41b17c3830
/doc/examples/scripts/structure/diameter.py
db1bb61fe344b349b4723d65d355258aee76530a
[ "BSD-3-Clause", "MIT" ]
permissive
simoneperazzoli/biotite
715e93bc642ca897a8a8e6b8b8230ebab832e954
50cdba9ce611642defa70ca710cdf35a456bd3ce
refs/heads/master
2022-04-22T01:36:25.035875
2020-04-24T07:17:51
2020-04-24T07:17:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
""" Calculation of protein diameter =============================== This script calculates the diameter of a protein defined as the maximum pairwise atom distance. """ # Code source: Patrick Kunzmann # License: BSD 3 clause import numpy as np import biotite import biotite.structure as struc import biotite.structure....
[ "patrick.kunzm@gmail.com" ]
patrick.kunzm@gmail.com
19d4d6c58efed624a2fe65b21f8ee45759d29c30
0cb08e9532758cbec1afe20eb41028d5f276e82d
/gs37(nested serializer )/api/views.py
451ddeceba0a981a00cd4b34b64115bc4ee27c17
[]
no_license
P-iyushRaj/Django-Rest-Framework
1eca586ee6ded4720e8f1845c9c9cac06d637492
9d7e754156739118f725ab431d25bdde63ebd91d
refs/heads/master
2023-03-15T05:27:37.352592
2021-03-08T09:27:46
2021-03-08T09:27:46
345,599,375
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
from django.shortcuts import render # Create your views here. from .serializer import SingerSerializer, SongSerializer from .models import Singer, Song from rest_framework import viewsets class SingerViewSet(viewsets.ModelViewSet): queryset= Singer.objects.all() serializer_class = SingerSerializer class Song...
[ "piyush@gmail.com" ]
piyush@gmail.com
c46477ad61e5f7faa901b0af6c5b0e2f3d1ab832
a11cd2f9385ffa06bc70743ace3c5bc81920f02e
/old/old-pytils-common.py
7cb1df4fcb5f0ddae7d947cb9f28ba497dc558c0
[]
no_license
hevi9/etc-python
f58cb1b7c42f7693eac0b797abc522910f824986
edf02381972788bf4f22ca0d4e0449b522a6038d
refs/heads/master
2020-12-19T20:49:16.384025
2018-03-29T16:14:41
2018-03-29T16:14:41
17,981,430
4
1
null
null
null
null
UTF-8
Python
false
false
7,762
py
#!/usr/bin/env python ## $Id: common.py,v 1.12 2004-02-10 21:53:15 hevi Exp $ """ Common utility objects. Usage: from pytils.common import * = import_all_safe Making nothing -------------- Inheritance should be in object systems:: Void None Object Null Class """ __version__ = "$Revisio...
[ "hevi@lut.fi" ]
hevi@lut.fi
f12ea077584d7daa30de09c2a87bd0524cb6d79b
cce1e235c2c8e58d83af6dbadeb471ca62b710a1
/hackerrank/algorithms/warmup/simple_array_sum.py
4f2cfbf9e3e9680ee4482242753d93b8f656bba9
[]
no_license
SebastianThomas1/coding_challenges
6b51ce046b458c44db809687b6809d16d066566f
bd3bc6be7a975b6255e4b2198c953d56bd74e75a
refs/heads/master
2023-03-03T00:18:00.147369
2021-02-08T21:52:02
2021-02-08T21:52:02
336,688,955
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
# Sebastian Thomas (coding at sebastianthomas dot de) # https://www.hackerrank.com/challenges/simple-array-sum # # Simple Array Sum def simple_array_sum(ar): return sum(ar) if __name__ == '__main__': print(simple_array_sum([1, 2, 3])) # 6 print(simple_array_sum([1, 2, 3, 4, 10, 11])) # 31
[ "sigma.online@gmx.de" ]
sigma.online@gmx.de
34ac6a514c1abdecaf93bb59d59b4e2bda53e72d
71ef444b7ee4236c021fe4033a386b85e3ac6461
/web/tests/factories/sensor.py
b7c05b80cef0ca8fe1193267c6ef0c0af97f0992
[]
no_license
seanblumenfeld/ruuvihub
d643fc7f026f27ed9d97438f44dea5c5e8dd9bc5
b83b9ecf956085e4c478c7050ab4c6ea6f409f1f
refs/heads/main
2023-03-15T21:50:06.527899
2022-08-11T19:13:49
2022-08-11T19:13:49
239,980,013
2
0
null
2023-03-03T23:12:42
2020-02-12T10:01:35
Python
UTF-8
Python
false
false
373
py
import factory from web.ruuvitags.models import Sensor from web.tests.factories.base import BaseMetaFactory class SensorFactory(BaseMetaFactory): class Meta: model = Sensor name = factory.Sequence(lambda n: f'name-{n}') mac = factory.Sequence(lambda n: f'DU:MM:YX:XX:XX:{n:02}') user = factor...
[ "seanbl@me.com" ]
seanbl@me.com
d4f761eacf96ce780fbc59404181fc86fbd4e35f
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/enums/types/promotion_placeholder_field.py
6dcc840470b4c460d818aac8e3787be19f787331
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,505
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
e2a0e0c15553cd873372857fe2c102a77744e823
ed79815a57eff597575d60649ac01fcf869ab17b
/src/pytorch_lightning/strategies/sharded_spawn.py
ff57afd1f5c960c3c775fd4b7567a6b7d4ca842c
[ "Apache-2.0" ]
permissive
jeremyjordan/pytorch-lightning
9a29f6d981de19d31e9a9be2d6ac2f05af849e7c
c4ddc068c90d9913b0de97a01446bf287710526c
refs/heads/master
2023-01-11T07:47:38.047772
2023-01-03T22:07:52
2023-01-03T22:07:52
228,071,400
0
0
null
2019-12-14T18:40:15
2019-12-14T18:40:15
null
UTF-8
Python
false
false
4,695
py
# Copyright The PyTorch Lightning team. # # 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 i...
[ "noreply@github.com" ]
jeremyjordan.noreply@github.com
a2723bf92a9b51857d92a02d4ab3bf3903fa1396
0b5ab7349485da4ea40ca343bc50f4cab74c917c
/week09/microblog_v1_03/microblog/first/urls.py
1131381973ca5382524b59137b1e6841b5699f4d
[]
no_license
workherd/Python006-006
9bf2782ccda037de9af98eb7daa87fd1edeb3caf
7aa176c3cf4effd015802b550edfb70f859e94d9
refs/heads/main
2023-04-29T14:37:43.545376
2021-05-16T04:13:08
2021-05-16T04:13:08
323,247,475
1
0
null
2020-12-21T06:13:42
2020-12-21T06:13:42
null
UTF-8
Python
false
false
454
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Time : 2021/2/21 12:10 # @Author : john # @File : urls.py from django.urls import path, include from rest_framework.routers import DefaultRouter from first import views from django.conf.urls import include router = DefaultRouter() router.register(r'artic...
[ "1330430077@qq.com" ]
1330430077@qq.com
f4883f82a61f416a0209e0b5fc86bee9abd431ba
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03263/s767112826.py
0371f756ac362604a3b4c3be88146f87da01787d
[]
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
439
py
h, w = map(int, input().split()) a = [list(map(int, input().split())) for _ in range(h)] for i in range(h): a[i] = [aij % 2 for aij in a[i]] cnt, ans, rvs = 0, [], -1 for i, ai in enumerate(a): rvs *= -1 for j in range(w)[::rvs]: if cnt == 1: ans.append([bi + 1, bj + 1, i + 1, j + 1]) ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a224e0bf742f3e41b694bc1cdad4b311a39cef6c
dc60fbae177523b1c1d6c6317388f18a96aa9c6e
/code/switchblade_users/admin.py
73fb81fca6ae41d698e07c4a3338f9dd2421f930
[]
no_license
lucheol/prjwn_example
b611298995d13adc42ee6c7185eb47ba9fdad468
5154e8f12df7a2c4dd0f1f552829c8df67e6ef3d
refs/heads/main
2023-07-10T02:46:53.646317
2021-08-20T23:48:56
2021-08-20T23:48:56
398,425,150
0
1
null
null
null
null
UTF-8
Python
false
false
2,101
py
from django.contrib import admin # Register your models here. from .forms import UserChangeForm, UserCreationForm from .models import User, Role, RolePermission, UserResource from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.admin import UserAdmin as BaseUserAdmin @admin.register(User...
[ "lucheol@gmail.com" ]
lucheol@gmail.com
c1abb727f393b7c9cafa3e8626e7a2f539ed4235
865aeaf85b7cf0a27b04b5c563dee2b79443e6b7
/docs/support/trace_ex_eng_wave_functions.py
613570eca327bd2dc6b4b7d57fabeaa56b6937e0
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
pmacosta/peng
d8cc6e8757d62fb9968a42eaf11b5b87227a8b47
ab05fac3c0a6c0f8c70ab3e456b5cc57f0484389
refs/heads/master
2021-01-21T14:32:42.863574
2019-06-11T14:30:38
2019-06-11T14:30:38
58,596,416
0
2
MIT
2019-03-08T15:49:44
2016-05-12T01:24:18
Python
UTF-8
Python
false
false
1,064
py
# trace_ex_eng_wave_functions.py # Copyright (c) 2013-2019 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0111,W0212 import docs.support.trace_support def trace_module(no_print=True): """Trace eng wave module exceptions.""" mname = "wave_functions" fname = "peng" module_prefix = "...
[ "pmasdev@gmail.com" ]
pmasdev@gmail.com
5b16c620277869580c9e353e27400ce0e3bd0575
8bf9bd8a525857932b1b783de783616632178f2a
/stop-spark-cluster-2-1010025809.py
cd06eade6127bc0a4313637a2ed3670622d9cb6e
[]
no_license
masoodfaisal/dags
20161adef7e32a8c96f7f601f747ce6f7d70b206
475808ef7f3315524559a873bcf23151897a780d
refs/heads/main
2023-08-24T13:40:59.905921
2021-10-19T00:52:48
2021-10-19T00:52:48
380,921,787
0
0
null
null
null
null
UTF-8
Python
false
false
1,878
py
from airflow import DAG from airflow.kubernetes.secret import Secret from airflow_notebook.pipeline import NotebookOp from airflow.utils.dates import days_ago # Setup default args with older date to automatically trigger when uploaded args = { "project_id": "stop-spark-cluster-2-1010025809", } dag = DAG( "s...
[ "masood.faisal@gmail.com" ]
masood.faisal@gmail.com
aee1ce1c0f1b1855b79abfdfd84dceb7d60063b5
5e03ff826df32d4da635a8cf95947f631c7573a2
/figure_en/entity.py
62a4982f3ce3d00552f723cdea35b9ca03a8106f
[]
no_license
mujizi/crf
863913af51a9a878de8aeed7f5086d400afd7759
aa09bc8a921e486dbd2996f2480b2cd733e92ef4
refs/heads/master
2022-03-22T20:00:23.060761
2019-12-10T07:09:09
2019-12-10T07:09:09
227,048,981
0
0
null
null
null
null
UTF-8
Python
false
false
4,032
py
# -*- coding: UTF-8 -*- import json from .utils.constant import DEFAULT_TYPE class Entity(object): def __init__(self, text, start, end, entity_type=DEFAULT_TYPE): self.__text = text self.__start = start self.__end = end self.__entity_type = entity_type @property def entity...
[ "you@example.com" ]
you@example.com
e9fffbcfddc640219b86bef2141ed069105491d9
3952b3aabf21125ed4cf7c4b8d9a8c2aeb551872
/tests/server/conftest.py
5182c53e87b8ac446a198ed08e65817295d36443
[ "MIT" ]
permissive
vdt/git-code-debt
90a80d6837bf80901ba547455406093129a4e6fe
bf336c24aa762b4b209d68ba50d071b36cc200d4
refs/heads/master
2021-01-22T12:17:37.211984
2017-05-27T21:23:52
2017-05-27T21:23:52
92,712,107
2
0
null
2017-05-29T06:17:58
2017-05-29T06:17:58
null
UTF-8
Python
false
false
1,586
py
from __future__ import absolute_import from __future__ import unicode_literals import contextlib import mock import pytest from git_code_debt.generate import main from git_code_debt.server.app import app from git_code_debt.server.app import AppContext from testing.utilities.auto_namedtuple import auto_namedtuple fro...
[ "asottile@umich.edu" ]
asottile@umich.edu
1931f83d8295e9b09c34ef37c90e426b160d2277
836f615cf2c2364688bd693e1b37c4f7861e4bd9
/coding/FizzBuzz.py
53085dc850219f24c24a1a140579a3a1c590eb61
[]
no_license
yoSlick/Pythonista
785c120bebbe52a00e76ff7b8c35d056256d4fb0
6bdf00d6d0c639b65dfb6755d835e3c88936999c
refs/heads/master
2020-05-30T10:41:10.119259
2019-06-19T02:37:54
2019-06-19T02:37:54
189,678,146
1
0
null
2019-06-01T01:41:04
2019-06-01T01:41:04
null
UTF-8
Python
false
false
190
py
# https://gist.github.com/jefflovejapan/5076080 for i in range(100): if i % 15 == 0: print 'FizzBuzz' elif i % 5 == 0: print 'Buzz' elif i % 3 == 0: print 'Fizz' else: print i
[ "tdamdouni@users.noreply.github.com" ]
tdamdouni@users.noreply.github.com
7a9a61c21943acc2187c02dfe59eb0f18133b7f6
c19bcbc98555ef06276f9f0dcffc9ac35942a7c4
/tests/test_rpm_qai.py
384d6fcfc9ebe5fff793c758abd84e44c8d27c8c
[ "MIT" ]
permissive
kellyjonbrazil/jc
4e81a5421cd20be5965baf375f4a5671c2ef0410
4cd721be8595db52b620cc26cd455d95bf56b85b
refs/heads/master
2023-08-30T09:53:18.284296
2023-07-30T17:08:39
2023-07-30T17:08:39
215,404,927
6,278
185
MIT
2023-09-08T14:52:22
2019-10-15T22:04:52
Python
UTF-8
Python
false
false
1,756
py
import os import sys import time import unittest import json import jc.parsers.rpm_qi THIS_DIR = os.path.dirname(os.path.abspath(__file__)) # Set the timezone on POSIX systems. Need to manually set for Windows tests if not sys.platform.startswith('win32'): os.environ['TZ'] = 'America/Los_Angeles' time.tzset()...
[ "kellyjonbrazil@gmail.com" ]
kellyjonbrazil@gmail.com
1cca1c717626138783a2d13c5eb4eeaade30f842
eda7fbf7bbc0614e6fc448d2f6e3fd1918dadcbe
/new-api-tests/meshing/tetgen-mesh-local-edge-refinement.py
feb11669da81e6b83802ccaaa9730cc8125e2379
[]
no_license
SimVascular/SimVascular-Tests
e97c136ad3bf3a7275d40c0323abca7817eb2eca
55018e1edcd070bce77ae5af4caf2105353d3697
refs/heads/master
2023-02-11T02:19:06.755815
2023-02-02T18:26:31
2023-02-02T18:26:31
42,211,398
2
10
null
2023-02-02T18:26:32
2015-09-10T00:06:14
Python
UTF-8
Python
false
false
3,527
py
'''Test TetGen local edge (face) refinement. Writes 'MODEL-local-edge-mesh.vtu' [TODO:DaveP] this is not working, can't set local_edge_size? ''' import os from pathlib import Path import sv import sys import vtk ## Set some directory paths. script_path = Path(os.path.realpath(__file__)).parent parent_path = ...
[ "davep@stanford.edu" ]
davep@stanford.edu
63c66caf98402978d83b94664948e53a89a07171
73ba363060fc6f0ba35d85a45dcfd142728ce3b7
/lib/make_nsa_subsection.py
163566f5b7a64ad1d443e2f0efe58bb91e4a417e
[ "MIT" ]
permissive
tingard/gzbuilder_results
6e062979cb37d04dbc1b03542b278ac743b43fba
bbcd95033db333ddd9e7213cbf19032747ff8710
refs/heads/master
2020-07-04T06:36:10.048933
2020-06-29T16:57:46
2020-06-29T16:57:46
202,176,082
0
0
null
null
null
null
UTF-8
Python
false
false
1,981
py
# Takes the NASA-Sloan Atlas in FITS format, extracts certain columns and saves # as a pandas-friendly pickle file. from astropy.table import Table import pandas as pd import os import argparse parser = argparse.ArgumentParser( description=( ' Takes the NASA-Sloan Atlas in FITS format, extracts certain co...
[ "tklingard@gmail.com" ]
tklingard@gmail.com
59bd7c9d80f93993944e56610ed8cf41f525a818
fa1aa08d57dc45e5095593b78d0f2b75243bc936
/wonderment/migrations/0025_auto_20150112_2151.py
80ba95955aa63353c702eebf6ce9c811d8ccebe0
[]
no_license
carljm/Wonderment
8c8d7e3fa6dd853aa150ae3f5addc430ee2070ee
7418864b7beaf73a9e1c0557b50904cf9a29d667
refs/heads/master
2021-04-24T15:32:21.634279
2019-01-14T04:33:19
2019-01-14T04:33:19
23,745,985
1
1
null
null
null
null
UTF-8
Python
false
false
1,258
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import ( migrations, models, ) class Migration(migrations.Migration): dependencies = [ ('wonderment', '0024_parentattendance'), ] operations = [ migrations.RemoveField( model_name='attenda...
[ "carl@oddbird.net" ]
carl@oddbird.net
0286ef98068d6b97b3d3dcc9ed4f4be2451c5636
99b0631baa2fd9ab2455d848b47febf581916272
/zhijieketang/chapter11/ch11.5.3.py
762b29c20c9ee52f5be28f7d8494ab0b1146892a
[]
no_license
seceast/PyProjects
a934e366cb619f2610d75b9a0fb47d818814a4de
7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1
refs/heads/master
2023-03-07T22:23:21.229489
2021-02-25T05:37:58
2021-02-25T05:37:58
265,480,151
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
# coding=utf-8 # 代码文件:chapter11/ch11.5.3.py class ParentClass1: def run(self): print('ParentClass1 run...') class ParentClass2: def run(self): print('ParentClass2 run...') class SubClass1(ParentClass1, ParentClass2): pass class SubClass2(ParentClass2, ParentClass1): pass class ...
[ "yangyadong25@163.com" ]
yangyadong25@163.com
0f091bf4b6b81eda7de7f2856e97d28b6c91aa8f
798490dea5587f9e7b93f3ec00e650735653b40a
/V1_backup/macro_reboot_system.py
3752a61050716aad531c6a3f7e1eede76ba63666
[ "MIT" ]
permissive
YuanYuLin/iopcrestapi_client
ddee5b3664f8b60e134ef504e171271d0fef827f
5c1683d1b5b44bd8bb641933d9526cee97075d31
refs/heads/master
2021-05-25T09:29:49.527604
2021-05-24T09:43:36
2021-05-24T09:43:36
126,988,661
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
#!/usr/bin/python2.7 import sys import libiopc_rest as rst def sys_reboot(out_format, hostname): payload = '{' payload += '"ops":"reboot_system",' payload += '"magic":"aa55"' payload += '}' rst.response_output(out_format, rst.http_post_ops_by_pyaload(hostname, payload)) def request_list(hostname,...
[ "yuanyu.lin@gmail.com" ]
yuanyu.lin@gmail.com
62b6125c1883222804a6aeebb1a57391732bc55d
7a316a3e782d586c7d41d4c844900a38657f09fb
/chapter04/sequential_test.py
5b681eb538050561068a9cedc1006608756231d8
[ "Apache-2.0" ]
permissive
Alchemy2011/spider
0145064a147ca40dc7428bf4932732238088def9
b98d1325fb15c05e2f377d324b52a963cbd281b7
refs/heads/master
2021-05-08T05:39:40.145004
2017-10-29T02:19:16
2017-10-29T02:19:16
106,423,445
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
# -*- coding: utf-8 -*- # 这个模块不能用 from link_crawler import link_crawler from mongo_cache import MongoCache from alexa_cb import AlexaCallback import time def main(): scrape_callback = AlexaCallback() cache = MongoCache() cache.clear() link_crawler(scrape_callback.seed_url, scrape_callback=scrape_call...
[ "1009249763@qq.com" ]
1009249763@qq.com
9d0c99119618a49b95b982c3c460753c7dbac316
1e6b88c38c83af9a74cb16b67faa774b3118ed6c
/home/moz4r/Wip/FingerSensor.py
fc158def149d8fd6dc68bdd445a2daffce25c74b
[ "Apache-2.0" ]
permissive
lecagnois/pyrobotlab
16b087568c86cc31ce5d9ae9c7233e4546a43583
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
refs/heads/master
2023-02-20T00:16:53.521295
2021-05-17T14:18:59
2021-05-17T14:18:59
79,541,726
1
0
null
2017-01-20T08:40:55
2017-01-20T08:40:55
null
UTF-8
Python
false
false
3,914
py
#WORK IN PROGRESS, published after manticore# #file : InMoov.minimalFingerStarterSensor.py #MRL version above 1.0.2404 # this script is provided as a basic guide # most parts can be run by uncommenting them # InMoov now can be started in modular pieces through the skeleton.config # although this script is very short yo...
[ "moz4r@free.fr" ]
moz4r@free.fr
9b8e97b29338711896c4e7053fc2f92ee620a17e
cc578cec7c485e2c1060fd075ccc08eb18124345
/cs15211/H-index-II.py
b403fb1f93df8041c138be84a3f923f47505591d
[ "Apache-2.0" ]
permissive
JulyKikuAkita/PythonPrac
18e36bfad934a6112f727b4906a5e4b784182354
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
refs/heads/master
2021-01-21T16:49:01.482561
2019-02-07T06:15:29
2019-02-07T06:15:29
91,907,704
1
1
Apache-2.0
2019-02-07T06:15:30
2017-05-20T18:12:53
Python
UTF-8
Python
false
false
4,744
py
__source__ = 'https://leetcode.com/problems/h-index-ii/' # https://github.com/kamyu104/LeetCode/blob/master/Python/h-index-ii.py # Time: O(logn) # Space: O(1) # # Description: Leetcode # 275. H-Index II # # Follow up for H-Index: What if the citations array is sorted in # ascending order? Could you optimize your algor...
[ "b92701105@gmail.com" ]
b92701105@gmail.com
89ca31a8a03acf6870b0a0ebf2941539bbf13cf3
e4e20d93a75ac12e7c68057e79914121932f6438
/pyart/io/tests/test_nexrad_level3.py
05b1a349217e02829ff0d7396cad3a1661e2175c
[ "BSD-3-Clause" ]
permissive
chrisgump/pyart
e9319a4f6fb6e1a004ef965737b0f5ee31b0d52d
32e046d5422558e82046b4914e0b950dac0fd84f
refs/heads/master
2021-01-18T18:22:44.437643
2015-08-28T20:51:36
2015-08-28T20:51:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,865
py
""" Unit Tests for Py-ART's io/nexrad_level3.py module. """ import numpy as np from numpy.ma.core import MaskedArray import pyart def test_nexrad_level3_msg19(): radar = pyart.io.read_nexrad_level3(pyart.testing.NEXRAD_LEVEL3_MSG19) assert radar.time['units'] == 'seconds since 2015-01-02T02:05:28Z' ass...
[ "jjhelmus@gmail.com" ]
jjhelmus@gmail.com
6da48f934aefb50ed11fcbc74a99d65002ab60be
7889f7f0532db6a7f81e6f8630e399c90438b2b9
/3.6.1/_downloads/562145a7614d88838c0b771963e376b3/text3d.py
922d161a9f893354d19139132fc85798933e84ad
[]
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
1,187
py
""" ====================== Text annotations in 3D ====================== Demonstrates the placement of text annotations on a 3D plot. Functionality shown: - Using the `~.Axes3D.text` function with three types of *zdir* values: None, an axis name (ex. 'x'), or a direction tuple (ex. (1, 1, 0)). - Using the `~.Axes3...
[ "quantum.analyst@gmail.com" ]
quantum.analyst@gmail.com
9a6007adce9349a2392bee59e936f5371f861e67
c2c8915d745411a0268ee5ce18d8bf7532a09e1a
/cybox-2.1.0.5/cybox/objects/whois_object.py
9f6f5282eeb5253a17808596af3ac849efe350f2
[ "BSD-3-Clause" ]
permissive
asealey/crits_dependencies
581d44e77f297af7edb78d08f0bf11ad6712b3ab
a8049c214c4570188f6101cedbacf669168f5e52
refs/heads/master
2021-01-17T11:50:10.020346
2014-12-28T06:53:01
2014-12-28T06:53:01
28,555,464
1
0
null
null
null
null
UTF-8
Python
false
false
4,388
py
# Copyright (c) 2014, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import cybox.bindings.whois_object as whois_binding import cybox from cybox.common import ObjectProperties, BaseProperty, String, DateTime, Date from cybox.objects.address_object import Address, EmailAddress from c...
[ "ssnow@mitre.org" ]
ssnow@mitre.org
a82e5bd31e8f8b31bd56b81583e7c484985942e9
ac216a2cc36f91625e440247986ead2cd8cce350
/recipes/recipe_modules/cloudkms/api.py
de16f37b777e55123dc20d33291469c9703b5ea4
[ "BSD-3-Clause" ]
permissive
xinghun61/infra
b77cdc566d9a63c5d97f9e30e8d589982b1678ab
b5d4783f99461438ca9e6a477535617fadab6ba3
refs/heads/master
2023-01-12T21:36:49.360274
2019-10-01T18:09:22
2019-10-01T18:09:22
212,168,656
2
1
BSD-3-Clause
2023-01-07T10:18:03
2019-10-01T18:22:44
Python
UTF-8
Python
false
false
1,622
py
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from recipe_engine import recipe_api class CloudKMSApi(recipe_api.RecipeApi): """API for interacting with CloudKMS using the LUCI cloudkms tool.""" de...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
38e9f9613e1c43a4a7103e66af246d24a4662883
fb55ad7c7b2f75abf11943bc0b1f733f943d3e91
/xadmin/management/commands/syncperm.py
a4c6ea9f1b18add18ee632c6b067aa245827e7f2
[]
no_license
simhaonline/DjangoX
c1b9bdfa2ce928937bc7fdb49779937a94dd6546
c2a723e209ef13595f571923faac7eb29e4c8150
refs/heads/master
2022-04-07T14:48:39.246104
2020-02-27T10:04:09
2020-02-27T10:04:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,989
py
# coding=utf-8 import os import json from django.core.management.base import CommandError, BaseCommand from django.contrib.auth.models import ContentType, Permission, Group from xadmin.models import add_view_permissions from xadmin.initialize import autodiscover autodiscover() from xadmin import site def get_page...
[ "xiongjianhong@gmail.com" ]
xiongjianhong@gmail.com
dac274570ad30fd25356d752ca1d03f37f27acd3
67a7c314fc99d9cd7a677fcb6bc2b6dfa20a9cff
/spambayes-1.0.4/testtools/table.py
72918b994a27f0bc0b5c035bcbfa0d7bdd1badd6
[ "LicenseRef-scancode-unknown-license-reference", "Python-2.0" ]
permissive
Xodarap/Eipi
7ebbb9fd861fdb411c1e273ea5d2a088aa579930
d30997a737912e38316c198531f7cb9c5693c313
refs/heads/master
2016-09-11T06:28:01.333832
2011-05-03T15:35:20
2011-05-03T15:35:20
1,367,645
0
0
null
null
null
null
UTF-8
Python
false
false
7,100
py
#!/usr/bin/env python """ table.py [-m] base1 base2 ... baseN Combines output from base1.txt, base2.txt, etc., which are created by the TestDriver (such as timcv.py) output, and displays tabulated comparison statistics to stdout. Each input file is represented by one column in the table. Optional argument...
[ "eipi@mybox.(none)" ]
eipi@mybox.(none)
0485e4195ebb7edc1d91b9e2f4f852a8bd002e37
42260c6cb630820076e771563b589435af6dc247
/account/migrations/0001_initial.py
6042b131bdbbbafab5f1c708313e71075e4ea78e
[]
no_license
pbpoon/dbe
a903aed27a44dc7943976fffd79a1f33d9edf341
bd50976ab3141ef75a3d5324d8b1e0258281f149
refs/heads/master
2021-01-23T01:12:39.242625
2017-05-31T13:32:16
2017-05-31T13:32:16
92,856,979
0
0
null
null
null
null
UTF-8
Python
false
false
909
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-05-30 15:41 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
[ "pbpoon@live.com" ]
pbpoon@live.com
0ad8427ee065d8cb748b443281bdb21ac6db2a29
6f2cc06f1f9513e1432e9d7a399cc943beb89a40
/crop.py
13928022f2ab90014ef3fea6d3a3f5b92e11d527
[]
no_license
DableUTeeF/mifov_final
1f54eaebca568cda9e8801846eef228b04a174db
da7ee669bff3ba1e5cb95d9c6cd7c30876310d1b
refs/heads/master
2023-08-21T14:32:32.543441
2021-09-30T16:40:18
2021-09-30T16:40:18
381,572,649
0
0
null
null
null
null
UTF-8
Python
false
false
1,268
py
import os import json import cv2 import numpy as np if __name__ == '__main__': src = '/media/palm/data/MicroAlgae/22_11_2020/{stage}/{t}/{cls}' out = '/media/palm/data/MicroAlgae/22_11_2020/classification' for stage in ['train', 'val', 'test']: out_stage = 'train' if stage != 'test' else 'val' ...
[ "palm22180@gmail.com" ]
palm22180@gmail.com
18836bffd7b6c7e09a37a7b1d115908887adf22f
8d2e5b5ea408579faa699c09bdbea39e864cdee1
/ufora/distributed/SharedState/tests/SharedStateListener_test.py
ee5c848f9fad097f9fe0281619e9093434f53c5c
[ "dtoa", "MIT", "BSD-3-Clause", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
iantuioti/ufora
2218ef4c7e33c171268ce11458e9335be7421943
04db96ab049b8499d6d6526445f4f9857f1b6c7e
refs/heads/master
2021-01-17T17:08:39.228987
2017-01-30T16:00:45
2017-01-30T16:00:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,499
py
# Copyright 2015 Ufora Inc. # # 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 i...
[ "braxton.mckee@gmail.com" ]
braxton.mckee@gmail.com
cf2747634bd460dee944bbe18f50e3ac103fd551
d89a17205695aa19ca8e2f1e32e1dc5783cbcd6e
/r.py
3539aa94d2bead2e44a0fee36042873f7ebe5313
[]
no_license
sun-os/supercharged_python
cd41b226c092380142da274c690a90bb20bbeead
573f3e8f244b5d551732650cbf6baa8b3d2b3892
refs/heads/master
2023-07-27T06:14:13.302805
2021-08-30T14:02:42
2021-08-30T14:02:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
name = input('What is your name? ') account_id = input('What is your ID? ') email = input('What is your email address? ') print(name) print(account_id) print(email)
[ "gilbutitbook@gmail.com" ]
gilbutitbook@gmail.com
fcd38bba96e0c8f9db899d227575eaf91b4f9edf
6f9a29946dc107cd44d88cf07c9d715ebe4208be
/source/apps_crm/weddingdress/urls.py
94ddac15077a87e33be7ccbe53bef48f1972f5e3
[]
no_license
cash2one/gongzhuhao
66bb14439a2265175bdd4b2f585456fcf47922bf
0596bcb429674b75243d343c73e0f022b6d86820
refs/heads/master
2021-01-18T15:38:37.258737
2015-10-28T09:13:33
2015-10-28T09:13:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,383
py
#encoding: utf-8 __author__ = 'hongjiongteng' from weddingdress_handler import WeddingDressSeriesListHandler, WeddingDressSeriesAddHandler,\ WeddingDressSeriesEditHandler, WeddingDressSeriesDeleteHandler,\ WeddingDressSeriesDeleteImgHandler,\ ...
[ "hongjiongteng@bilibili.com" ]
hongjiongteng@bilibili.com
36cac673733a0c06100a4d8abe113ef3ed6b71e8
1a3eb334e9578e23f63e17b4ee8e51d69405d29f
/metapy/pycits/Rand_index.py
13c5ace4a549c03c6dd817c7ce0d536414307234
[ "MIT" ]
permissive
peterthorpe5/public_scripts
6f0ab79c7a748dbd183ee7173576f7bcf25d7f54
a3c64198aad3709a5c4d969f48ae0af11fdc25db
refs/heads/master
2023-02-08T02:34:18.109091
2023-01-25T13:04:23
2023-01-25T13:04:23
43,360,640
35
23
null
2016-09-15T10:01:11
2015-09-29T10:21:05
Python
UTF-8
Python
false
false
2,303
py
#!/usr/bin/env python # coding: utf-8 # Title: # script to tests rand index # author: Peter Thorpe and Leighton Pritchard # November 2016. The James Hutton Insitute, Dundee, UK. import os from sklearn.metrics.cluster import adjusted_rand_score def open_parse(clustr): """function: opens file and return list ...
[ "peter.thorpe@hutton.ac.uk" ]
peter.thorpe@hutton.ac.uk
3cbedde8715bc160dc932f44bf4dd20a80fb66cc
066527f0af119da300f898ac2584f0988b19da44
/susu/susu.py
3205d3ab951f742645c863f30e3d9d5537263675
[]
no_license
swain-s/paper
be2e074da22f1388fcaa725c1fa0fa6646066216
f56525a4b0e28b52a80161d7efc4c7526f08665a
refs/heads/master
2023-02-19T12:58:14.154504
2021-01-18T10:41:11
2021-01-18T10:41:11
325,462,016
0
0
null
null
null
null
UTF-8
Python
false
false
6,042
py
import tkinter as tk import datetime class SusuPraiser(object): def __init__(self, truth_list): self.truth_list = truth_list self.truth_cnt = len(self.truth_list) self.window = tk.Tk() self.frame = None self.truth = None self.num = 99 def config(self): s...
[ "shenkun@bupt.edu.cn" ]
shenkun@bupt.edu.cn
6e1ff0c2232005cff1b97f66f84c611346528f10
cd64e9076ab81f4b2b42215289b1791c8cc3a1dd
/LogHadoopJob/py/MR/MR_COMMON_START_1008.py
99586cc5a09be40c711489b2b58d8a135949fb25
[]
no_license
tonygodspeed/py
a8396c31fa31cfeb47ebc98dc86e3298e76d5dfa
eb38514c540b92903d53434bddc26d35bf67148d
refs/heads/master
2020-04-02T13:26:27.029232
2018-10-24T10:28:35
2018-10-24T10:28:35
154,481,142
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
#!/usr/bin/env python #coding=utf8 from MR_BASE import * reload(sys) sys.setdefaultencoding("utf-8") class MR_COMMON_START_1008(mr_base): def __init__(self): mr_base.__init__(self,"","COMMON_START_1008") def ProcessMapper(self,value): words = value.split("|") r = ["mac","ver","s", "DISVER", "CHID"] dict ...
[ "412291198@qq.com" ]
412291198@qq.com
5543572d444692a457a005d17334abfea3f4278d
461c02a8aa79654dc85a1750a29661c95f2c3939
/src/devilry_header/devilry_header/views.py
cda01a36d2a857e7d7f117d3be24cb96bcfc0b4d
[]
no_license
espenak/devilry-django
13bfdc5625218a453c336f296aff6a22d18ae03f
0e033ebf44c03d864d0457918cf221cfcc704652
refs/heads/master
2021-01-23T21:11:01.651800
2013-08-05T13:01:23
2013-08-05T13:01:23
1,915,118
2
0
null
null
null
null
UTF-8
Python
false
false
220
py
from extjs4.views import Extjs4AppView class AppView(Extjs4AppView): template_name = "devilry_header/app.django.html" appname = 'devilry_header' title = 'Devilry Header - just to make the header app build'
[ "post@espenak.net" ]
post@espenak.net
47667ce0b5a9ba88c6f85e8fead97ca0a808d46b
822d3cd484b54f0531fc205520c765a8321c0613
/pyFile/9面向对象进阶/1.异常处理/8.自定义异常类.py
c5231230ed1425c5798367f8d8a5f2ebcca21149
[]
no_license
mghxy123/learnPython
31d1cc18deeed5a89864ca0333fe488e0dbf08b4
00740e87d55a4dffd78773deaff8689485df31e8
refs/heads/master
2021-07-21T14:31:02.421788
2020-06-27T11:28:01
2020-06-27T11:28:01
187,751,182
0
0
null
2020-06-07T05:14:05
2019-05-21T02:58:35
Python
UTF-8
Python
false
false
300
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File : 8.自定义异常类.py # Author: HuXianyong # Mail: mghxy123@163.com # Date : 2019/5/21 0021 class MyException(Exception): pass try: raise MyException() except MyException:#捕获自定义异常类 print('catch the exception')
[ "mghxy123@163.com" ]
mghxy123@163.com
0f6d0588cc919f72ee6c338d957c3eed11716987
a8695116681afcf327da2e0d2ed24d94aa1a8aed
/xue/impexp/models.py
033ecf58ed8ec1dfbfc40d45c650376f7c4e9241
[ "BSD-3-Clause" ]
permissive
team-xue/xue
c049afc13755cd2bd3de1413ca7d22e98320fc8e
e6bd9539803a2bf902f48b65a9df86356b5d46b2
refs/heads/master
2020-05-20T09:28:46.021908
2014-10-03T16:39:27
2014-10-03T16:39:27
7,713,996
1
0
null
2013-11-03T09:36:10
2013-01-20T07:49:04
Python
UTF-8
Python
false
false
1,116
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals, division from django.db import models from django.utils.translation import ugettext_lazy as _u _ = lambda x: x from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic class ExportTemplate(models.Mode...
[ "idontknw.wang@gmail.com" ]
idontknw.wang@gmail.com
5576b87acc9b98fe8f1adf3af052b18f77a7df72
306afd5282d9c24d58297478a1728a006c29e57e
/lintcode/lintcode_0007_Serialize_and_Deserialize_Binary_Tree.py
344c1eb78047dfb9ba0e983e8dc491ab0748778f
[]
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
2,221
py
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: """ @param root: An object of TreeNode, denote the root of the binary tree. This method will be invoked first, you should design your own algorithm...
[ "noreply@github.com" ]
ytatus94.noreply@github.com
bf81af1b8bcd4734b6c1ef115abdd51226b68ef3
f1029c634c5023bb6862264f5194924134694a04
/grahamcracker/_field_conversion.py
eb94173e10b1ade4c2bfd4614fbd63db05f89167
[ "MIT" ]
permissive
illuscio-dev/grahamcracker-py
0af5b15ce29c0df009b7d584b13a1031457218b7
0d49dd0fa27aa6a0d89f66281e5e125f550ed24d
refs/heads/master
2022-04-05T19:55:50.881854
2020-02-25T19:02:52
2020-02-25T19:02:52
167,502,303
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
import datetime import uuid from collections import OrderedDict from marshmallow import fields from typing import Type, Any, Mapping, List, Optional from ._settings_classes import HandlerType # These types exist so we can signal that str fields are e-mails or URLs class EmailStr(str): pass class URLStr(str): ...
[ "b.peake@illuscio.com" ]
b.peake@illuscio.com
7637d8c837e43479d3e19ef8aa4387f88ac01570
bc2cdb1e438efaf67131e975ac4db80b4dc43385
/src/private/monitor/components/third_party/vars.py
2ddf6a2b4a0d0e8f952f4c13f347db503d5abcc1
[]
no_license
Shadow-linux/ops-for-study
cf4d55409ebc6f27d454bea60886cd154c994484
115b567948d25a64e423a6cdc89bc8337896afe2
refs/heads/master
2023-01-14T13:35:56.880896
2019-09-23T05:01:31
2019-09-23T05:01:31
209,781,758
2
0
null
2023-01-04T10:55:45
2019-09-20T12:08:11
Python
UTF-8
Python
false
false
2,207
py
""" 新增的监控项变量都需要定义在这里 """ from monitor.models import ( MonitorECS, MonitorVPN, MonitorDomain, MonitorNAS, MonitorRDS, MonitorYueXinSms, MonitorXunChengEryaosu, MonitorWanWeiYiYuanBankIdentity, MonitorTencentSms ) from message.ops_monitor import third_party_doc # 指定的监控项 MONITOR_ITEMS...
[ "liangyedong@qipeipu.com" ]
liangyedong@qipeipu.com
a03651a2d3adf5b40edf0a91ba670ddf00a861ed
9cec93a18ea94504947820205d0faae4d67ecd8d
/TTHAnalysis/macros/leptons/prepareLepMCFriendTree.py
1fa3646caed24685663902094744eebe0322f767
[]
no_license
DESY-CMS-SUS/cmgtools-lite
de88b1d5dc20a925ed5b7c7be69fa3ef677955c6
db52d50047178563a0eb7f5858ae100aa408ec68
refs/heads/8_0_25
2021-05-23T04:36:22.900460
2017-11-09T10:32:41
2017-11-09T10:32:41
60,184,794
3
9
null
2021-02-17T23:22:12
2016-06-01T14:37:18
Python
UTF-8
Python
false
false
4,559
py
#!/usr/bin/env python from CMGTools.TTHAnalysis.treeReAnalyzer import * from array import array from glob import glob import os.path import os, ROOT def plausible(rec,gen): dr = deltaR(rec,gen) if abs(rec.pdgId) == 11 and abs(gen.pdgId) != 11: return False if abs(rec.pdgId) == 13 and abs(gen....
[ "gpetruc@gmail.com" ]
gpetruc@gmail.com
4ddc8935e96362e1fc354ad8c69e99f128687a4b
921fe22cb91b1cae8af70e7cfa8604811dc084ba
/test/test_convert.py
3916a5767c464d874b8916dc67c7e0d3a75cdd70
[ "MIT" ]
permissive
rusty1s/pytorch_sparse
92650c1b1efd54661dfac3d05edb7ef595f86a65
14781cb04e4555859980755b7b17240209c34b4a
refs/heads/master
2023-08-21T13:28:03.449497
2023-07-19T11:19:26
2023-07-19T11:19:26
142,701,935
899
172
MIT
2023-09-12T04:52:56
2018-07-28T18:46:53
Python
UTF-8
Python
false
false
717
py
import torch from torch_sparse import to_scipy, from_scipy from torch_sparse import to_torch_sparse, from_torch_sparse def test_convert_scipy(): index = torch.tensor([[0, 0, 1, 2, 2], [0, 2, 1, 0, 1]]) value = torch.Tensor([1, 2, 4, 1, 3]) N = 3 out = from_scipy(to_scipy(index, value, N, N)) asse...
[ "matthias.fey@tu-dortmund.de" ]
matthias.fey@tu-dortmund.de
4ee163f1dc9ed826abee1d5ca4838d68b7118714
9b8ca63a377e6f94cc6a970cc97a6f7f50932811
/warehouse_loewie_sz/product_product_report.py
fef15ed1acc9de106a2991bd209c2a6be0fcb95f
[ "Apache-2.0" ]
permissive
lester-lees/extra_addons_sz
9b6d2400abe4707b7b18d9e2e9caf2fb366cf3a6
cddaf972cf4ea64c553bcff0006eb006a115d5ee
refs/heads/master
2021-01-06T20:43:28.782147
2017-08-07T06:51:45
2017-08-07T06:51:45
99,545,991
0
0
null
null
null
null
UTF-8
Python
false
false
1,099
py
# -*- coding: utf-8 -*- import time import string from openerp.report import report_sxw from openerp.osv import osv import logging _logger = logging.getLogger(__name__) class product_product_report_cls(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): super(product_product_report_cls, sel...
[ "346994202@qq.com" ]
346994202@qq.com
017f04eacc0ab3d9030969305a1409a2cd219e72
8e722d11748c04d8d84959697829e2a63d51388d
/manage.py
97290ea523d0714fdf483e8f3fba44065c725522
[]
no_license
voidhug/XniLang
0471a25ba43c4d16cdef4f47bb6618e192e17243
0bff168cf865a69c302bf5a84b3d7e3da1decf6f
refs/heads/master
2021-01-17T21:35:53.935294
2015-12-21T12:36:09
2015-12-21T12:36:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
#!/usr/bin/env python # # Copyright 2015 XiaoJSoft Studio. # # Use of this source code is governed by a proprietary license. You can not read, change or # redistribute this source code unless you have a written authorization from the copyright # holder listed above. # # Import other modules. import os import sys ...
[ "xiaojsoft@gmail.com" ]
xiaojsoft@gmail.com
e92274e3567bbe594ca4322c3774c87c676a0db8
09996c147d498e61352683c5e7df0f3cd517ea27
/test/crab_MC_ElMu_0s3.py
08b800860fe339b3873ae0102c5dd25e4de65dbf
[]
no_license
shchenarani/whelicityAnalyzer
3e3320a6d03eab21de6d51dad60f057b6a2f3d47
8b4586f7210c6a166b949470c22310b25683da4f
refs/heads/master
2021-09-10T12:22:52.088849
2018-03-26T07:52:54
2018-03-26T07:52:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,571
py
from CRABClient.UserUtilities import config, getUsernameFromSiteDB config = config() config.General.requestName = 'crabMC' config.General.workArea = 'crab_projects' config.General.transferOutputs = True config.General.transferLogs = False config.JobType.pluginName = 'Analysis' config.JobType.psetName = 'test/wheli...
[ "hesam.kaveh@gmail.com" ]
hesam.kaveh@gmail.com
abfa05587a90ac9197e6426165b7c0f54ae89c86
f093f8e4782eb18070cd438a43458e0b1f72c006
/test/generate/autotest/45_ORL_A_d.py
adde3a8b3b1431e33200f6719d2229f656879db6
[ "MIT" ]
permissive
Aimini/hm-51
4da86962735606eb9a53e6d834185979c42dd4e3
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
refs/heads/master
2021-10-08T13:57:56.069624
2021-10-03T13:43:06
2021-10-03T13:43:06
233,418,197
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
######################################################### # 2020-01-22 22:33:59 # AI # ins: ORL A, direct ######################################################### from .common.INS_XXX_A_d import INS_XXX_A_D p = INS_XXX_A_D("ORL").gen(0, 17)
[ "2026084033@qq.com" ]
2026084033@qq.com
f0416a9c14ccc6160692241a29c70d65d2d9f9e3
4b657447b9ab6b9c5ba106faefe68b6545f7ca4b
/js_showcase/migrations/0006_auto_20200908_1351.py
183907458b5db72c8cad3509b1639ff0835fd5be
[]
no_license
compoundpartners/js-showcase
327a6504d67529584fa9f0e6358dd8da6bef3741
1ca2799d124edeae1a365239be8aa6cb209ec57a
refs/heads/master
2023-08-17T02:35:54.326007
2023-07-19T08:29:35
2023-07-19T08:29:35
177,555,008
0
0
null
null
null
null
UTF-8
Python
false
false
1,100
py
# Generated by Django 2.2.12 on 2020-09-08 13:51 from django.db import migrations, models import js_color_picker.fields class Migration(migrations.Migration): dependencies = [ ('js_showcase', '0005_showcaseslide_layout'), ] operations = [ migrations.AddField( model_name='sho...
[ "evgeny.dmi3ev@gmail.com" ]
evgeny.dmi3ev@gmail.com
97fd070e1189a639e872227e1cfe72f47f47394c
ff23900a911e099595c392a7efab1d268b4f5f7d
/python_modules/dagster-test/dagster_test/toys/input_managers.py
e036b286ebd65b8c025c2c9be037ca020d220446
[ "Apache-2.0" ]
permissive
zkan/dagster
bbf2da091bdc7fca028c569db72b9c68ddf55e98
b2b19edb71fc8985f505b116927350dd23b4a7d9
refs/heads/master
2022-08-24T03:20:12.583577
2022-08-16T00:01:23
2022-08-16T00:01:23
244,012,061
0
0
Apache-2.0
2020-02-29T17:33:24
2020-02-29T17:33:24
null
UTF-8
Python
false
false
3,352
py
import os import numpy as np import pandas as pd from dagster import Field, IOManager, In, Noneable, graph, io_manager, op class PandasCsvIOManager(IOManager): def __init__(self, base_dir=None): self.base_dir = os.getenv("DAGSTER_HOME") if base_dir is None else base_dir def _get_path(self, output_c...
[ "noreply@github.com" ]
zkan.noreply@github.com
87af8d7c680c165362e200aa1e35cc32012c6001
b58b90dc33df0ee6a3aaea529c607ef3b47d49fe
/processors/actrn/processor.py
7b13862dbb741b6c43fe2122797bb91bea1d2ff6
[ "MIT" ]
permissive
Iararibeiro/processors
e77835c3dd5777c3b9338a77f1e4f196b5946b40
95ca339c712ea8e82f91f236db0ceebed9a06126
refs/heads/master
2021-01-21T06:38:09.948793
2016-08-11T03:39:54
2016-08-11T03:39:54
63,597,673
0
0
null
2016-07-18T11:32:57
2016-07-18T11:32:57
null
UTF-8
Python
false
false
450
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from .. import base from . import extractors as extractors_module # Module API def process(conf, conn): extractors = base.helpers.get_varia...
[ "roll@post.agency" ]
roll@post.agency
721602d2f16b99df0b1e475db4b435f535c9986d
ed8db15dad4236ada32c0355e032dc996266a271
/Core_Python/57. Dict Comprehension/4. DictCompNestedConditional.py
14fb13a71b3f8ea0275ac46def23df2769378731
[]
no_license
mukund1985/Python-Tutotrial
a01e0c3ea77690c23c6f30ba1a157c450e5a53ed
bfcf0c81029ce2bee4aa855d90661df25cc94ef9
refs/heads/master
2021-05-21T15:41:18.018660
2020-11-04T02:20:30
2020-11-04T02:20:30
309,857,690
1
0
null
2020-11-04T02:14:37
2020-11-04T02:11:38
Python
UTF-8
Python
false
false
301
py
# Dictionary Comprehension # Without Dict Comprehension (Nested Conditional) dict1 = {} for n in range(10): if n%2==0 : if n%3==0: dict1[n]=n*2 print(dict1) # With Dictionary Comprehension (Nested Conditional) dict2 = {n:n*2 for n in range(10) if n%2==0 if n%3==0} print(dict2)
[ "mukund.pandey@gmail.com" ]
mukund.pandey@gmail.com
3ffd82408c9a06319dd6b76b38b8128b8a5eeda9
2ed20cee3ab04ee22b262afa6e392da6c52ff60c
/test/mock_test/foo.py
967e0a4220477c6afbecbe57d3a3e22a51b55adf
[]
no_license
icejoywoo/HelloPython
66f2e33232a02bf0ac07f84f50af20a514c0af63
aefc32c56625f5b18336357b6616f03b7c35fc20
refs/heads/master
2021-01-23T11:48:22.413684
2015-10-13T03:37:09
2015-10-13T03:37:09
15,417,525
1
0
null
null
null
null
UTF-8
Python
false
false
395
py
#!/bin/env python # ^_^ encoding: utf-8 ^_^ # @date: 14-1-18 __author__ = 'icejoywoo' import sys this_module = sys.modules[__name__] this_module.__str__ = lambda: "Test" print str(this_module) # 待测类 class ProductionClass(): def __init__(self): pass def method(self): pass # 待测方法 def emit...
[ "icejoywoo@gmail.com" ]
icejoywoo@gmail.com
6e2b1d3e10e809c37439baf98f0be2fc0ca31810
dac7095e7b5ad4dae993871c1ae45cbb7a5ce5f7
/Character/28.Oda/Oda_SSSCC.py
400282d126f331856894b0b9f3e29667f18277b9
[]
no_license
Lastation/RenewalAniChaos
d12a8423f4b83cb019495c59ed059451e67e0483
c3edb29af58925de55c11110ccaf927d2b5d1b39
refs/heads/master
2023-08-24T11:28:35.614844
2023-08-22T21:23:14
2023-08-22T21:23:14
246,617,812
1
0
null
null
null
null
UTF-8
Python
false
false
4,980
py
import Function as f; function main(cp) { MoveUnit(All, "40 + 1n Goliath", cp, "Anywhere", "[Skill]HoldPosition"); MoveUnit(All, "50 + 1n Tank", cp, "Anywhere", "[Skill]HoldPosition"); MoveUnit(All, "40 + 1n Marine", cp, "Anywhere", "[Skill]HoldPosition"); f.BanReturn(cp); f.HoldPosition(cp); if (f...
[ "ghtjd000129@naver.com" ]
ghtjd000129@naver.com
66469d16c26e7d065babe0a4758d6ac0f1c5356f
f48a3d354bf4bbbe3d47651dd77853c29934f1fe
/Code/RasaWorkshop/zomatobot/cli_version/actions_old.py
8e7aa4a3de7cca942d7cf3972fdfc7e7a6086be9
[ "MIT" ]
permissive
guidefreitas/TeachingDataScience
0677df459d5a13c00404b8b04cbe3b389dae3d8b
f3e0bc6e391348a8065b09855ab82c436f82a4b5
refs/heads/master
2023-09-03T14:02:11.853103
2021-11-07T03:56:54
2021-11-07T03:56:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,736
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import requests import json import os from rasa_core_sdk import Action from rasa_core_sdk.events import SlotSet logger = logging.g...
[ "yogeshkulkarni@yahoo.com" ]
yogeshkulkarni@yahoo.com
9f565c3ec5abb39d49d3617d8f3b6a09f3036be3
fcbf03dc1884855ca90362a00ba077f13e0a58e3
/toxsign/signatures/migrations/0001_initial.py
3acee8c77a71996ea0ad1722df9b24c2b368ed16
[ "MIT" ]
permissive
umr1085-irset/toxsign_v2
ed11f6da404060b6ba6d1314cccb3281f9172d07
71ccf4c98226c6d3e757cec7277c8fcafc60004f
refs/heads/master
2023-05-27T09:33:59.744741
2022-02-11T09:44:11
2022-02-11T09:44:11
194,641,119
0
2
MIT
2022-08-25T08:57:54
2019-07-01T09:22:09
CSS
UTF-8
Python
false
false
5,459
py
# Generated by Django 2.0.13 on 2019-06-05 15:58 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('projects', '0002_auto_20190529_1245'), ('assays', '0004_auto_2...
[ "dardethomas@gmail.com" ]
dardethomas@gmail.com
491532bdb1426fc112285480843841a91b3609b0
2114a6a10cf63eb145f62118042f0f7a7ca6ced4
/django/db/backends/sqlite3/creation.py
2a948c531ad249d7bac12bbecb96aecc4899e6e7
[ "BSD-3-Clause" ]
permissive
seanpm2001/Zulip_Truncated-DJango-1.8.15
28d6bf8f1360c5f9516ba9ddb4cf938146fdc241
cbf4fa3aef1b17f37d75a70e57f9b69a0f99ed5c
refs/heads/master
2023-08-13T22:40:05.613281
2013-09-17T21:48:58
2016-09-28T02:42:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,335
py
import os import sys from django.core.exceptions import ImproperlyConfigured from django.db.backends.base.creation import BaseDatabaseCreation from django.utils.six.moves import input class DatabaseCreation(BaseDatabaseCreation): def sql_for_pending_references(self, model, style, pending_references): "S...
[ "tabbott@zulipchat.com" ]
tabbott@zulipchat.com
be057f1ddebd59fbf0580f5473eff7bd5c9f881d
2a8379afdd25aac978090450d14294a63fe3f153
/net/atlas.py
96c3b17f0029bb4e8eb43f3fcbcccbc8aec2219f
[]
no_license
samhu1989/ParamNet
8a214c252bf9105c75042d11cdb157c9aaf6b265
265cad29beb10d963bb16a63a4c9d2ba74a5aca9
refs/heads/master
2021-06-21T10:56:10.088091
2019-07-04T06:06:08
2019-07-04T06:06:08
130,680,380
0
0
null
null
null
null
UTF-8
Python
false
false
5,685
py
import tensorflow as tf import tensorflow.contrib.slim as slim; from .resnet import resnet_v1_18; from tensorflow.contrib.layers.python.layers import initializers; from tensorflow.contrib.layers.python.layers import regularizers; from tensorflow.python.framework import ops; from tensorflow.contrib.framework.python.ops ...
[ "hsy19891228@yeah.net" ]
hsy19891228@yeah.net
a08afb4557d77c56fbe54589542f4d1468ac2615
7e747b7b8d3d30a994f6dafc3d5a5f7ba1f76af5
/Sudo/test.py
89b550b5899f1b36405e1c7725eaeaf22d760013
[]
no_license
fbesser/ProgValSupybot-plugins
37640f861c8635a654fbad41bb8cdf3bc6b0c6f2
5a87323ac418e537852f5a4d38dd414c7b82b145
refs/heads/master
2020-12-30T17:19:33.911178
2011-11-01T18:47:57
2011-11-01T18:47:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,740
py
### # Copyright (c) 2011, Valentin Lorentz # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditi...
[ "progval@gmail.com" ]
progval@gmail.com
34c71de9a07f6209c4ec59ad91f76e92577e807f
7be4ea87c56934873b22eef9fe1313a18bae430b
/pizza/general/optionparser.py
310af183474946497b4642edd8a267e9808f6746
[]
no_license
cjerdonek/groome-python-expected
7ab249efe02710afff570fb0545aa65f72fdb0da
33c8963fc295045554b3a6f7afa9010957b2fd23
refs/heads/master
2021-01-18T14:09:39.451506
2013-11-12T07:41:27
2013-11-12T07:41:27
7,537,434
1
0
null
null
null
null
UTF-8
Python
false
false
2,349
py
# encoding: utf-8 # # Copyright (C) 2011-2013 Chris Jerdonek. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this li...
[ "chris.jerdonek@gmail.com" ]
chris.jerdonek@gmail.com
6ade0186ddd31d4b125b7c79351beaf9e2cc5616
9283fe1afdca05a62c20411a8e1fb97561c3fc8b
/setup.py
2536a5c20d381ce6644843d6cc4a8d5db8f9d754
[]
no_license
tokuzfunpi/ops_client
86485371b124410e40905c598e103b5506107dbb
42f9197ba26ffb6b9dd336a524639ecbbf194365
refs/heads/master
2021-01-10T02:44:42.569310
2016-04-07T02:20:55
2016-04-07T02:20:55
55,655,565
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
#!/usr/bin/python from setuptools import setup, find_packages name = 'ops_client' setup( name=name, version='0.0.1', description='Openstack Client', license='Apache License (2.0)', author='Joe Yang', author_email='tokuzfunpu@gmail.com', url='', packages=find_packages(exclude=['test', '...
[ "joe.yang@tw.promise.com" ]
joe.yang@tw.promise.com
718c11f7d2b3b621176cecb1f074c9e73185f918
03034837c5f10d19fcc4dc51388f056ec43fd1d2
/pro34.py
8447f2db554b26a25a878002f753557124c6925c
[]
no_license
shaukhk01/project01
e95c19844757c631f7ffbdd910b20316f49a945b
79cfe784612fdbb4816c9fc3fc7222c845a3268f
refs/heads/master
2020-06-26T07:20:49.844532
2019-08-20T06:06:40
2019-08-20T06:06:40
199,569,813
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
import re def main(): s1 = input('Enter a string.') s2 = re.search('^learning',s1) if s2 !=None: print('yes it start ',s2.group()) else: print('no its not start..') main()
[ "shaukhk01@gmail.com" ]
shaukhk01@gmail.com
6739c1039bb2627a5fa6337719eab7848e08c787
95267d92a6438665cf7848de229bea691d537f81
/WTO.py
5cf7f6e2fac9a92b4cd078b718ac5fe982d26ec3
[ "MIT" ]
permissive
webkadiz/olympiad-problems
2874eb1846c59778e70bcdc9550b3484bc3aa9cc
b3a8a3e83d0930947a89ec42e86e3058f464ea40
refs/heads/master
2022-11-15T23:48:39.854546
2022-11-04T12:55:48
2022-11-04T12:55:48
228,297,097
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
from math import gcd a, b, c = map(int, input().split()) nod = gcd(a, b) cut_k = (a // nod + b // nod - 1) * nod fill_k = (a * b - cut_k) // 2 if fill_k // c: if not fill_k % c: print(0) exit() print(c - fill_k % c)
[ "webkadiz@gmail.com" ]
webkadiz@gmail.com
bb1b1b181b3af03d58c005e4a3cf7e59e71007a6
3d435219f8a745659f31372525064965749c27e4
/readpickle.py
19a8c738725277ddee078537b11c1fe87a9afebf
[]
no_license
Sherkhan7/robocontest_bot
24f8da751a2974125fe216a3a7574b533c1899af
f0ebbf5fd416125e48848f51aff7ad4d2b499edc
refs/heads/main
2023-02-25T12:02:56.134294
2021-01-29T09:46:29
2021-01-29T09:46:29
314,757,505
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
import pickle def read_data(): filename = 'my_pickle' user_data_file = open(f'{filename}_user_data', 'rb') conversations_file = open(f'{filename}_conversations', 'rb') user_data_ = pickle.load(user_data_file) conversations = pickle.load(conversations_file) for key in user_data_: pri...
[ "9669470@gmail.com" ]
9669470@gmail.com
61d96cf79cbbd9d142956f1134c69db83bdf62ce
b843087c2af6cfc012e364337d3c007892ad9863
/swexpert/암호생성기.py
b6f7e218b274e2e1e28c753c21a3a094f46ea095
[]
no_license
jeongyongwon/Algo_Coding
bf2aa879425740526307ae8a76e1845d086d2f7c
cf7fd69be7bb571f093e132110b2a6403f4bfe8c
refs/heads/master
2022-11-24T22:33:31.051310
2020-07-29T10:06:05
2020-07-29T10:06:05
275,589,152
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
import sys sys.stdin = open('암호생성기.txt', 'r') import collections T = 10 a = 1 for t in range(T): t_num = int(input()) list_ = list(map(int, input().split())) D = collections.deque(list_) i = 1 is_end = True while is_end : D.append(D[0]-i) if D[len(D)-1] <= 0 : ...
[ "asdfg0237@naver.com" ]
asdfg0237@naver.com
a0e17bb17a1e487058bd72c95dedb25b42745229
a74cabbe1b11fc8ef575ea86f2543cd95db78ec9
/python_program/q75_Sort_Colors.py
50dca3d809a13ec7f3f205b2482e998608ad34e5
[]
no_license
tszandy/leetcode
87e3ccf291b2879637d2d8238935a455b401a78a
f1f4361541dcffbb291285663c8820d7ffb37d2f
refs/heads/master
2023-04-06T15:34:04.847875
2023-03-26T12:22:42
2023-03-26T12:22:42
204,069,234
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
from collections import defaultdict class Solution(object): def sortColors(self, nums): """ :type nums: List[int] :rtype: None Do not return anything, modify nums in-place instead. """ store =defaultdict(int) for i in nums: store[i]+=1 for i in ran...
[ "444980834@qq.com" ]
444980834@qq.com
ceb4deefd398d9d67827de15f04dc39e47e9a797
6b64d50d260e97907db603f6019d53061339c465
/JS/function_programming.py
8f1e86cf14222db83ab082eae97bea504ed91796
[]
no_license
jgrynczewski/zdpytpol16_frontend
2974c30dbdfe34bd8bb93081004ffc6fb5d9fbcb
cd7a59044dbf8927e6de811c2887ae8dcdf4cc24
refs/heads/master
2023-02-13T07:55:54.527725
2021-01-17T10:05:04
2021-01-17T10:05:04
328,150,620
1
0
null
null
null
null
UTF-8
Python
false
false
1,011
py
def f(x): return x**2 # Przypisanie wyniku funkcji do zmiennej y1 = f(4) print(y1) # Przypisanie funkcji do zmiennej y2 = f print(y2) print(y2(4)) # Lambda y3 = lambda x: x**2 print(y3(4)) # Znajdź kwadraty liczb naturalnych od 1 do 10 większe od 50. # Sposób pierwszy def square(x): return x**2 result = [...
[ "jgrynczewski@gmail.com" ]
jgrynczewski@gmail.com