blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
33db11aceab4ec4e476e34730279b35203f78b6a
e0943ddbd3af5e5245001b2686b92d3c6dd7c410
/pages/cart_page.py
b7d852d7bf3f6c619524c642071c8398695255f8
[]
no_license
lion7500000/TEST1
50e001c77e9733a2a11dc72b271a3c4173af4ef6
3d10809c2aef7b261a61512b13140216d11578d7
refs/heads/master
2020-12-28T00:35:55.214271
2020-02-21T17:41:10
2020-02-21T17:41:10
238,121,707
0
0
null
null
null
null
UTF-8
Python
false
false
1,060
py
from pages.base_page import Page from selenium.webdriver.common.by import By class CartPage(Page): CART_BTN = (By.CSS_SELECTOR, "span.btn-primary") EMPTY_CART_BTN = (By.CSS_SELECTOR, "a.emptyCartButton") #CONFIRM_EMPTY_CART_BTN = (By.CSS_SELECTOR, "div.modal-footer button.btn-primary") CONFIRM_EMPTY_C...
[ "lion7500000@gmail.com" ]
lion7500000@gmail.com
61fb77a28bf6cafa8abe605cd779efcf83e5e63c
cf96476243618af67234eafa72f73a48f5c0b00b
/cjb/activate/bin/pip3.7
063f1e9b2bc8118d396087e05d20e10b8e5fe610
[]
no_license
zzazan96/diet
073bad54cb4238a2308265e691f5ecb6ebbfb155
824155f55aca520c5f1457c064327ae8fe74d33f
refs/heads/master
2023-07-12T12:25:34.896738
2021-08-16T12:43:13
2021-08-16T12:43:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
7
#!/Users/scarlett/diet/cjb/activate/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "b0522033@gmail.com" ]
b0522033@gmail.com
f3310d715e12cd7c439a777de5477b3d3be9c62a
c61cf7fee2aa94b10becdfe19f87d1d0bb1e2c4c
/src/main.py
daaf0c8877f33a6549f2c7ac2495da3937f1d787
[]
no_license
samalabhialsh/learning_git
30eae66779572f5ecac03d0dbe2dba547b071463
29c74512bf5e167e6b4f491898625761f16f3127
refs/heads/master
2020-05-16T05:54:30.067053
2019-04-20T17:45:22
2019-04-20T17:45:22
182,830,550
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
# todo : what a class # ensure yo have commit
[ "samal.abhilash@gmail.com" ]
samal.abhilash@gmail.com
34250fbbb60f8d96d2fde3d50ac954b2ae7d10ae
20a14e99a71bedc22742ddb64291d224d0c9e2fc
/Term5/DC/Lab2.4/client.py
7f0646cec08df6e099d70cfc6b17a35575448fe4
[]
no_license
keyclicker/labs
f0cd8ed2261204ff7c42769a9fc0b0d7fa33d842
45692d9e2b17253aec061d386ad524f829cbd633
refs/heads/master
2023-05-11T16:18:36.693061
2023-05-05T08:51:12
2023-05-05T08:51:12
207,407,019
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
import Pyro4 ns = Pyro4.locateNS() uri = ns.lookup("db") o = Pyro4.Proxy(uri) def _exec(pref, fun, *args): print(pref, args, ":", fun(*args)) _exec("add_airline", o.add_airline, 50, "Name", "City") _exec("add_flight", o.add_flight, 98, 50, "From", "To") print() _exec("update_airline", o.update_airline, 50, "E...
[ "kolchikcv@ukr.net" ]
kolchikcv@ukr.net
f808f5f5161ea2f01de5a8408fa274423f9ebdaf
bc2c968c23f2ece433f1c47b6125567c33468943
/YOLOv3_from_Scratch/model.py
3f3e0ca4f365862864e8ec5983ac0d3b79a9e3e1
[]
no_license
pykwok/Pytorch_CV_Models_from_Scratsh
b310bf3c2e502074fe559bc6bde32cf907c43ad8
748608ce812720b65083d830189785429dd233b3
refs/heads/master
2023-07-09T07:38:45.909052
2021-07-28T04:49:02
2021-07-28T04:49:02
390,217,725
0
0
null
null
null
null
UTF-8
Python
false
false
10,051
py
import torch import torch.nn as nn # 1. Tuplel: (out_channels, kernel_size, stride) # 2. List : -- "B" : 论文上的作者圈起来的“残差卷积块” "B" indicating a residual block # -- "1" : 重复的次数 # 3. Str : -- "S" is for “scale prediction” block and computing the yolo loss # -- "U" is for upsampling the feature map a...
[ "puyukwok@qq.com" ]
puyukwok@qq.com
8fcc453a6612ea1113a68a205f138930103fba04
353c0c43c2e0df39b7716818ff11905fc66be081
/virtual/bin/pip3.6
40e80a31e8eeb49f54c4285f10939f8da4086138
[ "MIT" ]
permissive
huguette135/Neighborhood
773e48987800331395c7c1041c810632414eddd4
d26042eb466379d81fcb674f6eda08e9bab3b177
refs/heads/master
2023-03-04T17:42:33.798425
2021-02-09T14:46:59
2021-02-09T14:46:59
336,979,024
0
0
null
null
null
null
UTF-8
Python
false
false
259
6
#!/home/huguette/Desktop/neighborhood/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "hyguetteumutoni@gmail.com" ]
hyguetteumutoni@gmail.com
c84ddf4da41f9c2db08ce89ab29e9bf4167f1205
11952e488001f2adf55fdf65cba35d3e74990bdd
/settings.py
ee42ac8a378aaa7ad885d1fb40b3bfbcf1b9e349
[]
no_license
JustNikhill/Website-using-Django
4bd029132f1ac848b82a6ba731c6155e4641fc0e
a93b2bce26d5d39efd86bd96f8d3d57356b0638b
refs/heads/main
2023-04-23T22:05:28.244070
2021-05-02T16:04:52
2021-05-02T16:04:52
359,555,675
12
1
null
null
null
null
UTF-8
Python
false
false
3,218
py
""" Django settings for pyshop project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ f...
[ "noreply@github.com" ]
noreply@github.com
6e7234d4031ee4d6e9d5025b4d8a1f4a09dbbbaf
9f68585c2ad4acaa0635b590d7a9d024c0cc65c1
/CV_ROI/extract_ROI.py
cc584c15ba5030624c18ab91cb9af19993fb4af1
[]
no_license
browserliu/RMB_TechDing
d74ccce9d52d592512939c90f11abb53b1b8d697
3f553a05aee273008ab91c1d6f8f5b1d9308e6c0
refs/heads/master
2022-04-14T15:06:43.748425
2020-04-07T09:06:36
2020-04-07T09:06:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,781
py
# -*- coding: UTF-8 -*- """ # version: python3.6 # author: TechDing # email: dingustb@126.com # file: extract_ROI.py # time: 2019/7/2 9:41 # doc: 使用OpenCV图像处理方式来提取RMB图像中编码所在区域(ROI) """ import os MODEL_PATH=os.path.abspath('./CV_ROI/Models/Face_Model.h5') import cv2 import numpy as np def model_predict_img(model, img_a...
[ "dingrui@broada.com" ]
dingrui@broada.com
6b6f961f2543b2498fce105a3dc9af2cc10ae65d
30e3624ca8dbded7a0d1f012aa5c6674d7b74ec6
/src/python/resources/grpc_server.py
980e6ece41386716a01ad1b38aa94b2311cc78c2
[ "BSD-3-Clause" ]
permissive
liangzz1991/taranis
af30c91525be83c5aa853af112f0b1985df12363
466666dad03e3a2011d053206fb450abd4e01845
refs/heads/master
2023-05-13T03:08:47.153436
2020-09-02T09:46:42
2020-09-02T09:46:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,159
py
# Copyright (C) 2019 Pierre Letessier # This source code is licensed under the BSD 3 license found in the # LICENSE file in the root directory of this source tree. """ GRPC Server """ import logging import time from concurrent import futures from threading import Thread import grpc from errors.taranis_error import T...
[ "pierre.letessier@gmail.com" ]
pierre.letessier@gmail.com
243b00fb792df0d908725a77d369f7a886e958ca
7319bdc1aa1edd9e37424da47264882753dda919
/monitor_nomina.py
fde617e7fa6aa3fb079d6c0dc9c7e6ee000411ae
[]
no_license
njmube/satconnect
4ff81ac132811d2784d82a872be34590f53021db
de421f546a6f7f4cc5f247d1b2ba91ac272bdcb9
refs/heads/master
2023-03-18T12:58:18.379008
2017-10-24T07:14:05
2017-10-24T07:14:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
# -*- coding: utf-8 -*- from LibTools.filesystem import Carpeta from slaves import SentinelNomina import settings if __name__ == '__main__': carpeta = Carpeta(settings.folder_nomina) sentinela = SentinelNomina(carpeta) sentinela.start_Monitoring()
[ "=" ]
=
cf868c8859e677ff8e62e32485a1042898d1de4c
1f8f3704e86cbda95c26057a947115ad32d643d7
/python/ex046.py
02824e97d4b663fce3d1060aedc6ab96c00d1be8
[ "MIT" ]
permissive
lucasdiogomartins/curso-em-video
21ac8f9c092112e541b1f76a93743b9de2ecfcb8
9da92b6255a11021f719a9e0ce994db639e1ac38
refs/heads/main
2023-07-02T04:12:32.799219
2021-08-13T23:27:38
2021-08-13T23:27:38
389,199,712
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
from time import sleep for c in range(10, 0, -1): print(c) sleep(1) print('BUM!')
[ "86007475+lucasdiogomartins@users.noreply.github.com" ]
86007475+lucasdiogomartins@users.noreply.github.com
bb98f35adc8e0f2ec79f4ea7a0b2314a9ec8bec0
0a85e9ecb51c89110794aeb399fc3ccc0bff8c43
/InterviewCake/Practice Problems/reverse_string_inPlace.py
482b60e1d1415f53519182dd35b2f0e7cd6af001
[]
no_license
jordan-carson/Data_Structures_Algos
6d246cd187e3c3e36763f1eedc535ae1b95c0b18
452bb766607963e5ab9e39a354a24ebb26ebaaf5
refs/heads/master
2020-12-02T23:19:11.315890
2020-09-15T01:23:29
2020-09-15T01:23:29
231,147,094
1
0
null
null
null
null
UTF-8
Python
false
false
421
py
STRING = ['a', 'b', 'c', 'd'] def reverse_string(string_list): left_index = 0 right_index = len(string_list) - 1 while left_index < right_index: string_list[left_index], string_list[right_index] = \ string_list[right_index], string_list[left_index] left_index += 1 r...
[ "jordanlouiscarson@gmail.com" ]
jordanlouiscarson@gmail.com
2d04eb4a6d7119cd114da0714ffeaa23551be0a1
ad5ad404d24f1ef195d069b2e9d36b1a22cfd25d
/kde/applications/kiten/kiten.py
68d4236f5c283e083b03af733ec7b7b92ed78a0d
[ "BSD-2-Clause" ]
permissive
arruor/craft-blueprints-kde
6643941c87afd09f20dd54635022d8ceab95e317
e7e2bef76d8efbc9c4b84411aa1e1863ac8633c1
refs/heads/master
2020-03-22T17:54:38.445587
2018-07-10T11:47:21
2018-07-10T11:47:21
140,423,580
0
0
null
2018-07-10T11:43:08
2018-07-10T11:43:07
null
UTF-8
Python
false
false
1,228
py
import info class subinfo(info.infoclass): def setTargets(self): self.versionInfo.setDefaultValues() self.description = "Kiten" def setDependencies(self): self.runtimeDependencies["virtual/base"] = "default" self.buildDependencies["kde/frameworks/extra-cmake-modules"] = "defa...
[ "vonreth@kde.org" ]
vonreth@kde.org
5867eadfdd7b174b5c35658d67afcf6e1dd59727
cb756c30bbb1f88d0168470460aafd9746361c72
/lesson_file_05.py
6b383326b9a8096a072430a2965944132128d960
[]
no_license
Shinrei-Boku/kreis_academy_python
fc215bdfa6dc9903ec3fb345d75cbd007bf080ea
ced1c4effcf9ce89c5ca88545f0dcaee872abf47
refs/heads/main
2023-05-27T06:39:25.273270
2021-06-08T17:03:55
2021-06-08T17:03:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
#kreis academy file操作 import string s = """\ 私の名前は $name です。 歳は $age です。 """ template = string.Template(s) contents = template.substitute(name='近藤',age='20') print(contents)
[ "kondou@kreis-inc.jp" ]
kondou@kreis-inc.jp
1065b7ee6d71f8b412d54e715c0c2b3734c8efb1
d0e8e7896f6ac8c82e1d2158ca59d64fbca24b11
/scramble.py
b6df1726134eab2dd8f3363b93bf59dbc5fb9b5b
[ "MIT" ]
permissive
mdhunter/random-python
e91f99b1261d71d6fb2e7456f7140ae2aeb9c922
81daa7077eb0fc8a417f006b6deb6a957108f266
refs/heads/master
2021-01-24T08:09:04.774024
2016-10-07T04:46:34
2016-10-07T04:46:34
70,199,591
0
0
null
null
null
null
UTF-8
Python
false
false
4,157
py
#!/usr/bin/env python3 """ Scrambles an image into blocks Copyright 2016 Mathew Hunter """ import argparse import random from PIL import Image class Scrambler(): """ A class that contains functionality to scramble an image using a simple block shuffling method """ # The number of horizontal a...
[ "mathew.hunter@gmail.com" ]
mathew.hunter@gmail.com
7b35ac2384529e8bb902194f56b1d0d824520edc
016109b9f052ffd037e9b21fa386b36089b05813
/hashP4.py
559f024f058f63f9e587e9c5a8b7a38c51b5ec47
[]
no_license
nsshayan/DataStructuresAndAlgorithms
9194508c5227c5c8c60b9950917a4ea8da8bbab2
2f7ee1bc8f4b53c35d1cce62e898a9695d99540a
refs/heads/master
2022-09-29T21:15:33.803558
2022-09-08T17:14:59
2022-09-08T17:14:59
73,257,752
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
A,k = map(int,raw_input().rstrip().split(" ")) nos = map(int,raw_input().rstrip().split(" ")) hashMap = [0 for y in range(1000002)] for i in range(A): hashMap[nos[i]] += 1 left = 0 right = 1000001 flag = 0 while left < right: if hashMap[left] == 0 or hashMap[right]==0: while hashMap[left]==0: ...
[ "nsshayan89@gmail.com" ]
nsshayan89@gmail.com
38a986a16c81beefac8e3c9216f635f9c05fdd36
b0345b816826afa275dc328c8308234c9536b507
/chapter16/class_variable_part2.py
8b40f96a5af92435850b10f282996d5b641b2ccd
[]
no_license
jaymin1570/PythonTutorial
1edf8436de41bdbecd378a6103b9172c60c8dd5a
f0bb9a76a0f6c5d1703bf105ff7c4107c6b78729
refs/heads/master
2020-11-29T06:01:53.274869
2019-12-25T04:13:59
2019-12-25T04:13:59
230,039,344
0
0
null
null
null
null
UTF-8
Python
false
false
724
py
class Laptop: discount_percent =10 def __init__(self,brand,model_name,price): self.Laptop_brand=brand self.Lpatop_model_name=model_name self.Laptop_price=price self.Laptop_name=brand +' '+model_name def apply_discount(self): discount=self.Laptop_price-((self.Laptop_p...
[ "jayminmakwana157@gmail.com" ]
jayminmakwana157@gmail.com
7091475a03d37a18e9d953f65307c93e950ce3ad
fee71dd79c16f8e4aa4be46aa25863a3e8539a51
/ear/core/bs2051.py
058eefc981611aa995294b0783b491c5ba08e367
[ "BSD-3-Clause-Clear" ]
permissive
ebu/ebu_adm_renderer
d004ed857b3004c9de336426f402654779a0eaf8
ef2189021203101eab323e1eccdd2527b32a5024
refs/heads/master
2023-08-09T09:13:06.626698
2022-12-07T12:22:39
2022-12-07T12:22:39
123,921,945
61
13
BSD-3-Clause-Clear
2023-08-30T17:17:05
2018-03-05T13:15:36
Python
UTF-8
Python
false
false
1,791
py
import pkg_resources from ..compatibility import load_yaml from .geom import PolarPosition from .layout import Channel, Layout def _dict_to_channel(d): position = PolarPosition(azimuth=d["position"]["az"], elevation=d["position"]["el"], distance=1.0) ...
[ "tom@tomn.co.uk" ]
tom@tomn.co.uk
5777d717f17ec91cd38fe5807faba4b2da0b9bf7
3defb855022314f768af12beb417b364cbb58e4f
/blog/models.py
5a3e8d67edbc4137e061c9f8494ef0acccc8f7c8
[]
no_license
CYetlanezi/my-first-blog
ec2fe3b2d18c2bf8063f5b8d36d1017e46a83275
099b1614af03c99de786cefb722b081b239e1d65
refs/heads/master
2021-01-10T18:12:08.756141
2016-02-27T23:25:38
2016-02-27T23:25:38
52,673,602
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
from django.db import models from django.utils import timezone #jwdkw class Post(models.Model): author = models.ForeignKey('auth.User') title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeField( default=timezone.now) pu...
[ "cymr_31@hotmail.com" ]
cymr_31@hotmail.com
1628b9d704c430771ffe07895f60f69d5d03c21c
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nntwelv.py
4e1af148e299d47bb87a0be2b829ebcc80cee86d
[]
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
2,600
py
ii = [('CookGHP3.py', 8), ('LyelCPG2.py', 4), ('MarrFDI.py', 2), ('RogePAV2.py', 11), ('CoolWHM2.py', 20), ('KembFFF.py', 1), ('GodwWSL2.py', 22), ('RogePAV.py', 4), ('SadlMLP.py', 6), ('WilbRLW.py', 15), ('WilbRLW4.py', 9), ('RennJIT.py', 15), ('ProuWCM.py', 4), ('AubePRP2.py', 28), ('CookGHP.py', 6), ('ShawHDE.py', 6...
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
89cf7f4a3c783d5bfcc7ce09e34dc0ce72854b8d
a7e2993776df55ddc8f17c483524e627591741be
/Question3_1.py
ac3b2cc7183ce87fe7368e790571715c83d276ba
[]
no_license
alu-rwa-dsa/week-1-list-complexity-fiona_wanji_dirac
02956ffafb732898e1089a90d1027c78485fbd74
dd5a6c2d6b012d552981674776744df6e3b756de
refs/heads/main
2023-03-01T12:51:52.661840
2021-02-02T17:56:32
2021-02-02T17:56:32
335,308,144
0
0
null
2021-02-02T14:03:45
2021-02-02T14:03:39
null
UTF-8
Python
false
false
153
py
# Question 3 # finding the maximum value in a list listA = ["apple", "banana", "candles"] print("The Maximum Value in this list is: ", str(max(listA)))
[ "mukuhifiona@gmail.com" ]
mukuhifiona@gmail.com
6a541d980a359c5dc3526b6cc3e3a9de9848afe5
d64db65e12c613518b4357178eebfb27b318f4c6
/song.py
a8efbb9437f5f99e8b3e468a2a7e6017df91e8e9
[ "MIT" ]
permissive
mozanunal/harmonica-note-converter
a4794db16698b06b1d136edfd2fedfafe3bf253e
aba9e248d2562e90622e7da5350175cfb8ee88cf
refs/heads/master
2021-07-16T06:31:35.849291
2021-06-21T11:36:44
2021-06-21T11:36:44
151,971,490
6
0
null
null
null
null
UTF-8
Python
false
false
1,975
py
from __future__ import print_function from musthe import * def convertNoteMap(noteMap): newNoteMap = {} for key, value in noteMap.items(): newNoteMap[key] = Note(value).number return newNoteMap class Song(object): def __init__(self, name): self.name = name self.noteList = [] ...
[ "mehmetozanunal@gmail.com" ]
mehmetozanunal@gmail.com
bb86e6cf9d5e401f16ddddb0dac811d9f2c57d11
950bdea00a3ea4090f5f90716359d9c2668d1695
/google/cloud/bigquery/job/__init__.py
4c16d0e20219be2ab776a41c971451cebbbdc381
[ "Apache-2.0" ]
permissive
akamil-etsy/python-bigquery
a01f19258e3522e459d8472315f9ea8b90dd8784
cf0b0d862e01e9309407b2ac1a48f0bfe23d520d
refs/heads/master
2023-07-03T22:15:17.427257
2021-08-05T14:59:15
2021-08-05T14:59:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,188
py
# Copyright 2015 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
[ "noreply@github.com" ]
noreply@github.com
a97f5084296f2d3ee5ab642a3f8b277181382173
8aa8d7f742eaba0f89d70ef42918e076be01bae6
/YR/week3/problem263.py
30a7b99b382dedbb7fbb099f89f217a9af37700a
[]
no_license
robin9804/RoadToDeepLearningKing
d88a49995b836cb49ce680a0d385a1bb2ae87e99
fe8695b0d8d7beb5d64d450806e7866a3b103875
refs/heads/main
2023-03-19T03:10:16.223113
2021-03-11T07:31:09
2021-03-11T07:31:09
325,275,554
1
0
null
null
null
null
UTF-8
Python
false
false
545
py
# problem 263 N, M = list(input("enter the ints : ").split()) N, M = int(N), int(M) def sum_list(l1, l2): lists = [] for i in l1: for j in l2: lists.append(i + j) return lists def func(N ,M): lists = [] if N == 1: if M in range(1, 7): return [[M]] e...
[ "noreply@github.com" ]
noreply@github.com
ec9c672ba561dc9a563055772efd8060d3f58b19
aaaf02ac5af827adfae7182f9e56648582ee65c7
/src/beam_search_best_para_old.py
b15fcdd8a04904b53d0bba279c1ae4b3b6d3d965
[]
no_license
LifengFan/Triadic-Belief-Dynamics
542c84d5e0c1e76a3457a6fab19d70a8885961c3
18a5e2a4435a3f847c87a7782a774dfe1e94d485
refs/heads/main
2023-06-30T08:25:51.951416
2021-08-03T13:18:17
2021-08-03T13:18:17
352,404,707
23
2
null
null
null
null
UTF-8
Python
false
false
38,421
py
import glob import sys from metadata import * from utils import * from sklearn.cluster import KMeans, SpectralClustering, AgglomerativeClustering, DBSCAN import argparse import pickle import numpy, scipy.io import torch import numpy as np import joblib import pywt from overall_event_get_input import * import joblib fro...
[ "lfan@ucla.edu" ]
lfan@ucla.edu
977f42b6e45aed18b75481bcd0ff35b2b08c1db3
7c95ce7736d2beffef02260e414a5c01930bf0e8
/tests/tac/arithmetic_correct.prg.tac
afc1f6d1dc02668c555110117def156669bb58e6
[ "MIT" ]
permissive
jhosoume/porygon_lang
27e6570e03481f4fe5c990a583a29812b5b67955
5fd1cc00f66d08f2301c978c9af716d83db1e3b9
refs/heads/master
2023-03-02T18:20:32.461494
2021-02-17T14:25:33
2021-02-17T14:25:33
292,926,255
1
0
null
null
null
null
UTF-8
Python
false
false
925
tac
.table .code mov $0, 8 main: add $1, $0, 3 mov $2, 40.000000 println $2 println '-' div $3, $2, 10.000000 mov $2, $3 println $2 println '-' mov $4, 1 add $6, $4, 4 mov $5, $6 add $7, $4, 7 mov $4, $7 add $8, $5, 42 add $9, $8, 8 mov $5, $9 println $5 println $4 println '-' mov $10, 0 and $12, $10, 1 mov $11, $12 add $1...
[ "ju.hosoume@gmail.com" ]
ju.hosoume@gmail.com
d54936556f9329e822f43ab88327ff24a0f715ff
54167cb4be1b9486b514b1b1ae6781ec6e6d388a
/build.py
865f4213ca09b550c06889dd98f43332545139d6
[ "MIT" ]
permissive
Le0Developer/autoreport
d352bee46d800864de794208bc61caf0017c1230
ead5e3f0fbf7d0c534f6425fba6bd6794c0fbbb2
refs/heads/master
2022-11-10T09:16:58.580170
2020-06-25T17:07:28
2020-06-25T17:07:28
274,971,717
2
1
null
null
null
null
UTF-8
Python
false
false
2,263
py
import subprocess, os, shutil, sys name = 'autoreport' kwargs = {} if '--debug' not in sys.argv: kwargs[ 'stdout' ] = subprocess.DEVNULL kwargs[ 'stderr' ] = subprocess.PIPE if shutil.which( 'moonc' ) is None: print( 'Unable to find `moonc` on path. Is Moonscript properly installed?' ) exit( 1 ) # ...
[ "leodeveloper@protonmail.com" ]
leodeveloper@protonmail.com
8b937f748ecd23a5a902c0f78026fc265309d665
6bbfd303dbacc21a2443e681aea5c1a1c21b872d
/pytorch/evaluation/evaluation_segm.py
e8c4b838a59872954ed5e09b055df73f0933ccfb
[]
no_license
gregoryperkins/PC-Reg-RT
fbba9d4f9c55b7e2e9068e8f8a55fc1eba3c76a8
7d70ca97019cc7ddc374ffd962e0f63391ec181d
refs/heads/main
2023-09-04T02:58:42.843287
2021-10-16T07:19:25
2021-10-16T07:19:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,348
py
import numpy as np import torch import SimpleITK as sitk def GetSD(predict,label): predict = predict.astype(np.uint8) label = label.astype(np.uint8) mask1 = sitk.GetImageFromArray(predict,isVector=False) mask2 = sitk.GetImageFromArray(label,isVector=False) hausdorff_distance_filter = sitk.Hausdorff...
[ "noreply@github.com" ]
noreply@github.com
f8d5dce88b9247d9a90d492f283f79cf33da1598
0b0f22b490472e9e547c97780c90434256e894aa
/BinomDist.py
83439537ac77ccac9d1da0726e19dbbf7b85b873
[]
no_license
adilsaju/hrank-py
fd679f7c9cb35c0734d56656cce61f6c282b525b
ae9b959fbffe7b1e2a4ccca01ae50107ab2f85bc
refs/heads/master
2020-08-13T18:24:27.423120
2019-10-14T14:32:25
2019-10-14T14:32:25
215,015,940
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
from math import factorial as fact p=1.09/2.09 # print(p) b=0 for i in range(3,7): b+=fact(6)/fact(6-i)/fact(i)*p**i*(1-p)**(6-i) print(b) print(f'{b:.3f}')
[ "adil.saju@flytxt.com" ]
adil.saju@flytxt.com
f20a8203b58d8a3599ccb48ae2374dc36be9b17c
7a9c04075c8520901458ad3ed1c971032cad94ab
/pemfc/setup.py
24ead4b4356bf1ef3602ae1ca8faa76c566e1cda
[ "MIT" ]
permissive
rupertpaulson/PEMFC-Model
0b05a41249c709606a81bcb00c00de452ab230fb
aec3d57a2d780dc95b2705c37644ec1e9d311d88
refs/heads/master
2023-04-24T12:32:00.017617
2021-04-28T18:30:01
2021-04-28T18:30:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,395
py
import os import sys from cx_Freeze import setup, Executable import pkg_resources # GUI applications require a different base on Windows (the default is for a # console application). base = None # if sys.platform == "win32": # base = "Win32GUI" PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__)) o...
[ "lukas.feierabend@gmail.com" ]
lukas.feierabend@gmail.com
7c5e77e8e8708914b94c95c7da9fc3574ad25c8c
a14795a79fd8f39cede7fa5eb86f9717b5c289c2
/backend/course/api/v1/serializers.py
977b3866deffb183b0133225485e9b022f8b7e3e
[]
no_license
crowdbotics-apps/dearfuturescientist-21123
fcdbe95a9cd9e8713198b6accbeeb56aa5b0b2d4
5b282411ebaf39580b938f6678afc8a36e34aba4
refs/heads/master
2022-12-30T20:23:25.888830
2020-10-05T19:00:56
2020-10-05T19:00:56
301,510,630
0
0
null
null
null
null
UTF-8
Python
false
false
1,622
py
from rest_framework import serializers from course.models import ( Recording, Event, Subscription, Course, Group, Module, PaymentMethod, SubscriptionType, Enrollment, Lesson, Category, ) class LessonSerializer(serializers.ModelSerializer): class Meta: model = Le...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
fcb2745a3b28acb9bdab55a49b61a805e5d2198f
55493112595d303d39b90ca9112e1d0a52f435e4
/WorkforceManagement/views/Computer_View.py
4fc447fa4d1e6adaa0a611f92c7069d1ab909d56
[]
no_license
NSS-Spontaneous-Spoonbills/Sprint2
a06c2ea08dbe58289984591b5ef412242924f86f
7fd603ee531556b32b100c5a9f109b0e9207f369
refs/heads/master
2020-03-25T11:38:55.449223
2018-08-13T21:00:35
2018-08-13T21:00:35
143,741,505
0
1
null
2018-08-13T21:26:08
2018-08-06T14:38:30
Python
UTF-8
Python
false
false
1,944
py
from django.shortcuts import render, get_object_or_404, redirect from django.utils import timezone from WorkforceManagement.models import Computer from WorkforceManagement.forms import * def Computer_List_View(request): """Displays all computers in the database Author: Erin Meaker """ computers = Comp...
[ "erinmeaker@gmail.com" ]
erinmeaker@gmail.com
008c40060f81f0ef48c112788bee069210b91464
ef906ddd1ed8d6a6c365428a6400ebb7bdafb9ab
/build/core_msgs/catkin_generated/pkg.installspace.context.pc.py
06b90a1e8dd92266ddf8fce8f5d53c2507cbc0a0
[]
no_license
Eugene-Jeon/myslam_ver1
af68a9b73cee30950a315c5acab48f6610cd8521
9b382e6580e1b9a4f3b8b7634b85f37a8e96da02
refs/heads/master
2023-01-02T13:07:56.714315
2020-11-04T08:11:42
2020-11-04T08:11:42
309,932,122
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs;geometry_msgs;sensor_msgs".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = ""....
[ "ejjun727412@kaist.ac.kr" ]
ejjun727412@kaist.ac.kr
c44442fa22b72533c3c5546504d0637dc5fa26f0
e2c37cd6a236ef51779e127c0ce09c4f7299a5b6
/AutoTest_Project_DRInland/multi_processframe/ProjectTools/common.py
995d0a01101237dc06f7f849d0d7b035b235321f
[]
no_license
Sinxs/airtest
78e2ccf796eceaa154765c234b13062a12e4caee
786b32c5ae7d579f2419df2459b8a4d1700b974a
refs/heads/master
2020-06-17T12:23:49.891069
2019-11-30T03:40:38
2019-11-30T03:40:38
195,922,885
0
1
null
null
null
null
UTF-8
Python
false
false
27,389
py
# -*- encoding=utf8 -*- __author__ = "Lee.li" # import xlwings as xw import smtplib import socket from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.header import Header import sys import re from airtest.core.api import * import json import numpy as np import configparser # ...
[ "157366763@QQ.com" ]
157366763@QQ.com
183b2cca5672ea6af6d3cf9b56a760a15a8e0b67
7595c5c3d9b7ec68e87a388b4ba0a67fba65416b
/STEP1_feature_selection.py
2a6c1829a89cfc618b5202d493510b00fc2f406d
[]
no_license
paul-baumann/SELECTOR
aa5769d54c67a168881ecdce8190f224d77a461d
0681665aaffe8fb194e715b241ba6df8e9fdd457
refs/heads/master
2020-09-19T21:29:28.641590
2017-03-17T20:11:38
2017-03-17T20:11:38
68,096,380
1
0
null
null
null
null
UTF-8
Python
false
false
11,590
py
#!/usr/bin/python # -*- coding: utf-8 -*- ############################################# # This class is an entry point for SELECTOR. # It allows specifying database address and # the experiments that should be executed. # # copyright Paul Baumann ############################################# import thread import thre...
[ "paul.baumann@tu-dresden.de" ]
paul.baumann@tu-dresden.de
4eafbe41f6fee575aa359ac6a6e2c5ad90173a6b
6fe7b54962042f95526b5c8cff12b88394bc63cc
/Intro.py
8ad175ca0fa03d7ed063fae35be75944eabe76e2
[]
no_license
elblogbruno/Warship.py
70aeb9c42a3296e60f65a74bdf6e3ae0ff09e114
e00d2ffb23971cfade2e6d17906ef0501d023b00
refs/heads/master
2022-06-14T07:35:45.740227
2019-03-29T18:27:01
2019-03-29T18:27:01
169,792,029
1
0
null
2019-03-29T18:26:51
2019-02-08T20:06:28
Python
UTF-8
Python
false
false
1,883
py
from __future__ import division from pyfiglet import Figlet from WarshipGame import * import os from asciimatics.effects import Scroll, Mirage, Wipe, Cycle, Matrix, \ BannerText, Stars, Print from asciimatics.particles import DropScreen from asciimatics.renderers import FigletText, SpeechBubble, Rainbow, Fire from ...
[ "elblogdebruno@outlook.es" ]
elblogdebruno@outlook.es
0f20818aacacd277b492468e80b7128771cc7584
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_97/1704.py
2ef79a2cad74434c186149c67d373ceeab96e152
[]
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
837
py
def areRecycled(number1, number2): recycled = False numero1 = number1 for i in range(len(number2)): numero1.insert(0,numero1.pop()) if numero1 == number2: return True return False archi = open("C-small-attempt2.in","r") cant = open("output.dat","w") cases = int(archi.r...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
4d7ab7bfcefd8572eb06e3978ebf7097d6c4a4f4
232fc2c14942d3e7e28877b502841e6f88696c1a
/dizoo/multiagent_particle/config/cooperative_navigation_collaq_config.py
59f41109f0f514f61ca8866df2a01ca581003b23
[ "Apache-2.0" ]
permissive
shengxuesun/DI-engine
ebf84221b115b38b4b3fdf3079c66fe81d42d0f7
eb483fa6e46602d58c8e7d2ca1e566adca28e703
refs/heads/main
2023-06-14T23:27:06.606334
2021-07-12T12:36:18
2021-07-12T12:36:18
385,454,483
1
0
Apache-2.0
2021-07-13T02:56:27
2021-07-13T02:56:27
null
UTF-8
Python
false
false
2,129
py
from easydict import EasyDict n_agent = 5 num_landmarks = n_agent collector_env_num = 4 evaluator_env_num = 2 cooperative_navigation_collaq_config = dict( env=dict( n_agent=n_agent, num_landmarks=num_landmarks, max_step=100, collector_env_num=collector_env_num, evaluator_env...
[ "niuyazhe@sensetime.com" ]
niuyazhe@sensetime.com
584b5a6b71b6b60458b433164a9881caae0eed66
03d733b0c6ed233ecfd47d984acce8b779bf345b
/Exercícios/Mundo 2/ex059.py
273c3698e4713b179f047e49533434010e3a9efb
[ "MIT" ]
permissive
gslmota/Programs-PYTHON
ccbc7aa758dfeb7ce0a011654fee62a8dd0f563d
cf6f98ded31e1bc32997ad6887d96e60975c3cad
refs/heads/master
2022-11-29T08:54:48.535215
2020-08-09T23:44:06
2020-08-09T23:44:06
274,794,244
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
# Jogo do Par ou Ímpar from random import randint vit = 0 while True: jpe = int(input('Digite um número: ')) npc = randint(1,11) soma = (npc + jpe) tipo = ' ' while tipo not in 'PI': tipo = str(input('Par ou Ímpar? [P/I]')).strip().upper()[0] print('Voce Jogou {} o computador jogou {} o ...
[ "gabrielsavio81@gmail.com" ]
gabrielsavio81@gmail.com
e28e54568e948672b8d93164c20139007a1b5bfe
093f50e4d8f619eeb2307c6d925d291830e8115d
/StacksAndQueues/stackofplates.py
f07d5bb5a5ecbc5123315536219cb1d36005b2ab
[]
no_license
cseydlitz/practice
e021889e182fdfcdd6d806e3c3856a15a65ddb47
b7c76c621bf18a33a9fc57991ff763c937d394fd
refs/heads/master
2022-11-29T00:08:30.196098
2020-08-07T02:25:00
2020-08-07T02:25:00
266,435,572
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
class SetofStacks: """Prompt: when a stack exceeded a value, create a new stack.""" def __init__(self): self.items_collection = [] self.items = [] def pop(self): return self.items.pop(0) def push(self, item): if self.is_full(): self.items =[] re...
[ "crseydlitz@gmail.com" ]
crseydlitz@gmail.com
94495ae9bda52bd44a846dc64ca184a3dab2436d
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/KISS/testcase/firstcases/testcase9_006.py
61760f5dab43c2ef13a77980e6ed785b691254ad
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
3,084
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
3b1e139a64a671372f265f7eaae95372f0ad68f9
cef5197f152cc467635a6c8c2e7e0c6a2519b78c
/XALT2/xalt_file_to_db_mod.py
d742bf24e694b86cd5d15cf7a4537872f02545bf
[ "MIT" ]
permissive
adityakavalur/slurm-docker-cluster
cc134bcec5247706d76dc9b75fddf2ca876f2167
d54703ddcab9d456be4743dae0f51daf3d549df5
refs/heads/master
2023-04-12T13:40:02.699694
2021-05-05T17:05:20
2021-05-05T17:05:20
299,394,194
0
0
null
2020-09-28T18:15:18
2020-09-28T18:15:17
null
UTF-8
Python
false
false
12,918
py
#!/bin/sh # -*- python -*- ################################################################################ # This file is python 2/3 bilingual. # The line """:" starts a comment in python and is a no-op in shell. """:" # Shell code to find and run a suitable python interpreter. for cmd in python3 python python2; do ...
[ "aditya@DOE7614168.local.dhcp.lbl.gov" ]
aditya@DOE7614168.local.dhcp.lbl.gov
acf9152aed982fcac24aa9534713bc19bd3c9e07
2c7949e01a91506c23d380e7d79e4a89e047f80f
/server/multiupload.py
67410a01792463a77484aa30834a10f779d24425
[]
no_license
a1xndr/ec504-project
acc3230c4b5b7085ea3ee4483ac7c42fca35f46f
414f28cdde597188b42054be89ca202178f093a7
refs/heads/master
2021-04-12T09:03:21.167275
2018-05-10T21:09:23
2018-05-10T21:09:23
126,352,096
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import sys import argparse from uploadr.app import app parser = argparse.ArgumentParser(description="Uploadr") parser.add_argument( "--port", "-p", type=int, help="Port to listen on", default=2006, ) args = parser.p...
[ "alxndr@bu.edu" ]
alxndr@bu.edu
57121db32dc71bee051c58f2448ac93e1d65df5e
15226505515f59829203b19837d7ac963146c10e
/codeforces/problemset/1300A/soln.py
89955908056effb342c1c21e59485134655b861d
[]
no_license
rgab1508/challenges
c26a6df44c715eeb506662cdeb69db6da7d10fb5
48eaadab9f20bc5779ff901dfd5e7dbaf90c66f7
refs/heads/master
2021-07-08T06:44:57.433927
2021-05-04T07:59:09
2021-05-04T07:59:09
242,348,442
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
import random t = int(input()) def mult(a:list): m = 1 for i in range(len(a)): m *= a[i] return m def fix_arr(a: list): pass for it in range(t): n = int(input()) a = list(map(int, input().split(" "))) c = 0 for i in range(n): if a[i] == 0: a[i] += 1 ...
[ "rgabriel1508@gmial.com" ]
rgabriel1508@gmial.com
e033711077ed0c62c253ab1bb6999b26c97df1f4
5d30a3b495c7c44e1328f7c23b7e37a43d35a789
/bot/bot_service.py
d83a385a2739a57dd1149881afa9abf95e37a1d7
[]
no_license
seungwoonlee/clien_bot
ab5f4934e0fa8f9545ab7f5f9d2b2864a5cacc0d
1d7f6e379326cacf64684d9834f86a8014223283
refs/heads/master
2020-05-24T01:39:36.661568
2019-05-13T08:36:25
2019-05-13T08:36:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,175
py
import json import logging from functools import wraps from threading import Thread import pika import telegram from telegram.error import Unauthorized from telegram.ext import Updater, CommandHandler from bot.data_service import DataService from bot.env import Environments class Bot(object): class Decorators...
[ "blurblah@blurblah.net" ]
blurblah@blurblah.net
9eddcc94dddbf71297ccedb6d4b86131d4417d32
bd73e20283ede1dfb0e52239ee762aaa80e11283
/lesson6_step10.py
e1a9160893032af8dac4439e22b0a5bf1e7cdbbb
[]
no_license
HimariMinami/stepik---auto-tests-course---Selenium-and-Python
586e454e9e2accd76f70fa269a9ac2ff7d9811ac
f62c130818b4e2141a400ed8093f4cb14ec95a96
refs/heads/master
2022-02-24T04:54:02.757334
2019-09-12T12:53:41
2019-09-12T12:53:41
206,775,676
0
0
null
null
null
null
UTF-8
Python
false
false
1,603
py
from selenium import webdriver import time try: link = "http://suninjuly.github.io/registration1.html" browser = webdriver.Chrome() browser.get(link) # Ваш код, который заполняет обязательные поля input1 = browser.find_element_by_class_name("first") input1.send_keys("Ivan") input2 = brows...
[ "nasta30051997@gmail.com" ]
nasta30051997@gmail.com
b44993437a675fb60000cdcc2f6cce1d3fb234c0
4d5e2e158b88a80c33096834c1464f45eacf9b24
/homePage/views/tutorial.py
09c329b200652a6a2f5028fb52f1cb7bf32ac6eb
[ "Apache-2.0" ]
permissive
bmackley/ancientassyrian
337286073d5e976c184aadf5b0c4fd0e88321ee4
baaf973a1162765d964f613e8bd839ef8cc3ea60
refs/heads/master
2021-03-27T14:33:21.686574
2016-03-25T22:48:15
2016-03-25T22:48:15
52,554,232
0
0
null
null
null
null
UTF-8
Python
false
false
3,302
py
from django import forms from django.conf import settings from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.contrib.auth import authenticate, login from django.conf import settings import decimal, datetime from homePage import models as m from django.contrib.auth import logout from . impor...
[ "benjaminmackley@gmail.com" ]
benjaminmackley@gmail.com
29ef78376dd563998f38b02a60deaeb27c911a9b
ec84daf26e137b46fa77c18750c99e886ce8c6db
/upgradedDiskaun.py
6022d8d2051d8a0079196415a5c74c9c28432ee3
[]
no_license
SharvahGobithasan/Kad-Diskaun-F2-ASK
8eeb272f6f457765c3da42a2293f47b6dc9a4ed1
8575769a413daaaea28b62874c0595f5aa31ff6a
refs/heads/master
2022-10-15T07:44:45.786304
2020-06-11T07:49:31
2020-06-11T07:49:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,002
py
''' sharvah 11/6/2020 ''' from os import system system('cls') # to clear the screen kad = input("Masukkan jenis kad diskaun anda:") x=kad.casefold() #print(x) try: while True: if x == "kad premium": mata = int(input("Masukkan mata ganjaran kad anda:")) if(mata >= 500)...
[ "noreply@github.com" ]
noreply@github.com
83c63b60c22628725f344b1bf4635e30bbf5aae9
577fd6f5ce00ba4b530937e84f3b426b30cd9d08
/Checkiolearn/Polygon/sun_angle.py
ecd226f204d9bf718eb6cd5d5451c14c7f50b0f1
[]
no_license
YxiangJ/Python
33e2d0d4c26ce35ccd3504b73de15e45adb6946c
bcb1a0ace39fbcbe868a341652085c0ddf307c17
refs/heads/master
2018-09-24T08:24:13.692535
2018-06-07T01:11:00
2018-06-07T01:11:00
126,120,268
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
def sun_angle(time): # replace this for solution l = time.split(':') result = (int(l[0]) - 6) * 15 + int(l[1]) / 4 if int(l[0]) > 18 or int(l[0]) < 6: return "I don't see the sun!" else: return result if __name__ == '__main__': print("Example:") print(sun_angle("07:00")) ...
[ "284953505@qq.com" ]
284953505@qq.com
699b7062a1c9a0e705a481a5c8cf42e5a18dc7f6
ef20884169d10ec9ac4d1d3b77ee35245d248294
/practice/first_step_with_tensorflow/kmean_create_data.py
b95cc97c8c9d36f85fbdcbe9af721f29fd09ec7d
[]
no_license
heaven324/Deeplearning
64016671879cdf1742eff6f374cfb640cfc708ae
a7a8d590fa13f53348f83f8c808538affbc7b3e8
refs/heads/master
2023-05-05T08:54:27.888155
2021-05-22T08:25:47
2021-05-22T08:25:47
188,010,607
1
0
null
null
null
null
UTF-8
Python
false
false
340
py
import numpy as np num_points = 2000 vectors_set = [] for i in range(num_points): if np.random.random() > 0.5: vectors_set.append([np.random.normal(0.0, 0.9), np.random.normal(0.0, 0.9)]) else: vectors_set.append([np.random.normal(3.0, 0.5), np.random.normal(1.0, 0.5)]) # 난수 생성 확인 #print(vect...
[ "wjdtjdgh2005@gmail.com" ]
wjdtjdgh2005@gmail.com
523ec7af329f9d30feb8db299d7b11428588618e
f6337f3f1156a6bcea46201eca0dd4fc3b52bcdd
/dante/config.py
04021686c923dfe4465c694ef946a983639d01fc
[ "Apache-2.0" ]
permissive
sbg/dante
c43cf8134f51cd7b8fe4ae9184b1376b359bfc6c
104543c3ccb5e762d3e9cd6e8fa04c5fa91e2227
refs/heads/master
2021-01-15T10:29:25.735400
2019-10-02T10:05:47
2019-10-02T10:05:47
99,581,458
9
5
null
null
null
null
UTF-8
Python
false
false
8,384
py
import os import json from copy import deepcopy from collections import OrderedDict from configparser import ConfigParser class Config: PARENT_DIR = os.path.abspath(os.getcwd()) CONFIG_FILE = os.path.join(PARENT_DIR, 'setup.cfg') SECTION = 'dante' GRAPH_ATTRIBUTE_SECTION = 'dante:graph_attributes' ...
[ "dejan.knezevic@sbgenomics.com" ]
dejan.knezevic@sbgenomics.com
8359e06a1051806061634ed990aabd4bfe599351
1a4722073be8c36562888dd9db694e30e2c4fa2f
/gacha/logging/log_base.py
92589da622ccee06393868946d2b4ed4df756844
[ "MIT" ]
permissive
colorstheforce/gacha.py
9258b080647efe1b03145ab40438c0bbbf5b4801
946f31adb40f3184ce4ddd447439bbd5421d3506
refs/heads/main
2023-02-08T04:46:27.301147
2021-01-05T00:10:18
2021-01-05T00:10:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
from .log_level import LogLevel class LogBase: def __init__(self, log_level: LogLevel): self.log_level = log_level def write(self, level: LogLevel, message: str): raise NotImplementedError def debug(self, message: str): self.write(LogLevel.DEBUG, message) def info(self, messa...
[ "rrexor@gmail.com" ]
rrexor@gmail.com
263ca80ed3ebdcc465692fef40cd71b494ac004c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03807/s835726532.py
c603899438bd501bb5871b424daa8724dfe35dfc
[]
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
164
py
N = int(input()) a = list(map(int,input().split())) odd = 0 for i in range(N): if a[i] % 2: odd += 1 if odd % 2: print('NO') else: print('YES')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7f4df28cde0459f92fa2c4450f65da050a157ffc
de4f45e415f3262fdb3a897d24882301a5305cbd
/tests/tkimgloader_tests/test_editor.py
36d34844ba256ca6d3b2fb2d8ff31ef24565a6cf
[ "MIT" ]
permissive
ericziethen/tkimgloader
2bef695a634db51141c99accddd2e85c2704e212
66ae55b0c77c0d347a24bf78b92cdfc9d6907d01
refs/heads/master
2022-05-17T17:30:13.084383
2020-03-22T00:17:21
2020-03-22T00:17:21
239,040,650
0
0
MIT
2022-03-12T00:15:44
2020-02-07T23:29:49
Python
UTF-8
Python
false
false
1,464
py
import os from tkinter import filedialog import tkimgloader.scripts.editor as editor SAMPLE_DIR = R'C:\Projects\This Project' REL_FILE_PATH = R'SubDir\File.json' SAMPLE_FILE = os.path.join(SAMPLE_DIR, REL_FILE_PATH) def editor_init_mock_returns(monkeypatch): def mockreturn(mockself): return None mo...
[ "eric@home.com" ]
eric@home.com
c86f70bdcf4470203ca1dc33afc5bd310c8f1884
f39d4d63cc588ebbf64fca114a9fdeec123572b3
/Experiments/baseline_unet_none_all.py
92a95f8627593ef23989edd338db4ee2e1574a9c
[]
no_license
Ravimk07/Low_rank_attention_OCT
54aeb70d42e52b06929d0ce8b4ef1735f5998eae
1dbdca82615875159d368ba09b91be07d1c633a0
refs/heads/master
2023-02-26T03:13:21.389342
2021-02-01T09:39:54
2021-02-01T09:39:54
371,002,842
1
0
null
2021-05-26T11:02:47
2021-05-26T11:02:46
null
UTF-8
Python
false
false
835
py
import torch import sys sys.path.append("..") # =================== from OCT_train import trainModels torch.backends.cudnn.deterministic = True torch.backends.cudnn.benchmark = False if __name__ == '__main__': # trainModels(model='unet', data_set='ours', input_dim=1, ...
[ "rmapmxu@ucl.ac.uk" ]
rmapmxu@ucl.ac.uk
eb18c07b3db4ac0a4b01868b44cf2c474b068369
dbbe32ca6dbf8b3990f7848ab1c0639b1325f16e
/scraping.py
c8b92c48206a5c03716094770029f75b7ef96e6b
[]
no_license
aapatel96/nyt_scraper
ab346b1a85263d1c312871d72d7bdf62cf9605e5
1c869e356b5a23df96ce4121823b3315d2fa06d8
refs/heads/master
2021-05-05T18:16:19.547829
2018-09-19T02:02:31
2018-09-19T02:02:31
103,596,416
0
0
null
2017-09-15T00:46:16
2017-09-15T00:46:16
null
UTF-8
Python
false
false
980
py
import pymongo from lxml import html import requests import re import time ''' timestamp = str(time.time()) filename = 'nytimes_data_' + timestamp + '.txt' textfile = open(filename, 'w') ''' def scrapeText(link): ##Retrieve the page using https get method page = requests.get(link) ## create...
[ "patelarnav96@gmail.com" ]
patelarnav96@gmail.com
984769b8bfd917b7f3a450664dda8ca833caabdc
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/components/safe_browsing/content/web_ui/DEPS
c4dfe28ac40a5b9fd60086f5f0bb2d45f1b6d99f
[ "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
Python
false
false
409
include_rules = [ "+components/enterprise/common/proto/connectors.pb.h", "+components/grit/components_resources.h", "+components/password_manager/core/browser/hash_password_manager.h", "+components/user_prefs", "+components/safe_browsing/core/proto/csd.pb.h", "+components/strings/grit/components_strings.h",...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
c4396f5c7741fd012d68623efe57df5b5b7e569b
52000f39a52ad81bd2c49a205b21418795cd6cd7
/Linear and Nonlinear SLAM/problem_set/nonlinear.py
3a36a38c244bbb6b30db7a55cd54ee3e7fd9a416
[]
no_license
manikandtan-ck/Robot-Localization-and-Mapping
4fb3821fc57c86acc3b03b4b8ce26b899967adfe
2a6b005aa1565453f3212c94740744cf5bc6c074
refs/heads/main
2023-05-02T14:52:37.878760
2021-05-28T16:48:09
2021-05-28T16:48:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,700
py
''' Initially written by Ming Hsiao in MATLAB Rewritten in Python by Wei Dong (weidong@andrew.cmu.edu), 2021 ''' import numpy as np import scipy.linalg from scipy.sparse import csr_matrix from scipy.sparse.linalg import spsolve import argparse import matplotlib.pyplot as plt from solvers import * from utils im...
[ "yuqishun1998@outlook.com" ]
yuqishun1998@outlook.com
c14d81b13ff0bfca027e09587f8f586914771894
8051c715e86095c1a0f2d6dcee78150417562d00
/app/api/response_api.py
8ea2f772957ae7aa5d8b6a8b84bed6bcac25e956
[ "BSD-3-Clause" ]
permissive
minkione/Apfell
45bd47249afa59389ab8237558c52d3f083cae29
096b6524c44b0673f11d18bd2388193d074380d6
refs/heads/master
2020-03-28T12:22:37.741190
2018-09-10T02:42:06
2018-09-10T02:42:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,766
py
from app import apfell, db_objects from sanic.response import json from app.database_models.model import Task, Response import base64 from sanic_jwt.decorators import protected, inject_user from app.api.file_api import create_filemeta_in_database_func, download_file_to_database_func import json as js # This gets all ...
[ "codybthomas@gmail.com" ]
codybthomas@gmail.com
95ee687b93fed84377a920004fe7c683bc76f0b0
cd65b46dddbc0749ed0204031c8b92b65d8eddc4
/bad/image_preprocess.py
3529d3b7bc01def72780b9e395125a3b97f5b736
[]
no_license
yuvrajdalia/posture-assistance
76d0b35bea6f1aee6da9249e9ffbd8c95319ee55
587ee0d1bee808c02200ca2e2f9dee451ea8b976
refs/heads/master
2022-11-12T21:54:56.394413
2020-06-28T16:40:56
2020-06-28T16:40:56
275,626,300
0
0
null
null
null
null
UTF-8
Python
false
false
2,327
py
from matplotlib import pyplot as plt import os import pandas as pd from gluoncv import model_zoo, data, utils from gluoncv.data.transforms.pose import detector_to_simple_pose, heatmap_to_coord detector = model_zoo.get_model('yolo3_mobilenet1.0_coco', pretrained=True) pose_net = model_zoo.get_model('simple_pose_resnet1...
[ "yuvrajdalia98@gmail.com" ]
yuvrajdalia98@gmail.com
ae6e03e53cdd7bd682948a5cc9423891a77a455a
74714db0d28d849a974838b18545914747d9b7b8
/PyTest/test_logging.py
fcd37e710f11e6023cb063fec0c40b752d2d3908
[]
no_license
rahusingh1/AutomationRS
e93f070c8e6e03f6a6205730800fd754b2b24109
96b5bdd692364c69f53162ff002a9031faa5b25c
refs/heads/main
2023-08-05T02:17:33.026102
2021-09-19T09:46:37
2021-09-19T09:46:37
394,286,294
0
0
null
null
null
null
UTF-8
Python
false
false
2,072
py
import logging def test_loggingDemo(): logger = logging.getLogger(__name__) # create object to print the logs filehandler = logging.FileHandler("logfile.log") # create object where to print # used to define the format of logs. # asctime is a variable that wrapped in % so asctime executed at run tim...
[ "myacc2580@gmail.com" ]
myacc2580@gmail.com
f14fb0928eff57f50aaf3c6b9771a0b547e9facd
691394498d5324eab8ed5b71682f75c9b4c3d758
/Problem46_ProjectEuler.py
dee02d2074ab971e1d3eb8a22110d59fd25c741e
[]
no_license
pratyaydeep/Python-programs
67a1ac640f5a5d2b192011847f120e8c2137eeeb
99c0427fb3ab18030ee810dc61d9c51fc505da60
refs/heads/master
2020-04-13T06:08:29.808713
2018-12-08T15:02:07
2018-12-08T15:02:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
def prime(n): if n <= 1: return False elif n < 9: for i in range(2,n): if n % i == 0: return False break else: return True else: for i in range(2,int(n ** 0.5)+1): if n % i == 0: ...
[ "noreply@github.com" ]
noreply@github.com
4ef0a26a6bf9821f4d1258569482c2b9781bc3ef
ba5377e5adf9f14944c0827166e3d17bb0aea64e
/26class_04.py
cfeb596a9a586b36d557816a855e3f06d1db0f54
[]
no_license
ArhamChouradiya/Python-Course
34aaaa780cdb9beef2722d15c7e1c73dd2053323
503f3c3832617b818f061e3db4cd0f5e2ca24f52
refs/heads/master
2020-12-06T01:28:01.926712
2020-01-07T10:32:55
2020-01-07T10:32:55
232,300,438
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Aug 4 13:15:19 2019 @author: arham """ class student: major= "CSE" def __init__(self,rollno,name): self.rollno=rollno self.name=name s1=student(1,"JOhn") s2=student(2,"jane") print(s1.major) print(student.major)
[ "noreply@github.com" ]
noreply@github.com
33ba309fa7b283c7bca90cf230299060040928be
1d0097e25c983c764be6871c4e9d19acd83c9a6d
/llvm-3.2.src/utils/lit/lit/Util.py
f29480900ce76ca519ff720add0e93b93a9bacd9
[ "NCSA", "LicenseRef-scancode-unknown-license-reference" ]
permissive
smowton/llpe
16a695782bebbeadfd1abed770d0928e464edb39
8905aeda642c5d7e5cd3fb757c3e9897b62d0028
refs/heads/master
2022-03-11T23:08:18.465994
2020-09-16T07:49:12
2020-09-16T07:49:12
1,102,256
50
10
NOASSERTION
2020-09-16T07:49:13
2010-11-22T12:52:25
C++
UTF-8
Python
false
false
4,325
py
import os, sys def detectCPUs(): """ Detects the number of CPUs on a system. Cribbed from pp. """ # Linux, Unix and MacOS: if hasattr(os, "sysconf"): if os.sysconf_names.has_key("SC_NPROCESSORS_ONLN"): # Linux & Unix: ncpus = os.sysconf("SC_NPROCESSORS_ONLN") ...
[ "cs448@cam.ac.uk" ]
cs448@cam.ac.uk
fa390b34a6534aa22cfd97538d43abc2b537133b
daa48566b53d0e4c968f96baf48cce6454690ac7
/Spider/test.py
b7c71758ea9f7b7bee3abf470ebe7c91a2d1a4fb
[]
no_license
cjw876422081/web_spider
0ecc0a68aacf6f2236a641b786eb7d19f310e4cd
50e5997ee3a24e98349f018f1eb435bd1bea7893
refs/heads/master
2020-08-29T14:33:54.086597
2019-10-28T14:13:54
2019-10-28T14:13:54
218,062,532
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
#-*-coding:utf-8-*- from urllib import request import bs4 response = request.urlopen("http://www.xuexila.com/fwn/xindetihui/gongzuo/4510798.html") html = response.read().decode('gbk')
[ "876422081@qq.com" ]
876422081@qq.com
0cca339b321d19c57c835673ae248d9498a2e659
85f84bec4de006b374270383c26b88d3e59858ea
/dataset/FontImgDatasetBase.py
b2529fc88d7745d6f3f4f76bd1e322e123fdd101
[]
no_license
haznai/Font_Completion_Graph
cf76f8e5372769fd100b8e47090e72861f566bae
3bfbaaede14b5de207641a11e0c58baa52fc6952
refs/heads/master
2023-07-08T11:52:57.296032
2021-08-09T09:27:25
2021-08-09T09:27:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,262
py
import os import pickle import random import collections import numpy as np import torch.utils.data as data from PIL import Image from dataset.norm_img import load_img_dict from dataset.norm_seq import load_seq_dict, load_quant_dict import torchvision.transforms as transforms class FontDatasetIMG(data.Dataset): d...
[ "ye.yuan@tamu.edu" ]
ye.yuan@tamu.edu
06c70bfe440dff42352a060b456146f906d3767b
560822ea6b2de76b4344ffca2b0084a8da3b35a5
/test/test_utilities.py
4cad6da5cc77a7d570490a38a6dbeaf234165450
[]
no_license
gkunapuli/mdml-py
cca0af65bbf8c1dab4f8300a962dc4b895861e9e
9517cc78413ab5b639b0e28cf3aab0b03b2a02f7
refs/heads/master
2020-05-30T00:03:18.368858
2019-05-30T17:29:40
2019-05-30T17:29:40
189,450,149
4
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
import unittest import numpy as np import algorithms.utilities as util class RankOneUpdateTest(unittest.TestCase): def test_asymmetric_triplet_generation(self): n_source = 10 n_target = 15 xs, ys, xt, yt = self.generate_two_domain_data(n_source, n_target) example_pairs,...
[ "noreply@github.com" ]
noreply@github.com
ba897465ddc7bea4ef33e45bb292ec6dcdea5381
392495a85f77e72e7c3562576aa362d7860c17ee
/backend/setup.py
244a73c8d40ebb0836da93cb7d08757fdc76199d
[]
no_license
messa/aiohttp-nextjs-graphql-demo-forum
ef51c26720a6f67a36f08d5caeba4e2d9bef0332
38fb66d011faec881b184e132aa7347517ee99e6
refs/heads/master
2020-04-16T22:38:08.171305
2019-02-04T02:18:35
2019-02-04T02:18:35
165,976,811
1
0
null
null
null
null
UTF-8
Python
false
false
386
py
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='forum-backend', version='0.0.1', packages=find_packages(exclude=['doc', 'tests*']), install_requires=[ 'aiohttp', 'aiohttp-graphql', 'pyyaml', ], entry_points={ 'console_scripts': [ ...
[ "petr.messner@gmail.com" ]
petr.messner@gmail.com
8e8516567da050393095124d42c7601023b8cc02
70eef679af91823579963dfb33eb94358353da87
/evennia/utils/inlinefunc.py
8cc14a95895b753b1f9faddf1c1a673ef8191dc1
[ "BSD-3-Clause" ]
permissive
Pinacolada64/evennia
17e68f4f6b7ddcb4891256ceab2fbf02d185b9db
ed1b3ee8195cb93cd3382625d8d20d83d63c5322
refs/heads/master
2020-04-30T01:39:53.499431
2016-02-26T11:02:20
2016-02-26T11:02:20
52,920,172
1
0
null
2016-03-02T00:15:02
2016-03-02T00:15:02
null
UTF-8
Python
false
false
8,450
py
""" Inlinefunc **Note: This module is deprecated. Use evennia.utils.nested_inlinefuncs instead.** This is a simple inline text language for use to custom-format text in Evennia. It is applied BEFORE ANSI/MUX parsing is applied. To activate Inlinefunc, settings.INLINEFUNC_ENABLED must be set. The format is straightf...
[ "griatch@gmail.com" ]
griatch@gmail.com
b4789ea9ea16d8ca423e264f31a5abc00f5ed27f
fdde679c2252175d33bd82e87522d63c48b942b3
/iveBeenEverywhereMan.py
246c6db446b95debe1f92ffc79341ce0a2225463
[]
no_license
ChaseMorgan2001/KattisProblems
85a3142889b2a0f885a71214e2631b595d1e3e89
9ea99edc69adb3dd5bc2beb678cebeb60c24de7e
refs/heads/main
2023-04-06T10:07:13.400975
2021-04-10T18:31:55
2021-04-10T18:31:55
306,489,023
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
cases = int(input()) t = "a"*cases for i in t: s=[] trips = int(input()) n = "a"*trips cities = list() for i in n: city = input() cities.append(city) for i in cities: if i not in s: s.append(i) places=len(s) print(places)
[ "noreply@github.com" ]
noreply@github.com
2f24322b0f1035af9561273dcb755c914216736b
d5973b68cabb0f6775cc6cbf257653ed9d860d85
/argonaut/model/post.py
422192d93555b9c6329da6b1a5614011b929db4d
[ "BSD-2-Clause", "BSD-2-Clause-Views" ]
permissive
mountainlandbot/argonaut
7c103ec8e9cfd702c5f00f448ff40a3aee459c90
c8978a2bf64f5ab181c029af2b0765a25cbbd690
refs/heads/master
2023-03-19T00:37:24.694420
2012-03-13T21:23:52
2012-03-13T21:23:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,378
py
"""The post model""" from sqlalchemy import Column, or_ from sqlalchemy.sql import join from sqlalchemy.types import Integer, Unicode, UnicodeText, Date from argonaut.model.meta import Base, Session class Post(Base): __tablename__ = 'post' id = Column(Integer, primary_key=True) subject = Column(Unicode...
[ "jaywink@basshero.org" ]
jaywink@basshero.org
33a9522157798c987f60feb1e75125aa8b7fc82a
e38a1e48dc0c08af64e473bc4f5f1ea268002407
/Preparacao_dos_dados/remove_outliers.py
d063c246edf5990ea6fa5151618cfbc308297884
[]
no_license
guicornelli/pfc
6d277c92bd1b3487278eb0f6fca6a3199c081f1b
7502a1d288eb6392c8011fee0dbd90075796aa36
refs/heads/master
2020-04-04T21:57:50.993531
2018-11-06T01:09:08
2018-11-06T01:09:08
156,305,021
0
0
null
null
null
null
UTF-8
Python
false
false
1,172
py
import numpy as np def remove_outlier(values, times): # define a função com uma variavel de entrada fator = 1.5 # 1.5 é o fator de multiplicacao q75, q25 = np.percentile(values, [75, 25]) # retorna o terceiro e primeiro quartil iqr = q7...
[ "noreply@github.com" ]
noreply@github.com
9b1774fd8119b1bbeca86bf668133761b869002f
51f34f3ae85f770d33f49962ad21d3334900e5d9
/ApiTest/cfg/prod_conf.py
825b6a1c4dc18ee57f7cf63c6f0f22a6c499d08c
[]
no_license
FirelGef/mail_api_test
dec3da72d55b06c06f0c1aeb0442cb2de812bd3c
d86248a069de4b9cb8590389dee18f5291730483
refs/heads/master
2021-07-23T17:20:14.839618
2020-04-23T13:39:51
2020-04-23T13:39:51
150,568,492
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
protocol = 'https' farm = 'e.mail.ru' auth_farm = 'auth.mail.ru'
[ "gefestun@gmail.com" ]
gefestun@gmail.com
410aa5e90d452ce0c150cc25c78df4ee555a14c6
20c20938e201a0834ccf8b5f2eb5d570d407ad15
/abc094/arc095_a/7981214.py
7f6c3dcab7bd1fb3884adf64c039c5841bf608cf
[]
no_license
kouhei-k/atcoder_submissions
8e1a1fb30c38e0d443b585a27c6d134bf1af610a
584b4fd842ccfabb16200998fe6652f018edbfc5
refs/heads/master
2021-07-02T21:20:05.379886
2021-03-01T12:52:26
2021-03-01T12:52:26
227,364,764
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
N=int(input()) a=list(map(int,input().split())) b=sorted(a) ans=[b[N//2],b[(N//2) -1]] for i in range(N): if a[i] >= ans[0]: print(ans[1]) else: print(ans[0])
[ "kouhei.k.0116@gmail.com" ]
kouhei.k.0116@gmail.com
50a42d0ddd0cfd3c7a8fed644973d44ce7ca568e
6d2a55c9358a735669f06066c1fc1294528a2dc5
/androcg.py
f88f5c9d47808e38884173a640cb166e6e59b06a
[ "Apache-2.0" ]
permissive
dmuppiri/androguard
02548e96e05e462b8b437cf4c3714db1cfbc4710
b1ccfe11a4de596a114f6bc0f92a4c1d76cf297b
refs/heads/master
2020-03-12T17:42:48.828581
2018-04-21T20:11:57
2018-04-21T20:11:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,978
py
#!/usr/bin/env python3 from androguard.misc import AnalyzeAPK from androguard.core.androconf import show_logging from androguard.core.analysis.analysis import ExternalMethod from androguard.core.bytecode import FormatClassToJava import matplotlib.pyplot as plt import networkx as nx from argparse import ArgumentParser i...
[ "me@free-minds.net" ]
me@free-minds.net
3bea51c8b7af4f467a716a04d5aeb0d0cbec113c
3211227ed613bef10063e9ada4780bda40dc6d74
/src/reproducible/cache.py
2f62cbf9c4d4a935c2f461cd842a2ff99fafa3a3
[ "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "MIT", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
LachlanGunn/reproducible
24128a7552a3441014a924a0ce9113bf7c2c0724
0988ced254f52f99ed51dc63f3b5ac6d75efdff8
refs/heads/master
2021-01-21T12:35:19.005622
2017-09-13T06:24:37
2017-09-13T06:24:37
102,085,916
0
0
null
null
null
null
UTF-8
Python
false
false
3,438
py
#!/usr/bin/env python3 from __future__ import absolute_import, division, print_function, \ unicode_literals import os.path import pickle import reproducible import reproducible.data class Cache(object): pass class MemoryCache(Cache): """Memory-backed cache. MemoryCache provides a key-value objec...
[ "lachlan.gunn@unisa.edu.au" ]
lachlan.gunn@unisa.edu.au
272d69ada04ca5d2d1fc84952f10733e50ccda18
aaf0ae622738df951c7eeafbf20b8b6de36622ae
/node_modules/canvas/build/config.gypi
4403b58241bcac0ca22c7cfedb017630dea67b76
[ "MIT" ]
permissive
ganezasan/lambda-svg-to-png-fabric
9edf2cdc5b07e3ab8b53b3fe1e0a6a500586cef9
1de464f6270ed7b57939ff051a4b400183b5fceb
refs/heads/master
2020-05-29T08:42:58.608420
2016-10-02T14:39:48
2016-10-02T14:39:48
69,797,917
5
2
null
null
null
null
UTF-8
Python
false
false
3,744
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "gas_version": "2.23", "host_arch": "x64", "icu_data_file": ...
[ "boss@cheekit.com" ]
boss@cheekit.com
0e310d88fcfceac2312a159d2be0be14c3aeb4b7
a344184e98417473750d637906c717d72291d77a
/Simulation/forest_fire.py
2f2db83022d81f686a6a34865c1f4697289eb864
[ "MIT" ]
permissive
dashdeckers/Wildfire-Control-Python
c79af370ef1e6065cef22b92313f77ce4a216f64
8ace34e389b4d177b84efe964e8d327a82eb3ed6
refs/heads/master
2023-04-03T13:39:09.776862
2020-10-28T12:31:31
2020-10-28T12:31:31
174,835,169
2
0
MIT
2023-03-24T23:47:02
2019-03-10T14:31:27
Python
UTF-8
Python
false
false
3,721
py
from .constants import ( METADATA, ) from .utility import ( grass, dirt, layer, get_name, color2ascii, ) from .environment import ( World, Agent, ) class ForestFire: def __init__(self): self.W = World() self.METADATA = METADATA self.DEBUG = METADATA['debug'...
[ "dashdeckers@gmail.com" ]
dashdeckers@gmail.com
3df0428323b57cc88de0ee7226ebd300382dd1ef
7a968bade9602cb9ba2f4e994b0e8df65685651f
/prac8/silver_service_taxi_test.py
ef3730f5b48dfe46793da137518f192955859214
[]
no_license
vthang4799/CP1804practicals
4eeef6a9caf6513fe1ead666cc3224739ded5967
e4b8d4c3aeb2a6e52256eca34a58e3604ab1a4ac
refs/heads/master
2022-12-24T10:26:18.335443
2020-09-29T07:46:11
2020-09-29T07:46:11
283,714,883
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
from prac8.silver_service_taxi import SilverServiceTaxi def main(): silver_taxi = SilverServiceTaxi("Fast Taxi", 100, 2) silver_taxi.drive(18) print(silver_taxi) print("Current fare: ${}".format(silver_taxi.get_fare())) if __name__ == '__main__': main()
[ "vthang4799" ]
vthang4799
4c00485efe1951610673676ed0c3fe161d042837
c6d94644c10f2614b9242e62bfbaff2848f1a7db
/Bot.py
296db20cb1823227e728dbdea823d217a185711e
[]
no_license
FX196/JSTrading
ee308ddd3efbd28f3dbcd6175aff5a1f32e6103d
a81a67d051d401db026cda3d31306ef04f76c35b
refs/heads/master
2020-05-03T06:59:53.711763
2019-07-13T16:38:24
2019-07-13T16:38:24
178,486,613
1
0
null
null
null
null
UTF-8
Python
false
false
977
py
import time def import_module(module_name): """Helper function to import module""" import sys import os.path as osp import importlib sys.path.append(osp.join(osp.dirname(__file__), 'strategies')) return importlib.import_module(module_name) class Bot: def __init__(self, exchange, strategie...
[ "mikechen212@gmail.com" ]
mikechen212@gmail.com
28bdf11e78383b1bcbc1a3bb33cf6a446abf3117
b7cd5628c9559732b4426c94bd4a4eda65d5e992
/model/quadrature_rules.py
f4a6b7d5cfc262c1796da81e7d07903ecafde2e8
[]
no_license
o-smith/SphericalNeuralField
b7fe57e814723ed260a63bd80c372c9e0a89c5c7
b21d0ac6401ba38a69a2c412c017e90149040e3e
refs/heads/master
2022-01-15T14:27:53.383300
2019-05-09T10:10:42
2019-05-09T10:10:42
125,877,841
0
0
null
null
null
null
UTF-8
Python
false
false
11,680
py
#!/usr/bin/env python """\ C version: Dmitri Laikov F77 version: Christoph van Wuellen, http://www.ccl.net Python version: Richard P. Muller, 2002. This subroutine is part of a set of subroutines that generate Lebedev grids [1-6] for integration on a sphere. The original C-code [1] was kindly provided by Dr. Dmi...
[ "pmxos1@nottingham.ac.uk" ]
pmxos1@nottingham.ac.uk
640eaca5a9846336b9ed25da7da3de7dbf3bbf11
ce886756510fb064b6d3c0559e547542e3de8891
/l21/zombie.py
3af6b6da9fb862d18801463f7d7f71147a592ce6
[]
no_license
Nekot94/sprog
348b2cce012230cf59e85a7af5d8db8c4eecd7c0
a79f8c5e7cf0237b768f3a46732a72897fc50742
refs/heads/master
2020-05-21T02:01:37.608220
2017-05-05T12:01:34
2017-05-05T12:01:34
84,555,459
0
0
null
null
null
null
UTF-8
Python
false
false
1,622
py
class Weapon: def __init__(self,name,damage,count): self.name = name self.damage = damage self.count = count class Character: def __init__(self,name,hp, damage): self.name = name self.hp = hp self.damage = damage def attack(self, victim): ...
[ "noreply@github.com" ]
noreply@github.com
e3e25ce23370e068912110921559d559bca593e6
1a5c27bc6e2d39a258dd517d2dc3570c13e42a70
/flaskext/utils.py
ff2d1dcf02a01b52fcfe2121292f09a4dde4989a
[ "MIT" ]
permissive
fumingshih/flask-peewee
0f8e169ca7ab2d7ab437a5620a2ff2f082d668dd
4f44ec5583abba5099880a2a2af76404223a594b
refs/heads/master
2021-01-18T11:00:19.120283
2011-11-09T14:36:02
2011-11-09T14:36:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,083
py
import math import random import re import sys from hashlib import sha1 from flask import abort, request, render_template from peewee import Model, DoesNotExist, SelectQuery def get_object_or_404(query_or_model, **query): try: return query_or_model.get(**query) except DoesNotExist: abort(404)...
[ "coleifer@gmail.com" ]
coleifer@gmail.com
074f65b007b18514c4cebbd0794439daf535247b
fb3c49761c4771de6016f1fa54a940968ab06cb1
/home work 3.py
a3b872d8b9ff804da814d4e1eac6addf8658409c
[]
no_license
Brayson0215/nwe
3d78c1c5b5e890aea98ee3a44d989051ebb3fad7
16a813be35667fb86b39edd54476789235cd98e5
refs/heads/master
2020-04-19T02:05:59.499257
2019-01-29T03:47:57
2019-01-29T03:47:57
167,892,119
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
#to have particular thing on particular place commonly checking validity name=input("name") if name.isalpha()==True: print("valid") else: print("invalid") contact=input("enter the phone number") if contact.isdigit()==True: print("valid") else: print("Invalid")
[ "brayson9807006305@gmail.com" ]
brayson9807006305@gmail.com
bc0756bb7498f6d8d340d9b366dacbe3fe73d3be
1043dc391dcf64fa0af7cc559a8cbd93faa9d2b3
/models/schedule.py
294b753b5539578ba40f5701798b5e7a8f3a0c8b
[]
no_license
Zelwak/dip_school
a08c77a91f1a354898ff6e6463d7d7705a4bfcd9
4b2580ed8aa474fbb61226518ed9ada76a476570
refs/heads/master
2020-03-10T00:30:43.660883
2018-04-11T11:33:46
2018-04-11T11:33:46
129,083,427
0
0
null
null
null
null
UTF-8
Python
false
false
1,714
py
# -*- coding: utf-8 -*- ############################################################################## # # Gestion de lycée # Copyright (C) 2018 Gestion de lycée. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
[ "me@flavienchene.fr" ]
me@flavienchene.fr
bf8ae2d6cb7e2b76c836b4f5da0d012a0906d5b1
ebd8a1d0295b6c3569ca9ba63931be5300944023
/53-Maximum Subarray.py
be67fceae2077a76e6877d915269e58dd0d6b4d5
[]
no_license
WinterDing/leetcode
5428100adeb3687f16590ae6a07a4c2452cbaf7f
ae7d18964ec94658a76867eb78e4e39691cdf9fe
refs/heads/master
2021-09-04T06:02:15.276521
2018-01-16T14:40:26
2018-01-16T14:40:26
115,075,821
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
""" Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4,-1,2,1,-5,4], the contiguous subarray [4,-1,2,1] has the largest sum = 6. """ class Solution: def maxSubArray(self, nums): """ :type nums: List[int] ...
[ "flyawaywinter@126.com" ]
flyawaywinter@126.com
f987feb18613c6233b691f17ba56786226d2de05
0acba64de767f0c8c67932335f577218e4a3b12f
/src/facial_landmarks_detection.py
c7cfd59950462eccede311e443b0548aa8d0bd47
[]
no_license
gaethanL/Computer-Pointer-Controller
29e4cb493d79f32c62c4ba2d2031087d31b32be3
bff45869a67991a2c448b962ecd77284ad4871cf
refs/heads/main
2023-01-02T16:57:44.729873
2020-10-26T20:52:19
2020-10-26T20:52:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,005
py
import os import sys import logging as log from openvino.inference_engine import IENetwork, IECore import cv2 class Model_Facial_Land: def __init__(self, model_name, device, extensions=None): self.model_weights=model_name+'.bin' self.model_structure=model_name+'.xml' self.device=device self.extensions=exten...
[ "noreply@github.com" ]
noreply@github.com
989b0dc1105771ebbafb8e5abc5c3aab056a2f37
f6f28c7a87d8632596e364e0822e88fdaeab1774
/app/urls.py
3346da098eba312cccb0ea904d0385bbffdb8ffb
[]
no_license
Jagdeep02/Flixer
3b9ec9071cee11925c5431a4db808aedfbeb955e
6744bb9390d1b883e72baa8fcc04f2e5fdec4828
refs/heads/main
2023-08-16T03:03:38.478261
2021-10-21T12:19:46
2021-10-21T12:19:46
419,700,466
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
from django.urls import path from . import views urlpatterns = [ path('',views.home, name="home"), path('video/<slug>/',views.view_video, name="video"), path('become_pro/',views.become_pro, name="become_pro"), path('charge/',views.charge, name="charge"), path('login/',views.login_attempt, name="login_at...
[ "mailtojagdeepsingh@gmail.com" ]
mailtojagdeepsingh@gmail.com
63bd83adcb7f9700378098678b26a5b39b3d7a86
719853613b5b96f02072be1fde736d883e799f02
/server/intrinsic/management/commands/intrinsic_import_ec2.py
a6bd9aeef70b6ccd8ad1fe6dbb896cfbc53d5e39
[ "MIT", "CC-BY-2.0" ]
permissive
anmolkabra/opensurfaces
5ba442123586533a93eb29890fa1694e3efdbfe8
a42420083a777d7e1906506cc218f681c5cd145b
refs/heads/master
2020-03-20T01:11:05.182880
2018-06-13T14:55:45
2018-06-13T14:55:45
137,068,945
0
0
MIT
2018-06-12T12:32:53
2018-06-12T12:32:52
null
UTF-8
Python
false
false
1,615
py
import glob import time import timeit from django.core.management.base import BaseCommand from intrinsic.tasks import import_ec2_task class Command(BaseCommand): args = '' help = 'Import image algorithms run on ec2' def handle(self, *args, **options): indir = '/vol/completed-tasks' sched...
[ "sbell@cs.cornell.edu" ]
sbell@cs.cornell.edu
5ae7c68e192a1862b1a8cf601434c9bfe89785ab
e1c2f85eeba924c976825005031cf8223d6b5de2
/Quiz/QuizProblem8.py
08bf8e53d89b65f82bc6f1c0e26b4996e2dc4ac3
[ "MIT" ]
permissive
roshan2M/edX--mitX--introduction-to-computer-science-and-programming-with-python
887b49590d5fba06dfc266b4ad768279362bb817
81a7247e8442feddd624b5dbcd70cde1b58d2965
refs/heads/master
2021-01-20T09:14:23.798211
2017-08-27T23:37:04
2017-08-27T23:37:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
# Quiz, Problem 8 def satisfiesF(L): """ Assumes L is a list of strings Assume function f is already defined for you and it maps a string to a Boolean Mutates L such that it contains all of the strings, s, originally in L such that f(s) returns True, and no other elements. Remaining element...
[ "roshan.munjal@hotmail.com" ]
roshan.munjal@hotmail.com
86e8f4f54ed4fb50a015d53414330f61c6dcb94a
2b87db0ada3c2d016df891761855e9a9dc5b81fe
/Sorting/heapSort.py
18d406d72437c4f2b43ee938933219edc34e6afc
[]
no_license
drdcs/Algorithms-and-System-Design
9b201ba47bda14ca8fcd9aeddcfee760b3194f2d
656fafbd758c30f5bd7a73a7d677562d5ae1f39f
refs/heads/main
2023-04-11T10:25:02.992297
2021-04-22T05:57:10
2021-04-22T05:57:10
329,364,127
2
0
null
null
null
null
UTF-8
Python
false
false
705
py
def heapify(arr, n, i): largest = i l = 2 * i + 1 r = 2 * i + 2 # check if left child of the root exists and is # grater than root if l < n and arr[largest] < arr[l]: largest = l # check if riht child of root exists and is greater than # the root/lef node if r < n and arr[l...
[ "diptihdl@gmail.com" ]
diptihdl@gmail.com
413f76a927f5fa192a64286142e225ee997cda97
01a758b24ef4787f0d6eca545da9c89b03a8e905
/Python/Math/PolarCoordinates.py
d06897444c448bb0f337235124c61baf87015145
[]
no_license
Alladasaisandhya/Hackerrank-Solutions
a369c67050106edf64bb281754b3e729a6777347
a83b3989745559cb464853df370b2cbf62be90f8
refs/heads/master
2021-05-21T16:05:49.158817
2019-08-23T05:30:51
2019-08-23T05:30:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
''' Title : Polar Coordinates Subdomain : Math Domain : Python Author : Darpan Zope Created : Problem : https://www.hackerrank.com/challenges/polar-coordinates/problem ''' import cmath z = complex(input()) p = cmath.polar(z) print(p[0]) print(p[1])
[ "darpanzope@gmail.com" ]
darpanzope@gmail.com
08d112384c3e3747a8ab175efc365d4512faab60
a058124907db4ae8a21e3b4ba31b3fdd36359869
/22-maps.py
8c6c74d93f64e02d52e85036487a5220bea72427
[]
no_license
serenelc/python-tutorials
44a12f0379cfb089ef938f6a7bb5de4f5befe2c1
673c2fba59b4e2f53e41daa32a71ad16c6637770
refs/heads/master
2020-07-08T23:41:35.407117
2019-09-02T10:29:06
2019-09-02T10:29:06
203,813,558
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
from random import shuffle desserts = ['brownies', 'cookies', 'sticky toffee pudding', 'fudge'] def jumble(word): anagram = list(word) shuffle(anagram) return '-'.join(anagram) print(jumble("serene")) [print(x) for x in map(jumble, desserts)] print([jumble(word) for word in desserts])
[ "serenelc@outlook.com" ]
serenelc@outlook.com
6b0eb808039ef82503efbdeb23c34da08d129912
c0edcec7a7ce57be81a0fd41b2d79566d1b273bd
/accounts/views.py
71f861ab48b4823ef62c5840a30b0e98f0cff5a6
[]
no_license
churles/djangoblog
c06fa0d28b308584d4834e9f89843b44d6647787
582bc10d5666b7bc4445d0eb31edb63bbc411807
refs/heads/master
2023-08-26T23:07:36.567815
2021-10-30T14:36:50
2021-10-30T14:36:50
418,908,434
0
0
null
null
null
null
UTF-8
Python
false
false
1,034
py
from django.shortcuts import render, redirect from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth import login, logout # Create your views here. def signup_view(request): if request.method == 'POST': form = UserCreationForm(request.POST) if form.is_valid(): user ...
[ "ocana.churleslester@gmail.com" ]
ocana.churleslester@gmail.com
8ba756d5821de4f45cb0caa15f230ce83762ded8
2d248650ba1155c098b8b5203a87a97a88605a0f
/puthon_files/lowest-common-ancest.py
b816292d1f5e07060d12d0dd324342dffe963485
[]
no_license
aashishravindran/interview_prep
1cc4a065b75c7d14af87e94fc90cc1dbdc1d7bce
fea3d75e99433dc67a7b4e303e25ed0ad9343f5f
refs/heads/master
2020-09-29T07:46:17.675544
2019-12-09T23:59:55
2019-12-09T23:59:55
226,991,084
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
# https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/ # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None # Lowest Common Ancestor of a Binary Search Tree class Solution(object...
[ "raashish5594.ar@gmail.com" ]
raashish5594.ar@gmail.com
229b55da64ecc77c40932990c5a8570ef38675ed
7424688cfe38acc35f9da038809184e980b1fb10
/app.py
052ec9ab91b3c1e80393ac71ad5b0d9558082334
[]
no_license
ractf/challenge-server
a298b72f7c2f49ab666f2ba6887d0087fc37bc6a
b3ae61e52d234f7c8f1e6e28cc8bac4a58d42d13
refs/heads/master
2022-11-06T04:25:34.620606
2020-06-22T20:20:19
2020-06-22T20:20:19
274,226,382
0
0
null
null
null
null
UTF-8
Python
false
false
1,024
py
import os import docker from flask import Flask, request, abort from redis import Redis import settings import routes from challenges import build_image app = Flask(__name__) @app.before_request def check_auth(): if 'Authorization' not in request.headers or request.headers['Authorization'] != settings.API_KEY:...
[ "cookedavid637@gmail.com" ]
cookedavid637@gmail.com
dcc849540ef37d3c2d9dcc18f26ce2d3aa9cdf30
2ac87412ae229582cb53ea114b3bce1d37990b2d
/motif_sentences.py
243913eca6863cd1fc737ff745e28a4ab67a0fc7
[ "MIT" ]
permissive
kaclark/DHS_intergenic_analysis
60fa278d60d02b241d84c2c1f4230170f155cdb5
5ae1dc1c257ae9dc0e001e07402bebd8e31f0f60
refs/heads/master
2022-12-02T11:42:22.804514
2020-08-05T19:45:00
2020-08-05T19:45:00
274,950,385
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
from Bio import motifs import pandas as pd motif_sentences = [] fh = open("data/tf_data/jaspar.txt") for m in motifs.parse(fh, "jaspar"): motif_sentences.append([m.name, m.consensus]) df = pd.DataFrame(motif_sentences) df.to_csv("data/tf_data/motif_sentences.csv", index=False, header=False)
[ "35940194+da1andonly68@users.noreply.github.com" ]
35940194+da1andonly68@users.noreply.github.com
7367fe81d42fb80be0b61758180d011e05a6ffe1
bb082ce7880b931064af61e26ee325796ebb905a
/pages/settingspage.py
b8bdf8d7b76e95a7689d337e95b2c35a7dfe14b0
[ "MIT" ]
permissive
juraisa/bird-bot
36fe8f467e6729399758a7392bb89de0c54decb5
f868596a78690e55e6b7e7b8d4bf58d7f5b492cf
refs/heads/master
2021-05-23T01:16:47.906006
2020-04-14T04:49:31
2020-04-14T04:49:31
253,168,887
0
0
MIT
2020-04-05T06:18:15
2020-04-05T06:18:14
null
UTF-8
Python
false
false
6,751
py
from PyQt5 import QtCore, QtGui, QtWidgets from utils import return_data,write_data import sys,platform,settings def no_abort(a, b, c): sys.__excepthook__(a, b, c) sys.excepthook = no_abort class SettingsPage(QtWidgets.QWidget): def __init__(self,parent=None): super(SettingsPage, self).__init__(parent)...
[ "nateskicks13@gmail.com" ]
nateskicks13@gmail.com
152e6de373d3950907e1041d754d5e444fc78569
c71e5115b895065d2abe4120799ffc28fa729086
/procon-archive/atcoder.jp/abc129/abc129_c/Main.py
7e58a42e6fbe088cfc45aa4987d551c677b95895
[]
no_license
ken0105/competitive-programming
eb82f92a7b7ad0db601ea341c1441de6c6165064
f918f85a0ea6dfbe9cac3ef835f80503bb16a75d
refs/heads/master
2023-06-05T09:55:25.264731
2021-06-29T14:38:20
2021-06-29T14:38:20
328,328,825
1
0
null
null
null
null
UTF-8
Python
false
false
413
py
from bisect import bisect, bisect_right, bisect_left if __name__ == "__main__": n,m = map(int,input().split()) a = set() for i in range(m): a.add(int(input())) dp = [0] * (n + 1) dp[0] = 1 for i in range(1,n+1): if i not in a and i >= 2: dp[i] = (dp[i-1] + dp[i-2]) ...
[ "iwata.kenaaa@gmail.com" ]
iwata.kenaaa@gmail.com
7c0088fc02afdb9058cbb4fdf743efb97e73fad2
f76f83dcdfdbfe254ab67e26b244475d2e810819
/conttudoweb/inventory/migrations/0016_auto_20200723_1607.py
3116c549689509a9211c9601d3096006c7d686c2
[]
no_license
ConTTudOweb/ConTTudOwebProject
fda13ece406e1904d6efe4c3ceebd30e3d168eae
18c3b8da1f65714eb01a420a0dbfb5305b9461f3
refs/heads/master
2022-12-14T22:05:00.243429
2021-03-15T23:32:41
2021-03-15T23:32:41
138,349,067
1
3
null
2022-12-08T07:49:21
2018-06-22T21:19:03
Python
UTF-8
Python
false
false
436
py
# Generated by Django 3.0.8 on 2020-07-23 19:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('inventory', '0015_auto_20200723_1600'), ] operations = [ migrations.AlterField( model_name='product', name='descript...
[ "sandrofolk@hotmail.com" ]
sandrofolk@hotmail.com