blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f1f35cd3e6246382f9d1003ac1d2188b27d3137 | 14a913fce4b538b22f28409645cd6abe3455808f | /bigquery_storage/to_dataframe/main_test.py | 8335b437063c827cd6d43c4af690752455ae19dd | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iamLoi/Python-Random-Number-Generator | 8da7dbd37cb13a01232c8ed49b9df35a99c63d73 | 7579e8b15130802aaf519979e475c6c75c403eda | refs/heads/master | 2022-08-29T19:05:32.649931 | 2019-09-14T14:48:58 | 2019-09-14T14:48:58 | 208,454,877 | 2 | 1 | Apache-2.0 | 2022-08-05T21:57:49 | 2019-09-14T14:51:05 | Python | UTF-8 | Python | false | false | 5,502 | py | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | noreply@github.com |
d8147b401cc194546eaec87496a9399bd71110d4 | 972a0fe8628b4df5c92f0fde2b675e922366d65e | /word_game/ps3.py | f26fa5bb6dc2d2be386115aa0c30a0116e84da02 | [
"Giftware"
] | permissive | kaminskykasuga/Practice | daee224965ac40e217917f7a149c4a09146b2abc | 2dcdd1bb5706fe727179e534a752a1a6ab7a5d73 | refs/heads/master | 2023-02-09T08:50:39.640768 | 2020-12-25T00:45:30 | 2020-12-25T00:45:30 | 300,264,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,246 | py | # 6.0001 Problem Set 3
#
# The 6.0001 Word Game
# Created by: Kevin Luu <luuk> and Jenna Wiens <jwiens>
#
# Name : <your name>
# Collaborators : <your collaborators>
# Time spent : <total time>
import math
import random
import string
VOWELS = 'aeiou'
CONSONANTS = 'bcdfghjklmnpqrstvwxyz'
HAND_SIZE = 7
SCRA... | [
"nelsireni@gmail.com"
] | nelsireni@gmail.com |
f691f0aaea24767b63e9cf391127da7194c7efe7 | 9cb61215c23ac8727d840fc723edc4f64133becf | /ex13.py | 61854a2eb61aaaed563193be3f50faa10a1331d7 | [] | no_license | dkuldeep11/learnpythonhardway | d35bb67ec5116f03eb365345f1f7e3317d665040 | 9063226e7a39a00cb2cf3a3b38fee046b7a5efe5 | refs/heads/master | 2021-01-23T00:07:26.743403 | 2014-07-13T23:24:47 | 2014-07-13T23:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from sys import argv
#a1, a2, a3 = argv
a1 = argv
#print a1, a2, a3
print a1
| [
"dholek@usxxzeldim1m1.corp.emc.com"
] | dholek@usxxzeldim1m1.corp.emc.com |
7732740d9942842ec90fefc669ae808d4df1cc43 | e850b0799c80238cee7525086045aabc95bb9a5e | /CRUD/crudoperation/migrations/0002_auto_20201029_0851.py | 15222e8778d000367178ebc868586aea3a7f14f7 | [] | no_license | anushapanta/Django-CRUD-with-forms | 3c0642074496010e1b88ae219e736c1c5c3f764e | 067928e9b5b4a1c5f3a070520a460432d6319d15 | refs/heads/master | 2023-01-08T10:50:38.800394 | 2020-10-29T03:12:27 | 2020-10-29T03:12:27 | 307,575,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # Generated by Django 3.0.6 on 2020-10-29 03:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('crudoperation', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Student',
new_name='StudentDetails',
... | [
"anusha474232@gmail.com"
] | anusha474232@gmail.com |
1df461cffc8c702acf4cbc9c3e8fb0a00e1bdaa8 | eafde321dbe5f4dd30c87ddaad2431523a69adc3 | /todo/migrations/0001_initial.py | a7788b043c2308985fc16fd0fe041c3ea65b87a6 | [] | no_license | nandibula03/TODO_Project | e1acac35e3be3bd0b30444c937947e6f47414e0e | f72afedc224d0d2e0016e7930185ae4584de650d | refs/heads/main | 2023-01-22T20:34:03.098574 | 2020-11-22T13:13:12 | 2020-11-22T13:13:12 | 315,040,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | # Generated by Django 3.1.2 on 2020-11-20 12:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"bulanandi2015@gmail.com"
] | bulanandi2015@gmail.com |
e5d3b218fb8e020f6f1d02c888dba5e26b8db438 | 0b6fbd1b8982d2bd50b0cbe36ec2ca5fe410ef0f | /mysite/chat/routing.py | bb83c83861e3f60389b29c26089a67ff15e8f7ae | [] | no_license | sohamnavadiya/django-channel-example | 17908419256ad6df4d166b17197964b550a89f44 | 8044d294402d9232e70ec99b0ef15993d16510d7 | refs/heads/master | 2020-03-19T04:49:02.093856 | 2018-06-03T10:02:08 | 2018-06-03T10:02:08 | 135,870,455 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from django.conf.urls import url
from django.urls import path
from . import consumers
websocket_urlpatterns = [
url(r'^ws/chat/(?P<room_name>[^/]+)/$', consumers.ChatConsumer),
] | [
"som.insomniacs@gmail.com"
] | som.insomniacs@gmail.com |
54dead29b1debe23d37ef787e60717e6ac88e662 | d0ca36093b690328d199be84f23c660f0b9eabf3 | /platformio/stima_v4/test/nucleo_uavcan/uavcan-slave-th/nnvg_compile.py | a4b2f11d5ecc653c0d792aefe45bd14ae43398dc | [] | no_license | r-map/rmap | 9bb001b7680463d9d6a1dfefb554453f722fbcf2 | 88e3135ef981a418bb3c7ab652bfe381b6361e05 | refs/heads/master | 2023-09-04T00:00:01.294693 | 2023-09-01T18:14:25 | 2023-09-01T18:14:25 | 39,561,369 | 57 | 61 | null | 2023-06-07T09:45:06 | 2015-07-23T10:34:48 | C | UTF-8 | Python | false | false | 1,143 | py | #Import("env")
import subprocess
print("execute","nnvg --target-language c -O include --target-endianness little --generate-support only")
subprocess.check_output(["nnvg", "--target-language", "c", "-O", "include", "--target-endianness", "little", "--generate-support", "only"])
print("execute","nnvg -I data_type... | [
"m.gasperini@digiteco.it"
] | m.gasperini@digiteco.it |
46658515c8bdc9f7b818c3afffe82a2d8af6297c | 88a7bf3fc30d4b9c309a82729cd60acc63d13721 | /matriz_cont.py | be33c4cd78b2ffb04e0dcc03453c0dd5cb44d66c | [] | no_license | AbidelLux/matrAbdi | 4cbd2964e97ade283e15e5da6b8b4fca4ba3688b | 3e5024bd1005e842ad632535f2fb13e0dd14e6df | refs/heads/master | 2023-06-04T12:35:56.769199 | 2021-06-24T04:40:48 | 2021-06-24T04:40:48 | 379,804,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,904 | py | import os
class matriz_cont():
def __init__(self)-> None:
self.head = None
def filaNoExiste_ColNoExites(self,posx,posy,listaCabeza,nuevoNodo):
listax = listaCabeza.cabX
while listax is not None:
if(listax.fil_x == posx):
break
listax=listax.sigui... | [
"3031591380108@ingenieria.usac.edu.gt"
] | 3031591380108@ingenieria.usac.edu.gt |
e8a4561139ac67ec9ff6b9e1ef9435bd1a4287c1 | ba09263d1a059cc431710b261d09c26770a3faa4 | /start.py | 04affd579457a4cada2497c1aed70f99661fa700 | [] | no_license | makarowdmitry/sss | f71413b2985ac1f081f301415f437fdd247cede0 | 6d4e1e3c07ccbc87bcd1dab3a6fe389f852623ab | refs/heads/master | 2021-01-02T08:22:03.639518 | 2015-07-09T23:57:15 | 2015-07-09T23:57:15 | 38,263,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,884 | py | # coding: utf8
#! /usr/bin/env python
# import paramiko #, base64
# 1. формируем файл скрипта
# 2. заливаем его на сервер и исполняем
# 3. Чекаем все прокси
import re
import os
import paramiko
PROXY_USER = "goemailgo"
PROXY_PASS ="q8uir"
def create_script_install_proxy(ip,pr_user,pr_pass):
create_file = open('... | [
"makarow.dmitry@gmail.com"
] | makarow.dmitry@gmail.com |
945243effbaa22c0f12880fd4f48299da9340a75 | 624497d346efc953f201c6906be74b9c29ee17d6 | /Des/python/Des/main.py | 7f98e3f87ef70dae831de4e4d524bf58caa3a679 | [] | no_license | ChebukinMatvey/Cryptography | ff7e427b07d19c47eb38f5b33756a98bc0f5a718 | b5fb921bad4d19aabcca788a4ba3e527748ae4c9 | refs/heads/master | 2020-05-17T16:01:58.914509 | 2019-05-02T09:18:24 | 2019-05-02T09:18:24 | 183,806,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | #!/usr/bin/python3
from functions import *
from encrypt import encrypt
from decrypt import decrypt
if __name__=="__main__":
file = open("./info","rb")
ip = read_ip(file)
r_ip = reverse_ip(ip)
keys = read_keys(file)
matrix = read_matrix(file)
test = 17179869187
ci = process_block(test,ip... | [
"matveynanaren@gmail.com"
] | matveynanaren@gmail.com |
9defdb8cd613a9d3058622b33439b19d0cc2b924 | d45bc9b5429d5cc6eb56b921097f9b2546a88bf2 | /src/commands/__init__.py | 8aa591d8a1103edd9a314542e01367d6e061948e | [] | no_license | DACUS1995/Voice2Command | d8e6291e0bc91e68b668f429eccf912d452a3443 | 312516d6e1c2d9aace0e8be7d2c4a44f9bb6d202 | refs/heads/main | 2023-03-03T23:02:48.699071 | 2021-02-15T20:57:09 | 2021-02-15T20:57:09 | 302,987,955 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from .simple_commands import SimpleCommand
SIMPLE_COMMAND_TYPE = "SimpleCommand" | [
"studormarian@gmail.com"
] | studormarian@gmail.com |
8b702529300a28ebc932d16a695f5311094c469d | 48ffde5f19dce603afb5caffe2e71d752c526a52 | /tests/PyroTests/test_serialize.py | c740011d7425daf3732284e6fc5e82dcd0d82f30 | [
"MIT"
] | permissive | pevogam/Pyro4 | 704b5aec18e1ade7457830d1c7fcc406c4d464f5 | 4d009f6a111c071d22c21e1ab7ba43c5e9310b56 | refs/heads/master | 2020-03-25T07:46:31.978715 | 2018-08-04T12:24:51 | 2018-08-04T12:24:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,946 | py | """
Tests for the data serializer.
Pyro - Python Remote Objects. Copyright by Irmen de Jong (irmen@razorvine.net).
"""
import array
import sys
import collections
import copy
import pprint
import pickle
import base64
import unittest
import serpent
import math
import uuid
import Pyro4.util
import Pyro4.errors
import P... | [
"irmen@razorvine.net"
] | irmen@razorvine.net |
959b36ffc39fe17b4ec4cb1d925ad67bca447215 | 0452408a98e03408508b4889ed68a8d0f2d9f8cf | /alphatwirl/roottree/Events.py | dcd99a451aa2f0d07fe62f0b79f023eb3c2325ed | [
"BSD-3-Clause"
] | permissive | benkrikler/alphatwirl | 3318e79b89ce0e79c4a4399c7a40c789531f0e60 | cda7d12fec21291ea33af23234fc08be19430934 | refs/heads/master | 2021-01-23T12:54:05.101466 | 2018-09-26T13:13:18 | 2018-09-26T13:13:18 | 93,210,643 | 0 | 0 | BSD-3-Clause | 2018-03-19T12:27:16 | 2017-06-02T23:18:59 | Python | UTF-8 | Python | false | false | 2,629 | py | # Tai Sakuma <tai.sakuma@gmail.com>
##__________________________________________________________________||
class Events(object):
"""An iterative object for events.
You can use this class to iterate over entries in a ROOT TTree.
You can instantiate this class with a TTree object and an
optionally a ma... | [
"tai.sakuma@gmail.com"
] | tai.sakuma@gmail.com |
cf363c988b6badef51b74389c99ca6acff643e5a | 97543ae8e1ad7bf3d17dd87171aaac04f6737b5f | /bibliopixel/drivers/ledtype.py | b1a962f06ec533a9bbfeac352c4d4ccbe0cf78b5 | [
"MIT"
] | permissive | dr-aryone/BiblioPixel | a3c630bf1cd5db2b014b86775d283c61565a193e | fd97e6c651a4bbcade64733847f4eec8f7704b7c | refs/heads/master | 2020-05-27T16:19:15.043592 | 2019-03-23T08:52:37 | 2019-03-25T11:10:39 | 188,698,414 | 2 | 1 | MIT | 2019-05-26T15:12:38 | 2019-05-26T15:12:37 | null | UTF-8 | Python | false | false | 588 | py | from enum import IntEnum
class LEDTYPE(IntEnum):
"""Enumerated LED type names to be used with
:py:mod:`bibliopixel.drivers.serial` and
:py:mod:`bibliopixel.drivers.SPI`
"""
GENERIC = 0 # Use if the serial device only supports one chipset
LPD8806 = 1
WS2801 = 2
# These are all the same... | [
"adammhaile@gmail.com"
] | adammhaile@gmail.com |
b792f2d676652222eaf549ca8143d596860efca3 | e39e6bf58db7ba160e42fdf2b2cc484a05b37be1 | /maths2/maxgcd-delete-one.py | 5968326cd7c2fc417448a9d26241c44817204da9 | [] | no_license | mohits1005/DSAlgo | fee93e3eb96c41dd573f679d6b67b0215f887451 | bc82cc2de7ddbe7d31786a4f3e5826eddbd0e05e | refs/heads/main | 2023-04-10T03:58:38.487125 | 2021-04-09T06:36:50 | 2021-04-09T06:36:50 | 320,060,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | '''
Delete one
Problem Description
Given an integer array A of size N. You have to delete one element such that the GCD(Greatest common divisor) of the remaining array is maximum.
Find the maximum value of GCD.
Problem Constraints
2 <= N <= 105
1 <= A[i] <= 109
Input Format
First argument is an integer array A.... | [
"mohit@chalkstreet.com"
] | mohit@chalkstreet.com |
c45d4e7adee31fd52a7bbce6e5be6f33014affe9 | b4d116e844419a641ef36a595d0477871072665e | /optimaldispatch/problem/optimal_dispatch.py | c2e88ecbcb8bc8cc5d1d377765f882d1559b09ee | [
"MIT"
] | permissive | andremaravilha/optimal-dispatch | fe40aea30237e8688736a4d414f187d90b5e4e04 | eb77dd694496c2c30e239475ea800d9062c47575 | refs/heads/main | 2023-06-22T14:53:22.782203 | 2023-06-15T00:10:47 | 2023-06-15T00:10:47 | 327,088,058 | 8 | 1 | MIT | 2021-02-04T14:56:27 | 2021-01-05T18:41:54 | Python | UTF-8 | Python | false | false | 29,970 | py | import copy
import math
import json
import matplotlib.pyplot as plt
import matplotlib.dates as dates
import matplotlib.lines as mlines
from scipy.stats import norm
# Exports
__all__ = ["OptimalDispatch"]
class OptimalDispatch(object):
"""
Class that defines the Optimal Dispatch problem.
"""
def __in... | [
"andre.maravilha@outlook.com"
] | andre.maravilha@outlook.com |
78ac77bbaba347ba0643688428339f03ef0ddee3 | 02b04b202550248a2b78ed069d94b7607640c866 | /DataTypes/Numbers/max.py | 5c3f7d5ee91951b547605f887089c82a0ca3b66a | [] | no_license | keshavkummari/python-nit-7am | c391fe96783c224b44419a258738168230e182cd | 0bc867ad673e40ad401d7473aab4791f21ee1945 | refs/heads/master | 2020-03-30T15:05:18.376222 | 2018-11-05T02:30:44 | 2018-11-05T02:30:44 | 151,347,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | #!/usr/bin/python
"""9. max(x1, x2,...) : The largest of its arguments: the value closest to positive infinity
Python Number max() Method:"""
print "max(80, 100, 1000) : ", max(80, 100, 1000)
print "max(-20, 100, 400) : ", max(-20, 100, 400)
print "max(-80, -20, -10) : ", max(-80, -20, -10)
print "max(0, 100, -400) : ... | [
"keshav.kummari@gmail.com"
] | keshav.kummari@gmail.com |
4356ecc0edf85ae785239d3ca4e92b8805d2cea1 | 4336835f308f8ca161fe13deb4a4e1a43bab5710 | /TwitterBot/modules/DayOfTheWeek.py | 8cfc4531d142f7e0b3c2553cfd6f8477d9d651ff | [
"MIT"
] | permissive | shogo82148/JO_RI_bot | da32b615f49f344a6ff7b64b7da92e330ed03a84 | 653008faf8356a6c6e2b44f0154f646774aff79b | refs/heads/master | 2016-09-05T15:10:23.401670 | 2016-02-17T11:38:29 | 2016-02-17T11:38:29 | 3,275,117 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
曜日計算機能
"""
import re
import datetime
import unicodedata
from TwitterBot.lib.jholiday import holiday_name
_re_date = re.compile(ur'(西暦|平成|昭和|大正|明治)?(元|\d+)[/年](\d+)[/月](\d+)日?は何曜日')
_week_name = [u'月', u'火', u'水', u'木', u'金', u'土', u'日']
def hook(bot, status):
m = _... | [
"ichinose@stn.nagaokaut.ac.jp"
] | ichinose@stn.nagaokaut.ac.jp |
9bf2a6ca5b589024158f74c33601bb177949e1ab | 0a6923222175b160ddb5d2341c755dbcfdd5f8db | /scripts/exploration_noise/exploration_noise_generatorV1.py | 51e4ddbaaa1b34a7d1d6ac2efc013f711a53170c | [] | no_license | Osiron007/AgentSmith | 4e48d8cb252f440daf3babdc6b6ef78d9b643f52 | 2076ea69b12dd96c73e55dd1ce0de87bca0680ad | refs/heads/master | 2020-04-01T10:45:33.444836 | 2019-04-10T09:01:34 | 2019-04-10T09:01:34 | 153,130,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | import numpy as np
from random import randint
from OU import OU
OU = OU() #Ornstein-Uhlenbeck Process
class exploration_noise_generator(object):
def __init__(self,static_params, OU_mu, OU_theta, OU_sigma):
print("Init exploration noise generator")
#defines if different working points shoul... | [
"nieland@neobotix.de"
] | nieland@neobotix.de |
f776bc6f0532dcf9d21e83a48bec4ef05b6a364d | ddda1fd239dfa5b2000dfa6acafb876e246ae039 | /main_1.py | 06aa9d5d1a9cc2d0915a5b6473d54f0d5c179db8 | [] | no_license | 7dy/rewaq | e321f9b635653746a775b204fca2537b378a2b67 | 0874eaad583e5fb2af4a93b33f23b5522b292154 | refs/heads/main | 2023-06-04T03:15:37.247861 | 2021-07-08T19:29:42 | 2021-07-08T19:29:42 | 382,566,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | import requests, os
url = "https://spclient.wg.spotify.com/signup/public/v1/account/"
while True:
os.system("cls")
email = input("Enter email: ")
password = input("Enter password: ")
name = input("Enter name: ")
payload = {
'creation_point': 'https://login.app.spotify.com/?... | [
"noreply@github.com"
] | noreply@github.com |
dad057624e2f581bdeb4c651cff96a0694f620db | e18f23521733d09aa09c8b36ec92e11f9a9e9773 | /distinct_substring.py | 7ac4ab2e2e48402141c0fb6dbc8b69e460ea11bb | [] | no_license | architkithania/coding-challenges | 73b1fce9cdb4641aa86b64d7d8af5bf870c8d49d | 54b1c7149af57b6ee37bb0494561bdea33c38df5 | refs/heads/master | 2020-08-22T07:17:37.486776 | 2020-01-15T16:43:19 | 2020-01-15T16:43:19 | 216,345,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # Problem 13
def sub_string(string, k):
maximum = 0
for i in range(0,len(string) - 1):
dist = []
x = helper(string[i:], k, 0, dist)
if maximum < x:
maximum = x
return maximum
def helper(string, k, length, dist):
if k == 0:
return length
if len(string) > 1... | [
"archit.kithania@gmail.com"
] | archit.kithania@gmail.com |
e60100860f11115391c31f76f415de05c4338c12 | 51a43ec71ee214c3c995cd56d5e4a316334c4a65 | /myProfiles/migrations/0012_auto__add_usersupport__chg_field_userproject_description.py | bd3dd1591d4c89d7427f875e57f8e936750ec0e5 | [] | no_license | jaredpark/zparkweb | ba305305903626c29bf5c6ca784716f67be6a71a | 4ec3aa2182c018313e2f528cef6e1c92cc7a3647 | refs/heads/master | 2018-12-28T19:24:26.692215 | 2015-04-22T23:47:37 | 2015-04-22T23:47:37 | 32,129,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,524 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'UserSupport'
db.create_table('myProfiles_usersupport', (
... | [
"jaredjamespark@gmail.com"
] | jaredjamespark@gmail.com |
665415ef3bd75fb530c985c7c930cd48611c48cf | a0a92f864201cb60db71121ef74bc2ead0e14494 | /pets/config/database.py | dccd39eec749eddba0a1ec32f096c4b266d0e5a2 | [] | no_license | pedrorio/PetsApi | cae962e053b0425d83a138ca4e7b457784fea6c4 | a7a5dea20bd6ba2442e5ce278812a4103255c323 | refs/heads/main | 2023-04-18T07:07:46.447571 | 2021-04-24T03:48:21 | 2021-04-24T03:48:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | import databases
import sqlalchemy
DATABASE_URL = "mysql://localhost/example"
Database = databases.Database(DATABASE_URL)
Engine = sqlalchemy.create_engine(str(Database.url)) | [
"pedrocacaisrio@gmail.com"
] | pedrocacaisrio@gmail.com |
1d050f98b864400e6e443fe081aa9e0fb9b350ef | 06ef40ecee930b7854bc333a9c8fecc5afe289fb | /tutorial/03_Django_and_React/tic_tac_toe/tic_tac_toe/settings.py | 79b603087402800d2f54796435d477f6ae65e643 | [] | no_license | shu-ramen/webdev | 10cfbdca47044c379212ecfe31de2a1adc64f116 | cbca9d32a5a699f5f4060a905965ab8e0139af2e | refs/heads/master | 2020-05-04T21:36:29.111693 | 2019-04-28T10:17:33 | 2019-04-28T10:17:33 | 179,482,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | """
Django settings for tic_tac_toe project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import o... | [
"shu.h7.research@gmail.com"
] | shu.h7.research@gmail.com |
fc50cebae1eba552d9f6fcd70e43f8e3211fb392 | 3bbf0336963d4aa7a64bbf52bb10f17bfc7a1753 | /ft_nm/compare_dir.py | a2735dbf7edab5000eaca806397e64a1f210dcb3 | [] | no_license | Ngoguey42/proj19_unix_nm-otool | e5bf4b177b9004a4d861b399aa3cffdf7f77cd7e | 812a2bd693a18b841450a22a53f619b79106b157 | refs/heads/master | 2021-01-10T15:52:49.592782 | 2016-02-23T10:24:58 | 2016-02-23T10:24:58 | 51,018,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | # **************************************************************************** #
# #
# ::: :::::::: #
# compare_dir.py :+: :+: :+: ... | [
"ngoguey@student.42.fr"
] | ngoguey@student.42.fr |
584017b8c603df166692fd584d0144e09d4a261b | 42a0befb594a6c081f3e788016c53889cfa2a9fb | /Codechef/factorial_easy_problem.py | e88719072ec1628291baff54eafc1b59d0b7f57f | [] | no_license | Laksh8/competitive-programming | f436e8c525220ad95ef1c7a9d3aa98b4689d4f92 | 14c20e5cc32263c89a73524ab596efbbba2cc85a | refs/heads/master | 2022-12-24T23:54:16.313515 | 2020-09-08T06:59:11 | 2020-09-08T06:59:11 | 293,727,288 | 2 | 1 | null | 2020-10-04T14:15:38 | 2020-09-08T06:57:35 | Python | UTF-8 | Python | false | false | 207 | py | testcase = int(input())
while testcase > 0:
num = int(input())
sum=0
divisor=5
while (num)>=5:
num = num // divisor
sum = sum + num
print(sum)
testcase = testcase - 1
| [
"lakshitkhanna311@gmail.com"
] | lakshitkhanna311@gmail.com |
edd2690a5b80bee5f27437cef21e1a4995e9a870 | 9a4755588bbe924270e0d92e04d3409281fbaf5b | /main/displayer.py | a0d3b2201298b0f2f77b759cc72098e188f45c3e | [] | no_license | chaobai-li/authenticated-info-displayer | 209488a8229d17b9d67371435e4aa576ef0bb0b3 | c19c6d477a3b96cda3d65f1833d28ade07aff7ba | refs/heads/master | 2021-01-25T11:48:49.936003 | 2018-03-03T11:59:48 | 2018-03-03T11:59:48 | 123,431,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | __pragma__("alias", "S", "$")
class Displayer:
def __init__(self, authenticator):
self.authenticator = authenticator
self.authenticator.eventLogin.append(self.__initialize)
self.authenticator.eventLogin.append(lambda: self.__toggle(True))
self.authenticator.eventLogout.append(lambd... | [
"contact@chaobai.li"
] | contact@chaobai.li |
b9554abc231f4c37bde663fe622fb5a85107a16d | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/compute/v20190701/virtual_machine_scale_set_extension.py | ee871d7ddaf93e66afd1b6cd43de3dd831e08f3e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,493 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | noreply@github.com |
ad8af855ab3fd1b05aaba8ed4a163b845ecdce4f | f1f4c01cf737acc0e17680942f52dcfdf6064862 | /lib/sayStream.py | 6a17494b0059ea8211f5a16964b611c605fbddc2 | [] | no_license | ksk001100/legacy-toyotter | 7e9386c0f6275fef753a45c18dceff85d0b50af8 | 2de80d4579f4755ab5f40e568ed9dfb5c1c18e8b | refs/heads/master | 2021-08-20T03:29:24.082716 | 2017-11-28T04:23:48 | 2017-11-28T04:23:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | from oauth import *
from datetime import timedelta
import re
import os
class Listener(StreamListener):
def on_status(self, status):
status.created_at += timedelta(hours=9)
Tweet = status.text
m = re.search('(?<=@)\w+', Tweet)
if(m != None):
Tweet = Tweet.replace(
... | [
"hm.pudding0715@gmail.com"
] | hm.pudding0715@gmail.com |
a86f4e04fd293b02902b13f84e13a6a1da39451e | 8b2af3cff75ba2a6f8557cdea0d852b9076ff6a3 | /day014/venv/Scripts/easy_install-script.py | 765b7c6bbfc60d30e4d3962d2ae52fb465a43cb6 | [] | no_license | AlexYangLong/Foundations-of-Python | 98e5eaf7e7348120049f1ff4bb3d31393ad05592 | bcf3a1fe526140fd2b05283c104488698ebc99fd | refs/heads/master | 2020-03-16T21:45:34.232670 | 2018-05-11T10:19:21 | 2018-05-11T10:19:21 | 133,013,526 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | #!"D:\for python\0413\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"alex@alex.com"
] | alex@alex.com |
1fd9ca593a5596cd0a5a8ea27932ff3692214f11 | 38b6ca67e47e184197bb6595549b3bdd39533f81 | /web/models.py | e435ca422c39fd2b1e32efb33f84ab7993cf96be | [] | no_license | kirarenctaon/xai_orininal | 763c55c0d1a19f2a178da53bab7ff1d458ce1c72 | f66e5f59b817be321a049afcfc53a73ee2bc1a95 | refs/heads/master | 2021-09-08T01:26:23.778507 | 2018-03-05T05:36:03 | 2018-03-05T05:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,819 | py | from django.db import models
#from django_summernote import models as summer_model
#from django_summernote import fields as summer_fields
# Create your models here.
# - Home
# - About
# - Greeting(page)
# - Member(list)
# - Lab(list)
# - Project(page)
# - Research
# - LectureNote(imag... | [
"kirarenctaon@gmail.com"
] | kirarenctaon@gmail.com |
8c4c74718986652edcd39437112ef420294e692a | 3c197f583a507ebeed662504a1ac0ce79842e4e6 | /jpx_scoreboard/mic_test.py | 26252b9baa48a34123aa7813196e93f15652cb6e | [] | no_license | SamuelFicke/jpx_scoreboard | 02e469e2fed592bdc46e131b0310eb6fbb69b9f5 | 976f953d73b32441faf43cbc3d9f9a1887bec6b8 | refs/heads/master | 2020-03-25T08:52:16.590637 | 2018-08-05T17:59:21 | 2018-08-05T17:59:21 | 143,635,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py |
import speech_recognition as sr
for index, name in enumerate(sr.Microphone.list_microphone_names()):
print("Microphone with name \"{1}\" found for `Microphone(device_index={0})`".format(index, name))
| [
"noreply@github.com"
] | noreply@github.com |
36fccbf050fa7ee2780c63073c2ce69a3bf45a94 | d21c434ee00bb7855923fa85c53e1f6b905f8beb | /common/schedculer.py | 64046f19400b59cd1d0d07d93de1aa13477a7e7b | [] | no_license | lfsoftware13/SequenceGraph | 32263b5095a3e4502326ca84e9e1a6f09c08333f | b44d5a942855a1ffcd7b5bbd37ebbe1577ca0737 | refs/heads/master | 2020-03-21T08:52:18.811299 | 2018-07-08T07:29:40 | 2018-07-08T07:29:40 | 138,370,359 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from torch.optim.lr_scheduler import LambdaLR
class LinearScheduler(LambdaLR):
def __init__(self, optimizer, total_epoch, warm_up, last_epoch=-1):
def rate(epoch):
x = epoch/total_epoch
s = (x <= warm_up)
return (s*(x/warm_up)+(1-s))*(1-x)
super().__init__(optim... | [
"liweiwuhome@hotmail.com"
] | liweiwuhome@hotmail.com |
cf550ea8b5a7f3638b9bec4ef4e8ec1e243f0ce3 | 3740de0d6e43ea140fc09ab314e4c492603ba185 | /functions_legacy/FitVAR1.py | 348409cfa3620731799498087218091ba4892c20 | [
"MIT"
] | permissive | s0ap/arpmRes | 29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | refs/heads/master | 2022-02-16T05:01:22.118959 | 2019-08-20T16:45:02 | 2019-08-20T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import matplotlib.pyplot as plt
from numpy import ones, diff, eye
from RobustLassoFPReg import RobustLassoFPReg
def FitVAR1(X, p=None, nu=10**9, lambda_beta=0, lambda_phi=0, flag_rescale=0):
# This function estimates the 1-step parameters of the VAR[0] process via lasso regression (on first differences)
# I... | [
"dario.popadic@yahoo.com"
] | dario.popadic@yahoo.com |
d3a5d9b1a751b322b7ebd80ac2137a9f3c33a870 | d25b5b9524832c51d2da91939cc46336650173bf | /Code_stage/pixel_fusion_neuro.py | 5761da0391c31f9ba0176d0c9fce4d85f00012c3 | [] | no_license | Dimitri78000/Code_perso | 177b1b5f91b29c51ab0145d7f9bdaa38118b6f56 | a19f1928ddad457abfdea261bf8c248a73f42d0d | refs/heads/master | 2021-05-09T09:41:11.406365 | 2018-07-30T09:29:27 | 2018-07-30T09:29:27 | 119,448,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,843 | py | #
# To make it work, change the variable path line ~340, and install module if necessary
## Import
# install numpy scipy pyqt matplotlib pandas sympy opencv
import numpy as np
import matplotlib.pyplot as plt
import time
import random as rd
import cv2
import os
np.set_printoptions(threshold=np.nan)
## Required f... | [
"dimi_du_24@hotmail.fr"
] | dimi_du_24@hotmail.fr |
a706d9d72e96133ce2aa017e8108a5f0aaf7493e | 71e038ed3ff0d204734e51adec21e3b2ae3d3bc1 | /app/api/follower_routes.py | 39874d476d7c9399c90e9c04f7a53f33be0f373b | [] | no_license | mimike/hangIn | dc24f44d4e553cd1d43d9287cd175afa367335c1 | 376a62bf2de36563fd40ce54ee8c63fb6c5f43d6 | refs/heads/main | 2023-06-24T02:20:21.548670 | 2021-07-30T02:19:09 | 2021-07-30T02:19:09 | 364,103,801 | 0 | 0 | null | 2021-05-17T00:53:42 | 2021-05-04T01:05:39 | Python | UTF-8 | Python | false | false | 5,257 | py |
from flask import Blueprint, jsonify, redirect, request
from flask_login import login_required, current_user
from app.models import db, User
import json
follower_routes = Blueprint('follower', __name__)
#get all followers for user id don't need
# @follower_routes.route('/follower/<int:user_id>')
# def get_followers(... | [
"mimi.g.ke@gmail.com"
] | mimi.g.ke@gmail.com |
acf4a8ba77d495634ff0faee2a75f6a1bdff7442 | 3feef041e930580fc5cfbba35a4d3cd914cbff71 | /code/utils/write_tfrecord.py | 8711d4c0f320939fde5ec17d833eb0cb5d7bb9ab | [] | no_license | huwenjie333/cnn-population-mapping | 1645d2e879647858198ca8cd8934f497510d6636 | 8cecb5b85642d9a47bbc92cb60616f96c8ea81f4 | refs/heads/master | 2021-04-12T04:38:38.008524 | 2018-09-17T04:27:53 | 2018-09-17T04:27:53 | 125,925,055 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,066 | py | import tensorflow as tf
import pandas as pd
import numpy as np
import random
import gdal
from PIL import Image
import os,io,time
os.environ['CUDA_VISIBLE_DEVICES'] = ''
###################################### parameters #############################################
# the diretory of images where the paths in ANNOS_CS... | [
"wenjie.hu2013@gmail.com"
] | wenjie.hu2013@gmail.com |
d8c80ee0a2954ef4a10f0ebfbf034248dcc2d365 | a8fb5d37de019221e5897a98bd176c566037f813 | /Playground/objgraph_/obj_graph.py | 0890b1611b57af3cdb6b08c6f9339df38174a04e | [] | no_license | tdworowy/PythonPlayground | b743dc2b870d1681b24e654e2af3fe5957710265 | ff090fb44046c9c37501f5dbbcb08d56552540d4 | refs/heads/master | 2023-01-05T00:28:55.725894 | 2022-12-27T10:06:40 | 2022-12-27T10:06:40 | 72,983,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | import objgraph
class Staff:
def __init__(self, ele):
self.ele = ele
def get(self):
return self.ele
def example(count):
x = range(3)
y = [Staff(i) for i in x]
if count == 0:
return Staff(y)
else:
return example(count - 1)
def example2():
y = 1
for i... | [
"dworowytomasz@gmail.com"
] | dworowytomasz@gmail.com |
55d2099c22b2ef1df7eed3cdac7b86d9e3c15d97 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_230/ch33_2020_03_30_20_03_55_797460.py | 27b68ff699defdc00de4fdca5d880421d1e22da1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | def eh_primo(n):
div=3
if n%2==0 and n!=2 or n==1 or n==0:
return False
while n > div:
if n%div==0:
return False
div +=2
return True
def primos_entre(a,b):
n_primos=0
while a<=b:
if eh_primo(a):
n_primos +=1
x+=1
return n_primo... | [
"you@example.com"
] | you@example.com |
030cb9969471b2b7ec33c9976d6cd6225da8fbc6 | 2e46785208e4e547ebe8d8ad8b7069043d5b9c4d | /part1/main.py | d2029ae0c0f94f6fc25b7545d2cd2da3d9976717 | [] | no_license | EelaiWind/dl_hw2_vgg19net | c44371db42fe71c2ad2fd62bf2043d1e5e72a766 | bb88bd247c082015f901d7f05835d581ba67c2b9 | refs/heads/master | 2021-01-19T00:32:49.949577 | 2017-04-04T11:44:54 | 2017-04-04T12:15:50 | 87,181,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py |
from __future__ import print_function
import sys
import os
import utils
from vgg19_model import Vgg19Model
import tensorflow as tf
import numpy as np
import cv2
if len(sys.argv) < 2:
print('usage: %s <image file>' % sys.argv[0], file=sys.stderr)
sys.exit()
model = Vgg19Model(os.path.join(... | [
"tony333ts@gmail.com"
] | tony333ts@gmail.com |
3f04ca17a88dccb12cfee866808b2859f10daab5 | bc6af72eaca8448f617e730180ffada534b0094f | /first_test.py | f9217a6a9475aba06e20c7b488ecb0b0f02efedf | [] | no_license | RiteshDave87/nse_python_angularjs | 09d8eefe10dda612bbc43337a8fc48ed01ae36b7 | 1421ea6bd95de0eb213e58340cb63399f8e60dd4 | refs/heads/master | 2020-04-08T12:02:11.325518 | 2018-11-27T12:31:58 | 2018-11-27T12:31:58 | 159,331,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | from flask import Flask, render_template
from nsetools import Nse
import os
app = Flask(__name__)
nse = Nse()
port = int(os.getenv('PORT', 64781))
@app.route('/getquote/<name>')
def getQuote(name):
quote = nse.get_quote(name, as_json=True)
return quote
@app.route('/topgainers')
def fetchTopGainer... | [
"noreply@github.com"
] | noreply@github.com |
7a99a3690efa5e02a155ba1eb1590c783ffc6acd | cc9b47814fdf9796d1ca6f2c2470c7cc8ec2e6e3 | /MoviesToJson.py | dd07cb915bf5c746e88301a43dd8a2ffdb7aa476 | [] | no_license | Md-Shahnawaz/elasticsearch_workshop | d985bf98291a39331ce14c18ff9339f3c3898505 | d9181ac4f7bea63a5ce02bdf2cadc260a80b0a51 | refs/heads/master | 2022-10-20T07:50:26.309256 | 2020-01-31T07:23:02 | 2020-01-31T07:23:02 | 237,380,142 | 0 | 0 | null | 2022-10-04T23:56:48 | 2020-01-31T07:21:49 | Java | UTF-8 | Python | false | false | 1,051 | py | import csv
import re
from collections import deque
import elasticsearch
from elasticsearch import helpers
csvfile = open('/Users/1022590/Shahnawaz/Personal/elasticsearch/ml-latest-small/movies.csv', 'r')
reader = csv.DictReader( csvfile )
def movies():
for movie in reader:
movie_dict = {}
title = ... | [
"mohammad.shahnawaz@jda.com"
] | mohammad.shahnawaz@jda.com |
7adda36eb4f8400d8a204de7f1eeb194d5a056cd | f5e4cde32540aad6f7c5a589f77e34f7a4dc040c | /assets/levels_maps/__init__.py | 9d0c6ea3f76d6335cd95f6eb9a78d1075a8c4468 | [
"MIT"
] | permissive | Barbapapazes/dungeons-dragons | 559259c456b86d04ec4a71d322500aa25041efff | 7e3dfdb1e7506ff95819d21fa93c1f56ae1dba96 | refs/heads/dev | 2023-03-06T09:42:28.888333 | 2021-01-27T14:34:45 | 2021-01-27T14:34:45 | 299,598,533 | 0 | 1 | MIT | 2021-02-19T11:09:15 | 2020-09-29T11:40:40 | Python | UTF-8 | Python | false | false | 29 | py | """Used to saved the maps"""
| [
"esteban.soubiran@insa-cvl.fr"
] | esteban.soubiran@insa-cvl.fr |
78f16863cdeaac8e02056fb27103caf1469e5b38 | 53823a4a2c67fb4dd70f10e49da4f5370c9fa620 | /translator.py | 2b7d4711ae3c5c92892257468ba92db1ecc9c13d | [
"MIT"
] | permissive | dignissimus/Universal-Translator | d52b42b6f481a59cf17354385c66931a64573c31 | 40239a579ae10b6b9cb46995e87c6a2cde8b3109 | refs/heads/master | 2023-07-02T23:15:52.708991 | 2021-08-16T19:06:46 | 2021-08-16T19:06:46 | 396,930,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from arpeggio import ParserPython, visit_parse_tree
from parser import document
from visitor import DocumentVisitor
def debug():
parser = ParserPython(document)
while True:
tree = parser.parse(input(">> "))
print(tree)
for node in tree:
print(node)
def main():
parser... | [
"sam.z.ezeh@gmail.com"
] | sam.z.ezeh@gmail.com |
8c5bc5f4bd79e3341f8f0e73ae8eb742781ec259 | 4d05be863b63a56a90b4c46b15069827b33ecaae | /Algorithms/leetcode_charlie/001_two_sum.py | 620d566dbd384fec815ccab50c6a4b01c5519abe | [] | no_license | leeo1116/PyCharm | e532fa9754056019508cc454214ee1a8ad9b26a9 | b6942c05c27556e5fe47879e8b823845c84c5430 | refs/heads/master | 2022-11-06T00:43:14.882453 | 2017-07-13T04:50:00 | 2017-07-13T04:50:00 | 36,851,636 | 0 | 1 | null | 2022-10-20T10:44:39 | 2015-06-04T06:09:09 | Python | UTF-8 | Python | false | false | 946 | py | __doc__ = """
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum
should return indices of the two numbers such that they add up to the target, where index1 must be less than index2.
Please note that your returned answers (both index1 and index2) are not ze... | [
"leeo1116@gmail.com"
] | leeo1116@gmail.com |
39a4fa8f6cba79c9385a9038846830b5d4b3a494 | 361a11aabeaf7512db16177331ddb46d844b8c3b | /Examples/coin_bayes.py | 0f8dcfabc32c8a36c8334aae945e105cfe663d2d | [] | no_license | rickyfernandez/hartnel-summer-course | 5d506ddce1149784fae64514619daad706f35189 | 0f6b616f4cf0d2dd9fd93224085965a072221494 | refs/heads/master | 2016-09-06T18:06:57.080590 | 2014-06-16T16:48:51 | 2014-06-16T16:48:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | import matplotlib.pyplot as plt
from random import choice
import numpy as np
import scipy.integrate
def LogLikelihood(N, R, H):
# N number of flips, R number of heads, and H belief of bias in heads
p = np.zeros(H.size)
# find non zero values
i = (H > 0) & ((1-H) > 0)
# take natural log of likihoo... | [
"rafernandezjr@gmail.com"
] | rafernandezjr@gmail.com |
39dedc189e92631f1e8d8f27f939130d747cac6c | 441f12165b12038253b519d39ea04c52bdd49d38 | /logo/ReportINC_GUI.spec | f9b4b02c36eee3c849d6d21db01f0979ef48888c | [] | no_license | mirzalijafarov/reportinc | 621588d94c37f90129818f2249da8b5f13b4467a | 86ef7b86e8f6ba0c5860aeb8df63b624a66db625 | refs/heads/master | 2022-12-03T12:07:44.278550 | 2020-08-11T07:51:21 | 2020-08-11T07:51:21 | 273,668,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['ReportINC_GUI.py'],
pathex=['E:\\MOOCs\\My Projects\\ReportINC'],
binaries=[],
datas=[("E:\\MOOCs\\My Projects\\ReportINC\\venv\\Lib\\site-packages\\tinycss2\\VERSION", "tinycss2"),
("E:\\MOOCs\\My Pr... | [
"mirzali.jafarov@gmail.com"
] | mirzali.jafarov@gmail.com |
1aacbb0b5513e41ca28c746d059a2643a867134c | 8b44b30e6baf2d140ca475c1320b485e3a1d0570 | /tseries1_batch.py | dcf29f33230e570f53dc31793d19612ab04346e7 | [] | no_license | cbegeman/e3sm-cryo-analysis-scripts | b1e39f6874c3bbdd21c51b7c7cc3378d163a5447 | 6d18967bf8a83156229a93243211541c3b36a75d | refs/heads/master | 2023-09-01T12:41:05.742681 | 2023-08-18T22:50:43 | 2023-08-18T22:50:43 | 184,796,628 | 0 | 0 | null | 2019-05-03T17:41:38 | 2019-05-03T17:41:38 | null | UTF-8 | Python | false | false | 2,531 | py | #!/usr/bin/env python
'''
Script to compare some scalar values from different runs of Thwaites melt variability experiment.
'''
import sys
import os
import netCDF4
import datetime
import numpy as np
import matplotlib.pyplot as plt
import scipy.signal
from matplotlib import cm
from math import pi
import weddell_mod as ... | [
"cmbranecky@gmail.com"
] | cmbranecky@gmail.com |
6701845b6d646ab2746bd48246a9031546292106 | eec6967b2c794270bebd43916bac8eee92f17b10 | /Long program.py | cff5df2e43c371b886e2db9447afa29b75f18e3d | [] | no_license | oliviachang29/python-elementary-school | 1dd5f4f7f98a4a4529666d7b19ab1bc9be3e7323 | 1f6c27894990860bf7e86cb0ea93e6bd5d05ae73 | refs/heads/master | 2020-03-23T15:18:21.468984 | 2018-07-20T16:54:03 | 2018-07-20T16:54:03 | 141,736,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | #Annoying Program
#Annoys the user by repeatedly printing() things.
long = input("Put in something long: ")
number = 0
for letter in long:
print("Umm...hi?")
number += 1
if number > 5:
print("You put in something quite long! You did it", number, "whole times!")
else:
print("Luckily your in... | [
"hello@oliviachang.me"
] | hello@oliviachang.me |
a64e6b4374c6eb913bd70fe5a1c26df57803bb93 | d8b8ff78310d874434d58dc36b452149c0ffcf09 | /class7.py | a7a237bf574d6c0162560786090acb99ddd8f01f | [] | no_license | Manas2909/Python-Stuff | 6133a14cc1539feac6e5f6bb67d2184ad2c0f0e8 | c222c76b977e4499d9d906e15e56143a1b967574 | refs/heads/master | 2020-09-15T04:01:17.208827 | 2019-12-03T07:27:25 | 2019-12-03T07:27:25 | 223,343,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 3 13:23:58 2019
@author: Manas
"""
class sample():
x=5
y=10
@classmethod
def modifyx(cls):
cls.x=10
@classmethod
def modifyy(cls):
cls.y=5
s=sample()
s2=sample()
#print(s.x," ",s.y)
#print(s2.x," ",s2.y)
s.mo... | [
"noreply@github.com"
] | noreply@github.com |
9c665678062fbdc64fbc43c40dc5e6b95d684db0 | a3782034a943037e9ce94c2370ab974e5a14cb08 | /featureC.py | 298d5519a2641baaf66a5a4064487796f287c13f | [] | no_license | Issa900/keuleumPhD | 5f0584adaa600334134c80a523ad5d8926b8c52a | 7dd12fe326b1a299b72767b417d51cc66b64bbde | refs/heads/master | 2021-06-16T04:31:37.704438 | 2021-01-12T14:04:45 | 2021-01-12T14:04:45 | 129,396,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,903 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This script is for parsing the output files of the program FeatureCount; it counts the number of reads mapped on sex chromosome versus autosomes in Marchantia polymorpha
#*** takes as input files i) output file of FeatureCount (count.txt), and ii) a list of specific g... | [
"diop.seydina@laposte.net"
] | diop.seydina@laposte.net |
97ea993e3168ee900ba2082c994b3b1006f89dd2 | 774cba8ddd1b616f788144174a2d12d58840d702 | /flaskProject/app/app.py | a4ae09e1d0166a0d223593e075cde883bfe56df4 | [] | no_license | BirolAYDIN/dockerhub_python | cef94a7168dfc9625660bae4271a30409bfff943 | 1dd238fac7df0970a84edd58c7ab2009fd0ffb00 | refs/heads/master | 2022-12-03T16:47:28.481303 | 2020-08-16T15:34:20 | 2020-08-16T15:34:20 | 287,054,669 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,400 | py | from flask import Flask,render_template
import pandas as pd
import re
df = pd.read_json('data.json')
## Akademik personel sayıları ########################################################
prof = df.loc[df['unvan_adSoyad'].str.contains('Prof. Dr.',flags=re.I,regex=True)]
doc = df.loc[df['unvan_adSoyad'].str.contai... | [
"57332230+BirolAYDIN@users.noreply.github.com"
] | 57332230+BirolAYDIN@users.noreply.github.com |
04f671f1dd831bc8813fd1d8b1a5d464a43d2ca1 | ce56da8cddb04370d61e43aac156da85a3c4b707 | /src/process_clang.py | aa02fc41a58917282ef1ffe314a5b9eed6246958 | [
"MIT"
] | permissive | mitchute/clang-format-postprocess | 5966da47e478ace188ff84c7eddf7b7c175da0b4 | 337c72e63318ded5cada2c34906fc644d7d1323e | refs/heads/master | 2020-08-30T10:06:20.032123 | 2019-11-01T01:51:22 | 2019-11-01T01:51:22 | 218,343,970 | 0 | 0 | null | 2019-10-29T17:27:54 | 2019-10-29T17:25:02 | Python | UTF-8 | Python | false | false | 10,232 | py | import argparse
import logging
import os
import subprocess
from collections import defaultdict
from src.base import Base
class ClangPostProcess(Base):
def __init__(self, source_dir, list_file=None, output_dir=None):
Base.__init__(self, source_dir=source_dir, list_file=list_file, output_dir=output_dir)
... | [
"matt.mitchell@nrel.gov"
] | matt.mitchell@nrel.gov |
9c7bc9a98256be1927a4268b0ffcccb8e9551e69 | 72744aac49c4a9e9f687175c3f19fbc53a3e822c | /09/solution.py | 9cfcd0c06cb7e3b5cf65bbef5ed5d69ddd9c4f40 | [] | no_license | LukasNickel/aoc | 71d97c51159252b00221f0b0b55e921e8dd22119 | 4501f239fd5ea9b5a1a0576f2abb9914d4b8b334 | refs/heads/main | 2023-02-02T05:48:14.597328 | 2020-12-18T19:19:07 | 2020-12-18T19:19:07 | 317,523,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | from itertools import combinations
def part1(puzzle, plength=25, n=25):
indices_to_test = range(plength, len(puzzle) - 1)
for i in indices_to_test:
if not valid(puzzle[i], puzzle[i-n:i]):
return puzzle[i]
return -1
def valid(number, previous):
for c in combinations(previous, 2):
... | [
"lukas.nickel@tu-dortmund.de"
] | lukas.nickel@tu-dortmund.de |
7f90a5762637be673cd26114939a10fbf0ebfd25 | 2ac1419480f7177ce7cbce2ea51734ac2f14d810 | /Algorithm_problems/Python/level1/정수_제곱근_판별.py | 5216c6a7cf3572aac00149223edc99890e5a8980 | [] | no_license | swarthyPig/Algorithm-training-and-SQL-query | d0e854c8118dfa0565848f0a98facaa68034fb99 | 562888ee5a6386f4ae52d60d3012de66931159cc | refs/heads/master | 2020-07-07T16:05:04.045583 | 2020-03-03T09:38:53 | 2020-03-03T09:38:53 | 203,399,615 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 245 | py | def solution(n):
length = n ** 0.5 # 판단할 수의 제곱근을 구함
if length % 1 == 0: # 구한 제곱근을 1로 나누었을때 0으로 떨어지면 특정수의 제곱임
return (length+1) ** 2
return -1 | [
"noreply@github.com"
] | noreply@github.com |
05aa2d5a5e47841960192b0a7cb15acfc232b161 | 40f0ba4f9cc695e7fa37cdc0cdfdeb18cf7f04b6 | /conftest.py | 01032a2c0bbb166b7e1288a848d1765e8f2f69ea | [] | no_license | stmirage/exre3Stepicautomata | 0c303f051886e1529ca1414048f24a85896870a4 | a6ae1af30e0f26148ea7257c1040b1862b677324 | refs/heads/master | 2022-04-22T17:23:33.394747 | 2020-04-13T14:53:46 | 2020-04-13T14:53:46 | 255,343,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def pytest_addoption(parser):
parser.addoption('--language', action='store', default="en",
help="Choose language:")
@pytest.fixture(scope="function")
def browser(request):
option... | [
"noreply@github.com"
] | noreply@github.com |
f8940de643087082e5912d2288535fcea3c528d7 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1073585/snippet.py | 3b5fdb9cca782aeebdcb2fd67a5527bed28bd730 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 306 | py | def proc_starttime(pid):
p = re.compile(r"^btime (\d+)$", re.MULTILINE)
m = p.search(open("/proc/stat").read())
btime = int(m.groups()[0])
clk_tck = os.sysconf(os.sysconf_names["SC_CLK_TCK"])
stime = int(open("/proc/%d/stat" % pid).read().split()[21]) / clk_tck
return btime + stime | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
adcee77f722346395c212f4a7c3a39d85b093444 | d19de77a7ef09e4ecc92ca018267c3973115533a | /Home/views.py | 5ed4eb3a19789cc5498652f6381cce090587d556 | [] | no_license | NisheshDangol/django_vrs | 3d9e64438f99338227048cc0dd4a5d8908f3a1b9 | add0362443803ec9a6f976c4be508cbae4fad4ab | refs/heads/master | 2021-01-16T05:28:09.475834 | 2020-03-29T01:05:17 | 2020-03-29T01:05:17 | 242,991,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect
# Create your views here.
from account.models import Cars, Bikes, Order, CustomerProfile
def index(request):
car = Cars.objects.all()
bike = Bikes.objects.all()
return render(request, 'Home/index.html'... | [
"dangolnaruto@gmail.com"
] | dangolnaruto@gmail.com |
82f8213abcbc8b1efceb4816d3795db9393c7af8 | 5fccc1b044d8fa9e3916f1039af76cf394013c8d | /TestDjango1/myproject/urls.py | e4977e2db916584eb5a9dc8615d0d8f5d5c598e4 | [] | no_license | MohamedRagabAnas/DjangoExamples | 79288973188740264271b86619945d5c2c4e5dbc | f31a15da8c21fc235a3c221ef6b67731ca397939 | refs/heads/master | 2020-03-25T07:29:34.157396 | 2018-08-05T22:32:06 | 2018-08-05T22:32:06 | 143,564,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | """myproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"midoragab353@gmail.com"
] | midoragab353@gmail.com |
71873a2b0afbe8912deb5770f42b94cecc5ae5d1 | b9918acb388cb2ff29c8ffa33a1fdb07996d8782 | /returns.py | 2edc3e320b31a349d7d79d365cc46dc8f5748074 | [] | no_license | NoahHobbs/Store-Returns | 75c83a24a5d5e6555f9b1694726d6fbd54fe6f6a | e573acb82af63b50be921de0c6c0b6405f080ddc | refs/heads/master | 2023-01-28T16:32:06.572691 | 2020-12-07T23:03:09 | 2020-12-07T23:03:09 | 319,166,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,165 | py | """
Noah Hobbs
11/12/2020
Kohls/Amazon return program with GUI
"""
import PySimpleGUI as sg
class ItemReturn:
# Item return is acting like my node class for a linked list
def __init__(self, items, company):
self.items = items # items to be returned
self.company = company # name of the compan... | [
"mlzgphoenix@gmail.com"
] | mlzgphoenix@gmail.com |
a5897403872d864b1847a0425bdab46f4f20fda5 | a58b82ad1c0e09af9aa154330583284fb9703d59 | /temp.py | 8169c04585f70c3a384ff3902a892de10aa041fa | [] | no_license | et75/StarGazer | ae6800b1a08d69b02a5ec69bad54b29f29b5760b | da11b7847b30497d9af8a91b7eb7060446e22b34 | refs/heads/master | 2023-06-26T18:38:50.083227 | 2021-07-23T08:07:18 | 2021-07-23T08:07:18 | 388,609,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from datetime import datetime
from datetime import timedelta
today = datetime.today
date = today - timedelta(days=1) | [
"43972987+et75@users.noreply.github.com"
] | 43972987+et75@users.noreply.github.com |
60f6265eaeb4048480fe49adcdba9dce4d85bf06 | d2b02e1aa8639f6ddcb5d01558e61455b66ad988 | /app_blink/demo_kivy/demo_1.py | 9097b78c7c10dd2c97b2c404603de474727ee698 | [] | no_license | Wanchatpookhuntod/Detect-factors-CVS | 076d37048d49d4a7811172d5add36bf5f8a17fad | ca30f0e75094e9310bc971edf1677e0ef97023d9 | refs/heads/master | 2022-03-22T04:07:21.416254 | 2019-12-06T07:06:10 | 2019-12-06T07:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py | # from kivy.app import App
# from kivy.uix.label import Label
# from kivy.lang import Builder
# from kivy.properties import ObjectProperty
# from kivy.lang.builder import Builder
# from kivy.uix.widget import Widget
# from kivy.uix.gridlayout import GridLayout
# from kivy.uix.boxlayout import BoxLayout
# from kivy.uix.... | [
"exandwhy666@yahoo.com"
] | exandwhy666@yahoo.com |
3c84cf1aa382ae73435312ccf759eef54d752f84 | 845f627d3b28f88e7a5367ba8bf3b669cf5a6eae | /script/report/report.py | 36a843d34ee338301436cb85b89184b33530581b | [] | no_license | quanrd/nf-reseq-om | 42e5066c99326c30e6aa650acbdc0ab2d4e52683 | 1ed90fff58fba5095f3454be07b803e82ced98b6 | refs/heads/master | 2022-11-18T22:03:49.556357 | 2020-01-06T06:40:13 | 2020-01-06T06:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,136 | py | import os
import glob
import sys
import jinja2
import fire
import pandas as pd
from io import StringIO
from pathlib import Path, PurePath
pd.set_option('precision', 3)
script_dir, _ = os.path.split(os.path.abspath(__file__))
env = jinja2.Environment(loader=jinja2.FileSystemLoader(
searchpath='{}/template'.format... | [
"ricekent@163.com"
] | ricekent@163.com |
31787e02aedd1f148d6b4c403a741f5e498ef610 | 6acdc703e8c244f4345fddc0a1d40be2610b2a97 | /doc/source/conf.py | d2f1eb1f127fae1483deda14ceb99051f292ab05 | [
"MIT"
] | permissive | constrict0r/sysconfig | 9fe0530b2ead5766c080fe1e5352ac72878a646f | 609700aee8dd133920037d2fabd0c72faf9d1c8b | refs/heads/master | 2020-12-20T14:49:36.915408 | 2020-08-06T19:54:46 | 2020-08-06T19:54:46 | 183,437,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,936 | py | # Configuration file for the Sphinx documentation builder.
import os
import sys
project = "sysconfig"
copyright = "2019, constrict0r"
author = "constrict0r"
version = "0.0.1"
release = "0.0.1"
sys.path.insert(0, os.path.abspath("../.."))
extensions = [
"sphinxcontrib.restbuilder",
"sphinxcontrib.globalsubs"... | [
"constrict0r@protonmail.com"
] | constrict0r@protonmail.com |
b76a1d0b2a99dc6e31c8d2d4e463e660bcb932fa | bc4496fa0aa4f4f3062acf0ed8c0717e9e53a00a | /Lesson2Folder-Pygame/Ex5/pyCam.py | 5a7e5120cae0313ab2d4882d45161bdc1d5ec9c8 | [] | no_license | EarthenSky/Python-Practice | 9c44c9385688ce1b8d067b3d5f788fdea034c9df | fd53c5ec6da5bb61b6a82de72c828db9813dd2a4 | refs/heads/master | 2018-07-15T15:21:21.547954 | 2018-06-11T21:03:08 | 2018-06-11T21:03:08 | 119,651,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,028 | py | # This module acts as a camera and interfaces the pygame draw functions.
import pygame
# Sets up the camera dictionary.
_camera_dict = {}
# This is the camera class.
class camera:
"""This is a camera. You can change it's position. Using camera like a
string will return the id value."""
# Init camer... | [
"gabegames27@gmail.com"
] | gabegames27@gmail.com |
1805853c8730f9367bcee41c2c7faf88dfd129bd | ee10c52fcad29619f742176766e5dcaa052b50a9 | /internrank.py | 3087e872de080453b6f906cc10c7f81adee19553 | [] | no_license | nicholson2208/InternSlackBot | 24adda7bd41bf4e6a8af4bfe697257583cc33ccf | 7140ef829a916a2a330ff04e8f15ca3e5ef2f1cd | refs/heads/master | 2021-04-19T00:11:06.569427 | 2017-06-30T16:54:28 | 2017-06-30T16:54:28 | 94,591,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,144 | py | import os
import time
from slackclient import SlackClient
from pymongo import MongoClient
from intern_utils import *
# make mongo client
mongo_client = MongoClient('localhost', 34567)
db = mongo_client.pymongo_test
interns = db.interns
"""
interns_data = {
'name': 'matt',
'points': 1000
}
result = interns.inse... | [
"matthew.n.nicholson1@gmail.com"
] | matthew.n.nicholson1@gmail.com |
17b37f4a03a4049d3afd2397497d08fa832d5305 | dcc62f725e8d1fdebc3be5192960584198d19813 | /meiduo_mall/meiduo_mall/utils/category.py | 535a51cb88960d742c97a2c71d02a628b6f21fb7 | [] | no_license | 1923488289/youprojects | e51cbb7958963fb8a3a82405f5df18e9a066b1ee | ebd1856dab02e45db69d2d5307473f0f22855988 | refs/heads/master | 2022-12-11T12:40:55.832289 | 2019-09-24T15:31:34 | 2019-09-24T15:31:34 | 210,625,080 | 0 | 0 | null | 2022-12-08T01:49:05 | 2019-09-24T14:36:24 | HTML | UTF-8 | Python | false | false | 1,745 | py | from goods.models import GoodsChannel
def get_category():
# 1.查询频道
channels = GoodsChannel.objects.order_by('group_id', 'sequence')
categories = {}
# 2.遍历频道,获取一级分类、二级分类数据
for channel in channels:
# 3.判断频道是否存在
if channel.group_id not in categories:
# 如果不存在则新建频道字典
... | [
"1923488289@qq.com"
] | 1923488289@qq.com |
bf4936b858155a0f2665e2be1e5c5640a411d52f | a0b5bfca977dc232a1ec3c1b29d56bbdfc838b97 | /Chetan_Portfolio/home/views.py | 613058ad1b33ba9b23ea0d5a9b8b735623166ad7 | [] | no_license | Chetucity/Portfolio | 2d2003433ae2726200db56004e892bda27e3db48 | 2402571dcf6bec1770fb55bae648661cebbabefe | refs/heads/master | 2022-12-28T14:05:26.666668 | 2020-10-15T16:18:56 | 2020-10-15T16:18:56 | 304,234,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | from django.shortcuts import render , HttpResponse
from home.models import Contacts
# Create your views here.
def home(request):
context = {'name': 'chetan','course':'django'}
return render(request,'home.html',context)
def about(request):
return render(request,'about.html')
def projects(request):
re... | [
"Chetucity@gmail.com"
] | Chetucity@gmail.com |
a0da2e217526a741286b67b863b952903fd7a915 | ed7a1e546311cfa8223107ee1dfae194784e23ab | /dice.py | 876984520728043bc740d24d6237347ea529f0f0 | [
"Apache-2.0"
] | permissive | WojciechMalicki/dice_analyzer | ab35c075b7c05917ebae10a775808ab94e4aa7f6 | 4e975cf872470b30873c743c3122b446d5806bcf | refs/heads/master | 2022-05-03T09:23:18.560858 | 2022-04-16T21:25:57 | 2022-04-16T21:25:57 | 176,592,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from random import randint
class Dice():
"""symulowanie rzutu kostką"""
def __init__(self, num_sides=6):
"""Domyślnie K6"""
self.num_sides = num_sides
def roll(self):
"""Rzut kością"""
return randint(1, self.num_sides) | [
"wojciechmalicki@gmail.com"
] | wojciechmalicki@gmail.com |
b2a9690624550e9775989e34f20ec89e4d5e21d6 | d81ec837695f61f6ec05d2c85606195f5ebe2e28 | /chatgui.py | 3f887134387ecd07872e9e384a3487094ffdf983 | [] | no_license | shubh2710/jassicaAI | 229e529dd690142c299cd861344f08230b238503 | e06f50f3684953291bd1de960c38f706bacfedf5 | refs/heads/master | 2023-02-07T23:24:27.039652 | 2021-01-03T10:22:27 | 2021-01-03T10:22:27 | 326,377,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,468 | py |
import nltk
from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
import pickle
import numpy as np
from keras.models import load_model
model = load_model('chatbot_model.h5')
import json
import random
intents = json.loads(open('intents.json').read())
words = pickle.load(open('words.pkl','rb'))
class... | [
"shubhamgulati81@mail.com"
] | shubhamgulati81@mail.com |
c219c1a1baa2f8661a41a52ad93bf781da4901c3 | ae74758ff0cae45cfd0943332c30a56852085f6a | /bot.py | 9eb44721bd8106c9fd1c797488a41c5220dca5c2 | [] | no_license | aleksey1593/gygysikbot | d86ec8cac74b2158c0b4fd6548995fe163380449 | 1af60db1aea09e6fc49cd5c1c30a309acd0e2894 | refs/heads/master | 2023-03-01T08:10:21.384366 | 2021-01-25T12:42:00 | 2021-01-25T12:42:00 | 318,996,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,025 | py | import asyncio
import logging
import aioschedule
import os
from sql import Dbase
from aiogram.dispatcher.filters import Text
from aiogram import Bot, Dispatcher, executor, types
from aiogram.types import KeyboardButton
from aiogram.types import ReplyKeyboardRemove
from aiogram.types import ReplyKeyboardMarkup
from par... | [
"gukovaleksey15@gmail.com"
] | gukovaleksey15@gmail.com |
f40bfb50a366403674bf3c6751708ec7b6546f97 | 352bcead4e760ca3a974f9b8d243c06026624eff | /job/migrations/0006_job_imag.py | 99368ec515d7931cb8cc520f763966c593eaad67 | [] | no_license | yousef-alheiba/django-jobs-Bord | d6a47e5564b2bf3a50ceefeeac5a914aba9bcb55 | 3a6bdc715e20373cb178a49c53ce789620db2754 | refs/heads/main | 2023-03-11T16:23:59.539593 | 2021-03-03T13:48:07 | 2021-03-03T13:48:07 | 343,372,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Generated by Django 3.1.7 on 2021-03-02 10:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('job', '0005_job_category'),
]
operations = [
migrations.AddField(
model_name='job',
name='imag',
field=m... | [
"yalheba@gmail.com"
] | yalheba@gmail.com |
47e1abb7c064d826b443bf59799f8cd064dbe34c | 60d8e7310c0bda4729238098c027f309692e417d | /blog/config.py | 42780be85eb6db9172593935795de47b4b27f808 | [] | no_license | winfred82/blog | a59747240039c281c9f2cc81e932fefb6f1a5eab | 0c12a9cfc00f568c7315221c0b164d21ceac9705 | refs/heads/master | 2021-01-10T02:20:06.753785 | 2016-01-12T06:02:44 | 2016-01-12T06:02:44 | 48,244,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import os
class DevelopmentConfig(object):
SQLALCHEMY_DATABASE_URI = "postgresql://ubuntu:thinkful@localhost:5432/blogful"
DEBUG = True
SECRET_KEY = os.environ.get("BLOGFUL_SECRET_KEY", "")
class TestingConfig(object):
SQLALCHEMY_DATABASE_URI = "postgresql://ubuntu:thinkful@localhost:5432/blogful-t... | [
"winfredzhu@outlook.com"
] | winfredzhu@outlook.com |
0fe5c7c8aafdfa5fddacc726712fe3884b50102b | a2040149f327bfd027011b942ee4d9a04a5c150b | /tkbuilder/example_apps/geotiff_viewer/geotiff_viewer.py | 1a787a9aeb83b4cb7ed103d19264dbcb3c0a1910 | [
"MIT"
] | permissive | BeamIO-Inc/tkbuilder | 728a1f848926cbd4cd2ce0759c7989cab09296ab | 8f4b458cf1bc16703c80a0fc5c8e44f9067311c3 | refs/heads/master | 2022-10-18T05:09:42.922744 | 2020-06-11T21:26:16 | 2020-06-11T21:26:16 | 269,422,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,795 | py | import os
import tkinter
from tkinter import Menu
from tkbuilder.panel_templates.widget_panel.widget_panel import AbstractWidgetPanel
from tkbuilder.panel_templates.image_canvas_panel.image_canvas_panel import ImageCanvasPanel
from tkbuilder.image_readers.geotiff_reader import GeotiffImageReader
from tkinter import fi... | [
"j.casey@beamio.net"
] | j.casey@beamio.net |
de693df1430585e4e82e8e60b7a7241ff863692c | 20c979fc8a88dc893692c3d83c9907c928c78074 | /prog9.py | 0b026f3b1e73d7694c124def464e67c57bac49f8 | [] | no_license | ParulProgrammingHub/assignment-1-kheniparth1998 | 57edba326325af3b6dfbc6aea59e701ff5634d6c | 8c277dfb8c4a4cdf25ad7f1851d1247a6a3dc86d | refs/heads/master | 2021-01-19T09:14:42.309237 | 2017-02-15T17:24:07 | 2017-02-15T17:24:07 | 82,086,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | a=input("enter maximum marks for a subject: ")
total_marks=a*5.0
sub1=input("enter marks of subject 1: ")
sub2=input("enter marks of subject 2: ")
sub3=input("enter marks of subject 3: ")
sub4=input("enter marks of subject 4: ")
sub5=input("enter marks of subject 5: ")
obtain_marks=sub1+sub2+sub3+sub4+sub5
avg_... | [
"noreply@github.com"
] | noreply@github.com |
32648ab53d1309ef15e359a795f00a6b6da3d0cb | 651ff871b1568464f0f64f0b50da5c7e888c01b0 | /release_parser/etaj.py | 2ee43eb34d204eb7345ab456833e6afc8b732f95 | [] | no_license | kinoafisharu/kinoinfo | 1d42e5b736af2c37d1a1b42d9b60979ff38e4145 | 210477ff01d90a2bde25a9715cf7af4972dd8c21 | refs/heads/master | 2021-07-07T01:19:27.651052 | 2020-08-19T12:39:50 | 2020-08-19T12:39:50 | 146,737,229 | 0 | 4 | null | 2020-01-06T05:47:31 | 2018-08-30T11:02:22 | Python | UTF-8 | Python | false | false | 6,786 | py | #-*- coding: utf-8 -*-
import urllib
import urllib2
import re
import datetime
import time
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.template.context import RequestContext
from django.shortcuts import render_to_response, redirect, get_... | [
"root@mail.kinoinfo.ru"
] | root@mail.kinoinfo.ru |
9e9bad4bc3e7dda2714a737d0825c060b870f001 | 55540f3e86f1d5d86ef6b5d295a63518e274efe3 | /toolchain/riscv/Darwin/python/lib/python3.7/pickle.py | bfa3c0361b73c6ba406beff72276e2433c78dfc2 | [
"Apache-2.0",
"Python-2.0"
] | permissive | bouffalolab/bl_iot_sdk | bc5eaf036b70f8c65dd389439062b169f8d09daa | b90664de0bd4c1897a9f1f5d9e360a9631d38b34 | refs/heads/master | 2023-08-31T03:38:03.369853 | 2023-08-16T08:50:33 | 2023-08-18T09:13:27 | 307,347,250 | 244 | 101 | Apache-2.0 | 2023-08-28T06:29:02 | 2020-10-26T11:16:30 | C | UTF-8 | Python | false | false | 57,994 | py | """Create portable serialized representations of Python objects.
See module copyreg for a mechanism for registering custom picklers.
See module pickletools source for extensive comments.
Classes:
Pickler
Unpickler
Functions:
dump(object, file)
dumps(object) -> string
load(file) -> object
lo... | [
"jczhang@bouffalolab.com"
] | jczhang@bouffalolab.com |
708b31742d5ab2a45e7e77695a4833376b7ccbe7 | e74c6dd0063baa70756c4243e18ffc848059fc29 | /scripts/po_summator.py | 0e68b0c6a04b0dff8785d1060932365189783bc6 | [] | no_license | Alakeyska/ros_polynom_pkg | a89ff475798a5d727ddeaeb1f7583eef803e2069 | 7e7ec371856e1017e9dd72b9c8fd182e9763077b | refs/heads/master | 2023-08-16T00:58:16.292603 | 2021-10-08T14:23:29 | 2021-10-08T14:23:29 | 414,976,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | #!/usr/bin/env python3
from study_pkg.srv import PolyArray, PolyArrayResponse
import rospy
from std_msgs.msg import String
from study_pkg.msg import Array_int64
#тело программы
def start_summator(req):
msg = String()
result = 0
for i in range(len(req.elements)):
result = result + (req.elements[i] ** (len(req.el... | [
"Salamakhin67@gmail.com"
] | Salamakhin67@gmail.com |
63e1be1fd76f8448e267454e3deb19a10457c6f3 | b13deada3a24488424fd144a85912b70cf9db2b8 | /Homework 4/srravi_HW4_423.py | 77e697e89318b2457278006631ab7a1213022569 | [] | no_license | sravi97/I210_Information_Infrastructure1 | 33dfc14b3776ca8521098fa687aa959a2b84af9a | 2035fa78eec647c573d96c6f17e15b5233d93b88 | refs/heads/main | 2023-07-04T17:55:26.442289 | 2021-08-24T02:19:34 | 2021-08-24T02:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #get input from user
sentence = input("Enter a sentence: ")
total = 0
def average():
#splits sentence
words = sentence.split()
for word in words:
total += len(word)
return (total*1/len(list))
print(total/len(list))
| [
"noreply@github.com"
] | noreply@github.com |
d7570072e9d14e0be8339fba58342db421aac083 | 5a18e2da3a1449a18221fa5bac3222344c91b7f5 | /blog/models.py | fa722fe200b60df1591be762c1769c284eb4080a | [] | no_license | duonghao314/dh314blog | d88c88d8edc70f885e5416430a5b9901678b2e97 | c1ebf35c4f1f2bf47fb3b927f7063ee1ca3c682e | refs/heads/master | 2020-05-27T09:57:19.849920 | 2019-06-03T09:40:36 | 2019-06-03T09:40:36 | 188,573,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | import os
from uuid import uuid4
import time
from django.db import models
from django.contrib.auth.models import User
from Controller import Functions
from tinymce import HTMLField
# Create your models here.
class Category(models.Model):
catName = models.CharField(max_length=20, null=False)
catKeyWord = mode... | [
"48150245+duonghao314@users.noreply.github.com"
] | 48150245+duonghao314@users.noreply.github.com |
f9ee022b9c5c737fd15560ef5f84ed35241375fa | 443a107abf3b808b573e68d3262f0f221c0de26f | /models/bot_dialog_api/user.py | 6ca4bd41e9c03c7a93fcc85c59023b9b24387e7c | [] | no_license | leileixiao/PaddlePaddle-Knover | 844a5879ea328a2030b24e921c3017e9455c62cf | f13313ed29db36645e366ef5f326470c1fc61640 | refs/heads/main | 2023-01-23T15:15:40.590966 | 2020-12-10T07:24:56 | 2020-12-10T07:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | """
定义用户资料
"""
class User:
def __init__(self, user_id):
self.user_id = user_id
self.session_id = ''
self._history = []
self.history = ''
self.MAX_TURN = 7
def get_service_id(self, session_id):
self.session_id = session_id
def update_history(self, text):
... | [
"623320480@qq.com"
] | 623320480@qq.com |
436a889abd6ef47d828bd057761c08b866dde2ec | 0f8362783581e55d46c91755eabc88ff7fd3d66e | /src/test/ingestDataFromKgs.py | 0d358a74a6595b396dae732faa0d7f2994b0cf67 | [] | no_license | mervynn/CS523-BDT | 9464c403905931590015aba8910677c3dfaf2dc4 | b83ccff8f3dd350a038ba727718e272d98ead223 | refs/heads/master | 2021-04-15T13:05:12.572654 | 2018-03-24T08:29:33 | 2018-03-24T08:29:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import sgf
import os
for fn in os.listdir('.'):
if os.path.isfile(fn):
print (fn)
with open("/Users/hemingwei/Documents/MUM/BDT/Project/kgs-19-2018-02-new/2018-02-01-1.sgf") as f:
collection = sgf.parse(f.read())
for gameTree in collection:
cnt = 0
for node in gameTree:
print(cnt)
for key, values... | [
"Mingwei@hemingweideMacBook-Pro-6.local"
] | Mingwei@hemingweideMacBook-Pro-6.local |
5fe3ccaa919261885943ed8056e9b804f3b502cf | d007f1d42ecef761c250a4490f2e7a5ec274dba2 | /main.py | 29c11d4627f6a748f2a5bb621205703dd5947bef | [] | no_license | sam2403/vHackAPI-Python | d6b5c7b8d53f2bdef5acae67e203550bb1fb7ad0 | 9eb58c9a0ce44c2762dd0e825df0f99e2e48bebb | refs/heads/master | 2020-05-20T17:44:09.502191 | 2017-03-09T21:09:25 | 2017-03-09T21:09:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | #!/usr/bin/python2.7
#-*- coding: utf-8
from classes import API
from classes import IP
from console import Console
from update import Update
from utils import Utils
from botnet import Botnet
from random import randrange, uniform
from collections import Counter
import time
import json
def count_keys(mydict):
for... | [
"noreply@github.com"
] | noreply@github.com |
6c32637f146447fc95c3941386d8534c7c68f874 | 73d9e70adfbc6043ecdb8de2ea1b2339007ea5e9 | /tests/features/stdin_input_steps.py | 3256a36e7707594433db8cc6b255a844a6491819 | [
"Apache-2.0"
] | permissive | cheesinglee/bigmler | e147df8d98bcc0624b325fccf381577e74e62b1e | cda58f6149e211897c931300083c6b1b3686ff11 | refs/heads/master | 2020-04-06T07:01:11.195760 | 2015-02-12T23:14:31 | 2015-02-12T23:14:31 | 20,578,762 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | import os
import time
import csv
import json
from lettuce import step, world
from subprocess import check_call, CalledProcessError
from bigml.api import check_resource
from bigmler.checkpoint import file_number_of_lines
from common_steps import check_debug
from basic_test_prediction_steps import shell_execute
@step(r... | [
"merce@bigml.com"
] | merce@bigml.com |
6cc57c66fb302e40e515a5ccdd279bb4d4c7d0e1 | 06324b7f931f3393e30e93900eb4a3b74ac19f70 | /src/utils/migrations/0001_create_superuser.py | ce61fa7f77c6f6748492ec390c785ec620ec95ce | [] | no_license | kliyes/django_project_template_docker | 277b3f22a63f11ea7108bcee77207174e457475d | 81b2e3f09f5b317f14e780949d14fea394534061 | refs/heads/master | 2021-01-20T09:02:09.003957 | 2018-07-19T02:39:37 | 2018-07-19T02:39:37 | 90,213,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.hashers import make_password
from django.db import migrations
def add_admin(apps, schema_editor):
"""
Add a default superuser: admin/admin when migrate
"""
User = apps.get_model("auth", "User")
User.objects.... | [
"tom@kliyes.com"
] | tom@kliyes.com |
5e77a1ffb92b68337f40c5a963671ef0ed55ef31 | a0b9361f4a17d5b5fdbacd45d05bef9a8f35463a | /Deber/progra1.py | bef79cd9e86161edb59027f6c245fdea03342960 | [] | no_license | marbelyveroy/Sumativa4 | a589aa66799683b04ce13edad15e5e9e21b41804 | 847060781969beb2e0df14be1cfea7f8cdda16e1 | refs/heads/main | 2022-12-31T03:27:32.278091 | 2020-10-17T04:20:05 | 2020-10-17T04:20:05 | 304,794,698 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,949 | py | print('\t\t ESCUELA POLITECNCA NACIONAL')
print('INTEGRANTES:')
print('\t\t Edison Osorio')
print('\t\t Micha Cardenas')
print("\t\t Stalin Maza")
import sys
import math
#FUNCIONES DE LAS FIGURAS
#crear txt triangulo, cuadrado
def crear_E():
archT=open('TRIANGULO.txt','w')
archC=open('CUADRA... | [
"36525306+marbelyveroy@users.noreply.github.com"
] | 36525306+marbelyveroy@users.noreply.github.com |
7c3a5292dbdf6072cb25a109cfdd13c7983d7548 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/common/types/click_location.py | 89822bb622bd68c49742d2af6245686e64e28b2b | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
60be40282c9e9385dc8ff890f71905497b7339d9 | 81bfeed1f323557ef1f5d6f283fd943f53de9f85 | /Python/Array/array_rotation.py | 478b22cacd82f1615226849db7230a57a32ca9fe | [] | no_license | simarpreet96/python_basic | f89d4db4e0a52ef61c79cd680888364e9fd736ac | a3512880d3a1e45376345a6fe5ac8afb0da063b1 | refs/heads/master | 2020-11-26T22:05:35.053591 | 2019-12-20T07:38:35 | 2019-12-20T07:38:35 | 229,214,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | #Function to left rotate arr[] of size n by d*/
def leftRotate(arr, d, n):
for i in range(d):
leftRotatebyOne(arr, n)
#Function to left Rotate arr[] of size n by 1*/
def leftRotatebyOne(arr, n):
temp = arr[0]
for i in range(n-1):
arr[i] = arr[i+1]
arr[n-1] = temp
# utility function to print an ar... | [
"noreply@github.com"
] | noreply@github.com |
83bb0248c83c6338ef2713a3a5daf256ea2797db | e979202a53a7f14bb2d9c6b9b4752ffd78021d69 | /scripts/obj2gif.py | f2559d9b644ccf472b215bf8de85028a0d2959b5 | [] | no_license | dysdsyd/GCNN-A | 39198ced28bc3040a4514b936999ee89f62043e9 | 54c9973015c72c822390dbd3795bd71cea41cd70 | refs/heads/master | 2022-09-05T09:07:20.842792 | 2020-05-26T02:08:47 | 2020-05-26T02:08:47 | 253,641,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,939 | py | import argparse
import logging
import os,sys
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" # see issue #152
os.environ["CUDA_VISIBLE_DEVICES"]="0"
from typing import Type
import random
from tqdm import tqdm
import pdb
import torch
import pickle
import pandas as pd
import numpy as np
import os
import yaml
import re
fr... | [
"dasyed@umich.edu"
] | dasyed@umich.edu |
750e266256ed3262b2f2e784c4d1fb360f035fff | bfd75153048a243b763614cf01f29f5c43f7e8c9 | /1906101115-江汪霖/day0303/text01.py | cb50f07ed61df13fd4cf475b6b316412349dfbbf | [] | no_license | gschen/sctu-ds-2020 | d2c75c78f620c9246d35df262529aa4258ef5787 | e1fd0226b856537ec653c468c0fbfc46f43980bf | refs/heads/master | 2021-01-01T11:06:06.170475 | 2020-07-16T03:12:13 | 2020-07-16T03:12:13 | 239,245,834 | 17 | 10 | null | 2020-04-18T13:46:24 | 2020-02-09T04:22:05 | Python | UTF-8 | Python | false | false | 116 | py | class Myclass:
i = 123456
def f(self,ostr):
return(ostr)
x = Myclass()
print(x.i,x.f("hello,word")) | [
"917563885@qq.com"
] | 917563885@qq.com |
87599bfddfe13da2e25c0413d1cfdb18b0155c2a | eae6eabfaa42015059b732670c3e56763273b05f | /ПідключеннядодатковихмодулівЗадача3.py | 617d1d9fd84ef7f2423294c28566da5f8bd0e2aa | [] | no_license | lazarch/LessonsMarichka | e8180adf259e16012568cd76c0534d87560f096e | 466b6c87c0919de64084c90529896ab6d3f974e2 | refs/heads/main | 2023-03-06T03:19:55.251054 | 2021-02-23T10:11:58 | 2021-02-23T10:11:58 | 341,508,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | c='Програма для визначення площі круга'
d=c.center(70)
print(d)
import math
d=float(input('Введіть діаметр круга = '))
s=math.pi*math.pow(d,2)/2
print('Площа круга діаметром ',d,' дорівнює ',s)
| [
"noreply@github.com"
] | noreply@github.com |
eb10bd4ea2467d5d09f6e12e3ae29cbdeb1501f3 | 667a4c36df7b9fcf45b26a99cdb5551f9e4f0ba7 | /OrelliaSource/PandaCore/Debug.py | 633286b68a3346d206e57dbe8c5d40e5cfc1ca5b | [] | no_license | wpesetti/Orellia-Source | a129ea56cd38109f70294936875b968efcb94fcd | 810cb36e27f2da6cf980bb6aa24a24d0d24bd5fa | refs/heads/master | 2020-06-02T19:16:29.417969 | 2011-08-03T04:04:33 | 2011-08-03T04:04:33 | 2,120,112 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | #for debugging
G_DEBUG = False
def debug(module="?", text=""):
if(G_DEBUG):
print "DEBUG in ",module, ": ", text | [
"wesley_1@comcast.net"
] | wesley_1@comcast.net |
721575c39af22e75db58a6041bfea183daae1d3c | 67ae56e872b0bbd63ab4c1bbff3f41fd7f059407 | /polls/migrations/0001_initial.py | 5e4c20ee50fb682bd9ab2610bf2de270ad676c1c | [] | no_license | HieuNT-Sun-Asterisk/mysite | 5d8129884acc43ec7ebaa5796b6bc1c680d78f52 | 0da42d60f86d8da7fc68dfe6378295b96b257501 | refs/heads/master | 2022-11-28T12:56:42.636386 | 2020-08-05T09:18:36 | 2020-08-05T09:18:36 | 284,654,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | # Generated by Django 3.0.3 on 2020-08-03 09:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"trihieua2@gmail.com"
] | trihieua2@gmail.com |
f45b111df5cd21fc8cd6ffdaa88243d99792b959 | 8aed4ec937edf04b100f373cd46cee606699d74a | /captain_america/spider/migrations/0002_control.py | 0e9fa00972cbb190d49383f0517ba359a88e807e | [] | no_license | xiaguangting/hero | 089f33398276f7ff7df31ae7ab7d36ad787c9e94 | 5feed7de9b404bf5887124e041a5c610894a9995 | refs/heads/master | 2020-05-04T21:43:19.086775 | 2019-10-12T08:19:12 | 2019-10-12T08:19:12 | 179,486,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-04-08 13:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('spider', '0001_initial'),
]
operations = [
m... | [
"xiakang@fun.tv"
] | xiakang@fun.tv |
9c199557fc04f712720b6e33c2a4ed90717998aa | 2779be59343d231855bbeafd087fc571d0f867dc | /Solo Competition/Google Codejam 2017/Round 3/A/A.py | 76b1324982a2840cf717f1ac6be20adeb01e9b47 | [] | no_license | frankbozar/Competitive-Programming | 4d7dbdf3db414718e77cc5afd69398b1f7f01eb8 | bcb1c363d11ada1f05ccd59bc8c93238c2503b23 | refs/heads/master | 2020-06-15T07:34:24.117330 | 2017-09-25T07:09:47 | 2017-09-25T07:09:47 | 75,315,592 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | from itertools import permutations as N
C=lambda n, m: 1 if n==m or m==0 else C(n-1, m)+C(n-1, m-1)
P=lambda n, x: 1 if x==0 else P(n-x%10, x//10)*C(n, x%10)
F=lambda s: 0 if s=='' else F(s[:-1])+ord(s[-1])-ord('0')
G=lambda x: 0 if x==0 else G(x//10)+x%10
def S(n, x):
if G(x)>n:
return 1
s='0'*(n-G(x))
for i in ... | [
"frankbozar@frank.local"
] | frankbozar@frank.local |
7f19ef2799af9962a32f9250ed7aacdf2f8f7122 | 6c244ccae728b0acdd6e2668ab6caa140b1c094a | /UI (1).py | de60ba6c4a6db9950a4b5d35eaf451f3d763f687 | [] | no_license | Shruti-49/project | 52f3ae32f3f41b1a9945baa3d044811782a04fa2 | b3e9eeaddb8f024b39868be6df0787c06f308852 | refs/heads/main | 2023-06-04T03:48:22.784227 | 2021-06-15T10:02:11 | 2021-06-15T10:02:11 | 377,115,668 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 16 22:01:25 2021
@author: Admin
"""
import tkinter as Tk
from tkinter import *
from tkinter import messagebox
import os
import webbrowser
from motiondetector import motion
def Ok():
uname = e1.get()
password = e2.get()
if(uname == "" an... | [
"noreply@github.com"
] | noreply@github.com |
9f1d1285b9c6eb45019b5edb842195eeb9390923 | 76016723a17b5a76d3383f401829649ebcd2b6df | /Ques6a.py | b83108891ccf0a420697df71a931d46560f100cc | [] | no_license | PriyankaGoenka/Task_Two | 3bc8456f6861eb13d8dd0bed585759ee1cd72776 | e8e2c73b3b0f5c67c0047da32298d6edfc85cea7 | refs/heads/main | 2023-03-20T19:11:39.006771 | 2021-03-12T19:43:35 | 2021-03-12T19:43:35 | 346,945,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | x=[1,2,3]
for i in x:
print(i) | [
"goenkapr@msu.edu"
] | goenkapr@msu.edu |
28d39c6dea81506b8dd1e1f53230c70c25166d80 | 6536e42c9a336c80d370d7f07cc4260e4055f683 | /wsgitest.py | f50c5fd0888492f0b48b4b2933233864a3b2cb8a | [
"BSD-2-Clause"
] | permissive | jonashaag/WSGITest | 4ca01144b6217b4769020c0597d075dd03d4549a | fb6f6981f8cc8192b2207a803c078a03bab31a84 | refs/heads/master | 2020-05-20T09:41:52.598794 | 2011-01-17T18:09:21 | 2011-01-17T18:09:21 | 818,200 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import optparse
parser = optparse.OptionParser()
parser.add_option('-d', dest='default_tests',
action='store_true', default=None)
if __name__ == '__main__':
from wsgitest.run import run_tests
options, files = parser.parse_args()
if not files:
if options.default_tests is None:
... | [
"jonas@lophus.org"
] | jonas@lophus.org |
048d1ae4c6f96f43b3fb93737ab9bb6df35d22f6 | 2d1a07b949114c023c22bbfa8a91e24572bb61c4 | /plox/tools/generate_ast.py | 14eb1f120b4268447756f8e2780c1c03e5283eac | [] | no_license | mrkbryn/pylox | 96e9d64bd7d4bbccb59ecf6ea8fd4a09136031ef | 4692601105544b7d4d0544d9ffcd7c3c040470f1 | refs/heads/master | 2021-09-22T04:19:46.940072 | 2021-08-08T00:34:20 | 2021-08-08T00:34:20 | 244,215,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | def generate_class(name, super_class, props):
print("class {}({}):".format(name, super_class))
print(" def __init__(self, {}):".format(', '.join(props)))
for prop in props:
print(" self.{} = {}".format(prop, prop))
print("")
print(" def __repr__(self):")
prop_list = ", ".joi... | [
"mab539@cornell.edu"
] | mab539@cornell.edu |
2d91424ff4bd4f35ff4625aaa988a18765ffa52c | 65c9bedbf4f11a69384128eab9621863d325f227 | /po11.py | 08d7d46a23bc1d8d8105a36103ba96e37cef522b | [] | no_license | Gowt859/guvi | d57c2bc7656f9e414c24db78975dc514a12aa6b5 | 339de4e858121d7d6c4ffdb5fc7409e6804b3dbf | refs/heads/master | 2020-06-14T13:13:55.989938 | 2019-07-17T09:11:16 | 2019-07-17T09:11:16 | 195,013,791 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | g1,g2=map(int,input().split())
s=g1**g2
print(s)
| [
"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.