blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
219b22b6ad685fc316b1df02cc924a1cfec89f5b
750dbf223870a3e2d505067c3a120a2acb028769
/python_codes/decomposition/ProFitErole1.0.1/reading/inputModel.py
fa607da2fbef594c29e2ac80b0a3ed772c971d23
[]
no_license
kryptonite0/galaxy_vivisection
5adf6ed8a651e22daf6f15c0d1232e63acd85a90
056529ff6c4df5cde3455e66501e25bce26789cb
refs/heads/master
2020-04-06T07:04:34.597749
2016-06-28T06:52:08
2016-06-28T06:52:08
30,566,719
2
0
null
null
null
null
UTF-8
Python
false
false
7,336
py
inputModel.py
from lmfit import Parameters import numpy as np from cls.cls import * from reading.ellipseOutput import readEllipseOutput def readInputModel(txt, equivalentAxisFit, Settings): psfwing_02pxscale_datatab = None psfwing_logscale_datatab = None componentslist = [] params = Parameters() data = open(txt) for lin...
4cf2829282cb0a1673e741f78f17ce27a2817ff2
c00acdb1bd1786eadcd609d3f5ce9f7f8ce51eeb
/trafpy/generator/src/networks.py
bf486d0612084659d657459cc35e54de6cc794dd
[ "Apache-2.0" ]
permissive
Financialcare/trafpy
bc528b49b340cc71b7653799d070f322a99db1d5
23b27abb2352990522b21dc1b14f0310abf84a17
refs/heads/master
2023-06-05T08:56:27.863918
2021-06-29T08:02:14
2021-06-29T08:02:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
31,104
py
networks.py
'''Module for generating and plotting networks.''' from trafpy.generator.src import tools import copy import networkx as nx import matplotlib.pyplot as plt import json def gen_arbitrary_network(num_eps, ep_label=None, ep_capacity=12500, ...
da66b254afb3a8fcd3783a38d8624caa917e58c3
8e978e2360e27942eda42e209d93b0a288a1c12c
/python_ire/ire.py
0bf01158510de2b35ffc50aff0e64b3592067f24
[]
no_license
nnamon/python-ire
040555d9556d4dd31aa1fd5402ecbd3c588c95d6
ca035dfd696316795177d2797582cc3e6e5d374d
refs/heads/master
2020-04-09T18:09:03.876379
2018-12-08T08:40:38
2018-12-08T08:40:38
160,502,252
0
0
null
null
null
null
UTF-8
Python
false
false
5,724
py
ire.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests ACHAEA_ENDPOINT = 'https://api.achaea.com' def _requires_auth(func): def wrapper(self, *args, **kwargs): if self.auth is not True: raise APIError() return func(self, *args, **kwargs) return wrapper class API: au...
83c7bb2e109f8affd9e2a12e8c5370b0f5a34048
782b02f706f8ec474fc878d3bce3fd363df6f813
/Estruturas_controle_projeto/fibonacciv8.py
c942c2cdb48d7e660c2105d6d1f08cbc65ad3ac1
[]
no_license
hstabelin/Python-cursoC0d-r
9f6504abc3a90b1fa6f3853f5cc647f1c64dad5c
12ae5845e3e9b4925b039b34f999bc2f85ceaf8d
refs/heads/master
2023-08-23T08:59:33.015847
2021-11-01T00:44:46
2021-11-01T00:44:46
423,293,932
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
fibonacciv8.py
def fibonacci(quantidade): resultado = [1, 2] # while True: # substituir o while pelo for, em um range do 2° valor da lista, correr até # o valor definido na função "Quantidade" for _ in range(2, quantidade): # desta forma ele irá realizar a função do 2° da lista até atingir # o valor ...
0082f75332321dba498f06d4c4a99c9248829b59
adc56284e87de727e8d3fed1b2c28315d2611305
/viewer/sdf_check.py
347a505fa4213ff7c6a9cb1d1d88f51808f3b4a5
[ "Apache-2.0" ]
permissive
reskyner/fragalysis-backend
aa5c5f8b9fd303c0417b2b232af9e271d5804ccb
6b83e801b86f8b39ed02d6a8cae466790c2bd486
refs/heads/master
2021-07-15T04:11:34.145822
2020-06-15T12:11:05
2020-06-15T12:11:05
152,093,704
0
0
Apache-2.0
2020-06-15T12:07:45
2018-10-08T14:27:36
Python
UTF-8
Python
false
false
12,838
py
sdf_check.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 22 13:19:51 2020 @author: Warren Script to check sdf file format for Fragalysis upload """ from rdkit import Chem import validators import numpy as np import os from viewer.models import Protein, CompoundSet import datetime # Set .sdf format versio...
48bc5d4b191fa631650b60240560dbece6396312
26bd4271d6c899f98d374a3c299a9dc7f2fd899d
/Entrega1:AlternativasyRepetitivas/ejercicio6.py
38514080b25ee677424e4cfe8441c20f08a7c7b5
[]
no_license
josemariamontero/Lenguaje-de-Marcas
f9ba9fab9dec0d9cdce8c9a9b9dd25d8473a6c37
166836de582c51b56d44213afcd722a7285b4cd8
refs/heads/master
2020-04-19T17:52:39.344870
2019-04-24T17:00:36
2019-04-24T17:00:36
168,347,258
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
ejercicio6.py
from random import randint cantidad = int(input("Numero de preguntas: ")) contador_bien = 0 contador_mal = 0 while cantidad <= 0: print ("El numero de preguntas debe ser al menos 1") cantidad = int(input("Numero de preguntas: ")) for i in range(cantidad): numero = randint(2,10) numero2 = randint(2,10) aleatorio ...
18435f43e2f52e3d2e9ff6411f8dd0510d2da54d
c3bd72d0f7338fb1d55122e74f1cc4b7dde99ad2
/Reverse.py
cf9eaf20daeb3d95f1da9994ef73aeb016018135
[]
no_license
ParthivSen/Python_Programming
7d4aed21ae81b6d2a1828cee8b128cc4bf19b9b9
b17aa102853189de33e047353d71991b33683639
refs/heads/main
2023-08-26T03:48:16.191737
2021-10-10T15:22:35
2021-10-10T15:22:35
411,305,132
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
Reverse.py
a=eval(input('enter a list: ')) n=len(a) if (n%2==0): for i in range(0,n//2): a[i],a[n//2+i]=a[n//2+i],a[i] print('after swap:',a) else: for i in range(0,n//2): a[i],a[n//2+i+1]=a[n//2+i+1],a[i] print('after swap:',a)
b1ab28a99fdcce66f0a1e4e25821073673f531cf
259530935caab8e797dd27e7cb4366a54a14b52f
/rational.py
4a5053db97de7c7e7fad5986fda51181fcee5b9f
[]
no_license
10hin/number
ebb61b104614995756a7aac79c2b8fe2181b57d7
9ff9478aa3a757dfe01a33a1af98b6ac337e9770
refs/heads/master
2021-01-19T23:02:38.476072
2017-11-14T15:16:33
2017-11-14T15:16:33
88,914,179
0
0
null
2017-11-14T15:16:34
2017-04-20T22:00:44
Python
UTF-8
Python
false
false
9,372
py
rational.py
""" module rational number """ def _gcd(num_a, num_b): """ gratest common divisor """ if num_a == 0 or num_b == 0: raise ArithmeticError('gcd of zero') var_p = num_a var_q = num_b if var_p < var_q: var_p = num_b var_q = num_a var_r = var_p % var_q while var_r...
5e0cba6952cdc677c640a0df325426ffc89189cd
3d7d29ad55ec53c1d423ef8d28d06b1ba449c0ef
/django_project/sunlumo_mapserver/tests/test_SunlumoProjectPrinter.py
49658d507bb5565fe13ce64a03b637914fa02d87
[ "MIT" ]
permissive
candela-it/sunlumo
885853c524b162e1ec99eb93cc2f6e18dfa95041
9fe9778edf02ab3c5fa90abb56511467cea243e1
refs/heads/master
2020-05-26T07:23:44.887698
2015-08-30T18:47:22
2015-08-30T18:47:22
27,635,357
1
4
null
2015-05-20T04:29:43
2014-12-06T13:35:13
CSS
UTF-8
Python
false
false
899
py
test_SunlumoProjectPrinter.py
# -*- coding: utf-8 -*- from django.test import TestCase from ..printer import Printer class TestSunlumoProjectPrinter(TestCase): def test_printer(self): sl_prj = Printer('./sunlumo_mapserver/test_data/test_sunlumo.qgs') tmpFile = '/tmp/printtmp' sl_prj.printToPdf({ 'tmpFile...
49df9db508637ce5914aa6591178a03c609b6bc7
275893e6938464f8311b7bc7d39eb7893225aa7c
/Yahoo/TS_RLR.py
0a864e0a22d1356d17f6f55a1493f026556c4220
[]
no_license
anikiforova/thesis
4a5a5ac454f15cc65bbb83821762c36dca976b92
f398acba2fe9c3ac839ff544031a90e6b044e6df
refs/heads/master
2021-07-12T12:33:53.717391
2018-11-05T15:12:53
2018-11-05T15:12:53
134,720,340
0
1
null
null
null
null
UTF-8
Python
false
false
3,068
py
TS_RLR.py
import numpy as np import math import random from numpy.linalg import inv from scipy.optimize import minimize from Util import to_vector class TS_RLR: def __init__(self, alpha): self.d = 6 self.k = 6 self.alpha = alpha self.batch_size = 1000 self.training_size = 1000 self.impressions = 0 self.batch_...
8d581ac142fe65d8d4ac403d88c868076085c885
c1b376ca9fe5168f2d52f188e48d23c2faf90c4a
/Assistant/find.py
9759fe804614b820ca209b0fb21b524afcd2cff8
[ "MIT", "BSD-3-Clause" ]
permissive
lauraaiz/instagram_follower_bot_remover
ef7a2d53af5f93abe224b04e5999b8c7e03a13d0
8ccf7134c79b8a9c9c09413321f526dd388c5609
refs/heads/master
2021-10-16T16:25:30.029514
2019-02-12T04:48:10
2019-02-12T04:48:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,832
py
find.py
import time import random from InstagramAPI import InstagramAPI import configuration from Application.get_blacklist import get_blacklist from Application.add_to_blacklist import add_to_blacklist from Application.get_whitelist import get_whitelist from Application.add_to_whitelist import add_to_whitelist from Applic...
e4c60fe435a3420cc7289c8dfac0f864d8c80ae0
3b9505439d5818bac7902c751e2b27e152b7d23d
/module/GetData.py
4988567b3b468a864520f535a39b18e99d4265d2
[]
no_license
ashen007/SL_COVID_analysis
4265a555cf386d6d25bf01a3dedf5ab3bff36bc4
98ab64f8fabc05c73af4d56528eab4a269ce4493
refs/heads/master
2023-05-16T10:29:27.367585
2021-06-08T14:02:14
2021-06-08T14:02:14
368,528,536
0
0
null
2021-05-30T04:05:49
2021-05-18T12:51:33
Jupyter Notebook
UTF-8
Python
false
false
1,343
py
GetData.py
import json import requests from urllib.request import urlopen from bs4 import BeautifulSoup def getter(): return requests.get('https://www.hpb.health.gov.lk/api/get-current-statistical') def dump_json(responds, path): if responds.status_code == 200: with open(path, 'w') as file: json.du...
fabfee47bb222bcf8d07e79457978ef898bb5d8b
37dd3d3ea279b85f17bf890b2483f39aeaf6b3d7
/intermidate_python/tutea.py
7cfa83b3ff67b9de78580b72306b35c151ffd909
[]
no_license
skrdas9995/learn_python
086747bf6220fde3b4c7ce5c6dacc178fa7c9ea6
c611570b22073de550850b2909eea6ed1fd71ce2
refs/heads/master
2020-12-19T05:21:33.490152
2020-03-21T05:10:12
2020-03-21T05:10:12
235,631,613
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
tutea.py
import os def mostimportant(): print("soumya is a king") print(__name__) if (__name__ == "__main__"): print(os.listdir("/")) print("Soumya is good") mostimportant()
dd4cc280753bd175150958d24822d5f052c78bb8
ef282f4b75d5249bed3418f0164b2527273c353f
/imagersite/imager_profile/tests.py
9587758834bc752f7cacab6574c84dab30667e26
[ "MIT" ]
permissive
AveryPratt/django-imager
641e2c13a9a476079ef9baad8abc8693acec9ae4
dca2057f2a67e2a9190efa1d7899a117268175a5
refs/heads/master
2021-01-11T20:44:16.658466
2017-02-20T17:03:13
2017-02-20T17:03:13
79,174,608
1
0
null
2017-02-20T17:03:13
2017-01-17T01:12:32
JavaScript
UTF-8
Python
false
false
6,118
py
tests.py
"""Tests for the imager_profile on imagersite.""" from django.test import TestCase, Client, RequestFactory from django.contrib.auth.models import User from imager_profile.models import ImagerProfile import factory from faker import Faker import random # Create your tests here. def fake_profile_attrs(profile): "...
2b1b67ecf009dfd6bfaed50ca3ecb9cc19004984
9588b064d337726b06e75e8324e8dfb045c86a69
/Sensors/compass.py
b8ca6817ed59cb04e4c510df3944eb9412dea6d5
[]
no_license
teddycool/LegoRover
9f38d555158cf3b673f9592442e6857301bbc98c
badc288a8305d984f78a59f3938785eccde8748b
refs/heads/master
2020-04-06T07:00:38.822032
2016-02-06T16:39:08
2016-02-06T16:39:08
38,201,268
1
2
null
null
null
null
UTF-8
Python
false
false
2,763
py
compass.py
__author__ = 'teddycool' #http://think-bowl.com/raspberry-pi/i2c-python-library-3-axis-digital-accelerometer-adxl345-with-the-raspberry-pi/ #http://blog.bitify.co.uk/2013/11/connecting-and-calibrating-hmc5883l.html import smbus import time import math import cv2 from config import roverconfig class Compass(object)...
f819fc11cbef829df2b4f5e63377bf0417c19764
34cbdd3dfb2d9e1f382d5d4213a096e0a728efe2
/assignment-2/code/doc2vec.py
95b9fa2771282b76795d16112fce924e2efe5fc3
[]
no_license
hc1111/information-retrieval-1
33e19bfbc4011928add531a8e70c34162e5df860
a5ed056c08efbf1fbbf5dba52ad45a837ebd3b77
refs/heads/master
2022-11-14T19:16:31.036381
2020-07-09T09:26:16
2020-07-09T09:26:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,572
py
doc2vec.py
import torch from torch import nn import pickle as pkl import os from collections import defaultdict, Counter from tqdm import tqdm import read_ap import random import download_ap import numpy as np import gensim import json import logging from scipy.spatial.distance import cosine logging.basicConfig(format='%(asctime)...
814a7173dcb786f85c5e252ec1345a3057b45ac2
ac0db49105f24897d725dc834c8440b227d9dcff
/spider/driver/base/logger.py
845b0abea692f9981f6f19461ed7fc373bd64441
[ "Apache-2.0" ]
permissive
mannuan/dspider
aba6558e470c5716db8a0736ccf1fbf30df33813
bf1bbad375b3b61f800cb25d1c839659a66f3e12
refs/heads/master
2021-07-17T05:28:30.922396
2018-10-04T06:21:01
2018-10-04T06:21:01
139,920,396
14
1
null
null
null
null
UTF-8
Python
false
false
851
py
logger.py
# -*- coding:utf-8 -*- import logging from logging.handlers import TimedRotatingFileHandler import os def get_logger(log_file_name): """ 日志文件 :param log_file_name: :return: """ logger = logging.getLogger(__name__) logger.setLevel(level=logging.DEBUG) handler = TimedRotatingFileHandler(f...
a6a9e3869ecdc347b02e41d4bdd931ae0388174f
472f2f87791c748c38e09ebc01ad47d6ed5f99e9
/settings.py
3d5161397e5fa782db5d84e024b9e00f09af4192
[]
no_license
YvesP75/drones
1fec29ba03237abb0529d75d7301db2f6ce7182c
efe4f4fa5fd9f2d75a2f9e96c00ac637b6751876
refs/heads/master
2022-11-06T23:24:36.495114
2020-06-19T06:59:44
2020-06-19T06:59:44
270,762,497
0
0
null
null
null
null
UTF-8
Python
false
false
1,232
py
settings.py
# temps de simulation TIME_LENGTH = 10 # taille du quadrillage SIZE = SIZE_X = SIZE_Y = 10 ### TIME_SLEEP = 1 ZERO_X = 2.25125 ZERO_Y = 48.8130 # taille de la zone en m THEATER_LENGTH = 10000 # typiquemeent 1 carreau=10m SCALE = THEATER_LENGTH/SIZE # propabilite de transition de statut TRANSIT_TO_IDLE = 0.01 ...
6550640cd0d9901e3ed72a3eb1e8a243a66de60a
87d3388b75dfd041fe9d2eb08de9fbb3bdbcf0a4
/dlp/tests/system/gapic/v2/test_system_dlp_service_v2_vpcsc.py
3cb9cf4aa0ad1a65a675e3b2fc92fec1fc0d7f25
[ "Apache-2.0" ]
permissive
silverdev/google-cloud-python
94c24793843412c5a698953490af777633e35b0f
8a334a29497bfc4bcda16a18d1a150eaf4102bc3
refs/heads/master
2020-08-26T17:23:11.039130
2019-11-05T00:05:54
2019-11-05T00:05:54
217,087,317
0
0
null
null
null
null
UTF-8
Python
false
false
7,315
py
test_system_dlp_service_v2_vpcsc.py
from __future__ import print_function # -*- coding: utf-8 -*- # # Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0...
85c6d023fb20d14f3d04c3fad0f08d47b63915e6
407d8055d3f2513e8069c13aae1a8c3959833de9
/Programy/2_listy_slowniki.py
0580a93122de7f2f18de245522f8c4ccfae206ca
[]
no_license
captainfantasticstudent/Raspberry
01a0c8c6eb1be50af8d6fed977ec45a80a3a33aa
ec678bb127ae2450f3c213e48afe9b1f4a743385
refs/heads/master
2018-09-27T00:36:40.736175
2018-06-07T08:52:17
2018-06-07T08:52:17
109,306,660
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
2_listy_slowniki.py
import copy # LISTY # lista = [23, 32.5, "napis"] print(len(lista)) lista[0] = "XXX" lista.append("ha") print(lista) lista.insert(1, 23) print(lista) lista2 = [2, 3, 4] lista.extend(lista2) print(lista) lista.pop(3) print(lista) print("s-g-f".split('-')) for x in lista: print(x) for (i, x) in enumerate(lis...
8707bd552bdacb9c67a646609591e7dd1e93ce70
8ed80561e1b3c0bcdb6201cae8af845d5da23edc
/guppe/exercicios_secao_6/ex_53.py
d697b0bca94b31c98b1f49cfec887e043c905011
[]
no_license
Fulvio7/curso-python-guppe
42d5a1ecd80c1f3b27dc3f5dad074a51c9b774eb
98966963f698eb33e65ed58a84f96e28f675848a
refs/heads/main
2023-08-28T13:31:12.916407
2021-10-09T19:03:17
2021-10-09T19:03:17
415,393,122
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
ex_53.py
""" 53- Escreva um programa que leia um número inteiro positivo n e em seguida imprima n linhas o chamado Triângulo de Floyd. Para n = 5, temos: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 """ print('TRIÂNGULO DE FLOYD') linhas = int(input('Digite o valor de n: ')) colunas, num = 1, 0 for i in range(1, linhas+1): for j in...
f19ed998ed8e351db2a803d7274dd61d4bedeac8
195b3937f2f5c799d915ae5f606dd6c062630f5d
/__init__.py
59545a7cd3d9f90ef9e62e6980003c0a4287289f
[ "Apache-2.0" ]
permissive
speshak/cbpi-statsd
25af0815220f6faf9fc6eaa63bafa90bd4bedb9b
24aba8d0e48e9636c8136a694ec1b5a6e7013f88
refs/heads/master
2022-10-16T19:54:33.633701
2020-06-08T16:46:10
2020-06-08T16:46:10
262,047,081
0
0
null
null
null
null
UTF-8
Python
false
false
2,968
py
__init__.py
from modules import cbpi from statsd import StatsClient DEBUG = False statsd_client = None sensor_types = { "Flowmeter": "flow", "OneWireAdvanced": "temp", "OneWire": "temp", } def init_statsd_client(): statsd_host = cbpi.get_config_parameter("statsd_host", None) if statsd_host is ...
60e46d04335e166602e6e2849fdb8aae41eefd09
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2202/60641/292912.py
0f6c44530ed1bdb781a64bd52b9e1042f580ab0a
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
120
py
292912.py
n = int(input()) for i in range(0, n): if input() == "70": print(308061521170129) else: print(1)
afd514ac34e796ff71265b436fdb53787b9c76d7
22b79cbacd033c305676ec2a8e831878cf3199f2
/imgprepro/plot.py
ddbf5de715bfa8120d7b11805827c5ab656c054a
[]
no_license
lmonster1997/radiology
5f2006cdf0b85358f70398a2716b69eb863ab38c
2738980434b53581a0aab3c90d37128fe5f90c54
refs/heads/master
2022-11-04T15:24:28.005919
2020-06-15T01:14:11
2020-06-15T01:14:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,017
py
plot.py
import numpy as np from collections import Counter import scipy.signal as signal import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt def plotdist(data,linecolor): # Check if data Int checkdata = np.reshape(data, (-1,1)) for i in range(0, data.shape[0]*data.shape[1]): if check...
23978b84d421387f0cb425e3753f2a5a2551237b
1439952774f1adfc434391996048b051e621d2c8
/AppendLinkList.py
9f78830563652c9af2e9c4c318963c7a0e19dea5
[]
no_license
roshnicoder1/DataStructure
4c77f68973c501b170c0b3d0fd34ce40c5e06c30
4f72a013c0269e2d554d9c6cf7252957f2e049f7
refs/heads/master
2020-03-30T20:18:41.854806
2018-10-16T06:29:52
2018-10-16T06:29:52
151,582,698
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
AppendLinkList.py
class Node: def __init__(self,data): self.data=data self.next=None class LinkedList: def __init__(self): self.head=None def append(self,data): newNode=Node(data) if self.head is None: self.head=newNode retu...
389a9000abee8e2de797173d903d78de7ad188a5
9c01bb8b4cd4fdc84c0c9ccc0ff503eeab84128f
/UI-Auto-Test/test/pagework/OpenPage.py
93a574380f9f5da5fcab7f89f0ce3140bb5a011f
[]
no_license
xuyubo/Python_Project_Test
96051c3409e78909e97b882a09d20f095afe0b95
3a004d91f998005c9b1f5b8d46de38f695cbb7eb
refs/heads/master
2022-09-14T01:52:03.981084
2020-06-01T09:59:59
2020-06-01T09:59:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,071
py
OpenPage.py
# -*- coding: utf-8 -*- from selenium.webdriver.common.by import By from test.pagework.BasePage import BasePage from selenium.webdriver.support.select import Select from tools.log import logger import time # 继承BasePage类 class OpenPage(BasePage): # button定位器 detail = (By.NAME, "V150$C1$CBtn") # 打开一个hrefV15...
9b30ae1889dfe783ebd2d164cf6d7bebe657b484
df2ae697a399053a75b2f2051e1ab0f7c03961ca
/sudocu.py
92ddb2d5f61e3ebaa9e26b2db48af8cefe71a09e
[]
no_license
JatinGehlot18/Sudoku-Solver
ccff11eb5f9c19651f67aa65fb83441d70205449
e55f57c4f99d436276a43c2d20f51cc6a24cff87
refs/heads/main
2023-08-17T12:46:41.114078
2021-10-10T09:41:12
2021-10-10T09:41:12
414,220,869
0
0
null
null
null
null
UTF-8
Python
false
false
1,430
py
sudocu.py
import time start = time.time() a = 0 def nextempty(graph): for x in range(0, 9): for y in range(0, 9): if graph[x][y] == 0: return x, y return -1, -1 def checking(graph, i, j, e): rowok = all([e != graph[x][j] for x in range(0, 9)]) if rowok: columnok = ...
9f07db01361f7a8afc3181763c627e18c21ef094
263b84bc1c0ac0b43e62521c92cc0c020e7b2188
/emitter/_wait.py
51963cfc977052dffdd8570f57fb0f9bc56d217e
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
HeavenVolkoff/Emitter
5b9e4fc796dba2116dd842a32a09d87b5eda5eb2
bca5540a7d957b4a4cff5dd70b9031e162c30694
refs/heads/master
2021-01-26T11:33:42.574926
2020-09-07T03:45:31
2020-09-07T03:45:31
243,423,625
4
1
BSD-3-Clause
2020-05-26T22:05:51
2020-02-27T03:40:38
Python
UTF-8
Python
false
false
1,325
py
_wait.py
# Standard from asyncio import Future, get_running_loop import typing as T # Project from ._on import on from ._remove import remove from ._helpers import retrieve_listeners_from_namespace # Type generics K = T.TypeVar("K") async def wait( event: T.Union[T.Type[K], T.Type[object]], namespace: object, *,...
8291cc0a2c7fc6b424cad1ac4110b7dc0d5cb147
17e089bba0fe7daa38088bed409ae04910db484b
/1_0_数据类型和变量
253b9365819fad634d50cde31002c63078237e93
[]
no_license
vulcan-soundwave/Python3
033ab070e2edf4a7f2f0c0f6c9e037a897e1b4d8
890623b3657f5565db7e288e5ad427f3257decfe
refs/heads/master
2021-01-01T18:36:22.586028
2017-07-26T08:21:36
2017-07-26T08:21:36
98,377,476
0
0
null
null
null
null
UTF-8
Python
false
false
155
1_0_数据类型和变量
#!/usr/bin/env python print('''n = 123 f = 456.789 s1 = 'Hello,world' s2 = \'Hello,\\'Adam\\'\' s3 = r\'Hello,"Bart"\' s4 = r\'\'\'Hello, Lisa!\'\'\'''')
d5cff2258014824f1263d2f6fee45dcecc3dc38e
abf278f72270fa11cc595fe16dd55c6c74f0de68
/tests/test_http_client.py
b91f10555ee7c7ae3b3dbda0f65dccb959ef8bb0
[ "MIT" ]
permissive
FriendsOfGalaxy/galaxy-integration-epic
e24eec95c3db06aa48bc0a344a646e8fddfcc624
370bd3be60c94482a143b51ed3b22f9781625cdb
refs/heads/master
2021-07-19T22:28:22.193654
2020-07-02T12:34:42
2020-07-02T12:34:42
190,714,416
35
4
null
null
null
null
UTF-8
Python
false
false
4,139
py
test_http_client.py
from unittest.mock import MagicMock import pytest from galaxy.api.errors import AuthenticationRequired from galaxy.unittest.mock import AsyncMock from http_client import AuthenticatedHttpClient @pytest.fixture def http_request(mocker): return mocker.patch("aiohttp.ClientSession.request", new_callable=AsyncMock)...
8f0553668e2f15950a0843074bf0a3eec47f65bc
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/lib/python2.7/site-packages/cryptography/hazmat/primitives/asymmetric/padding.py
c796d8e4cf1911c0ed2f99844271d3c733a82bd7
[ "Apache-2.0", "BSD-3-Clause", "Python-2.0", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
1,803
py
padding.py
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import abc import six from cryptography import utils from cryptography....
947d4f373283344cf0d559dd53fa11dc16cea7f0
03b412c5ba6b1f7af700beb883386d6c10cf6439
/setup.py
b8e79fb19c1d8af793b0569d80af21cce4e845c2
[ "BSD-2-Clause" ]
permissive
SKA-ScienceDataProcessor/uvwsim
279c18232ada1075bb40cf3a439f9cb7d4b9f872
47271b43f80fb22e1baacc06555744355dca241d
refs/heads/master
2021-01-21T05:00:35.925754
2016-06-14T18:13:06
2016-06-14T18:13:06
22,468,485
1
2
null
null
null
null
UTF-8
Python
false
false
1,776
py
setup.py
#!/usr/bin/env python from __future__ import print_function from os.path import join from numpy import get_include try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension def get_version(): """Return the version of pyuvwsim""" context = {} vers...
926f266e4b49cc92b6882c53697f05441b959b3c
b775f965be4a6ebb01117331ccbca0d457b8ee17
/Saffaction/urls.py
48b3f539835b032e515c9cca77c1725843ab4a39
[]
no_license
peter-stuart-turner/saffaction
d57f1b33e81f8ef7c946a8443ae29fd8469a6d79
82f91fbce7a35233a79d8226f0686f22e654f55d
refs/heads/main
2023-05-10T18:59:28.480939
2021-05-31T03:45:00
2021-05-31T03:45:00
367,686,001
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
urls.py
from django.conf.urls import url from django.contrib import admin from django.http import HttpResponse from django.urls import path, include, re_path from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls, name='admin_index'), path('', includ...
93760003fd8d1d8cf8acbcf840bba5e0754f4551
6d8501eec7bf0b3edbcf4d75772bfc87757d47b1
/DataQuest/Most Popular Apps/most_popular_apps.py
996830791682c59ffd97692cc22f1ae3fdc08697
[]
no_license
AlexeySukhanov/python_exp
b31f14ec3516d439628456c9feb310fb88a7e2ee
093b33df126af97cc578bbefbd1cd41b9a5c1416
refs/heads/master
2022-11-15T02:26:51.196359
2020-07-08T11:59:04
2020-07-08T11:59:04
268,300,525
0
0
null
null
null
null
UTF-8
Python
false
false
1,813
py
most_popular_apps.py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Most Popular Apps Created on Mon Jun 15 03:21:38 2020 @author: user """ # Prepare dataset from csv import reader opened_file = open('AppleStore.csv') read_file = reader(opened_file) apps_data = list(read_file) # Find min & max rating_count_tot = [] for row in apps_d...
18fd08f5e229af2da620a33bad0d80bbc5f3e688
196490e376b1b6b81e9312589acbfbf07aa33570
/YTcompare_for_similarity.py
44c44c0b278cbe905b8a9ffd6dca084e20776db6
[]
no_license
Hero-Ting/Git_Code
d71ee7feeb4d989785652c28ddb34df7cd4295ba
b9012e6c6ad7f5630c9cd10bbb9e5af553518cb0
refs/heads/master
2020-11-28T21:17:47.214046
2019-12-24T11:14:42
2019-12-24T11:14:42
229,921,793
0
0
null
null
null
null
UTF-8
Python
false
false
5,022
py
YTcompare_for_similarity.py
# coding:utf-8 import os,threading import json import urllib.request import urllib.parse import base64 systemip = "http://15.112.20.250:11180" ''' Connection: keep-alive Content-Length: 94 Content-Type: text/plain Host: 15.112.20.250:11180 User-Agent: Apache-HttpClient/4.5.7 (Java/1.8.0_161) ''' def login_getsessi...
cdb96828226d3037c3c346b4d955808576552b6e
52c9ce71b8f23a537b8a18186654b807f19fff66
/oop_basics.py
6d8d94dfd6eb38463ede06bb4362b5823a5e4251
[]
no_license
prasan321/python-oop
e3ffeaf75418255ab237507f0fe72d573e1ecac3
c6c346475641726b99462edbc8afbe6af0e0018b
refs/heads/main
2023-05-15T13:07:37.206956
2021-06-10T18:11:03
2021-06-10T18:11:03
375,550,139
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
oop_basics.py
''' Python OOP Concepts - Basics ''' #basic class class Animal: pass print(type(Animal)) class Person: #methods #Prefix all the instance variables with 'self' def set_details(self,name,age): self.name = name self.age = age def display(self): print('I am', self.name + '\n'...
486b007e5e0b9ed86c21d9d46e86b25e16cf98ec
cb1179d2f26667f856ecf48cd0c3e9d8a9e28e7f
/spiel3.py
eb95e2691b0a4fa8e1b697c50f0336985dcab5ef
[]
no_license
meyerjo/python-spielereien
252efaa34323bdd2c046d2fb2bef400b21f60bf5
220f640b842c937ad56b3a031b2c6746dbff1b60
refs/heads/master
2021-03-24T15:17:38.793462
2020-03-15T10:20:06
2020-03-15T10:20:06
247,542,344
1
0
null
2020-03-15T20:03:57
2020-03-15T20:03:57
null
UTF-8
Python
false
false
1,101
py
spiel3.py
# Ratespiel # Zufallszahl festlegen (ZAHL) import random ZAHL = random.randint (1,1000) ANZAHL_VERSUCHE = 0 # Immer wiederholen while True: # Nutzer eine Zahl raten lassen (EINGABE) while True: try: EINGABE = int(input("Bitte rate eine Zahl zwischen 1 und 1000!")) ...
0f4fcf89a6320254b72cf5be89953c4ac3a2f09a
f2b8e953766ad76e877874b17ee51a7eff9858f4
/my_project/javautils.py
f7ecf0e2e9c35a07c5c135003356272a497434e4
[]
no_license
bgr/unnamed_gui_tool
38b286b556c8fa107d043631ddd92780fd7f0208
9c1e9f1f66c100bb881fbfcbf2f1a02fb3ca91ee
refs/heads/master
2016-09-16T13:49:29.090284
2013-09-25T12:46:10
2013-09-25T12:46:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
996
py
javautils.py
import java.lang from javax.swing import SwingUtilities from javax.swing import JButton, ImageIcon class Runnable(java.lang.Runnable): def __init__(self, func, *args, **kwargs): """Python wrapper for Java Runnable""" self.func = func self.args = args self.kwargs = kwargs def r...
46debe56d8a6d19d6ec6783ae42297f053b8f4fa
6d62afdcfc071cf5233e6f755d556924f1ca65c9
/billing_app/reservations/forms.py
04596d42781115838c83eaa17dbc28768a638ca8
[]
no_license
kili/dashboard
e7edb9f02e04b3e361fcccafa6b6d7faadf33d67
1be5317ea013bc9ed34e57d138df39d10ec09b7c
refs/heads/master
2021-01-18T13:54:06.646350
2015-06-04T10:31:54
2015-06-04T10:31:54
18,328,553
5
3
null
2014-08-29T10:27:44
2014-04-01T12:25:47
Python
UTF-8
Python
false
false
2,336
py
forms.py
from billing_app.context_processors import balance from billing_app.models import AssignedReservation from billing_app.models import PrePaidReservation from datetime import datetime from datetime import timedelta from django import forms as django_forms from django.db import IntegrityError from django.core.exceptions i...
4aca83450c1a6cf1ea6427869380b734ffa579b2
1f5911585b39c583279cf5e574adbe7f5dc82d68
/tests/test_nongeo.py
78690b0ee01b311cf17df06180b07165421fc398
[ "MIT" ]
permissive
satellogic/telluric
fdc596cdaa3d6b1dea304c1e56c6e743d30200f0
b7c57676101e9b52f1d5f9848c0c7ff5a0c85c68
refs/heads/master
2023-05-03T08:33:59.189872
2023-04-18T13:50:33
2023-04-18T13:50:33
128,917,083
88
27
MIT
2023-08-17T19:05:26
2018-04-10T10:43:15
Jupyter Notebook
UTF-8
Python
false
false
865
py
test_nongeo.py
import os from pathlib import Path import numpy as np import pytest from affine import Affine from rasterio.errors import NotGeoreferencedWarning from telluric.constants import DEFAULT_CRS from telluric import GeoRaster2 def test_save_nongeo(tmp_path, recwarn): raster = GeoRaster2(image=np.ones([10, 10], dtype=np...
5961ecd56d8812e1f33e813586dd39fc39a24322
8dd7324bbecf354189b938999ceb3d6ad0cce1f8
/webserver/websocket.py
8d967dd6c2c9ceb134ecd31abb3a8a93cfee03af
[]
no_license
mango-tree/webNetHack
250ac01ae40d13aa84045907a6433b44d09377b5
828d57c0ab85115a5f612c95e9396134470be212
refs/heads/master
2020-05-26T08:02:46.647072
2017-08-04T16:32:59
2017-08-04T16:32:59
82,470,259
0
0
null
null
null
null
UTF-8
Python
false
false
2,160
py
websocket.py
import tornado.httpserver import tornado.websocket import tornado.ioloop import tornado.web import time import subprocess import select import pty import os import sys import socket import colorama def read_game_data(socketHandler, message): data_str = message#str(message, 'UTF-8') print(data_str) input = ...
5f1b01119cc355e95c0b9466c9079175a3e8f2e8
717138ec946f2cfa6465447c26206c70dcbcc995
/task11.py
7730268daa7375e3ce18ca3680e95d20f5878ce4
[ "MIT" ]
permissive
kazh98/pe2019
8904a43cdb4516a41967cb469334acb19293e513
9b09e0c12f31b7eacfb52ee5c2bcbad91306d59a
refs/heads/master
2020-05-17T17:20:40.120173
2019-05-15T06:05:56
2019-05-15T06:05:56
183,848,911
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
task11.py
n = int(input()) a = input().split() for i in range(n): print(a[n - i - 1], end="") if i < n - 1: print(" ", end="") print()
cc0e68cf307843d7f7f6d5120be160d8732d9ca2
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_206/1276.py
780f49bd398d94ba9f7da338b007328932a7d8a1
[]
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
421
py
1276.py
fin = open('input.in','r') fout = open('output.out','w') lines = [line[:-1] for line in fin] T, l = int(lines[0]), 0 for cT in range(1,T + 1): l += 1 line = lines[l].split() d, n = int(line[0]), int(line[1]) maxTime = 0 for i in range(n): l += 1 line = lines[l].split() k, s = int(line[0]), int(line[1]) m...
4e86f1bf74aef04630839421fd14cc80eff98f5b
73f8038229f0fade8c53bcc4c556082c8df5c869
/karthik_kafe/src/Upload.py
7dd9caab234d00dc45542b62c8f482e3184d364a
[]
no_license
shopatlemo/oAuthAPI
2d45732dc46449cff439e797816a3dc4edb97a3b
677a29aeb8a37fbaa9f171285f67505d61e5dc46
refs/heads/master
2021-09-25T00:53:54.745700
2021-09-16T16:30:58
2021-09-16T16:30:58
194,776,706
0
0
null
null
null
null
UTF-8
Python
false
false
3,811
py
Upload.py
''' Created on Jan 14, 2019 @author: ksundaram ''' ''' Created on Jan 14, 2019 @author: ksundaram ''' ''' Created on Jan 11, 2019 @author: ksundaram ''' import karthik_kafe_properties as p import refresh_token as r import requests as req import pandas as pa from pandas import ExcelWriter from ...
b536987c8266a715d8362d73d03fec8425eb84fa
22c18f3f63fa75ab719bdc602ab561c03486fd62
/OpenCV_Poker/t2_camera2.py
fe3e62bf52b8e7da588216dd7162029eead57dcd
[]
no_license
jjhw/uArm_Swift_Pro_Python_Test
b84e1eb3b010ceda0b43179a55b602191687c38a
afecad2266477f84102360ee8a9dab6292d20d1d
refs/heads/master
2023-06-04T04:38:39.578808
2017-12-22T08:57:16
2017-12-22T08:57:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,159
py
t2_camera2.py
# -*- coding: utf-8 -*- # @Time : 2017/7/9 上午11:19 # @Author : play4fun # @File : t2_camera.py # @Software: PyCharm """ t2_camera.py: """ from time import sleep import cv2 import os from uf.utils.log import * # from uf.wrapper.swift_api import SwiftAPI from OpenCV_Poker.utils import id_generator import _thre...
b1f435e1a13e54b208160dae8af0696ae70b62c2
f6c7084f91434566a9aa1b821d2739edede036f8
/StringReplaceMethod/ReplaceThree.py
c473cccc5bc5ba879ffcaadc1d1f020b22b97dce
[]
no_license
GANESH0080/Python-WorkPlace
87fc3776e693d254661c476bfe977c696d087276
43196086bee26cbeae25fb7bbacb8dbbde85d648
refs/heads/master
2020-09-20T03:45:13.824696
2019-11-27T07:27:17
2019-11-27T07:27:17
224,369,263
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
ReplaceThree.py
oldString = "GaneshS" newString = oldString.replace('S','M') print(newString)
5b31249c3742e3deed1cb4c79c53ab78ac0b9093
2f0b65692164395aedcbd13be6a3617d2a80fbeb
/Letters/models.py
b78ca115b31c7c54eff89b9ca058918f11f9c392
[]
no_license
patrick711/LPS
6391b29ebdb2f60fe235a3d9576cfe6c3398d332
368df9d2b16b1e58ead7bcd602769481928bac76
refs/heads/master
2022-10-26T14:21:29.643854
2018-04-09T01:23:32
2018-04-09T01:23:32
105,394,623
0
1
null
2022-10-15T14:07:18
2017-09-30T19:17:08
Python
UTF-8
Python
false
false
1,031
py
models.py
from django.db import models from django.contrib.auth.models import User from registration.models import UserProfileInfo from Students.models import Student # Create your models here. def user_directory_path(instance, filename): # file will be uploaded to MEDIA_ROOT/user_<id>/<filename> return 'letters/user_{0}...
8008f64617b40eb651ae587d9e553391a17743b5
a32bc23f9cec3704223e20d269342f4e5d1752cb
/Analyzer/cnn_temp3.py
0ab547b55c331890c15abbf42a98c637b795d7e2
[]
no_license
mrshamshir/PersianSentimentAnalysisBackend
ae2a9540af0eb203b3fe27475b1c7d6154d50cf1
ed0b3cfa1be9227983d5fe381b7409af41eac107
refs/heads/master
2023-01-05T16:07:38.938901
2020-11-04T00:32:37
2020-11-04T00:32:37
296,486,320
0
0
null
null
null
null
UTF-8
Python
false
false
4,604
py
cnn_temp3.py
# General import numpy as np import pandas as pd # sklearn from sklearn.feature_extraction.text import TfidfTransformer, CountVectorizer from sklearn.linear_model import SGDClassifier from sklearn.naive_bayes import MultinomialNB from sklearn.svm import LinearSVC from sklearn.svm import SVC from sklearn.pipeline impor...
db923dcdf8eacbe6437260ca153ad45430b0365f
94182f6166932116139cf087e0e1024715ccb007
/scanner.py
4a92473cfc9c9505bb288568e281989c51f5346b
[]
no_license
samsaksham/Basic-Nmap-Scanner
30dcfb15db8e3dd12c4984e0eac33449b3c0ee98
07cabde598fa32bb20e0bcc639e95a3ad0f71548
refs/heads/master
2022-08-17T05:30:12.147457
2020-05-25T19:26:19
2020-05-25T19:26:19
266,862,934
1
0
null
null
null
null
UTF-8
Python
false
false
1,535
py
scanner.py
#!/usr/bin/python3 import nmap import os os.system("tput clear;tput setaf 4") scanner = nmap.PortScanner() print("\t\t\t\t Welcome this is a Simple Scanner based on nmap") ip = input("\n\n\n\t\t Please Enter Ip Address You want to scan:") print("\t\t\tThe Ip you entered is :",ip) type(ip) resp = input("""\n\t\t ...
71ae8e2ddef79a34f2323a1cb7451472b783475b
9db1fc8d78d7b631aa448120fad7168cb0504b0a
/run.py
906129f7999858f52242626f03ca9557aad7bd6e
[]
no_license
cjer/mila_tokenizer
d3db21986cceadb490113ab813687236b15be4f0
56aa1e90a6f7a85c962efc4010a6eb08f1b29d97
refs/heads/master
2020-06-11T07:43:30.834323
2019-06-26T11:55:58
2019-06-26T11:55:58
193,894,716
0
0
null
null
null
null
UTF-8
Python
false
false
2,209
py
run.py
# Author: Dan Bareket from tempfile import NamedTemporaryFile import sys from lxml import etree import subprocess import os def run_tokenizer_on_text(text, use_tempfile=False, temp_input_path='temp_input.txt', temp_output_path='temp_output.xml'): if use_tempfile: temp_input_file = NamedTemporaryFile(mode=...
eeb59046bac26821c8702ada5cfbbcf49e720206
f4578d908522d15e1826239a5275ab63401e6ea7
/Basic pyton/NombrePair.py
0d42cc0b0249a67588daf48362f93a1845752674
[]
no_license
blufa/Pytho-basic
113fb30edb6bb5cec9a350546aec57278749f4f4
72235468740b726041f16e36fe48461a0223136c
refs/heads/master
2023-06-18T08:35:12.957544
2021-07-05T16:41:48
2021-07-05T16:41:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
266
py
NombrePair.py
#Ecrire un programme que demande à l'utilsateur de saisir un nombre entier #et de lui affiché si le nombre est pair ou impair n = int(input("Entrer le nombre n :")) r = n%2 if(r==0): print(n ,"est un nombre paire") else: print(n ,"n'est un nombre impair")
b3de3987aa850a1a63d7fb665319cc9c22b60d7c
327c6c770ef214717f269f4f55d872b204b86765
/tests/test_cvv.py
bd14b59b611e30875b173c99a74b476f5c114fc9
[ "MIT" ]
permissive
esabouraud/psec
2c10de0ee3e6f9d50d831476e508e7eb3b03dd52
6b549c650cde21191539cdfc6a9d95e99f9268fc
refs/heads/master
2023-06-11T20:18:08.400133
2021-07-08T03:21:32
2021-07-08T03:21:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,574
py
test_cvv.py
import pytest from psec import cvv # fmt: off @pytest.mark.parametrize( ["cvk", "pan", "expiry", "sc", "error"], [ (b"AAAAAAAA", "5555555551234567", "2012", "220", "CVK must be a double length DES key"), (b"AAAAAAAABBBBBBBBCCCCCCCC", "5555555551234567", "2012", "220", "CVK must be a double len...
06aa823d8f7fe187aea4e3fec992abb67c40061f
4d78271c57933acf67f839b7374b3eb7eacacf1d
/cellophane/constants.py
275f3b439e91f47fc0e89c3484570356430d5427
[ "MIT" ]
permissive
relaxedplan/cellophane
60e8b1784bbcf537cd9c894d171e96674d960d33
d6a8036a384a073d9ce06a411b3f282b74808fe1
refs/heads/master
2023-03-04T01:00:46.533799
2021-02-11T05:47:52
2021-02-11T05:47:52
325,110,904
3
1
null
null
null
null
UTF-8
Python
false
false
1,626
py
constants.py
UPPER_BOUND = 'upper' """Defines the upper bound of a partial identification set""" LOWER_BOUND = 'lower' """Defines the lower bound of a partial identification set""" EXPECTATION = 'expectation' """Defines the expected value of a partial identification set""" IN_PROTECTED_CLASS = True """True when a row is in the spe...
920711a3a690525130ded5ade93b96e7873f8fd5
b18f9964fb20ecfdd6508f1d7ad29254c0ba1fc1
/sample.py
da91786b83c7b5f4203a0de6e7ff5788f04644ed
[]
no_license
saurabhjinturkar/soccer-simulation-openmp
ea5f221f5b10d046fd8db8017fbd4f85ea9cdd60
0ac527307f2911cf66bb82db5b08871953768f81
refs/heads/master
2021-01-12T08:31:17.639796
2016-05-23T23:03:28
2016-05-23T23:03:28
76,602,014
1
0
null
2016-12-15T22:42:51
2016-12-15T22:42:50
null
UTF-8
Python
false
false
63
py
sample.py
import example print example.fact(8) print example.get_time()
c7860b703a58497a51a19ff56c2cc8f0c7cfc040
ffad1bc96dd1c9e87cab501781de38a211cf4b59
/Competition1/resources/jl_lemma.py
8ce3ea8f09cbefa0991454d8f49f270eb7dfdc93
[]
no_license
Nianze/CS4786
0b3a76400d216f113d5dbc25b768956186fe602d
a53cc3e6f75ac8f55e5a743faba3a09a2120c3c9
refs/heads/master
2023-07-21T05:11:48.223157
2017-05-12T22:00:10
2017-05-12T22:00:10
90,939,492
1
0
null
2023-07-18T21:28:34
2017-05-11T05:06:34
HTML
UTF-8
Python
false
false
1,679
py
jl_lemma.py
# USAGE # python jl_lemma.py # import the necessary packages from sklearn.random_projection import SparseRandomProjection from sklearn.svm import LinearSVC from sklearn.cross_validation import train_test_split from sklearn import metrics from sklearn import datasets import matplotlib.pyplot as plt import numpy as np ...
c76abe8edfb31105378372d62e25eb942555be3b
8dffbac8da1d21fd905ff7eea4e825da17d159c9
/linked_lists/nth_to_last_node.py
7592a7f2e0d050544a6b1f6a54ca1dc6c0036891
[]
no_license
777shipra/Data_Structures_and_algorithms
2b5cc6915685398230a3a531c88784ffbd2fc9f1
9cc8ea73984826e7a725ae912550be185e6e7538
refs/heads/master
2021-09-06T21:15:26.830827
2018-02-11T14:20:30
2018-02-11T14:20:30
116,141,322
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
nth_to_last_node.py
def nth_to_last_node(n,head): left_pointer=head right_pointer=head for i in xrange(n-1): if not right_pointer.nextnode: raise LookupError('Error: n is greater than the number of nodes') right_pointer=right_pointer.nextnode while right_pointer.nextnode: left_poin...
d0e914993fd05d170cdf06ca0efa1f77fd0085e1
538102fb7e0010b0040a0f2a824935c6be3be486
/IAI/iai/plugins/SellItem/nlp.py
af058c0ca12d71e2b24bce9fc7aee32dbc411be7
[ "MIT" ]
permissive
SincereXIA/IAIbot
28792a8eca4c08e815d851e5f0917ac8feb9c704
ce023fcf548443833541539d44c35246a12ce597
refs/heads/master
2022-12-21T01:54:33.647763
2019-06-28T09:50:43
2019-06-28T09:50:43
145,384,593
8
1
MIT
2022-12-09T09:32:41
2018-08-20T07:50:51
Python
UTF-8
Python
false
false
4,909
py
nlp.py
from nonebot import natural_language,NLPSession,NLPResult,on_natural_language,get_bot from IAI.nlp.sellitem_nlp import get_item_nlp @on_natural_language('谁想要',only_to_me=False) async def _(session:NLPSession): if not session.ctx['to_me']: if session.ctx['message_type'] == 'group' and session.ctx['group_id']...
411fa4385000b00a4862310149af431425474a46
d3fe2c642382c5c8dc36d3b57eb329b090493c17
/gas/views.py
7bd21795200a73ba1a3b4ea24b14920e014a6d9c
[]
no_license
uczhou/awsproject
2435c93eb1d1c37b1fd479fc9e0085eefb101cb9
a3149cadc9990e6c02df185ae4854da6233efeb7
refs/heads/master
2022-12-22T05:04:30.411104
2018-06-14T04:24:06
2018-06-14T04:24:06
137,305,502
0
0
null
null
null
null
UTF-8
Python
false
false
16,954
py
views.py
# views.py # # # Application logic for the GAS # ## __author__ = 'Honglei Zhou <hongleizhou@uchicago.edu>' import uuid import time import json import boto3 from botocore.client import Config from boto3.dynamodb.conditions import Key from flask import (abort, flash, redirect, render_template, request, session, url_...
98cdf589af06a94be84cf1b95ea3e2fde9589cb7
711654b2e8f9fb52fe2dd9fc4c26c3be645d51b2
/chap4-4.py
65f4e27327d04336d360510b078131d5b6b2602c
[]
no_license
holmes64/python_introduction_scraping
c104f8befeceaa1b9a832c58a17f694f57cdaec2
0d841edfd4221affdb1781440381f677089c7562
refs/heads/master
2022-12-08T09:28:59.386942
2020-08-16T13:38:10
2020-08-16T13:38:10
287,949,562
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
chap4-4.py
import pandas as pd ''' Source: https://www.e-stat.go.jp/ ''' df = pd.read_csv("FEH_00200524_200816200444.csv", index_col="全国・都道府県", encoding="shift_jis") print(len(df)) print(df.columns.values)
db25afef1327ad20d2ac188d37f073d8f7bc7696
a700a87f72dea813e2112c61dbe295117283b629
/창의학기제/2018-2학기창의학기제_우선순위를_적용한_과제관리시스템/PATH_소스코드/PathPractice/src/main/webapp/WEB-INF/views/get_blackboard.py
f817e641de83cb8d2760c85de720d861d939f3aa
[]
no_license
kiiimes/junior_2nd_semester
f5299d21fdbedaa29ba277079659d3aa9a31b7b0
31951fe2fd28bb60f6e51db1c8426d9bccedffb1
refs/heads/master
2022-12-22T04:44:15.631172
2019-08-07T19:04:57
2019-08-07T19:04:57
201,101,334
0
0
null
null
null
null
UTF-8
Python
false
false
1,604
py
get_blackboard.py
from selenium import webdriver from bs4 import BeautifulSoup from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from time import sleep from selenium.webdriver.common.keys import Keys def get_info(u...
e08159a51b611ce6d0ca354a4fe6759d00af2cb7
63453df1fc6a2de0580c4f958cd7024cbe467d17
/results/2019-01-09_end_analysis/search_engine_comparsion.py
7b66722fd28cad41c5f3938d5e7ea7a0dabec69b
[]
no_license
TimothyBergstrom/BB2490_project
1cc033da7c647131178126fb4593136403d1748f
76ea019dd58b234036263e06faea91b19bb80c80
refs/heads/master
2020-04-08T12:58:30.669394
2019-01-14T17:47:01
2019-01-14T17:47:01
159,369,880
0
0
null
null
null
null
UTF-8
Python
false
false
1,383
py
search_engine_comparsion.py
import matplotlib.pyplot as plt file_list = ["Quantification_comet_fdr.csv", "Quantification_crux_fdr.csv", "Quantification_msfg_fdr.csv", "Quantification_msfg_percolator.csv"] file_titles = ["Comet", "Crux", "MSGFPlus", "MSGFPlus + Pe...
887a39f1eeb81e6472938c2451e57866d3ac4a45
303ec767fa0a2d50c52e792a5f7d53669804d369
/historia/pops/models/pop.py
7cfce0f76750aa217d2450e82731ee6482224e7b
[ "MIT" ]
permissive
techdragon/historia
bad66a4028ca354cb4ee6f78390c4233b00f92df
5e0b047d4bcdd534f48f8b9bf19d425b0b31a3fd
refs/heads/master
2021-12-10T07:42:14.880963
2016-07-31T05:31:21
2016-07-31T05:31:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,634
py
pop.py
import math from historia.utils import unique_id, position_in_range from historia.pops.models.inventory import Inventory from historia.economy.enums.resource import Good, NaturalResource from historia.economy.enums.order_type import OrderType from historia.economy.models.price_range import PriceRange from historia.econ...
3b3f423cfb08413a4135646ea4d3d6dcb5d0cc10
5fd6675b9f1679d3061b6d6e0b755d56618a59e6
/tasks/task5/observer.py
317bc9ce36d0f32e2bbda6cb5c59afe3979f9486
[ "MIT" ]
permissive
ATGE/dev-fundamentals-ii
b22f6f5313a189f28362edea15ee01cdd903e8ba
f66835126eeae6a11162283028f10b2d5ff91cc4
refs/heads/master
2023-07-29T23:32:51.991476
2021-10-04T18:51:10
2021-10-04T18:51:10
399,637,511
0
0
MIT
2021-10-04T18:12:16
2021-08-25T00:07:06
Python
UTF-8
Python
false
false
3,390
py
observer.py
# Based on https://dev.to/jemaloqiu/design-pattern-in-python-2-observer-j4 class AbstractObservable(): """ Abstract Observable """ def __init__(self): self.__observers = [] def add_observer(self, observer): self.__observers.append(observer) def remove_observer(self, obse...
9d3439a2be1f22c8ec59923b88ac22877a4f13e8
abc86252fff1a18c1615ac4a35de407be6a9cb88
/Back to School/bts18p3.py
cb84670510d8b49fae5874009df1d0181bc51cf0
[]
no_license
ApoapsisAlpha/Competitive-Programming
56a97dd666a240c4e12b7d314a21c0759683eb82
83d82a3d5d5ee85f481c437f1b5e9c8ac199f6f6
refs/heads/master
2021-07-12T11:02:40.410131
2020-07-10T17:54:33
2020-07-10T17:54:33
174,010,075
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
bts18p3.py
n, x = input().split() n = int(n) x = int(x) m = [int(i) for i in input().split()] m.sort(reverse=True) i = 0 res = 0 while x > 0: res += max(0, m[i]) m[i] -= 1 x -= 1 if m[i % n] < m[(i+1) % n]: i = (i+1) % n print(res)
6b2fc94d9a53b8f669cab5e1fb625dd01e20ba98
f1d0b83cd38bffd9f406b23d53fb616dc132389a
/split_dataset.py
d0e8eb5458322fbce0b5eb5e68f471a5fbc22188
[ "MIT" ]
permissive
IsabelleCur/maml-attention-pytorch
1aa07be3f3b94a8918393657ff717a8ce17d2648
7c81f2356102ed4acbba9df32d174b8dd2ea417f
refs/heads/main
2023-08-24T02:48:11.963612
2021-09-29T14:06:27
2021-09-29T14:06:27
345,916,928
2
0
null
null
null
null
UTF-8
Python
false
false
1,316
py
split_dataset.py
"""Splits the google speech commands into train, validation and test sets. """ import os import shutil import argparse def move_files(src_folder, to_folder, list_file): with open(list_file) as f: for line in f.readlines(): line = line.rstrip() dirname = os.path.dirname(line) ...
3e1540a06c478d471f6e6a190cadc44d5c4c2467
2de76593bce404dbb676e21d278640b672ec455a
/lesson/work461.py
c1f1eb56ae9bca050072159e3ebef64215858b58
[]
no_license
AIstroemeria/test
aee3bc6bae7104e5da9288330e3321dc0e55b034
99a1318d0537e0233e9faabc666ac5526cb94a77
refs/heads/master
2020-04-23T21:23:43.151217
2019-02-19T12:33:21
2019-02-19T12:33:21
171,469,240
0
0
null
null
null
null
UTF-8
Python
false
false
905
py
work461.py
import time as t class Record: def __init__(self, value = 10, name = 'name'): self.id = name self.value = value def __get__(self, instance, owner): with open('record.txt', 'a') as f: msg = '读取变量%s ' % self.id tmp = t.localtime()[:6] form = ['年','月','...
ba216642935d19b85e379b66fb514854ebcdedd9
8809d4921874f865484e30719c856243175f311c
/ssae/utils/std_dev_eval.py
b7844cd44d275261b4e51d14a4aaa674b7322cd1
[]
no_license
allyoushawn/grape_project
86ede307ca03ba48a64731b80572e1d7a39266a3
463e3c66c35c9fcf1c80349db4fa8adeed04ec7e
refs/heads/master
2020-03-26T04:41:32.354713
2018-08-24T15:44:51
2018-08-24T15:44:51
144,516,922
4
0
null
null
null
null
UTF-8
Python
false
false
910
py
std_dev_eval.py
#!/usr/bin/env python3 import subprocess import sys import pickle if len(sys.argv) != 3: print('Usage: std_dev_eval.py <std_dir> <ans>') quit() std_dir=sys.argv[1] std_ans=sys.argv[2] subprocess.call('rm -f {}/result'.format(std_dir), shell=True) op_f = open('{}/jobs'.format(std_dir), 'w') command = 'utils...
cd104eec21be8a59e8fb3bd8ab061dd357fc126a
6ccdcd44c15954167e2b59315b587d4114783865
/python3_libraries/pillow/pillow_rotate.py
fe798d7b5a0cfa0450105cf9a32bc80ce8545de8
[]
no_license
jamesjakeies/python-api-tesing
bdc417c4b7055c96ddaf1b54aa0376dc4ba556dd
ea1954ee5247a20d485c339e97eb10d6282d28a4
refs/heads/master
2020-04-26T05:03:00.828524
2019-03-01T14:54:49
2019-03-01T14:54:49
173,321,195
2
0
null
2019-03-01T15:04:58
2019-03-01T15:04:58
null
UTF-8
Python
false
false
559
py
pillow_rotate.py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Author: xurongzhong#126.com 技术支持qq群:6089740 # CreateDate: 2018-3-27 # pillow_rotate.py import glob import os from PIL import Image def rotate(files, dst, value=90): for file_ in files: img = Image.open(file_) img = img.rotate(value) name = "{...
b1c06e9c5516a378c0bbce2ce9e17afaeae01928
98fa57c6981944ac8922da4bf3a15c3ce3334052
/app/src/text_processing.py
f289b50e3fb2582058a2b20a8e7f1fb5b244995c
[]
no_license
Burbon13/PriceAnalyzer
3f1df2f481821a485c16061cc53ffc5bc4298c2f
d19c548b6e9a7613b9e0b472d15f9cc4c9ba7d26
refs/heads/master
2020-04-27T15:10:23.797185
2019-09-16T19:47:51
2019-09-16T19:47:51
174,435,422
2
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
text_processing.py
import re # Class with static regex compilations class RegexCompiles: # regex for finding product-id in an EMAG link re_compile_product_id = re.compile('Product-Id=[0-9]*') # regex for finding the first number re_compile_id = re.compile('[0-9]+') # Verifies if a word exists in a text def find_whole_...
4a88ce640b6680df925288b44232cf43d585c11c
57d9eeefed866e460248be99ac27af39922a95c7
/transfer_classifier/augmentor/augmentor.py
12509bbd41459afd407dd8cc582a099e76dd4514
[ "MIT" ]
permissive
icoxfog417/transformer-sandbox
1d3383ce111f53c6ecab68fb71cfdb5eecc9a789
f6bf98bf7f644d5555023809ddbe57e9fd08b1fc
refs/heads/main
2023-04-30T10:51:57.485767
2021-05-17T21:21:57
2021-05-17T21:21:57
356,433,389
0
0
MIT
2021-05-04T22:51:24
2021-04-10T00:55:49
Jupyter Notebook
UTF-8
Python
false
false
4,790
py
augmentor.py
from typing import Any, Dict, List, Optional, Tuple, Union import numpy as np import torch from datasets import concatenate_datasets from datasets.arrow_dataset import Dataset from transfer_classifier.dataset_preprocessor.classification_dataset_preprocessor import ( ClassificationDatasetPreprocessor, ) from transf...
83dc4380577393915e83314c71443639a0f21d87
a55c9392dc3c657c4feb3d0bd62d50e472d75128
/mapzen/cache/notifier.py
e83e8beea4226e032d0d80fa756f41b43ca92ef9
[]
no_license
virtualadrian/tilestache-providers
35d5dd38c1f5108f7286116f4070fcb4031fe537
b1b76c71f498bfb56be50633e316eae56089ffc4
refs/heads/master
2021-01-01T20:49:40.999916
2015-07-08T15:51:36
2015-07-08T15:51:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
notifier.py
from mapzen.util import is_valid class Notifier(object): def __init__(self, cache, on_save): self.cache = cache self.on_save = on_save def lock(self, layer, coord, format): return self.cache.lock(layer, coord, format) def unlock(self, layer, coord, format): return self.c...
e1e248d92eb2e4bca4071fe18d780c68b9e8a883
ad00b44bd862ca05d0fd94ab152dc2c9c962aeb3
/05 Data Structures/16 Swapping Variables.py
84fe82ee6b8421423cc483dad0607351e7cecd99
[]
no_license
jmschp/mosh-complete-python-course
e7972867a2adae044ad2cd6004033b8da84c3e23
a8389bdb3f83beea95e3418ab37a5013a0156819
refs/heads/master
2023-08-01T10:50:33.830709
2021-01-01T21:39:46
2021-01-01T21:39:46
272,241,712
41
24
null
2021-09-22T19:43:32
2020-06-14T16:35:07
Python
UTF-8
Python
false
false
316
py
16 Swapping Variables.py
# 16 Swapping Variables # Tow sawp to variable we can use a thurd variable to backup the frist variable x = 10 y = 20 # z = x # x = y # y = z print(f"x: {x}\ny: {y}") # In python we can swap the valeu os two variable using only one line of code and with the third variable x, y = y, x print(f"x: {x}\ny: {y}")
f68d24005846f19af321bb63ecbcf948438e219a
6575c49516b7c9a07b13d2b35a7002f007d912ea
/OptionsDB/UI/ExportCustomDay.py
e6d0cfa9336c93057ef4a6ad2f6c7db2ebde5af6
[]
no_license
Nathan-T1/OptionDB
3907d0fd5ee4f36525df2e77b0c718b891b13380
ca57bda455c46f40bc7edb18b6ed5bfd50d664fd
refs/heads/master
2020-06-23T20:06:18.285694
2020-03-27T15:04:41
2020-03-27T15:04:41
198,739,632
9
2
null
null
null
null
UTF-8
Python
false
false
2,180
py
ExportCustomDay.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ExportCustomeDay.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): ...
a7371c1cb76f21c41d45e81010867dcbc8cf4ffa
2136cdbae24e0f503d554b76ee6d84c50d0da59d
/哈工大/元组/DSU.py
37d155ee94472396f4f6376fffe40c1b422fc8e7
[]
no_license
16348104/PythonDemo
68d105d8766f1800377a29d5e75049afef5ad375
d458e47207820df5b13f90b0679f7a52af95be6d
refs/heads/master
2022-07-30T03:39:05.004280
2020-05-16T10:08:22
2020-05-16T10:08:22
264,400,765
2
0
null
null
null
null
UTF-8
Python
false
false
300
py
DSU.py
words = ['dfafj', 'ajgjg', 'ghghaf', 'tu'] # #decorate # lst = [] # for w in words: # lst.append((len(w), w)) # #sort # lst.sort(reverse=True) # res = [] # #undecorate # for length, word in lst: # res.append(word) # # print res words.sort(key=lambda x: len(x), reverse=True) print words
d58a4074146b73f4ee5b9563018a208c67bc2872
fd25231975acd147e04dc3ed3627c92cb1a4f86c
/FlaskAPI/vir_env/lib/python3.7/site-packages/sklearn/metrics/_plot/tests/test_plot_confusion_matrix.py
2900118aecf84100d2c8bce60b3e2e2adee2c5b2
[]
no_license
sumitkutty/Flight-Price-Prediction
832a2802a3367e655b46d3b44f073d917abd2320
d974a8b75fbcbfa42f11703602af3e45a3f08b3c
refs/heads/master
2022-12-25T07:13:06.375888
2020-10-08T18:46:44
2020-10-08T18:46:44
302,366,725
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
test_plot_confusion_matrix.py
version https://git-lfs.github.com/spec/v1 oid sha256:bf35fb3c628c7d73920dae67faaa8d8ec24c6cdc2b18c787f137629edf0e1f9f size 10898
1a98dc97c31416e345c3e6b6b7b5202b7b04b275
d10fe22573da03353f72ec93330ea126cd328ec1
/pipeline/applySpotfixesAndAddCustomDocs.py
0415fe62c1f9ecbdeeae6fb53aabce02988de1eb
[ "MIT" ]
permissive
personx000/corona-ml
5b2eeb4fe540270a63b2a3dd8cb6ce4d6769c631
3e4bb0e5ddc66fb7b5af6eec92d4075a6276dbfc
refs/heads/master
2023-02-15T14:31:42.193100
2021-01-03T22:21:21
2021-01-03T22:21:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,000
py
applySpotfixesAndAddCustomDocs.py
import argparse import json if __name__ == '__main__': parser = argparse.ArgumentParser('Apply some minor spotfixes to go in at the beginning of the pipeline') parser.add_argument('--inJSON',required=True,type=str,help='Input JSON documents') parser.add_argument('--additions',required=True,type=str,help='Custom add...
bed222f00e0a2c56c7a49bb5d6f1c98e0ef36421
9d223f430dd58d3c0468e681f743aaa270ce4b8c
/shared/types.py
6f0eed9755c0faf87e56fd91d4001f3aadc19a03
[ "MIT" ]
permissive
merlin-s/w3x_reconstruction
8003b1eef9f897060c7fe3f3852651d8214bec4a
2c1956ac916852e1677ef23f9834a47b0ba7e4b6
refs/heads/main
2023-01-15T11:10:15.804200
2020-11-25T23:50:21
2020-11-25T23:50:21
300,920,321
0
0
null
null
null
null
UTF-8
Python
false
false
38
py
types.py
import typing typing.NewType('Char4')
94a726d4b0921b6ca162ea3b9d0db395a084fa05
bc9cfba4ea52fde2cdd696fcad4baddf61f62138
/src/plots.py
e2c36587732c2c277c0d43faab95b169e5519325
[]
no_license
felixbrunner/hmm-real-vol
8f14c90fdf84d023beee697b7d097bc2ec71e5bc
e4bf439a4c24c723eea90926c7a5a587b85f7927
refs/heads/master
2022-12-15T08:49:57.967769
2020-09-23T09:04:15
2020-09-23T09:04:15
251,576,066
0
0
null
2022-11-22T06:35:01
2020-03-31T10:54:13
Jupyter Notebook
UTF-8
Python
false
false
2,397
py
plots.py
#from src.dists import GaussianMixtureDistribution import numpy as np import scipy as sp import matplotlib.pyplot as plt def plot_pdf(distribution, n_space=1000, std_range=3, ax=None, **kwargs): ''' Plots a MixtureDistribution pdf. ''' # set limits lower = distribution.mean()-std_range*distribut...
ea58b0d028ced0125f9ec914c5dba22635915c42
d6cf6dff1efdbd18013edaad15ac5d6540d1e06a
/BeautyShop/BeautyShop/BeautyShop/urls.py
14ccdd742ab5533f569a2c5812aaa6038721a1dc
[]
no_license
Yangchengfeng/BeautyShop
867ee0d7ea7ffad667388e0f97eab302f1c2fad8
cf6beb1684fd67011014d5bebedeb32fef0b0684
refs/heads/master
2021-05-08T16:19:30.473624
2018-03-03T07:38:27
2018-03-03T07:38:27
120,150,411
1
0
null
null
null
null
UTF-8
Python
false
false
2,930
py
urls.py
"""BeautyShop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
81a47df1fc9772dc931635361ee1f45f358c1c7e
417bbdb9cb19935c04d84cd645619dc55d7c1ea2
/nsvision/video_utils.py
5b718ee623246a891c84bb4f9e4ee9f233b173e6
[ "MIT" ]
permissive
mcclory/nsvision
ec930cd64edfe524a8c94ef1086dec06852e38be
c70656caf0936020d85fa9b7fdda9405419edc5b
refs/heads/master
2023-05-15T11:48:10.454669
2021-01-27T09:43:36
2021-01-27T09:43:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,988
py
video_utils.py
try: import cv2 except: cv2 = None def live_video(source=0,color_mode=None,resize=None,preprocess_function=None): """ Displays live stream on window. You can press `q` to stop. Parameters: source: Camera port default is 0 color_mode: convert image to 'rgb' or 'grayscale' resize: (height , width) tuple resiz...
4a06743cfa5af3ea50a9b15ee78512c8ed1b0d05
9b0de3c7d9451db74adc433bc8710c01a1161a30
/xastropy/xutils/lists.py
44be89d9568fcc0e2edd39ea6156874079ce624a
[ "BSD-3-Clause" ]
permissive
lwymarie/xastropy
a52a0d78303467d60989a28729f5378581ebc1da
820c05cd8beb1ce584e94b51c28f24449993ae09
refs/heads/master
2021-01-22T16:37:33.883038
2016-08-23T13:23:02
2016-08-23T13:23:02
66,527,613
2
0
null
2016-08-25T05:28:10
2016-08-25T05:28:10
null
UTF-8
Python
false
false
881
py
lists.py
""" #;+ #; NAME: #; lists #; Version 1.0 #; #; PURPOSE: #; Module for list utilities #; 10-Dec-2014 by JXP #;- #;------------------------------------------------------------------------------ """ from __future__ import print_function, absolute_import, division, unicode_literals import numpy as np import os f...
b70c4a614eb39c40ab089c5112258fd16c384e85
b6829b929af6f5f05954b9a951bf1e65da607e2d
/B;/main apps.py
96838f87d7639eff5b87c5ecfee8906c031a67db
[ "MIT" ]
permissive
Zeplin-Reapers/OS
ec6f314e20ea0d8e424793a6d03f622bdaa71ac3
d0e3d0c1291654a7dc4cf7c6ea418d9e80a09a4c
refs/heads/master
2021-01-01T19:03:39.152571
2017-07-28T20:48:26
2017-07-28T20:48:26
98,494,859
1
0
null
2017-07-27T20:02:33
2017-07-27T04:46:47
Python
UTF-8
Python
false
false
3,066
py
main apps.py
import time import tkinter as tk import os import random import math version = "alpha 1.0" full = "false" print("OS VERSION: " + version + ";") print("FULL REALESE: " + full + ";") print("Loading") time.sleep(1) print(".") time.sleep(1) print(".") time.sleep(1) print(".") print("complete!") count = 1 ...
596221485de9ee24af121d70eb94ca80c88ead9a
0afa8b024fce4a29f9dc3a757ce9cca1584d8d43
/aws/aws_create_instance.py
f9bb330eb542e4aba1f5efd652be0a1c09e3a73b
[]
no_license
dimonov/build-cloud-tools
a16b750f06fdbb98f23887700fa9fd8fe8d7f5da
dddbbfa0c9f9369e5297bd1d923144be938a0c69
refs/heads/master
2020-04-07T16:52:55.663267
2013-01-11T19:33:55
2013-01-11T19:33:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,659
py
aws_create_instance.py
#!/usr/bin/env python import json import uuid import time import boto import StringIO from random import choice from fabric.api import run, put, env, sudo, settings, local from fabric.context_managers import cd from boto.ec2 import connect_to_region from boto.ec2.blockdevicemapping import BlockDeviceMapping, BlockDevi...
950b0ff9bb5955521da3d5430146d799db822f13
92deaf07cfd70576516b25a95b0df8f05e44ced3
/backend/electroplace/translation/contact_page.py
24780e3a1bb041bd44d2de72520cc24572d05c04
[]
no_license
AlexKhlybov/gCMS_electroplace
ab071b51e1ce087209b80b8be045591e5d55c54c
1bf6626ac65a7271d4b5a09a5c28951f1489238e
refs/heads/main
2023-07-15T11:28:05.280328
2021-08-29T18:42:48
2021-08-29T18:42:48
390,850,803
0
0
null
2021-08-29T18:42:49
2021-07-29T21:07:13
JavaScript
UTF-8
Python
false
false
211
py
contact_page.py
from modeltranslation.translator import TranslationOptions, register from ..models import ContactPage @register(ContactPage) class ContactPageTranslationOptions(TranslationOptions): fields = ("address",)
1c9c4cb88434ecb6c6ad9759b997c2174df5ab70
1c032bc7e9a094ead94ea1b32143e1382aef35c6
/steelscript/appresponse/commands/columns.py
413ca787daf21a811b3852d01508382f4a346836
[ "MIT" ]
permissive
riverbed/steelscript-appresponse
1bc409567b76adced1d95739fc1f0acc2d60aafd
69fafaa19f36efc33fdd9a407f41520bdbea78d4
refs/heads/master
2021-12-31T10:00:22.069533
2021-11-24T17:23:03
2021-11-24T17:23:03
98,676,450
8
8
NOASSERTION
2021-11-24T17:23:04
2017-07-28T18:25:24
Python
UTF-8
Python
false
false
1,840
py
columns.py
#!/usr/bin/env python # Copyright (c) 2019 Riverbed Technology, Inc. # # This software is licensed under the terms and conditions of the MIT License # accompanying the software ("License"). This software is distributed "AS IS" # as set forth in the License. """ List all the key and value columns that the given AppR...
107799442ec0f648f1d9cca0bf9042b34bbf7aa5
fbb9cfffde86c670a845352cdd21f2970047ea5e
/chula_rl/explorer/one_step_uniform_replay.py
4a0d2a6f7b3c631b5df91ef7fc2d47582c59b045
[]
no_license
phizaz/chula_rl
c812b799e6fc68bfbf04eda6248a04a0ccc396ca
1f2b4651fc21f2d4f326b62d7ff5ccc0f6741eff
refs/heads/master
2020-07-13T13:07:48.002984
2019-12-18T17:40:14
2019-12-18T17:40:14
205,090,067
2
1
null
null
null
null
UTF-8
Python
false
false
2,677
py
one_step_uniform_replay.py
from .base_replay import BaseReplay import gym import numpy as np class OneStepUniformReplay(BaseReplay): """a wrapper for one-step explorer, this will put the experience into a database, then samples as a return""" def __init__(self, explorer, n_sample, n_max_size, obs_space: gym.Space, act_...
ff83478ce362f2a9dbb911774d966772bb666a34
09417a6dbf6711435fdcf7f21ad980e942eded08
/Layer.py
af75d5958dda2d00ea8607198c30ede1fb2207bb
[]
no_license
arthurnoerve/FYS-3012-Neural-Network
de40fadd1c05d35d0bab33d39c7636f316273385
1ade759a9df311c73cb30680fcc726137873bcf7
refs/heads/master
2021-09-29T02:08:06.808405
2018-11-22T15:22:26
2018-11-22T15:22:26
107,134,015
0
0
null
null
null
null
UTF-8
Python
false
false
854
py
Layer.py
from Neuron import Neuron class Layer: #neurons #previous_layer #next_layer def __init__(self): return class UniformLayer(Layer): def __init__(self,dim,input_dim, activation_function): self.activation_function = activation_function self.neurons = [] self.input_...
a84cdcb09f304ab159087eb0355eb6e318e45b15
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/list/float/Schema+Instance/NISTXML-SV-IV-list-float-length-3-4.py
83335fc0d15f3da72a2f4bdf5642991950b2a501
[ "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
406
py
NISTXML-SV-IV-list-float-length-3-4.py
from output.models.nist_data.list_pkg.float_pkg.schema_instance.nistschema_sv_iv_list_float_length_3_xsd.nistschema_sv_iv_list_float_length_3 import NistschemaSvIvListFloatLength3 obj = NistschemaSvIvListFloatLength3( value=[ 3.4264262e+24, 8.5723467e+25, 9423943300000000.0, 6.8238...
3062a17c28b3e95d9302ae30e26abd23c49abce0
a4b0ae9b296a890aaff644bec9885c715b0d19b2
/Pi() projects/csb_graph.py
0e78c8ec3e9253378e88e182ae9e7024c1065e7e
[]
no_license
steveandpeggyb/NCHpython
c1c8fe207a16c9cfcb6d80c5dfe1fe815624ed3b
93192c68f07a84d64f694d59e2a8c8df9f22134a
refs/heads/master
2022-12-08T08:19:28.873296
2020-01-24T14:02:54
2020-01-24T14:02:54
212,067,755
1
0
null
2022-11-22T02:10:33
2019-10-01T10:23:49
Julia
UTF-8
Python
false
false
3,184
py
csb_graph.py
import numpy as np import matplotlib.pyplot as plt import seaborn as sb; sb.set() def plotit(d): x = d[0] y = d[1] pvalues = [x,y] def checkx(TheList, min, max): result = 0 # traverse in the list for x in TheList: # compare with all the values ...
28b6fed181d0ddc66f1f8a4300efdf2728182829
d336c7f31bd6982aef742ca8b7322eab5025955c
/speeding_up_arcpy/find_nearest_line.py
bde26d677ef45c85bfd90e929dd32dfbf0cfadc4
[]
no_license
leaffan/portolan
2f3fe8bfa803ce679cf29ae71c6ff36f22e8fbab
fd908e4ed614dd1da3ed19489ec1ea5e80ccca3f
refs/heads/master
2021-01-21T01:49:36.495412
2020-01-28T23:49:56
2020-01-28T23:49:56
51,000,144
0
0
null
null
null
null
UTF-8
Python
false
false
3,940
py
find_nearest_line.py
#!/usr/bin/env python # -*- coding: utf-8 -*- u""" Linear version of a script to retrieve nearest line features to set of point features. """ import os, sys import arcpy sde_connection_file = "sde_connection.sde" point_src_dataset = "FDS_POINT" point_src_featureclass = "FCL_POINT" line_src_dataset = "FDS_LINE" lin...
ef411034dc7eda342a16f8a7a3c7d530b44eab3f
b9a6a2887a4be04276f298840dada1ce6c5c9815
/Python Code Challenges/100-plus-Python-programming-exercises-extended-master/solutions/Day-9/Q30.py
b1ff2bec2121441125ae4b32b6df7a82acb2b354
[]
no_license
sourav-coder/Python-Code-Challanges
e3bb9d0f17de98478c20af382b2f3d6ba8f6a821
34767aad28d6e5d01182e603d31d25b02e779317
refs/heads/master
2022-06-01T22:49:02.002060
2020-04-30T15:29:11
2020-04-30T15:29:11
256,960,381
0
0
null
2020-04-19T09:26:50
2020-04-19T09:26:49
null
UTF-8
Python
false
false
171
py
Q30.py
def string(a,b): if len(a)>len(b):print(a) elif len(a)<len(b):print(b) else: print(a) print(b) string(input('enter:'),input('enter'))
98611c3e510a53c799ab2c39e6cbbcdd013e95de
bc9cb3f0f104778026ca6f3a07595dd5d6ce840f
/PROJETO_FINAL/codigo/core/game.py
20640cc24e87898061ce4972e4328188b084f29d
[]
no_license
JohnRhaenys/escola_de_ferias
ff7a5d7f399459725f3852ca6ee200486f29e7d4
193364a05a5c7ccb2e5252c150745d6743738728
refs/heads/master
2023-01-12T11:30:46.278703
2020-11-19T14:59:10
2020-11-19T14:59:10
314,278,831
0
0
null
null
null
null
UTF-8
Python
false
false
3,410
py
game.py
from PROJETO_FINAL.codigo.core.menus.main_menu.main_menu import MainMenu from PROJETO_FINAL.codigo.core.menus.menu_options import MenuOptions from PROJETO_FINAL.codigo.core.tratamento_de_erros import exception_messages from PROJETO_FINAL.codigo.dados.database import Database from PROJETO_FINAL.codigo.core.tratamento_de...
4bd930fb18944c1fcc02cf8c00faf110244548cd
f4665133af6a17f07b103c76a09039db067a3e55
/others/netsec.py
0e539b9aaed7fc94645cad16465026bd6b25a7ce
[]
no_license
ahill6/TransferPoint
ab6f3f31fc9222d044e23b3c3a839b2e580a883a
313f9607fe8d8ce16fb802c3c5bc9b4c3e36e3a1
refs/heads/master
2020-06-27T05:03:06.574593
2018-11-20T19:29:34
2018-11-20T19:29:34
97,046,844
0
0
null
null
null
null
UTF-8
Python
false
false
4,302
py
netsec.py
from sklearn.svm import OneClassSVM from sklearn.covariance import EllipticEnvelope from sklearn.ensemble import IsolationForest import numpy as np def synScan(): # read synscan file = 'synScan.txt' a = [] with open(file, 'r') as cin: a = [int(v.strip()) for v in cin] b = list(set(range(...
9fe25a9ae6cb6acc3ffb4addbcc668574643a48d
d4d6a3ab6cce1ce30270f4c92c2acbe884a0ab5b
/easy/longest_common_prefix.py
170c17af70feedcd4a0bbc140298061a75fb17a1
[]
no_license
EarthChen/LeetCode_Record
e2e9d1a1460866afb85d3fdd115e082ab0ab3f5c
c756fe54e8e17e9ba0bfdab5fccc24ac89263d90
refs/heads/master
2021-01-06T20:36:30.075203
2018-05-27T04:34:06
2018-05-27T04:34:06
99,530,378
0
0
null
null
null
null
UTF-8
Python
false
false
1,538
py
longest_common_prefix.py
# Write a function to find the longest common prefix string amongst an array of strings. # 求出一个字符串数组中所有字符串的最长共同前缀 class Solution: def longestCommonPrefix(self, strs): # 判断字符串列表是否为空 if not strs: return '' # 计算字符串列表中最短的字符串 min_str = min(strs) # 计算最短字符串的长度 m...
ddf3d503e05971c6e2062e7e6669ed98cacca511
c03979576691aef4a0724bfaff691d347266dde2
/principal/forms.py
2e79f5972e6c75d2ee610fb475f74c9292138843
[]
no_license
Qaysen/SISGESA
10810f43699c80a288b5a8514ced94013e78e884
6d270ddfdb302d167f37ce402922133ae038d5f6
refs/heads/master
2021-01-15T22:00:12.012516
2013-05-16T23:26:40
2013-05-16T23:26:40
9,825,533
1
0
null
null
null
null
UTF-8
Python
false
false
1,935
py
forms.py
from django.forms import ModelForm from django import forms from principal.models import * from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from django.core.exceptions import ValidationError class UserForm(forms.ModelForm): first_name = forms.RegexField(label="Nom...
5a3112c95cf85333f8bbc48776e9f0f50fef73a5
7f1fdd4c631ecb30d00f4671aaaa594ae9b117ae
/fairseq/modules/linear_attention_transformer/autopadder.py
e6a8c4b11adb0b04160eb4a857f50d4bc4b6fa1f
[ "MIT" ]
permissive
CUMLSec/stateformer
0eeabce95e39258c0d61507ecfc801908d63e373
e6ce5bf4fb90468bd2386c016e5ebb85cc6b3058
refs/heads/main
2023-04-10T11:25:56.082405
2022-03-23T04:28:23
2022-03-23T04:28:23
373,925,846
50
6
null
null
null
null
UTF-8
Python
false
false
2,107
py
autopadder.py
import math import torch from torch import nn import torch.nn.functional as F from .linear_attention_transformer import LinearAttentionTransformer, LinearAttentionTransformerLM def find_module(nn_module, type): for module in nn_module.modules(): if isinstance(module, type): return module r...
1c762bf74ce22c98b405c4738647721f47cbab23
f07fd44693a5fdad3eb37d9d7f2ec49fd1dd1248
/user/models.py
e640a7efd4a8f10687882a8ce8a254e1c28e3fec
[]
no_license
JacobSpectorMD/ClinTAD
48029506c8e63f431254d5d9b9cfecc404af7a65
605d980be8b4e02e41b6d6471365de4ab4b4752d
refs/heads/master
2023-06-22T04:30:38.478051
2023-05-17T13:11:36
2023-05-17T13:11:36
162,218,490
2
2
null
2023-03-03T18:59:08
2018-12-18T02:28:45
JavaScript
UTF-8
Python
false
false
2,977
py
models.py
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager class UserManager(BaseUserManager): def create_user(self, email, name, password=None, editor=False, admin=False): print('creating user!!') if not email: raise ValueError("Please enter ...
ddb015601ee52dd5e82d6ae862264b3cc768f7eb
498526dff7df92662c7bd59a7b9fe4e5a4999522
/examples/factory/client_factory.py
35dc885091751152df2aa6e998cda389494066ee
[ "MIT" ]
permissive
allrod5/injectable
eebf6ba54c385ece22982fd9f266a8a036d1bdf7
7cbd7bbf935eb9e62a9c1f34c58769c7e42217e8
refs/heads/master
2023-01-28T22:58:06.314991
2023-01-11T18:03:57
2023-01-11T18:03:57
120,220,195
101
13
MIT
2021-08-15T22:44:36
2018-02-04T20:26:28
Python
UTF-8
Python
false
false
362
py
client_factory.py
import os from examples.factory.external_client import ExternalClient from injectable.injection.injectable_factory_decorator import injectable_factory @injectable_factory(ExternalClient) def client_factory(): client_endpoint = os.getenv( "CLIENT_ENDPOINT_EXAMPLE_ENV_VAR", "https://dummy/endpoint" ) ...
553208f2a1f6b5fef78a23b1d48f9d4bc5cd7810
6b2037eec04005d15fb495a2df952fb0c4dbf2b5
/PyDS/Introducing-data-science/Introducing-data-science-cource-code-part-2/Chapter 7/Data Preparation Part 1.py
905bf7b23f10de72ca9c35999cba3ae9e28e88c1
[]
no_license
MattyMatiss/stuff
efb05b639f1ef7779c42baa9b727f1c55c939261
22ee33d4281730bf6db6f1ff51fc7f0230613c2b
refs/heads/master
2021-01-11T18:49:00.033149
2017-03-31T15:45:42
2017-03-31T15:46:01
79,632,508
0
1
null
null
null
null
UTF-8
Python
false
false
1,166
py
Data Preparation Part 1.py
# coding: utf-8 # #Modules # In[1]: from elasticsearch import Elasticsearch import json # #ElasticSearch # ##Index # In[ ]: #the index name Elasticsearch client used to communicate with the database client = Elasticsearch() indexName = "gastronomical" docType = 'recipes' # In[ ]: # create an index (only onc...
91eb56e65fdc34992493f52fb630daf23eb7da0d
f4278f80cefda6bb77a1264eb9841fb6654a991b
/scripts/conlleval/preprocess_for_conlleval.py
fba3751353ad7fd118bf34215fa102b2359b0908
[]
no_license
IvanSfeir/sfeirseq_extras
c3c85b18fbd7d26926e9069cec62e376861d7159
3f1ea2699af1db1aff1d8f7e1b382a2ad36bc595
refs/heads/master
2020-05-17T01:30:54.956146
2019-07-18T17:22:50
2019-07-18T17:22:50
183,428,535
0
0
null
null
null
null
UTF-8
Python
false
false
2,510
py
preprocess_for_conlleval.py
import pandas as pd from tqdm import tqdm parent_path = "/home/getalp/sfeirj/data/" # Build dataframe predictions = pd.read_csv(parent_path+"valid_predictions", delimiter="\\t", \ names=["source","target","prediction"]) def preprocess(): # Saves predictions in a CoNLL-friendly format in parent path # Output data...