blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
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
777 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
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
b17f118b3a48f23411c0605dccbd4d3d7d5ac331
c75ec82316ed5322c5844912ce9c528c24360b9f
/nsd1903/devweb/day03/mysite/polls/views.py
34549e6b8acdfc67276252944f7264401ca3a21a
[]
no_license
MrZhangzhg/nsd2019
a94cde22f2e4bd648bb9e56ca63827f558f3c083
54f6d2c7b348a69f13ad5f38f2fbdc8207528749
refs/heads/master
2021-08-22T17:38:27.697675
2020-02-22T08:36:21
2020-02-22T08:36:21
183,539,489
21
24
null
2020-05-17T12:07:55
2019-04-26T02:06:16
HTML
UTF-8
Python
false
false
1,327
py
from django.shortcuts import render, redirect from .models import Question # Create your views here. def index(request): # django将会把http请求作为参数传递给函数,因此,函数必须至少有一个参数 # return HttpResponse('<h1>首页</h1>') # 取出所有问题,根据pub_date降序排列 questions = Question.objects.order_by('-pub_date') return render(request, ...
[ "zhangzg@tedu.cn" ]
zhangzg@tedu.cn
e13ae8c45049850fbfbfea34c7cd6ba0fef4b00a
86d464653092d40abdbd2a125cb29af4de6ca44c
/experiment_scripts/inverted_indexing_test.py
be874046001a92303bd48125366d31b2f0190f11
[]
no_license
lws803/CS3245
ad6003729ead0bf871e131ca0c74676001a66f6a
b4c85388bb017fb21a4ccee14096230aeccecde9
refs/heads/master
2020-04-19T03:26:12.737752
2019-06-16T16:02:12
2019-06-16T16:02:12
167,934,428
0
0
null
null
null
null
UTF-8
Python
false
false
2,398
py
from nltk.stem import * from nltk.probability import FreqDist import nltk stemmer = PorterStemmer() text = "penyetted penyet" text1 = "penyet test helloed" text2 = "penyetted hello" texts = [text, text1, text2] dictionary = {} for i in range(0, 3): for word in nltk.word_tokenize(texts[i]): word = stem...
[ "lws803@gmail.com" ]
lws803@gmail.com
5f246ef3eb4100549c48eb0f4832a833d1d6a4ed
e6cce25fb4159112d5a395a63aa024ac409b40d2
/CHALLENGES/100TASK/ex010.py
1c683bf8551b6a15bd8a3464c23792719ddae1e6
[]
no_license
batestin1/PYTHON
729225e6f1db029ec1e725eced5fe89e884cccb4
f7fb74dd755acf37920dee6a6f9e3663141232e9
refs/heads/master
2023-06-23T03:27:14.951229
2021-07-22T22:54:20
2021-07-22T22:54:20
370,337,387
2
0
null
null
null
null
UTF-8
Python
false
false
388
py
#Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos dólares ela pode comprar. import pandas print('-*-'*30) print('CONVERSAO DE DOLAR ') print('Desenvolvido por Maycon Cypriano') print('-*-'*30) real = float(input('Quanto você tem na carteira: ')) dolar = real*0.18 print(f'Se você t...
[ "mayconcipriano@gmail.com" ]
mayconcipriano@gmail.com
882890653845d4203f7dbc442a563c4f17cbf708
19ca5093877d00b1cffcd0ec5c37e27ba2ceb347
/lesson_03/task_2.py
a99b497abf4470a16621a728f53564a9eef35989
[]
no_license
MichaelDc86/Algorythms
10d424fb1bc667d088ecb7f8f01bf889ba2b6b22
072685eb045f0a29cc3abb7c008ef5677a7e5690
refs/heads/master
2020-05-15T23:57:41.608736
2019-05-29T06:39:35
2019-05-29T06:39:35
182,566,590
0
0
null
2019-05-29T06:39:36
2019-04-21T18:07:42
Python
UTF-8
Python
false
false
943
py
# Во втором массиве сохранить индексы четных элементов первого массива. # Например, если дан массив со значениями 8, 3, 15, 6, 4, 2, # второй массив надо заполнить значениями 1, 4, 5, 6 (или 0, 3, 4, 5, если индексация начинается с нуля), # т.к. именно в этих позициях первого массива стоят четные числа. import random ...
[ "lenskymiwa@ya.ru" ]
lenskymiwa@ya.ru
113e7e10a6f4f6f4126931c451a7af984bdf89c7
b162de01d1ca9a8a2a720e877961a3c85c9a1c1c
/875.koko-eating-bananas.python3.py
67a20e8d792a6529bc38998bc86ee2ac85df6a73
[]
no_license
richnakasato/lc
91d5ff40a1a3970856c76c1a53d7b21d88a3429c
f55a2decefcf075914ead4d9649d514209d17a34
refs/heads/master
2023-01-19T09:55:08.040324
2020-11-19T03:13:51
2020-11-19T03:13:51
114,937,686
0
0
null
null
null
null
UTF-8
Python
false
false
1,378
py
# # [907] Koko Eating Bananas # # https://leetcode.com/problems/koko-eating-bananas/description/ # # algorithms # Medium (42.86%) # Total Accepted: 7.6K # Total Submissions: 17.7K # Testcase Example: '[3,6,7,11]\n8' # # Koko loves to eat bananas.  There are N piles of bananas, the i-th pile has # piles[i] bananas. ...
[ "richnakasato@hotmail.com" ]
richnakasato@hotmail.com
493992116f031f81f5b2f85c82bed18c7a906557
1a87ac9522591f25b03e6912ba3af3cca115abae
/authentication/views.py
babc97856be2925196aacd612175b88e59fbc097
[ "MIT" ]
permissive
jyywong/InventoryMS
c67fdb0a051be5d136d9509e63b7fc0aeadcc324
9aac1324742730ce980e638f2156ece9eb44a593
refs/heads/master
2023-04-01T15:38:44.448813
2021-04-05T19:59:45
2021-04-05T19:59:45
350,162,598
1
0
null
null
null
null
UTF-8
Python
false
false
1,802
py
# -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ from django.shortcuts import render # Create your views here. from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from django.contrib.auth.models import User from django.forms.utils import ErrorList...
[ "wong.jonathan1@gmail.com" ]
wong.jonathan1@gmail.com
d7a27c6b64dc08597f96d3ab27d59a95797a6e40
47bd686ab04d8f6daba2097875dfefdba967d598
/10_codeup/01_기초100제/01_1001.py
4d64434c3fa4a6f2364f3dba450a59a5dc52733b
[]
no_license
EmjayAhn/DailyAlgorithm
9633638c7cb7064baf26126cbabafd658fec3ca8
acda1917fa1a290fe740e1bccb237d83b00d1ea4
refs/heads/master
2023-02-16T17:04:35.245512
2023-02-08T16:29:51
2023-02-08T16:29:51
165,942,743
3
0
null
null
null
null
UTF-8
Python
false
false
55
py
# https://codeup.kr/problem.php?id=1001 print('Hello')
[ "emjay.data@gmail.com" ]
emjay.data@gmail.com
40295ccd9ae060f231a5bedae45d9838221b52a3
01431aec3d6084b77faa62eae962c3a5ce07621a
/attention_is_all_you_need.py
55b5443194eae9da8406c6123bbfa512c29aff15
[]
no_license
jiyali/python-target-offer
e952cc77b0b3c4e4c77f5b9f67ef61bd7413354c
214176b25caffea647f87bf816d3d712293c7c7f
refs/heads/master
2020-07-29T05:53:57.930631
2020-05-13T15:04:08
2020-05-13T15:04:08
209,690,069
0
1
null
null
null
null
UTF-8
Python
false
false
7,112
py
# #############input Embedding ############### class Embeddings(nn.Module): def __init__(self, d_model, vocab): super(Embeddings, self).__init__() self.lut = nn.Embedding(vocab, d_model) self.d_model = d_model # 表示embedding的维度 def forward(self, x): return self.lut(x) * math.sqr...
[ "762115542@qq.com" ]
762115542@qq.com
e5d3bbcfe8a0f176cd05149a1ff34ab74cc535cf
e0980f704a573894350e285f66f4cf390837238e
/.history/flex/models_20201030102256.py
24833cc279761223d63ee1229f3fb82f233a9c19
[]
no_license
rucpata/WagtailWebsite
28008474ec779d12ef43bceb61827168274a8b61
5aa44f51592f49c9a708fc5515ad877c6a29dfd9
refs/heads/main
2023-02-09T15:30:02.133415
2021-01-05T14:55:45
2021-01-05T14:55:45
303,961,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,537
py
from django.db import models from wagtail.core.models import Page from wagtail.core.fields import StreamField from wagtail.admin.edit_handlers import StreamFieldPanel from wagtail.snippets.blocks import SnippetChooserBlock from wagtail.images.blocks import ImageChooserBlock from wagtail.core import blocks as wagtail_bl...
[ "rucinska.patrycja@gmail.com" ]
rucinska.patrycja@gmail.com
e2f4b4e6ea3c3f336a0d95eb369d269665bf9fb9
b3699724907850fd26cbce4509fec83a33b89760
/python/ray/util/xgboost/simple_example.py
f8881e75d0f5f6391b2239475889122141e005b5
[ "Apache-2.0", "MIT" ]
permissive
BonsaiAI/ray
5e2f26a81d865a795261d11f9182aca7f07c7b97
941d30f082fe879ea30618af14327c25b5a21a74
refs/heads/master
2023-06-12T05:15:29.370188
2021-05-06T07:03:53
2021-05-06T07:03:53
233,708,687
3
5
Apache-2.0
2023-05-27T08:06:37
2020-01-13T22:41:47
Python
UTF-8
Python
false
false
1,114
py
from sklearn import datasets from sklearn.model_selection import train_test_split from ray.util.xgboost import RayDMatrix, RayParams, train # __xgboost_begin__ def main(): # Load dataset data, labels = datasets.load_breast_cancer(return_X_y=True) # Split into train and test set train_x, test_x, train...
[ "noreply@github.com" ]
BonsaiAI.noreply@github.com
df9cff14fdbf62a866cf77be1ff6d7b3f37cd1d0
236498cd8daf971ef53cd120051d76c72474330d
/fetch-gazettes.py
4e65868eecf60ad83be066f8f9e8b4c0e60b7522
[]
no_license
OpenUpSA/saflii-gazettes
2106130e1e0dac45a630f4e26f583c56879bc9f2
12d25bf00c47d6f9e4d3950e0ef2373bd17c5589
refs/heads/master
2021-10-23T21:53:06.583034
2019-03-20T08:54:54
2019-03-20T08:54:54
81,817,880
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
#!/usr/bin/env python # # Script to generate Registry.txt and pdf-urls.txt for gazettes from opengazettes.org.za import json import os import os.path entries = [] urls = [] # what jurisdiction code should we use? with open("jurisdiction.txt") as f: jurisdiction = f.read().strip() print "Only using gazettes for j...
[ "greg@kempe.net" ]
greg@kempe.net
71fa9d5981516b87f29091fb9f9f3d80fb0b2f7b
5dbb41859b177778b124d9f9ca5828ca8a5c529e
/aula10.py
e2d96a78cc4c84dc93ff526ed17ee6e25fbbf947
[]
no_license
hevalenc/Curso_DIO_Python_basico
4d7163a7496d17ec248472b075bfbb0988412d26
59a1e2aabc98f7bc3db49eea16170974fd75e9a3
refs/heads/main
2023-03-21T05:29:37.847492
2021-03-18T16:25:22
2021-03-18T16:25:22
349,142,834
0
0
null
null
null
null
UTF-8
Python
false
false
1,628
py
#o 'datetime' é uma biblioteca do python, o comando 'strftime' serve para usar a biblioteca de data e hora #'%d/%m/%y' e '%A %B %Y' são diretivas para definir o formato de exibição de data #'%H:%M:%S' diretiva para horas, from datetime import date, time, datetime, timedelta def trabalhando_com_datetime(): data_a...
[ "heitorvalenca7@gmail.com" ]
heitorvalenca7@gmail.com
63b17fc4261dad20778c5a4e48aa81f3868daa44
fcdce57c1bd0cc4f52679fd0f3f82532550083fa
/282/bridgehand.py
9b5c320bf36248545d8ba244453ecaab726c4014
[]
no_license
nishanthegde/bitesofpy
a16a8b5fb99ab18dc1566e606170464a4df3ace0
c28aa88e1366ab65f031695959d7cd0b3d08be6b
refs/heads/master
2023-08-08T16:53:17.107905
2023-07-22T19:07:51
2023-07-22T19:07:51
183,959,400
0
1
null
null
null
null
UTF-8
Python
false
false
7,209
py
from enum import Enum import typing from dataclasses import dataclass, field from collections import namedtuple, defaultdict from collections.abc import Sequence import random from typing import List from random import shuffle suits = list("SHDC") ranks = list("AKQJT98765432") Suit = Enum("Suit", suits) Rank = Enum("R...
[ "nhegde@netflix.com" ]
nhegde@netflix.com
f60397de642e3f12a66fcdec6cae5c94fd5de495
7185ae54efb2ce9ecd4bd9c53057053f6e799ae3
/PWN/some/2019年7月17日-pwn-(水+ok+cpp)/pwn02/pwn2exp.py
24a3645e72b65dccd0dcc3936b7502a14b8fcc14
[]
no_license
0xFF1E071F/CTFchallenge
1b259c3f7cf8f7a1c20ea38cadd8f170bff137d1
12bb31a202b6110c05758fc4d57cfb58c98d9f23
refs/heads/master
2022-04-07T03:34:46.241887
2020-03-02T00:22:37
2020-03-02T00:22:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
766
py
from pwn import * context.log_level = 'debug' p = process("./pwn02") e = ELF("./pwn02") p.recvuntil("time?\n") p.sendline("134520896") p.recvuntil("time?\n") p.sendline('10000') pop_ret = 0x0804898b ppp_ret = 0x08048989 addr = 0x0804A058 payload = '1234' * 8 payload += p32(e.plt['read']) + p32(ppp_ret) + p32(0) + p32(a...
[ "mozhaohua1999@outlook.com" ]
mozhaohua1999@outlook.com
fd1fcb904335972d230abf0e0b9f8fa1588452ca
695c1667d2b2b57ccb526cc2817bbe5c4038de5c
/navigator/src/plan.py
24dac9a6c5d361b969b4178a7bd74b3b55573e2d
[]
no_license
Avinash-1501/cse550
a6f18e2f84fd47595af994aa81b95fc20e9a311e
36037193af4c7ac2af282471a66c064af3c6a0f4
refs/heads/master
2021-05-29T06:40:56.356026
2015-04-29T19:26:18
2015-04-29T19:26:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,668
py
#!/usr/bin/python import roslib; roslib.load_manifest('navigator') from assignment05.path_planning import * from navigator import * # Parse Args parser = argparse.ArgumentParser(description='Path Plan') parser.add_argument('mapbag') args = parser.parse_args(rospy.myargv()[1:]) # Get Data From Bag Files the_map = g...
[ "davidvlu@gmail.com" ]
davidvlu@gmail.com
b59d20addda1b62a145dcbfe767a7c76a7c061be
ad4c2aa0398406ccb7e70562560e75fa283ffa1a
/sum-of-left-leaves/sum-of-left-leaves.py
e9eb62561a866708b2384dbdd88bb0c50858d9ac
[ "Apache-2.0" ]
permissive
kmgowda/kmg-leetcode-python
427d58f1750735618dfd51936d33240df5ba9ace
4d32e110ac33563a8bde3fd3200d5804db354d95
refs/heads/main
2023-08-22T06:59:43.141131
2021-10-16T14:04:32
2021-10-16T14:04:32
417,841,590
0
1
null
null
null
null
UTF-8
Python
false
false
746
py
// https://leetcode.com/problems/sum-of-left-leaves # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def sumOfLeftLeaves(self, root): """ :type root: Tre...
[ "keshava.gowda@gmail.com" ]
keshava.gowda@gmail.com
1105ec0b1ddb15924ebfc28ab85fa00d3efaa6f1
6baab869e16ed7cafdea7e0e68f27b7e0fc1c2ee
/demo_class/demo_5.py
7feb701538b28b26283d5f7e1471c99811bbe084
[]
no_license
SkewwG/Python_demo
ad4bd81207619bff23498b41833bc45695eab164
9357645287cc49d3396bd65062b71ac646076979
refs/heads/master
2021-05-03T05:21:56.685496
2018-07-06T00:02:59
2018-07-06T00:02:59
120,637,210
8
2
null
null
null
null
UTF-8
Python
false
false
169
py
def demo_yield(n): print('cunting') while n > 0: print('before') yield n n -= 1 print('afeter') print(demo_yield(5).__next__())
[ "446106525@qq.com" ]
446106525@qq.com
43fa50129b5df8f91bad45446acac3e2c063f1d9
ef6229d281edecbea3faad37830cb1d452d03e5b
/ucsmsdk/mometa/extpol/ExtpolControllerCont.py
ae30d6ff188351082a4f0e1dd925a6370910ef71
[ "Apache-2.0" ]
permissive
anoop1984/python_sdk
0809be78de32350acc40701d6207631322851010
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
refs/heads/master
2020-12-31T00:18:57.415950
2016-04-26T17:39:38
2016-04-26T17:39:38
57,148,449
0
0
null
null
null
null
UTF-8
Python
false
false
2,257
py
"""This module contains the general information for ExtpolControllerCont ManagedObject.""" import sys, os from ...ucsmo import ManagedObject from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class ExtpolControllerContConsts(): pass class ExtpolControllerCont(Manag...
[ "test@cisco.com" ]
test@cisco.com
d0a35e213f17e748c12586e0e2841ee69e1ff8ad
43e3f2169a88daedf915fae594412b993f1a4ec2
/execptions.py
8a46a0c01b3874e86f28bb0391dff54b5168297e
[]
no_license
Wanted-Preonboarding-Backend-1st-G5/Assignment5
756037cbe94eb245f743898487fb48d2f0ab44e6
967220f04da4ec84d370c59ef9636fae3e3fbb56
refs/heads/main
2023-09-02T08:49:57.839875
2021-11-18T00:03:00
2021-11-18T00:03:00
428,106,477
0
5
null
2021-11-16T17:19:44
2021-11-15T03:09:21
Python
UTF-8
Python
false
false
104
py
class FileExtensionNotMatchError(Exception): def __init__(self, msg): super().__init__(msg)
[ "embedded61@gmail.com" ]
embedded61@gmail.com
5c2f4032248c9ab25d6bf54b79381af856bb74b5
759c447b4cc7105096983eadb87d667ae472d6c0
/acme_diags/plot/colormaps/rewrite_from_colorcet.py
fa6946bff0a7c3ea3f15a0ac5cbcc5d39bfc6ac5
[ "BSD-3-Clause" ]
permissive
kaabre/acme_diags
cd41014ee0f023eb8796c1ac414615be0fe99f53
40364724ce46f1e5ec91201764da1de593a1a5f0
refs/heads/master
2021-05-14T17:32:19.577633
2018-02-09T20:29:49
2018-02-09T20:29:49
116,049,920
0
0
null
2018-01-02T19:34:12
2018-01-02T19:34:12
null
UTF-8
Python
false
false
763
py
try: import colorcet except BaseException: print "Cannot convert from colorcet w/o colorcet" import sys sys.exit() all_cms = colorcet.cm def dump_cmap(name, mpl_cmap): nm = "cet_%s" % name with open("%s.rgb" % nm, "w") as f: f.write("# Converted from colorcet\n") f.write("#\n"...
[ "doutriaux1@llnl.gov" ]
doutriaux1@llnl.gov
d74f5f77d2d099686d4658eabd6ee585ea46da9f
4ad0dddd7a6e29b31d5780bf6dec6ebad776cf73
/SimG4CMS/HGCalTestBeam/test/HGCalTBCERN170_cfg.py
d30e37913859424152ef656058b1ddaa63fd7e67
[ "Apache-2.0" ]
permissive
llechner/cmssw
95dcd6ae0ced5546853778c6ebdf0dd224030215
419d33be023f9f2a4c56ef4b851552d2d228600a
refs/heads/master
2020-08-26T20:20:28.940065
2018-10-18T09:24:51
2018-10-18T09:24:51
131,112,577
0
0
Apache-2.0
2019-10-23T17:59:17
2018-04-26T06:51:19
C++
UTF-8
Python
false
false
4,988
py
import FWCore.ParameterSet.Config as cms process = cms.Process('SIM') # import of standard configurations process.load("FWCore.MessageService.MessageLogger_cfi") process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') process.load('Configuration.EventConten...
[ "sunanda.banerjee@cern.ch" ]
sunanda.banerjee@cern.ch
258ba757b7cd1250e8a2e1abe6391c275e180530
719fb168fdace7548c719a6d998b71bb15525d6c
/src/kinya/settings.py
baffe196271147d4a3a1787b16e0169cf7139ce7
[]
no_license
nicpottier/kinya
858b19f9d8891c4be80d8ecce477fbfd5c747a8e
e3f9ee774fcb00f916911df986f61e8f8a78f188
refs/heads/master
2016-09-05T21:18:03.141403
2011-05-23T18:19:20
2011-05-23T18:19:20
783,631
0
0
null
null
null
null
UTF-8
Python
false
false
3,117
py
# Django settings for kinya project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Nicolas Pottier', 'nicp@nyaruka.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'kinya', 'USER': 'kinya', ...
[ "nicpottier@gmail.com" ]
nicpottier@gmail.com
453465980126de4e0addd9466aa1fb4eb7709d95
452b8b849e080cda5a26f4018cafa5a674ff7c20
/froide/account/migrations/0003_auto_20160125_2127.py
284973b0045128333fd564ec7053b4d1ea74536a
[ "MIT" ]
permissive
okffi/tietopyynto
1262dcaf748c41b49be4a774be552fc75fc9b336
66b7e7dbf3c3395d79af3da85b3b58f01fad62dc
refs/heads/tietopyynto
2021-01-17T21:07:04.829856
2016-10-30T19:26:53
2016-10-30T19:26:53
14,255,294
3
2
MIT
2021-01-05T11:51:18
2013-11-09T10:19:16
Python
UTF-8
Python
false
false
688
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('account', '0002_auto_20150729_0828'), ] operations = [ migrations.AddField( model_name='user', name=...
[ "mail@stefanwehrmeyer.com" ]
mail@stefanwehrmeyer.com
6f40c592f87d09d6a2d046b25fabd3e80395a695
118984fdbacf5eb71159eb511ccd055987498886
/CH11/EX11.38.py
a2c179da5ac2a5a4bd3de019820e3260ddb8588a
[]
no_license
6igsm0ke/Introduction-to-Programming-Using-Python-Liang-1st-edtion
321c6256be6ff78adbc8e3ddc73f2f43a51a75ab
159489f3af296f87469ddddf3a1cb232917506b0
refs/heads/master
2023-06-05T20:03:17.951911
2021-06-18T18:04:42
2021-06-18T18:04:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
# 11.38 (Turtle: draw a polygon/polyline) Write the following functions that draw a # polygon/polyline to connect all points in the list. Each element in the list is a list of # two coordinates. # # Draw a polyline to connect all the points in the list # def drawPolyline(points): # # Draw a polygon to connect all the p...
[ "47993441+OmarAlmighty@users.noreply.github.com" ]
47993441+OmarAlmighty@users.noreply.github.com
10662b2839c963e9c42342a502361677ede604d6
104a0ec7cfb5d4bf948f22b47edb59122a886363
/input/kinetics/families/intra_substitutionCS_cyclization/depository.py
d3a115a1158e51d03bfd7a044c1ccccb5d030255
[]
no_license
nickvandewiele/RMG-database
3afbe88df46a5641c6abbaf032bf4a0b6b9aae73
dc3cbc7048501d730062426a65d87ea452e8705f
refs/heads/master
2020-12-25T08:19:49.436773
2014-08-04T21:37:26
2014-08-04T21:37:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
#!/usr/bin/env python # encoding: utf-8 name = "intra_substitutionCS_cyclization/depository" shortDesc = u"" longDesc = u""" """
[ "jwallen@mit.edu" ]
jwallen@mit.edu
4b18e558dc27eafa6c869c000bf0f0e6270df667
19d47d47c9614dddcf2f8d744d883a90ade0ce82
/pynsxt/swagger_client/models/lb_source_ip_persistence_profile.py
3b76026eb4c6d08312a91366ab687f7d0bcdcb0c
[]
no_license
darshanhuang1/pynsxt-1
9ed7c0da9b3a64e837a26cbbd8b228e811cee823
fb1091dff1af7f8b8f01aec715682dea60765eb8
refs/heads/master
2020-05-25T14:51:09.932853
2018-05-16T12:43:48
2018-05-16T12:43:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,200
py
# coding: utf-8 """ NSX API VMware NSX REST API # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from swagger_client.models.lb_persistence_profile import LbPersistenceProfile # noq...
[ "tcraft@pivotal.io" ]
tcraft@pivotal.io
2e9d6ec76fdcc93c8746e3531462d5bf552016ea
1c0509a06cec726735048f00f63d2529f5e43ce6
/code_gasoline_france/analysis/analysis_total_access/reaction_analysis/overview_reactions_ronan.py
a4370f2b3423402edfeb364a2abc89faf8a13f2c
[]
no_license
etiennecha/master_code
e99c62e93aa052a66d4cdd3f3e3aa25a3aec4880
48821f6c854a1c6aa05cf81b653b3b757212b6f8
refs/heads/master
2021-01-23T14:35:45.904595
2018-03-11T18:57:38
2018-03-11T18:57:38
16,312,906
2
0
null
null
null
null
UTF-8
Python
false
false
12,747
py
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import print_function import add_to_path from add_to_path import path_data from generic_master_price import * from generic_master_info import * import matplotlib.pyplot as plt import statsmodels.api as sm import statsmodels.formula.api as smf path_dir_built = ...
[ "echamayou@gmail.com" ]
echamayou@gmail.com
974266c40be29c89c2283e836d50a53fbe2b5395
bee77315d08def61c1155930285211ef3d8d7654
/nevergrad/functions/olympussurfaces/core.py
978320088ddd141745feb7073f77e1a0df4ec471
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
facebookresearch/nevergrad
d2da592c1bf3b7c398392b3d39217a3753a4912c
daddb18184bf64ba9082ecc55a56e07429a23103
refs/heads/main
2023-09-04T10:53:42.903505
2023-08-30T17:10:37
2023-08-30T17:10:37
158,468,845
3,526
367
MIT
2023-09-11T13:37:36
2018-11-21T00:33:17
Python
UTF-8
Python
false
false
4,355
py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Based on https://github.com/aspuru-guzik-group/olympus import numpy as np from functools import partial from nevergrad.parametrization im...
[ "noreply@github.com" ]
facebookresearch.noreply@github.com
b7c40d61a3c77f55910703ef873c867fe577ab01
0e478f3d8b6c323c093455428c9094c45de13bac
/src/OTLMOW/OEFModel/Classes/HSCabineLegacy.py
b135fa0033f6f9bb78035d3c47a8967a43a5ba9a
[ "MIT" ]
permissive
davidvlaminck/OTLMOW
c6eae90b2cab8a741271002cde454427ca8b75ba
48f8c357c475da1d2a1bc7820556843d4b37838d
refs/heads/main
2023-01-12T05:08:40.442734
2023-01-10T15:26:39
2023-01-10T15:26:39
432,681,113
3
1
MIT
2022-06-20T20:36:00
2021-11-28T10:28:24
Python
UTF-8
Python
false
false
21,778
py
# coding=utf-8 from OTLMOW.OEFModel.EMObject import EMObject from OTLMOW.OEFModel.EMAttribuut import EMAttribuut from OTLMOW.OTLModel.Datatypes.StringField import StringField # Generated with OEFClassCreator. To modify: extend, do not edit class HSCabineLegacy(EMObject): """subonderdeel van HS-installatie""" ...
[ "david.vlaminck@mow.vlaanderen.be" ]
david.vlaminck@mow.vlaanderen.be
6db3a6d1194dfc0eef30308a005fc669bc41abed
8b62e8d1439c36dadc98ad5656459251acb15200
/uncertainty/__init__.py
23e5e6fff1b8927f5cf759b175f19bc65fc70afb
[ "Apache-2.0" ]
permissive
shuoli90/PAC-pred-set
7a2c6d756f5d970102728160ca3b42d758e09285
430d9dcd0b9f444f9707cf803c5f61c318794f92
refs/heads/main
2023-06-27T15:57:46.807679
2021-07-27T01:20:52
2021-07-27T01:20:52
388,563,089
0
0
Apache-2.0
2021-07-22T18:38:25
2021-07-22T18:38:24
null
UTF-8
Python
false
false
90
py
from uncertainty.util import * from uncertainty.classification import TempScalingLearner
[ "ggdons@gmail.com" ]
ggdons@gmail.com
6494aa421e2601435495170fd63e0de75337f754
c917004bdd665903338c3115bd6821fc7208242b
/workspace/Python3_Lesson12/src/addressbook.py
72c17c0ef0d93d7f176663ab385f23b973ae1786
[]
no_license
paulrefalo/Python-2---4
408ad018ccc8161b801031f8d15df2154c5d25cb
049c654ed626e97d7fe2f8dc61d84c60f10d7558
refs/heads/master
2021-01-10T05:30:25.502795
2016-02-19T02:08:39
2016-02-19T02:08:39
52,054,382
0
0
null
null
null
null
UTF-8
Python
false
false
2,734
py
import configparser from optparse import OptionParser import shelve config = configparser.RawConfigParser() config.read('V:/workspace/Python3_Lesson12/src/addressbook.cfg') shelf_location = config.get('database', 'file') class InvalidEmail(Exception): pass def validate_email(email): if '@' not in email: ...
[ "paul.refalo@gmail.com" ]
paul.refalo@gmail.com
a76ce56f356f65611bcc9250aa5fdc250c9b10f9
0049832c5cbee4b96189b88b51653f48decde596
/MODIS/MOD05/downloaderv2.py
eb85762e6a024cad9673678041edb0e2a034fbf1
[]
no_license
henockmamo54/ImageFusion
18cf27ec4a066456c0d575696fc986814d10a7e6
07e88b5cb1925f54b3b3659caa2abda2bf4f3a72
refs/heads/master
2023-06-16T12:38:07.352623
2021-07-19T00:52:02
2021-07-19T00:52:02
355,720,494
2
0
null
null
null
null
UTF-8
Python
false
false
1,068
py
# -*- coding: utf-8 -*- """ Created on Tue Apr 13 10:34:52 2021 @author: Henock """ import os import modapsclient from datetime import datetime username = "hiik324" password = "Ecology123" startdate="2019-08-01" enddate="2019-12-01" north="38.22346787684907" south="38.18195837298332" west="127.21710138948873" east="...
[ "henockmamo54@gmail.com" ]
henockmamo54@gmail.com
db6863c444c7ed992ab0de7afba38e1d1466433d
0d982772c792460c3f09da170fe80b67336bd5c5
/nsweb/controllers/analyze.py
83611ce625aa5f6c1c62ff9f7402e909bdacada6
[]
no_license
tziembo/neurosynth-web
bf31c3d66fe78fc908778857ebc500440a022f2e
8642e490ab910665d8be9b3271260dec59e0c4b2
refs/heads/master
2021-06-27T05:50:56.512331
2017-08-22T05:46:51
2017-08-22T05:46:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,004
py
from flask import Blueprint, render_template, redirect, url_for, request, jsonify, abort, send_file from nsweb.models.analyses import Analysis, AnalysisImage from nsweb.core import app, add_blueprint, db from nsweb.initializers import settings from nsweb.tasks import run_metaanalysis from nsweb.controllers.images impor...
[ "tyarkoni@gmail.com" ]
tyarkoni@gmail.com
2264537e226c42fd49c2db1e815b60de5324216e
eddb5cc6ece559a21fb2d99dc03fb4b9e3e1ddb0
/fagaiwei/fagaiwei/spiders/41dagongwang_sipder.py
5bd0eebebe50b1f5a487bf89305864a737b1af3a
[]
no_license
KKtoNN/python_spider
a9bdd005d607b1265a556cb4908e84804c0bfc62
c72bd061c3ca4145fef85b0fd9c15576441cdb09
refs/heads/master
2020-03-18T22:50:00.131802
2018-05-30T00:47:56
2018-05-30T00:47:56
135,367,902
3
0
null
null
null
null
UTF-8
Python
false
false
1,688
py
# coding:utf-8 import re import time import scrapy from fagaiwei.items import FagaiweiItem from fagaiwei.settings import session, NewsItemInfo from fagaiwei.keyword_others import keyword class xiamenSipderSpider(scrapy.Spider): name = 'dagongwang_sipder' allowed_domains = ['takungpao.com'] start_urls = [ ...
[ "18835702864@163.com" ]
18835702864@163.com
3cdc5787adb3028825634d327fdb2d2aa36b91b5
5a61ba76c770de8469218ff457213e122e08c7d1
/code/leetcode/dynamic_programming/Solution123.py
fc2166197c3a360720c261e79b56f0cb65a9bd9a
[ "Apache-2.0" ]
permissive
zhangrong1722/interview
6a71af26f08f036a294e36073cb9eb6ca798b993
187a485de0774561eb843d8ee640236adda97b90
refs/heads/master
2020-09-06T08:15:00.229710
2019-12-10T06:32:05
2019-12-10T06:32:05
220,372,777
2
1
null
null
null
null
UTF-8
Python
false
false
1,160
py
class Solution: def maxProfit(self, prices): """ Considering the fact we may complete at most two transactions.We can assume that first transaction is finished at i-th element. And we just need to cosider the subarry [:i] abd [i+1: lens],where the former and the latter represent the max valu...
[ "1922525328@qq.com" ]
1922525328@qq.com
a6f026f02000c15a466f70505538d8d0d47501fc
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02264/s889112571.py
2e212a2e0961278eca5e971a4029146c58b8aed7
[]
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
729
py
#!/usr/bin/env python #-*- coding:utf-8 -*- from collections import deque def process_task(task,qua, elapsed_time, complete_task): exe_task = task.popleft() t = int(exe_task[1]) q = int(qua) if t-q > 0: exe_task[1] = (t - q) task.append(exe_task) elapsed_time += q else: elapsed_time += t complete_tas...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b540b5f7f786c6f93344f17dad5191ffb5aa943b
f1790e298bcbf7b26cacd3c27850f243c446b9eb
/courses/python3/ch4-POO/06_lesson/encapsulation.py
4ef417bcf9d7cecb3c934a7fb024c8b3d3026c50
[]
no_license
misa9999/python
36001a1bf0eb842d00b010b02e05b01aa4dfac57
251c5226db1bfef4a8445b025f232a27a6924930
refs/heads/master
2023-03-04T16:25:48.610233
2021-02-22T21:37:51
2021-02-22T21:37:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
""" public, protected, private _ private/protected (public _) __ private (_classname__attributename) """ class DataBase: def __init__(self): self.__data = {} @property def data(self): return self.__data def insert_customer(self, id, name): if 'customers' not in self.__data: ...
[ "yuukixasuna00@gmailcom" ]
yuukixasuna00@gmailcom
94de939343ae164a3702f2bf9f858e30ffc66e50
9276d5905d0bd4b892bccc3f3f9218124c356e59
/tableau_view_extractor/routes.py
0cac2c256afb2d0b2268ccd4603eb019cadb2ca2
[]
no_license
toddbirchard/tableau-extraction
7de813d8c547b11df13166c4bb3962b071f36602
0bddb8f4afe32fbef3bb6ab2c0b0076f62ca6fc4
refs/heads/master
2023-04-06T14:55:40.738915
2023-03-19T15:34:11
2023-03-19T15:34:11
162,696,737
19
2
null
2020-05-16T06:27:53
2018-12-21T09:49:26
Python
UTF-8
Python
false
false
3,029
py
import pandas as pd from flask import Blueprint, Markup from flask import current_app as app from flask import render_template, request from flask_assets import Bundle, Environment from . import database, tableau home_blueprint = Blueprint( "home", __name__, template_folder="templates", static_folder="static" ) ...
[ "toddbirchard@gmail.com" ]
toddbirchard@gmail.com
be580a0a5cb16a37c9dd6cee1362c8df71b77f7d
4495b65528bd00824a97520dee7ce22a5555ce44
/bin/dirprinter
48a7311fdb5989a5e1f447feede2acdc73b0498a
[]
no_license
steder/txproject
f0e7a8e57fddc454f35bc62f8273f8fb0e37f5c9
928d8ff40bc1b60998f6123b1b1b78f10251bf00
refs/heads/master
2021-01-13T02:06:45.623511
2015-04-13T14:17:43
2015-04-13T14:17:43
3,346,414
0
0
null
null
null
null
UTF-8
Python
false
false
576
#!/usr/bin/env python #-*- mode: python -*- """dirprinter Pretty prints directories like this: Example: $ dirprinter dirname dirname/ |-- printer.py `-- testdir/ |-- subdir/ |-- |-- test3.txt |-- `-- test4.txt |-- test1.txt `-- test2.txt """ import sys from txproject import pri...
[ "steder@gmail.com" ]
steder@gmail.com
c804374672e41fb2e779de2aa60a61a57c0ea935
b7341581abaf2fb50e10e14911cc579e606a23d2
/sirius_sdk/agent/wallet/abstract/non_secrets.py
a47cd8e70608d744123c602ab0e69692772ca7e1
[ "Apache-2.0" ]
permissive
GarlonHasham/sirius-sdk-python
3e627af6c2b3ef641b27514787fb08d0e0b30808
715b12c910574d78502f186aa512bc1ef5b63fbc
refs/heads/master
2023-05-14T03:56:29.141362
2021-06-03T10:42:01
2021-06-03T10:42:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,289
py
import json from abc import ABC, abstractmethod from typing import Optional, List from sirius_sdk.base import JsonSerializable class RetrieveRecordOptions(JsonSerializable): def __init__(self, retrieve_type: bool=False, retrieve_value: bool=False, retrieve_tags: bool=False): self.retrieve_type = retriev...
[ "minikspb@gmail.com" ]
minikspb@gmail.com
33f0a35f5feb7df1dd4eaeaba4f463974e6e5c27
1d60c5a7b8ce6277bff514e376f79848f706344c
/Data Engineer with Python/02. Streamlined Data Ingestion with pandas/03. Importing Data from Databases/02. Load entire tables.py
87520ffcb0f8e37e20dcee08416d6f66edf13411
[]
no_license
DidiMilikina/DataCamp
338c6e6d3b4f5b6c541c1aba155a36e9ee24949d
3bf2cf3c1430190a7f8e54efda7d50a5fd66f244
refs/heads/master
2020-12-15T13:16:54.178967
2020-05-06T17:30:54
2020-05-06T17:30:54
235,113,616
4
3
null
null
null
null
UTF-8
Python
false
false
1,266
py
''' Load entire tables In the last exercise, you saw that data.db has two tables. weather has historical weather data for New York City. hpd311calls is a subset of call records made to the city's 311 help line about housing issues. In this exercise, you'll use the read_sql() function in pandas to load both tables. rea...
[ "didimilikina8@gmail.com" ]
didimilikina8@gmail.com
ae630ac12f733e37781b6ebbc2773032c9f2cac5
88863cb16f35cd479d43f2e7852d20064daa0c89
/DraperImageChronology/src/inv-hist-match.py
5bc7b4f8af190bf3b43f08c71c04caa2a975ea03
[]
no_license
chrishefele/kaggle-sample-code
842c3cd766003f3b8257fddc4d61b919e87526c4
1c04e859c7376f8757b011ed5a9a1f455bd598b9
refs/heads/master
2020-12-29T12:18:09.957285
2020-12-22T20:16:35
2020-12-22T20:16:35
238,604,678
3
1
null
null
null
null
UTF-8
Python
false
false
853
py
# invert histogram matching on an image import cv2 import sys import numpy MAX = 255 MIN = 0 f_in = sys.argv[1] f_out = sys.argv[2] img_in = cv2.imread(f_in) img_out = numpy.zeros_like(img_in) RGB = (0,1,2) for chan in RGB: mean = img_in[:,:,chan].mean() hist = cv2.calcHist([img_in], [chan], None, [2...
[ "c.hefele@verizon.net" ]
c.hefele@verizon.net
9946676665a43725bcf984b91c4ab8323c8ddfe2
d62cbada00caf2f7784066014a87e18052d6fa9f
/darksite/functional_tests/blog/test_list_posts.py
b8bd85d1dfcf15b689e4663ee7234a073d6f17d6
[ "MIT" ]
permissive
UNCDarkside/DarksiteAPI
d6653990bce6b78db78efc672fde2c0ff20e4597
a4bc1f4adee7ecfba840ad45da22513f88acbbd0
refs/heads/master
2020-04-11T17:36:19.062963
2019-01-11T03:42:31
2019-01-11T03:42:31
161,967,336
0
0
MIT
2019-10-22T22:09:50
2018-12-16T04:23:27
Python
UTF-8
Python
false
false
1,311
py
from cms.blog import models POST_LIST_QUERY = """ query { posts { author { id name } content published rendered slug title updated } } """ def test_list_posts(api_client, post_factory): """ Users should be able to query a list of blog posts through the Gra...
[ "chathan@driehuys.com" ]
chathan@driehuys.com
76c7e9f6bb07b3cce7f96db7880426f1f4f29e45
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_pursing.py
97ccd6b1d0f43869691995232bdae3346650ddd4
[ "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
233
py
from xai.brain.wordbase.nouns._purse import _PURSE #calss header class _PURSING(_PURSE, ): def __init__(self,): _PURSE.__init__(self) self.name = "PURSING" self.specie = 'nouns' self.basic = "purse" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
8dfaa6138f567ae7ded66b8e50f29bf4fa670785
21569b68b510b55bdc2acb1ff5ae521b31d44a79
/bin/pip
6d43f954d84428e41a3f031821b38e7f3161f5ff
[]
no_license
howarder3/Rpi3_study
a99faef434ae4f751d4d9f339aca918186f7cb3e
533ba60ae4d11b5e3cebc12283e067ccee5a5cfd
refs/heads/master
2020-03-18T18:11:01.030936
2018-05-27T20:46:40
2018-05-27T20:46:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
225
#!/home/pi/myenv/bin/python3 # -*- coding: utf-8 -*- import re import sys from pip._internal import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "howarder3@gmail.com" ]
howarder3@gmail.com
08dfb0dd27c8af7d6a677376a9c1b968188aae7d
9398d8433fdb29ee630a6ee43a07bc36a2adbd88
/neutron_lbaas/drivers/radware/v2_driver.py
3067302f452e2971128d6b9972319a601441c360
[]
no_license
bopopescu/OpenStack_Liberty_Control
ca5a21d0c32c55dc8c517f5c7c9938ce575a4888
0f6ec1b4d38c47776fdf8935266bcaef2464af4c
refs/heads/master
2022-12-03T10:41:53.210667
2016-03-29T06:25:58
2016-03-29T06:25:58
282,089,815
0
0
null
2020-07-24T01:04:15
2020-07-24T01:04:14
null
UTF-8
Python
false
false
30,218
py
# Copyright 2015, Radware LTD. 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 ap...
[ "tony.pig@gmail.com" ]
tony.pig@gmail.com
2c3ea8b81536b7c933e4b3a416923e9b9f6d2579
cbedb18df0aaac810aeea87a2273edb15c1cf899
/Strings/49. Group Anagrams (python string builder).py
8b0bb59ac43006a54f171ca77f88aec37cd1619d
[]
no_license
kanglicheng/CodeBreakersCode
71b833bb9f4c96d520c26f0044365dc62137a940
31f7f730227a0e10951e7468bad1b995cf2eafcb
refs/heads/master
2023-08-07T20:32:05.267695
2020-09-14T14:36:25
2020-09-14T14:36:25
265,978,034
0
0
null
2020-05-22T00:05:29
2020-05-22T00:05:29
null
UTF-8
Python
false
false
1,035
py
# not sure about the solution at start # sort each str => O(W logW), w is the length of each words -> O(N * W log W) or counting sort O(N*W) # turn each word into count char list: each list length is fixed:26 -> need O(W) to turn to list # but lst can't hash -> turn to str then use hash map class Solution: d...
[ "56766457+Wei-LiHuang@users.noreply.github.com" ]
56766457+Wei-LiHuang@users.noreply.github.com
70573600e0f7e3bf2144f550ad7a28e7db17e2c2
5f5c052aa6a42e7492daf940c9561f5ce84ecb1c
/geatpy/demo/sentense_search/aimfuc.py
68a6d1234a3b6ecaa5b0919fae9690a3c6b8f466
[]
no_license
siuyincheung/geatpy
8b343087c506cef39a7dc377a667ae9f1392acd4
48d41c8835004d9b0c36060881ed9cfb07483f1e
refs/heads/master
2020-03-27T08:15:57.973576
2018-08-27T00:21:00
2018-08-27T00:21:00
146,237,904
1
0
null
2018-08-27T02:39:41
2018-08-27T02:39:41
null
UTF-8
Python
false
false
327
py
import numpy as np def aimfuc(Phen): real = np.array([ord('I'),ord(' '),ord('a'),ord('m'),ord(' '),ord('a'), ord(' '),ord('l'),ord('i'),ord('t'),ord('t'),ord('l'), ord('e'),ord(' '),ord('b'),ord('o'),ord('y')]) diff = np.sum((Phen - real)**2, 1) return np.array([di...
[ "jazzbin@geatpy.com" ]
jazzbin@geatpy.com
7a59a1045aed4872467a495c9c8559d6cf22d43b
716ed8ab9cbd61837fb116635c2d378b32eeb890
/app/migrations/0004_auto_20180902_0447.py
2f5b3abdde6abf5825fdd6216228555e3f33be87
[]
no_license
koneb71/waterworks-django
19dab148fc46f85e1be55b8440f40f5cf2ea29c6
0de58e43ab04348622933f98d79c7d4c109fcb85
refs/heads/master
2020-03-28T07:18:50.512581
2018-10-15T03:53:05
2018-10-15T03:53:05
147,893,717
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-09-02 12:47 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0003_auto_20180902_0447'), ] operations = [ migratio...
[ "koneb2013@gmail.com" ]
koneb2013@gmail.com
558c33eace9ec016d663c4af1776962e0dfe13ab
e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d
/a10sdk/core/interface/interface_ve_isis.py
c85a7fd5cba9aee355ac9680bca40c6207de6019
[ "Apache-2.0" ]
permissive
amwelch/a10sdk-python
4179565afdc76cdec3601c2715a79479b3225aef
3e6d88c65bd1a2bf63917d14be58d782e06814e6
refs/heads/master
2021-01-20T23:17:07.270210
2015-08-13T17:53:23
2015-08-13T17:53:23
40,673,499
0
0
null
2015-08-13T17:51:35
2015-08-13T17:51:34
null
UTF-8
Python
false
false
20,388
py
from a10sdk.common.A10BaseClass import A10BaseClass class PriorityList(A10BaseClass): """This class does not support CRUD Operations please use parent. :param priority: {"description": "Set priority for Designated Router election (Priority value)", "format": "number", "default": 64, "maximum": 127, "min...
[ "doug@parksidesoftware.com" ]
doug@parksidesoftware.com
9c01e7f694d285cbc82aed43b85433d7426fc179
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4363/codes/1596_2049.py
2393618f22d551063f10e697c5ea26d03c3da23b
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
278
py
# Teste seu codigo aos poucos. # Nao teste tudo no final, pois fica mais dificil de identificar erros. # Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo. x = int(input("dividendo ")) y = int(input("divisor ")) print(x) print(y) print(x//y) print(x%y)
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
55c84f580c92d7a7645d5c9af2c759b950a7f84a
ac64fda7f1bfc92f7897efd60b8f3f0aeb22b4d7
/syntactic_mutations/mnist_tr/mutants/mutant118.py
c11c9efb905c74722b9130a38af9dbfcb856ee71
[]
no_license
dlfaults/mutation_operators_evaluation
ea7f33459ba7bcf7d70092d9db8b40f9b338d516
7d1ff30e901931a46bf8908e9bb05cae3daa5f0f
refs/heads/master
2020-12-27T15:45:07.262012
2020-02-03T12:22:01
2020-02-03T12:22:01
237,955,342
1
0
null
null
null
null
UTF-8
Python
false
false
2,611
py
import datetime import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D from keras import backend as K now = datetime.datetime.now batch_size = 128 num_classes = 5 epochs = 5 (img_rows...
[ "gunel71@gmail.com" ]
gunel71@gmail.com
870f58223b2bf1ea451ad5f430647e0c076b21c0
38c10c01007624cd2056884f25e0d6ab85442194
/third_party/catapult/systrace/systrace/systrace_agent.py
376d4f2507b0a8d04b8fa336d1c78567ee61812b
[ "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
zenoalbisser/chromium
6ecf37b6c030c84f1b26282bc4ef95769c62a9b2
e71f21b9b4b9b839f5093301974a45545dad2691
refs/heads/master
2022-12-25T14:23:18.568575
2016-07-14T21:49:52
2016-07-23T08:02:51
63,980,627
0
2
BSD-3-Clause
2022-12-12T12:43:41
2016-07-22T20:14:04
null
UTF-8
Python
false
false
1,647
py
# Copyright (c) 2015 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. class SystraceAgent(object): """The base class for systrace agents. A systrace agent contains the command-line options and trace categories to cap...
[ "zeno.albisser@hemispherian.com" ]
zeno.albisser@hemispherian.com
49b046dd8aff3875402eaf5275f060f0b3b0174f
1e6681ca2569c3de32db2d3b1c957652f8d8ccb3
/xiaoqu_to_chart.py
f9b5ad6726ff6fff1cac6d9a26eed030e88e9e19
[]
no_license
re0phimes/lianjia-beike-spider
d48e5bb05af9c8557ff32f9ca54746c4649d6281
cb4ff13b6145c5169263e486e03d9fbca52450fe
refs/heads/master
2020-04-02T17:21:11.770535
2018-10-24T23:42:44
2018-10-24T23:42:44
154,654,321
1
0
null
2018-10-25T10:45:10
2018-10-25T10:45:10
null
UTF-8
Python
false
false
2,380
py
#!/usr/bin/env python # coding=utf-8 # author: zengyuetian import webbrowser import pandas as pd import numpy as np from pyecharts import Bar import webbrowser as web import os import time from lib.utility.version import PYTHON_3 if __name__ == '__main__': try: if PYTHON_3: os.system("ps aux |...
[ "ijumper@163.com" ]
ijumper@163.com
55093be6c5bd69ff9bea241af4fdc6ab747a5870
3e0c57628c39e5042ed068451608a33b5edcf5df
/codex-py/test/config/demo_propmap.py
69ec9605243caa7804fa759421b722ca3d5f7543
[ "Apache-2.0" ]
permissive
egustafson/home-sensors
5bd3c0f51be9a0a1f360ef41b45cbdfb3069286f
232b36fe6fa2a2e3bce1391a91dffa192f17b835
refs/heads/master
2023-05-10T17:12:10.991008
2020-01-03T23:57:56
2020-01-03T23:57:56
141,070,153
0
0
Apache-2.0
2023-05-01T20:20:24
2018-07-16T01:03:59
Python
UTF-8
Python
false
false
1,030
py
# -*- coding: utf-8 -*- from codex.config.prop import PropMap from codex.config.prop import PropList tmap = { "k1": "v1", "k2": "v2", "k3": {"k3a": "v3a"}, "k4": {"k4a": {"k4b": "v3b"}}, # "k5": {"K$5": "v5a"}, # "k6.k6a": "v6a", } pmap = PropMap(tmap) #print("tmap...
[ "eg-git@elfwerks.org" ]
eg-git@elfwerks.org
f7e67e7c06dad3c32e3885a4e2fbdb29ab4a0a3b
7986ec6498e3f93967fa9bfe2b6a9d4056138293
/Protheus_WebApp/Modules/SIGATMK/TMKA061TESTCASE.py
7e8672d16dbf8b96c9b30b4da09dadec36a8bae0
[ "MIT" ]
permissive
HelenaAdrignoli/tir-script-samples
7d08973e30385551ef13df15e4410ac484554303
bb4f4ab3a49f723216c93f66a4395e5aa328b846
refs/heads/master
2023-02-21T11:26:28.247316
2020-04-28T16:37:26
2020-04-28T16:37:26
257,304,757
0
0
MIT
2020-04-20T14:22:21
2020-04-20T14:22:20
null
UTF-8
Python
false
false
2,189
py
from tir import Webapp import unittest class TMKA061(unittest.TestCase): @classmethod def setUpClass(inst): inst.oHelper = Webapp() inst.oHelper.Setup('SIGATMK','13/04/2020','T1','D MG 01 ','13') inst.oHelper.Program('TMKA061') def test_TMKA061_001(self): self.oHelper.S...
[ "hadrignoli@gmail.com" ]
hadrignoli@gmail.com
ac807123982efe2f51ec607a6061f29be805c9f8
8ffb0b95591bd82df42335315b9595274740aca4
/models/earthworm/leftover/earthworm_output.py
e0acabafbc13c8fffc4c7805920a5d9629973909
[]
no_license
batwalrus76/ubertool_eco
507cf5ef5a0f91f3a36a03d26d80783c3b517e79
ed2863e37ee6066ccdfafa20f6fec3ba4f75f2d1
refs/heads/master
2021-01-18T10:23:27.810117
2015-03-24T14:50:05
2015-03-24T14:50:05
32,412,353
0
0
null
2015-03-17T18:30:11
2015-03-17T18:30:10
null
UTF-8
Python
false
false
2,473
py
# -*- coding: utf-8 -*- import os os.environ['DJANGO_SETTINGS_MODULE']='settings' import webapp2 as webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.ext.webapp import template from uber import uber_lib import numpy as np import cgi import cgitb cgitb.enable() from earthworm import ...
[ "hongtao510@gmail.com" ]
hongtao510@gmail.com
9498f268b62d247bf1b847b778e43a909832d998
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/manent.py
273dc358a4c9e4ac188f99a2bae002f7951f660d
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
43
py
ii = [('BailJD3.py', 3), ('MereHHB.py', 4)]
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
cda5bf2dba75c987106ec62af214b96ca5667188
b162de01d1ca9a8a2a720e877961a3c85c9a1c1c
/870.advantage-shuffle.python3.py
362f8e0a67857cb39a5b44204dba1afd05679778
[]
no_license
richnakasato/lc
91d5ff40a1a3970856c76c1a53d7b21d88a3429c
f55a2decefcf075914ead4d9649d514209d17a34
refs/heads/master
2023-01-19T09:55:08.040324
2020-11-19T03:13:51
2020-11-19T03:13:51
114,937,686
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
# # [901] Advantage Shuffle # # https://leetcode.com/problems/advantage-shuffle/description/ # # algorithms # Medium (40.29%) # Total Accepted: 7.5K # Total Submissions: 18.5K # Testcase Example: '[2,7,11,15]\n[1,10,4,11]' # # Given two arrays A and B of equal size, the advantage of A with respect to B # is the num...
[ "richnakasato@hotmail.com" ]
richnakasato@hotmail.com
99f97c108ff2e6878b5fa011f5843c00586d9cbf
6136e6506d55ad37b3103e5e2f100ca7f2922bb4
/python3.7/语感100题/81-90/90.py
a9890ecc32a3ed5b8d0d5ea5319da76df8e67f16
[]
no_license
Ckongfu/mooc
8911fd1112415f70a37649e48007c3ee5bfef5ba
ca0e2f4a802082e5301f0a65943d1147bb5a3b98
refs/heads/master
2021-05-16T18:44:36.234274
2020-12-24T06:43:33
2020-12-24T06:43:33
250,424,669
0
0
null
null
null
null
UTF-8
Python
false
false
73
py
#计算5的3.5方和9的立方根 print(pow(5,3.5)) print(pow(27,(1/3)))
[ "zouguannan0@163.com" ]
zouguannan0@163.com
89f4deab11dc827abf63d32d7e4af23a4e08f4ab
b031132a8ca2727827f6b1bb75f5839d327885bf
/bookworm/api/forms.py
8b7049f862db44ea99c9d7d43892d1a1cb2ecc0a
[ "LicenseRef-scancode-public-domain", "BSD-3-Clause" ]
permissive
erochest/threepress-rdfa
3441ba9f272bad439b9689968cd1f668fae5c4f6
f07e10da8a4927ab21084f4ba015d6567e665cae
refs/heads/master
2021-07-16T21:24:00.356147
2011-06-10T20:42:14
2011-06-10T20:42:14
1,845,226
2
1
null
null
null
null
UTF-8
Python
false
false
139
py
from django import forms class APIUploadForm(forms.Form): epub_data = forms.FileField() api_key = forms.CharField(max_length=255)
[ "none@none" ]
none@none
4d90b9ba43f5cf53dd31827df98d8a68ea8fa9cb
acf7457d3a799cb9bff12686d2d616688bcd4b5b
/packages/python/plotly/plotly/validators/scattercarpet/marker/_anglesrc.py
3d469a500245c6cb620654f07d276ace9b20b460
[ "MIT" ]
permissive
plotly/plotly.py
f4f61639f08160f16195efc95b5901dc5a937346
975a704074f01c078e0fdfa32bdf17130bf89e69
refs/heads/master
2023-09-06T06:15:08.340035
2023-08-24T12:28:14
2023-08-24T12:28:14
14,579,099
14,751
2,989
MIT
2023-09-08T19:55:32
2013-11-21T05:53:08
Python
UTF-8
Python
false
false
424
py
import _plotly_utils.basevalidators class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="anglesrc", parent_name="scattercarpet.marker", **kwargs ): super(AnglesrcValidator, self).__init__( plotly_name=plotly_name, parent_n...
[ "nicolas@plot.ly" ]
nicolas@plot.ly
236f18e6d06d06f7411c509b2804609daba2be41
0ca5780b8a121b90e2191d7e394e35f49ab68828
/tools/ratings.py
e6cc4467ebefa6bfa5fde9a97a901f84d3d5d6b0
[ "MIT" ]
permissive
Ghloin/tweeria
805091a40a2625f4983b960ccd477af6ffb1c1ba
5f7cf917a6e08f15cd914c11823dbd81c11b95a1
refs/heads/master
2021-01-21T05:59:24.279175
2015-04-11T23:49:09
2015-04-11T23:49:09
33,859,414
1
0
null
2015-04-13T09:22:40
2015-04-13T09:22:39
null
UTF-8
Python
false
false
8,313
py
#!/usr/bin/python # -*- coding: utf-8 -*- # This is rating counter # author: Alex Shteinikov import __init__ import settings import time import random tweenk_core = settings.core() tweenk_balance = settings.balance() import db import logger import time class ratingsCounter: K1 = 0.02 K2 = 1...
[ "alex.shteinikov@gmail.com" ]
alex.shteinikov@gmail.com
19ce91ea22e989da8ca864d594d02929a2b81e0f
2ac1b9ccc4d4f7f646a33e5646ed5e182ae85727
/jamdict/jmnedict_sqlite.py
06df43e4840531842c7f6bb7bd7887641f3844a0
[ "MIT" ]
permissive
killawords/jamdict
3655185f7097365b184b7979a112469430c4179f
85c66c19064977adda469e3d0facf5ad9c8c6866
refs/heads/main
2023-05-28T22:00:00.813811
2021-06-06T04:04:03
2021-06-06T04:04:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,061
py
# -*- coding: utf-8 -*- """ Japanese Multilingual Named Entity Dictionary (JMnedict) in SQLite format References: ENAMDICT/JMnedict - Japanese Proper Names Dictionary Files https://www.edrdg.org/enamdict/enamdict_doc.html """ # This code is a part of jamdict library: https://github.com/neocl/jamdict # :c...
[ "tuananh.ke@gmail.com" ]
tuananh.ke@gmail.com
9582722a0a7a9d3283bbfeee9cb7ddad8e6c377f
67117705720a3e3d81253ba48c1826d36737b126
/Wk9_STRANDS/integrate.py
42e4a34b47cb63349193c1740e61a7048b7bc760
[]
no_license
pyliut/Rokos2021
41f0f96bc396b6e8a5e268e31a38a4a4b288c370
70753ab29afc45766eb502f91b65cc455e6055e1
refs/heads/main
2023-08-13T17:29:30.013829
2021-09-26T19:01:35
2021-09-26T19:01:35
382,092,802
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
# -*- coding: utf-8 -*- """ Created on Wed Jul 28 15:05:28 2021 @author: pyliu """ import numpy as np def integrate(integrand,spacing): """ Numerical integration using rectangles Parameters ---------- integrand : FLOAT, vector Values of integrand in the range of integration ...
[ "noreply@github.com" ]
pyliut.noreply@github.com
9c356ecfd41e1d77531a0992d3aeeab8306f56b4
24c5c46f1d281fc15de7f6b72a5148ae85f89fb4
/SRC/demo/imooc/middlewares.py
d2bed55b4f0789f23a3e7d00661f72239c8ef9df
[]
no_license
enterpriseih/easyTest
22d87c7ffe40fb10a07f7c5cdd505f63dd45adc0
43b8d294e898f25055c78313cfece2753352c250
refs/heads/master
2023-08-23T22:55:14.798341
2020-02-11T09:13:43
2020-02-11T09:13:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,174
py
from scrapy.http import HtmlResponse, Request, Response from scrapy.exceptions import IgnoreRequest from multiprocessing import Process, Pipe from ghost import Ghost class GhostAction: def __init__(self, *args, **kwargs): self.args = args self.kwargs = kwargs def do(self, session): ret...
[ "yaolihui0506" ]
yaolihui0506
bb0cc5db2017fd3d697c4422d606f0f9508bb1cf
9e42f3e16f46ae9161490d459adff263a083b5d8
/ps5.2.py
c7d9e436fb5328bda9b4482482a800516e3687b0
[]
no_license
rajshakerp/algorithm_crunching_social_network
ba7dd2d7ff748cb9b7e7e93c151285b9c2c2c575
2d197a199ea6bb19d65c82a65d72553be107a369
refs/heads/master
2020-06-12T08:03:48.949142
2014-06-24T21:14:53
2014-06-24T21:14:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,460
py
# compute the weight of co-appear import csv import operator import heapq def make_link(G, name, book): if name not in G: G[name] = {} (G[name])[book] = 1 if book not in G: G[book] = {} (G[book])[name] = 1 return G def read_graph(filename): # Read an undirected graph in CSV fo...
[ "=" ]
=
03c7db3d432555998947878d40132af841780c83
57ef48cbc61bc3bf890088ec24a50c440bc36072
/dogflb/train-tiny.py
5abdd5e1943352ec94cd42ee7dac641ef5b1603d
[]
no_license
ShenDezhou/CAIL2021
8be1ea07dd47085126b9092998de72dc0c70973d
aab19b42e9ea1ba29158df577087e827419adae8
refs/heads/master
2023-03-28T11:17:09.541712
2021-03-29T14:11:40
2021-03-29T14:11:40
328,170,130
0
0
null
null
null
null
UTF-8
Python
false
false
4,373
py
import os import jittor as jt import jittor.nn as nn from dataset import TsinghuaDog from jittor import transform from jittor.optim import Adam, SGD from tqdm import tqdm import numpy as np from model import Net import argparse jt.flags.use_cuda=1 def get_path(path): """Create the path if it does not exist. ...
[ "bangtech@sina.com" ]
bangtech@sina.com
9ef838759387609b5be7812eeda6c96df2a63f72
1cb8f578fab815e7031b9302b809d2fce1bad56f
/plone/app/s5slideshow/tests/base.py
25e2d02fbf315c5cee64b5438058531f37813840
[]
no_license
toutpt/plone.app.s5slideshow
103856fdefc6504193e9d5b981fa377c7c5ace1a
ee2129c3e40cc03fadad2490730100ad715f5395
refs/heads/master
2020-06-04T15:18:27.754687
2012-02-28T07:52:39
2012-02-28T07:52:39
3,160,939
0
0
null
null
null
null
UTF-8
Python
false
false
1,002
py
import unittest2 as unittest from zope import interface from plone.app import testing from plone.app.s5slideshow.tests import layer class UnitTestCase(unittest.TestCase): def setUp(self): super(UnitTestCase, self).setUp() class TestCase(unittest.TestCase): layer = layer.INTEGRATION def set...
[ "toutpt@gmail.com" ]
toutpt@gmail.com
18821b556650d403c0a02ae62e4c2f09bc774a23
51fb5fe41a2c5030fb9e46a029f80e8b637714f3
/factory_app/factory.py
be6e96c991075f0550c8462cc83bba811227800a
[]
no_license
aliensmart/week2_day3
6c7512c77c09424c87cdd64fe634b23ae54ffa21
21125022850c398aa0b68295f2e40ca18c573f13
refs/heads/master
2020-07-13T05:31:44.581603
2019-08-29T19:25:27
2019-08-29T19:25:27
205,004,610
0
0
null
null
null
null
UTF-8
Python
false
false
2,503
py
#!/usr/bin/env python3 #Class # Worker # Item # Factory class Worker: #attribute: # name # job # years # department is None def __init__(self, name, job, years): self.name = name self.job = job self.years = years self.department = None #Cr...
[ "kaoua17@gmail.com" ]
kaoua17@gmail.com
34eb6021b51846ce284b8d310da82c2d4e56b2e5
e905abd9bb7bd7017657d0a0c4d724d16e37044c
/.history/article/spiders/acm_20201230145258.py
2bfa13a12a05f543b22b93f69e8ea2d0698e1dd7
[]
no_license
tabdelbari/articles
a8b921841f84fb473f5ed1cdcda743863e6bc246
f0e1dfdc9e818e43095933139b6379a232647898
refs/heads/main
2023-03-05T10:21:35.565767
2021-02-10T13:35:14
2021-02-10T13:35:14
325,654,973
0
0
null
null
null
null
UTF-8
Python
false
false
2,360
py
import scrapy import logging import re from scrapy_splash import SplashRequest from article.items import ArticleItem class AcmSpider(scrapy.Spider): name = 'acm' allowed_domains = ['acm.org'] def __init__(self, topic='', keywords='', **kwargs): super().__init__(**kwargs) self.start_ur...
[ "abdelbari1996@hotmail.com" ]
abdelbari1996@hotmail.com
196350b247e6e73f9e41c83c7b55dd2e29bd78ff
bd8bc7abe0f774f84d8275c43b2b8c223d757865
/319_BulbSwitcher/bulbSwitch.py
4de5dafd05b7f22e9e8a57594d76e8b90b6370fc
[ "MIT" ]
permissive
excaliburnan/SolutionsOnLeetcodeForZZW
bde33ab9aebe9c80d9f16f9a62df72d269c5e187
64018a9ead8731ef98d48ab3bbd9d1dd6410c6e7
refs/heads/master
2023-04-07T03:00:06.315574
2021-04-21T02:12:39
2021-04-21T02:12:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
class Solution: def bulbSwitch(self, n: int) -> int: return math.floor(math.sqrt(n))
[ "noreply@github.com" ]
excaliburnan.noreply@github.com
4b455ab46b88e01a9384c549a1c0160ffe5018b5
30fce7251d3ba9f3868fff08fdb9ab9a0a6ff23b
/bestiary/com2us_data_parser.py
a6bee9ce7a41abf17e7623b532a5cde97f6f2d30
[ "Apache-2.0" ]
permissive
alinford/swarfarm
16fd07d313c5d6453a957468336dab8eb6cc3cd7
95042e4bb685b6f2f4e887ee22e8dad0625a46bf
refs/heads/master
2020-06-02T11:53:13.013695
2019-06-08T05:32:23
2019-06-08T05:32:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
49,171
py
import base64 import binascii import csv import json import re import zlib from enum import IntEnum from glob import iglob from numbers import Number from Crypto.Cipher import AES from PIL import Image from bitstring import Bits, BitStream, ConstBitStream, ReadError from django.conf import settings from sympy import s...
[ "peter@porksmash.com" ]
peter@porksmash.com
f800f8822a575845596e69e4820327b694eb29c9
98dffa1d08cd2f7242650bb9eeacae42f6368300
/scripting/layering.py
4b4a6c016cf873d9c2462f7e3f1f67ad3ae0cb1f
[]
no_license
ucll-scripting/testing-framework
01c93c666070776e75f63f647f125ecdeb49dc91
68452b00d25484d48af3087486b295d9f595a000
refs/heads/master
2023-02-26T01:22:06.326330
2021-02-02T14:47:47
2021-02-02T14:47:47
335,320,727
0
1
null
null
null
null
UTF-8
Python
false
false
1,584
py
from contextlib import contextmanager from scripting.dynamic import create_dynamic_variable, dynamic_bind from scripting.testing import observers, skip_if @contextmanager def _layered_observers(counter, on_pass=None, on_fail=None, on_skip=None): observer_layer = counter.value def wrap(f): def observe...
[ "frederic.vogels@ucll.be" ]
frederic.vogels@ucll.be
c081ccf7cbea4d0b4ab68487450cb1e471fe4399
bf8870d923adca9877d4b4dacef67f0a454727a8
/codeforces.com/contest/630/a/pr.py
1c045061b50ebd8695eb0529af14d00a18b26d2c
[]
no_license
artkpv/code-dojo
6f35a785ee5ef826e0c2188b752134fb197b3082
0c9d37841e7fc206a2481e4640e1a024977c04c4
refs/heads/master
2023-02-08T22:55:07.393522
2023-01-26T16:43:33
2023-01-26T16:43:33
158,388,327
1
0
null
2023-01-26T08:39:46
2018-11-20T12:45:44
C#
UTF-8
Python
false
false
95
py
print(25) input() help() l = set() def foo2(p0, p3, p1=1, p2="abc"): pass foo2(1, 2)
[ "artyomkarpov@gmail.com" ]
artyomkarpov@gmail.com
9096a6363c0b799ebf47452ce695152375b0105e
28ddc330bbfcebf3ce7d75643d06919ebed77f5f
/pymtl3/passes/WrapGreenletPass.py
c9b5bb8eee1e267730648dec2db763dff65ae88e
[ "BSD-3-Clause" ]
permissive
hsqforfun/pymtl3
848d642abcf539688750f4b26e93133191a88bae
05e06601cf262a663a95d1235cb99056ece84580
refs/heads/master
2020-09-01T15:15:27.891486
2019-10-31T23:42:59
2019-10-31T23:42:59
218,990,327
1
0
BSD-3-Clause
2019-11-01T13:27:04
2019-11-01T13:27:03
null
UTF-8
Python
false
false
1,816
py
""" ======================================================================== WrapGreenletPass.py ======================================================================== Wrap all update blocks that call methods with blocking decorator with greenlet. Author : Shunning Jiang Date : May 20, 2019 """ from graphviz impor...
[ "sj634@cornell.edu" ]
sj634@cornell.edu
b633d59df92330c4c250a5e2819100d322277041
aa1e637de90f69f9ae742d42d5b777421617d10c
/nitro/resource/config/network/iptunnel.py
9befd5abeab9ba2d3985b199b3dcc42e2d22188e
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
km0420j/nitro-python
db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
refs/heads/master
2021-10-21T18:12:50.218465
2019-03-05T14:00:15
2019-03-05T15:35:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,031
py
# # Copyright (c) 2008-2015 Citrix Systems, 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 l...
[ "lennart.weller@hansemerkur.de" ]
lennart.weller@hansemerkur.de
a8400b17416c685d35835321143d2a02eb4e838b
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/222/40577/submittedfiles/testes.py
1db880d83fe690190078250959ae8a1407242aa4
[]
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
114
py
# -*- coding: utf-8 -*- n=int('n:') i=1 cont=0 while i<n: if i%2==1: cont=cont+1 i=i+1 print(cont)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
3959ec371c5fcdf95fc0d3374d91d8402a7200ed
3e50ed55208122b2f8b34e7f26f33c9ef70efce5
/python/distributed_spider/distributed_spider/spiders/add_task.py
c98dc6dadbbf75c65779f451818ce7992048148c
[]
no_license
brady-wang/mac_home
b8343da428a4e6696b89d0e6a53ff0dfc87ffd21
c56a739c31d3c0f62d26d8512fe1a90c036a1f96
refs/heads/master
2023-01-14T11:42:02.544322
2019-10-02T11:47:27
2019-10-02T11:47:27
193,177,718
0
0
null
2023-01-04T13:55:31
2019-06-22T01:27:10
PHP
UTF-8
Python
false
false
321
py
# -*- coding: utf-8 -*- import scrapy import redis url = "https://www.pexels.com/photo/aerial-photo-of-high-rise-building-754587/" url1 = "https://www.pexels.com/photo/waterfalls-688559/" rds = redis.StrictRedis(host='192.168.33.10',port='6379') # res = rds.rpush('yeves:urls',url) # res = rds.rpush('yeves:urls',url1) ...
[ "brady.wang@qq.com" ]
brady.wang@qq.com
3db0a0d16fc6a8444278c81119ea8a2c2070ac2c
466660115eafd99b72f81339d86c5bcbf4c7efb0
/codes/12/opencv_warpPerspective_demo.py
8cec5184ed3d80d675d2deace8ff2ccd3a81d8d2
[]
no_license
CoryVegan/scipybook2
c2bb68c169c632ab389600034beb33ac921b0ba1
a8fd295c2f2d7ee18f351e5622ca7eeb4649ee50
refs/heads/master
2020-03-23T14:50:28.056482
2017-08-25T06:00:00
2018-06-02T14:18:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,257
py
# -*- coding: utf-8 -*- """ 透视变换 """ import pyopencv as cv import numpy as np from enthought.traits.api import HasTraits, Array from enthought.traits.ui.api import View, Item class PerspectiveDemo(HasTraits): src = Array(shape=(4,2), dtype=np.float32) dst = Array(shape=(4,2), dtype=np.float32) View = ...
[ "qytang326@gmail.com" ]
qytang326@gmail.com
9e80f8345769e92d4e8fb3b81070349c27728a06
6fadc260ab5c0109adf026cb8dae8eefcf0ba271
/第五章:requests模块高级/3.代理操作.py
0c1773ae5889a4b22a652ac9caca78f2e2f06950
[]
no_license
Echo-yay/Crawler_base
03d439f5fb76d98ef881dada4fec90e24689c424
808b40198c887739f2721bec47c61f255d76706a
refs/heads/master
2023-04-02T17:57:16.318607
2021-04-13T02:34:04
2021-04-13T02:34:04
346,982,615
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
# 中国矿业大学(北京)/ 机电硕-6 / ZQT2000405103 / 李天鸽 # 编辑时间:2021/3/30 11:40 #需求: import requests url = 'https://www.baidu.com/s?wd=IP' headers = { 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36' } page_text = requests.get(url=url,headers=head...
[ "1740636835@qq.com" ]
1740636835@qq.com
3051b5bf40691b588759dbb19716f1297f6e2f24
7cd6a7bc72f0026056a7238c0feea081bfff13a7
/bioprocs/scripts/vcf/pVcfSplit.py
e3c812d9b357910cb9cc4fd6481bd4e244304649
[ "MIT" ]
permissive
shijianasdf/biopipen
8d963ccca38e2a9d7a46582a5eec45c38924655c
d53b78aa192fd56a5da457463b099b2aa833b284
refs/heads/master
2023-08-18T18:28:03.306877
2019-12-31T16:17:35
2019-12-31T16:17:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,318
py
from os import path from sys import stderr from diot import Diot from bioprocs.utils import parallel, shell2 as shell from bioprocs.utils.reference import vcfIndex infile = {{i.infile | quote}} prefix = {{i.infile | fn2 | quote}} outdir = {{o.outdir | quote}} samples = {{i.samples | quote}} tool = {{args.to...
[ "pwwang@pwwang.com" ]
pwwang@pwwang.com
670f9701fbec9a75954af763abaa0d149061f45e
d7016f69993570a1c55974582cda899ff70907ec
/sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_11_01/aio/operations/_private_endpoint_connections_operations.py
fa908157bc8dcc1fd2a5e6390e0cd97f16d1ce46
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
24,069
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
67f1aeaeeb28bc19427a45aebf9aaacfbf59f93d
308f5596f1c7d382520cfce13ceaa5dff6f4f783
/hphp/runtime/ext/core/typecheck_systemlib.py
e9f409239b23debb5a63ec1f6f2cae32f105a0be
[ "PHP-3.01", "Zend-2.0", "MIT" ]
permissive
facebook/hhvm
7e200a309a1cad5304621b0516f781c689d07a13
d8203129dc7e7bf8639a2b99db596baad3d56b46
refs/heads/master
2023-09-04T04:44:12.892628
2023-09-04T00:43:05
2023-09-04T00:43:05
455,600
10,335
2,326
NOASSERTION
2023-09-14T21:24:04
2010-01-02T01:17:06
C++
UTF-8
Python
false
false
2,205
py
#!/usr/bin/env python3 # Gather all of the relevant files from buck file groups and execute # `hh_single_type_check` with the correct flags import argparse import os import subprocess as p import sys from typing import List FIXME_CODES: List[int] = [ # "Missing symbol:" used to break dependency cycles between fi...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
a0198bbf0a9488b28990a3671c5ad8a112155fad
47eb0c1ee39b673dc027f6e076b5065a76f3e002
/setup.py
f4d718bc37e836453f711edc808cbcc7d40edcc5
[ "BSD-3-Clause" ]
permissive
vodkabuaa/tushare
6b814efd829519df596072b644f7c78c63c59289
e55394e0fb6da0bd7652e11f806ad7e92b63c11c
refs/heads/master
2021-01-15T11:20:49.527125
2015-01-16T16:06:55
2015-01-16T16:06:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,379
py
from distutils.core import setup import codecs import os def read(fname): return codecs.open(os.path.join(os.path.dirname(__file__), fname)).read() long_desc = """ tushare =============== .. image:: https://api.travis-ci.org/waditu/tushare.png?branch=master :target: https://travis-ci.org/waditu/tushare .. i...
[ "jimmysoa@sina.cn" ]
jimmysoa@sina.cn
1113cfabb2b7978181ed09de71a1dfa228f71d30
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/leap/03ab2a36557f4b3b8efc8905048ad923.py
040c64db6703a4c6f58c5d9e3ed1f2307d9f5600
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
122
py
__author__ = 'citypulse-dp' def is_leap_year(year): return (year % 400 == 0) or (year % 100 != 0 and year % 4 == 0)
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
41177f6514241ed36d01522abc646d69ddfca634
6b7857c209b9c30ec6b1bb0c7437f8f9918044d7
/2908.py
b053aee91226d487002bed4d9beab74ba1300acc
[]
no_license
rheehot/week01-algorithm
1a18fe8eb76bed0b7d8f26fc10736c7e0c82ec12
0eab27bfcad265ca2dafaf64b2ae067a1ba17639
refs/heads/main
2023-02-05T06:46:38.006682
2020-12-16T14:47:26
2020-12-16T14:47:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
# 상수 - ''' a, b = input().split() for i in range(2, -1, -1): if a[i] == b[i]: continue elif a[i] > b[i]: print(a[::-1]) break else: print(b[::-1]) break ''' a, b = input().split() for i in range(2,-1,-1): if a[i] == b[i]: continue elif a[i] > b[i]: ...
[ "jeongseo21@gmail.com" ]
jeongseo21@gmail.com
3ceda185f764f5098f155d032e070beabe840183
6a7ca83203b1757c57fde550dc38babcad60b4e1
/web/opsgrid/core/migrations/0003_auto_20200606_1547.py
fdbc7d9f8267f2739bc58def3eacaf991f64f01e
[ "MIT" ]
permissive
simon-weber/opsgrid
78b6e1b01079f3447ddb97d6e5bd93f6a39fc16b
9719b9438a4a17eb75b638613a20b534ef82edc7
refs/heads/master
2023-03-30T13:45:09.195901
2021-04-01T19:58:38
2021-04-01T19:58:38
353,765,970
0
0
null
null
null
null
UTF-8
Python
false
false
3,784
py
# Generated by Django 2.2.9 on 2020-06-06 15:47 import django.db.models.deletion import django.utils.timezone from django.conf import settings from django.db import migrations, models import opsgrid.core.models class Migration(migrations.Migration): dependencies = [ ("core", "0002_auto_20200530_2351"),...
[ "simon@simonmweber.com" ]
simon@simonmweber.com
10afc6582717758e6a1c4680f3330b5869a0a8ab
8019f0df9a782b825132a328f1425fbe3028e657
/odoo/addons/splashsync/models/__init__.py
06a199a4ac86223a4739e58a11eaf9d1050c4bff
[]
no_license
p403n1x/odoo
01b5e28eb1351c04d9045a1fb16e30de45c7929d
ce2cd03b3a9a8b5cfa5a81cf2b70ecafe5fb1ce2
refs/heads/master
2023-01-03T17:29:55.322847
2020-10-28T15:21:44
2020-10-28T15:21:44
280,176,919
0
1
null
2020-10-28T15:21:46
2020-07-16T14:33:56
Python
UTF-8
Python
false
false
611
py
# -*- coding: utf-8 -*- # # This file is part of SplashSync Project. # # Copyright (C) 2015-2019 Splash Sync <www.splashsync.com> # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO...
[ "eshop.bpaquier@gmail.com" ]
eshop.bpaquier@gmail.com
018c098be0eb7d6c35d84417bd949c4b65953d0a
290fa984448c3350fa4059fa8852f8a1321109ab
/services/users/src/tests/test_auth.py
7dd4fe5f2cebc3ad872c2a74d435400353e40d41
[]
no_license
testdrivenio/flask-react-aws
673a612ae3368e7a9dcd7ddb50c0ea03e3221928
365f0771d5234b0b4dfe05d59bab29a03845af4f
refs/heads/master
2023-07-19T19:45:14.042103
2022-05-04T16:08:52
2022-05-04T16:08:52
198,724,692
29
21
null
2023-07-19T14:39:18
2019-07-24T23:54:07
Python
UTF-8
Python
false
false
6,254
py
import json import pytest from flask import current_app def test_user_registration(test_app, test_database): client = test_app.test_client() resp = client.post( "/auth/register", data=json.dumps( { "username": "justatest", "email": "test@test.com", ...
[ "hermanmu@gmail.com" ]
hermanmu@gmail.com
259eaa9eb150b7462d4c925d4708645aab5782b6
f4e9721bd529541f2402472f201bb6fde66fea53
/Lonely monk.py
d4a8ed8aa1175027efeb694272814602d7db99a5
[]
no_license
wimpywarlord/hacker_earth_and_hacker_rank_solutions
23d973778bceca5a395dd98b0b7252db49d02366
1277ba97e2744a7dab62f1e1319aac77f8ec6a28
refs/heads/master
2021-07-01T19:48:07.501021
2019-12-28T05:55:39
2019-12-28T05:55:39
172,307,339
10
3
null
2020-10-01T06:43:03
2019-02-24T07:08:29
Python
UTF-8
Python
false
false
478
py
n=int(input()) x=input() a=x.split() for i in range(0,n): a[i]=int(a[i]) print(a) d=[] for i in range(0,n): counter=n for j in range(i,n): summ=0 for k in range(i,counter): print(a[k],end=' ') summ=summ+a[k] counter-=1 print() print(su...
[ "wimpywarlord@gmail.com" ]
wimpywarlord@gmail.com
e3a9971a7c467b2a337cc7609361518a273549cb
dd8363acd9a028d9b6432936d72e7a5344077c20
/plugins/modules/ecs_taskdefinition_info.py
1ca9c29f56917c329488e57cc8ec275d3183b503
[]
no_license
gundalow-collections/amazon
5d437c41af5e3cfa73731c9cd2c08b66c7480b43
23c743b63f58ba97960479e230b462fb1c90cc95
refs/heads/master
2020-08-28T04:53:02.641829
2019-10-25T19:40:04
2019-10-25T19:40:04
217,595,855
0
1
null
null
null
null
UTF-8
Python
false
false
12,417
py
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
[ "brian.coca+git@gmail.com" ]
brian.coca+git@gmail.com
e550a7da4602d02bd9ec286325f5bf90fb73f176
5c3d487c1f48e33c507a8aca1c2fc178cf95e17f
/interview/leet/004_2lists_median.py
90e07fac5e0013b8cd475c180434cbb20983d40b
[ "MIT" ]
permissive
eroicaleo/LearningPython
52f9bcda796ea8fcc40a2971f30102d2847c93a4
ebebd1104b1947324fbaae304b44465f80803c8b
refs/heads/master
2023-07-20T04:34:51.465451
2023-07-13T06:43:31
2023-07-13T06:43:31
14,948,231
4
1
null
null
null
null
UTF-8
Python
false
false
4,043
py
#!/usr/bin/env python def process_lists(l1, l2, k): # k is a index in range(0, k) l1_lo, l1_hi, l2_lo, l2_hi = 0, len(l1)-1, 0, len(l2)-1 while True: # break condition 2, lo > hi if l1_hi < l1_lo: print('crossing l1_lo: %d, l1_hi: %d.' % (l1_lo, l1_hi)) return l2[...
[ "eroicaleo@gmail.com" ]
eroicaleo@gmail.com
d947f066692c5b74bac324ac407eae75542cdea9
b5b31b22604b069a1dbf96a1968675185834b4b2
/backend/ireach_22272/wsgi.py
2c6bd9068288e1621f2aae90cfbe6ff9257fdcba
[]
no_license
crowdbotics-apps/ireach-22272
1a1c140d61fecd088684c1fe2e9022e9227e1f09
5ed17eeefd1d25d0d31d98a98ba1309c295353e5
refs/heads/master
2023-01-09T20:15:26.480421
2020-11-03T21:21:15
2020-11-03T21:21:15
309,809,921
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" WSGI config for ireach_22272 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
469482f8e69ff66760208ab38b9533fd5b051aad
945c6df0d8c129b5ffc3c2bcbadbfe1d6e5608d5
/Bela/bela.py
e99040a8892ec52d6350f752428ab6a589a365ba
[]
no_license
jb1361/kattis
a93236db5c8c2d5660bf9acc6385db61854f9ff6
c5245124a18a465b4ea50b11228033fae1c65775
refs/heads/master
2018-11-29T23:40:22.853840
2018-09-05T15:39:33
2018-09-05T15:39:33
94,928,101
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
dominant = [['A',11],['K',4],['Q',3],['J',20],['T',10],['9',14],['8',0],['7',0]] notdominant = [['A',11],['K',4],['Q',3],['J',2],['T',10],['9',0],['8',0],['7',0]] inp = input() inp = inp.split() hands = int(inp[0]) * 4 domHand = inp[1] card_data = [] i = 0 while i < hands: temp = input() card_data.append(temp) i...
[ "justinbutler4@hotmail.com" ]
justinbutler4@hotmail.com
638b967383833a626bf654f60c58a3690a7a5a47
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02911/s816534461.py
13c30ef108655a3fe436359c3a523f096f0a221c
[]
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
178
py
n, k, q = map(int, input().split()) a = [int(input()) for i in range(q)] l = [k-q] * n for i in a: l[i-1] += 1 for f in l: if f <= 0: print("No") else: print("Yes")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
078aac1497450963b1b2d31e8579a5c45914908d
56b63ee537f872af0fc028016d1508b4c1dd5c60
/school/migrations/0069_cloan_deposit.py
fe3ae552699145c8ebafd5e53de70ecfa7fb258e
[]
no_license
jacknjillsolutionsrevanth/EMS1
01fc571120f765b0fbfe3aa654b15ff578d6e9b9
db14d8e6c15669b5938aa9276c5e22006218814a
refs/heads/main
2023-08-03T19:40:50.073133
2021-10-01T07:02:37
2021-10-01T07:02:37
410,202,348
0
0
null
null
null
null
UTF-8
Python
false
false
2,364
py
# Generated by Django 3.1.2 on 2020-11-02 05:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('school', '0068_center_ifsc'), ] operations = [ migrations.CreateModel( name='Cloan', fields=[ ('id',...
[ "jacknjillsolutions.revanth@gmail.com" ]
jacknjillsolutions.revanth@gmail.com
84d15772355558872edd5fbf0f1bde46367a3a78
e35fd52fe4367320024a26f2ee357755b5d5f4bd
/leetcode/p0953 - Verifying an Alien Dictionary.py
ef9f41b49f256cc3e3d21bf400d9105f0bd05618
[]
no_license
liseyko/CtCI
a451967b0a0ce108c491d30b81e88d20ad84d2cd
c27f19fac14b4acef8c631ad5569e1a5c29e9e1f
refs/heads/master
2020-03-21T14:28:47.621481
2019-11-12T22:59:07
2019-11-12T22:59:07
138,658,372
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
class Solution: def isAlienSorted(self, words: List[str], order: str) -> bool: order = {c: i for i, c in enumerate(order)} for i in range(1, len(words)): w1, w2 = words[i-1], words[i] for i in range(max(len(w1), len(w2))): if i == len(w1): ...
[ "liseyko@gmail.com" ]
liseyko@gmail.com
82ab39e1ff512816b925a6c5a98b421d60a96b99
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/429/usersdata/314/106483/submittedfiles/jogoDaVelha.py
90530203e54e5e7d61182079f64593ac3dba01f6
[]
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
1,835
py
from jogoDaVelha_BIB import * tabuleiro = [ [' ',' ',' '], [' ',' ',' '], [' ',' ',' '] ] #Tabuleiro vazio grupo = 'H [Breendon, Gustavo, Roberto, Rafael]' #Nome dos integrantes do grupo jogador = ['',''] #Nome do jogador e simbolo computador = ['Computador',''] ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
5701ca5a24ad422a24d1e85ccc647845822be9d9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03167/s908459155.py
5f856077bed000e7aa3d84fcde080fe3df6829a2
[]
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
472
py
H, W = map(int, input().split()) a = [] for _ in range(H): a.append(input()) dp = [[0]*W for _ in range(H)] dp[0][0] = 1 for i in range(H): for j in range(W): if a[i][j] == '#': continue if i + 1 < H and a[i+1][j] == '.': dp[i+1][j] += dp[i][j] dp[i+1][j] %=...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com