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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56d57686f92e0970a3e91838c2390f7a81b41c96 | 5062c7bdd302388668a79591d56f6fef667d2324 | /polls/polls1/admin.py | dbe803981a4c8a9f9097ed134ee1c43a2198d0e8 | [] | no_license | amt3/polling_app | cd6e44ab357e9a1f102d8a131eef95193ff62b96 | d71e5dacd8dfe242abe671bcb29addb7a8630c4f | refs/heads/master | 2021-01-19T19:38:05.412034 | 2017-04-18T19:51:26 | 2017-04-18T19:51:26 | 88,431,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from django.contrib import admin
from .models import Choice, Question, comment, User
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields... | [
"amtpagrut@gmail.com"
] | amtpagrut@gmail.com |
c6677fbf3c7a82ee6b99d6bb0c784f16490e8eac | 87673969182ddaffc976ee66016b98cc56a3f0a3 | /Second_Min_No_List.py | 6a3cea7e7e70d91b1a2038f9379cc41a9e153ce2 | [] | no_license | vikramattri123/265172_python | d588b6e28b20033fe0a64b53d7bb53ea83a47b58 | 7435782d68f3be84580b673dc5f837494d4d2346 | refs/heads/main | 2023-04-11T19:25:43.014809 | 2021-04-29T18:20:23 | 2021-04-29T18:20:23 | 359,191,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | a = int(input("Enter No : "))
list= [ ]
t=99999999999
for i in range(0,a):
c = int(input())
list.append(c)
if(c<t):
c1=t;
t=c;
print(c1); | [
"vikramattri123@gmail.com"
] | vikramattri123@gmail.com |
2fa12de4cea03dc4cd887a32b0e4c644c2ac1660 | 7e747b7b8d3d30a994f6dafc3d5a5f7ba1f76af5 | /WikiTrans/plugin.py | 9d50a4c2d8b857e9eb7e384e7424450eeb88bc11 | [] | no_license | fbesser/ProgValSupybot-plugins | 37640f861c8635a654fbad41bb8cdf3bc6b0c6f2 | 5a87323ac418e537852f5a4d38dd414c7b82b145 | refs/heads/master | 2020-12-30T17:19:33.911178 | 2011-11-01T18:47:57 | 2011-11-01T18:47:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | ###
# Copyright (c) 2011, Valentin Lorentz
# All rights reserved.
#
# 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 the above copyright notice,
# this list of conditi... | [
"progval@gmail.com"
] | progval@gmail.com |
7738aa87e518aeffeaeb7d4c0c9c5946d12b319e | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008.1/applications/admin/multitail/actions.py | d4c6ef77d21dc229418a24b7aaf616ffdbe43415 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def build():
autotools.make("all")
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
f2f71ed9879b1dd22cc2ccd3cb1b8c85b92403af | 50f7deafdc78088cc5d3c083a48c1903b95bb812 | /app1/views.py | 131d193670281057b152061a633dbe72e9a064bf | [] | no_license | ritztech/django_project | 4ad6f1200d410204065caa0f81711013697d9674 | ca09af8180a5cd045408091a91f70e8726b6ff5f | refs/heads/master | 2021-01-16T05:05:14.524771 | 2020-02-26T12:19:50 | 2020-02-26T12:19:50 | 242,985,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request):
#return HttpResponse("<h1>Hello response to main page</h1> ")
return render(request,'index.html',{'name':'sudhir shrivastvava','job':'IIT KGP'})
def add(request):
val1=int(request.POS... | [
"ritzz.technologies@gmail.com"
] | ritzz.technologies@gmail.com |
d3370eaf70619b36f388d94de9592ce4897efb59 | 495e2201cb5f5e690fd432995ab426fe524b45ad | /Strings/venv/Scripts/easy_install-3.7-script.py | 83ec03b6681bf67a582b2289cba7cb5c60b9d45a | [] | no_license | IngridFCosta/Exercicios-de-Python-Curso-em-video | 0f22d7e17470464f4ede955fab0e11edb89cbedf | a32811d3a01c7f017882cead0051ba536b05ffbf | refs/heads/master | 2022-12-06T04:45:53.589063 | 2020-08-26T23:34:45 | 2020-08-26T23:34:45 | 288,519,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!C:\Users\usuario\PycharmProjects\Strings\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"49729290+IngridFCosta@users.noreply.github.com"
] | 49729290+IngridFCosta@users.noreply.github.com |
f93f6e8d846bb344aae690e3f73a9e3bca9acc5b | b34a1d253457a2c015247f498ddc5e7dc13a0961 | /CyberCrew/task4/src/backend/code/routes.py | a9adcde9acfd64d3860f4e6fde83d3713c4e6f5b | [] | no_license | madwayz/tasks_dev | c8efc957e2c0197a187297642ca9a797f6f37ad8 | 07f6f587ca4cda464f3c853fcd84f75cc3e45036 | refs/heads/master | 2022-04-24T04:53:35.515953 | 2020-04-27T11:09:13 | 2020-04-27T11:09:13 | 254,447,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | from flask import request, jsonify
import requests as req
from code import app
@app.route('/resolve', methods=['GET', 'POST'])
def resolve():
domain = request.args.get('domain')
if not domain:
return jsonify({'error': 'Check fields and try again.'})
if '://' in domain:
return jsonify({'e... | [
"djurball@list.ru"
] | djurball@list.ru |
b662605ed67fe1a81b64f8c3935cb676d56be5c0 | 3b20a0bb1e1a408c0fbba4429c40aed625cd8430 | /library/migrations/0001_initial.py | c4e8b2d4a84c58eeb4cdc2c5a1343aa96e1e78ae | [] | no_license | rmhanchate/libmanpro | 5e1274f384a00e38837d1b22bf7ae9c16ec970ef | 9e83df1649f3bc6d1e4c19e56a8321caae92e7f7 | refs/heads/master | 2022-11-07T09:16:29.510053 | 2020-06-12T15:25:37 | 2020-06-12T15:25:37 | 271,769,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-05-16 13:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0008_alter_user_username_max_l... | [
"rmhanchate.181ec135@nitk.edu.in"
] | rmhanchate.181ec135@nitk.edu.in |
ed679385dfdf421b67dac7110709160cbba2b2c2 | 68ed4d0aed6e55f8af151276a09e0d08d9d61387 | /prototype/data/imagenet_dataloader.py | 055cd060445fa83dbd576810bf3f2b4181531dad | [] | no_license | Rivulet-1993/prototype | 8cb1dbc9034f495c5d53ce99e0b4e5c5a5e62d33 | 193462e72b6e58b7b4a826bc9ae7f013efc2c76d | refs/heads/main | 2023-03-25T17:36:50.129634 | 2021-03-17T02:45:27 | 2021-03-17T02:45:27 | 349,042,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,189 | py | from torch.utils.data import DataLoader
from torchvision import transforms
from .datasets import ImageNetDataset
from .transforms import build_transformer, TwoCropsTransform, GaussianBlur
from .auto_augmentation import ImageNetPolicy
from .sampler import build_sampler
from .metrics import build_evaluator
from .pipelin... | [
"yuankun@sensetime.com"
] | yuankun@sensetime.com |
a1b0ca45b0570f7898d0bc8d827982ad2d66ed91 | ac97d0698f2e51163c4bc00efe3693cb64da84b6 | /ASCII.py | e9e9328807a979b7b8081b523b05006fb70f117f | [] | no_license | Sudhapraba/python | 832208777b95370d7bedd81f62b42523cb232dee | 586c863042bbba3e22d3a7ce94c1cc4dc422aad5 | refs/heads/master | 2022-12-17T18:10:33.548695 | 2020-08-31T17:19:39 | 2020-08-31T17:19:39 | 272,482,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | c = 'a'
print ( "The ASCII value of " + c + " is" , ord(c))
| [
"noreply@github.com"
] | Sudhapraba.noreply@github.com |
253aeb248a0697cd79511e0f0c7c3d3d8349dff5 | 8dae4378bf317d1e3ec514061dcc109e6f60dff3 | /quizzes/graphtraversal_practice.py | 59d31ea80848b02398c34b2bd46069fa15b8b129 | [] | no_license | bongbaybien/MLND | 85270e78e11c5af5acba491a6ffd3ebfbb7ddb6e | 882e35bade8870a29597d1c431d32e59c8bb0c8c | refs/heads/master | 2021-01-20T07:53:32.510123 | 2017-11-20T20:08:06 | 2017-11-20T20:08:06 | 80,651,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,175 | py | class Node(object):
def __init__(self, value):
self.value = value
self.edges = []
self.visited = False
class Edge(object):
def __init__(self, value, node_from, node_to):
self.value = value
self.node_from = node_from
self.node_to = node_to
# You only need to chan... | [
"myhoangnguyen@gmail.com"
] | myhoangnguyen@gmail.com |
da5606d8b80d3dca999333c24fad9c9c7ce317d1 | 29214e439ac6293605871774e3321c0a4045f689 | /DiscordBot.py | e3d95e2519f4223688fcc3ecb8a8f02aac3efb81 | [] | no_license | Richard-Tyrrell/DiscordBot | f5edffeedacbd939114469f0f530a13b380cf1d1 | 01788b350e7605aeb4265d318dca71c7a6d549ec | refs/heads/main | 2023-03-11T03:04:12.122832 | 2021-02-23T05:43:34 | 2021-02-23T05:43:34 | 338,903,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,101 | py | import random
import discord
from discord.ext import commands
urls = {"php": "https://www.php.net/docs.php",
"bash": "https://ryanstutorials.net/bash-scripting-tutorial/\nhttps://www.youtube.com/watch?v=oxuRxtrO2Ag\nhttps://tldp.org/LDP/Bash-Beginners-Guide/html/Bash-Beginners-Guide.html\nhttps://devhin... | [
"noreply@github.com"
] | Richard-Tyrrell.noreply@github.com |
45992b9ea477d620e303825fd506022644b7690e | 28a131b8a1d4d96b571571e932cf5da6a4c7801d | /nahida_LL_end_10.py | e1899df424712f74cc2435f8b69c97fb70dbf68c | [] | no_license | Nahida-Jannat/project-linked-list | 4cdcb2d6159b9cd931398c92924965e2812d6355 | 8556102eff9431f65c87404240c347bb43e6d467 | refs/heads/master | 2023-06-13T00:54:54.355159 | 2021-07-09T16:20:24 | 2021-07-09T16:20:24 | 384,088,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | # Linked list implementation
# Add value at end in linked list
# NODE --> Data | Next
class Node:
def __init__(self, data = None, next = None):
self.data = data
self.next = next
class LinkedList:
def __init__(self):
self.head = Node()
def display(self):
if self.head is None:
... | [
"nahidajannat28@gmail.com"
] | nahidajannat28@gmail.com |
ab55b92d33494a8c73eb619ba5a67fe3a1fd13f6 | 11c211dc48b6b33c2ad2cf0e6e7116ace526594b | /Applications/Raspi-Trek/Raspi-Trek/bin/pip2.7 | 8e9f871274acf108b21f540b64c79d5d9f3abf04 | [] | no_license | thecloudist/awareness | 1f481187a1e563069338aa68631f3829b0e4ce8f | 5d55adb5921b72a54c30ca8fc235d6f6c09156a7 | refs/heads/master | 2020-09-27T03:03:16.651252 | 2016-10-18T04:38:00 | 2016-10-18T04:38:00 | 67,518,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | 7 | #!/home/pi/Awareness/Applications/Raspi-Trek/Raspi-Trek/bin/python
# -*- 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())
| [
"salvideoguy@gmail.com"
] | salvideoguy@gmail.com |
254775a06265133704a20d0e692dfed518932ec8 | a1615563bb9b124e16f4163f660d677f3224553c | /LI/lib/python3.8/site-packages/sklearn/cluster/_kmeans.py | d10dfba0d08b386d76c1a0437f97daf76dc5cd9e | [
"MIT"
] | permissive | honeybhardwaj/Language_Identification | 2a247d98095bd56c1194a34a556ddfadf6f001e5 | 1b74f898be5402b0c1a13debf595736a3f57d7e7 | refs/heads/main | 2023-04-19T16:22:05.231818 | 2021-05-15T18:59:45 | 2021-05-15T18:59:45 | 351,470,447 | 5 | 4 | MIT | 2021-05-15T18:59:46 | 2021-03-25T14:42:26 | Python | UTF-8 | Python | false | false | 78,853 | py | """K-means clustering."""
# Authors: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Thomas Rueckstiess <ruecksti@in.tum.de>
# James Bergstra <james.bergstra@umontreal.ca>
# Jan Schlueter <scikit-learn@jan-schlueter.de>
# Nelle Varoquaux
# Peter Prettenhofer <peter.pretten... | [
"honey.bhardwaj.18cse@bmu.edu.in"
] | honey.bhardwaj.18cse@bmu.edu.in |
4930c4485ebc8161f7e8797e7c0615a7ea8ab655 | 9d6a3789c083b170920707597b9785d02704b66b | /TimeTracker/db.py | 9e37d3c0ec235d00ac776cf5d472d98a06fab6fd | [] | no_license | jamesfowkes/TimeTracker | 6d7736ecb6e895d1c191809ba3f262bb6f8ebd98 | 4293725e91519a4d02591f1629d94a68c0ab6100 | refs/heads/master | 2021-01-17T10:10:09.410146 | 2017-02-01T07:06:56 | 2017-02-01T07:06:56 | 32,203,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from flask.ext.sqlalchemy import SQLAlchemy
db = None
def add_db(app):
global db
if "SQLALCHEMY_DATABASE_URI" not in app.config:
try:
app.config["SQLALCHEMY_DATABASE_URI"] = app.config["DATABASE"] or app.config["DATABASE_URI"]
except:
raise Exception("Application confi... | [
"jamesfowkes@gmail.com"
] | jamesfowkes@gmail.com |
3f125e6743ed4c1551826d92be3ce0b2771a742e | e9de15ca55e02587f7d1267189f8cde01e1d0f84 | /meetings/forms.py | 42eefb28f239ec3b5b9b238feaefbab604b35bdd | [] | no_license | jestanoff/meeting-planner | 187fd1680eabc3e72cd76da6158cee3ba9ede448 | 0c9271ee59019ef35ca6860f8f68d0a889b37f49 | refs/heads/master | 2022-04-26T14:03:59.001498 | 2020-04-13T14:34:57 | 2020-04-13T14:34:57 | 255,338,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from datetime import date
from django.forms import ModelForm, DateInput, TimeInput, TextInput, IntegerField
from django.core.exceptions import ValidationError
from .models import Meeting
class MeetingForm(ModelForm):
class Meta:
model = Meeting
fields = '__all__'
widgets = {
... | [
"stefan.dzhestanov@waitrose.co.uk"
] | stefan.dzhestanov@waitrose.co.uk |
40dbf560537807d786d128ec6c2b0025d1d91c10 | a3c104bdff7fac31948ef3b9d15e9fa687d306de | /train.py | e2df88522a7f7515ca01ab8ecaeee94c22492c48 | [] | no_license | n1kun-j/facerec | 50c425d3657e6f902670723843037f491a617f6a | d743c9bd7289665a0a2e302926d6cab65329f99b | refs/heads/master | 2022-04-10T04:15:49.581504 | 2020-03-25T19:48:40 | 2020-03-25T19:48:40 | 250,075,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,491 | py | import tkinter as tk
from tkinter import Message ,Text
import cv2
import os,errno
import shutil
import csv
import numpy as np
from PIL import Image, ImageTk
import pandas as pd
import datetime
import time
import tkinter.ttk as ttk
import tkinter.font as font
import pickle
window = tk.Tk()
window.title("Face Recognitio... | [
"noreply@github.com"
] | n1kun-j.noreply@github.com |
98e8b565cd089e3a308e54abac9b7c71e93f4631 | 8cac3b19b7e3d69ccafe0277d2d9e6416270a361 | /face_anonymizer/core/__init__.py | 00fdba77f8cc50c8d16d6ef64d89ee48bdfe6958 | [] | no_license | natecrisler/face-anonymizer | 06516059aa4d40aec363c4feb8ea82ca369bae5c | 1b3eb113abb1663a31555950e1587d5cbfbe77da | refs/heads/master | 2022-01-07T18:32:51.755718 | 2019-01-21T18:50:42 | 2019-01-21T18:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | from typing import Optional
import cv2
import numpy as np
from face_anonymizer.core.detection import FaceDetector
from face_anonymizer.core.detection import FaceExtractor
from face_anonymizer.core.manipulation import Manipulator
def pixelate_faces_from_path(fd: FaceDetector, image_path: str,
... | [
"loumarvincaraig@gmail.com"
] | loumarvincaraig@gmail.com |
38c754330d7496b646e8667ba7c58a949f263a6c | 9ecb57431990491ed6710bdebab678216e8457e3 | /reading_videos.py | 11b9469f3473f76a053f197b31a94fde73da578f | [] | no_license | jacob-02/OpenCV_Studies | 7c810754a99bb91319848a0728ebf3b28a20b7c6 | 494329f099bc07b0d6e726a2d3448f755d3834f6 | refs/heads/master | 2023-04-14T18:52:11.779870 | 2021-04-26T13:08:07 | 2021-04-26T13:08:07 | 359,331,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import cv2 as cv
capture = cv.VideoCapture(
'/home/jacob3006/Videos/st23_naruto-shippuuden-dub-episode-476.1618454201.mp4') # We can also use integers instead of the path file. Those reference cameras.
while True:
isTrue, frame = capture.read()
cv.imshow('Anime', frame)
if cv.waitKey(20) & 0xFF == ord... | [
"jvsanoj23@gmail.com"
] | jvsanoj23@gmail.com |
b940b6ea692a545a3e86f40c92f1bb62f8deeab7 | 3442f797c0d566bcfdb016d17d473c133b3403ba | /variables.py | a8f7ab5add793b9fa8a645d966955b16a29ae593 | [] | no_license | ryancodes116/python_sandbox | 216dec01f5c5728e9f2402c383dcf1ca052d56d2 | 02d746a4164eebdda5ae9b3c29c83236b0b8fb17 | refs/heads/master | 2022-11-15T01:33:47.898610 | 2020-07-14T17:12:58 | 2020-07-14T17:12:58 | 279,128,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # A variable is a container for a value, which can be of various types
'''
This is a
multiline comment
or docstring (used to define a functions purpose)
can be single or double quotes
'''
"""
VARIABLE RULES:
- Variable names are case sensitive (name and NAME are different variables)
- Must start with a letter or... | [
"ryanmoulton116@gmail.com"
] | ryanmoulton116@gmail.com |
f6d5e4cdcbf3d490ddba43494f37a07091965456 | 490f13d332d93b14431a5da8e075774bcc6aee3b | /utils/product_attributes/ameublement.py | 82420ddd5352998b3fcde564a57d84af533ceb70 | [] | no_license | rickyakilimali/ria | c9769825fc2b1f1514906b1ac4c30c2e8fe25dfd | 4c54e4326ff312e231eac6484d09476d61fb564a | refs/heads/master | 2021-08-24T11:39:49.940193 | 2017-12-09T15:13:35 | 2017-12-09T15:13:35 | 113,436,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | TYPES_ARMOIRE = (
('Armoire basse','Armoire basse'),
('Armoire haute','Armoire haute'),
('Armoire mi-haute','Armoire mi-haute'),
)
TYPE_SIEGE = (
('Chaise accueil','Chaise accueil'),
('Chaise visiteur','Chaise visiteur'),
('Fauteuil de Direction','Fauteuil de Direction'),
('Siège de réunion','Siège de r... | [
"jusciamua@gmail.com"
] | jusciamua@gmail.com |
60b3118eead8402276c713c5d5a088f5dfd1ae57 | 0f6cfed075d9967cfe9ec98ae00b06e7b6b91c3b | /left_rotation.py | 32ac48771507545a4a7ca5fa460ec3aac4619eb8 | [] | no_license | engrjepmanzanillo/hacker_rank_practice | c585b59a0fb11d958d8bafde8b481aaade902850 | d99cc6de10876f1958549b1b1b4c75cdf06c1c60 | refs/heads/master | 2020-08-04T23:20:51.689116 | 2019-11-12T11:36:51 | 2019-11-12T11:36:51 | 212,311,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | #!/bin/python3
#author: @engrjepmanzanillo
import math
import os
import random
import re
import sys
def list_slicer(list):
list = [str(x) for x in list]
list = ' '.join(list)
return list
if __name__ == '__main__':
#nd = input().split()
n = 5
d = 4
a = [1,2,3,4,5]
b = list_slicer(a... | [
"engr.jeffmanzanillo@gmail.com"
] | engr.jeffmanzanillo@gmail.com |
2c750ffdee421e7f29d213e636594221cd64bdf7 | e0ba958c23fc9a43efb02fc9e4308095bb8a7670 | /chapter02/18.py | b701d1252ecebae1a5b40fcc5698df610121bc15 | [] | no_license | go-inoue/nlp100knock | 5c9b5301d5f90bfb239d910e4f06a9581e669b7c | f341bf4d09eb44489aec976bce4a23c3d248657e | refs/heads/master | 2020-12-24T06:38:08.220639 | 2016-08-24T11:00:27 | 2016-08-24T11:00:27 | 65,361,403 | 0 | 1 | null | 2016-08-10T10:42:25 | 2016-08-10T07:42:59 | Jupyter Notebook | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
18. 各行を3コラム目の数値の降順にソート
各行を3コラム目の数値の逆順で整列せよ(注意: 各行の内容は変更せずに並び替えよ).
確認にはsortコマンドを用いよ(この問題はコマンドで実行した時の結果と合わなくてもよい).
"""
import sys
def sort3(f):
lines = f.readlines()
l = [line.strip().split('\t') for line in lines]
sorted_lines = sorted(l, key=lambda x: floa... | [
"go.inoue.gi@gmail.com"
] | go.inoue.gi@gmail.com |
e8c01110712e423217ecb0d38555a5fe4b3928d6 | 521dce61e99b248b20610ebe681f611ff9f36a58 | /Codeforces problemset/1409A - Yet Another Two Integers Problem.py | 9afd0db4228507cdaa8374cb4f366196c24e68e0 | [] | no_license | ommiy2j/Codeforces | ff0ca0129d442c14438d54c98673efd17c1bb8f0 | 2025c4ae11acca801fca4871dbc169c456f30ff9 | refs/heads/master | 2023-04-01T14:48:08.092036 | 2021-04-04T18:32:38 | 2021-04-04T18:32:38 | 320,491,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | for i in range(int(input())):
a,b=map(int,input().split())
x=abs(a-b)
c=x%10
y=x//10
if(c==0):
print(x//10)
else:
print(y+1)
| [
"ommiy2j@gmail.com"
] | ommiy2j@gmail.com |
78008ba9b5ecc4d38d9252059452933b0a8c5d7e | 5e01b849530ceac9f62ef2fb85497792bbe4c15a | /Jan16/lang-train-save.py | 219c8a6b40d11cb18490277f082b41c41fccad2c | [] | no_license | cheesecat47/ML_DL_Jan2020 | 2206599c0eb20eebdd152d1e3b27e72ffa2c6900 | 15bffd8c9c19d9ff2871aa7afe95607f95e491fe | refs/heads/master | 2021-07-16T18:10:20.609018 | 2021-01-19T00:48:01 | 2021-01-19T00:48:01 | 232,076,415 | 0 | 0 | null | 2020-01-28T04:58:03 | 2020-01-06T10:23:19 | Python | UTF-8 | Python | false | false | 405 | py | from sklearn import svm
import joblib
import json
# 각 언어의 출현 빈도 데이터(JSON) 읽어들이기
with open('LANG/freq.json', 'r', encoding='utf-8') as fp:
d = json.load(fp)
data = d[0] # 파일별 데이터만 추출
# 데이터 학습하기
clf = svm.SVC()
clf.fit(data['freqs'], data['labels'])
# 학습 데이터 저장하기
joblib.dump(clf, 'LANG/freq.pkl')
print('ok... | [
"cheesecat47@gmail.com"
] | cheesecat47@gmail.com |
ddf76264acb11a5e171585c688801d0531658285 | 4613b6938496bae29749dafd44ffae3fad31defd | /python-exercises/ex1.py | 2f193c644d4207f48750ad7ede995b0fd543d960 | [] | no_license | Marlar22/coding-sprint | b2f45aaf820f213d3fc30b3f1c842b23f758864e | 3068db7fd2723571702266842904df5e491d8d40 | refs/heads/master | 2020-03-21T14:53:29.893527 | 2018-06-26T04:17:18 | 2018-06-26T04:17:18 | 138,680,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | print("Hello World!")
print("Hello Again")
print("I like typing this.")
print("This is fun.")
print('Yay! Printing.')
print("I'd much rather you 'not'.")
print('I "said" do not touch this.')
| [
""
] | |
d7b906834fe670221921b20d1eaa42719b2d1f6a | 90353c1ae2abff43240ab0401e20ca2b82ec8a13 | /clock_face.py | b59d1a3f7481b27942978c3b80b1579af199d3cf | [] | no_license | andreygor444/Clock | 5e5f8d111c9dac5cac06ce22828a7f1fa2bdd975 | 4cfd44b5d14e47a648cac0d6ea74a729d78f837e | refs/heads/master | 2023-04-29T13:55:58.826145 | 2021-05-22T19:37:01 | 2021-05-22T19:37:01 | 369,117,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | from turtle import Turtle
from clock_number import ClockNumber
from math import sin, cos, pi
from utils import can_exit_while_drawing
class ClockFace:
"""Класс циферблата часов"""
def __init__(self, radius, center, numbers_count=12):
self.radius = radius
self._center = center
self._re... | [
"andreygor444@gmail.com"
] | andreygor444@gmail.com |
27e9c00748769bcf5d2150f4023cacd79bf41ac2 | c8d1b3c16804823b9e751576f59593df908021ea | /codeup/기초100제/1012.py | c67c536f98a8fbf02b2e99c8647a44feb244ca9e | [] | no_license | giljun/Algorithm | f2809c56efc45c518fef4b9d931e3ece580d209c | bce6a30dcdbe4f4382c45c2f7b415425ce345953 | refs/heads/master | 2021-06-16T06:47:51.902748 | 2021-04-21T14:40:01 | 2021-04-21T14:40:01 | 192,660,401 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | number = float(input())
print("%f"% number) | [
"giljune91@gmail.com"
] | giljune91@gmail.com |
24deb0da2773b154bb9bd7926e0b22c0d72f9736 | b72cc0de3990caf5dd7989506d80fe4aa448d4fb | /lighting.py | 8ec008410ad9b616774ffecb4438ce6167502eee | [] | no_license | tanzimelahi/compiler | 23113b015aff1ed96954176bcb129c8034ca79ec | 8323604c8d4bd69dcca099149c298d952d338e0a | refs/heads/master | 2022-06-20T22:12:58.089069 | 2020-05-13T02:33:55 | 2020-05-13T02:33:55 | 263,503,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,681 | py | import math
from subprocess import Popen, PIPE
from os import remove
import random
#constants
XRES = 500
YRES = 500
MAX_COLOR = 255
RED = 0
GREEN = 1
BLUE = 2
DEFAULT_COLOR = [0, 0, 0]
def new_screen( width = XRES, height = YRES ):
screen = []
for y in range( height ):
row = []
screen.append( ... | [
"telahi00@stuy.edu"
] | telahi00@stuy.edu |
efd9651775535caed7b13bced02debc6bfdc5175 | 1b5001dd4ae97909af1c7d6d05885dfb64466362 | /routes.py | a310f909ea7e9375bec4f6224efa15febbb41797 | [] | no_license | dorican/fwsgi_app | 889453f2b8e75bc28857019ec5da3279ac9cb55b | 969509fd4fc2de577d61a6170c0e4c5f6153c828 | refs/heads/master | 2022-12-30T16:25:06.375480 | 2020-08-24T12:17:55 | 2020-08-24T12:17:55 | 289,912,404 | 0 | 0 | null | 2020-10-13T06:05:27 | 2020-08-24T11:45:28 | Python | UTF-8 | Python | false | false | 142 | py | from views import IndexView, AboutView, OtherView
routes = {
'/': IndexView(),
'/about/': AboutView(),
'/other/': OtherView(),
}
| [
"linux@linux.org"
] | linux@linux.org |
76f1f51e2945735880579913d05f9284bad0b654 | 27e216a75d5266c885d6ea8cbf96efcefed739a1 | /TranslateRNA.py | c6dd146434f840e3221a4711c1f13b1eb245eb83 | [] | no_license | RagaviSrinivasan/Rosalind | 9b5a6fd4a63982e5b9a5cbb177b99aed53083629 | c254485ab8add2613a079dcab8f3a0db362eaa05 | refs/heads/master | 2021-01-19T13:27:04.935274 | 2017-08-02T04:08:44 | 2017-08-02T04:08:44 | 82,415,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,295 | py | # -----------------------------------------------------------------------------------------------------------
# Rosalind problems
# 6) Translate the given RNA into protein sequence
# -----------------------------------------------------------------------------------------------------------
from Bio.Seq import Seq
RNA ... | [
"rxs147930@utdallas.edu"
] | rxs147930@utdallas.edu |
7ab268a728e769aad1f9b367f30a8bc426d89554 | 03aebbf4fe13a3a0d79f738a0c2cd7741a788cdd | /Book_automation/ch6/picnictable.py | 40d50ac5d63f97f40eb413d4cc21c287b27316b2 | [] | no_license | Maxim-Krivobokov/python-practice | c69d2fbe601ed7e8388a564bf20a7ceab283919d | 718698dfaeabd5ea000bce3a20bf18d1efe938c2 | refs/heads/master | 2021-05-24T10:27:29.022718 | 2020-07-22T14:34:15 | 2020-07-22T14:34:15 | 253,518,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | def printPicnic(itemsDict, leftWidth, rightWidth):
print('PICNIC ITEMS'.center(leftWidth + rightWidth, '-'))
for k,v in itemsDict.items():
print(k.ljust(leftWidth, '.') + str(v).rjust(rightWidth))
picnicItems = {'sandwitches': 4, 'apples': 5, 'beer': 3, 'cookies': 9000}
printPicnic(picnicItems, 12, 5)... | [
"Krivobokov-M@KRIVOBOKOV-M"
] | Krivobokov-M@KRIVOBOKOV-M |
ab543bfcf0f2d90f21dbc29d0df4ece30ade650a | 57c82ffda28ffe76f9f30ee268fdb74de40e0b80 | /smartcab/decay.py | 31063b66e4785ed1aa72afb60bc27ffae256c96e | [] | no_license | walter090/smartcab | 77bbf67f2b183b427f4ccd901f771db1f881ed41 | 4e8d4d578a0b8dbc4461387b73f46c063988d30c | refs/heads/master | 2021-01-20T10:30:29.096433 | 2017-03-23T21:17:26 | 2017-03-23T21:17:26 | 83,933,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import numpy as np
def linear(epsilon, a, t):
return epsilon - a if t > 0 else epsilon
def exponential(a, t):
return a ** t
def quadratic(t):
return 1/float(t ** 2)
def e_ex(a, t):
return np.exp(-a * t)
def cosine(a, t):
return np.cos(a * t)
| [
"walter.wu090@gmail.com"
] | walter.wu090@gmail.com |
c9fc9d35cf11ca71bed235ddcb8f9cbdde5fc8ae | ee40ecc1af2a91797f9cfa5dc7418f9f055094db | /Aula 17-18 (listas).py | 65df1134433047583aef452490174e0a79100310 | [
"MIT"
] | permissive | juliosimply/Aulas-Python-Guanabara | 5ca5802634468c1b02208918661c720775784bc0 | fc3d230e4646cf83250404a20dadeef90ab2e676 | refs/heads/main | 2023-03-19T02:54:05.728655 | 2021-03-07T20:31:31 | 2021-03-07T20:31:31 | 335,390,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | # aula de listas
# o metodo .append('novoItem') vai adicionar novo item a um alista (no final da lista)
# o metodo .insert(0, 'novoItem') vai adicionar um novo item porem na posição "zero" conforme o argumento
# para apagar a 3 formas = del novoItem[3] / novoItem.pop(3) / item.remove('nomeDoItem') em todos os casos rem... | [
"julio_simply@hotmail.com"
] | julio_simply@hotmail.com |
e68408b11f88bf7efdc54910a6bd17966fb12078 | 4d4a85879d35605315b23135e86cee6e4bffdf88 | /tests/test_windows.py | 326e6772a16fa722d84cc904f55dd488b4ac44b3 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alfred82santa/httpie | b8029ff50e560257adb93db6f3d6ea5c02d22504 | 631e332dad122359840dda59b0d81a2ebec062dc | refs/heads/master | 2021-01-18T15:47:46.052220 | 2014-04-25T11:57:33 | 2014-04-25T11:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import os
import tempfile
import pytest
from tests import TestEnvironment, http, httpbin, Environment
from httpie.compat import is_windows
@pytest.mark.skipif(not is_windows, reason='windows-only')
class TestWindowsOnly:
def test_windows_colorized_output(self):
# Spits out the colorized output.
... | [
"jakub@roztocil.name"
] | jakub@roztocil.name |
6ac8817decaba91bb4b2cff0ab6e720f441aca4e | c19acc5dafb40bb0252bc15513dab3f165d48060 | /deep_q_learn_snake.py | 8465ca4e27b0a4f4fec26a9ef10b2859e3b6f149 | [
"MIT"
] | permissive | dsjohns2/Snake-AI | 062f7bdc9394da273e04a1bedc783faf0bfb1ad5 | 7e18abcea4abcf25089eaec5fdf140acd558ed6b | refs/heads/master | 2020-03-21T16:40:42.983877 | 2018-06-27T04:40:22 | 2018-06-27T04:40:22 | 138,785,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,522 | py | from __future__ import print_function
import random
import time
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import tkinter
import matplotlib.pyplot as plt
# Neural Network
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
se... | [
"dansj@stanford.edu"
] | dansj@stanford.edu |
252869c50aaf0b28ef745e92beba86c02c0dd1ab | 607fbaa551fd3e10d8b767b3707bc2f7bc9d9ea5 | /pendulo.py | 845b3ff085bb3f148c30cede4c36f1ae3b70445e | [] | no_license | natalypulido/EjerciciosClaseMetodosComputacionales | 3fd3ef84a129d2685e6d43fd338faef2bd100e7f | faab59b175eb3330db4cd3da448f7b5b67758b0c | refs/heads/master | 2021-01-01T19:22:07.693940 | 2017-07-27T20:00:29 | 2017-07-27T20:00:29 | 98,574,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
h=0.001
g = 9.8
l=1
mi=-5
ma=5
##Cantidad de puntos
n=int((ma-mi)/h)
#print n
##x
t=np.zeros(n)
##teta
y_1= np.zeros(n)
y_2= np.zeros(n)
##Teniendo en cuenta Second Order ODEs
def funcion_y1prime (t, y_1, y_2):
return y_... | [
"noreply@github.com"
] | natalypulido.noreply@github.com |
0d807fe80d041b739d1168b2dba4cb8b6812f554 | 8c5065f7832b56bab3841bcc8bbcc2a36d831328 | /api/user.py | 23fcea55b44eb1d6c3f1f7ff4b2ef47efebc24cf | [] | no_license | anpavlov/tp_db | 9899c6b578cdb2669c2253c39cab88647c8b190e | 310761120bf817734d562f3a17117fd165f6d059 | refs/heads/master | 2021-01-19T15:33:35.649962 | 2015-06-27T20:17:43 | 2015-06-27T20:17:43 | 31,472,827 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,616 | py | # import logging
from ext import mysql, get_followers, user_exists, get_subs
from flask import request, jsonify, Blueprint
from werkzeug.exceptions import BadRequest
from datetime import datetime
user_api = Blueprint('user_api', __name__)
# usersLog = logging.getLogger('usersLog')
# emailLog = logging.getLogger('emai... | [
"dir94@mail.ru"
] | dir94@mail.ru |
d7a94ae36c04dd3ff4a389885add6569ac78eae9 | 5c41a2c6e3a60a8d3031d4413dbdb50c6a242f23 | /K-Net Network Configuration Tool/center_left_frame.py | 45054198044f874b0490de2fc75f463819c91607 | [] | no_license | ssc1982/network-configuration-tool | 4c979995e7a4faad2d1d425111dce4ef9df80d24 | 0bb9c0f7540dcfa999c9ad4a31eb8803b4bf8d82 | refs/heads/master | 2021-01-25T10:22:14.855826 | 2018-03-09T02:00:43 | 2018-03-09T02:00:43 | 123,350,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,429 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
import threading
from tkinter import *
from tkinter import ttk
from tkinter.messagebox import *
from dbHandler import creat_item, read_item, delete_item, update_item
from popupwindow import deviceinfoInputDialog
class devicemgt(Frame):
def __init__(se... | [
"ssc1982@gmail.com"
] | ssc1982@gmail.com |
2c6fe46823e39e688f819c469c220c6d403c6e2b | 1f660e892411c3c750f372719d1b1264e87b9552 | /z-score2.py | 38cd3d56ea66ebc24d1ea5ce13c3ebaf3c16194b | [] | no_license | sahasra09/C111HW | dbb76953d2be24f2069b02640ed0a817b2b3cafd | 9fb45622862618fa749a89f6d8777616e1618d8a | refs/heads/main | 2023-08-31T15:15:24.556865 | 2021-10-24T16:02:16 | 2021-10-24T16:02:16 | 419,700,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import plotly.figure_factory as ff
import plotly.graph_objects as go
import statistics
import random
import pandas as pd
import csv
df = pd.read_csv("School2.csv")
data = df["Math_score"].tolist()
def random_set_of_mean(counter):
dataset = []
for i in range(0, counter):
random_index= ra... | [
"noreply@github.com"
] | sahasra09.noreply@github.com |
906e2d2b5c18baee10a4d6b8d3e55666624c3c73 | a2cb144815aca6dd67cbc92bd5dbed74b4e7fe43 | /app.py | 6908f2b2b5a6cd693c984c12dbc5d431d31f8982 | [] | no_license | Preymark9/Project-Week-2 | 939c5f0f9f89b94d961f3aba274e9e56336e803c | ff612feb0c40f952e8f21761e195a39bbfa9d63f | refs/heads/master | 2020-04-01T16:31:04.741734 | 2018-10-30T23:23:16 | 2018-10-30T23:23:16 | 153,384,499 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from flask import Flask, render_template, redirect
from flask_pymongo import PyMongo
import scrape_boxoffice
app = Flask(__name__)
# Use flask_pymongo to set up mongo connection
app.config["MONGO_URI"] = "mongodb://localhost:27017/craigslist_app"
mongo = PyMongo(app)
# Or set inline
# mongo = PyMongo(app, uri="mongo... | [
"noreply@github.com"
] | Preymark9.noreply@github.com |
d8612b48276983c71640d96cc08cdc06b9e74a4e | b832fecd4dbf14de9b4e1b6fe8710c89290000f0 | /LeetCode/111.二叉树的最小深度.py | 7efc41d4fac1ac08f83e966c73dce6e3c09ff392 | [] | no_license | biground/MyNote | 0a5eeaf9f5cd01dc83ee54252874016ac0b29c83 | 6b45279f02321b833ef1d1bb73cd729c90f0a0ed | refs/heads/master | 2021-05-17T14:23:51.479022 | 2021-03-04T01:09:32 | 2021-03-04T01:09:32 | 250,819,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | #
# @lc app=leetcode.cn id=111 lang=python3
#
# [111] 二叉树的最小深度
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def calcDep... | [
"cyt4byouth@163.com"
] | cyt4byouth@163.com |
a74f6601353e6a1dcfdfb5396a1d035394617695 | 08e3777e801866170925b402b0233a608f0fa46b | /lesson_3_standart_library/Task_3_4.py | e9b0378151af9022b85f9776fedb063f23d8677b | [] | no_license | Pavlmir/python-interview-geekbr | 38f198c02b2274abfb0d14d94f512e15931cac63 | 3672dda6e8380d58d36fd528cfbc249388c6c143 | refs/heads/master | 2023-08-15T12:34:57.480044 | 2021-09-18T09:13:44 | 2021-09-18T09:13:44 | 286,043,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | # 4. Написать программу, в которой реализовать две функции. В первой должен создаваться простой текстовый файл.
# Если файл с таким именем уже существует, выводим соответствующее сообщение. Необходимо открыть
# файл и подготовить два списка: с текстовой и числовой информацией. Для создания списков использовать генерато... | [
"mirprost@gmail.com"
] | mirprost@gmail.com |
4e6734d92bcb9101ba205b9adf9f9491db79aaec | b9bc8ea312b421604e12b259babc459fbc474d99 | /ProyectTK/Models/clientesDB.py | aeefc7bacaa5ccd515f995e720f37374d1ffacd7 | [] | no_license | Cristhian-32/ProyectTK | 4d55e867679e0a10b7c010061856463a20a28e9d | 4769394431a5c1fc1851d1813b1a4dcabf69d4db | refs/heads/main | 2023-07-01T14:17:28.462144 | 2021-07-22T18:51:15 | 2021-07-22T18:51:15 | 388,562,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | import sqlite3
class DataCliente:
def __init__(self):
self.conn = sqlite3.connect('basedata.db')
self.cursor = self.conn.cursor()
def insertItems(self, code, name, supp, price, cant):
sql = "INSERT INTO clientes (name, phone, mail, adress, reference ) VALUES(?,?,?,?,?)"
params = (code, name, price, supp, ... | [
"noreply@github.com"
] | Cristhian-32.noreply@github.com |
4b8d6192e4c368f83baac2ca24e9a5d5267cc2e4 | 98e4dc41e3d994dfb55a2553c79d1b61590ecca6 | /PY/facts/fact2.py | 0f60feac5e1681e6685352cae49069d18d19a04e | [] | no_license | krohak/Project_Euler | b753c4f3bbf26a5eff3203e27482599d1e089fc6 | 1d8a2326543d69457f1971af9435b3e93ab32f52 | refs/heads/master | 2022-09-02T10:48:59.472111 | 2022-08-18T11:11:16 | 2022-08-18T11:11:16 | 111,204,162 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # Positive Infinity
p_infinity = float('Inf')
if 99999999999999 > p_infinity:
print("The number is greater than Infinity!")
else:
print("Infinity is greatest")
# Negetive Infinity
n_infinity = float('-Inf')
if -99999999999999 < n_infinity:
print("The number is lesser than Negative Infinity!")... | [
"rohaksinghal14@gmail.com"
] | rohaksinghal14@gmail.com |
4ea31074125f6450c978cc6ec7b64798c6647fa9 | b922f4cc4b8877713147e93c1cccc26d0d52f729 | /flybird_table/yuanyang_env.py | 4dc8f6fc76041c58beae8d11d7d940cbab0a4199 | [] | no_license | pittacus/rl_course | 63e9b9ba5796d3f7af62bd683df7ea83723a148d | f8d5c78a08947bab97f6392aba3f2530c2217702 | refs/heads/master | 2021-06-27T00:22:56.581433 | 2017-09-16T13:03:43 | 2017-09-16T13:03:43 | 103,752,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,257 | py | # coding=utf8
import pygame
from load import *
import math
import time
import random
class YuanYangEnv:
def __init__(self):
self.viewer=None
self.FPSCLOCK = pygame.time.Clock()
self.actions=['e','s','w','n']
self.states=[]
for i in range(0,100):
sel... | [
"pittacus@labook.local"
] | pittacus@labook.local |
5aacaead1097698c67a0cf2f9cb30544aab59130 | 87a4fd12425a507e757da6e1bef4c68ee42a16e5 | /gemd/entity/attribute/property.py | 0cc36322b3c4b74a09fbbfe30f767df554a1e8e3 | [
"Apache-2.0"
] | permissive | lkubie/gemd-python | 8e548355ee40dba8cb5e961dac464202e005ed78 | 1f98fb471060bbba312b86474a5bf6818f317fe1 | refs/heads/master | 2023-04-14T22:34:13.898549 | 2020-06-17T21:08:38 | 2020-06-17T21:08:38 | 273,071,479 | 0 | 0 | Apache-2.0 | 2020-06-17T20:25:39 | 2020-06-17T20:25:38 | null | UTF-8 | Python | false | false | 355 | py | from gemd.entity.attribute.base_attribute import BaseAttribute
class Property(BaseAttribute):
"""
Property of a material, measured in a MeasurementRun or specified in a MaterialSpec.
Properties are characteristics of a material that could be measured, e.g. chemical composition,
density, yield streng... | [
"maxhutch@gmail.com"
] | maxhutch@gmail.com |
ecae270e06b48e6ab922ff9dcc8126b2f6b9f6ac | 3b89c0a97ac6b58b6923a213bc8471e11ad4fe69 | /python/CodingExercises/PairsPositiveNegativeValuesArray.py | bdc19b169e9ffca83c2d50eef9cb877d49558397 | [] | no_license | ksayee/programming_assignments | b187adca502ecf7ff7b51dc849d5d79ceb90d4a6 | 13bc1c44e1eef17fc36724f20b060c3339c280ea | refs/heads/master | 2021-06-30T07:19:34.192277 | 2021-06-23T05:11:32 | 2021-06-23T05:11:32 | 50,700,556 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | '''
Pairs of Positive Negative values in an array
Given an array of distinct integers,
print all the pairs having positive value and negative value of a number that exists in the array.
We need to print pairs in order of their occurrences.
A pair whose any element appears first should be printed first.
Examples:
Inpu... | [
"kartiksayee@gmail.com"
] | kartiksayee@gmail.com |
0ae17f38d0c3ba400e6be65953b83ffc4b6b185d | d697718afa04781434c332fe5f60496a57e0ee05 | /accounts/admin.py | f868d81b4a03d6cdfde555adba2523e2e524278f | [] | no_license | nazninnahartumpa/python_ecommerce_project | 361c5865507c0248841441393b727cddaedad59a | b84ce2f7d99f9613e6ed864e10aef9566505f88c | refs/heads/master | 2020-04-15T04:03:24.379587 | 2019-01-17T10:05:16 | 2019-01-17T10:05:16 | 164,369,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from .forms import UserAdminCreationForm, UserAdminChangeForm
from .models import GuestEmail
User = get_user_model()
class Use... | [
"naznintumpa5@gmail.com"
] | naznintumpa5@gmail.com |
2e50fcf5c6af2c79c0cb4a889025145bc74a0d6d | e0fbc96bec9e83bc3fc3482e432bd2c6b6ad05a6 | /MRPT/vqz_old/atoms/V_1/mrpt.py | db346b0534f264bcf8532306ef09918e32752d1f | [
"MIT"
] | permissive | mussard/share_data_benchmark | fe2cbd95879e069be2475d39b191de4f04e140ee | c02bfa4017b9008800cabe47d7c7959f82c26060 | refs/heads/master | 2020-03-11T21:25:00.264437 | 2019-04-29T00:28:13 | 2019-04-29T00:28:13 | 130,264,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | import json
from pyscf import gto,scf,mcscf, fci, lo, ci, cc
from pyscf.scf import ROHF, UHF,ROKS
import numpy as np
import pandas as pd
# THIS IS WERE IT STARTS ====================================
df=json.load(open("../../../trail.json"))
spins={'Sc':1, 'Ti':2, 'V':3, 'Cr':6, 'Mn':5, 'Fe':4, 'Cu':1}
nd={'Sc':(1,0... | [
"bastien.mussard@colorado.edu"
] | bastien.mussard@colorado.edu |
39b1899c62b519397f4996966f3bd887223073db | 9641aa545391761533aaf67959a088240d32d873 | /image-classification/personalities/testPersonalities.py | 4677edc19bb322fa10553d53d9d753c36053a667 | [] | no_license | akshay-kamloo/Predictive-Analysis-in-Indian-Healthcare-Retinopathy | ea522053cda86939cd964f4c00c3c03bdb0a1a1c | 177ddf69f03751e84071fa2efab9a604c5a3cb0e | refs/heads/master | 2020-04-01T11:37:15.820271 | 2020-01-11T18:16:15 | 2020-01-11T18:16:15 | 153,169,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | from sparkdl import readImages
from pyspark.sql.functions import lit
from pyspark.ml.classification import LogisticRegression
from pyspark.ml import Pipeline
from sparkdl import DeepImageFeaturizer
import org.apache.spark.sql
import org.apache.spark.sql._
img_dir = "/home/mvk/images_classification-master/personalitie... | [
"noreply@github.com"
] | akshay-kamloo.noreply@github.com |
418d221217f93d833a5be72fb393a36c2a10e7d9 | a250b4d880d4a9c2898bf8b2732171c58b78dcf3 | /01_Jump_to_Python/Chapt04/169_ex2.py | e59f7406df148dd54bfca8a6dabb1230c80af0dc | [] | no_license | psh89224/Bigdata | b399e8c253fddf96ffcc0be6b470beefdd592974 | 543b11a019ae905fd7452d47d5004aa5829b22ae | refs/heads/master | 2020-03-15T09:27:23.972490 | 2018-11-08T00:52:55 | 2018-11-08T00:52:55 | 132,075,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | f=open("sample.txt", 'r')
lines = f.read()
print(lines)
f.close()
total = 0
for line in lines:
score =
total +=
average = total/10
print(average)
f = open("result.txt", 'w')
f.write(average)
f.close()
| [
"USER@teset.com"
] | USER@teset.com |
20ec09e78d343668973d121c889e2e3673710b9a | 22c552e93ee31da3e98f66f68eb7f099ba38f3ca | /day_18_1.py | c546fee5f5112f54ee0efd56aca710b796db2d3f | [] | no_license | rishikesh-madabhushi/AdventOfCode | 9e3b6c828c7d8a8b462d25ed65671746d536919d | 4a31d46d4f149f771facc5176f79544052cace1d | refs/heads/main | 2023-02-05T00:42:29.434509 | 2020-12-25T14:51:02 | 2020-12-25T14:51:02 | 317,571,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | import re
f = open("day_18.txt")
#f = open("test.txt")
def expr(a, op, b):
if op == '+':
return a + b
elif op == '-':
return a - b
elif op == '*':
return a * b
else:
return a / b
def evaluate(terms, idx):
value = 0
new_idx = idx + 1
if terms[idx].isnumeric(... | [
"rishikesh.ice@gmail.com"
] | rishikesh.ice@gmail.com |
48ce8fdc65cfefe7d1d3168389758bf06cd3fa4d | 7dd1a817022df97f78e98be873c81dd90d861c85 | /US32_test.py | 65c3c7b1a7cf709e5daaee1942eee05c081a1645 | [] | no_license | DaiJiChen/Gencom-file-diagnose | c8bd1f946bcfbcbe77ff6e2c6e3c632a5717ccaa | a7253b72722ab5e17ea06b6c8a2481c041a29242 | refs/heads/master | 2023-01-01T14:27:18.665900 | 2020-10-25T03:16:09 | 2020-10-25T03:16:09 | 210,180,800 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | """
@author: ziming
"""
import unittest
import Parser
import validate
class Testing(unittest.TestCase):
# A successful case
def test1(self):
gc = Parser.Gedcom("gedcomfile.ged")
self.assertEqual(gc.displayOutput("print US32"),1)
# A failure case
def test2(se... | [
"noreply@github.com"
] | DaiJiChen.noreply@github.com |
e0149e86a8d13396f8f06d0ab0b5b292bef2779c | ebd344b81dea258d8ef98c92376356a823ac2ffc | /python/det_response.py | bb8a4e3c9a5ded653595f9e5fc1530aeb5bd61ec | [] | no_license | clark2668/icetradio | 208691500a43e80ba94373bffea84ca409c9df0e | 39e476794ae7466d158ecfbdb3d8530857e114cb | refs/heads/master | 2023-01-31T21:11:41.804621 | 2020-12-16T23:47:01 | 2020-12-16T23:47:01 | 277,856,058 | 0 | 0 | null | 2020-10-28T17:20:47 | 2020-07-07T15:36:32 | Python | UTF-8 | Python | false | false | 6,782 | py | # python includes
import numpy as np
import os
from scipy.interpolate import interp1d
from icecube import icetray, dataclasses, icetradio
from icecube.dataclasses import I3Particle
from icecube.icetradio import util_geo, util_dataclasses
from NuRadioMC.SignalGen import askaryan
from NuRadioReco.utilities import units... | [
"baclark@msu.edu"
] | baclark@msu.edu |
69bbe8fd1d442b7dff97819078e37bd83f805deb | df13b3eef82df0fbf19298595848826dd824ab6e | /csdn_scrapy/main.py | 9cc779a9ccbbc83dfe96048a8cb2584d13a2ba56 | [] | no_license | bbbwang/csdn_scrapy | 1714af43023e9a17a4d1be50d9efcacc64cc056f | a4bbc2a63fa641c93dc1ec75a8742d9eb6987fc0 | refs/heads/master | 2020-07-24T20:14:53.346322 | 2019-09-20T01:31:58 | 2019-09-20T01:31:58 | 208,036,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from scrapy import cmdline
import time
#在编译器中执行命令
cmdline.execute('scrapy crawl csdn.com'.split())
# import os
# while 1:
# os.system("scrapy crawl csdn.com")
# time.sleep(3600) # 休眠2分钟
| [
"amettursun@ebay.com"
] | amettursun@ebay.com |
a382c54444b6d892d8c4f5f2a50f6ab3e9bf21da | b37c027a3f63305345f266e8f4f944721adbb956 | /TESTING/CorrelationEstimator/testing_ce.py | 489b9b1be556497d1460eb397af904fdbc8bde02 | [] | no_license | andrehoracio97/investigacao | fdfb663867e6fe9f240bb828b7b96b99323f8be3 | 5dd1fad12f4991bb737ed236426247dfb52333eb | refs/heads/master | 2022-10-11T02:08:30.478893 | 2020-06-16T09:58:13 | 2020-06-16T09:58:13 | 193,519,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,605 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: Testing Ce
# GNU Radio version: 3.7.13.5
##################################################
if __name__ == '__main__':
import ctypes
import sys
if sys.platform.startswith... | [
"andresilvamail@gmail.com"
] | andresilvamail@gmail.com |
c33b3d02d04a7bac703bf073187bcc1ba14afbf0 | 60bc7f0f94ee1e79be14005b1fef33e3e2fb5ee5 | /build/catkin_generated/generate_cached_setup.py | 93a6b9945f90528516f27a8c15d81aa1167bf4d2 | [] | no_license | kohtaro246/adp | bb0c93bf4176ce00090f3a1a5097a2ff028fe0f5 | 7f84efa694f5e39db2b481298be6e2a6ff679b02 | refs/heads/master | 2023-01-31T11:12:30.101732 | 2020-12-17T10:07:53 | 2020-12-17T10:07:53 | 321,580,127 | 0 | 1 | null | 2020-12-17T10:07:54 | 2020-12-15T06:57:19 | Makefile | UTF-8 | Python | false | false | 1,254 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"kohtaro246@gmail.com"
] | kohtaro246@gmail.com |
a507d6f697a47fe68ceec087548744c10e06ba94 | 097c76a4ba7e0247cf10739f61bc8e620cdb7af9 | /HW_4/7.py | 7ed26441e82f8eaa81fbe3a71c47e436d632209a | [] | no_license | mihirsamdarshi/CMSI185Repo | ca07fc8940893c61376a9934817f457fe8f38205 | a370778027cb716d432bb095f4d9381c50bdcbdb | refs/heads/master | 2020-12-02T10:30:58.710306 | 2016-12-13T23:43:55 | 2016-12-13T23:43:55 | 67,733,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | speed = float(input('Enter a rotation speed: '))
if ((2 * (speed**2))/ 3) > 60:
print('Rope will snap')
else:
print('Rope will not snap')
| [
"mihirsamdarshi@yahoo.com"
] | mihirsamdarshi@yahoo.com |
94ae81be542e5eb6598216269feb217867c98289 | 66ad6bd8e1743ff1bce5b0f6860041de0ba5d91e | /functions_clerigo.py | 5ad15aff62b19edfbecaf7f209a3d5535b1d0188 | [] | no_license | MarkClerigo/fcpc_python_projects | d6ff9d1a8188596f72e31d92273bb0273a7665b6 | 2236484a62adb78eed65b667a426252ef905516a | refs/heads/master | 2020-04-08T09:56:55.917797 | 2019-03-12T01:50:51 | 2019-03-12T01:50:51 | 159,246,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | #Create Function
#Default Value
def xyz(a=10,b=20,c=30):
print(a+b+c)
xyz()
#Explicit Assignment of parameters
def asd(a,b,c):
print(a+b+c)
asd(5,15,20)
| [
"noreply@github.com"
] | MarkClerigo.noreply@github.com |
e6fcacc37f9c61488f4594ec494cc707bb731492 | 43a281752d9e1c18713aa069b218d7dab9fff92a | /run/move-pseudo.py | 2bbd76282385a108ad0f0711baa34c038ee82e08 | [
"MIT"
] | permissive | osmanbaskaya/mapping-impact | 9d0a5098bdcf0fcad4d7a53c1c3c1e15281bd423 | 8024dd3b916ac2dfc336221dd32faba4c0a98442 | refs/heads/master | 2020-05-18T02:29:47.486594 | 2016-02-18T21:33:34 | 2016-02-18T21:33:34 | 12,935,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Osman Baskaya"
import os, shutil
out = '../data/pos-filtering/'
missing = open('dropbox-missing.txt').readlines()
files = os.listdir(out)
total = 0
for f in files:
fn = f.rsplit('.', 2)[0]
for m in missing:
m = m.strip()
if m == fn:
... | [
"obaskaya@ku.edu.tr"
] | obaskaya@ku.edu.tr |
365076fc80033c34b7408188d707ce611220bfc4 | 12d7a543a4013bfbeae29de2b5470dba8402236f | /3 제약충족 문제/csp.py | 6e441471337df1b38fd97c6d1e8b5eef142e12a7 | [] | no_license | painh/classicpythonalgorithm | a23c188654174cfb326932f23852877df687a555 | 933dcd7bf55589a28882592dc7a551210bb0e8dc | refs/heads/master | 2022-12-18T20:48:58.986235 | 2020-09-16T14:53:58 | 2020-09-16T14:53:58 | 293,810,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | from typing import Generic, TypeVar, Dict, List, Optional
from abc import ABC, abstractmethod
V = TypeVar('V') # 변수 타입
D = TypeVar('D') # 도멩니 타입
class Constraint(Generic[V, D], ABC):
def __init__(self, variables: List[V]) -> None:
self.variables = variables
@abstractmethod
def sati... | [
"gthpgth@gmail.com"
] | gthpgth@gmail.com |
cf7687d3fabcd7f8948426fb39baf0835acabec6 | c7846ee0828539c2a2019928c1cbf3abd35665bf | /2117_홈 방범 서비스.py | f9dffdb1022e9bb1bbf469a49a04df36144470e6 | [] | no_license | whiteblue0/sw_problems | 10476601c8d6d68d42e2f30af87fcde1e5dbbcc5 | 1cefc6236cccc20477bf4eadb458a0fd06b09126 | refs/heads/master | 2020-06-20T10:44:57.463275 | 2020-05-03T07:27:57 | 2020-05-03T07:27:57 | 197,098,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | import sys
sys.stdin = open("2117.txt")
from collections import deque
# 우,하,상,좌
dx = [1,0,0,-1]
dy = [0,1,-1,0]
def isbenefit(house,cost):
return bool((house*M - cost)>=0)
def ispass(y,x):
return 0<=x<N and 0<=y<N and not visited[y][x]
def bfs(sy,sx,K):
global result
house = 0
que = deque()
... | [
"ghn03153@gmail.com"
] | ghn03153@gmail.com |
4f77bcb3f264e2e7bc0b5737d7497ffa7ecbe21b | ccd0843ef54fa8679bb57abc61b39e8bb2fa04af | /elecciones/eleccion/models.py | d9eca84f2e1d983f14403a8a52be93c57ed4e0a4 | [] | no_license | i32enrea/PW | a770f9aefa535e62290546ba54acd1097f325dc3 | 00aa9ef0122759d296063a717d073bb4c4b35ea1 | refs/heads/master | 2021-01-22T16:13:40.685336 | 2017-09-04T19:03:23 | 2017-09-04T19:03:23 | 102,391,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py |
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class partidos(models.Model):
nombre = models.CharField(max_length = 100)
def __unicode__(self):
return self.nombre
class mesa(models.Model):
nombre = models.CharField(max_length = 100)
partidos = models.ManyToMa... | [
"noreply@github.com"
] | i32enrea.noreply@github.com |
f519dfba6b3570aa5fb76916bf826540617da5bc | 742b733a72d51d545f8f78ef027b594a872fad2b | /ml/ft_tools.py | 9571e2aa50eaa1d97aae86e8ab61b25e608fa6d0 | [
"MIT"
] | permissive | rongyua/QAJudge | 9ef4ef1d1080972f34267e663b4ed0da672e40b9 | 393d8cafac090c1161157d25080c6b73713676a9 | refs/heads/master | 2023-08-10T14:34:27.364093 | 2020-04-11T10:24:06 | 2020-04-11T10:24:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | possible_set = [
(196, 0),
(348, 0),
# (133, 1),
(264, 0),
(133, 0),
(354, 0),
(234, 0),
(266, 0),
(274, 0),
(347, 0),
(267, 0),
(263, 0),
(238, 0),
(275, 0),
(345, 0),
(312, 0),
# (134, 0),
(224, 0),
(141, 0),
(128, 0),
(303, 0),
#... | [
"wangyz17@tsinghua.org.cn"
] | wangyz17@tsinghua.org.cn |
f18a7797acace22a421ead142f9757dccadc59cb | 0f16edb46a48f9b5a125abb56fc0545ede1d65aa | /utilities/src/d1_util/cert_create_ca.py | 5bd75a9a50d2557873a14e63de246905aa5cae15 | [
"Apache-2.0"
] | permissive | DataONEorg/d1_python | 5e685f1af0c356190f2d6df45d1ac849e2f56972 | d72a9461894d9be7d71178fb7310101b8ef9066a | refs/heads/master | 2023-08-29T03:16:38.131760 | 2023-06-27T21:59:37 | 2023-06-27T21:59:37 | 60,103,877 | 15 | 12 | Apache-2.0 | 2023-09-06T18:27:53 | 2016-05-31T16:01:00 | Python | UTF-8 | Python | false | false | 2,790 | py | #!/usr/bin/env python
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2017 DataONE
#
# Licensed under the Apache License, Version 2.0 (t... | [
"git@dahlsys.com"
] | git@dahlsys.com |
9793b580cb50d08f82da0188eb8812aad0659086 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02850/s368986446.py | f1b857d567b3088a886070f3484aa90d7fee1e94 | [] | 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 | 768 | py | import collections
n = int(input())
graph = [tuple(map(int, input().split())) for _ in range(n - 1)]
tree = [[] for _ in range(n)]
deg = [0] * n
color = {}
for a, b in graph:
a, b = min(a - 1, b - 1), max(a - 1, b - 1)
deg[a] += 1
deg[b] += 1
tree[a].append(b)
tree[b].append(a)
color[(a, b)] = ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
14bf2a0b021e5c07f08fe12e443059dd2e1061c3 | 418d25dd2ffbec0a9f159753ac3ed4ead1a874bb | /Se6 Ta1 Q2.py | 430cb3dc4a52538523d6a7cea2cfa5a1701cb298 | [] | no_license | ivens-da-silva-brito/S-6 | 7fba794724051af306a38b5eef10206b9e219532 | 1cf14ea09353b7cee6be56499e602fb84984bd97 | refs/heads/master | 2022-12-24T08:44:31.850575 | 2020-09-28T07:46:46 | 2020-09-28T07:46:46 | 299,229,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | cont= 0
total = 0
while True:
numero = int(input())
cont += 1
total += numero
if numero ==0:
cont-=1
break
if cont ==0:
print("nao houv numero valido")
else:
print(total/cont)
| [
"noreply@github.com"
] | ivens-da-silva-brito.noreply@github.com |
942f213b2565a626678cf125cb3bc61b7f42ee89 | 630e5afcde3ff732eaa27791e78dcd854abd7fdd | /dictionaries/favourite_languages.py | 494397e917bc0de77f05d4806f10bc94fa362371 | [] | no_license | beanie29/pythonstudy | 9bf0bfe0f5504e202f1777d6b6bb3c3d6a11edd1 | 490ae6ea26af99823f6e5a8432c5fa462e9c4016 | refs/heads/master | 2020-08-11T20:43:55.918852 | 2019-11-05T22:09:23 | 2019-11-05T22:09:23 | 214,624,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | favourite_languages = {
'jen': ['python', 'ruby'],
'sarah': ['c'],
'edward': ['ruby', 'go'],
'phil': ['python', 'haskell'],
}
for name, languages in favourite_languages.items():
if len(languages) == 1:
verb = 'is'
else:
verb = 'are'
print(f"\n{name.title()}'s favourite langu... | [
"ISSUMCH@ad.wbs.ac.uk"
] | ISSUMCH@ad.wbs.ac.uk |
5e448cecca1e048433816f17a2ddebcb7702f039 | 2d2c10ffa7aa5ee35393371e7f8c13b4fab94446 | /projects/ai/ad/src/model.py | 65b0001051c970db25690816cd3ea14e11041b24 | [] | no_license | faker2081/pikachu2 | bec83750a5ff3c7b5a26662000517df0f608c1c1 | 4f06d47c7bf79eb4e5a22648e088b3296dad3b2d | refs/heads/main | 2023-09-02T00:28:41.723277 | 2021-11-17T11:15:44 | 2021-11-17T11:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,144 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file model.py
# \author chenghuige
# \date 2020-04-12 20:13:51.596792
# \Description
# =================================================================... | [
"chenghuige@gmail.com"
] | chenghuige@gmail.com |
0e61d28fb4685fae1e844483f6497e113ca42ae9 | 34aa10ad60869c515fb9c75488e3033244f9f524 | /stack/150.py | a823cca50ced0d8eb9105b724fbb7c59c9c3a217 | [] | no_license | superMC5657/leetcode-py | 558a98a4f995a545b42abe044ce23fd8d55d4b2b | 0bbad7154f9f936eca42a34d7772ffdc3c94e6b2 | refs/heads/master | 2023-06-24T09:35:12.655302 | 2021-07-26T15:47:25 | 2021-07-26T15:47:25 | 270,066,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,902 | py | # -*- coding: utf-8 -*-
# !@time: 2021-03-21 14:45:45
# !@author: superMC @email: 18758266469@163.com
# !@question title: evaluate-reverse-polish-notation
# 根据 逆波兰表示法,求表达式的值。
#
# 有效的算符包括 +、-、*、/ 。每个运算对象可以是整数,也可以是另一个逆波兰表达式。
#
#
#
# 说明:
#
#
# 整数除法只保留整数部分。
# 给定逆波兰表达式总是有效的。换句话说,表达式总会得出有效数值且不存在除数为 0 的情况。
#... | [
"18758266469.com"
] | 18758266469.com |
7dca8524710f9522b297b367c4aacaea5aba1716 | f42598c5be4408ebec48828923869cb003677ebd | /integer_data_type.py | fd34b80747002537d6c41f2be95820e9c2e54aac | [] | no_license | pravinmaske/Udemy_Python | e117a5f024390eaa01061018878903bcff9f435d | 0468218e9035f86b09f7ae25493fd5e5c40f91c2 | refs/heads/master | 2020-06-01T07:30:18.976375 | 2019-06-09T16:54:30 | 2019-06-09T16:54:30 | 190,700,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | import time
import sys
def calc(a):
for i in range(10000000):
2*a
#pass
start=time.perf_counter()
calc(2**100000)
end=time.perf_counter()
print('Time taken for calculation of 2**100000:',end-start)
| [
"pravinmaske963@gmail.com"
] | pravinmaske963@gmail.com |
0df2986ecc8f394823d4929862f8056415531cb8 | 72bbbd03004d690ae654cffa36d291a1d769ca23 | /icelandic_vocab.py | df61533e1789f2fcc1eb2e4f34a2de03e682a3fd | [] | no_license | treecasiano/vocabulary_game | e90a1b0926b4b83f1997747effd26a01157b596c | 720d02d1e08db2c40a0332bb85218a0435878b9f | refs/heads/master | 2020-04-06T03:53:30.957596 | 2015-10-29T17:28:09 | 2015-10-29T17:28:09 | 37,989,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | #!/usr/bin/env python
# coding: utf-8
colors = {
'black' : 'svartur',
'blue' : 'blár',
'brown' : 'brúnn',
'green' : 'grænn',
'gray' : 'grár',
'orange' : 'appelsínugulur',
'pink' : 'bleikur',
'purple' : 'fjólublár',
'red' : 'rauður',
'white' : 'hvítur',
'yellow' : 'gulur'
}
... | [
"tree.pdx@gmail.com"
] | tree.pdx@gmail.com |
026efd17fcede4475441a166270eec3c8db8b725 | c17942b9b9db4081a9b4bc75b44cdf48a926cc94 | /EV3PiBaseCode_spg9.py | 4c8c4926a45ea8016493ab8c476c53bbb34d59dd | [] | no_license | sgordon291us/lego-ev3 | fb456401c55211368bdedb731c88eba896cd5073 | 468b7b8c7a8b2075977d58fb66da126a591049f8 | refs/heads/master | 2020-06-13T17:20:32.707813 | 2020-04-17T13:55:44 | 2020-04-17T13:55:44 | 194,729,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,353 | py | #! /usr/bin/env python
# import packages
import serial
import time
import datetime
import struct
import os
def printSerIntInfo(ser):
#print('End Device Name {} Port = {} Baud Rate = {} IsOpen = {}\n XonXoff = {}'.format(ser.name,
# ser.port, ser.baudrate, ser.isOpen(), ser.xonxoff))
print(ser.get_s... | [
"noreply@github.com"
] | sgordon291us.noreply@github.com |
2a2d22adbea54a98abb0bf3c680dc0b0436b242b | 6fde9e27c643a7cef26c416b6d7f383c9ce219ce | /NmapScanner.py | 46186c642759b834827e09cf9efd9c8980617aae | [] | no_license | mtuong/Violent-Python-Examples | b5d8ccded6f9b6215e4c0450f163bbd4929b1170 | debd0b49601ad0551d7f241cad7fe3ca3c58c1dd | refs/heads/master | 2020-09-21T23:03:30.824234 | 2019-12-03T11:36:58 | 2019-12-03T11:36:58 | 224,965,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | # -*- coding: utf-8 -*-
import pprint
import sys
import Utils
import BaseModule
import nmap
import Decorators
@Decorators.ModuleDocstringParser
class NmapScanner(BaseModule.BaseModule):
"""
Scan network with nmap and emit result as new event.
Configuration template:
- NmapScanner:
network: ... | [
"noreply@github.com"
] | mtuong.noreply@github.com |
7c33f774adf67e016e517a5dd40cc2a9543dbbe2 | 50ca8c4d75877249fbaed6509190906042d88a6a | /tests/test_users.py | e32344cf2ae337560082d46d6957adc64a85ef8c | [] | no_license | JuanSBrinez/web_page | 233bbce3f12dc70da81f4dd2e48e9a8f2b54881e | e103aac6e901e42cdf4f276a20d84426f54fbad3 | refs/heads/master | 2023-06-06T20:22:55.165611 | 2021-07-14T16:41:24 | 2021-07-14T16:41:24 | 385,319,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import unittest, sys, os
sys.path.append('../web_page')
from file1 import app, db
class UsersTests(unittest.TestCase):
# executed prior to each test
def setUp(self):
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
self.app = app.test_client()
db.drop_all()
db.creat... | [
"juan.brinez@loras.edu"
] | juan.brinez@loras.edu |
dd8065df1ad12df2142dc978ab09e183b5830273 | 451ea083d1dce106ffb3ab7c78e8fa3abe61a725 | /Day 18/getComments.py | 40deb034de3bab1c4f1bcd015b0ebde5dac86620 | [] | no_license | S4ND1X/365-Days-Of-Code | 52dd6a8b9d0f5c3c27b23da8914725e141d06596 | 257186d2a4d7c28a3063add55d6b72d20fccb111 | refs/heads/master | 2022-04-19T22:55:08.426317 | 2020-03-02T23:35:28 | 2020-03-02T23:35:28 | 164,487,731 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | from tweepy import OAuthHandler
from tweepy import API
from tweepy import Cursor
from datetime import datetime, date, time, timedelta
from collections import Counter
import sys
import tweepy
consumer_key = 'UP4MwbLKrDclqSC3EpkRph6Pd'
consumer_secret = '1YokukdNJCi3VAM7qIOzSrBjOg06Lpjx2W3ehEjfrPeEQKW5Kj'
access_token =... | [
"42609763+S4ND1X@users.noreply.github.com"
] | 42609763+S4ND1X@users.noreply.github.com |
30bf1a0ab518d9f9d117ac6f9a4d392a86adf78b | e558c698295e839fdc092279d056081b97fbd2a3 | /cgi-bin/sudokuu.py | c2566c5ffd71f076820dd9f364e080c2613eb75a | [] | no_license | sudokuu/sudokuu.github.io | 94bf92916b785e9fe525175003339eff99610c66 | 6732f349882915d3b32af36e72734e0b1dec05c7 | refs/heads/master | 2020-04-14T19:48:39.258820 | 2019-07-30T22:19:01 | 2019-07-30T22:19:01 | 68,010,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,034 | py | #!/usr/bin/python
import cgi
import random
jogoFacil = ["460500019\n827600045\n000020060\n000207081\n006000400\n510304000\n080050000\n730001652\n640002078",
"460500019\n827600045\n000020060\n000207081\n006000400\n510304000\n080050000\n730001652\n640002078",
"460500019\n827600045\n000020060\n000207081\n0060004... | [
"felipehendrix@programmer.net"
] | felipehendrix@programmer.net |
e266848221e4a52337e265a2244057b35982fe8d | 948b4d6deee2a5c093f7f5b1daab00936a30f1b9 | /kali_rootfs/usr/share/sqlmap/lib/request/basicauthhandler.py | 89ec252bd7badfa2fbb9c882ebad3cc798743b51 | [] | no_license | goutham414/kali-n900 | 0bc476b67ae59ed2f1e25055759cefd38ab72a20 | 1ab8310a5a5e22b35535fe85ad16bd3dd8286d85 | refs/heads/master | 2021-01-10T10:51:51.308505 | 2016-03-21T20:08:39 | 2016-03-21T20:08:39 | 54,414,038 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import urllib2
class SmartHTTPBasicAuthHandler(urllib2.HTTPBasicAuthHandler):
"""
Reference: http://selenic.com/hg/rev/6c51a5056020
Fix for a: http://bugs.python.... | [
"rapol.goutham@gmail.com"
] | rapol.goutham@gmail.com |
03c78e9dee6e157c437e2c34c55b632c02c1ee94 | c264ad6205c0b47038f9f67ce52eabd816ddd911 | /prime.py | 88c7cf50a84af286b58cb50fa7c24746682251b0 | [] | no_license | kedharavarshini/python-lab | 3dda522062ef077047f79158263142502d2790a1 | 1ebe6b70a3ba49a3b6902005ef6cab18712094f9 | refs/heads/master | 2020-07-22T17:37:10.159215 | 2019-09-24T14:59:00 | 2019-09-24T14:59:00 | 207,277,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | a=int(input("enter a number"))
for b in range(2,a):
if a%b==0:
break
if b<a:
print(a,"is prime")
else:
print(a,"is not prime")
| [
"noreply@github.com"
] | kedharavarshini.noreply@github.com |
6bf6c8e3a697fc2008290a64bb2cf9844aac8da2 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/python/training/checkpointable/layer_utils.py | 978fcb2252cd4481b8286bdf3afd58b30ce6d665 | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 3,443 | py | # Copyright 2018 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 applica... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
0b524586ad4cd81467f9beee07e15fe46647848a | c2ccf0fb3b09c0d2e73001133f12d1814bea1e73 | /main.py | c8865eabd212549793cfd1c93964fc6f0f048c41 | [] | no_license | nguyenkhoa0721/Smart-Glass-for-blind-people | 484fb3dd19114625630e2b0632dd49b37ded3781 | 5313eff98f962ad7417b4f940d63138b54184583 | refs/heads/master | 2020-04-15T10:07:09.757270 | 2019-09-04T03:12:28 | 2019-09-04T03:12:28 | 164,581,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,894 | py | import cv2
import sys
import numpy as np
import os
import json
import time
import threading
import socket
import threading
from http.server import BaseHTTPRequestHandler,HTTPServer
from urllib.parse import parse_qs
import cgi
import base64
import io
from imageio import imread
import matplotlib.pyplot as... | [
"nguyenkhoa0721@gmail.com"
] | nguyenkhoa0721@gmail.com |
b7dae662e90b2f8d8d47e0d5359d53700b75972b | 5679bb51d6fcc6e94e9206b89ce395c988fd202b | /venv/Lib/site-packages/elasticsearch/client/sql.py | 64a606a2ecb15aaa59997adf782070b02467bf07 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | antwan1/NewHowler | 762e5af9b646ef96133421cb1c9e84c16d5f0cc1 | 3a35fb23552ab9829bc22ea63b49b988844447f0 | refs/heads/master | 2023-09-05T08:02:48.770494 | 2021-10-28T19:47:56 | 2021-10-28T19:47:56 | 410,207,003 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,096 | py | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use ... | [
"antoniore385@gmail.com"
] | antoniore385@gmail.com |
180167ac82995f96fa27d0545933b09287fcddad | 7308fe5be2eaba4e29d605d271cd9c2394e62b4a | /user/post_user.py | 02a130d7982ac3fb7a208f9d240b2d149071fd12 | [] | no_license | santipm29/crud-aws-with-microservices | d8aeac25aea58c2aa2b17d2d8b43e9032eba41aa | 17e1a984c23ef5196a612006be2d6d1c1f9a47c1 | refs/heads/master | 2020-04-30T02:27:04.470739 | 2019-05-25T18:52:05 | 2019-05-25T18:52:05 | 176,560,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | import json, uuid, boto3
from user import mongo
from jsonschema import Draft4Validator
def load_file(name):
with open(name) as f:
return json.load(f)
def type(name):
types = {'string' : 'caracter', 'number' : 'numérico', 'object': 'objeto'}
if name in types:
return types[name]
... | [
"santipmartinez@outlook.com"
] | santipmartinez@outlook.com |
74e141ff66846d12eeef4c856495c754a20fdb24 | 0b23a9f762b715954308315a570bc490b1f1aec3 | /final_task/tests/test_function.py | 2e627cd48cfeaa5bd73a8d7f81ef63659a236245 | [] | no_license | zaja1kun/test-travis | 3ac58228c5d805c734ee02a3e1057e0098287e0d | 0d7f74b55826c63b951b86be5ba533230b1db224 | refs/heads/master | 2020-04-04T03:28:03.281807 | 2018-11-01T13:14:27 | 2018-11-01T13:14:27 | 155,714,082 | 0 | 0 | null | 2018-11-01T12:48:53 | 2018-11-01T12:48:52 | null | UTF-8 | Python | false | false | 467 | py | from unittest import TestCase
from pycalc.function import Function
class TestFunction(TestCase):
def test_function_object(self):
value = 'abs'
index = 1
function = abs
test_function = Function(value, index, function)
self.assertEqual(test_function.type, 'function')
... | [
"Aliaksei_Buziuma@epam.com"
] | Aliaksei_Buziuma@epam.com |
5e28b7c0e151fbb86907c2fea78b753d66622874 | 71c698d290ec03eda7afdd90da2623e162f59ece | /Tipe data statis/latihan02.py | 3c6059b3f4cf5b883fb24189996f56a6c993b097 | [] | no_license | 4lasR0ban/Belajar-Python | 2976ddb215d389c906dd0bf9f8b539baa05563a4 | 88227c2ccd0f39c79f00f3cf23ea7a4cf9953d30 | refs/heads/main | 2023-03-04T02:15:35.657434 | 2021-02-15T15:12:06 | 2021-02-15T15:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | # latihan projek python 4
n = 32892700
# pecahan 100k
p100k = n / 100000
print('Pecahan 100k ada ', int(p100k), 'buah')
# pecahan 50k
p50k = n / 50000
print('Pecahan 50k ada ', int(p50k), 'buah')
# pecahan 10k
p10k = n /10000
print('Pecahan 10k ada ', int(p10k), 'buah')
# pecahan 5k
p5k = n / 5000
print('Pecahan 5k ... | [
"71622469+verowardana@users.noreply.github.com"
] | 71622469+verowardana@users.noreply.github.com |
e442cc61a53ee7f1a668f6b23a79fc8eb9cc2334 | ab5cdf8f2de94c327e4679da84f941b1f3c04db4 | /kubernetes/test/test_v1_env_var.py | c37c80243ab9137299a6ad478388d2c3a96601b2 | [
"Apache-2.0"
] | permissive | diannaowa/client-python | a4a92a125178db26004eaef5062f9b1b581b49a8 | 5e268fb0b6f21a535a14a7f968b84ed4486f6774 | refs/heads/master | 2020-12-02T22:06:03.687696 | 2017-06-30T21:42:50 | 2017-06-30T21:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
d6da47881922063e4c5338620c14e5242cb1eea2 | 3c113092c1e22c09299ab995300bf7a22bd24fd6 | /pycorrector/macbert/base_model.py | 5ffffc2ad547b6fc6a2e257622844f3de7a9b0c6 | [
"Apache-2.0",
"Python-2.0"
] | permissive | luozhouyang/pycorrector | 2dbfdd105418b07e613789b45cd8f1c3183a13b6 | 61bc8c1253bfe0784a825d9042c9be7f057a9bff | refs/heads/master | 2023-06-04T17:47:52.140410 | 2022-01-06T09:14:29 | 2022-01-06T09:14:29 | 447,160,173 | 1 | 0 | Apache-2.0 | 2022-01-12T09:47:28 | 2022-01-12T09:47:27 | null | UTF-8 | Python | false | false | 7,265 | py | # -*- coding: utf-8 -*-
"""
@author:XuMing(xuming624@qq.com), Abtion(abtion@outlook.com)
@description:
"""
import operator
from abc import ABC
import torch
import torch.nn as nn
import numpy as np
import pytorch_lightning as pl
from pycorrector.macbert import lr_scheduler
from pycorrector.macbert.evaluate_util import... | [
"shibing624@126.com"
] | shibing624@126.com |
4c7477b8e280f006655ed89ab39128331bbb0f93 | 47d504eba70ce8fcf0d71fb2e3c5895c55897bcf | /usuario/validators.py | de77aaabf171fcb84a2a23b1fd59edd38cf0bc11 | [] | no_license | mzKaNgPae/PruebaDesarrollo3FINAL | aed4d51da6e042f02e0b041d13abae7dbd2c55b4 | c58f200b6b8483d6000406cbd7ad18b021dc1353 | refs/heads/main | 2023-02-03T20:45:42.765639 | 2020-12-18T16:11:37 | 2020-12-18T16:11:37 | 322,665,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | def rut_valido(rut, dv):
rut = rut.replace('.', '')[::-1] # Revierte el rut
acc = 0 # Suma total del calculo
mul = 2 # Multiplicador del digito del rut
for dig in rut:
if mul > 7:
mul = 2
acc += int(dig) * mul
mul += 1
dv_esperado = 11 - acc%11
if dv_esperado ... | [
"diegoquezadapavez@gmail.com"
] | diegoquezadapavez@gmail.com |
70c6e2b5c6ccc12bbcd613077a33a8b1dc08bf53 | f99b5a9c2403f6b285f4d92bb098c6f83a4b5eb5 | /TensorFlow/tf-1/tf1_3_反向传播.py | c724582c2855a95447c5f1f43147439755c9cdfe | [] | no_license | kanbaochun/Python | a094e62096b697cea237d7828668cfd16e9d99db | f0328909020532f4ec41c82e58781995895f82f6 | refs/heads/master | 2021-07-08T19:46:27.163932 | 2019-03-12T15:09:19 | 2019-03-12T15:09:19 | 146,909,748 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | #coding:utf-8
#反向传播(两层神经网络)
import tensorflow as tf
import numpy as np
import os
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2"
#定义常数
BATCH_SIZE = 8
seed = 23455
#生成虚拟数据集
rng = np.random.RandomState(seed)
X = rng.rand(32, 2)
Y = [[int(x1 + x2 < 1)] for (x1, x2) in X]
#定义输入和输出参数
x = tf.placeholder(tf.float32, shape=(None,... | [
"42867170+kanbaochun@users.noreply.github.com"
] | 42867170+kanbaochun@users.noreply.github.com |
131e3467c463b97b5c694031145d1d6cf9c290a0 | 68f0e36ec24af35c91ca30edbe88fedc82aaba65 | /premier.py | 83f76435500cd1e036b7319fb3500bfdbe950dc6 | [] | no_license | iamds/hotels | 454b30a3c0068997a5e33eb0f7c86ec2afdf8efb | b839bd79f884df65566baa7b955b9caadda1b9f0 | refs/heads/main | 2023-06-02T15:57:10.902903 | 2021-06-24T10:33:12 | 2021-06-24T10:33:12 | 346,646,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import requests
import json
import string
def search_name(name):
response = requests.get("https://pro-premier-inn.emergyalabs.com/v1/autocomplete?input=/" + name + "&gplaces%5Bcomponents%5D=country:uk")
a = json.loads(response.text)
return [x for x in a["properties"] if x["brand"] == "PI"]
prem... | [
"dan@schiff.dev"
] | dan@schiff.dev |
328b5571d77ee4bb5f0d7536ebd4b8f885f1f31b | 23736cfcaefcc0a5cf6882bb235e681730ba781d | /louqa/qa/views.py | 47baa3fd7743afc3cdf8fea5e39497a921554a93 | [] | no_license | glorygithub/shiyanlou | 26d0c52cb266c725eacc589d2b798641cd6a198c | 1890aa51ce90e68044d5426b3b026c7cf2ad7203 | refs/heads/master | 2020-06-05T07:20:03.224211 | 2015-07-18T18:06:02 | 2015-07-18T18:06:02 | 39,292,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #! /usr/bin/env python
# encoding: utf-8
from flask import Blueprint, render_template
qa = Blueprint('qa',__name__,url_prefix='')
@qa.route('/<title>')
@qa.route('/',defaults={'title':None})
def index(title):
return render_template("qa/index.html",title=title,tem_str="world")
| [
"xxx"
] | xxx |
2a8aa79f7406ee6bf9e5720bd0ebc4bc06c20565 | b8847590ffed3fd521b005cfbb473a33e993a243 | /InterFace_Test_Demo/interface/userAPI.py | c0f3dde567425cced006ebe733f34e90d3737701 | [] | no_license | YellowStarr/gitdir | 6e229bbc035bbd3de179a0f64ed7570b489cc382 | 5252b80148dfc4c5c519c9c8beb5c297d62d2a93 | refs/heads/master | 2021-01-19T20:50:47.076141 | 2017-11-06T02:09:28 | 2017-11-06T02:09:28 | 88,567,880 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,776 | py | #coding=utf-8
__author__ = 'QiuWenjing'
import requests
from interface.API import MyAPI
class UserAPI:
def __init__(self, url):
self.baseurl = url
self.api = MyAPI()
def user_FollowedSong(self, token, page=1, size=10):
u'''关注的人的作品接口
Method:get
@return:
... | [
"sillyapplemi@126.com"
] | sillyapplemi@126.com |
2dca3c96dd91576624418597ac8f3deaa54bf9cf | 3c39628921d2d43696f29f1f4d6ad3d1d6733a2c | /Scripts/agendamentos/migrations/0001_initial.py | 6073508074d68be79ae82c1061ad1ee286023791 | [] | no_license | jamesonSouza/python_curso_api | 215bc01a02131d1ae195749ea9c3db383784aad1 | 318616790174ea0e5779cf894f1207982a2630c3 | refs/heads/main | 2023-06-11T02:47:52.292849 | 2021-06-28T19:53:12 | 2021-06-28T19:53:12 | 381,142,308 | 0 | 0 | null | 2021-06-28T19:59:28 | 2021-06-28T19:36:01 | Python | UTF-8 | Python | false | false | 1,157 | py | # Generated by Django 3.2.4 on 2021-06-25 20:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('pacientes', '0001_initial'),
]
operations = [
migrations.CreateModel(
name=... | [
"jameson1708@gmail.com"
] | jameson1708@gmail.com |
5fc0adf9e6d9f375ddd581bf9e82f8d4ad454d56 | 71535e1512c99a5aef4a2bd0e03efa82825b106d | /unit_testing/test_cron.py | c8132d4bc18dcc21d0fbd0299ed99d41bbdbbfa1 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | Stanford-PERTS/yosemite | 070606b083311fff8e0a45ec5c6248ac81551744 | e17a5e7d7a786e7bae4d1dc17ce571442178b1a0 | refs/heads/master | 2022-10-24T15:02:45.958601 | 2020-06-14T17:38:08 | 2020-06-14T17:38:08 | 272,251,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,455 | py | """Testing cron functions."""
from google.appengine.api import taskqueue
import datetime
import time
import unittest
from api import Api
from core import *
from cron import Cron
from named import *
import unit_test_helper
class CronTestCase(unit_test_helper.PopulatedInconsistentTestCase):
def test_aggregate(sel... | [
"chris@perts.net"
] | chris@perts.net |
6dabdc807370bd4b3c31d1fe008b1c317f826fcd | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /chrome/browser/android/vr/DEPS | 4bb15ad06141975212205cdb895c4d52b1e9f069 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 196 | include_rules = [
"+cc/base",
"+cc/layers",
"+device/vr",
"+services/metrics/public/cpp/ukm_builders.h",
"+third_party/gvr-android-keyboard/src",
"+third_party/gvr-android-sdk/src",
]
| [
"arnaud@geometry.ee"
] | arnaud@geometry.ee | |
0ffa3e481eb23c0ae940935b0063cd736086e603 | 08f30ea954d0627f0ae456d1bf22f74b7a809263 | /exam/61a-su20-mt1/q1/tests/q1.py | 3e76c09722005ee9c4f2d194686148a269f38828 | [] | no_license | gintonyc/UCBerkeley_cs61a_SICP | da04023deac611b1485921fb83de7926d5d25841 | 61482385dc41e237110b16ca5444a8ca6b25b864 | refs/heads/master | 2023-06-02T23:56:21.435348 | 2021-06-10T08:27:23 | 2021-06-10T08:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | test = {
'name': 'q1',
'points': 10,
'suites': [
{
'cases': [
{
'code': r"""
>>> put1 = kv()
>>> get2, put2 = put1('cat', 'animal')
>>> get3, put3 = put2('table', 'furniture')
>>> get4, put4 = put3('cup', 'utensil... | [
"tonythemayfly@gmail.com"
] | tonythemayfly@gmail.com |
4975b6114aede5494545e055742b32230ecc0e5a | 3093520d03fb2701e97b60755dd55534efa8d6c6 | /yoursite/settings.py | 21683f82519698cd361014edbea727b7e8c63134 | [] | no_license | bradwright/django-layout | 6da01d613135ffa37a1b335f961a0e7e0d2c8baf | 9b2fe6b862237217e56d00b1f634e15791a96b26 | refs/heads/master | 2020-04-10T16:54:26.939487 | 2009-08-29T08:41:14 | 2009-08-29T08:41:14 | 76,139 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | # Django settings for yoursite project.
import os
TEMPLATE_DEBUG = DEBUG = True
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = '' # Or path to database fil... | [
"brad@intranation.com"
] | brad@intranation.com |
d79100277593e2e79aec7f47ffa6a0ad0122ce1c | 41868e541e3eb87cd13969baf79e2dca73952594 | /queries.py | 685a08e24a21381b2bce8a60e33cce4de131fc57 | [] | no_license | JulianAuza/wish_list | 16950fa8ef6b92c607450615e9b974b6348178c6 | 79b4514578777070b9e07ae7a1a7f439e5fc728b | refs/heads/master | 2021-01-01T19:17:01.218303 | 2017-07-27T15:46:50 | 2017-07-27T15:46:50 | 98,554,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | import django
from apps.wishlist.models import User
# Courses.objects.create(course_name = 'Super fun', desc ='YAS') ssssssss
User.objects.create(name = 'Kim Hyuna' ,email= 'wondergirls@jyp.com', password = '12345678' , user_name = '4minute')
# users = User.objects.all()
# for user in users:
# print user.user_name... | [
"julianauza@gmail.com"
] | julianauza@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.