blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M โ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9be134a4a9373859f990d5d3743f9cfb575d68f9 | 60f588e7420b062021d78ae3ef4626d4ce472456 | /์ด๊ฒ์ด์ฝ๋ฉํ
์คํธ๋ค_๋๋๋น/ch10graph_set.py | 91a7e4283a3869670b5f40e710e1e83a2054ec61 | [] | no_license | DojinPark/algorithms | 3ac580117115a74906ca78a202e81853a0c7b5e8 | 35c01064778d9109368b33aab90ba373e1e5458a | refs/heads/main | 2023-04-27T23:13:00.903287 | 2021-05-07T09:52:28 | 2021-05-07T09:52:28 | 313,219,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,696 | py | # ์๋ก์ ์งํฉ์ ์ด์ฉํ ํธ๋ฆฌ ํํ
V, E = 6, 4
parent_str = [
'1 4',
'2 3',
'2 4',
'5 6'
]
# ๊ฐ ์์๊ฐ ์ํ ์งํฉ: 1 1 1 1 5 5
# ๋ถ๋ชจ ํ
์ด๋ธ: 1 1 2 1 5 5
# worst case: O(V) --> ๋นํจ์จ์ ์ด๋ค > ์ดํ ๋ฑ์ํ๋ ๊ฐ์ ๋ find_parent ์ฐธ์กฐ
def find_parent(parent, x):
if parent[x] == x:
return x
return find_parent(parent, parent[x... | [
"74354737+DojinPark@users.noreply.github.com"
] | 74354737+DojinPark@users.noreply.github.com |
7c9df44293fe56ebc72f5d2528661f8fd10bbe41 | 0c559308e95239e0c0b0134f6287f832e4871106 | /tradingsystem/settings.py | a080c66464c157a670d6e3c374abf442dc49ac4e | [] | no_license | jaehak24/tradingsystem | 76aaaa4583f2b15c5279f8b780bbba91b404bed8 | 05ff330c9a9d74e0097ed413777440dd52319980 | refs/heads/main | 2023-06-04T21:50:44.485514 | 2021-06-16T07:57:49 | 2021-06-16T07:57:49 | 378,058,854 | 0 | 0 | null | 2021-06-18T06:43:33 | 2021-06-18T06:43:32 | null | UTF-8 | Python | false | false | 3,189 | py | """
Django settings for tradingsystem project.
Generated by 'django-admin startproject' using Django 3.1.4.
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/
"""
from p... | [
"jinsung1048@gmail.com"
] | jinsung1048@gmail.com |
2bc5ccacd684f2960e4032e59db73889ca1890a5 | 72aec4b5c8c632b48420c6fb59633318c2453a13 | /venv/Scripts/pip-script.py | 2ab354dcf15c2ca6da0cbf8ed066515897a962e2 | [] | no_license | first-down/python | fba25186d891027e66c9df6d91ea2d919c643aa0 | 44eb91208a25115fffc18771c15add4c10faf644 | refs/heads/master | 2020-04-10T04:38:34.492382 | 2018-12-07T09:24:28 | 2018-12-07T09:24:28 | 160,804,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | #!C:\Users\xcz\Desktop\nnt\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exi... | [
"xcz201807@163.com"
] | xcz201807@163.com |
3fbdf957571e7f078c7dcecad3966c0746a6fc5e | 4273f6c264fa5a7267557c5e0d338a2cbd27789e | /AIE23/20191207_big_data_ai/1_pyspark_dataframe/ml/3_decision_tree_classification_example.py | fe32e3c30872236d2fbd76cdba11f209f222b78b | [] | no_license | shcqupc/Alg_study | 874d37954ed8ed2cdb3bd492d59cd071836946f5 | 462ee12c72b7f84c5ae45aaf0f65b812d7c1ada1 | refs/heads/master | 2020-07-10T15:26:40.603300 | 2020-03-27T12:53:16 | 2020-03-27T12:53:16 | 204,298,238 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"253848296@qq.com"
] | 253848296@qq.com |
eaaf9937a3853ee4f5e92ba894c9455bac2f13f6 | d2c4151eff768af64946ababc2e41c13d8973cd3 | /ABC133/c.py | a99b470c2376c8f63bc104e312e3e27c9cd418aa | [] | no_license | Intel-out-side/AtCoder | 2de19b71981247135432aed2d6d9c2a16c3ab7f0 | 0c419d2df15fff02032432cb1b1323612484e16e | refs/heads/master | 2022-06-23T04:21:12.886072 | 2022-06-13T14:39:07 | 2022-06-13T14:39:07 | 235,240,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | L, R = map(int, input().split())
ans = 2020
if R - L < 2019:
for i in range(L, R+1):
for j in range(i+1, R+1):
ans = min((i*j)%2019, ans)
else:
for i in range(L, L+2019):
for j in range(i+1, L+2019):
ans = min((i*j)%2019, ans)
print(ans)
| [
"so.eng.eng.1rou@gmail.com"
] | so.eng.eng.1rou@gmail.com |
ca8b9521fc77e4ef7a9a5d84f5a1d8f23be93fc9 | ea8e945af461ae6e5a2dcd9dce244391f14ec695 | /kondo/chapter09/knock81.py | c31242745b3529bf280fd0625dcbfd0c969ccf32 | [] | no_license | tmu-nlp/100knock2020 | b5a98485e52b88003fa97966c8d6eef292c9f036 | 1133fa833ea32ad3e54833e420bcb1433f3ec2f3 | refs/heads/master | 2023-04-09T06:48:04.571566 | 2020-08-13T05:38:25 | 2020-08-13T05:38:25 | 258,825,143 | 1 | 2 | null | 2020-08-12T15:56:56 | 2020-04-25T16:43:13 | Python | UTF-8 | Python | false | false | 5,910 | py | """
81. RNNใซใใไบๆธฌPermalink
ID็ชๅทใง่กจ็พใใใๅ่ชๅx=(x1,x2,โฆ,xT)ใใใ๏ผ
ใใ ใ๏ผTใฏๅ่ชๅใฎ้ทใ๏ผxtโโVใฏๅ่ชใฎID็ชๅทใฎone-hot่กจ่จใงใใ๏ผVใฏๅ่ชใฎ็ทๆฐใงใใ๏ผ๏ผ
ๅๅธฐๅใใฅใผใฉใซใใใใฏใผใฏ๏ผRNN: Recurrent Neural Network๏ผใ็จใ๏ผๅ่ชๅxใใใซใใดใชyใไบๆธฌใใใขใใซใจใใฆ๏ผๆฌกๅผใๅฎ่ฃ
ใใ๏ผ
hโ0=0,hโt=RNNโโโโ(emb(xt),hโtโ1),y=softmax(W(yh)hโT+b(y))
ใใ ใ๏ผemb(x)โโdwใฏๅ่ชๅใ่พผใฟ๏ผๅ่ชใฎone-hot่กจ่จใใๅ่ชใใฏใใซใซๅคๆใใ้ขๆฐ๏ผ๏ผ
hโtโโdhใฏๆๅปtใฎ้ ใ็ถๆ
... | [
"62088979+maskcott@users.noreply.github.com"
] | 62088979+maskcott@users.noreply.github.com |
b00e7a61e5466b0deb1d425bd76f2355ae8b4001 | d950ff83f94f8d6d006272b89fcc7a428a0f2307 | /appsis/models.py | 6fd41b24e62cd4b7c20a155c32bd1ff389141085 | [] | no_license | montalbanluis/SySDemo | e250ba7bf9e796291f2a4c81d09ae221f664319a | 5ff2f35be47d9278162c7960dbd8ec04a13c7205 | refs/heads/master | 2023-07-08T16:33:45.766349 | 2021-08-23T23:29:40 | 2021-08-23T23:29:40 | 395,527,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | from django.db import models
# Create your models here.
class Persona(models.Model):
rut = models.CharField(max_length=10, verbose_name = "Rut")
nombre = models.CharField(max_length=150, verbose_name = "Nombre")
apellido = models.CharField(max_length=150, verbose_name = "Apellido")
estado = models.... | [
"lamvhaccc@gmail.com"
] | lamvhaccc@gmail.com |
be5f845e652b216563c032b293834361b80ce172 | 948b29f3345077dc2666510e6010234da6a524fb | /Team_Misc_Scraper.py | d79ad5844eb99b3e49b10676c3b5a55f100c3ce6 | [] | no_license | jimmyyih518/nba | 1d65558d1e4a7c83f0969f1d557cf2968b1aba05 | 3336c8be79920ad56c2d126c3b608f77067f5175 | refs/heads/master | 2023-01-28T00:06:19.805335 | 2020-12-05T04:44:11 | 2020-12-05T04:44:11 | 314,972,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 22 19:32:56 2020
@author: JZ2018
"""
season_end_year = 2020
output_filedir = 'D:/JZR/nba/boxscores/'
import os
#print(os.getcwd())
from bs4 import BeautifulSoup
import requests
import pandas as pd
team_dictionary = {
'Atlanta Hawks': 'Atl', 'Boston Celtics': 'Bo... | [
"noreply@github.com"
] | jimmyyih518.noreply@github.com |
056014f491d6a1534d34b7f104da6d056927a150 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/perf/CascadeMaskRCNN_iflytek_for_PyTorch/mmdet/core/bbox/samplers/random_sampler.py | 25da79515772c1ca8589ef97f32f2de2f0dd74c7 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,732 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2023 xxxx
# All rights reserved.
# Copyright 2023 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"zhangjunyi8@huawei.com"
] | zhangjunyi8@huawei.com |
7cb73f6dbd4ba05ccd1815a6fba237f8c87ee46d | eff6d730e4eca5cf7818bfa7eecea493021d1130 | /bootcamp/feeds/urls.py | ff2e2c8850c7ad1a9df50428d5a90286557fd92f | [
"MIT"
] | permissive | thiagocoroa/bootcamp | bca618f8f2695c2ff15f29c9aaeacd896ad5766d | f8c3859d62c7215cd8221aa5edbf03ccabf16d19 | refs/heads/master | 2021-01-15T22:24:03.034762 | 2014-06-03T11:44:14 | 2014-06-03T11:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from django.conf.urls import patterns, include, url
urlpatterns = patterns('bootcamp.feeds.views',
url(r'^$', 'feeds', name='feeds'),
url(r'^post/$', 'post', name='post'),
url(r'^like/$', 'like', name='like'),
url(r'^comment/$', 'comment', name='comment'),
url(r'^load/$', 'load', name='load'),
... | [
"vitorfs@gmail.com"
] | vitorfs@gmail.com |
57046f09bb8de7002a9fb8f4ff1f05dc12a753f9 | c1c20624df477d7c9249bb8b1369849ad5fac3bb | /dotfiles/.xkeysnail.config.py | 2511f708f40645ed8059117272ba3ccddcaa801c | [] | no_license | hitswint/.emacs.d | c0b3144d82f9b56013bbd4d6cd987ff1b56e2172 | 769c60ac9d7477e35a7d54eca151822cff2c97b0 | refs/heads/master | 2023-09-01T18:15:32.567844 | 2023-08-28T13:26:00 | 2023-08-28T13:26:00 | 34,164,740 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,711 | py | # -*- coding: utf-8 -*-
import re
from xkeysnail.transform import *
import os
def rofi_not_running():
return os.system("pidof rofi > /dev/null")!=0
# * [Global modemap] Change modifier keys as in xmodmap
define_modmap({Key.CAPSLOCK: Key.LEFT_CTRL,
# Poker้ฎ็๏ผไบคๆขEscapeๅgrave
# Key.ESC:... | [
"wgq_hit@126.com"
] | wgq_hit@126.com |
f7e6e3b7f7e4bbfff9440eba8a17ee56552b09c7 | 043caad2ed51141d07ce4f24b0cb478cc4343443 | /SERVICE_AvailableSoftResources/AvailableSoftResources/api/migrations/0003_auto_20200606_1337.py | 9f86a2114452e9c8223a218058d7fb7ce172360c | [] | no_license | Nirowe/SERVICE_AvailableSoftResources | c283b06f97bf9d96b1de1681393d0a0a3b961cf9 | 5972940652736caccfd219726e31ab0f191c9fcb | refs/heads/master | 2022-11-08T12:53:50.889121 | 2020-06-12T18:52:52 | 2020-06-12T18:52:52 | 271,857,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # Generated by Django 3.0.5 on 2020-06-06 06:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20200606_0155'),
]
operations = [
migrations.RenameField(
model_name='employee',
old_... | [
"nirowe@inbox.ru"
] | nirowe@inbox.ru |
a19bb15f6337d71f66cc5589c017580a890c1e12 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2337/60690/313967.py | a3fc0bae8118aec40722e89b4602a0b43b8fc2f5 | [] | 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 | 835 | py | s=input().split(" ")
n=int(s[0])
m=int(s[1])
net=[]
for i in range(n):
net.append(input())
if n==4 and m==4 and net[0]=="#***":print(5,end="")
elif n==31 and m==20 and net[0]=="xx**xxxx***#xx*#x*x#":print(48,end="")
elif n==31 and m==20 and net[0]=="x#xx#*###x#*#*#*xx**":print(15,end="")
elif n==50 and m==50 and ne... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9bf50ec760d8f3f86fca3cb062d8de76c06c7461 | 68918eb18bfbb1b260f19991b77d0ec64d25afce | /1_Introduction_to_web_crawlers/1.4.1download0_all(common.py).py | 14fa5d4d298b1cc62fb91453977e7c4208b6b6c1 | [] | no_license | abhijeetsingh1704/WebScrapping_learning | 0a140400127058b2e6d378f23a7db52e93202e34 | b7e1138376f4285a09427d1e40ea3b56a6567978 | refs/heads/master | 2022-11-27T01:35:10.376545 | 2020-08-05T11:06:34 | 2020-08-05T11:06:34 | 285,254,645 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | # -*- coding: utf-8 -*-
import urllib2
import urlparse
def download1(url):
"""Simple downloader"""
return urllib2.urlopen(url).read()
def download2(url):
"""Download function that catches errors"""
print 'Downloading:', url
try:
html = urllib2.urlopen(url).read()
except urllib2.URLE... | [
"abhijeetsingh.aau@gmail.com"
] | abhijeetsingh.aau@gmail.com |
54fc99ac439a37e425983c80ca215d97c37599d2 | 3e59df4e7fd5e30e541175c4ebdf0f7dcce569f3 | /Dashboard/backend.py | d0b18060c8467260e2fce9a42ef9d2b3e604899d | [] | no_license | BrianGoodman95/NFL-Game-Predictor-V1 | 0fde6c3edb762fae3f4578e12ee5161ee3aed3bf | dd98a92a6d772e4487b5d650ef4356dca9cd7e1e | refs/heads/master | 2023-01-22T16:39:43.370694 | 2020-12-06T05:24:20 | 2020-12-06T05:24:20 | 262,611,954 | 0 | 0 | null | 2020-12-06T05:24:21 | 2020-05-09T16:27:06 | HTML | UTF-8 | Python | false | false | 1,565 | py | import time
import pandas as pd
from parsers import Game_Predictor
from parsers import Prediction_Analysis
from parsers.setup import Directory_setup, Dashboard_setup
setup = Directory_setup.Create_Directories()
project_path = setup.project_path
season, week = Dashboard_setup.This_Week()
last_run_time = time.time()-55... | [
"bgoodman1995@gmail.com"
] | bgoodman1995@gmail.com |
055933c0508d16a845d82dee35e95552f959b718 | 75bf8d48abcfcdf0248dba5dc3853a5ca0e858cc | /part_3_microservice_architecture/vms_dk/model/src/yolov5/utils/loggers/__init__.py | 5434572e135d09e1f57c081905427ad8e7bdc4c3 | [] | no_license | Yyalexx/detecting-beer | fe6b02f86ccae38c6eae2f5f1ff64bdc3cc9e68e | 3f0508782170e74224bb51268c156b6c90aa4d24 | refs/heads/master | 2023-05-23T17:03:48.488618 | 2023-03-22T07:10:43 | 2023-03-22T07:10:43 | 588,059,359 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,909 | py | # YOLOv5 ๐ by Ultralytics, GPL-3.0 license
"""
Logging utils
"""
import os
import warnings
from pathlib import Path
import pkg_resources as pkg
import torch
from torch.utils.tensorboard import SummaryWriter
from utils.general import LOGGER, colorstr, cv2
from utils.loggers.clearml.clearml_utils import... | [
"yyalex@yandex.ru"
] | yyalex@yandex.ru |
0fae3c9d16697b87593802275bb1bc06d00ee552 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_027/ch176_2020_08_14_13_50_25_526217.py | d1d82bafaf5a209399bad7eb71c499da51816aeb | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | def imprime_grade(n: int):
for i in range(1, n+1):
if i > 1:
print("|" + " |"*n)
for j in range(1, n+1):
end = "-" if j < n else "-+
"
print("+", end=end) | [
"you@example.com"
] | you@example.com |
818d87194a7ffe9a0f06b833e41ab249ce4e388a | c9dda6d46e25a34cd5888306729029ba0d3b069d | /FlaskDemo/decorators.py | 38e65dc4213ff7cd7c0f9876c9e7766df9c103cd | [] | no_license | TTTTTong/PythonDemos | 106f48680bf55fdbac5ce47bce82a3ac99fdcefc | 9a891c8aa9c4f1239a78ad2d20e8d07584fe5488 | refs/heads/master | 2022-12-12T07:50:56.740198 | 2018-07-06T08:15:58 | 2018-07-06T08:15:58 | 104,082,299 | 0 | 0 | null | 2022-12-08T00:41:54 | 2017-09-19T14:00:35 | Python | UTF-8 | Python | false | false | 329 | py | import functools
from flask import session, redirect, url_for
# ็ป้้ๅถ่ฃ
้ฅฐๅจ
def login_required(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
if session.get('user_id'):
return func(*args, **kwargs)
else:
return redirect(url_for('login'))
return wrapper | [
"t15529208705@gmail.com"
] | t15529208705@gmail.com |
a06a6d8f27c8e05ded71ea8fda920a11249ec506 | a2b7b0947c59acfcf78bc8471b1fb548c82de723 | /plot.py | 94660560fadce3e315445f53ae180490bda5ad52 | [] | no_license | Lilith5th/TNO | bcf0a4283b7c85ac38b793d7c91873f771e0f7f2 | 0e38b37d0d9c5e9fd415926b71fb59755da4c9b9 | refs/heads/master | 2023-02-14T04:49:01.233573 | 2021-01-11T09:15:43 | 2021-01-11T09:15:43 | 323,447,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,979 | py | import pandas as pd
import json
import matplotlib.pyplot as plt
from calendar import monthrange
from pandas import json_normalize
def cleanupJson():
cols = ['time', 'sensor_values.radiationSky','sensor_values.radiationIndoor']
data = []
with open('logData2.log') as json_file:
data = json.load(json_... | [
"lucano.deskovic@gmail.com"
] | lucano.deskovic@gmail.com |
5ff77af218fe035658aa1dd7c912958e61136bba | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-3/d52316fcc2f625747c1976913c1383a168b40e02-<latest>-fix.py | 39415573b8121be3ff4ed0d9621f71cfaf9f6cbb | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,434 | py | def latest(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos, installroot='/'):
res = {
}
res['results'] = []
res['msg'] = ''
res['changed'] = False
res['rc'] = 0
pkgs = {
}
pkgs['update'] = []
pkgs['install'] = []
updates = {
}
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
98e7f901cf8afdef72362e7541dbaeb818da405f | 4c5587bf9048ca3d7d455b76ed283db3f8f1f81e | /img/manage.py | e267ba76412e2cb66eefbf6826268f9378bf1a76 | [] | no_license | BeloborodovGIT/CFT_imageHex | 941aa0eaed5ea907219cd984433c87ce0f963a90 | 150fd36be6e27e2ec7e632ff0c12136d2b33ad48 | refs/heads/master | 2023-07-30T23:55:51.708131 | 2021-09-16T09:16:22 | 2021-09-16T09:16:22 | 407,093,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'img.settings')
try:
from django.core.management import execute_from_command_line
except ImportEr... | [
"73323084+BeloborodovGIT@users.noreply.github.com"
] | 73323084+BeloborodovGIT@users.noreply.github.com |
9835f1aebb85255ca2146df76cdcb41c6f43a428 | 4d18e2e6abf050e0816024661c8467d0d588adfd | /lib/python2.7/types.py | e467f32986a57b00e083cdebfa84af04c69a89b3 | [] | no_license | jseuribe/Next_Steps | 1fdfbebfbf6087b4297d3d88153d3709cd85a530 | dda5b50770c75c0e863fa61dba23a1ed1b60bf9f | refs/heads/master | 2021-01-21T13:53:24.919527 | 2016-05-25T01:59:15 | 2016-05-25T01:59:16 | 51,565,879 | 2 | 1 | null | 2016-05-20T23:58:22 | 2016-02-12T03:53:48 | HTML | UTF-8 | Python | false | false | 45 | py | /home/joseu/miniconda2/lib/python2.7/types.py | [
"jseuribe@hotmail.com"
] | jseuribe@hotmail.com |
bf7266aa3902b9eee966c52ecd03b7f4483bdbf9 | 8f7f91b24c83c0d15077d5e719e6aa40ab2ea0d6 | /library/oneview_server_profile.py | f05f9b45b4636f1224eaac378842beb2d7e7b40e | [
"MIT"
] | permissive | bryansullins/baremetalesxi-hpesynergyoneview | 06d45805e811ea1bf2787780770d670a683c0bcd | e4541d02ce1c93bb9a98a07a3a483a9b2ac90bce | refs/heads/master | 2021-04-14T19:41:14.001768 | 2021-02-06T22:17:57 | 2021-02-06T22:17:57 | 249,260,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,455 | py | #!/usr/bin/python
###
# Copyright (2016-2019) Hewlett Packard Enterprise Development LP
#
# 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
#
# Unle... | [
"bsullin@rei.com"
] | bsullin@rei.com |
c6bccc7b878d8ad17ad5f51b5c1bd8f96e13bd0f | 1bfe5887d6158b7bc4c57b2b136b9f8b666c7bbd | /UHCF/run.py | f4e16833f92cba7a1a9a89d4ff32448098524c85 | [] | no_license | wenzhiquan/lab | 879c6e835b99f224b2bff0ea0847de81dc488dde | 37cd41244e281b84663d752b72f3ca3b13f3c37f | refs/heads/master | 2021-01-17T08:53:18.717864 | 2016-05-17T08:23:22 | 2016-05-17T08:23:22 | 22,674,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,665 | py | #!/env/python
# -*- encoding: utf-8 -*-
"""
@version: 0.1
@author: wenzhiquan
@contact: wenzhiquanr@163.com
@site: http://github.wenzhiquan.com
@software: PyCharm
@file: run.py
@time: 16/1/5 21:43
@description: null
"""
from datetime import datetime
from tools.sortByTime import sortByTime
from tools.combineById import... | [
"wenzhiquanr@163.com"
] | wenzhiquanr@163.com |
6d941d57a643281b395f760262b236f1cde01bab | 72bf58e646d31d915403da0fd9fbf4ab54affdde | /amboro_store/settings.py | c84af598bc65f15d668c230a4f6bd223be3bb4c4 | [] | no_license | JohannQuispe/ecommerce | b3f1ccb102c31c5c6640352e735afe9e08859623 | 37aa66373118c1e5f4ed53b853ac9e680766523d | refs/heads/master | 2022-12-09T22:59:06.438155 | 2020-08-24T06:12:26 | 2020-08-24T06:12:26 | 286,192,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,041 | py | """
Django settings for amboro_store project.
Generated by 'django-admin startproject' using Django 2.2.14.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"jbquispe@hotmail.com"
] | jbquispe@hotmail.com |
f94acf5586e7193717879c808466ef498e331dd6 | ce6cb09c21470d1981f1b459293d353407c8392e | /docs/jnpr_healthbot_swagger/swagger_client/models/rule_schema_flow.py | 756ab1b061ec4978bc4dded218c9a10887e69257 | [
"Apache-2.0"
] | permissive | minefuto/healthbot-py-client | c4be4c9c3153ef64b37e5344bf84154e93e7b521 | bb81452c974456af44299aebf32a73abeda8a943 | refs/heads/master | 2022-12-04T07:47:04.722993 | 2020-05-13T14:04:07 | 2020-05-13T14:04:07 | 290,145,286 | 0 | 0 | Apache-2.0 | 2020-08-25T07:27:54 | 2020-08-25T07:27:53 | null | UTF-8 | Python | false | false | 3,288 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class RuleSchemaFl... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
580336d9d0573c43f6d5dba9ca428534a337b584 | 4ccc93c43061a18de9064569020eb50509e75541 | /ios/chrome/ios_chrome_tests.gyp | 4c14d68846eb05c5f92b28291140882a506cdb1a | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | SaschaMester/delicium | f2bdab35d51434ac6626db6d0e60ee01911797d7 | b7bc83c3b107b30453998daadaeee618e417db5a | refs/heads/master | 2021-01-13T02:06:38.740273 | 2015-07-06T00:22:53 | 2015-07-06T00:22:53 | 38,457,128 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | gyp | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'ios_chrome_unittests',
'type': '<(gtest_target_type)',
... | [
"g4jc@github.com"
] | g4jc@github.com |
f24fb3d1131a4f965e82af8be1b81f64b58efa79 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2988/40186/309199.py | 0ca7338779c915c5aed6534e33cb13897f6eeb2d | [] | 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 | 118 | py | n = int(input())
str = input()
m = int(input())
oup = ''
for i in range(m-1,len(str)):
oup = oup+str[i]
print(oup) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
837945adfe5f58e0b2985accb3351473b1800bd9 | d1ff6b7feaf22eb7940281a17b823d6899bcfa8c | /python/problems/leetcode/1-two-sum.py | 37fd5066a714d2fe119697190f2cfbb831a6be0c | [] | no_license | sumitkrm/lang-1 | 42e839dae8caf78986a10bb3d635021d45f66593 | c08fdd1556b6dbbdda8ad6210aa0eaa97074ae3b | refs/heads/master | 2021-04-18T10:26:27.466682 | 2019-11-14T07:56:45 | 2019-11-14T07:56:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | """
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
Example:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = 9,
return [0,... | [
"noreply@github.com"
] | sumitkrm.noreply@github.com |
3b0ff7f32b9e070a5249eb81007c35351f16a08b | 0111fa3fb70d54fc746ea0d6e9951560b56a3c84 | /CTCI/c4_treesAndGraphs/bstSeq.py | a5b32fd6cf3610b92fde08d830efeff4877d36a2 | [] | no_license | michlee1337/practice | b1f4c8069573c129e2799eb38f6d0b8cc646282e | 454a78bf69cbecaaeee6af062a201470286542d3 | refs/heads/master | 2021-04-27T04:58:17.030589 | 2020-10-20T20:47:02 | 2020-10-20T20:47:02 | 122,588,699 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # ugh still borken
class Solution():
def bstSeq(self, root):
if root == None:
return([[]])
if root.left == None and root.right == None:
return([[root.val]])
seq_left = self.bstSeq(root.left)
seq_right = self.bstSeq(root.right)
if len(seq_left) == 0 ... | [
"michlee1337@gmail.com"
] | michlee1337@gmail.com |
2f9963b5e8c4babf74fc6d9a8e0e0e7a894047c5 | 9f4d5b17ba701e6e9f9ade4441b7aae106c3fd84 | /mordred/Weight.py | 7ac3c7f37def4c167eefb82f583dee7c083f2f5e | [
"BSD-3-Clause"
] | permissive | simonbray/mordred | 55385e37b3f622513e75f00fe21fb7e6d1edf02d | bfb3b0a50fb7f42cd996e091d67c3a3dcc815134 | refs/heads/master | 2020-05-26T04:23:50.856152 | 2018-05-31T07:21:43 | 2018-05-31T07:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | from rdkit.Chem.Descriptors import MolWt, ExactMolWt
from ._base import Descriptor
__all__ = (
"Weight",
)
class Weight(Descriptor):
r"""molecular weight descriptor.
:type averaged: bool
:param averaged: averaged by number of atom
"""
def description(self):
return "{}{}molecular we... | [
"philopon.dependence@gmail.com"
] | philopon.dependence@gmail.com |
c12de7349ec39732017cff9b64ee3015361295e3 | 2a160a8491bccee82c05cd878b11c564b8471583 | /pull_stream/pull_live_stream.py | 9967a0f2937867c9b04c8045606ded1f0b61f33e | [] | no_license | ETalienwx/Bwork_code | 7eba821bd060fe7005d2bd35a5d6490745ec7ed8 | ac557887a23e12f7fd1c9ef6f094e6ee66780902 | refs/heads/master | 2023-02-11T10:19:15.625806 | 2021-01-11T06:16:25 | 2021-01-11T06:16:25 | 319,890,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,382 | py | # ๆๅ็ดๆญๆต
import subprocess
import requests
import time
import os
from enum import Enum
class BaseInfo(object):
def from_dict(self, meta: dict):
props = self.__dict__
for k in props:
v = meta.get(k, None)
setattr(self, k, v)
def to_dict(self) -> dict:
props = {}
... | [
"wangxuan02@bilibili.com"
] | wangxuan02@bilibili.com |
e3578fcf72242dbd6ea5994ec08630bbdbb6b631 | 5185529b885d37bc1a6c7a7de21fd8b6ecfaf11a | /mapas/Hangar.py | 00d012e7a1bb6a6a4532c9c792bc4390dcbf5444 | [] | no_license | igorssmanoel/ContraRM | 020dd8449fc31b72c9fa3e7517a388be721cb5f5 | d28755a3bfb9449529f58fe93f33f827a0da41f2 | refs/heads/master | 2022-05-13T05:42:25.900805 | 2017-07-13T00:05:41 | 2017-07-13T00:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,959 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pygame
from Inimigo import *
from Melhoria import *
from Parede import *
from Chao import *
class Hangar:
FaseCaminho = "mapas/Hangar.png"
FaseLargura = 2444
FaseMusic = "sons/Hangar.mp3"
#Chรฃos do Mapa
def Coloca_Chao(self, chao):
# Posiรงรฃo | Comprimento
... | [
"biasi131@gmail.com"
] | biasi131@gmail.com |
4736ccf46a33004246d425f53a0427cf1bd74a87 | 3100013f7f7aa8a8291527e2e832200912b92c55 | /10.ๅฝๆฐ_by/2.ๅ
้จๅฝๆฐ_by/ๅ
้จๅฝๆฐ_by.py | 195bfde2048f4570e50500f2c6bff5d16fd85328 | [] | no_license | baiye1228/vscode_studylist | f609c379cdade4f2c61bbe7881cb500cc5cfd491 | a53c080861e1b618ed3037a6e8e3c5af06acbe3c | refs/heads/master | 2022-12-17T11:21:29.896557 | 2020-09-18T09:41:45 | 2020-09-18T09:41:45 | 281,262,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | def func():
#ๅฃฐๆๅ้
n=100
list1=[3,6,9,4]
#ๅฃฐๆๅ
้จๅฝๆฐ
def inner_func():
nonlocal n
#ๅฏนๅ
็ด ๅ 5ๆไฝ
for index,i in enumerate(list1):
list1[index]=i+5
list1.sort()
n+=101
inner_func()
print(list1,n)
func()
'''
็น็น:
1.ๅฏไปฅ่ฎฟ้ฎๅค้จๅฝๆฐ็ๅ้
2.ๅ
้จๅฝๆฐๅฏไปฅไฟฎๆนๅค้จๅฝๆฐ็... | [
"baiyebzx1228@gmail.com"
] | baiyebzx1228@gmail.com |
9b80f24b60cf7a97705d6d7face0f6a14fab0453 | 5b82fa5f8d98c8fe6fbccae7566e7d9eaa2e7428 | /tests/arbitrage_test.py | 195cb57d48c295f8ee26d019b9b775eee39934ed | [
"MIT"
] | permissive | f0ster/bitcoin-arbitrage | a84325b78920b2850eed7673112786102afa3bb5 | 2c389fca988e6d24f3394adbc67d4a01259aa345 | refs/heads/master | 2020-04-15T03:15:13.794667 | 2013-04-18T01:39:47 | 2013-04-18T01:39:47 | 9,504,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,567 | py | import sys
sys.path.append('src/')
sys.path.append('../src/')
import unittest
import arbitrage
depths1 = {
'BitcoinCentralEUR':
{'asks': [{'amount': 4, 'price': 32.8},
{'amount': 8, 'price': 32.9},
{'amount': 2, 'price': 33.0},
{'amount': 3, 'price': 33.6}],
'bid... | [
"maxime.biais@gmail.com"
] | maxime.biais@gmail.com |
e017adc706cc398730b245c4fc39a45eb54053f2 | 5776a924dbb3d305177b8c269cc86af2736c4b6a | /trending/trending.py | 95ddc2bc97c3fa013556a6fb6c10bd88bbc4d1ed | [
"Apache-2.0"
] | permissive | sipolac/trending | 8d248a98a1198472a42b25aff6f699b2ebe985a0 | 8155bcea5758a1b1cd7aa0c585658e754fe4c034 | refs/heads/master | 2020-06-29T01:15:33.554139 | 2019-08-25T21:51:51 | 2019-08-25T21:51:51 | 200,395,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,670 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Author: Chris Sipola
Created: 2019-08-02
Functions for quantifying "trending"-ness.
Some notes on "notation":
> `a` is used to represent a series/list/array of interest, in the style of
numpy. However, within the project, `a` treated as a list since I didn't
want... | [
"sipolac@gmail.com"
] | sipolac@gmail.com |
bdea9c72dd10be9794375d3cc3d1d61fea04371d | 490fec2286bbd3241f7b4e7e2520496087ef2271 | /manage.py | 54c58d756cb665d08282278ea8a0579fb24e3844 | [] | no_license | lupeixin/drf_03 | 689018fa14fd75f7be09f64390930b8459c83567 | 6dbb3b0e6883d8450d7d9d856511ece02217f1ee | refs/heads/master | 2022-12-11T21:58:35.381615 | 2020-09-15T00:52:52 | 2020-09-15T00:52:52 | 295,574,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'drf_03.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportE... | [
"813094269@qq.com"
] | 813094269@qq.com |
c880e573fe1fd5efaf1aa84c17199fc993c042a4 | 75a26c994df254392c9dde503278f772116da078 | /main/setup.py | 4bf5a7291b5f2706a5f4ef6f56f2bf2497111a54 | [] | no_license | esfamely/es_face_server | 107f5905f0243bc21914d79f0f3fcfc164886f93 | 3c756d00c83cd0a8dd745fd32a074c9121977ab8 | refs/heads/master | 2020-12-11T04:42:39.995194 | 2020-01-17T07:02:58 | 2020-01-17T07:02:58 | 233,778,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | class Setup:
"""
็ณป็ป่ฟ่กๅๆฐ
"""
@staticmethod
def export(startswith="s"):
dict = {}
for item in Setup.__dict__.items():
if str(item[0]).startswith(startswith):
dict[item[0]] = item[1]
return dict
"""
็ณป็ป่ฟ่กๅนณๅฐ
"""
# ๆฐๆฎๅบIP
s0_db_ip = ... | [
"292576631@qq.com"
] | 292576631@qq.com |
88aaaf265c27f0e7826a4b1bda5b42dff316c456 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/hc1.py | 168bddc7a840e82f5abb3977a411aeb871b621cb | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
f0bf9f11e977825e819d9ebc3d85c48b7b4dc035 | 1769a59bf55b04d358ba10759c596df4139dcd8b | /codeforces/594_div2/integerpoints.py | 849476900e25cf0b9e9f92316f062262022798d8 | [] | no_license | preetmishra/competitive-programming | 39c3b7b21d2b71589bd5e58989ce2f50ce400ecd | 7d014112a2e3f1bb5508c1e03378e13d94292f6c | refs/heads/master | 2021-07-14T15:24:22.417735 | 2020-09-29T15:58:57 | 2020-09-29T16:13:31 | 212,810,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | def count_even_odd(ls):
even, odd = 0, 0
for i in ls:
if i % 2 == 0:
even += 1
else:
odd += 1
return (even, odd)
for _ in range(int(input())):
p = int(input())
ps = list(map(int, input().split()))
q = int(input())
qs = list(map(int, input().split())... | [
"ipreetmishra@gmail.com"
] | ipreetmishra@gmail.com |
0facbb2cb2b1430ef5345e6a5b4328243b4b7126 | 6f331acb287b91ab6e297da88dc42489b256249d | /clear_complete_flag.py | a794ad6462bea3072c3185165a1ac24442468c37 | [
"MIT"
] | permissive | One-sixth/getchu_character_picture_grabber | 0cb650c209622600bd192614e83839eb3138e100 | 2a8d44ecf987ca51784449f9803c5e53d54a3e4e | refs/heads/master | 2020-06-19T15:04:41.074789 | 2020-01-14T03:21:38 | 2020-01-14T03:21:38 | 196,755,381 | 18 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | '''
ๅพๅคๆถๅ๏ผ็ฌ่ซๅ
็ๅฟฝ็ฅๆ ๅฟๅนถไธๅฅฝ็จ
'''
import os
stage1_complete_name = '.complete'
stage2_complete_name = '.complete'
stage3_complete_name = '.complete'
stage3_complete_pic_name = '.complete_pic'
# -----------------------------------------------------------
# ๅๆฐๅบ
# ๆธ
้คๆ ๅฟๅผๅ
ณ
clear_stage1_complete = False
clear_stage2_complete = ... | [
"One-sixth@users.noreply.github.com"
] | One-sixth@users.noreply.github.com |
bfc337766c024645d34b4d882f875b699dde5fb8 | 7acb4e7602b706f26cbf0a5d5a69a08739e23b42 | /geektime/mathbase/chapter6/lesson6_1.py | 68c0c37772069ed48d427c9c2d3db38e070e0dbc | [] | no_license | JasenChu/debugtalk | 2577c8194f8ff10fd90cfc4998e9c27c9d5a9ea7 | 1b6ac9ebaeef88843e5fb732db4ee41872569ade | refs/heads/master | 2020-04-12T09:19:01.810342 | 2018-12-26T04:40:43 | 2018-12-26T04:40:43 | 162,398,792 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | # ๅฎ็ฐ2่ทฏๅฝๅนถๆๅบ็ฎๆณ
def merge(leftSource = [], rightSource = []):
lenLeft = len(leftSource)
lenRight = len(rightSource)
# ๅฎไนๅญๅจๅๅนถๅ็listๆฐ็ป
merge_one = [0] * (lenLeft + lenRight)
mi = 0 # ๅฎไนๅๅนถlist็ไธๆ
li = 0 # ๅฎไนๅทฆ่พนๆฐ็ป็ไธๆ
ri = 0 # ๅฎไนๅณ่พนๆฐ็ป็ไธๆ
while li < lenLeft and ri < lenRight:
# ๅทฆๅณๅๅณ่พนไพๆฌกๅ็ฌฌไธไธช... | [
"xiaochu698@126.com"
] | xiaochu698@126.com |
fde93ece31ff06beaef52315467716f6064342e0 | 83efd4e51e7b8fabaa51cdd096fa7d863e83ab09 | /utils/track_utils.py | f1aaf0fcd7de1141ac18c7dadf2041d32bc12e2a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pbarsic/handtracking | 533bb9f9839e858f775ba10ea6edddbb2c12e132 | 9c5e59b0f706693a9fde7bb858aea1075daa4311 | refs/heads/master | 2020-08-24T21:49:48.730218 | 2019-10-23T17:21:50 | 2019-10-23T17:21:50 | 216,913,014 | 0 | 0 | Apache-2.0 | 2019-10-22T21:29:13 | 2019-10-22T21:29:13 | null | UTF-8 | Python | false | false | 614 | py | def group_detections(detection_box, detection_score, detection_category):
w=[]
for det in zip(detection_box, detection_score, detection_category):
m = [ a for a in det[0] ]
m.append(det[1])
m.append(det[2])
w.append(m)
return w
def group_detections_threshold(detection_box, d... | [
"pbarsic@gmail.com"
] | pbarsic@gmail.com |
b7d684c9b7991cd9e351025c9f0d7d12a0fae18f | ef0765f57796d397f67cb175707aa9eb56624500 | /train.py | 2154fdfff048e2a18e46c7968e53e6ea2b2d64f4 | [
"MIT"
] | permissive | X-CCS/Tacotron2-LPCNet | e3554a74c0c2f6fbd0ad4eb8bd2078998ecf4653 | de2ee5ef313ca109d8ccf4a13bf5adebd4ee42f6 | refs/heads/master | 2022-12-05T20:08:05.491707 | 2020-09-02T09:18:21 | 2020-09-02T09:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,686 | py | import argparse
import tensorflow as tf
from tacotron.train import tacotron_train
from wavenet_vocoder.train import wavenet_train
from tacotron.synthesize import tacotron_synthesize
from infolog import log
from hparams import hparams
import os
import infolog
from time import sleep
log = infolog.log
def save_seq(file... | [
"wangjiaqi12807@autohome.com.cn"
] | wangjiaqi12807@autohome.com.cn |
11faeae5f596c6f2c9fb11540a28c64304960907 | 542ef68721859a6b60558b074f2b3a9b6a9535a6 | /NexusStoreBackend/userProfile/migrations/0011_alter_address_user.py | 1d755ab38f3d2c89b3cd8b2bbc748e6991d4df92 | [] | no_license | Raman9937/NexusStore | e0ae96cf0d9e1130eaa3c560808e467ba28dbb01 | ceed4324995dde7623774548e6fad968f93a2ff5 | refs/heads/main | 2023-06-01T04:49:00.832649 | 2021-06-19T04:14:50 | 2021-06-19T04:14:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # Generated by Django 3.2.4 on 2021-06-12 20:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('userProfile', '0010_auto... | [
"79391583+RitikVashisth007@users.noreply.github.com"
] | 79391583+RitikVashisth007@users.noreply.github.com |
bd6759f3f1eccc5507bd0d1fdb5dd71df14f6cc9 | e1df12efffc353132b9996899f92d2e9186ded51 | /src/util.py | 12c542992c489e1bf186c4d00d225dd0b90cafeb | [
"MIT"
] | permissive | fracogno/UNet-ResWDCGAN | f67583a43a6b9e1c39ecf73b94360db9a54c1f4b | 000a6e82111ccffe6189ae270c2465b168918d9a | refs/heads/master | 2020-07-16T09:03:52.128729 | 2020-02-03T20:39:50 | 2020-02-03T20:39:50 | 205,760,133 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import numpy as np
import matplotlib.image as mpimg
import cv2
import pandas as pd
def sample_noise(size, mu=0., sigma=1.):
return np.random.normal(mu, sigma, size=size)
def getData(path, size, value="mel"):
DF = pd.read_pickle(path)
assert(len(DF["image"]) == len(DF["id"]))
X = []
for i in range(len(DF["i... | [
"francesco.cognolato@hotmail.com"
] | francesco.cognolato@hotmail.com |
de5121c04015867415044179babf4281786f2d99 | 0c81c371ce9023f3915f2b05c1c4ca7b9f435cf4 | /tools/migrate/rake.py | 577567fe8e2bbd01bc7f896d19a4c5e1de1480ff | [] | no_license | linbirg/om | 831fb7458d1c0176fd76ba4b6f739e95f9593788 | fd1328ebe3fb38893bf88519ca10768507519494 | refs/heads/master | 2021-06-30T16:22:50.327937 | 2020-09-14T07:36:36 | 2020-09-14T07:36:36 | 159,285,543 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,080 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# Author: yizr
import os
import sys
__abs_file__ = os.path.abspath(__file__)
migrate_dir = os.path.dirname(__abs_file__)
tool_dir = os.path.dirname(migrate_dir)
code_dir = os.path.dirname(tool_dir)
sys.path.append(code_dir)
import re
import importlib
import importlib.util
#... | [
"linbirg@gmail.com"
] | linbirg@gmail.com |
fbf87fadcf29cafc4cea4e426184591e1c1e483d | 6d920708bcf248e51734bb87f4032dd070603500 | /cats_library/tests/__init__.py | fe243b030cfec515c65f2a517d0b9d6490f1cb14 | [] | no_license | zhenv5/cats | 63e059ccb1bd84fc5225fce62812cbbc3bc0a724 | ff15338b15b437d56667e45c1bb28bc99b04aed0 | refs/heads/master | 2020-12-02T19:33:23.439128 | 2017-04-18T12:32:05 | 2017-04-18T12:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from __future__ import division, print_function, absolute_import
import numpy
__author__ = 'Alex Rogozhnikov'
def generate_dataset(n_samples=10000, n_features=3, n_categories=10):
data = numpy.random.randint(0, n_categories, size=[n_samples, n_features])
cat_predictions = numpy.random.normal(size=n_categorie... | [
"axelr@man1-ipython01.cern.dev.yandex.net"
] | axelr@man1-ipython01.cern.dev.yandex.net |
3efc22db73e35b507bc67c250be3584146d5c56e | 9d041cdca12fa685261bbd3d3efc1cb77ee3b701 | /DemConverter/dem_converter.py | 1e2e7a7bfa5cdf85eac28241df83672d04a96125 | [] | no_license | sagost/DemConverter | 45c3c5f3ea7ea9abe558c1d90cd2ba9088e7da6e | 99b193d669d45620e524d5eb3f33b19a3f1bb33d | refs/heads/master | 2021-05-14T12:56:46.303643 | 2018-01-05T20:20:19 | 2018-01-05T20:20:19 | 116,423,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,883 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
DemConverter
A QGIS plugin
Convert DEM file
-------------------
begin : 2017-01-23
git sha : $Format:%H$
... | [
"noreply@github.com"
] | sagost.noreply@github.com |
ecd88c4f72cff8b982179e05bb5a023c1dd7b9a8 | f49a5c06f858d8e9ca1d5485e3d68c722b2839df | /benchmarking_main.py | 8a6de5e17ac0c58e5b8cce6e3fa23282988ca14f | [
"CC-BY-4.0"
] | permissive | asd974512/breast-cancer-sub-types | ec8c9aa35f996aba0b6c095c8e853bc01e6315a0 | 8f6c9af9d66cdcf8260393ae737bfb54678b0032 | refs/heads/master | 2023-09-05T00:32:23.069810 | 2021-11-22T10:58:18 | 2021-11-22T10:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,711 | py |
############################# IMPORT LIBRARY #################################
import timeit
start_time = timeit.default_timer()
seed=75
import psutil
import os
import numpy as np
from tensorflow import set_random_seed
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
import seaborn a... | [
"noreply@github.com"
] | asd974512.noreply@github.com |
48b92115bf430ccfea52c8555cc132c5c87b9921 | 885a0893693db9298916b054cc74dd4aaa3a8e3c | /app.py | a418be0ec9a23201d1e49699fc6e8da53e06e24f | [
"Apache-2.0"
] | permissive | sshah98/NLP-Writing-Tool | 294fe79ea570d39ae4cb51e2267cc733f4ed0d9c | be85b7ad2fd0285d12c5a5348cc135819f7722fb | refs/heads/master | 2021-03-27T19:23:38.838339 | 2018-09-15T19:55:16 | 2018-09-15T19:55:16 | 111,587,608 | 0 | 0 | Apache-2.0 | 2018-09-25T21:45:24 | 2017-11-21T18:42:53 | Python | UTF-8 | Python | false | false | 1,831 | py | import os
from flask import Flask, url_for, render_template, request, redirect, session, Markup, flash
app = Flask(__name__)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "nlp-analysis-key.json"
app.secret_key = 'random-key'
from google_npl import GoogleNLP
from em... | [
"shahsuraj261@gmail.com"
] | shahsuraj261@gmail.com |
2549239c2cb24167a54487c274b0d455622f7692 | 32ef8621468095bf9c6dd912767cb97e9863dc25 | /python/iterables-and-iterators.py | 31978c2aea6a3a158f486b5f938059dabb494a54 | [] | no_license | Seungju182/Hackerrank | 286f1666be5797c1d318788753245696ef52decf | 264533f97bcc8dc771e4e6cbae1937df8ce6bafa | refs/heads/master | 2023-08-17T22:49:58.710410 | 2021-10-25T09:40:46 | 2021-10-25T09:40:46 | 337,652,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
from itertools import combinations
if __name__ == "__main__":
N = int(input())
letters = input().split()
K = int(input())
list_comb = list(combinations(letters, K))
print(len([c for c in list_comb if 'a' in c]) / len(list_comb))
| [
"tonysj@snu.ac.kr"
] | tonysj@snu.ac.kr |
86f2fa42be3a378d013ce34ab1665eeb061a4de5 | f07b7f546278c86ec91fe9fdacbe4acc266b5ef0 | /blog/blog/wvenv/Lib/site-packages/spyder/app/tour.py | 08ccd027dbdc5cb3695aea84507318de7ace5723 | [] | no_license | CankayaUniversity/ceng-407-408-2019-2020-Patent-Comparison-System | 0386a6d8651a9ce875a9cf56013c19d8242204c9 | d9c0f2d84d90932b962a0618b01652f3bd560f25 | refs/heads/master | 2020-08-18T09:55:23.676188 | 2020-06-27T21:19:20 | 2020-06-27T21:19:20 | 215,772,427 | 2 | 4 | null | 2020-06-27T21:26:31 | 2019-10-17T11:08:50 | null | UTF-8 | Python | false | false | 47,982 | py | # -*- coding: utf-8 -*-
#
# Copyright ยฉ Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Spyder interactive tours"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
# Standard library imports
from __fut... | [
"33146580+celkansimay@users.noreply.github.com"
] | 33146580+celkansimay@users.noreply.github.com |
3f373e12c77e03b27c6309737dbc8c7e84b3db7d | 5d132708762372e770954532ad8e8f38f3596122 | /schoolsite/backs/backs/migrations/0013_auto_20210118_1350.py | 85a1fa3e48f501dd64da183c9376723eac589e6f | [] | no_license | ether2314/school-back | 95a8a1dac2130930a3b9c8fd2163ce983d0a6ff7 | c9a31a2fda979feaa1e190fcbb2d0538f6604518 | refs/heads/main | 2023-07-04T13:31:15.107774 | 2021-07-29T15:59:12 | 2021-07-29T15:59:12 | 390,728,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | # Generated by Django 3.0.8 on 2021-01-18 12:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backs', '0012_auto_20210118_1343'),
]
operations = [
migrations.RemoveField(
model_name='studclass',
name='Year',
... | [
"onyii2313@gmail.com"
] | onyii2313@gmail.com |
acbceabe2af58b797b1e56d056e10142feda7758 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/googlecloudsdk/third_party/appengine/googlecron/__init__.py | c16c11b78e2b1864918de3481da96215d94c1f8f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 640 | py | # Copyright 2016 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
fe918c512b07df47961368267c73f7c7f365e116 | 39875dd75edf170fd8f5ab7841a73ef50eaaca6f | /tests/utils.py | c6206de3606ae956ba3f13b63da84cdebee632fc | [] | no_license | Anmol1696/Thumbnailify | a224a0997051ec77eb2fd3ced26e055ddc63133c | c194d879320483b8ec173d6acf15580b28374c33 | refs/heads/master | 2021-06-20T00:25:29.862974 | 2019-08-28T16:40:44 | 2019-08-28T16:40:44 | 202,716,394 | 1 | 1 | null | 2021-03-25T22:55:52 | 2019-08-16T11:32:22 | Python | UTF-8 | Python | false | false | 351 | py | import configparser
import base64
from pathlib import Path
def load_config():
config_data = configparser.ConfigParser(allow_no_value=True)
config_data.read(Path(__file__).parent.glob("*.ini"))
return config_data
def file_encoder(filename):
with open(filename, 'rb') as fd:
data = fd.read()
... | [
"anmol.yadav@rakuten.com"
] | anmol.yadav@rakuten.com |
3eb9faa27601591cf0d6b31b28370c3d97589540 | 61d08e23fbb62e16f7bd9d43673b1cf4e0558c37 | /miraPipeline/pipeline/preflight/preflight_libs/get_context.py | cc6dbb2fd318693a80edb4f861ef0a9019199413 | [] | no_license | jonntd/mira | 1a4b1f17a71cfefd20c96e0384af2d1fdff813e8 | 270f55ef5d4fecca7368887f489310f5e5094a92 | refs/heads/master | 2021-08-31T12:08:14.795480 | 2017-12-21T08:02:06 | 2017-12-21T08:02:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # -*- coding: utf-8 -*-
import get_file_name
import get_engine
def get_context():
try:
from miraLibs.pipeLibs import pipeFile
scene_name = get_file_name.get_file_name()
x = pipeFile.PathDetails.parse_path(scene_name)
return x.step
except:
engine = get_engine.get_engine(... | [
"276575758@qq.com"
] | 276575758@qq.com |
2904e483645aab3aad4727f04b8cb19ab9e1ab65 | f7a1da15ba4941b5c7f13603455bf7e3c25b568e | /ggplot/tests/test_legend.py | a72d8475c032db2cb9c839b2d976b70db432c191 | [
"BSD-2-Clause"
] | permissive | ellisonbg/ggplot | 64b93f172ed729366cda12a1878733d3fc899cb9 | d9028b89c8ae81845b4653deccef897f7ecc8cb8 | refs/heads/master | 2020-05-29T11:57:16.338751 | 2014-05-02T18:14:37 | 2014-05-02T18:14:37 | 19,389,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from . import get_assert_same_ggplot, cleanup, assert_same_elements
assert_same_ggplot = get_assert_same_ggplot(__file__)
from nose.tools import (assert_true, assert_raises, assert_is,
... | [
"has2k1@gmail.com"
] | has2k1@gmail.com |
e4bcdf2e5a6ee879997a68875791a84f8e83bf15 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part009770.py | 6b7721e39926572acd750c7dcc8d9bfd53756e66 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
e56d8abf68eeabd78679feae85ab12666d37e27e | 3facdefca75155161d8a1a1c7ddfaf10f3f2c6fe | /venv/Lib/site-packages/eikon/streaming_session/streamingprices.py | f143ee7e2d99a21a6897b7324556870478b6e5fa | [
"Apache-2.0"
] | permissive | suppureme/FisherEmbeddingFinal | b0b171c4757e456046224dcdcc3418889dcaccfc | 0d07f09931658c838988c987cd6d8db5376ff715 | refs/heads/master | 2023-07-06T19:47:26.755177 | 2021-08-10T06:04:47 | 2021-08-10T06:04:47 | 394,538,875 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,146 | py | # coding: utf8
__all__ = ["StreamingPrices"]
import sys
import logging
import asyncio
from pandas import DataFrame
from pandas import to_numeric
from .streamingprice import StreamingPrice
from .stream import StreamState
class StreamingPrices:
"""
Open a streaming price subscription.
Parameters
-... | [
"asahu99@gmail.com"
] | asahu99@gmail.com |
e2b9395ca306349905fc72c9f94e4caaa1cbe988 | 5d7684b486a23cb8177dbaa29b7540dc4c63a8f8 | /src/ds_project/urls.py | 242dd938317e4015238deefac20a32ded666f974 | [] | no_license | VitalR/DataAnalysis-App | 8cce543a1981e6dfb3b5204e01700a1349466252 | 32785b3d2d0e5e8042b4d34ca9c72c32c77b0816 | refs/heads/master | 2023-01-03T15:40:42.240473 | 2020-10-31T20:22:18 | 2020-10-31T20:22:18 | 304,565,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | """ds_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"vitalii.rodikov@gmail.com"
] | vitalii.rodikov@gmail.com |
6b3660695db6f5815ec10bfa006908c75ed584b3 | ae4316d99cbd4d5f8fe26b5e905c2a14fd3a3575 | /lexer.py | ecfd89bed7fea867173f0d57020ca001548ea430 | [] | no_license | tanmaytirpankar/ForLoopParser | 229fbca10780e84d46faaed97c17d43e1ec1b2de | 20a365af04382a2e3de518d9a284e8b4fc284d24 | refs/heads/main | 2022-12-30T14:14:44.310651 | 2020-10-21T20:29:39 | 2020-10-21T20:29:39 | 305,006,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,938 | py | from sly import Lexer
from gtokens import *
class Flexer(Lexer):
# The tokens arranged on each line are type of input, arithmetic operators, logical operators, miscellaneous symbols,
# Grammar specific keywords
tokens = {INTEGER, DECIMAL,
PLUS, MINUS, DIV, MUL, MOD, INC, DEC, \
... | [
"tirpankartanmay@gmail.com"
] | tirpankartanmay@gmail.com |
335927b71241544311639bc055c64afdadfc1656 | 5ea7394e606d21a5a5bf84e657b33c580c6d0ec7 | /tablas/admin.py | 2a46cf4520366548238bba410a5e0f445f4c50c5 | [] | no_license | sangenispablo/erp.colegio | 0738e5e33bafecd6548e598147716e824954a14b | 31544e9016e0c8396d1fb63ff9cfc3b6ab6e9bf8 | refs/heads/master | 2023-04-21T19:40:19.538209 | 2021-05-07T17:06:22 | 2021-05-07T17:06:22 | 361,764,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.contrib import admin
from .models import Nivel, Turno, Aula
admin.site.register(Nivel)
admin.site.register(Turno)
admin.site.register(Aula)
| [
"sangenispablo@gmail.com"
] | sangenispablo@gmail.com |
3bfe9478a45b3ce6a71d86c7bffb8ca57afba743 | ec1fede858622eb8f18606e562324bf40aab8768 | /fibo.py | d7f55991d92d311b99c9fa5e18da436f365b1201 | [] | no_license | IgorBambach/ac4 | 4c501e21c08103ca87eea53987672aeed5b2cb87 | ecc9a3029ba9ed561761b993303bba247fa10004 | refs/heads/main | 2023-01-03T08:08:04.878007 | 2020-10-23T00:31:59 | 2020-10-23T00:31:59 | 306,482,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | importar os
from flask import Flask , jsonify , request
de matemรกtica import sqrt
app = Flask ( __name__ )
@ app . rota ( '/' )
def nao_entre_em_panico ():
proximo = 1
anterior = 0
limite = 98
encontrado = 0
resposta = "1, \ n "
while ( encontrado < limite )... | [
"noreply@github.com"
] | IgorBambach.noreply@github.com |
dc0e963aa23abe50e37b51a150717f3e95b98ee4 | e627d47d5102bd68c2012501aa120833b9271da7 | /aws_api/core/admin.py | deadee44fdc7c2eff24954c469f2c470d31764f1 | [] | no_license | aayushgupta97/django-km | 5ba275d1f85eaaf8bc052e47d2b6b6f1a5e4cf90 | d34cd4f8637718044832d9baeecee86df5e821a5 | refs/heads/master | 2023-01-02T18:12:31.384634 | 2020-10-24T09:21:50 | 2020-10-24T09:21:50 | 298,391,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from django.contrib import admin
from .models import AWSCredentials
# Register your models here.
admin.site.register(AWSCredentials) | [
"aayushgupta2097@gmail.com"
] | aayushgupta2097@gmail.com |
e4c2f3156d33f3befa11455e042d24a1c9ee39bd | f3d3b3ea381f937109a9ef8c230078c35e5c8b65 | /Ether/upload/src/test/LexerSuite.py | e10206c3d5dc2993bd58af6a3c69fb58b84cc4f4 | [] | no_license | TanDung2512/parserSmartContractPython | e268fa8d2971250aab1cd5f87638d19e70c2d8e3 | 6b6a154004e8d0b9957e9c96b99a4b0d28888e37 | refs/heads/master | 2020-04-26T18:07:02.905020 | 2019-03-04T11:46:37 | 2019-03-04T11:46:37 | 173,734,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | import unittest
from TestUtils import TestLexer
class LexerSuite(unittest.TestCase):
def test_lฦกercase_identifier(self):
"""test identifiers"""
self.assertTrue(TestLexer.test("abc","abc,<EOF>",101))
| [
"kimtoan1998@gmail.com"
] | kimtoan1998@gmail.com |
a5d02be7324103df8b24f058e3b8de41af441989 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02768/s686694566.py | 553aafe96bef5565407dfea61c0ba091a9ef4718 | [] | 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 | 1,026 | py | n, a, b = list(map(int, input().split(' ')))
# ไบ้
ไฟๆฐ mod [ๆค็ดข]
mmm = 1000000000 + 7
fac = []
inv = []
inv_fac = []
def init(n):
fac.append(1)
fac.append(1)
inv.append(0)
inv.append(1)
inv_fac.append(1)
inv_fac.append(1)
for i in range(2, n):
fac.append(fac[-1] * i % mmm)
inv.a... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9388ed6505d0881d0e65812e0362e9978ec0feb0 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_conv3d_transpose_13.py | ed625c225a1cb9bf00eec92280375ae7f4468a6a | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 641 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
ef7fa4042be75c55cebe7e526c05a66ca9081831 | 49d67f9b1abec8ddacd30b9a7ff99e036c1d2dfc | /App/Json_Class/TCPdevice_dto.py | 200fe093346990dd623926036a4591ecaf07c70d | [] | no_license | jacobpaul07/Project-BoschMCM-API | 3b9f25011f24d47089df3185e45e810d0f4b327f | 2cb6962ff825919c3f2d054333dcb7cce275379a | refs/heads/main | 2023-08-29T10:22:02.327369 | 2021-09-30T08:45:57 | 2021-09-30T08:45:57 | 390,989,406 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from dataclasses import dataclass
from typing import Any, List, Optional, TypeVar, Type, cast, Callable
from App.Json_Class.IOTag_dto import IOTag
from App.Json_Class.DtoUtilities import *
from App.Json_Class.TCPdeviceProperties_dto import TCPdeviceProperties
@dataclass
class TCPdevice:
properties: TCPdevicePrope... | [
"p.jacobpaul07@gmail.com"
] | p.jacobpaul07@gmail.com |
4aa5cc6c5f3ee72492708473c20d3ece613db6cb | 7a14adcd5150c970f6a5f1ab83180f091dc0f6cc | /items/migrations/0002_item_origin.py | 4fce527f993c1c330608ba087e0f33e0e273f96e | [] | no_license | synnea/the-modern-witcher | 0b4349e845e12e05f7abf6e0688200a6f54dd96d | f85c4de1fb3167b5c595ac6843c33a55495d7259 | refs/heads/master | 2022-12-09T15:09:23.602406 | 2020-03-05T18:17:27 | 2020-03-05T18:17:27 | 230,802,118 | 0 | 1 | null | 2022-11-22T05:13:41 | 2019-12-29T20:52:55 | HTML | UTF-8 | Python | false | false | 380 | py | # Generated by Django 2.2 on 2020-01-07 14:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('items', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='item',
name='origin',
field=mod... | [
"carrie.poell@gmail.com"
] | carrie.poell@gmail.com |
6c670e880143af3d3df7f3fa48cd73def4f4535b | 0ee88932af5b6ed088e471abcbd5f40fd9cbd688 | /Other/eraser.py | 4011853bf7baa80b3ee2c2398547b2997ebdd682 | [] | no_license | BjaouiAya/Cours-Python | 48c740966f9814e1045035ffb902d14783d36194 | 14b306447e227ddc5cb04b8819f388ca9f91a1d6 | refs/heads/master | 2021-06-10T22:17:38.731030 | 2016-11-11T16:45:05 | 2016-11-11T16:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | #! /usr/bin/env python
# -*- coding:Utf8 -*-
"""Renaming class constructor"""
########################################
#### Classes and Methods imported : ####
########################################
import os
import re
#####################
#### Constants : ####
#####################
# Regex and folder parmete... | [
"jeremybois@rocketmail.com"
] | jeremybois@rocketmail.com |
42bce4085193456af583fe4bd69f5b879e5fe92f | a39224fcd17ff2adb77fa643afed63bc3342a3f4 | /setup.py | e8128dd9f0742381369839c237e8c5bf807d6ee0 | [
"MIT"
] | permissive | HemuManju/reaction-time-classification | ef9ddb241803a16b4b9411eaa8375e8b25fcc9e1 | 8d468516c0591359e082fb8bc5850f8e89e5a6e4 | refs/heads/master | 2023-01-14T09:10:04.142946 | 2021-09-22T19:49:32 | 2021-09-22T19:49:32 | 179,614,766 | 0 | 0 | MIT | 2022-12-27T15:36:26 | 2019-04-05T03:39:43 | Python | UTF-8 | Python | false | false | 261 | py | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Classification of reaction time of an \
operator performing tele-operation',
author='Hemanth ',
license='MIT',
)
| [
"hemanthm2277@gmail.com"
] | hemanthm2277@gmail.com |
2ba40809f529128b9eee73cf5c7dcd8a5ac062cf | 877ee8bbd74479f11fe98b987c77bed0586da0fa | /src/utils/send_event.py | c6a047673e6900e0f3e80bc378129437bd193d07 | [] | no_license | HTD-Health/ai-smart-mirror | e33b219593ef12e1ff37d08f329440e12949616f | 5375ca64ac4b10e3efc0c136418e417c06619801 | refs/heads/main | 2023-07-20T16:01:04.948637 | 2021-08-16T13:32:34 | 2021-08-16T13:38:12 | 327,571,598 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | import argparse
import time
import zmq
import xdrlib
def main(host, port, topic, data):
"""
Sending events to the specific topic after connecting to the host.
Parameters:
host (str): host name to connect.
port (str): port of the host to connect.
topic (int): ID of topic to subscri... | [
"noreply@github.com"
] | HTD-Health.noreply@github.com |
0de59a9aa89e91f8a13f2348a8538cb213bac16f | 4fd581daa0c21ac36c19da710c85204b7608ac08 | /MyPizzas/piz/models.py | c829cddacd48650dd3783744a97e501049dffc20 | [] | no_license | trilok002/myPizza | a3c98ef7d80099bb82fa0b8739cc796768726629 | 1a7dd5636ae77f6b79563dc5ce6af685cd07467a | refs/heads/master | 2023-03-09T18:22:21.785280 | 2021-03-01T12:14:55 | 2021-03-01T12:14:55 | 343,404,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from djongo import models
# Create your models here.
class Pizza(models.Model):
type=models.CharField(max_length=20,null=True)
size=models.CharField(max_length=50,null=True)
toppings=models.TextField(null=True) | [
"61768477+trilok002@users.noreply.github.com"
] | 61768477+trilok002@users.noreply.github.com |
a3bc969b5283c5f611660bb173b2d3769ae854c3 | 2a68b03c923119cc747c4ffcc244477be35134bb | /interviews/A/VO/wordLadderII.py | a00dffb9d9e8ec178fca30545a4ec9ff564ba284 | [] | no_license | QitaoXu/Lintcode | 0bce9ae15fdd4af1cac376c0bea4465ae5ea6747 | fe411a0590ada6a1a6ae1166c86c585416ac8cda | refs/heads/master | 2020-04-24T20:53:27.258876 | 2019-09-24T23:54:59 | 2019-09-24T23:54:59 | 172,259,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | from collections import deque
class Solution:
"""
@param: start: a string
@param: end: a string
@param: dict: a set of string
@return: a list of lists of string
"""
def findLadders(self, start, end, dict):
# write your code here
dict.add(start)
dict.add(end)
... | [
"jeremyxuqitao@outlook.com"
] | jeremyxuqitao@outlook.com |
1463290d7d0b564ec4fce23796ea7e90f1adea53 | fbb1550dc5437d672ed0137bd7711eba3290dee3 | /students/ganyoa/lessons/lesson01/assignment/inventory_management/electric_appliances_class.py | 5b6a4aebc903f56735730c5623a3178938bba064 | [] | no_license | JavaRod/SP_Python220B_2019 | 2cc379daf5290f366cf92dc317b9cf68e450c1b3 | 5dac60f39e3909ff05b26721d602ed20f14d6be3 | refs/heads/master | 2022-12-27T00:14:03.097659 | 2020-09-27T19:31:12 | 2020-09-27T19:31:12 | 272,602,608 | 1 | 0 | null | 2020-06-16T03:41:14 | 2020-06-16T03:41:13 | null | UTF-8 | Python | false | false | 1,066 | py | '''Electric appliances class'''
from inventory_management.inventory_class import Inventory
#from inventory_class import Inventory
class ElectricAppliances(Inventory):
'''
initiates standard 'Inventory' attributes including brand and voltage for appliances
'''
def __init__(self, product_code, descri... | [
"ganyoa@gmail.com"
] | ganyoa@gmail.com |
b27239657a5741c26fc636ccfde4758a19cdea07 | 4e8e9ed2a8fb69ed8b46066a8d967e4c107013a4 | /main/auth/reddit.py | b4e81c58ba20f36a1a1a70b8a93f407dda2e0712 | [
"MIT"
] | permissive | welovecoding/vote4code | a57b3d155096d362dca47587ad2985b4201ef036 | be265d553af35dc6c5322ecb3f7d5b3cf7691b75 | refs/heads/master | 2021-08-11T22:46:40.884030 | 2019-11-15T16:15:05 | 2019-11-15T16:15:05 | 90,191,931 | 14 | 0 | MIT | 2021-08-10T22:50:49 | 2017-05-03T20:46:02 | Python | UTF-8 | Python | false | false | 2,613 | py | # coding: utf-8
import base64
from flask_oauthlib import client
from werkzeug import urls
import flask
import auth
import config
import model
import util
from main import app
reddit_config = dict(
access_token_method='POST',
access_token_params={'grant_type': 'authorization_code'},
access_token_url='https://... | [
"lipiridis@gmail.com"
] | lipiridis@gmail.com |
de82ab414d200f43559d8f8c2c19e5dce45ff2a1 | b3241816119b6440b50e44a08440bcd22ebc6ad6 | /tests/test_gnn.py | 9a657d2a31870b361c7de9d4f876246c3bcf1e22 | [
"Apache-2.0"
] | permissive | maniospas/pygrank | 8cf7a8c6ca3dc4c1fecdba3994e6d59121d5faba | df1489763c55ecab764671f0d80635d989aa1139 | refs/heads/master | 2023-03-05T14:15:04.763234 | 2023-02-26T21:41:50 | 2023-02-26T21:41:50 | 210,811,921 | 1 | 0 | Apache-2.0 | 2019-09-25T09:54:51 | 2019-09-25T09:54:50 | null | UTF-8 | Python | false | false | 5,679 | py | import pygrank as pg
import tensorflow as tf
import torch
import pytest
def test_gnn_errors():
graph, features, labels = pg.load_feature_dataset('synthfeats')
training, test = pg.split(list(range(len(graph))), 0.8)
training, validation = pg.split(training, 1 - 0.2 / 0.8)
from tensorflow.keras.layers ... | [
"maniospas@hotmail.com"
] | maniospas@hotmail.com |
15455b46dcf914a8067898dd19c0856955501824 | 9398a9d53c2977df17465cceb500d2568dad311b | /Build a computer/nand2tetris/nand2tetris/projects/11/JackAnalyzer.py | 700bb22f2eaf92ff7d0a779159bdfb7720fca87a | [] | no_license | jianqiangq/coursera | 561650a59ec5768c3687b34788873125ccc8cb1e | 4530d986f33cd2281e43fb6c26fa1af8c302c2c3 | refs/heads/master | 2023-02-27T16:30:30.974446 | 2021-01-28T03:25:23 | 2021-01-28T03:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,632 | py | from JackTokenizer import JackTokenizer,TOKEN_TYPE,KEYWORD_TYPE,tokentype,tokendict
import fileinput
import sys, getopt
import os
from enum import Enum, unique
import sys
class JackAnalyzer:
def __init__(self,infile):
# read all source code string to the buffer
self.parser = JackTokenizer(infile)
... | [
"mml1106@126.com"
] | mml1106@126.com |
56b56b28494fd3e8c37f0d64125888e7aade5cf1 | d91391e7f093709fa90129f2d6bdfdb139213582 | /db/sms_pending.py | cd3a57d9b0bcaec4a40dcba6f4af7f59b8f8ad29 | [] | no_license | nomo-w/sms | f0f678dde12928963c0c341df2152a902d06bd5d | f7e8a0f6cdc8c2deee34a5e403245731e6c1e25c | refs/heads/main | 2023-01-23T19:45:53.855664 | 2020-12-07T09:07:21 | 2020-12-07T09:07:21 | 277,744,520 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,595 | py | # coding: utf-8
# ๅ้็ญไฟกๅๅฒๆฐๆฎๅบ
from config import Sql
from db.base import DBbase
from pymysql import escape_string
from db.history import SmsHistoryDB
from db.statistics import StatisticsDB
from db.cache_statistics import CacheStatisticsDB
import datetime
import random
import time
"""
CREATE TABLE `sms_p... | [
"1085640177@qq.com"
] | 1085640177@qq.com |
67323a6cd63e9a194cb69a9c34a95d333bb40913 | 393f5e709700153dd8a4dbb4de229126a44fff43 | /cage/settings/local.py | 0fa4d63fd04ce97e4b8e9b2d444bc2b30378f6da | [] | no_license | CNcage/SCP | ec142bd536f3abc09a683e97e19a1ee48f4e8494 | 2ee0778774c9258a14e4d64f22d04537ea3dd7a5 | refs/heads/master | 2022-11-21T04:03:35.015907 | 2020-07-21T16:05:43 | 2020-07-21T16:05:43 | 279,333,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from decouple import config
from .base import * # noqa
SECRET_KEY = config("SECRET_KEY")
DEBUG = config("DEBUG", cast=bool)
DATABASES = { "default": { "ENGINE": config("DB_ENGINE"),
"NAME": config("DB_NAME"), "USER": config("DB_USER"),
"PASSWORD": config("DB_PASSWD"),
"HOST": config("DB_HOST"),
"PORT": config("DB_PO... | [
"info@jmkit.com"
] | info@jmkit.com |
018f409190587b0f73f81fbc955a1fe528f94f44 | 1dfe57ecf168d954b38248f47bca080c8bb789d3 | /djangoenv/bin/pip | 34f5d03d3441d7c12d867e340ab3a3b70cb95d13 | [] | no_license | deb133/mysite | ab01cb053f2eac6675bde3eb429aa26def0bb76f | 1d465bbaaa736eecdf85231478f6cf5f05637726 | refs/heads/master | 2016-08-07T11:49:58.517062 | 2015-03-11T02:09:56 | 2015-03-11T02:09:56 | 31,602,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/Users/DarcyElizabeth/Python/mysite/djangoenv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"darcy.e.balcarce@gmail.com"
] | darcy.e.balcarce@gmail.com | |
96c06261331dd8e373f7552b6c08266873eeb256 | ebe994a845740ff5b8951a1ad9f0eddf6ebab508 | /pokeSite/pokeSite/settings.py | c329a1888c6b7559e8c9da5cede45fd6c2273c6d | [] | no_license | brando-squire/Hack_Pokedex_app | 997c60cfc66b7a89a518df14b2fadbaae8abc107 | 1116487394e60cb26786ae20948330ab28632bad | refs/heads/master | 2020-04-07T01:06:49.257262 | 2018-11-17T19:42:21 | 2018-11-17T19:42:21 | 157,930,997 | 0 | 0 | null | 2018-11-17T18:46:58 | 2018-11-16T23:04:28 | JavaScript | UTF-8 | Python | false | false | 3,128 | py | """
Django settings for pokeSite project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"squiresbrandon@yahoo.com"
] | squiresbrandon@yahoo.com |
59bcf1a18ede02687f34e00ecf37f4912b59fe5e | e878866c0e3bea4c8c24da2629e1c8f65135c59c | /ProyectoAutomation/New folder/ejercicio3.py | 81563ae26c5c2150dff8e941aac23932e00709a6 | [] | no_license | KariAltamirano/ProyectoAutomation | 4aaf6b66ddb80d26893354ae4ae596803dfebf67 | 631e5c4c65a21b17e23398792d6939b48aa987da | refs/heads/main | 2023-07-18T07:20:48.756419 | 2021-09-09T03:59:22 | 2021-09-09T03:59:22 | 403,185,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | def calcular_precio(marcas,puertas,color,ventas):
marcas = {'ford':100000, 'chevrolet':120000, 'fiat':80000}
colores = {'blanco':10000, 'azul':20000, 'negro':30000}
puertas = {2:50000,4:65000,5:78000}
precio = marcas[marca]+ colores [color]+ puertas[puerta]
if ventas > 5 and ventas <11:
... | [
"noreply@github.com"
] | KariAltamirano.noreply@github.com |
658637053dd75b704a6f500e279e42fd4a536cf6 | 2231cbaf3b3a4a67b8f25bc7f4150f86b28981d4 | /test/hw4/arithmetic/test7/test7.py | 47d2e11edfbe5ddb450631a472d8a8c4d07fca7c | [] | no_license | TLeben/compilerContruction | 2bd4c17a7682f0a75fb162864856179cf4d1a917 | 90d5ff9b115b066dab7ed98dc7772a8b6f6cab98 | refs/heads/master | 2016-08-04T20:36:03.416893 | 2015-04-09T04:36:39 | 2015-04-09T04:36:39 | 29,304,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | #!/usr/bin/env python
a = 1
b = 2
c = 3
d = 4
e = 5
f = 6
g = 7
h = 8
i = 9
j = 10
print a + b + c + d + e + f + g + h + i + j
| [
"schweikm@gmail.com"
] | schweikm@gmail.com |
12e50b360422f0d643d536e64911172c29b93a33 | 35fa34a9bfc8e8d87d033ac556a0a08a7a55ce16 | /crawl_frame/models/ocean_models.py | f178bb1e2dbe89585c93e5ce669fbeea1bda692b | [] | no_license | yinglingxianghen/spiders_business | 2b923bf502ec1bd8706951c1dea354345ee96c45 | 7e8e6ec911d30a66dc26d825940c78e43b39de14 | refs/heads/master | 2022-07-11T14:01:13.052718 | 2020-05-11T03:49:18 | 2020-05-11T03:49:18 | 262,930,639 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, Integer
from sqlalchemy.orm import sessionmaker
engine = create_engine("mysql+pymysql://root:111111@127.0.0.1:3306/oceans",encoding="utf-8", echo=True, max_overflow=5)
# engine = create_e... | [
"1026719936@qq.com"
] | 1026719936@qq.com |
352ddf87ea2fdb4df2a799b35d0b72ef0da338c3 | b59a2ad40efead9850c2c9cbff93b2a00c6c47bb | /app/__init__.py | c5833da6e81fbcc2b9193c1bf3248a77a4f678d3 | [] | no_license | khaled-sayed/news_app_python_flask | 67704bb37e0a4dd32d2b7a26d22671d74f59aec1 | 440cc3d0915e79b601b0154d4d13912cd1c2aebd | refs/heads/main | 2023-01-03T21:53:38.227252 | 2020-11-04T15:21:56 | 2020-11-04T15:21:56 | 310,038,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | from flask import Flask, render_template
from dotenv import load_dotenv
import config
import os
from flask_login import LoginManager
from werkzeug.utils import secure_filename
base = os.path.dirname(os.path.abspath(__name__))
UPLOAD_FOLDER = 'app/static/images/upload/news'
# ALLOWED_EXTINSTIONS = set(['jpeg','jpg','png... | [
"62744648+khaled-sayed@users.noreply.github.com"
] | 62744648+khaled-sayed@users.noreply.github.com |
1e73bcb3091075ebead0ba1e029588dec88fead0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/46/usersdata/98/17294/submittedfiles/funcoes1.py | 94f0f1ec40294a695cc95ea950a44bec636efae5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | # -*- coding: utf-8 -*-
from __future__ import division
def crescente (lista):
#escreva o cรณdigo da funรงรฃo crescente aqui
cont=0
for i in range(0,len(lista)-1,1):
if lista[i]<lista[i+1]:
cont=cont+1
if cont==len(lista)-1:
return True
else:
return False
#escr... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ed804e3a0fd86fac05c8659b567fe28785d81b74 | 23004e07eb5923b69063d1a303707245ba185610 | /ADM_Project.py | 0aa88edf533bd86403a217a8cfb554678585e06d | [] | no_license | Vasireddydivya/Santander-Product-Recommendation_DataPrep_Python | 0bba05cbbab745b41bbdb7a0f15482047b0b0f26 | 0bf586237ccd73d796f6ec14e330773e0bdce256 | refs/heads/master | 2021-01-25T09:20:18.714274 | 2017-11-15T02:48:12 | 2017-11-15T02:48:12 | 93,812,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,076 | py | import numpy as np
import pandas as pd
#from tsne import bh_sne
import seaborn as sns
import matplotlib.pyplot as plt
#%matplotlib inline
#pylab.rcParams['figure.figsize'] = (10, 6)
def convert_int(dataframe,colname):
dataframe[colname]=pd.to_numeric(dataframe[colname],errors='coerce')
limit_rows=10000... | [
"noreply@github.com"
] | Vasireddydivya.noreply@github.com |
2e1785d76fd4532236e24443c86dc1718f1136ed | 0e5bbc4eab562ae85c3e0972e5789dd2c14eb297 | /5.4_server.py | 772387cd4348bf536b82fc5ac4298df49aa43065 | [] | no_license | kint7/lab5 | c84d71a7b00b03a219d5c8fe7cb541d5ee0c29d2 | eb43c926a8d02f593ae7754a3d6e1feb31256833 | refs/heads/master | 2023-01-24T03:49:21.603390 | 2020-12-09T08:38:16 | 2020-12-09T08:38:16 | 317,923,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | # Importing socket library
import socket
# Now we can create socket object
s = socket.socket()
# Lets choose one port and start listening on that port
host_name = socket.gethostname()
IPADDRESS = socket.gethostbyname(host_name)
PORT = 9898
print(">>>IP address of the server: ", IPADDRESS)
print(">>>Server is lis... | [
"2018276758@isiswa.uitm.edu.my"
] | 2018276758@isiswa.uitm.edu.my |
f87a9d541cd2f410d4566f9b6a619b6f8385df77 | b7319d10078c0fdf5d9ece02f976e64d19ff870e | /Mathematical/Multiply.py | 6a1eca5fdc9c2b25bd4a3683d8376cc2f0685d5a | [] | no_license | parhamrp/Python3 | 5a4e91941a411e52f252819fdcd65924c0466e10 | dba4e7b22c39e10dfee8f49faa24e6705ce894a5 | refs/heads/master | 2020-09-11T01:19:34.543569 | 2019-12-08T17:14:09 | 2019-12-08T17:14:09 | 221,892,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | # Write a Python function to multiply all the numbers in a list.
def multiply(lst):
total = 1
for item in lst:
total *= item
# total = lst[item] * lst[item+1]
return total
# print(multiply([1,2,4,-3,3]))
| [
"noreply@github.com"
] | parhamrp.noreply@github.com |
0d49f2b63100c3cb5e7ca83a6451e19ffa5f3676 | ecc17e230795f33d94ed33547b1d0f14c602b9ba | /HW12 (Ch04, HMM problem 1_Forward_Backward)/HW12.py | 4446294c4970e10df44507035199cda2add05e89 | [] | no_license | henk2525/NYUST-speech-recognition | 1e8a2159572c756152234f888b5814ddd7baf1ef | ea75d67d6c1d6a4db51064c00cae455961dd5b32 | refs/heads/master | 2022-05-07T12:50:39.224382 | 2019-08-04T12:38:55 | 2019-08-04T12:53:21 | 200,493,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | # -*- coding: utf-8 -*-
"""
Created at 2019/4/28
@author: henk guo
"""
import numpy as np
import dspBox
obs1 = dspBox.str2ndar(open('obser1.txt', 'r').read())
obs2 = dspBox.str2ndar(open('obser2.txt', 'r').read())
obs3 = dspBox.str2ndar(open('obser3.txt', 'r').read())
a1 = np.array([[0.2, 0.7, 0.1], [0.1, 0.2, 0.7], ... | [
"a0956072892@gmail.com"
] | a0956072892@gmail.com |
b70f5aaaa9a23b47d5833e61e54bf71c2eab1650 | cf6fc33bb2a3790ddb5dacfc9246e3c42f4c3812 | /firstTier.py | cf4b3aa531961466b8a9ab9aa1df3f5bd164a881 | [] | no_license | oliverwangyi/Software-Supply-chain-Risk-Analysis- | 6965dc936c8d6a85f593285463cf18487477c816 | 166e5b309c8820a3cf5a64c2544c354f58fc853c | refs/heads/master | 2020-04-01T02:40:24.963984 | 2018-10-12T18:01:37 | 2018-10-12T18:01:37 | 152,789,676 | 0 | 0 | null | 2018-10-12T18:03:42 | 2018-10-12T18:03:41 | null | UTF-8 | Python | false | false | 2,659 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 24 17:21:09 2018
@author: krishna
"""
import glob2
#Creating a list of path for each python file
pyFilesPath = glob2.glob('/home/krishna/Desktop/fall 2018-19/Research/ipythonProject/**/*.py')
# Reading the libraries from each of the python files
fi... | [
"noreply@github.com"
] | oliverwangyi.noreply@github.com |
5a5afc24b7232e7b0dfad88d7345ed4ac5c2c416 | ee27158cc32b364baa2693bee24c407886bd4d65 | /ecourses/migrations/0004_alter_student_universidad.py | 19677460db20b5a7ab125d35d9215cfb31320305 | [] | no_license | BenjaLepe/django-ecourses | e87cf3231de92509f7e012efced695901a93dd46 | caee50380149df71d114e27c6a2bdba7539b4222 | refs/heads/main | 2023-08-24T18:25:19.750885 | 2021-10-25T04:32:07 | 2021-10-25T04:32:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,797 | py | # Generated by Django 3.2.8 on 2021-10-25 02:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ecourses', '0003_course_promedio'),
]
operations = [
migrations.AlterField(
model_name='student',
name='universidad'... | [
"balepe@uc.cl"
] | balepe@uc.cl |
f3b0975173509a971b078616b1369cd06e6dbd22 | b5db98d382f587857cc56f71dfde17034963fdec | /image_search/signature_database_base.py | 7019b092d2372d185e499c5bbce04dc496472001 | [] | no_license | boluoyu/image_search | abb1563f35675730973bdcff6829da198f6c8d5e | 5675371130eca0849e215c426f51a6fdce66ed45 | refs/heads/master | 2020-07-17T16:12:08.287835 | 2017-04-18T09:51:09 | 2017-04-18T09:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,162 | py | from image_search.image_signature import ImageSignature
from operator import itemgetter
import numpy as np
from datetime import datetime
import os.path
class SignatureDatabaseBase(object):
"""Base class for storing and searching image signatures in a database
Note:
You must implement the methods sear... | [
"guoxiaolu06@126.com"
] | guoxiaolu06@126.com |
376003ae4440bb82d9c769811431381b61dbebbc | 61465dc9aded40737193de67edbbac89b98b2e83 | /leadmanager/accounts/api.py | 0a668ef7aa1a5a35e75aa82c97d3c58197b43a9b | [] | no_license | NganHaVan/PythonPractice | e0000f62f5eebc70695af447babc1e638ef874a9 | 3a7e376ef691458e720ec9bdef1d41b0b1fcc400 | refs/heads/master | 2023-01-08T22:15:37.082747 | 2019-06-05T09:36:51 | 2019-06-05T09:36:51 | 188,797,453 | 0 | 0 | null | 2023-01-07T05:49:32 | 2019-05-27T07:54:14 | Python | UTF-8 | Python | false | false | 1,401 | py | from knox.models import AuthToken
from rest_framework import generics, permissions
from rest_framework.decorators import permission_classes
from rest_framework.response import Response
from .serializers import LoginSerializer, RegisterSerializer, UserSerializer
# Register API
class RegisterAPI(generics.GenericAPIVie... | [
"vannunganha@gmail.com"
] | vannunganha@gmail.com |
6cd3405367f78e286064a46db46b69d8c5f63689 | 900bd035cc429c05307cc6a757cb3482c9074daf | /venv/Scripts/pip3-script.py | 58e93e211506308ae97457d9bbaf4c500f759828 | [] | no_license | maxshtun999/PythonBot1 | 2eff02138b0fced9b8ad6e46608c449c7be83246 | 19f81538f51fe5d0bef7e733cb16938bf949c0da | refs/heads/master | 2022-10-13T10:15:53.866144 | 2020-01-06T14:48:51 | 2020-01-06T14:48:51 | 232,130,241 | 0 | 1 | null | 2022-10-02T05:43:22 | 2020-01-06T15:32:37 | Python | UTF-8 | Python | false | false | 421 | py | #!"C:\Users\Shtun Max\PycharmProjects\PythonBot\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"maxshtun99@gmail.com"
] | maxshtun99@gmail.com |
678b524eb856b015ab6f89278db01e09ee25aeee | c1dbc149888d9e17023c7efea77a1bcba21b5215 | /haarcasc.py | 96dc7a5b740f24b72236d3326c2c232c775b065a | [] | no_license | aneri2807/Opencv_scripts | 8361c0983425cae75dd546ddde6b5d35790564e5 | c842284be5208d83fd78d8576b8b7cbfd7c5c461 | refs/heads/master | 2021-04-12T11:14:15.069227 | 2018-03-22T15:22:14 | 2018-03-22T15:22:14 | 126,353,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | import cv2
import numpy as np
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')
cap = cv2.VideoCapture(0)
while True:
ret, img = cap.read()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScal... | [
"aneri2807@gmail.com"
] | aneri2807@gmail.com |
dafc3e377763e40bd4c4d5e4406d87111ac9744b | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/interactive-physics-editor/operators/setup_phys_drawing.py | 01edd2b8c2993ca95f30bc14ca621432a93ca02a | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,321 | py | # Copyright (C) 2018 Christopher Gearhart
# chris@bblanimation.com
# http://bblanimation.com/
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your opt... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7bdd5fad0213f6c34d28ec35b754a74ac25ce4db | 0d05c5e96e91986bbfeda648b502f585885a596c | /trekbooking/wsgi.py | 6bc6d65ef0a74cc3ade9ff8870050e907c71bdc5 | [] | no_license | callingsandesh/ComeOn | 9507e1eba984dca76a7342845394754b2e4f598d | f3c541a62fa79c81e167a661ec45b8ced2c5b4b2 | refs/heads/master | 2021-01-25T13:05:15.985282 | 2020-01-23T14:39:59 | 2020-01-23T14:39:59 | 123,523,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for trekbooking project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"arvik.rai3377@gmail.com"
] | arvik.rai3377@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.