blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9c0c8275b4229082edfd52483c1218d2fbdf06c | 4dfeeb1a5a851b368d7a11107789913ac0a92dc6 | /food/migrations/0039_auto_20180305_0518.py | 120aad1d8d6c90c26eac0ce999a41b19e3b7046d | [] | no_license | caseyalananderson/thosedanggirls | dbc6a6e46a405099ffdf2ec04494666f56ae9f85 | 10f2c6d0f7760a0634b04aaab8e5715cae91411f | refs/heads/master | 2021-09-10T20:47:05.768447 | 2018-04-02T04:22:08 | 2018-04-02T04:22:08 | 122,774,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,648 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-05 05:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('food', '0038_auto_20180305_0502'),
]
operations = [
migrations.RemoveField(
... | [
"casey.alan.anderson@gmail.com"
] | casey.alan.anderson@gmail.com |
a71f74494f925b9be1146cfb286ff56ca819256b | 2c7af3d5256c49ee027afcaf8a53c644b6b0051b | /Algorithms/Sorting/bubblesort.py | b03bbfd7cf531d2459bf0a9cb5b6260007046fa9 | [] | no_license | cadiente-jomel/data-structures | 99a975fa4fdc05d837799f9b6ed613a44d0c19ef | 4439673d4b23983df04853af0873576e79b843a9 | refs/heads/master | 2023-04-16T02:35:36.374352 | 2021-03-17T12:23:25 | 2021-03-17T12:23:25 | 332,428,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | def bubble_sort(number_list: list) -> list:
num_length = len(number_list)
for i in range(num_length):
for j in range(0, num_length - i - 1):
if number_list[j] > number_list[j + 1]:
number_list[j], number_list[j +
1] = number_list[j... | [
"cadientejomel0@gmail.com"
] | cadientejomel0@gmail.com |
5dacaf4423aa59fce5d995c6fc764212958f3f15 | 68af1af963119f2d0d91cc57fe34067d2e383f85 | /example/test_full/tests/test04_fk_fkback_multiple.py | cc20e114c77b4b19d405fcb96ec85dcc1d5c578e | [
"MIT"
] | permissive | olivierdalang/django-computedfields | 9d61d4e84ca1040dd4106f71176b676b05be85cf | 13a5c107904e7596eeafe948ffc66c9702d95589 | refs/heads/master | 2021-01-01T09:34:48.843533 | 2019-03-08T21:58:21 | 2019-03-08T21:58:21 | 239,220,787 | 0 | 0 | MIT | 2020-02-08T23:45:53 | 2020-02-08T23:45:53 | null | UTF-8 | Python | false | false | 5,955 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from .base import GenericModelTestBase, MODELS
class MultipleDependenciesOne(GenericModelTestBase):
def setUp(self):
self.setDeps({
# fk + fk + fk_back + fk_back
'C': {'depends': ['f_cb.f_ba.ag_f.gd_f#name', 'cd_f.de_f... | [
"jerch@rockborn.de"
] | jerch@rockborn.de |
ae804d594a3f188266be87fbd9b5ba5cd1e02a65 | 0ce934553a854e5a3d28971f73be19d0912449bf | /contactUs/forms.py | 1ffeac66e649dbe0e2f24bcc95ca43edc6f5af03 | [] | no_license | keennhlc/GKWeb | d0c1c2617e2334ee9aba6e3b741d049cf75c9a62 | db34c14a4be13fab1cf16de66fc406b7142d7fcb | refs/heads/master | 2020-05-01T09:19:13.871041 | 2019-03-24T10:20:40 | 2019-03-24T10:20:40 | 177,397,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from django import forms
from .models import ContactInfo
class ContactForm(forms.ModelForm):
class Meta:
model = ContactInfo
fields = ['first_name', 'last_name', 'middle_name', 'birthday', 'gender', 'previous_schooling', 'contact_number', 'email', 'interested_course', 'comment']
| [
"keennweb@gmail.com"
] | keennweb@gmail.com |
ca725ff19b7705e1e47573835fade1d50f49cc90 | a4ab9f4ea9cb73b70dd0c63fb759a0d8efeced3d | /setup.py | 6be15f6b2a5b53b5ca21616fa535a4f3356f9d95 | [] | no_license | Ravirajadrangi/Toy-Autonomous-Racecar | 32fd588be8c648d2a945f4b633e7197edf60ed9d | 01c448608befc68b0963b17ec951f1c71964e47e | refs/heads/master | 2021-01-15T19:14:17.573108 | 2017-06-05T05:11:01 | 2017-06-05T05:11:01 | 99,812,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | try:
# Try using ez_setup to install setuptools if not already installed.
from ez_setup import use_setuptools
use_setuptools()
except ImportError:
# Ignore import error and assume Python 3 which already has setuptools.
pass
from setuptools import setup, find_packages
classifiers = ['Development St... | [
"maxkferg@gmail.com"
] | maxkferg@gmail.com |
e77505ef3412a7ba2a496293b82745688312c548 | 6edf34c85835d1ebad9812588b1bb765cb9b398c | /scrape_a_column.py | 4f336e8e3504dc6642edd05fd350a4b3ba9f6aa3 | [] | no_license | n8mob/py | f2610be3a6f65740631b955296c1e52babc3d467 | a37ad5a5a18432e2cd21480f35e5a0eb0db7ac01 | refs/heads/main | 2023-08-18T05:08:47.732331 | 2023-08-17T17:11:32 | 2023-08-17T17:11:32 | 87,347,522 | 0 | 0 | null | 2023-08-22T23:52:42 | 2017-04-05T19:17:27 | Lua | UTF-8 | Python | false | false | 1,855 | py | from os.path import exists
import requests
from bs4 import BeautifulSoup
vhf_society_repeater_list_url = 'http://www.utahvhfs.org/rptr.html'
soup = {}
cached_request_path = 'page.cache.html'
if __name__ == '__main__':
if not soup:
print('no cached object')
if exists(cached_request_path):
... | [
"n8mob@nategrigg.com"
] | n8mob@nategrigg.com |
ae09a2bc39ad7fcea0730f7d55a139a6b11db681 | 6364bb727b623f06f6998941299c49e7fcb1d437 | /msgraph-cli-extensions/src/subscriptions/azext_subscriptions/vendored_sdks/subscriptions/_configuration.py | 1fc1e11a28fb7fa4c472746b400392115428c759 | [
"MIT"
] | permissive | kanakanaidu/msgraph-cli | 1d6cd640f4e10f4bdf476d44d12a7c48987b1a97 | b3b87f40148fb691a4c331f523ca91f8a5cc9224 | refs/heads/main | 2022-12-25T08:08:26.716914 | 2020-09-23T14:29:13 | 2020-09-23T14:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,633 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
78f2569c7833ca851092866bf0360045e76f6ccb | 6a40ca008a201a352be73a305f483de344495a4c | /operation.py | b920f4e11eb2381c31b048fe04c4ba74bfeb53a0 | [] | no_license | manojbahadur/python-programs | 301032bfe95be9ea98526822c20364a536bf0f3f | 0ec7aedb1a269f7205eef43ed94529d5e9b05395 | refs/heads/master | 2020-04-24T14:06:51.024496 | 2019-04-01T03:17:59 | 2019-04-01T03:17:59 | 172,009,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | a=5
b=10
print("addition of", a ,"and" ,b ,"is",a+b)
print("multiplication of ", a, "and", b, "is",a*b)
print("division of", a ,"and", b ,"is",a/b)
print("subraction of", a ,"and", b ,"is",a-b) | [
"noreply@github.com"
] | noreply@github.com |
e0109f6985e842ce24a7b12d4edcfd170af914ac | f0ce2b0f8fc56b6aa6dc34b636c3c7ed2f5fe128 | /main/settings.py | 674ea8823eb2b1612278e9552916be8f3ca4c3e5 | [] | no_license | MoSanogo/profiles | 5da58f190e2781068ba9903c3bd0b5830b45fcbc | 07d20aa5147d3bee5b2772ca11153cb01541dc18 | refs/heads/master | 2023-06-05T17:11:45.811017 | 2021-06-22T03:42:56 | 2021-06-22T03:42:56 | 372,931,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib im... | [
"modisalhydro@gamil.com"
] | modisalhydro@gamil.com |
d470a432299b5d1d39d7f9de4a11d83141eb34ea | eb7653acd0ce24e4c0ab4855180d5ef550dbc698 | /app/routes.py | bafd3c6b716dd4e97240fa5a7ad1b8589b023e7c | [] | no_license | lyabakhP/flask-blog | a449e06a92b27022d5e8941804922ce6209d42a2 | 60077b757b28796fee2b6a8f41408818f7078b25 | refs/heads/master | 2022-12-16T05:52:12.206014 | 2018-12-10T20:00:14 | 2018-12-10T20:00:14 | 160,950,846 | 0 | 0 | null | 2022-12-08T00:48:23 | 2018-12-08T15:11:56 | Python | UTF-8 | Python | false | false | 8,374 | py | # from datetime import datetime
# from flask import render_template, flash, redirect, url_for, request, g, \
# jsonify
# from flask_login import login_user, logout_user, current_user, login_required
# from werkzeug.urls import url_parse
# from flask_babel import _, get_locale
# from guess_language import gues... | [
"lyabakhp@gmail.com"
] | lyabakhp@gmail.com |
8c556ece085b5abb68e2a3aba88475d9429c99f0 | 4ae68767d525b441b293dcfd1d7f0dd8ca456d2a | /moniter_traders/trader1.py | aea0afd04e0fd47edb056c020bc76df50753dc38 | [] | no_license | StevenMaharaj/many_traders | 523162929ce0ed0899f70e2c688043bbea96b3b5 | a2f3247fc6ed04b6d293a5062a41d1480698ac5f | refs/heads/master | 2022-12-20T01:30:04.737056 | 2020-08-23T15:35:05 | 2020-08-23T15:35:05 | 288,927,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | import numpy as np
import asyncio
import asyncio
import websockets
async def hello():
uri = "ws://localhost:8765"
async with websockets.connect(uri) as websocket:
trader_no = 1
await websocket.send(f"trader {trader_no} has logged on")
while websocket.open:
while True:
... | [
"stevesamah@gmail.com"
] | stevesamah@gmail.com |
101aafdf11884552b8fe84b7119071b94791664b | 5390306b57bf4ed2e6a7806b82a224e63bd71cda | /libs/imgp.py | 22eb86d3a30aa87fc67450149c0e4fc679c2f3cb | [
"MIT"
] | permissive | myygunduz/python-turkiye-discord-bot | af118afe3739d6d1713e153e2e2cfd79df81b268 | cb13167d21d2727b2ebe411ed4ebbc90b1fbe37c | refs/heads/main | 2023-07-09T09:39:10.656825 | 2021-08-14T14:08:43 | 2021-08-14T14:08:43 | 395,501,720 | 1 | 0 | MIT | 2021-08-13T02:45:52 | 2021-08-13T02:45:52 | null | UTF-8 | Python | false | false | 6,719 | py | # Part of the Python Türkiye Discord Bot's libraries
#
# EN:
# Uses pygame to create image that displays user's level.
#
# TR:
# Kullanıcıların seviyelerini gösteren görseli
# oluşturmak için pygame kullanır.
#
# https://github.com/kadir014/python-turkiye-discord-bot
import os; os.environ['SDL_VIDEODRIVER'] = 'dummy'... | [
"kursatkadir014@gmail.com"
] | kursatkadir014@gmail.com |
1380c3325cab018e45807a65e55c69880b2c3d62 | 684b77e02e1053c331111d3390f45328e95e746f | /main.py | 9ef3360f982d5060d38e9dfd70f5ae545c4d3b14 | [] | no_license | Hacker1337/ball-game | 679578ebbc8fb48347a94fa9d076ee8143c3827c | 3da0b3d19d4b6c019eafd5d2c3367d16d53bbca9 | refs/heads/master | 2023-08-18T17:44:55.892877 | 2021-10-12T13:48:20 | 2021-10-12T13:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,912 | py | import os
import pygame
from pygame.draw import *
from random import randint
from random import random
pygame.init()
FPS = 60
field_height = 900
field_width = 1200
screen = pygame.display.set_mode((field_width, field_height))
score = 0
RED = (255, 0, 0)
BLUE = (0, 0, 255)
YELLOW = (255, 255, 0)
GREEN = (0, 255, 0)
... | [
"amirfvb@gmail.com"
] | amirfvb@gmail.com |
df8ae32f57ae7080cc99251eb8a64f4386b48973 | 29c70acf87d45fc659a5dd34d141ec935867b530 | /Rabi_single_qubit.py | 803f0349991f8fcc61c77d2bc8346a39aea8efc0 | [] | no_license | aniketmt/quantum-sim | 6dd8ab0b3f08cad7aab3c6ccf168d5e7d61918fb | 85c9c872e89beb7fb44a1ccd6935004cd1e3c6f1 | refs/heads/master | 2021-06-17T14:15:36.268709 | 2017-05-22T19:27:06 | 2017-05-22T19:27:06 | 91,388,137 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,773 | py | """
Rabi oscillations of a single qubit, with decoherence
Author: Aniket Maiti
"""
from qutip import *
from matplotlib import pyplot as plt
from numpy import pi, linspace, sqrt, arctan, cos, sin, multiply
from exp_decay_2 import fit
#
# Problem parameters:
#
delta = 0.0 * 2 * pi # qubit sigma_x coefficient
eps0 =... | [
"aniket.maiti1996@gmail.com"
] | aniket.maiti1996@gmail.com |
471e2834589c36d53dc9fe706289e76eb704508d | c1e513714ddd8b05cbc4a7171207b0d082d7147a | /ex049.py | cfcf9e56387cad69b115097c9664a52ba355cb2f | [] | no_license | gabrielsalesls/curso-em-video-python | b8191ef8ead4052b590551fcca6f9bcdb1de3007 | c9f004a5f02c85d09e36bf3e121fad4a9fdbb252 | refs/heads/master | 2022-11-21T17:31:33.526490 | 2020-07-22T18:01:33 | 2020-07-22T18:01:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # Tabuada usando FOR
n = int(input('Digite o numero: '))
for c in range(1, 11):
r = n * c
print('{} x {} = {}'.format(n, c, r))
| [
"noreply@github.com"
] | noreply@github.com |
cb3b7f7f61acce8ec05037cea3db5018b1e29f25 | 8e63bc0ec28d4ba693a02aa7a1aedf9a8231349c | /youtube/urls.py | aae311c687b86cecb97de55ec741fecee734fbc4 | [] | no_license | bhwong11/youtube | 1c125e5aff4d110f23940c7cdf83df86a666a61f | 37c849eb934007b6165a7044ae71e58a27d26527 | refs/heads/main | 2023-07-08T05:26:19.528079 | 2021-08-16T21:52:25 | 2021-08-16T21:52:25 | 396,986,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | """youtube URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"user@email.com"
] | user@email.com |
2e192ab31039def62663dae05e67c5467c557ee1 | 30a89ae47ca79e4ced151908f4059cd77ade30ef | /main/views.py | e80899981ed429eccd17a9e6bbdfe11110385253 | [] | no_license | harshit8858/mindful_project1_salesapp | 0bd80c40b2349fe08744dcd0625283c5b6ba4029 | 66f7c7af868518898aa6422d1b17ca9f7cf433ef | refs/heads/master | 2020-03-24T00:02:49.972583 | 2018-08-18T07:56:49 | 2018-08-18T07:56:49 | 142,269,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,826 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponseRedirect
from django.contrib import auth
from .forms import *
from .models import *
from .models1 import *
def index(request):
return render(request, 'main/index.html')
def user(request):
if request.user.is_... | [
"harshit8858@gmail.com"
] | harshit8858@gmail.com |
a5ef6335a57e0a0eee90829996a707cf148fbd1a | b6f760800f05c70e1d517440240745caab017434 | /students_db/__init__.py | c3b0e549ee176361e30185218bbc4cf7799d6703 | [] | no_license | denisjovic/students_db | 59981403a0d2038e47e7c25c0fbcd0bc873a07e1 | 23ae4b96dd8533163caf1bcd6c6586749e00e483 | refs/heads/master | 2023-02-18T21:36:36.995102 | 2021-01-14T09:26:55 | 2021-01-14T09:26:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
project_dir = os.path.dirname(os.path.abspath(__file__))
database_file = "sqlite:///{}".format(
os.path.join(project_dir, "students_base.db"))
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] ... | [
"denis.jovic@tn-tech.co.rs"
] | denis.jovic@tn-tech.co.rs |
7204c6289a985863bc40c83d628ec9d380247070 | 7c4e7aaa211400361b5ae6f11738703d8340db95 | /game_final.py | 31a0836d354966fe3934ba9bb636fe45dcd49648 | [] | no_license | ritvik03/Baby-I-am-A-Fighterfighter | 021c33ee81a85d6dfca2501158dd54de1286ee8f | 0b1956089d4291f19294bd98d73057ef04f55a61 | refs/heads/master | 2020-09-07T15:17:05.011412 | 2019-11-12T14:35:56 | 2019-11-12T14:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,882 | py | """
Sample Python/Pygame Programs
Simpson College Computer Science
http://programarcadegames.com/
http://simpson.edu/computer-science/
From:
http://programarcadegames.com/python_examples/f.php?file=maze_runner.py
Explanation video: http://youtu.be/5-SbFanyUkQ
Part of a series:
http://programarcadegames.com/python_ex... | [
"noreply@github.com"
] | noreply@github.com |
2ed1178cdd6efabe3fad3f746c8296c53dd4234a | 8cf7a165418330e9620608a60e1d84cb1c1f6036 | /app/migrations/0002_auto_20200717_1743.py | 0ca4c743bb8a0d2783f37f57751b4bae7d53d670 | [] | no_license | nicolasteodosio/pyfeedrss | c1352ccdcd775251a0242e36d904697844a74a22 | b45e57ec093d4c270d02487e4c159eebbb29c966 | refs/heads/master | 2023-08-09T12:36:19.857785 | 2020-08-05T04:27:25 | 2020-08-05T04:27:25 | 279,096,743 | 0 | 0 | null | 2021-09-22T19:25:52 | 2020-07-12T15:49:02 | Python | UTF-8 | Python | false | false | 465 | py | # Generated by Django 3.0.8 on 2020-07-17 17:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("app", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="userfollowfeed",
name="disabled_at",
... | [
"nicolas.steodosio@gmail.com"
] | nicolas.steodosio@gmail.com |
a8bb39da8875722f280db71679bfc2ae28a79e25 | 3715cc9bd1379aaba1b8ca5d791342fb58765982 | /book/migrations/0002_category_slug.py | 02d6e4cd51902dfe54626040a626cbab947ba4bc | [] | no_license | e-harsley/bookstore | c99edc0a36cda1347411fd9ec5bcf71a171086c2 | a6f7be5cec15de328bac278e7ffffb007f46b044 | refs/heads/master | 2020-07-30T11:45:39.444276 | 2019-09-22T22:19:22 | 2019-09-22T22:19:22 | 210,222,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Generated by Django 2.2.5 on 2019-09-18 01:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('book', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='category',
name='slug',
field=... | [
"ekhorutomwenharsley@gmail.com"
] | ekhorutomwenharsley@gmail.com |
f800fe38d134de835e5fd6b6c7afe7e28cc54460 | 9615307055f69e2226bb6540a5390b9c3875fd11 | /src/main.py | 7a98233a2573e7d38d2d77e13a930dfdae78af77 | [] | no_license | Admirahalili/TP04-tris-et-recherches-solutions | 6974337592a60faa8359c8e37fdb3d1fff458830 | 27d3952e0495216034bf788cba6b93a783a45c46 | refs/heads/master | 2023-01-15T06:08:13.988415 | 2020-11-20T08:26:40 | 2020-11-20T08:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | import random
import time
from src.metier.LinkedList import LinkedList
# Afin d'avoir tout le temps les mêmes nombres aléatoires
random.seed(10)
def is_sorted(lk: LinkedList):
n = lk.get(0)
for i in range(1, lk.size()):
j = lk.get(i)
if n > j:
return False
n = j
retur... | [
"loicschup@gmail.com"
] | loicschup@gmail.com |
d64ccd406c3d824f483f1d275df27a7100b9be5c | 59ca38358bafc2d15a765ab2d252141a36029fbb | /python_starter_homework/002_variables_and_data_types/002_homework_1.py | 4d26ee05c1254e684e38033e81349f75f65f13f9 | [] | no_license | Nilvalus/fawor | bfe3ebd0cade88533e8de3fbaddd87f6ca7b36d1 | 9b41d424c40f39e4ab542dec811148bc6a0e4539 | refs/heads/master | 2023-04-02T00:32:08.639146 | 2021-04-15T14:30:56 | 2021-04-15T14:30:56 | 357,622,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | word_1 = input('Enter word_1: ')
word_2 = input('Enter word_2: ')
print(word_1, word_2, sep=',')
| [
"aspid.ak@gmail.com"
] | aspid.ak@gmail.com |
074e63b7239fd2b5268e020e79b4ad67bb87cbf1 | 78065c7d3446d1692b7e6580b1e2a37ed5682a09 | /advent07b.py | 5d08c345cfe1a17890901889c371b3f84f8f7aa1 | [] | no_license | RobertMarch/AdventOfCode2020 | 6c561c04b70ce8567660521d7aeb3f476ed59e82 | 3bb03542d4497629fdb161108418edf862c8a2a6 | refs/heads/main | 2023-02-03T22:22:55.260252 | 2020-12-25T08:51:20 | 2020-12-25T08:51:20 | 317,649,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | from TestRunner import run_tests
from inputs.input07 import puzzle_input, test_cases_b
def solve(input):
parent_to_children = {}
for line in input.split('\n'):
if len(line.strip()) > 0:
parent, children = line.split(' contain ')
parent_colour = ' '.join(parent.split(' ')[0:2])
... | [
"robertmarch5@gmail.com"
] | robertmarch5@gmail.com |
6cc874cdde8d748e0b13f3429e6b7ab39dd99f15 | 583a20c2d091fff051dce5b70d9ed3885ed7b889 | /abnormal.py | 19ec072b5b4a2dadb3bbf045b76ab107908d9d59 | [] | no_license | SharonFei/python | 132770b4a93d64928cd2ef84cec7f1a0641e83de | 3348046cdccaaf99144ca1293f2dcee9fe822dcc | refs/heads/master | 2020-04-05T00:18:46.390095 | 2018-11-18T15:23:10 | 2018-11-18T15:23:10 | 156,392,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | try:
open("abc.text",'r')
except FileNotFoundError:
print("异常了!")
| [
"matchafei@163.com"
] | matchafei@163.com |
c003c4c28af9344b6c4375fb8423478434fe9cb8 | cfa851dd7dfe63609c42eede76011cc02f553289 | /pyxsim/utils.py | dc616ce0f45188316f048b6bfd4314383c7e797d | [
"BSD-3-Clause"
] | permissive | Joeybraspenning/pyxsim | 8be218ac88cf0607534fe2b10e58d56a7f438995 | 6e06bd87c721580fa7fea2d363a2cc4c6b35ca70 | refs/heads/main | 2023-08-27T02:55:41.048236 | 2021-09-16T20:23:30 | 2021-09-16T20:23:30 | 410,861,487 | 0 | 0 | NOASSERTION | 2021-09-27T11:44:11 | 2021-09-27T11:44:11 | null | UTF-8 | Python | false | false | 4,830 | py | from unyt import unyt_array, unyt_quantity
from astropy.units import Quantity
import logging
from more_itertools import always_iterable
import numpy as np
pyxsimLogger = logging.getLogger("pyxsim")
ufstring = "%(name)-3s : [%(levelname)-9s] %(asctime)s %(message)s"
cfstring = "%(name)-3s : [%(levelname)-18s] %(asctim... | [
"jzuhone@gmail.com"
] | jzuhone@gmail.com |
4b5b0c732f138117397dd992edd522768a7d5e05 | 945929aca88ab7614e16284756a118c71ca87259 | /yu_c/Chapter11_ClassandObjects/P38_test6.py | d7a904aa713d94e991fe5749eddaa34fa1114668 | [] | no_license | XIAOQUANHE/pythontest | 344c221b688f80e0ef5a3d3d71ffa48759e09ac1 | 8a02508fd66b13c6c41a689a65adac53aeb7361a | refs/heads/master | 2023-01-24T22:25:57.278411 | 2020-11-30T05:43:31 | 2020-11-30T05:43:31 | 290,959,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | class A():
def __init__(self):
print("进入A…")
print("离开A…")
class B(A):
def __init__(self):
print("进入B…")
super().__init__()
print("离开B…")
class C(A):
def __init__(self):
print("进入C…")
super().__init__()
print("离开C…")
class D(B,C):
def... | [
"983460601@qq.com"
] | 983460601@qq.com |
30a5df9a0c5ccdec99a21ea9caf6ae1df5159373 | 608f6a465f280ada279527076ed73aa83db05ebe | /ed_moss_app/urls.py | 1d0976510351c08bf2291f79ededb1cc70b41268 | [] | no_license | mosster/ed-moss-app | 00a67380afe2630e9f0185aeacff93a09b0abaae | 6b4a479e715aa7dc2df48f28513998d442612184 | refs/heads/main | 2023-05-08T09:12:33.882494 | 2021-06-02T16:12:57 | 2021-06-02T16:12:57 | 373,230,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | """ed_moss_app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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... | [
"ed@mossified.com"
] | ed@mossified.com |
004a3a90a0434cf68ce7b53cd91acd1970560753 | c3426bb7730c3783106dda4ec4eb04be591c3c83 | /lodky_animacia.py | fea68f79b8995677365ba4393d40a56beed96226 | [] | no_license | TerezaVranova/kvinta-informatika | 898c257ec2fe3dc4817ce7bd5bf33160d1b3b35f | d4841c7255ff48a1158e3f9e2207602dce765512 | refs/heads/master | 2020-08-26T13:38:51.928045 | 2020-01-08T10:09:59 | 2020-01-08T10:09:59 | 217,028,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | import tkinter
canvas=tkinter.Canvas(width=800,height=600,background="white")
canvas.pack()
import random
def more():
canvas.create_rectangle(0,300,800,600,fill="blue")
def mesiac(x=500,y=random.randint(50,170),pozadie="white",farba="yellow",r=40):
canvas.create_oval(x-r,y-r,x+r,y+r,fill=farba,outlin... | [
"noreply@github.com"
] | noreply@github.com |
012eac1546e62e0cae2826c9ab332fc30f68b114 | eeb6b1a11302be76874a01c39142f0904367c2b3 | /src/core/engine/state.py | a29ab1c2437dfca431aeb4bc67f38ebb155ef805 | [] | no_license | ArtemUgrimov/SlotServer | 90f54bbca47ab56c93be221a249782fed52ad030 | aaee6c9d157d4df35af89b2f27b4cd306ebdbb2d | refs/heads/master | 2021-09-19T07:06:55.906991 | 2018-07-24T15:08:08 | 2018-07-24T15:08:08 | 106,122,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py |
class State:
def __init__(self, state_name):
self.state_name = state_name
def on_enter(self):
pass
def on_exit(self):
pass | [
"artem.u@sbtech.com"
] | artem.u@sbtech.com |
411730ae49148b1dca43cfcf1fb1120bba3265b4 | 3a2e01fe2763bb44922b4df6e342ec9ea3551868 | /concrete.py | f68e4a172dc99876dafda5ca45e3da4347851f75 | [] | no_license | chandanbrahma/neural-network | b173dcf42885b30e5ecfcc7cd2080952b2f3f35d | 1e825a213d16fbe89de4f14ca91a64600fff8ef1 | refs/heads/main | 2023-01-07T03:26:20.038522 | 2020-11-03T17:53:34 | 2020-11-03T17:53:34 | 309,765,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | ## importing the dataset
import pandas as pd
data=pd.read_csv('E:\\assignment\\neural network\\concrete.csv')
data.head()
data.describe()
data.info()
## so we do have 1030 rows and 59 columns and we need to build a Neural Network model to predict strength
##normalizing the data
data_new=(data-data.min())/... | [
"noreply@github.com"
] | noreply@github.com |
56b59620d9dc8ccfa21e2140cfdc3cd9375545cb | 63bae38d352462f437a5ab40c4807e1714efdda4 | /PT_rewrite/views.py | 03354bbead5f84ab6ab1ef902da7cb798e66f64a | [] | no_license | yogesh-pro/pt | 77091c6ffc094850fc59a4b918a3854858755995 | 2e0d40924c518283ec98b4a079f960020d29f5be | refs/heads/main | 2022-12-28T08:35:55.902205 | 2020-10-08T08:43:21 | 2020-10-08T08:43:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.shortcuts import render
def home(request):
return render(request,'index.html')
def table(request):
return render(request,'periodic_table.html')
def about(request):
return render(request,'about.html')
| [
"thisedit01@gmail.com"
] | thisedit01@gmail.com |
a8b269b2648bd093e81c37c7f5d75eeb801f4c90 | 87917d36e5f0c500b71a78819e99cb5805f6819b | /tests/application.py | d52834b56ac3241605f1ae2af2525eea887fde4c | [] | no_license | nswalters/AppTrakz-API | 982c7595c60fcdb42fb0e9a41d4b290555e3e6f4 | 12cb34b9a290a8445e8baaa6c454dd386a01fe29 | refs/heads/main | 2023-03-24T00:58:14.235690 | 2021-03-22T01:12:03 | 2021-03-22T01:12:03 | 342,913,270 | 0 | 0 | null | 2021-03-22T01:12:04 | 2021-02-27T17:15:28 | Python | UTF-8 | Python | false | false | 4,265 | py | from django.contrib.auth.models import User
import json
from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase
from apptrakzapi.models import Company, Status
class ApplicationTests(APITestCase):
def setUp(self) -> None:
"""
... | [
"nswalters.s@gmail.com"
] | nswalters.s@gmail.com |
400af35cb0e7b467098d199040f510e8489b5184 | a1d9d43d110cc50b4007f08777c21cc6a603fd19 | /blog/blog/asgi.py | 3d80cd0c5d96f185ab1fd775db1d01976d7a4596 | [] | no_license | EverydayLearner254/basic_blog | 2f5b05742c8cb92ff32be4bab423288660d8280f | cc4f9a2f06a90ccf3141f41e287adafb730cdd9c | refs/heads/master | 2022-10-03T07:04:24.436981 | 2020-05-05T00:56:20 | 2020-05-05T00:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for Blog_Master project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"akamuhu442@gmail.com"
] | akamuhu442@gmail.com |
807b224716b7742d4bd308bdf0a7c644e5f29c6c | 6bc77013027222ffc4ecb1524729a2ef580d78b3 | /olfactory/containers/spans/fragment.py | 49e6f1b52e51bf1fef243eb05263776779f2e5fd | [
"Apache-2.0"
] | permissive | OctaveLauby/olfactory | 819ae759637e36df460daa6447ca6f5b990fea2f | 679b67459c12002041a8f77e1bdffe33d776500b | refs/heads/master | 2020-04-30T22:11:04.845805 | 2019-03-22T14:38:39 | 2019-03-22T14:38:39 | 177,112,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,094 | py | import numpy as np
from datetime import timedelta
from olutils import float2dt
from .span import SpanBase
class Fragment(np.ndarray, SpanBase):
"""Fragment of series descriptor"""
def __new__(cls, a):
obj = np.asarray(a).astype(float).view(cls)
return obj
def __init__(self, x):
... | [
"WX5812@D70.tes.local"
] | WX5812@D70.tes.local |
282a44f9438e0c71d27fa942358378c13ac33b5d | d0e5a7485dc77cb36f2e18645358615df5452cfe | /demo01/booktest/views.py | fdae35131fe7e8b4fc58c2ce6a01699234f7ddc4 | [] | no_license | 960253116/ggz | 809d3d55b24813a0ed3d20b0618df7cb3d35a7d0 | 2dd5cf562624e6edae865d698355fe851797837e | refs/heads/master | 2023-04-01T11:37:55.370207 | 2019-06-21T12:26:59 | 2019-06-21T12:26:59 | 190,000,241 | 0 | 0 | null | 2023-03-31T14:41:24 | 2019-06-03T12:25:01 | CSS | UTF-8 | Python | false | false | 2,724 | py | # from django.shortcuts import render
# # from django.http import HttpResponse
# # """
# # MVT中的V 视图模块
# # """
# # # Create your views here.
# # def index(req):
# # return HttpResponse("这里是首页")
# # #
# # def list(req):
# # return HttpResponse("这里是投票页")
from django.shortcuts import render,redirect,reverse
from ... | [
"960253116@qq.com"
] | 960253116@qq.com |
7d84b61ff15c53184676e0777e146997b46c1174 | 40369438872d1de956d877012211452dfee408a4 | /4_3buildEmotionMatrix.py | ef68cfeaccda7c75c6e0051acab2244e4ef4c5c1 | [] | no_license | changshuai5/Emotion_analysis | 1187889a4e5aa3ad37683f50f811b09417cd741b | 73795ee2188c4657281a9b4ce82ed663597e5353 | refs/heads/master | 2020-03-25T02:00:59.033489 | 2018-08-02T09:09:26 | 2018-08-02T09:09:26 | 143,269,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,199 | py | import nltk
import nltk.data
from nltk.tokenize import WordPunctTokenizer
import xlwt
import xlrd
import numpy as np
import gensim
import numpy as np
import numpy.matlib
import codecs, sys, string, re
#向量x和向量y之间的余弦相似度
def CosineDistance(x, y):
return np.dot(x, y) / (np.linalg.norm(x) * np.linalg.norm(... | [
"noreply@github.com"
] | noreply@github.com |
59f19f70e646a12fbb19d865006751979f8bfb86 | a186054a721093ec7f2780066f3bfb778592da5a | /menus/serializers.py | 1b7c70208d6ec1d73b625d8de2e97f06dbd589aa | [] | no_license | franciscosuca/mensaonline | 24e00d346a61c34f071c9fe27c9e31d52776a183 | 1c99bf85cbb092eff58e338d493c5415654285e5 | refs/heads/master | 2022-12-17T06:56:54.898932 | 2019-11-18T11:13:16 | 2019-11-18T11:13:16 | 195,218,986 | 1 | 0 | null | 2022-12-10T21:21:00 | 2019-07-04T10:14:03 | CSS | UTF-8 | Python | false | false | 266 | py | """
2. Create the serializer
Import the serializers module from rest_framework
"""
from rest_framework import serializers
from menus.models import Menu
class MenuSerializer(serializers.ModelSerializer):
class Meta:
model=Menu
fields="__all__"
| [
"franciscosusana2292@gmail.com"
] | franciscosusana2292@gmail.com |
485e91adc05a83f24c85aec372f80aacde7c33d4 | 97f8ebfb63501cc62a88c2dfab6018c41663a287 | /stopwatch/stopwatch.py | 2fa936f18d98495aa7f526df89e70356e8a78ced | [] | no_license | a-bobade/GUI-projects | 09589299b8116fee58c02daf0c89d64a4652e37d | 44e63ffac85ab67b61b9650fd0cd881cb87e5d65 | refs/heads/master | 2022-12-20T04:46:11.966749 | 2020-10-14T01:50:26 | 2020-10-14T01:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | from tkinter import *
count = -1
run = False
def variable(mark):
def value():
if run:
global count
# before starting
if count == -1:
show = "Starting"
else:
show = str(count)
mark['text'] = show
# coun... | [
"emmanuelabobade@gmail.com"
] | emmanuelabobade@gmail.com |
0fd05317963e944006939aeb4981389ca6df3d24 | aed0850065dd467c0d0650c41987b61e94cad9c6 | /day 20/hackerrank/more_exceptions.py | 811828d4f33cb91f3b0e70bee5cd20e21f080a2c | [] | no_license | parmarjh/100day-coding-challenge | 96c79cc86a8f1e0b062b72dd5992610597e289e8 | 8b3e1f6654e4a55a08b4f938f13626fcc2aa8468 | refs/heads/master | 2023-02-18T19:51:22.200057 | 2020-12-31T12:54:10 | 2020-12-31T12:54:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | class Calculator:
def power(self,n,p):
if (n >= 0 and p >= 0):
return n ** p
else:
return("n and p should be non-negative") | [
"annamalaipalani11@gmail.com"
] | annamalaipalani11@gmail.com |
ee1da487ea2bbedb0fff666ec55825cd633044e8 | 19dd37a05c9ca77b830a9ce2edd2bffdfe81efbb | /viewNeutronLimits.py | af6db0cb61ecfdbe299cc03d9ec32a3003af2c13 | [
"Apache-2.0"
] | permissive | Krenair/wmcs-misc-scripts | 43828aa6fd8ce414d63d5c842981e7c76c5031a4 | ae91b5756d73a9405634df9d6c32e98f21b97d5f | refs/heads/master | 2021-03-16T23:09:50.654245 | 2020-04-18T22:40:43 | 2020-04-18T22:40:43 | 246,951,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | import collections
from keystoneclient.session import Session as KeystoneSession
from keystoneclient.auth.identity.v3 import Password as KeystonePassword
from keystoneclient.v3 import Client as KeystoneClient
from neutronclient.v2_0 import client as neutronclient
def get_keystone_session(project):
return Keystone... | [
"krenair@gmail.com"
] | krenair@gmail.com |
2411d8bbf7bf81082013425c9a63c33464876975 | 258055a409918da163120ff4807c5497713ccb54 | /python/TTJets_Hadronic/TTJets_Hadronic_11_cfi.py | ce58cd07df5008c9ec9935b32b741ac67cda4fce | [] | no_license | juifa-tsai/BprimeTobHAnalysis | d9fe65d7389c01936abd361b150796d8f395eccf | 3b1755b2c2bde07433d6c030fcce61b863ee5318 | refs/heads/master | 2021-01-01T17:28:59.334540 | 2018-01-26T00:49:58 | 2018-01-26T00:49:58 | 98,080,612 | 0 | 0 | null | 2017-07-23T07:03:09 | 2017-07-23T07:03:09 | null | UTF-8 | Python | false | false | 2,613 | py | FileNames = ['dcache:/pnfs/cms/WAX/11/store/user/devdatta/NtuplesBprimeTobH/TTJets_HadronicMGDecays_8TeV-madgraph/BprimeTobH_247_1_i9f.root',
'dcache:/pnfs/cms/WAX/11/store/user/devdatta/NtuplesBprimeTobH/TTJets_HadronicMGDecays_8TeV-madgraph/BprimeTobH_248_1_0at.root',
'dcache:/pnfs/cms/WAX/11/store/user/devdatta/Nt... | [
"devdatta.majumder@cern.ch"
] | devdatta.majumder@cern.ch |
968c83ccdd77b22ace1a5dd961126c2e9817137a | 9ec5b9fb57b9556eabecdf896d809eb307b729d2 | /dashboard/urls.py | 54460ca794e2e6655f8fe3ebaecc07e362b64864 | [] | no_license | ChandanKumar665/AquaDashboard | edcf1ef5eae0cbb2c35e209bfb0537c0db04569d | cca2053f6340963de261e101d2158d88883a2817 | refs/heads/master | 2023-01-08T03:50:23.290035 | 2019-05-29T06:22:30 | 2019-05-29T06:22:30 | 188,957,581 | 0 | 0 | null | 2023-01-03T22:54:35 | 2019-05-28T05:07:39 | JavaScript | UTF-8 | Python | false | false | 165 | py | from django.urls import path
from django.urls.conf import include
from dashboard.views import DashboardView
urlpatterns = [
path('', DashboardView.as_view())
]
| [
"chandan.kumar@global.loc"
] | chandan.kumar@global.loc |
5c2a1d1194206dafe5cbbf17ef06868158e05d82 | 2f56dcfba92c4c82c1de2534fc05f8114c03b7c9 | /model eye13/main_lr2face_nani.py | bd9f27afcf20208f6ba1fc4642485415c22c0710 | [] | no_license | NeuralAction/eyegazemodel | 685ab3ce2073ad7ef83d2581783bcd25e5b1bd39 | b7d23ded344425738ccd0a090bd9c04080ff41f2 | refs/heads/master | 2021-09-07T13:16:25.832727 | 2018-02-23T10:22:17 | 2018-02-23T10:22:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,829 | py | # -*- cod ing:CP949 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from pympler import refbrowser
import gc
import os
import datetime
import threading
import time
import math
import numpy as np
import tensorflow as tf
from tensorflow.python.ops import... | [
"gmlwns5176@gmail.com"
] | gmlwns5176@gmail.com |
2980f2e663b0889e908e148788685956b736e69d | 308e293c9f140b82d63684166e08a7ef0c3d6e94 | /udemy_web_scroller.py | 4631d85068a68e6c84b76a4c8bb65f2f33f29cb0 | [] | no_license | El-Tatane/data_viz | 04d0ec930fad317b16eef09f74a2a98cd8d401de | 413f8933f397047658dbc4d69782b17796f6fc95 | refs/heads/master | 2023-03-19T19:31:12.287213 | 2021-03-16T18:23:02 | 2021-03-16T18:23:02 | 348,076,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | # import HTMLSession from requests_html
from requests_html import HTMLSession
import pandas as pd
import re
import numpy as np
df = pd.read_csv("/data/udemy_courses_augmented.csv", parse_dates=["published_timestamp"])
if "rating-number" not in df.columns:
df["rating-number"] = np.nan
# create an HTML Session obj... | [
"antoineboude24@gmail.com"
] | antoineboude24@gmail.com |
64b7b2c3d3a294acb23353278928f7e8b719f9dc | 4a17c84869cbd26d96a4b004475c22b66f81af73 | /scallop/migrations/0004_auto_20171102_1540.py | bdc9003fc65f2b6a4e92653668743bf46b1e62ce | [] | no_license | TakeMeHigher/Scallop | 3383dcee0099036fd030dee66580629c760b1074 | 1cc5dfa1b27ec4f74fb3cfa7cc591c6331495bc4 | refs/heads/master | 2021-08-14T09:59:06.475949 | 2017-11-15T09:38:25 | 2017-11-15T09:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-11-02 07:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scallop', '0003_auto_20171102_1537'),
]
operations = [
migrations.AlterFiel... | [
"18810876994@163.com"
] | 18810876994@163.com |
aae0e0c40b1e227facedb39b48e89eaaed0ad111 | 1b149802f4f0e5220bda7941fb7c8884d44a7af4 | /Trabajo/demostracion/deteccion_facial/deteccion_facial_video.py | 355d533c4f6e04954763220a64363769538249c2 | [] | no_license | irenchuchu/PDIH | f5a32c3802d4e1056747f13de5fb68cd5050119b | fc68c1c4cf7a01fb916307d09ce21ee7f8cb22e6 | refs/heads/master | 2023-05-08T14:48:42.271553 | 2021-05-30T19:32:03 | 2021-05-30T19:32:03 | 342,271,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | # -*- coding: latin-1 -*-
"""
Código 1.2 - Detección facial en un vídeo en tiempo real
Este programa detecta rostros con una webcam.
Escrito por Glare y Transductor
www.robologs.net
"""
import cv2
#Cargamos nuestro classificador de Haar:
cascada_rostro = cv2.CascadeClassifier('haarcascade_frontalfac... | [
"munozdomingoirene@gmail.com"
] | munozdomingoirene@gmail.com |
02f70663cdecddec53ac871ad167ec7ab4e8a4d9 | b4b462652e23681811e8828fd7760798c84270ad | /main.py | 64ba781d0b1913cd7b6e971e6c01a3a7d9e50236 | [] | no_license | Xetro/Python-test-game | e0178347dd0fdec8919b1d8ba23bb610b4183d2c | 617137aa6d61ab08d865d326a9b37f1b6e3391d8 | refs/heads/master | 2020-06-03T02:27:31.972977 | 2018-09-14T02:08:21 | 2018-09-14T02:08:21 | 41,674,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | import pygame
import time
import random
import score
import data
import ai
import move
import collision
import background
pygame.init()
pygame.display.set_caption('Goblin gre v nebesa')
black = (0,0,0)
white = (255,255,255)
red = (255,0,0)
sky_blue = (172,225,255)
igraDisplay = pygame.display.set_m... | [
"golob.matevz@gmail.com"
] | golob.matevz@gmail.com |
f59baf7de71031e6500f015ec01ae53c367407fb | b4cdde95fddba78d797510e74aacdeb8ef29038b | /cleaner/views.py | 1b343660e86a1dc4e0be41574ecd1742bf5712fc | [] | no_license | GwendolynYang/survival_api | 043530bfe8d3e6e286fd28089f14194cdb962eff | f9dc3d8c8c0fee41594a1d502ce4dc69d8178e7f | refs/heads/master | 2022-12-14T04:33:46.849870 | 2019-08-03T20:43:21 | 2019-08-03T20:43:21 | 200,399,319 | 0 | 1 | null | 2022-06-21T22:28:31 | 2019-08-03T16:50:22 | Python | UTF-8 | Python | false | false | 6,282 | py | from django.shortcuts import render
import numpy as np
import pandas as pd
#from cleaner.apps import mhv_dict
# Create your views here.
def get_street(soup):
# get Address
obj = soup.find("span", class_="Text__TextBase-sc-1cait9d-0 dhOdUy")
#obj = soup.find("span", attrs={"data-testid": "home-details-summ... | [
"shining.yg@gmail.com"
] | shining.yg@gmail.com |
114be21a34ff2ddbff7b7d182d8613f4cb5770c8 | 15e6385746ccf4b8eb6c6e302aca236021bb8781 | /Other Data Structures_qstackheap/le84_largest_rectangle_inhistogram.py | 10fae62df2e1404369481b8502e83c61180612a5 | [] | no_license | akb46mayu/Data-Structures-and-Algorithms | 11c4bbddc9b4d286e1aeaa9481eb6a620cd54746 | de98494e14fff3e2a468da681c48d60b4d1445a1 | refs/heads/master | 2021-01-12T09:51:32.618362 | 2018-05-16T16:37:18 | 2018-05-16T16:37:18 | 76,279,268 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | """
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3].
The largest rectangle is shown in the shaded area, which has area = 10 unit.... | [
"noreply@github.com"
] | noreply@github.com |
de296b43759f75677af22028ff6c48ec9ce092e3 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/c2g.py | 1ac6e76798c081ec5b0fc6446fdee8536f2d29f3 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
b84396f84f4bfec99aa7625e8d2b39f43db47ca0 | b394a56502a46b51d7db05cd237e26d10686415e | /python_mysql/below_average.py | 94d4a1a947722b2f3d0b78e8a2c006333157c3f9 | [] | no_license | shishi5089/PyCharm_Projects | 092ffca117f8c864d0b510285e0c6ef42593754b | 4e05fdf3b70e6290a76d93f69b7d36a1e780a3c9 | refs/heads/master | 2022-04-22T22:53:51.110296 | 2020-04-28T10:16:25 | 2020-04-28T10:16:25 | 259,600,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from mysql.connector import connect
db = connect(host='localhost', user='root', passwd='', database='python_db')
cursor = db.cursor()
sql = "select names , height from students where height < (SELECT AVG(height)FROM students)"
cursor.execute(sql)
data = cursor.fetchall()
print(data)
for item in data:
print(i... | [
"shishinangs83@gmail.com"
] | shishinangs83@gmail.com |
786bd6edd4e6462b480795388da60ddb8cff1acb | 6117c4df6b0c382064c187c49d861efaf7e757ab | /75/69.py | 819c63367cab9fd8cec1e80b5e501162ea851eff | [
"MIT"
] | permissive | ElyKar/Euler | 8bc4050870275d649199dbab5c930ffeb7b5d708 | 38744b553b22565ac30ece06e2e3fbf3408068e2 | refs/heads/master | 2021-01-10T17:13:20.291206 | 2016-02-21T16:16:40 | 2016-02-21T16:16:40 | 52,213,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | #!/bin/python
from math import sqrt
from fractions import gcd
import time
def div(x):
cur = 2
while cur <= sqrt(x):
if x%cur == 0: return False
cur += 1
return x != 1
def firstDiv(n):
for p in primes:
if n%p == 0: return p
return 0
def totient(x):
if tots[x-1] != 0: return tots[x-1]
first = firstDiv(x... | [
"tristan.claverie@laposte.net"
] | tristan.claverie@laposte.net |
64a783b6691013ba8e0860999d123c8b6a50963e | dc0f18ead291ffd1404b4504aaccb0eaa36426fc | /build/drivers/camera_calibration/image_pipeline/depth_image_proc/catkin_generated/pkg.installspace.context.pc.py | 4ebdc84640d3fb0adb07f845a5e120c8277881ba | [] | no_license | adityavgupta/Intro_to_robotics | cb80fd708270b413bf1dca7171fcd013840292b0 | a4095832c215e7ba9b3bab0cf50389db88d249b9 | refs/heads/master | 2023-01-21T22:37:32.797024 | 2020-12-08T21:20:41 | 2020-12-08T21:20:41 | 303,027,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-ldepth_image_proc".split(';') if "-ldepth_image_pro... | [
"gupta.adityav@gmail.com"
] | gupta.adityav@gmail.com |
9fab134b6befbb4b28932dde056364591c7e0d39 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Occupied_Heating_Min_Supply_Air_Flow.py | 0424ebc569799a5c4ee9349b05b742169e3a8d68 | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Occupied_Heating_Supply_Air_Flow import Occupied_Heating_Supply_Air_Flow
from brick.brickschema.org.schema._1_0_2.... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
2cff202abc4ccbf9f70b3a725e734553ac9a8edb | 8419eaa22e58a2efbb7bdf1bccfc66a9e3288d75 | /tensorflow/python/debug/wrappers/local_cli_wrapper.py | c46a4e7d1aa6dc23eaaad4a0920f649ca8624272 | [
"Apache-2.0"
] | permissive | PipelineAI/tensorflow | f539227fd5d3f304b4f246877e35303dbd388a0c | 5d8e69768230ea8765a7c78cf1fa22c3ab2a4757 | refs/heads/master | 2021-05-05T21:54:02.830548 | 2018-01-15T04:30:05 | 2018-01-15T04:30:05 | 115,791,564 | 0 | 1 | Apache-2.0 | 2018-01-15T05:38:46 | 2017-12-30T11:08:37 | C++ | UTF-8 | Python | false | false | 25,911 | 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
4af5a1e559601a3fa7639ec0400436956b86aae6 | 66aa96d18eead858d02686311e65abd0d840b107 | /Edureka/urls.py | 787b37800ac39f8568a1792612ad05d29c6592ef | [] | no_license | T-betrand/todolist | 5e0da077a16e75d39b411b9d8cc586714f60667a | d925e2f5c65e0ff534dfa869bfc11ac1651dcc53 | refs/heads/master | 2022-12-11T00:26:54.094103 | 2020-08-28T11:34:53 | 2020-08-28T11:34:53 | 286,319,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """Edureka URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-based... | [
"tebobertrand@gmail.com"
] | tebobertrand@gmail.com |
b174b21a400033bea3658e42c0405f2772a218f1 | ac89e5d51d0d15ffdecfde25985c28a2af9c2e43 | /test/test_zebra_team.py | a8bfe0b4f56d71a249fa45e22d97c28ff3ed1b91 | [] | no_license | TBA-API/tba-api-client-python | 20dc4a634be32926054ffc4c52b94027ee40ac7d | 4f6ded8fb4bf8f7896891a9aa778ce15a2ef720b | refs/heads/master | 2021-07-15T16:36:32.234217 | 2020-05-07T00:20:43 | 2020-05-07T00:20:43 | 134,112,743 | 4 | 8 | null | 2019-07-01T03:14:12 | 2018-05-20T02:13:45 | Python | UTF-8 | Python | false | false | 1,961 | py | # coding: utf-8
"""
The Blue Alliance API v3
# Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account... | [
"travis@example.org"
] | travis@example.org |
5021e900edc1b7d5f8d84d3657fbedd354318667 | eb5ca57075c7e7eadc0d6b85f2f648a934646a08 | /python3/write_text.py | 18ee615a400072a0e664db6a953b447fc80b582b | [] | no_license | lamplusoka/trainning | 9b16573eed1bf28f80399e44065e51cbf2cf98ce | 5bfe6d4470ef4d9775aed1a6193922c38f4140c8 | refs/heads/master | 2020-04-03T06:51:31.487284 | 2018-10-30T11:31:29 | 2018-10-30T11:31:29 | 155,086,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/python3
file_name = "/mnt/c/users/lamplus/documents/github/trainning/python3/test_library.txt"
file = open(file_name, 'w')
file.write("dd")
file.close()
file = open(file_name)
data = file.read()
print(data) | [
"43769806+lamplusoka@users.noreply.github.com"
] | 43769806+lamplusoka@users.noreply.github.com |
982141be336b876d0e9a0e53560926e86346b3d3 | f13c586b82224c07f28f7bb7d9dd503e64eb5cb2 | /tests/transforms/test_zx.py | e5ee809a8a296678c7f2c78bffa237613d49293e | [
"Apache-2.0"
] | permissive | therooler/pennylane | 095f104e40254be2ed3050bc7be9ea9d2ee11ebd | fde1f24bd784d6ee2af5c980c2d5010b4c2bbe54 | refs/heads/master | 2023-04-29T13:32:43.115108 | 2023-04-18T09:41:42 | 2023-04-18T09:41:42 | 202,356,685 | 0 | 0 | Apache-2.0 | 2019-08-14T13:30:39 | 2019-08-14T13:30:38 | null | UTF-8 | Python | false | false | 24,635 | py | # Copyright 2022 Xanadu Quantum Technologies 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 ag... | [
"noreply@github.com"
] | noreply@github.com |
b3200048ee7f01b7d6c856d5342ec001c2a8962b | d1a9ba2b4ffe45d10d277c4433723cb78db1e649 | /asutils/gfk.py | 361c63e6fa069fa918980cf22654bf799c17feb0 | [
"MIT"
] | permissive | scanner/django-asutils | 0d4e166f90e87a54d09f7c1b4aee8721de475e2e | 2f65652f74f530929866cb7c216e1814cd1b3994 | refs/heads/master | 2021-06-03T09:43:10.812702 | 2021-04-28T22:29:32 | 2021-04-28T22:29:32 | 3,261,998 | 1 | 0 | NOASSERTION | 2021-04-28T22:29:32 | 2012-01-25T02:50:38 | Python | UTF-8 | Python | false | false | 2,402 | py | #
# File: $Id: gfk.py 1638 2008-09-27 01:47:23Z scanner $
#
"""
From: http://www.djangosnippets.org/snippets/1079/
his is an improvement on snippet 984. Read it's description and this
blog post for good explanations of the problem this solves -
http://zerokspot.com/weblog/2008/08/13/genericforeignkeys-with-less-querie... | [
"scanner@apricot.com"
] | scanner@apricot.com |
585dbe7418c0b2a58abbba253e75a7c3ee39fd1e | fa8f98ac20cab0d7bcdc2fd391a18e3bb6abd933 | /rok 2018-2019/inf/Różne/szkola.py | f64342cb2cb98515cb8310158c1cb9b6b5e1d0f0 | [] | no_license | ppawelo1/pawel | ba2b460ba40eead27bc60b65407be98e916398b5 | f64e6e330887b7e792deb05c98cc18b56d51b9ae | refs/heads/master | 2021-06-21T11:35:52.241596 | 2019-09-20T05:49:04 | 2019-09-20T05:49:04 | 104,464,005 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# dane_uczniow.py
#
import sqlite3
import csv
def dane_z_pliku(nazwa_pliku):
dane = [] # pusta lista na dane
with open(nazwa_pliku, newline='', encoding='utf-8') as plik:
tresc = csv.reader(plik, delimiter=';')
for rekord in tresc:
... | [
"pawel.petelewicz@op.pl"
] | pawel.petelewicz@op.pl |
fda661bae5535e64819a9219ffc931d12216dec7 | a68f8f9444376cfa96eced8fd3ec2d2f40c6947e | /KI/migrations/0003_rename_ksiazka_book.py | 5c3a09b788e4192109a953f6aae6270fb6e96097 | [] | no_license | Kaczmarek-M/Python-projekt | c601c8efe9aecfa9076f28c6a3674e2b66114fc1 | 6b3858863bf494ecad62cc01b92d40489cca60c1 | refs/heads/master | 2023-06-09T07:49:11.720850 | 2021-07-03T18:55:28 | 2021-07-03T18:55:28 | 382,643,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Generated by Django 3.2.5 on 2021-07-01 18:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('KI', '0002_rename_ksiazki_ksiazka'),
]
operations = [
migrations.RenameModel(
old_name='Ksiazka',
new_name='Book',
)... | [
"m.kaczmarek1284@gmail.com"
] | m.kaczmarek1284@gmail.com |
ba1e6e2172af45d6b15aef80027083855e6859c9 | 6f4abf75355b2d5b1e960841555ce09b07cbfee1 | /admin/IDN.py | b3188de71246d48226b4514d754b99e119cf3a26 | [] | no_license | dedene/postfix-cyrus-mysql | b0bf9e59e82549041c2be5cbf2ec2e8e15ab5324 | e7678a7d3b675cf399035db8d828c5b5f53b482c | refs/heads/master | 2020-12-29T03:07:54.225490 | 2010-02-27T11:37:14 | 2010-02-27T11:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | #!/usr/bin/env python
from encodings import idna
from types import *
def mightDecode(s):
if s[:4] == "xn--":
return idna.ToUnicode(s)
return s
def applySplit(s, f):
foo = s.split("@")
if len(foo) > 1:
r = foo[0]
for i in foo[1:]:
r += "@" + applySplit(i, f)
... | [
"alex@brill.no"
] | alex@brill.no |
80f794aa9ba66b1b969e6c17c2c50a7b1e2cd9b1 | 218508c2fd7ba70b2be45e0934673744b3735839 | /students/PeterMadsen/session05/subclasses.py | 4c9ba5d4be3836dfea69b5d193d39350de86304e | [] | no_license | finddeniseonline/sea-c34-python.old | 7e560502c749cfb7c78bd237400cd0f45efb2aca | 4ae3d9e87dcdce17e44135c2d478f0b023d68b88 | refs/heads/master | 2021-01-18T17:08:09.721529 | 2015-05-12T04:07:42 | 2015-05-12T04:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | class SpecialList(list):
def __init__(self):
list.__init__(self)
# Question 1
"""can you override Python default methods to deal with your object"""
def append(self, value):
self[0] = value
# Question 2
def replace(self, index, value):
"""
How would you write a... | [
"cephas.ryle@gmail.com"
] | cephas.ryle@gmail.com |
59788b2cafcd5d7900a6540fc788ae28c818d81d | b0b33c86509c5fb33e6e66e674d6f3bf8f91ef92 | /codes/M3/Music_Mood_Lifter_With_Web_Function/mysite/musicMoodLifter/urls.py | 5ec45ce255ff1016b67409930c4ad745c6dbbb28 | [] | no_license | V3rdant-byte/MusicMoodLifter | c7a6265ffdd8f7d1787efc510780dc78795f8722 | 76f8bd07ec23b43f8d5cbcff7bf530947b16b3fe | refs/heads/main | 2023-05-08T22:56:11.355554 | 2021-06-02T06:28:59 | 2021-06-02T06:28:59 | 368,715,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # backend/server/apps/endpoints/urls.py file
from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
from .views import EndpointViewSet
from .views import MLAlgorithmViewSet
from .views import MLRequestViewSet
from .views import PredictView # import PredictView
router = DefaultRoute... | [
"yangtuo2001@163.com"
] | yangtuo2001@163.com |
4fdb90f42debae152e7675bb4fe6bcec91b00970 | 8f2adbcac084e3e050fbd28d52b67513f8445f60 | /TDD/superlists/TestApp/tests.py | 8f25a46b06b38d6ceec4eda8b91316ce72517b42 | [] | no_license | mattew8/Anything | ce8c9127a5508113f57f02df0f1e24b92a902f0c | 88c1a34a8b53d9a2e4d313e39b40925dfc708b11 | refs/heads/master | 2023-03-11T23:54:25.110567 | 2021-03-04T07:10:27 | 2021-03-04T07:10:27 | 325,308,693 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from django.test import TestCase
# from django.core.urlresolvers import resolve
from django.urls import reverse
from TestApp.views import home
class SmokeTest(TestCase):
def test_root_url(self):
found = reverse('/')
# "/"가 호출될 때 reverse를 실행해서 home_page라는 함수를 호출!
self.assertEqual(found.func... | [
"mattew4483@likelion.org"
] | mattew4483@likelion.org |
56926e8b13956deb65a9d46864ce5c986f68d64b | ed84ceb0b017ed7e8fe6fd3bd57a100e448e4cb7 | /setup.py | 6a7b815dbba18241e2f5712c7d8ac45cd6de697a | [] | no_license | rrader/zk_phone | 4ed7d42d5f0bf8a1216d5fb0fabbf91c8585b401 | bd23f0926b94eec4e3f1f0c0bd900d6990883ebd | refs/heads/master | 2020-12-30T15:41:38.026950 | 2017-09-14T10:12:42 | 2017-09-14T10:12:42 | 91,161,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #!/usr/bin/env python
from setuptools import setup
setup(
name='zk_phone',
version='1.0',
description='Zakupki Phone',
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/zk_phone',
install_requires=[
'pad4pi==1.0.0',
'charlcd==0.4.0',
... | [
"r.rader@smartweb.com.ua"
] | r.rader@smartweb.com.ua |
89594222799bd5fedf98053e52b981f25a662f15 | 628ab6e412e7c4c755bc42d8137acd3da2d4be0e | /tests/console/test__trace.py | ce46746027d4360cee54b5677735b9922033fe1b | [
"MIT",
"CC-BY-4.0"
] | permissive | TrendingTechnology/apysc | ffd7d9b558707b934c5df127eca817d4f12d619b | 5c6a4674e2e9684cb2cb1325dc9b070879d4d355 | refs/heads/main | 2023-06-01T20:19:20.835539 | 2021-06-20T03:53:33 | 2021-06-20T03:53:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | from random import randint
from retrying import retry
from apysc import Stage
from apysc import trace
from apysc.expression import expression_file_util
@retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000))
def test_trace() -> None:
stage: Stage = Stage()
trace(stage, 100, 'Hello!')
... | [
"antisocial.sid2@gmail.com"
] | antisocial.sid2@gmail.com |
03e066e76180050175f2d916800c45b7b5bdbac5 | 2b99e82d3307ae47fac09db249c1633b5d401de0 | /testapp/testapp/testmain/tests/test_webservices.py | 5c9cd6f24eca6047226d460299a28093467dc94c | [
"ISC",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nuxion/django-afip | 2b5e097a01e129de74a9a703919d4f70aad79140 | 7ecc1090680e6f5b3cb9f6ee46716b1d1349f0fb | refs/heads/master | 2023-01-04T01:19:17.926243 | 2020-10-30T09:35:24 | 2020-10-30T09:35:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,261 | py | """Tests for AFIP-WS related classes."""
import os
from datetime import datetime
from datetime import timedelta
from unittest import skip
from unittest.mock import patch
import pytest
from django.conf import settings
from django.core import management
from django.test import TestCase
from django.utils.timezone import ... | [
"hugo@barrera.io"
] | hugo@barrera.io |
b331c79041b99e2b04adb03090428a5e3733b8c3 | ed629bbbc6a76c275db6d9bd62c06b72d3f7d471 | /sockets/client_skeleton.py | bf802a7ec3ce631cc550750860b8710bfa209751 | [] | no_license | rtgfd157/ElevatorControllerProj | b134d3c8035680e0b9c6f758d16be16e28bc55b6 | 11b0b2b623652ebbecc4a5c5606b3843f2696666 | refs/heads/main | 2023-03-04T05:14:59.546424 | 2021-02-07T11:31:39 | 2021-02-07T11:31:39 | 314,550,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | import socket
import pickle
import struct
import sys
import logging
SERVER_IP = "127.0.0.1" # Our server will run on same computer as client
SERVER_PORT = 5678
logging.basicConfig(level=logging.INFO)
# HELPER SOCKET METHODS
def recieve_message(conn):
data = conn.recv(1024).decode()
data_va... | [
"idanz1234u@gmail.com"
] | idanz1234u@gmail.com |
41570a7ae5f758f2a8e67f2f238b1044736cccc7 | 8400dc347281058481c3b8a926493fde0bd7d5a7 | /src/orienta.py | eb1eb73a05e28b27ed7e0474042214de829aead9 | [] | no_license | lva98/PIM0001 | 926c9b7980d4b324cde88fd68edf89be60cba94a | 09794c3ec8d0a0633e5bae1bc7dfa0756c5d3444 | refs/heads/master | 2021-09-08T20:43:06.475160 | 2018-03-12T04:23:57 | 2018-03-12T04:23:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,012 | py | import numpy as np
import scipy
import matplotlib.pyplot as plt
from mylib.convolucao import *
from scipy import stats
from mylib.saveDataBase import *
#from skimage import data
#from skimage.util import img_as_float
#from skimage.filters import gabor_kernel
def getSobelMapGxGy(img, operador, i, j):
valorGw = 0
... | [
"leonardovalerio@live.com"
] | leonardovalerio@live.com |
482f361a3f716b88e023c179adbaed97e6a9f030 | e5068b611850e24c4ac614cc0c1d451fa4dff0df | /add two numbers/add2num.py | f43e00e1cb49d843f4ed7616048a93c2ee3695b6 | [] | no_license | nokk3r-mospolytech/py-mat-sorting-logics-4 | 2ec84bc348bbb818361b0be77160894de774fa8f | 57c220fe4ddf23830ecb8ede7e78f61707f6a6b0 | refs/heads/master | 2023-05-23T10:14:25.307181 | 2021-06-09T22:00:03 | 2021-06-09T22:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | class Solution:
def nextPermutation(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
index = len(nums) - 2
while index >= 0:
if nums[index] < nums[index + 1]:
break
index -= 1
if inde... | [
"nokk3r@mail.ru"
] | nokk3r@mail.ru |
ba01ecea1354ffd90c89a9317db387e811dc7e40 | 98b518b8bf4aef1576b146330546acf687a6ab46 | /ipcam/wsgi.py | 2ce2a7024d43bce371d33ad05e9bf573859ab9d0 | [] | no_license | prabhat-g97/IP-Cam-Solutions | d31ea2c595d67120a9cfc8324c3188b2bb88591c | 3a3cf873170774d4da49c02d0f2eecb6a6aa617e | refs/heads/master | 2023-03-06T01:25:08.622570 | 2021-02-21T06:11:50 | 2021-02-21T06:11:50 | 340,638,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for ipcam project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTING... | [
"76996147+prabhat-g97@users.noreply.github.com"
] | 76996147+prabhat-g97@users.noreply.github.com |
c7d7acd1729de9136517c52cb740e9fc96bd2ebe | 4e60524362802c3fffd0789b554fda65400b014f | /halo_player/src/player.py | abf079678122e6f307548004acd373adf4c8b28b | [
"Apache-2.0"
] | permissive | John-Thunder/acs-logging-test | d8bfa8534c947ad98f7aec90ce291ef2dd643774 | 185868c5bfc7d1ea8d17ec4c8384e44ac80a39ff | refs/heads/master | 2021-01-11T18:24:47.107282 | 2016-10-01T16:44:54 | 2016-10-01T16:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | import config
from log import Log
from summaryTable import SummaryTable
import json
class PlayerService:
def __init__(self):
self.log = Log()
self.summary = SummaryTable(config.AZURE_STORAGE_ACCOUNT_NAME, config.AZURE_STORAGE_ACCOUNT_KEY, config.AZURE_STORAGE_SUMMARY_TABLE_NAME)
def getPlaye... | [
"ross@gardler.org"
] | ross@gardler.org |
0761890b6354a438f49f760f4dda99bd8c4cc5cc | 368ec23355481c81f32d62618504cbc8b73bec9b | /Computational Investing/Metrics.py | 5cd66643aa9dd8cc5edb10d37224a93b9141642b | [] | no_license | manuwhs/Coursera-Codes | f6d38d30f55b55b651101319031acb9d18c51125 | 771b208c3645953ba4b93ee279ec73af181a9edd | refs/heads/master | 2021-01-24T01:02:25.175360 | 2018-02-25T01:16:34 | 2018-02-25T01:16:34 | 122,794,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | # -*- coding: utf-8 -*-
"""
u
"""
import functions as fu
import numpy as np
### LOADING FUNCTIONS ###
data = fu.load_dataset("./aapl.csv")
price = np.array(data["Close"]);
labels = ["Apple Price at Close", "Days", "Dollars"]
fu.plot_graph([],price,labels, 1)
Returns = fu.get_Return(price)
labels = ["Apple Return Pr... | [
"manuwhs@bitbucket.org"
] | manuwhs@bitbucket.org |
dfa05cec56fc6d3790362c07eacd29a72d036d24 | ca2f520ba362cbe0919fb91d66c7c6f4300902ba | /graph.py | c2f546b69ad725f75260f573e2e07258eb7237fa | [] | no_license | rbilgil/travelling-tourist | ea1dd0541a406593b1410b601227b42e7551bb88 | 0f03364296fcee17e214d1298b35e08bc52b80a8 | refs/heads/master | 2021-01-10T19:09:01.346848 | 2015-05-08T20:10:00 | 2015-05-08T20:10:00 | 34,953,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,822 | py | from robin_queue import Queue
from robin_queue import PriorityQueue
from heapq import *
import json
class Graph:
graph = {}
weights = {}
edge_properties = {}
def as_json(self):
return json.dumps([
self.graph,
self.weights,
self.edge_properties
])
def from_json(self, data):
obj = json.loads(data)
... | [
"robin.bilgil@gmail.com"
] | robin.bilgil@gmail.com |
a6ec0da92201d0c47e23a3c07660c006c52bd8e0 | b983144f3fd4512a9d4e2bcdc66be5c46924cd91 | /dp_builder/__main__.py | 5c66ce9bffa31fff70610c4dbbe02346a0f3521b | [
"MIT"
] | permissive | lexover/django_project_builder | 9e1aa53e968f5d95c01b63399f2fc94609e70b4c | 3c74f6f05c5b2d3cbdcc1868fec06ab463e3875f | refs/heads/main | 2023-03-08T22:29:49.706506 | 2021-03-01T14:43:47 | 2021-03-01T15:13:53 | 343,432,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | from . import dp_builder
if __name__ == '__main__':
dp_builder()
| [
"lexxover@gmail.com"
] | lexxover@gmail.com |
eccb090631518fd4730c8d3997126bfe544be42c | fc28f2bfd212586e33e2abc412e3bf8e7cffef7b | /FlaskApp/Optimization_model.py | 14f2998cab1e61a390862f5526399f92e56d26f0 | [] | no_license | ugan9eds/TEAM_122_DVA | 0feab6c22eca684d486ee30eb7fe754cff0ea3df | ded76196f697ba75f5710b773a633dc928422d88 | refs/heads/master | 2022-12-23T21:07:10.095002 | 2020-04-18T04:03:15 | 2020-04-18T04:03:15 | 236,345,208 | 0 | 0 | null | 2022-12-09T22:12:48 | 2020-01-26T17:06:13 | Jupyter Notebook | UTF-8 | Python | false | false | 2,869 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
def optimization_model(data,already_selected=[]):
import cvxpy as cp
import numpy as np
import pandas as pd
# In[2]:
# In[14]:
#Test of forcing player selection
already_selected_data = data.loc[data['Name'].isin(al... | [
"noreply@github.com"
] | noreply@github.com |
76140d045f6413a599080d17142efe2e7cb1b40d | 5f490d281ea385a692e7090a28867c47a82ccf61 | /app/__init__.py | 8c7d2aad3cd244daad69e7d41f32c8fa4b57b182 | [] | no_license | agoe/FlaskLogicBankSFRS_Demo | 7db0a93255ec8c4961ddcd32f030a7e369f0a8c1 | 62857caee4ba22a870f22b5f00da6f8ce1b742bd | refs/heads/master | 2023-02-12T04:56:00.325377 | 2021-01-06T15:46:37 | 2021-01-06T15:46:37 | 327,120,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | from admin.admin_view_ext import AdminViewExt
from db import db, session
from flask import Flask
from api.json_encoder import SAFRSJSONEncoderExt
try:
from flask_admin import Admin
from flask_admin.contrib import sqla
except:
print("Failed to import flask-admin")
from safrs import SAFRSAPI
from flask_admin... | [
"achim.goetz@gmail.com"
] | achim.goetz@gmail.com |
b0a102927596daf62fc0288a61c20a0b7fcd64e2 | 67dbf167d4fcd52a2ac6d874502a1cbed8c0300e | /self-driving-car/p3_behavior_clone/load_data.py | 4bf29ecd6c6c7f442120006f5bc0149f6dea7a0a | [] | no_license | yaoyaowd/tensorflow_demo | 9e0c20e971f64d518fbdf3e989270b79ad5e1092 | 969f69b32cb2db6f86f4bf00aa29961b5e9cfc89 | refs/heads/master | 2021-01-17T16:19:08.470495 | 2018-09-10T18:35:46 | 2018-09-10T18:35:46 | 61,096,382 | 3 | 0 | null | 2016-09-30T23:45:01 | 2016-06-14T06:09:16 | Python | UTF-8 | Python | false | false | 3,016 | py | import cv2
import csv
from config import *
import numpy as np
from os.path import join
import random
from sklearn.utils import shuffle
from sklearn.model_selection import train_test_split
DIR = '/Users/dwang/tensorflow_demo/'
def split_train_val(file, test_size=0.2):
with open(file, 'r') as input:
reade... | [
"dwang@wish.com"
] | dwang@wish.com |
50f8231b426f4b90e32e818ad07606ec9cd78ad7 | 77f0dc068f1a8353ffc23ffd3457c4af8507b114 | /lang/python/practices/exception_with.py | a4d0bd763ba0a31e90a526fd5c94fc45577e84ae | [] | no_license | hclife/code-base | aa549a2b6a33b3ed1f0932801f0eb85eca3461de | f22ba81b8d363c50c3ac3fa5409e8fb3440cda83 | refs/heads/master | 2021-07-18T19:23:05.828540 | 2021-05-16T10:24:32 | 2021-05-16T10:24:32 | 83,208,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | #!/usr/bin/env python3
with open("poem.txt") as f:
for line in f:
print(line,end='')
| [
"mafia.larkin@gmail.com"
] | mafia.larkin@gmail.com |
aa1c6f862064385437b98c6ba39a39bb78ef6683 | d3974efafaa04f016d1437cc6e63eec9afea45b7 | /perf/Benchmarks/KV stores/drivers/bdbdriver.py | f951ca17258f556936ba4b81b8ba58c67c56b6a4 | [] | no_license | madthanu/alc-strace | c6a24d7b7cdea866cf599fb24c7029d69682ef86 | b791b5823dea82dbfa4f8d050c77e43c007d0277 | refs/heads/master | 2021-01-02T09:13:58.136533 | 2014-07-26T03:39:14 | 2014-07-26T03:40:50 | 15,639,732 | 1 | 0 | null | 2014-02-27T21:56:03 | 2014-01-04T21:15:44 | C | UTF-8 | Python | false | false | 3,546 | py | from datetime import datetime
import lmdb
from abstractdriver import *
import os
from bsddb3 import db
import shutil
import sys
import time
class BdbDriver(AbstractDriver):
DEFAULT_CONFIG = {
"sync": ("The durabilty of the key-value pairs being stored. ",
"SYNC"),
... | [
"ra@cs.wisc.edu"
] | ra@cs.wisc.edu |
444f54b404ef06bdb9913c5f1d2595544a062699 | d3b4796742e3936d72806c362e177d61d61ec214 | /9.py | 27d92e387f87fa9712160fb4c8c24b827c1f1442 | [] | no_license | YuhuiDai/Project-Euler | 3d6cbf2aad92307a3e0ab6a4c2470d00f86f6092 | 60e74112da6bf0a9e2fce5c98e0bb40fe910810a | refs/heads/master | 2021-01-10T14:39:35.317969 | 2016-04-10T02:26:10 | 2016-04-10T02:26:10 | 55,876,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | def solver():
for a in range(1, 334):
for b in range (2, 335):
c = 1000 - a - b
if a != b and b != c and a != c and a<b<c:
if a**2+b**2 == c**2:
print (a,b,c)
return a*b*c
result = solver()
print (result) | [
"yd610@nyu.edu"
] | yd610@nyu.edu |
aa867b8442ee4cc96fa8e58208a47dd1f8401733 | 0d7888b73b9aff08979fb6d0ff65ffb681a43645 | /django/tulingxueyuan_views/tulingxueyuan_views/urls.py | bce4b564332123a7cb2cf53f950826a821a7f3b1 | [] | no_license | RyanPeking/PythonPractice | 21a7439de4cddba1dd2dc095d0ff3a6319b21f41 | 34c6873ff99c8cbb06564481ce0237dfebf32732 | refs/heads/master | 2020-05-17T19:36:14.746740 | 2019-08-05T01:37:54 | 2019-08-05T01:37:54 | 183,918,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from django.conf.urls import include, url
from django.contrib import admin
from teacher_app import views as v
urlpatterns = [
# Examples:
# url(r'^$', 'tulingxueyuan_views.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^teacher... | [
"wushunyan@163.com"
] | wushunyan@163.com |
84b44c7ea2a5643257246c034170c1cbf678694f | cced3f59471c78ea68a53f5bf7e875033681ac8d | /benchmark.py | ae7333fe3407b09d43244fdafc2fbd00039dcd4d | [] | no_license | samuel1208/facepp-python-sdk | 31164642a68b95cc20dab4abf7ce499450a61f17 | cfade875bf4b98a5d444f5a2ec89608f207c1937 | refs/heads/master | 2021-01-18T01:51:05.104146 | 2014-03-23T14:04:00 | 2014-03-23T14:04:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,020 | py | #!/usr/bin/env python2
import sys, os
import getopt
import datetime as dt
try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET
bm_total_face_num = 0
bm_total_male_num = 0
bm_total_female_num = 0
res_total_pos_face_num = 0
res_total_neg_face_num = 0
res_total_pos_mal... | [
"samuel@debian.samuel"
] | samuel@debian.samuel |
f966c3c04a0ff19a2cee9c8acb70774a26f66891 | 897c7501532e2d9fdd8d9531b7fdb40df6e49e8d | /build_distance_matrix.py | ee63d39040f85c1602e1ed5aef6e72dc81e2a175 | [] | no_license | martinkang93/hpa_image_analysis | 36da612aab06a1cc1ecacd79acacd78ac42f524f | aeb850939444b2e40ca0b6930b9fc0d7604ce869 | refs/heads/master | 2021-04-22T16:36:01.992178 | 2020-05-16T21:30:41 | 2020-05-16T21:30:41 | 249,858,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | from utils.utils import img_load_aws, save_patch
from utils.image_preproc import patch_generator
from feature_extraction import InceptionV3Vectorizer
import numpy as np
import scipy
from tqdm import tqdm
import pandas as pd
import os
import pickle as pkl
import json
img_vectorizer = InceptionV3Vectorizer()
organ = 'c... | [
"martin.kang93@gmail.com"
] | martin.kang93@gmail.com |
91aa630e5b8992a683ccb7f0b84b1a9309810bf1 | 06e6e2fc2b3755f90e09bece421e1a40b2d79a10 | /D3/TestRequests3_teacher.py | 88633a9eb3ad4ebf44f3b5f65957520aa236b477 | [] | no_license | MrBearTW/TCFST | 5a5942c15ca51754e317f8de3f5acd08eee758f9 | 25d50fc56a13cf8a68e3fd42d5cffc435c255162 | refs/heads/master | 2022-12-11T00:43:09.430322 | 2019-06-01T15:47:18 | 2019-06-01T15:47:18 | 102,337,507 | 0 | 0 | null | 2022-12-07T23:27:56 | 2017-09-04T08:28:14 | Python | UTF-8 | Python | false | false | 1,325 | py | import requests
from pymongo import MongoClient
REST_EU_ROOT_URL = 'http://restcountries.eu/rest/v1'
def get_mongo_database(db_name, host='localhost',port=27017,username=None,password=None):
if username and password:
mongo_uri='mongodb://%s:%s@%s/%s'%(username,password,host,db_name)
conn=MongoCli... | [
"jamieperng@gmail.com"
] | jamieperng@gmail.com |
08fe9b7806639360d7027be99afefb7df5a948af | 8b669c6c6e1a5c30fe15046e3bb7a1053826fbea | /game.py | e574da9b67750de74c4ecdcecfe06bc88d87d876 | [] | no_license | eetukarvonen/Battleship | 34bfdb6807199b90a3349bde12fe0a4c049d5455 | 573bea1570957118185d6e834ed2fa2e0bb35de1 | refs/heads/master | 2021-04-08T00:54:23.681447 | 2020-03-26T11:05:32 | 2020-03-26T11:05:32 | 248,721,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,886 | py | """
Battleship boardgame
@author: Eetu Karvonen
Notes:
Empty square = ' '
Ship square = 'a' or 'b' or 'c'...
orient horizontal = 0
orient vertical = 1
"""
import random
import time
import ai
game = {
"boards": {
"boardP": [],
"boardC": [],
"boardC_show": []
},
"player_shi... | [
"nyymi@localhost.localdomain"
] | nyymi@localhost.localdomain |
787c2041427a7659e5163b4812c8e996d8c7b7f6 | 76c7b5f702f1122a4634298cae86a7f27a11ec7b | /Problem7.py | 4a94da2c209d444e2243545f844acbcf8023545a | [] | no_license | gtonra89/fundamentals-repositry-sheet- | 2ea1ea2460b2b2ba8c7a518a75233de4b7f56ea9 | d8f9efad862c431826efe926efec27b0b69b28aa | refs/heads/master | 2021-05-16T07:56:13.729672 | 2017-11-14T14:30:22 | 2017-11-14T14:30:22 | 103,947,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # Program to check if a string is a palindrome or not
# change this value for a different output
def palTest(str):
# make it suitable for caseless comparison
myString = str.casefold()
# reverse the string
reverseString = reversed(myString)
# check if the string is equal to its reverse
print("string to chec... | [
"gtonra89@gmail.com"
] | gtonra89@gmail.com |
9a66d5b0dedcb4a86a41e85de4805ee83352a0da | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.3/tests/regressiontests/db_typecasts/__init__.py | 5c336d269a796c4bded21eea80d57c2199e00548 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.3/tests/regressiontests/db_typecasts/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
2bd7c5539ff61bfdf0ea6874bb9556331e936d1f | 41dc956684872313ed19824453088ea5bffd732c | /support/obstacle.py | 2425d54380a75ffbf139cd2473b13189a1b4d76c | [] | no_license | NicholasM0rris/Canadarm-Continuous-Motion-Planning-of-robot-arm | aefcb25a6e7ebca8f3c49830469b724c9c0022e9 | 2dc6369e2b3c0969eeee721b7d97d5585bb46cf7 | refs/heads/master | 2020-07-26T19:15:12.465134 | 2019-09-30T08:28:02 | 2019-09-30T08:28:02 | 208,742,987 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py |
class Obstacle:
"""
Class representing a rectangular obstacle. You may add to this class if you wish, but you should not modify the
existing functions or variable names.
COMP3702 2019 Assignment 2 Support Code
Last updated by njc 24/08/19
"""
def __init__(self, x1, y1, x2, y2):
... | [
"nicholas_m0rris@hotmail.com"
] | nicholas_m0rris@hotmail.com |
a17386995cdeb448d6499cc0e565215683fe5218 | 9e694d17b32d60139da026c2d46ef01219eca2b7 | /moderator/views.py | db14ad7067c66c3a6cd8a5c5d9960067458d2a8b | [] | no_license | bronejeffries/AutoResponseSystem-api | f599035f25967bd8015d214c93e39d047c53c99b | aee54deaf0f0879820a7d86e071d935210a7b6b8 | refs/heads/master | 2020-04-25T17:52:48.415587 | 2019-09-13T05:25:45 | 2019-09-13T05:25:45 | 172,964,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.contrib.auth.decorators import login_required
from Ars.decorators import Get_check
from Ars.models import Session
# Create your views here.
@Get_check
@login_required
def index(request):
co... | [
"ssematebrian2067@gmail.com"
] | ssematebrian2067@gmail.com |
db29248ffcdd3c9a0e1b7178cbd41c0c402288b3 | e15e9160e4627c5e05f87706ffed90a581653a37 | /src/googlenet.py | 705f6d1c4d4d72c3fab7d5b33f31b4ba908327b2 | [
"Apache-2.0"
] | permissive | chhwang/cmcl | eab05d3f070c2a0e4876b99b96f944ba4668a1e9 | 57f41f4b166b8544c56580f9d32ee98b997e3f59 | refs/heads/master | 2021-01-21T19:13:21.781746 | 2018-08-04T05:04:48 | 2018-08-04T05:04:48 | 92,129,458 | 15 | 5 | Apache-2.0 | 2018-08-04T05:04:49 | 2017-05-23T04:34:17 | Python | UTF-8 | Python | false | false | 3,610 | py | # Author: Kimin Lee (pokaxpoka@gmail.com), Changho Hwang (ch.hwang128@gmail.com)
# GitHub: https://github.com/chhwang/cmcl
# ==============================================================================
import tensorflow as tf
import layers
from feature_sharing import feature_sharing
FLAGS = tf.app.flags.FLAGS
if FL... | [
"ch.hwang128@gmail.com"
] | ch.hwang128@gmail.com |
81fe9826eff3fbe41c176a0739e05a9336a8ed00 | 887e3929398db35245dfae711afeba5e7e14d26d | /Projects/python101/projects_/continue_1.py | 026bf61efc7d5311629d69e50307926a3d41a924 | [] | no_license | zmcburrows/RPG | e9d38baf0c0f3a655ed3a1f16de1d9993ef0343c | 629a708cd26ea7dd02933425c02a2f15cc5a9e16 | refs/heads/main | 2023-09-04T18:58:25.441050 | 2021-11-22T11:55:16 | 2021-11-22T11:55:16 | 426,614,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from page_424_2 import soonhowever
def continue_2():
forwards = input('''
"There’s no point in stopping now.”
When you wake you up,
you continue downhill, braking for water breaks and to record shots of your surroundings.
''')
if forwards == "":
soonhowever()
| [
"zaria@Zarias-MBP.attlocal.net"
] | zaria@Zarias-MBP.attlocal.net |
7a0964f5f6b521df5c70f2ffa9bbe478c4c51b81 | f256db5b4f10dc5945076a35fa11f8db6fa97603 | /auto_report/jira_data_aly.py | 5a373c4c9e6b6bd619cb1ee53f75b21ebd6c6757 | [] | no_license | weijie-xiao/test_jira_jenkins_report | 207a069cf842a89f7cc559a21e93b76905517985 | 4647831a30eb9108b122b020b240a908a3b95174 | refs/heads/master | 2023-04-15T14:20:38.702438 | 2021-04-18T06:34:03 | 2021-04-18T06:34:03 | 359,063,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,698 | py | #!/usr/bin/python
# coding=utf-8
"""
Created on 2018年08月16日
@author: qyke
jira 接口类
"""
import re
import time
from typing import List
from urllib.parse import quote
from jira import JIRA
from auto_report.logger import Log
tag_re = re.compile(r'(?P<git>git@gitlab.mobvista.com:[\w\.\/\_]+\.git) (?P<tag>[\w\.\/\_]+)')
... | [
"weijie.xiao@mobvista.com"
] | weijie.xiao@mobvista.com |
b8a2899cd37bf41766dddcdfb23036f4d5561f02 | 1a783cb87ecb4b23c9525d7f79cae9e3c669542a | /Analysis/scripts/orderparams.py | 3dff71be8b15f59adf868eda48a79ee238919fb5 | [] | no_license | eshamay/Aqueous-Salt-Analysis | c3837f31287816ef5b09b888ebbad3e79c905de7 | 05998f15fc8b972cd1435dd85ccd03eb4fada4af | refs/heads/master | 2021-03-12T19:59:36.853799 | 2009-04-26T04:10:07 | 2009-04-26T04:10:07 | 184,777 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | #!/Library/Frameworks/Python.framework/Versions/Current/bin/python
import sys
from OrderParameters import *
o = OrderParameters(sys.argv[1])
o.PlotData()
| [
"eric@guru.uoregon.edu"
] | eric@guru.uoregon.edu |
7c8b63957868f071e3bdc7e98d7f2b764c95dac4 | 7f3e6f8559b089892eb94554a1451ccf1397f3cc | /paint/apps/servcie/views.py | 4c339f9e465cd885043cf7bce15bcbadfac6cdeb | [] | no_license | ivanguk10/paint | 6b8deb5c100aedd23d36a823acfb47d0bcb129bd | 1acf91fc1cc7f4a0e0662c7c66ef01cfe41d7ab3 | refs/heads/main | 2023-03-17T11:20:13.574373 | 2021-03-12T22:00:32 | 2021-03-12T22:00:32 | 302,305,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from .models import *
from .forms import CommentForm
def main(request):
return render(request, 'sto/main.html')
def main1(request):
comm = Comment.objects.all()[:4]
return render(request, 'sto/main1.html', {'comm... | [
"vanyaguk135@gmail.com"
] | vanyaguk135@gmail.com |
24e6ec345fd84897f8452a4a2c7b65ed1d4e6365 | 2541c644fa91a131b827edf6391b69fc36aec50d | /network_scanner.py | 992381afe0556b1b8c952996cd5da4d4df6dd10f | [] | no_license | RajeshReddyG/PythonScripts | ca49303a1a762510cd6574db780377a37c32187b | 175f4993664609a5bbd30695d6bd4319d7ae889b | refs/heads/master | 2020-04-17T16:40:48.724913 | 2019-04-05T05:11:27 | 2019-04-05T05:11:27 | 166,751,049 | 0 | 0 | null | 2019-01-21T05:01:56 | 2019-01-21T05:01:56 | null | UTF-8 | Python | false | false | 1,651 | py | import socket
import netifaces
import subprocess
'''
Determine your own IP address
Determine your own netmask
Determine the network range
Scan all the addresses (except the lowest, which is your network address and the highest, which is your broadcast address).
Use your DNSs reverse lookup to determine the hostname for... | [
"bhanuputtareddy@gmail.com"
] | bhanuputtareddy@gmail.com |
da665bc4ed71047049f74b5eb1a9842b4bed9ac0 | 2f45eddb325b15c8844bcfff594221aa2dda7581 | /Queue/PriorityQueue.py | e649ef7911dc4cfa34dc96bbb7d85f36b55b2f67 | [] | no_license | balandhanka/Data-Structures-using-Python | 3d6a82f700a188c1b292ecf7bc2330ba71b28ca8 | 3a570aa036e092cf50820e550fd47f6e64ec6c52 | refs/heads/master | 2022-12-02T05:07:20.630448 | 2020-07-28T08:18:03 | 2020-07-28T08:18:03 | 260,622,572 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | # Author: BALAN DHANKA
class PriorityQueue(object):
def __init__(self):
self.queue = []
def __str__(self):
return ' '.join([str(i) for i in self.queue])
# for checking if the queue is empty
def isEmpty(self):
return len(self.queue) == []
# for inserting an element in the ... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.