blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e4382c577641a37d4901e2851a5234ef5ca7c454 | 2d7d3dab4ca34a85be82d9b3acaf0875af28e65d | /broadcast.py | 48193142b4704117c3a4edf377699464642a51b3 | [] | no_license | home9464/selfdrivingcar | 1ae21d63e17f1eebe1786a236c15659106ca141f | 29dde037b583cee9f33b029c5fb67e3eb4a3e344 | refs/heads/master | 2023-07-02T07:22:58.431879 | 2021-07-26T17:06:45 | 2021-07-26T17:06:45 | 228,827,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | import asyncio
import threading
import ctypes
import time
from camsrv import broadcast
class VideoBroadcastThread(threading.Thread):
def __init__(self, name='thread1'):
threading.Thread.__init__(self)
self.name = name
def run(self):
# target function of the thread ... | [
"home9464@gmail.com"
] | home9464@gmail.com |
8cbf854e20549e3c55fba9a464eed3e5afcac7a8 | 4297039ec28e275dc4f091d59d3eec4d01cbeb87 | /Problem3.py | 8c9fc0c926c2089c47f1de1d46579a21e3cf72c4 | [] | no_license | shantanu609/Binary-Search-4 | 6218015f272f2edf5c300b90110f12520c587134 | 6bc949768388b697bb3db8a7c1aa789951a5fe08 | refs/heads/master | 2022-12-02T12:34:32.611823 | 2020-07-21T00:24:04 | 2020-07-21T00:24:04 | 280,953,150 | 0 | 0 | null | 2020-07-19T21:24:55 | 2020-07-19T21:24:54 | null | UTF-8 | Python | false | false | 1,429 | py | # Time Complexity : O(log(n)) where n is the length of smaller array.
# Space Complexity : O(1)
# Did this code successfully run on Leetcode : Yes
# Any problem you faced while coding this : No
# Your code here along with comments explaining your approach
class Solution:
def findMedianSortedArrays(self, nums1, nu... | [
"shantanu_shinde_@mail.fresnostate.edu"
] | shantanu_shinde_@mail.fresnostate.edu |
0ca3f2b59f63bd59d912c3a689244f7d0f73d269 | 2b05f6a7c8719cba8c18131f51bfabc1beb99786 | /userExtends/models.py | 43d097aaf1cfda349902405e4f112cd4110aa5eb | [] | no_license | peoplein333/peoplein333 | 272e8266f9ae09d68cb2b8ed6bc0718249793026 | eb1e4526aa775d2e9add66420293d0d0529fda4c | refs/heads/master | 2020-08-03T06:50:54.212471 | 2019-10-06T11:52:22 | 2019-10-06T11:52:22 | 211,659,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py |
from __future__ import unicode_literals
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compat... | [
"peoplein3c@gmail.com"
] | peoplein3c@gmail.com |
6262dbbc67ab32cdde9d64c08ae395031c327f52 | 6657685c66c5741dc6e944f00fe9a4c74eba3a61 | /model 1.0/Temperature.py | 5f0598f3ba53b106c4ade440b9b139ab29366204 | [] | no_license | vgmontenegro/AgriculturalCropModels | c5db923234d7efabf1233e547d65208357c33bb8 | 56a6159525ac83a4533ceb0c6980ceede57aac45 | refs/heads/master | 2023-05-09T10:23:51.829676 | 2021-06-03T12:56:31 | 2021-06-03T12:56:31 | 358,241,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | def ftar(Tar, Tb, To1, To2, TB):
global FTar
if Tar < Tb:
FTar = float(0)
return FTar
else:
if Tar < To1:
FTar = float((Tar - Tb) / (To1 - Tb))
return FTar
else:
if Tar <= To2:
FTar = float(1)
return FTar
... | [
"82038809+vgmontenegro@users.noreply.github.com"
] | 82038809+vgmontenegro@users.noreply.github.com |
97894c654a06e3ef8c20e075e4b88d4cb949fcf4 | 78de1bbbdf92678d14005f50498abb569f36b1d2 | /tests/settings.py | 27238f45e9c6ceb2ff9f88d9a80817036d7b9fcc | [] | no_license | auf/auf_django_permissions | d1138cfff19ca86de67ebdfe6bd5bbf1e6f326ed | 0f078b890be71ec13ae7373f54c2b08c2094d471 | refs/heads/master | 2021-01-16T21:07:58.483239 | 2016-08-04T20:09:01 | 2016-08-04T20:09:01 | 64,491,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'auf.django.permissions',
'tests.simpletests',
)
AUTHENTICATION_BACKENDS = (
'auf.django.permissions.Authentic... | [
"eric.mcsween@auf.org"
] | eric.mcsween@auf.org |
c460207202a359d3d379b774a17bac103c0adcb8 | 05b2bfe4c5bb716aa2e283567095d613b26f3667 | /listings/models.py | 0a00986df3ec557a00b5cddd29ba9caeae4881d7 | [] | no_license | anshupal11/Ashiyana-Estate | b0b8d09e42846b1cf4fc556e41557fe8523bd114 | ffdb8e0ae477c189b3002b6765d66eef638b0a4a | refs/heads/main | 2023-06-06T21:01:31.698523 | 2021-07-14T11:44:43 | 2021-07-14T11:44:43 | 360,515,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | from django.db import models
from datetime import datetime
from realtors.models import Realtor
class Listing(models.Model):
relators = models.ForeignKey(Realtor, on_delete=models.DO_NOTHING)
title = models.CharField(max_length=200)
address = models.CharField(max_length=200)
city = models.CharField(max_... | [
"anshu.pal108@gmail.com"
] | anshu.pal108@gmail.com |
9e3871b7925111c5f1251f76b0cfd2efe5d46095 | bd47c4c5f40184443889593e1f8885618c22b396 | /Versions/GPSAutoScripter_beta.py | d6c7ea2c51fcc0a75aa44ab834c48c4029431d79 | [] | no_license | AlexanderLutz75/GPSAutoUpdater | ad265582dfdc497abbf68abeca7b68a86e0f9f9d | 35e9351d2a151d690c8761ee0a483dbb01176c7a | refs/heads/master | 2020-04-27T19:50:18.507939 | 2019-03-09T01:54:00 | 2019-03-09T01:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,706 | py | from tkinter import *
from tkinter import filedialog
import serial
import serial.tools.list_ports
import time
import re
class GPSUpdater:
def __init__(self):
self.status = []
self.GUIstatus=[]
def statusUpdater(self,statusIndex,message): #helper function used to accomplish the repetative... | [
"noreply@github.com"
] | AlexanderLutz75.noreply@github.com |
f2c25027c45b40a93490886664660304da59568a | eab7a30463a6176a3fdf24cd43a1919e14284376 | /conftest.py | f52a1b640b5acc64fdf4a5ab9c82b336c4100e43 | [] | no_license | WwuTT/R28_Camera_autotest | 04635a2000231a1ee1f675e275774703110d8b88 | 747064f3b8d4482c85acacd45389c1739a5fc695 | refs/heads/master | 2022-10-12T08:40:17.463589 | 2020-06-09T07:02:27 | 2020-06-09T07:02:27 | 270,927,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | # 写在conftest.py
import os
import allure
from selenium import webdriver
import pytest
# 添加报错截图到allure报告里
driver = None
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
def pytest_runtest_makereport(item, call):
'''
hook pytest失败
:param item:
:param call:
:return:
'''
# execute all other ... | [
"18770210865@163.com"
] | 18770210865@163.com |
f8ba0392696152c9b0153c42e7340ebb511a2e0a | 32bfc07c9661b0820e525158ef9a03c1d3256ecd | /Week 2/mysite-link1/django-polls/polls/migrations/0001_initial.py | 8f55db1363fc94de11712f49c0f9b7f97cca9bdc | [] | no_license | Aktoty00/BFDjango | c4d42d0f8d11a14813dbf2d67830531193b81417 | 95e28e9c56b1c1a3a286a1919b942512efdd585a | refs/heads/master | 2021-09-25T15:35:16.722971 | 2020-04-19T11:43:27 | 2020-04-19T11:43:27 | 234,919,812 | 0 | 0 | null | 2021-09-22T18:39:00 | 2020-01-19T15:16:34 | Python | UTF-8 | Python | false | false | 1,178 | py | # Generated by Django 2.1.7 on 2020-01-22 15:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
... | [
"aktoty.rysdaulet@gmail.com"
] | aktoty.rysdaulet@gmail.com |
63bf625090b06ae9b28675a62fe4a5cf740ede90 | c22b5c68727ef7d351be6db6e4f68965dfd02146 | /blockchain/Mail-Spam-Filtering-master/Mail-Spam-Filtering-master/enron-spamfilter.py | 81199ced603b28acc1bcce61a7b7880418000384 | [] | no_license | louiewuliyu/mail-by-blockchain | b3baf8a297c78aa0adcba83e5117e079047e0b6d | 5f36f1d0a73027c7db26585ec26b85c36e8f40bb | refs/heads/master | 2020-03-30T15:40:52.549313 | 2018-10-03T07:16:59 | 2018-10-03T07:16:59 | 151,374,742 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,198 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 31 15:00:44 2017
@author: Abhijeet Singh
"""
import os
import numpy as np
from collections import Counter
from sklearn.model_selection import train_test_split
from sklearn.naive_bayes import MultinomialNB
from sklearn.metrics import confusion_matrix
from sklearn.svm impo... | [
"lywu0420@hotmail.com"
] | lywu0420@hotmail.com |
895df5a001edf0d2ca8348d795a5ff6e44f9bb5f | 9869e159caaefe0d0d5dc4f3d723a4c0315b5c8e | /apc_util/setup.py | 36167cb74a89f269ba58ac6a92933f8cb180245a | [] | no_license | yazici/motoman_control | 2208bd2d5a3355de3493f47c0d00b82fcbe26e01 | dd2fb2f47b07c9ff1cb4cd4f6c2962b181514de2 | refs/heads/master | 2020-05-21T02:35:55.745700 | 2015-05-27T23:03:42 | 2015-05-27T23:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['apc_util'],
package_dir={'': 'src'},
)
setup(**setup_args)
| [
"alex@thoriumrobotics.com"
] | alex@thoriumrobotics.com |
a789ad6f90b611c1ab8c53baa204e144607c2690 | e7dfccc8136776443461b6580752c7f0f50556b3 | /matrix_webhook/__main__.py | 18d4fccae9584210927760e0ca5fa6e165449fa1 | [
"BSD-2-Clause"
] | permissive | nim65s/matrix-webhook | f223e404922860dfae711b3017664b976fd9d4e2 | ad74f632c630a748577ba201c5e89dfa02eece4d | refs/heads/master | 2023-09-01T01:02:28.097429 | 2023-08-01T11:09:14 | 2023-08-01T11:09:14 | 171,114,171 | 97 | 32 | NOASSERTION | 2023-09-06T13:53:04 | 2019-02-17T11:29:31 | Python | UTF-8 | Python | false | false | 334 | py | """Matrix Webhook module entrypoint."""
import logging
from . import app, conf
def main():
"""Start everything."""
log_format = "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s"
logging.basicConfig(level=50 - 10 * conf.VERBOSE, format=log_format)
app.run()
if __name__ == "__main__... | [
"guilhem.saurel@laas.fr"
] | guilhem.saurel@laas.fr |
6e21093a45d1d4012510faa84dcab11f52ef934d | 4de7bf04f09fcafcfdc029f2ec47f49a9eead50f | /Iterators_and_Generators/prime_numbers.py | b90067fc85f8a43d437a1e14fdff8293c67cb5ab | [] | no_license | Vikadie/Python-OOP | 33ca51b2169a2611f4707863b960bfef0ca4b673 | b1abe1f79f333148e3dd1bc3dc55fbaf814d4a39 | refs/heads/master | 2023-03-24T06:06:18.687388 | 2021-03-26T20:12:48 | 2021-03-26T20:12:48 | 308,573,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | def get_primes(lst):
def is_prime(num):
if num <= 1:
return False
for i in range(2, num):
if num % i == 0:
return False
return True
for num in lst:
if is_prime(num):
yield num
print(list(get_primes([2, 4, 3, 5, 6, 9, 1, 0]))... | [
"68245263+Vikadie@users.noreply.github.com"
] | 68245263+Vikadie@users.noreply.github.com |
7bbe6ab67c86d308fae5338d2825b658c95f31c9 | 6fab0568ba5244b31e3c260df72b07bd40396429 | /models.py | c551c6a0aa70b3c94fdf8c6e115ba4e6c6c7b9d8 | [] | no_license | okamomosan/my_public_goods | 729928b6b7991072e755e2eca3227e78b7945758 | a18cd93067b5a34afd3615147169a751e4332d71 | refs/heads/master | 2022-12-09T11:02:23.516530 | 2020-08-29T09:14:39 | 2020-08-29T09:14:39 | 291,196,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py |
import random
from otree.api import (
models,
widgets,
BaseConstants,
BaseSubsession,
BaseGroup,
BasePlayer,
Currency as c,
currency_range,
)
author = 'Your name here'
doc = """
Your app description
"""
class Constants(BaseConstants):
name_in_url = 'my_public_goods'
players... | [
"jst0515@live.jp"
] | jst0515@live.jp |
15c83f62c9fd56c469799186fc20478de46552d4 | 054eefaa17157b32869ea986347b3e539d2bf06b | /big_o_coding/Blue_13/Homework/day_12_eko_spoj.py | 23dcd5c8db290cfe538fb92b5da5ca59e51c778e | [] | no_license | baocogn/self-learning | f2cb2f45f05575b6d195fc3c407daf4edcfe7d0e | f50a3946966354c793cac6b28d09cb5dba2ec57a | refs/heads/master | 2021-07-12T23:32:14.728163 | 2019-02-10T14:24:46 | 2019-02-10T14:24:46 | 143,170,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import sys
input = sys.stdin.readline
N, M = map(int, input().split())
heights = list(map(int, input().split()))
def getCutted(height):
return sum(max(0, h - height) for h in heights)
left = 0
right = max(heights)
res = 0
while (left <= right):
mid = left + (right - left) // 2
if getCutted(mid) >= M:
... | [
"baocogn123@gmail.com"
] | baocogn123@gmail.com |
064bb76c7c62f304ae205b982893d13f9243fac9 | 1c4110a0bdbb888fd7a82579810cda2c73b52dba | /20210715 Pycharm/Pycharm/venv/Lib/site-packages/bamboo/common/colours.py | 389df001c9cd8b21e7310bebdda8bb08960fbeee | [] | no_license | DrillND/python | d09786e2937a10c9c67170826131b8ee204e0b37 | f6aa1d4d29e4519f89a63af4c3c8f83ed60630ea | refs/heads/main | 2023-06-19T11:51:14.307597 | 2021-07-16T07:18:52 | 2021-07-16T07:18:52 | 355,095,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py |
class bcolours:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
| [
"gornhub13@gmail.com"
] | gornhub13@gmail.com |
b20007cdf4b7fcb8e0d8a1ea67f2a59e65abc61b | 487473cd4aa7a823140b86de5030f5bc8f7d7e64 | /horizon/dashboards/syspanel/registers/tables.py | a5b989efaf6bdff6e60ae8ed24dec5e34d7edf61 | [] | no_license | sunxin3/horizon_application | 7a30abb1e5ae3d25e57551f22ca00bee2219bb40 | 157b79b8ed59685143b2082bd1a45b9695569d07 | refs/heads/master | 2020-05-17T10:30:32.627608 | 2012-11-26T06:48:49 | 2012-11-26T06:48:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,905 | py | import logging
from django import shortcuts
from django.contrib import messages
from django.utils.translation import ugettext_lazy as _
from horizon import api
from horizon import tables
LOG = logging.getLogger(__name__)
class CreateUserLink(tables.LinkAction):
name = "create"
verbose_name = _("Create Use... | [
"sunxin3@lenovo.com"
] | sunxin3@lenovo.com |
920de23a7e0cea19331ff01b03c78d59e3cc6c47 | 338f35a5b1e556cba067bc6ffa3778332267fcdd | /niji/tests.py | 0ca66ce396962321b2f159f3be7467a063224192 | [
"LicenseRef-scancode-sata"
] | permissive | fdl66/OnlineJudge | 50f3273b9d967ca870175a2edf9cb99cedaba6e4 | 4f0ae896694c93788bbb42eddb509fd6fc7aa41a | refs/heads/master | 2020-12-30T13:46:11.188596 | 2017-12-12T10:25:09 | 2017-12-12T10:25:09 | 91,249,578 | 0 | 1 | null | 2017-05-14T14:39:26 | 2017-05-14T14:39:26 | null | UTF-8 | Python | false | false | 34,441 | py | # -*- coding: utf-8 -*-
from django.test import TestCase, LiveServerTestCase
from django.utils.translation import ugettext as _
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriver... | [
"fan0816fan@163.com"
] | fan0816fan@163.com |
9e9471568bc5a8d75796a3682326046ac8831a50 | a80f56fef7b398fae646ec3220f8230d28513930 | /Recognition.py | aea6eb491cec7da925da6cf6ac9ef3d97e360c89 | [] | no_license | ev108/MFFBot | 244b646f08ec9058fae2f7c50d5e78f6aeb5dbff | bb47391c5f9d1b1e6b06e643aeb7022294cd9db8 | refs/heads/master | 2020-06-26T07:22:56.838482 | 2020-04-29T18:02:43 | 2020-04-29T18:02:43 | 199,570,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import pyautogui
import Constants
import time
def locate(s):
acc = 0
while True:
acc = acc + 1
if (acc > 3):
return 0
im1 = pyautogui.screenshot()
coord = pyautogui.locateOnScreen(Constants.ImagePathENG + s, confidence = 0.8)
if (coord is not... | [
"noreply@github.com"
] | ev108.noreply@github.com |
caae4574f3a9d4ee99d07f1fe8a8fa13f4a68803 | dea56c4d044a55ccbbc63224e99cdf5c0a37fd8a | /python/ccxt/probit.py | 3fa95319921ee39c8030da45e246abf27193cb2a | [
"MIT"
] | permissive | Biboxcom/ccxt | ece93a53e6dc3b402f068a5aa39bbf9a47b88e47 | a82a15718aa2fe430dbc09fe10cc99575e5d2b35 | refs/heads/master | 2023-04-12T12:56:25.782008 | 2020-12-24T00:08:07 | 2020-12-24T00:08:07 | 324,118,781 | 2 | 0 | MIT | 2023-03-21T09:05:59 | 2020-12-24T09:31:56 | null | UTF-8 | Python | false | false | 48,425 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationE... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
25133cfe18a4adf5b30ef8c1543ad2e7d90b2d30 | 7295ca77099253173c206eee321396b6fe0ea5fa | /manage.py | a466e5d957c38efac4486a0f70ab2ac3e475a3c0 | [] | no_license | SharukhEqbal/FetchStockWithDjango | 2111c200c7114cef53a7568a81f7e01664d90ab9 | 0db203a91ed62a8ff233d49ed6280571e58372c9 | refs/heads/main | 2023-02-02T08:57:06.583332 | 2020-12-18T06:41:44 | 2020-12-18T06:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'stockProgram.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"shahrukheqbal@gmail.com"
] | shahrukheqbal@gmail.com |
531d4f9a63300f7e4eafeafe171fedd41b1fc595 | 90555b4724b85480fc584dc7cb5085bf24f86b9c | /src/dataset.py | 307b94fcd355f897f920a90060ce5cc717eefa23 | [] | no_license | skasai5296/pytorch_template | fc482ca4ede6190cb701fbc7327f0e213adfce39 | 0a77446ae1432971081e55b75498dbf4b98bba35 | refs/heads/master | 2021-01-03T03:39:56.155681 | 2020-02-15T03:24:38 | 2020-02-15T03:24:38 | 239,906,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | import torch
from torch.utils.data import DataLoader, Dataset
class SampleDataset(Dataset):
def __init__(self, CONFIG, mode):
assert mode in ("train", "val", "test")
self.CONFIG = CONFIG
self.data = []
# sample data
for id in range(100):
self.data.append(
... | [
"seito5296@gmail.com"
] | seito5296@gmail.com |
df83034f4140affc980783d35c7d568b676e9a6a | 6a3a3f5a8fd3eadc9485ff87f181966c0e76c9f6 | /lib/autoAccept.py | 48aac07473b6b2f5704f70fe70e88d26960593b6 | [] | no_license | toothlessG22/Summer2017 | 5be5493a73cd416cf1aba87bc91d0f05b8f1b215 | fb0b37e2c33921106dcd273369cc73a77006ff94 | refs/heads/master | 2021-01-21T20:29:57.901250 | 2017-06-14T01:14:38 | 2017-06-14T01:14:38 | 92,243,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import time
import pyautogui
if __name__ == "__main)":
import openCVLocate
imgpath = "../img"
else:
from lib import openCVLocate
imgpath = "img"
def autoAccept():
delay = 7
accepted = False
while True:
print("accepting")
pos = openCVLocate.locateCenter(imgpath + '/accept.PN... | [
"toothlessG22@gmail.com"
] | toothlessG22@gmail.com |
e5f8425c94bde2476eccb9e15a75fbb2e5a1f41b | 3ac81aae7c268f0dc8b2709875b44e99f79065b9 | /homeassistant/components/rachio/device.py | 64066ca7bd7f6ff6288ef9df24b987e01fe66732 | [
"Apache-2.0"
] | permissive | ronal2do/core | fd304d4cacc45a6065a585d064c383c8c12a7452 | d2e22c653a50ef3ce62ea2d1997b9a2fa7f850ee | refs/heads/dev | 2022-12-28T18:36:54.024714 | 2020-10-17T17:10:31 | 2020-10-17T17:10:31 | 304,744,797 | 1 | 0 | Apache-2.0 | 2020-10-17T17:10:32 | 2020-10-16T21:44:06 | null | UTF-8 | Python | false | false | 6,821 | py | """Adapter to wrap the rachiopy api for home assistant."""
import logging
from typing import Optional
from homeassistant.const import EVENT_HOMEASSISTANT_STOP, HTTP_OK
from .const import (
KEY_DEVICES,
KEY_ENABLED,
KEY_EXTERNAL_ID,
KEY_FLEX_SCHEDULES,
KEY_ID,
KEY_MAC_ADDRESS,
KEY_MODEL,
... | [
"noreply@github.com"
] | ronal2do.noreply@github.com |
a44a8301d9cf018c0b5ff5bc64748a1262eda343 | b9eb496c4551fd091954675a61382636fc68e715 | /src/ABC1xx/ABC14x/ABC140/ABC140B.py | 8357fa46e4c56c5d78f10b2adcc2a1f6074cfb70 | [] | no_license | kttaroha/AtCoder | af4c5783d89a61bc6a40f59be5e0992980cc8467 | dc65ce640954da8c2ad0d1b97580da50fba98a55 | refs/heads/master | 2021-04-17T16:52:09.508706 | 2020-11-22T05:45:08 | 2020-11-22T05:45:08 | 249,460,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | def main():
_ = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = list(map(int, input().split()))
prev = -100
s = 0
for a in A:
s += B[a-1]
if a - prev == 1:
s += C[prev-1]
prev = a
print(s)
if __name__ == '__m... | [
"kthamano1994@gmail.com"
] | kthamano1994@gmail.com |
1ff154cc6b33963eeeca9cf11be68ba8088d0637 | 0be96465a1c0acd6b5a29080ca75a56d7d2c88a8 | /django_views/django_views/settings.py | 9419dea9fedf92fc5922f6e59f4b224260e3ee6d | [] | no_license | KenZP/tulingxueyuan | 975dd9d92127005d89e69ec063efac83e71d5910 | 458ebc9aabe3a0854141c7f1ad6a7a0c3d58ecae | refs/heads/master | 2020-05-05T14:05:39.882969 | 2019-05-08T07:06:13 | 2019-05-08T07:06:13 | 180,106,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,715 | py | """
Django settings for django_views project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build... | [
"398984762@qq.com"
] | 398984762@qq.com |
e54a1974ed4cc824b54c34c1c0ee294ae44db7f2 | 90f7540b6ea01b4d594c54f515fce063f684c7b0 | /astar/test_run_4_cython.py | 7802c9173c6e4fb20e83a09d58e938fd8d3b5a15 | [
"MIT"
] | permissive | rokujyouhitoma/tips | 0c0bd4d1f6e5653466834691bcb4eb55b3d21d7e | dfe0b4211716c1648064769e9118f2d748d20d73 | refs/heads/master | 2023-05-04T09:44:13.107960 | 2023-04-24T10:46:28 | 2023-04-24T10:46:28 | 15,069,738 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | import pyximport; pyximport.install()
import astar
MAP_ROW = 7
MAP_COL = 5
map = [[1,1,1,1,1],
[1,0,0,0,1],
[1,1,1,0,1],
[1,0,0,0,1],
[1,0,1,1,1],
[1,0,0,0,1],
[1,1,1,1,1]]
def is_outside_map(x, y):
if x < 0 or x > MAP_COL-1 or y < 0 or y > MAP_ROW-1:
return True
... | [
"ike.toru@dena.jp"
] | ike.toru@dena.jp |
ee7891e1261dd8494dc3b2baa92032c912d1e53a | 63d328c2286e441a1474c85a04d3ac4d5b1ef817 | /main/models.py | 9f1b2be9483346ae70a34e11e4d316cf651a111d | [] | no_license | rajsingh1505/Review_web | 31ceb6cce9eb1a4183442137e23df34c65f5d6b3 | b93471a2beab326a485a26e390a76a19b7b6f773 | refs/heads/main | 2023-04-05T08:09:30.771705 | 2021-04-06T11:29:00 | 2021-04-06T11:29:00 | 351,867,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Movie(models.Model):
# fields for the movie table
name = models.CharField(max_length=300)
price = models.CharField(max_length=800)
description = models.TextField(max_length=5000,blank=Tru... | [
"noreply@github.com"
] | rajsingh1505.noreply@github.com |
40e7d551c96dcf303d4fb6a2dba273abb261c1a7 | bd0d772947efe708bfb6c5af2c715f5414a52c20 | /DA/DI/app/urls.py | 5a74619fbe21ffba9b7f21c34b7708dd8d48f943 | [] | no_license | kut-info-ase-2020/G1 | 65933fa095313dfcb9ca8fc03dc454b895a584ba | 07ac1f4081b815822b96c1d6e57780e01a1243ba | refs/heads/master | 2022-12-31T03:57:26.146925 | 2020-10-14T03:39:03 | 2020-10-14T03:39:03 | 274,355,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django.conf.urls import url
from django.views.static import serve
from DI.settings import MEDIAS_ROOT
from app.views import allPage, refresh
urlpatterns = [
url(r'^$', allPage),
url(r'^refresh/$', refresh),
url(r'^medias/(?P<path>.*)$', serve, {'document_root': MEDIAS_ROOT}),
]
| [
"chunyuan.lan@foxmail.com"
] | chunyuan.lan@foxmail.com |
eefb34c4f1c10fed44c2715638eee63974cde218 | ec02c2d3a48c5a1613a69db94f5e8b133bd817e2 | /OSRGAN/realesrgan/archs/__init__.py | 15e1837d4b550ed2c4e3e8d0f7ffcc7e3683470a | [
"MIT"
] | permissive | 170744039/QDL-CMFD | c2cbf8d7aba7f76a3960b40a18dbe04763a5bfa4 | 7a95ee8c9f29c98461987977180c1e84fb1b4919 | refs/heads/main | 2023-08-31T18:45:34.962814 | 2021-10-22T14:30:19 | 2021-10-22T14:30:19 | 424,864,886 | 1 | 0 | MIT | 2021-11-05T07:40:08 | 2021-11-05T07:40:07 | null | UTF-8 | Python | false | false | 499 | py | import importlib
from basicsr.utils import scandir
from os import path as osp
# automatically scan and import arch modules for registry
# scan all the files that end with '_arch.py' under the archs folder
arch_folder = osp.dirname(osp.abspath(__file__))
arch_filenames = [osp.splitext(osp.basename(v))[0] for v in scand... | [
"mr.digital@live.com"
] | mr.digital@live.com |
04ce0cfd08c81634d1d820c5f34b2032aac5460c | f1df7e0a5c7c4c60edfc2cad83ccdecfce9a684f | /bigwebsite/include/tables.py | 29d70b2a56f0e2a0fefa7fa7504290cac322e99f | [
"MIT"
] | permissive | lilwebsite/bigwebsite-public | c68bfb76c6c36afffca701c416ef2b2f3769ab3a | 4178f3cfb0d5575907fef0916c04c975687a48a5 | refs/heads/master | 2020-05-19T21:47:26.711926 | 2019-06-02T12:59:37 | 2019-06-02T12:59:37 | 185,233,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from passlib.hash import bcrypt
from sqlalchemy import (
Column,
Integer,
Text,
Boolean,
DateTime
)
from ..meta import (
dbsession,
Base
)
import subprocess
import re
| [
"carl@bigwebsite.cool"
] | carl@bigwebsite.cool |
6c897b9a56505dc586e95b5f8b828384eeb280f2 | 92023290c3ae7a1ce5398696a7e8feab87d11a04 | /alice.py | b9b9082a655cd40769cccb33a46077f8c211eda7 | [] | no_license | EigenAlexa/flask-alice | 58234ed91f6be14cfe632c79e06e499ea6570a71 | 8299d32d8f1ceed300d842f9f51904eaede7984d | refs/heads/master | 2021-03-24T12:52:05.869282 | 2017-07-22T17:10:16 | 2017-07-22T17:10:16 | 76,002,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | import aiml
import os
class Alice:
def __init__(self):
DIR = os.path.dirname(os.path.realpath(__file__)) + '/aiml/'
files = [DIR + f for f in os.listdir(DIR) if os.path.isfile(DIR + f) and '.aiml' in f]
interpretor = aiml.Kernel()
interpretor.verbose(False)
# TODO uncomment ... | [
"superpker@gmail.com"
] | superpker@gmail.com |
c944de8fab0409d084fe3201a216d40e86f28bb9 | b11f1b168f4976e5ded32cbf18524ddf89ba6a67 | /resources/notifications.py | 6e4c51048fc22f67e703ae7fbc213537ff3703b3 | [] | no_license | X0GT0X/emotion-chat | 0a5943803d4d8559fc519339ee6da80c87050308 | 176a11e9f4930ef48371c4e19d55b3d519746b7e | refs/heads/master | 2023-05-23T16:28:13.475860 | 2021-06-12T15:23:25 | 2021-06-12T15:23:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | from flask import Response, request
from flask_restful import Resource
from database.models import Subscriber
from pywebpush import webpush
import datetime
import json
class Subscription(Resource):
def post(self):
try:
subscription_info = request.get_json()
subscriber = Subscriber.... | [
"a.vozniuk00@gmail.com"
] | a.vozniuk00@gmail.com |
41f29315eaba29aa2bfd4bc89269680dcbd5ce9f | d875ebc7f6fb0195aa140de27111df6db86ccfb7 | /crossmath/dfs2.py | d12c80cfa73d7f914f8f44d097eed4621984217a | [] | no_license | kebzilla/4511 | a6502409022177d958cd7211a4fa0dd96fc92951 | cd3139c9a9047420f2b66ab14e4686152392a774 | refs/heads/master | 2021-01-11T17:01:59.974272 | 2016-09-28T21:20:38 | 2016-09-28T21:20:38 | 69,504,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | from collections import deque,defaultdict
class Solution(object):
def findItinerary(self, tickets):
def build_graph(tickets):
G = defaultdict(list)
for S, E in tickets:
G[S].append(E)
for A in G:
G[A].sort(reverse=True)
G[A... | [
"condition.grounded@gmail.com"
] | condition.grounded@gmail.com |
2b67e235a3490fd768faa695ff32d76ed01f6f61 | a6bd25c3508d45134436bc3a39345e2565debec0 | /Assignment1/urls.py | 1fec19327932a4d972c8807b1a1ec09c09df8b86 | [] | no_license | gitNikhilsahu/Django-Business-Employee-Management | 2a869dbf9c0aac078662b09db708b7c03b372c5c | e1c6d1588561abf193d70ca4cb91c912c3ea66d1 | refs/heads/master | 2022-12-17T07:58:25.655611 | 2020-09-25T08:43:18 | 2020-09-25T08:43:18 | 298,517,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', include('business.urls')),
path('employee/', include('employee.urls')),
path('admin/', admin.site.urls),
]
if settings.DEBUG:
ur... | [
"Nikhilsahu.in@gmail.com"
] | Nikhilsahu.in@gmail.com |
f72df796efd23d5fe5956bf5c335d28e7338693a | c29daba4b0c5d649cf10e1c016fd12a11d2e21e6 | /Day2/day2.py | 9f928792bbaab35a1cbece1bb2a59b9ad4a7fc19 | [] | no_license | 16kalai/pythonselenium | 4be985df708d678993a952b4d7dc00985ffe7b7f | 53cb5f8b92737a86f94da84b5f88cdae642a5efd | refs/heads/main | 2023-07-12T18:20:30.008240 | 2021-08-17T17:35:40 | 2021-08-17T17:35:40 | 397,333,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #string method
k = 'Kalai'
s = ['selvam']
N = ('Natarajan',"a b c")
K = {'kannan'}
a = {'Amma':'1,2,3'}
m= {("kala"),'1,2,3,5,9'}
print(k.upper())
print(k.join(s))
print(k.translate(s))
print(k.isnumeric())
print(type(k))
print(type(s))
print(type(K))
print(type(a))
print(type(N),'N:')
print(type(m))
print(len(N))
pri... | [
"16kalai@gmail.com"
] | 16kalai@gmail.com |
76a3692170a887972c6130eaa29633efdcaadd87 | 7dc86226b44a3a00903926a7f7d4930c954c2973 | /python-fundamentals/07 Dictionaries - Exercise/01. Count Chars in a String.py | e08fa2a330a8c0e16d136d49dfbbbe4b11e65f82 | [] | no_license | rescenic/Softuni-Python-v2 | db49ded54fd6eac2179b5a2795bb58b7bc6af1f8 | e5a0d6b13570239a32245e8126cd3cf6abd58d3f | refs/heads/main | 2023-08-10T18:31:01.225334 | 2021-10-05T06:50:37 | 2021-10-05T06:50:37 | 576,778,410 | 1 | 0 | null | 2022-12-11T00:07:25 | 2022-12-11T00:07:24 | null | UTF-8 | Python | false | false | 203 | py | from collections import defaultdict
string = input()
chars = defaultdict(int)
for c in list(string):
if not c.isspace():
chars[c] += 1
for k, v in chars.items():
print(f'{k} -> {v}')
| [
"nkolew@gmail.com"
] | nkolew@gmail.com |
447eb1a1867e23d4dd3d1e0ba385ec65d16efe35 | 7dcd605564f63eb242003aa757d9e22a58c81b9a | /OpenCV_Python/Trackbar_bind_to_OpenCV_win.py | d5e6fd10236f5d13fd2b695cb0c3f6b0f2ba0790 | [] | no_license | satishrawat730/OpenCV | 70fa57cbbe930defc5fc88bed691ec62f2156129 | a930d2d6fb5a22400e45b2ff00df5215b277eca3 | refs/heads/master | 2022-11-20T18:50:51.888344 | 2020-07-26T08:04:35 | 2020-07-26T08:04:35 | 268,498,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | '''
examples of TrackBar :
including using Trackbar as the Color Palette
get user input with OpenCV trackbars.
'''
import cv2 as cv
import numpy as np
def nothing(x):
print(x)
# create black image
img = np.zeros((300,512,3), np.uint8)
# namedWindow(winname, flags=None)
cv.namedWindow('image')
# createTra... | [
"satishrawat730@gmail.com"
] | satishrawat730@gmail.com |
fafc0114c286ee909152b1f42b45d295f24f7c64 | 68e548e5e4d9a9ffa71cfc691644ef8032537439 | /Projects/Bootcamp/(8)Con/animal.py | e03535638793e4e061c3fd0ebf7b1b9380fe39d4 | [] | no_license | Elemento24/Python3-Bootcamp | cd4529cae8508bff4c02d2180a87e9b1afb3aaf4 | fd4538a1ec77312925b333db4f0572c63274d77b | refs/heads/master | 2022-10-22T10:03:39.019364 | 2020-06-12T18:52:30 | 2020-06-12T18:52:30 | 271,868,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | animal = input("Enter your fav animal - ")
if animal:
print(animal + " is my favorite too!")
else:
print("You didn't say anything!")
| [
"mittalvishesh021@gmail.com"
] | mittalvishesh021@gmail.com |
6635c9e91f58f28952d46417bf7414b4f7167f97 | 4860fdddb247f261906cb0e38f415ba605578d06 | /project35/project35/settings.py | f1f803fcbc3bd9b2ac7cb8401624829052da8351 | [] | no_license | adi-23/WADprojectgroup35 | 176bec5eba05999a7e7c20cf103aec9e841a0b15 | 8c8fb8980ebc9a13fcaa48a78eb9b25f345d592d | refs/heads/main | 2023-04-22T14:51:02.918864 | 2021-05-10T07:23:18 | 2021-05-10T07:23:18 | 365,946,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,130 | py | """
Django settings for project35 project.
Generated by 'django-admin startproject' using Django 3.1.6.
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 pathl... | [
"vallinarasimhaswamy.k19@iiits.in"
] | vallinarasimhaswamy.k19@iiits.in |
3b34d116209b819b985bb04c1ef6bd279dc5b23a | a291a13a448bfaee5f130d01b5f0c421cc6d0c46 | /silky-squirrels/chat/models.py | c139c81f38e60d45f2c00e01ae2f3519521f37ce | [
"MIT",
"Python-2.0"
] | permissive | EdwardZhou538/summer-code-jam-2020 | 8e7fe1a22f7e742ba107e23918aaf82c97d643f9 | 89b68b9b080e6a9f5733bc4f1f045f91254fb28e | refs/heads/master | 2022-12-05T01:18:53.384200 | 2020-08-08T04:08:53 | 2020-08-08T04:08:53 | 285,943,330 | 0 | 0 | MIT | 2020-08-08T00:16:22 | 2020-08-08T00:16:22 | null | UTF-8 | Python | false | false | 923 | py | from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
class Room(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
return self.name
class RoomMember(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCAD... | [
"kmui2@wisc.edu"
] | kmui2@wisc.edu |
4dd78f82cf1a0f806669929f566eba7a2f515de4 | 57ebb9ac0419e80d7763fd65cde5425372ef2bfe | /data_clean.py | 978a13e3ceacae5160c52e47e733ea5a2d18b3e6 | [] | no_license | ZiqianXie/ECoG_analysis | ac090a84db2c6736f2fcbbb4faf6bf1bbd881485 | 5d947472a3788edb73a4e3192d27b7bfd6c778a3 | refs/heads/master | 2021-01-10T14:42:07.340627 | 2015-11-13T01:42:11 | 2015-11-13T01:42:11 | 43,315,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
import numpy as np
from operator import add
def clean(X, thres=15, length=400, stride=40):
"""
X is of shape (time/samples, channels)
it calculates the square difference of the
original signal and reject the top 0.05 percentile.
return the row number of the remaining data m... | [
"z.xie4@umiami.edu"
] | z.xie4@umiami.edu |
bf63fe697c539ec382672dc75ea18cf93dae240b | 71d4cc88c68f957a37a2db8234f8178ad2c1c769 | /graphgallery/data/npz_dataset.py | 8e769181796d82f0fa694a5ba370dd41a5b82c3e | [
"MIT"
] | permissive | MLDL/GraphGallery | 3159e0b8ddb1d2fa6b7cea4a27ba075f97db0a03 | 2474622286f135ca693c62981f5a4c4b31bcd2e6 | refs/heads/master | 2022-12-28T03:03:48.516408 | 2020-09-26T16:08:05 | 2020-09-26T16:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | import os
import zipfile
import os.path as osp
import numpy as np
from graphgallery.data import Dataset
from graphgallery.data.io import makedirs, files_exist, download_file
from graphgallery.data.graph import Graph, load_dataset
_DATASETS = ('citeseer', 'cora', 'cora_ml', 'cora_full', 'amazon_cs', 'amazon_photo',
... | [
"cnljt@outlook.com"
] | cnljt@outlook.com |
2f3dc9b1091c9ce8bf8b3f455db007cea527544b | f55ed49e77f2983f9118a5228a0f6d777c4eac97 | /apps/beeswax/gen-py/TCLIService/ttypes.py | 78d1609bf3c6ecb2180d62fcf47162e7936e3d04 | [
"Apache-2.0"
] | permissive | mravi/hue | feb8543e1490fdbfdaff069c021ae168f72b28c6 | 1190bc41c560edf239c5dfc9689d25f3b4b3ab95 | refs/heads/master | 2020-12-25T21:55:41.294305 | 2013-11-07T11:49:05 | 2013-11-08T01:36:42 | 14,227,040 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | true | 169,041 | py | #
# Autogenerated by Thrift Compiler (0.9.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py:new_style
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TP... | [
"romain@cloudera.com"
] | romain@cloudera.com |
1e246da55235765c4e1d884dea487732336a89e7 | fc08d687fd1373fabde8d78c6915d656735d4275 | /venv/Scripts/easy_install-3.7-script.py | 50ae5a79b523e54deaeabbadee074c9dbefa9d78 | [] | no_license | muhammadqasim3/OOP-in-Python | 35f8e35e67af53fb84ccf5dcca727c4447d32e50 | 33e2ccd9e2d78d17fc27bb077ed9309b8d5b0c75 | refs/heads/master | 2020-07-02T17:00:00.965435 | 2019-08-10T07:43:42 | 2019-08-10T07:43:42 | 201,597,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!C:\Users\QASIM\PycharmProjects\OOPinPython\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"muhammadqasimaslam3@gmail.com"
] | muhammadqasimaslam3@gmail.com |
bfb3295ccebada59f4dbb8a494a9fc11ebb8eaeb | 4c8a639b925fdbdb4aceb8740125d0b58a78301f | /regex.py | 9e6396f0d9e927bc7e792c2e13a3e1080d32944a | [] | no_license | krunalbapodara/python-core | 75a0155d7fb168b56cd3773ed928ad56a1378d56 | d48e55a10eaf3caa80de030812e1b104b74f3362 | refs/heads/master | 2023-01-20T01:49:32.191719 | 2020-11-17T21:04:11 | 2020-11-17T21:04:11 | 313,742,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import re
x = re.match('^a...s$','alfias')
if x:
print('Search successfull')
else:
print('Not found') | [
"krunalb@aditiconsulting.com"
] | krunalb@aditiconsulting.com |
6836a941e6848ab1bd5820853ca611f8a76de081 | e1fd174ac836f8c73d966687fd484d5c7fe40ba0 | /code/blogCSVConstructor.py | d606d78751b10c0eef8b7cff8dddbb5c22dc478a | [] | no_license | shaguniitb/politeness | 296c7b4b7d80f0b1a4b894e3237d3c599f24a5b6 | 86cf1644bf7675571a60bc8f157cf0f67b1a9b25 | refs/heads/master | 2021-05-01T16:19:56.698448 | 2013-12-22T22:58:57 | 2013-12-22T22:58:57 | 14,853,149 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | import csv
import string
import glob
import os
input_dir = "politeness/data/blogs";
output_file = "/home/shagun/blogs.csv";
os.chdir(input_dir)
firstLine = True
for input_file in glob.glob("*.txt"):
print input_file
fo = open(input_file, "rw+")
lines = fo.readlines()
request = ''.join(lines)
with ... | [
"shaguniitb@gmail.com"
] | shaguniitb@gmail.com |
0bbd1ab0a6bc645096ae013a61ce705e7e674e84 | e478f2d975a42e98d62a090c20abdec4792152df | /word_count.py | bcbae81bba968635dc6547511e5c0350d233eeec | [] | no_license | JaydSchumacher/word_count | a8386fb3020090f7bbf06122ef4466435043d7e7 | 8740321647ae753ae620457012e7137e03de6c25 | refs/heads/master | 2021-09-03T20:09:12.821471 | 2018-01-11T16:39:36 | 2018-01-11T16:39:36 | 117,125,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | def word_count(a_str):
str = a_str.lower()
list = str.split(" ")
my_dict = {word:list.count(word) for word in list}
return my_dict
print(word_count("I do not like it Sam I Am I Sam not")) | [
"jaydschumacher@gmail.com"
] | jaydschumacher@gmail.com |
0cff417d3d3fdf0cafcb6fb57b8a3e46c800916d | b7a427c500816ea6410954fb63939db29f03ffc7 | /S7/model.py | 42305c40c64ffff16cb252045cd21177f5e747e8 | [] | no_license | shritigupta/EVA | ca83efdcd8bfd958d6c8a8829768e67c4b2abe94 | a8c22deb4558b9b6f3a36a2633095553a44e8313 | refs/heads/master | 2021-01-04T22:06:45.045580 | 2020-04-05T01:10:39 | 2020-04-05T01:10:39 | 240,778,250 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | import torch.nn as nn
import torch.nn.functional as F
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.pool = nn.MaxPool2d(2, 2)
self.fc3 = nn.Linear(10, 10)
self.conv11 = nn.Sequential(nn.Conv2d(3,32,3, padding=1),nn.BatchNorm2d(32))
self.conv12 =... | [
"noreply@github.com"
] | shritigupta.noreply@github.com |
33c101538df11c6010c67e6bebf131c73d036b14 | be5e5aebd753ed1f376dc18ce411f0fac6d2f762 | /natuurpunt_purchase_invoice_line/natuurpunt_purchase_invoice_line.py | 33a495d038111220ae374a7dccc018222c6f58a3 | [] | no_license | smart-solution/natuurpunt-purchase | 7d9fcfdde769b6294d8dc705cecc99a177b4573c | 0ac94cb68cee4ef464158720e04007ee12036179 | refs/heads/master | 2021-05-22T04:43:21.594422 | 2020-11-02T13:32:27 | 2020-11-02T13:32:27 | 39,186,322 | 0 | 2 | null | 2020-11-02T13:32:28 | 2015-07-16T08:42:31 | Python | UTF-8 | Python | false | false | 7,272 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Smart Solution bvba
# Copyright (C) 2010-Today Smart Solution BVBA (<http://www.smartsolution.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the ... | [
"fabian@deviance-network.com"
] | fabian@deviance-network.com |
227da0ccd56f8c0552de0a25bbc4096f57b38a0a | 88fde4aa672d1db9197d67a7627470645ab71c94 | /tutorial/Jochen_Testing.py | e5646450fbeae0ef2ecf3ac1aff623082b9c3ef1 | [
"MIT"
] | permissive | ErikaNicole/Gene-Expression-Data-Analysis-with-Gaussian-Process | 28d92e3e6763cd47f07ed7cdfcdcc04e524579a0 | 33e49d9bc824cb4107a2fa02f3608fb1bced0bff | refs/heads/master | 2023-02-16T01:00:38.381767 | 2021-01-11T17:02:10 | 2021-01-11T17:02:10 | 289,285,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,591 | py | # 1. Import
import sys
sys.path.append('../') # Necessary to access classes functions from other folder
import numpy as np
import matplotlib.pyplot as plt
import os
import pandas as pd
import csv as cv
import classes.data_prep as prep
import classes.gp as gp
import classes.data_visualisation as visualisation
import c... | [
"63018077+ErikaNicole@users.noreply.github.com"
] | 63018077+ErikaNicole@users.noreply.github.com |
59c65295bbf233c1466985d1aa33bafac20aa3fe | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/1152.py | a5a2f7fcec24d2ae43109115e3074698189fdd34 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from string import ascii_lowercase
from pprint import pprint
import sys, os
sample_googlerese = """ejp mysljylc kd kxveddknmc re jsicpdrysi
rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd
de kr kd eoya kw aej tysr re ujdr lkgc jv
"""
sample_answer = """our language is impossibl... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e7ed020d3d17b161765a66a3e7f4d7b554458f09 | 1cddb2023b2ca7137102dd4696e9c1f1ace70b6b | /administrator/views.py | 435d5c625efadc1db5bf8356a8e7b48e25894763 | [] | no_license | tafelaj/headway | df3532245ec67ea2118a5b6365cf8c68fc0fe4ef | c37aff6f009ab3d62607da3f5e01bd6284af9ce2 | refs/heads/master | 2022-12-31T22:10:56.832159 | 2020-10-23T16:39:37 | 2020-10-23T16:39:37 | 285,689,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,153 | py | from django.shortcuts import render, redirect
from django.urls import reverse_lazy, reverse
from django.views.generic import TemplateView, UpdateView, CreateView, DetailView, DeleteView, ListView, FormView
from django.db import transaction
from headway.models import Program, News, Course, Exam, Lecturer, Student, Exam... | [
"tafelaphiri@live.com"
] | tafelaphiri@live.com |
77dcd58897fa39cc6326e1fc2178a0adc30ff87b | cbdef2e8ed259adc4653ade34db12d8bcc0cea9f | /dominion/cards/Wizard_Student.py | fa8a42e3234ec5e594f4503326b3c3dd61788893 | [] | no_license | dwagon/pydominion | 8dd5afef8ec89c63ade74c4ae6c7473cd676799f | 545709f0a41529de74f33aa83b106c456900fa5b | refs/heads/main | 2023-08-29T10:02:26.652032 | 2023-08-23T02:25:00 | 2023-08-23T02:25:00 | 18,776,204 | 1 | 0 | null | 2023-08-23T02:25:02 | 2014-04-14T20:49:28 | Python | UTF-8 | Python | false | false | 3,568 | py | #!/usr/bin/env python
import unittest
from dominion import Game, Card, Piles
###############################################################################
class Card_Student(Card.Card):
def __init__(self):
Card.Card.__init__(self)
self.cardtype = [
Card.CardType.ACTION,
... | [
"dougal.scott@gmail.com"
] | dougal.scott@gmail.com |
3bc6136b64489930bc574a66c873d9d395954d08 | 08249246cf7afc719d7b1a4945f0a3299856eff7 | /Make a dic.py | 3e0102bc9d67830fab1898c3a1ac4156ac76f5e2 | [] | no_license | dashasur/insert-table | b44ef1f983c5f30e27344b0ff4b8ffee0ded23bc | 35a3a9429544c7a853948b159e7e74c69dc747d5 | refs/heads/master | 2020-06-03T05:30:24.964698 | 2019-07-08T22:36:27 | 2019-07-08T22:36:27 | 191,461,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | import psycopg2
try:
conn = psycopg2.connect(dbname='daria', user='daria', password='dasha50', host='192.168.4.12', port='5432', )
cursor = conn.cursor()
postgres_select_query = """Select id,name from "Public".currency"""
cursor.execute(postgres_select_query)
a = cursor.fetchall()
d = {}
... | [
"surtaevad@gmail.com"
] | surtaevad@gmail.com |
cf6089cec9f0d2fe47ea4317a46c9d8b5f5e8db2 | 452c7e30ffca48a1796ef96acbbc96877578a501 | /urls.py | 6cb576c77ac02ce9a5ed6889d5cf21bd49448b67 | [] | no_license | willadamskeane/obieconnect | 96599933383e1e7f6ea6046503979a1b5e41302b | 6f07c7e6fa5b86d9f28943352623f698cc2d658d | refs/heads/master | 2016-08-04T10:27:31.213855 | 2012-04-28T21:34:21 | 2012-04-28T21:34:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from django.views.generic.simple import direct_to_template
from bootstrap.views import *
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
#Registration
(r'^accounts/',... | [
"willadamskeane@gmail.com"
] | willadamskeane@gmail.com |
49f96025b75bc42f6ff032811ed55e1eaeca7270 | c8615c0e06197ae8968e884ab0620076f923e9a9 | /num_str.py | 0dbc6949919fbd526341134e9b54b71fa8bfde40 | [] | no_license | bafss/python | 95c20a10800d5a47dc5a516456f7401376936ecb | 3499c02b1f2106e060aa5abf11da1cae1820e2bf | refs/heads/master | 2020-03-25T15:08:52.925050 | 2018-08-07T12:38:24 | 2018-08-07T12:38:24 | 143,868,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | # -*- coding:utf-8 -*-
#整数、浮点数、字符串、布尔值、空值None、列表、字典、集合
print(type(int('11111')))
print(type(11111111111111111111111))
print(type(11111111111.11111111111111111111))
print(4/2,9/3)
print(r'''i'am ok "{a}\t \\\\''' . format(a = 5)) #r表示不转义看到是啥就是啥
# 在计算机内存中,str统一使用Unicode编码,当需要保存到硬盘或者需要传输的时候,就编码为UTF-8编码。
print('123文档')
pr... | [
"lilizhao@sogou-inc.com"
] | lilizhao@sogou-inc.com |
19c2317d62bdc44429333c7da02931c3fcf51573 | 64f471e42e2abe481a721e254f499c5b965e1464 | /captive_portal/policy_list/policylist_control.py | bfc230ee12fbf307f00bbb558e3506ed2dc6802e | [] | no_license | gwnauto/GWN_Cloud_regressiontest | 5a57a05e01ef24ee31612a1406a22e7e16646836 | 9cff9c9e828636192c215e85e041593719fa4a59 | refs/heads/master | 2020-03-23T14:42:49.641470 | 2018-07-20T09:48:09 | 2018-07-20T09:48:09 | 131,081,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | #coding=utf-8
#作者:曾祥卫
#时间:2018.07.10
#描述:captive portal--policy list的控制层
import time, subprocess
from data import data
from publicControl.public_control import PublicControl
from captive_portal.splash_page.splashpage_business import SplashPageBusiness
class PolicyListControl(PublicControl):
def __init__(self, s)... | [
"gwn-automation@grandstream.cn"
] | gwn-automation@grandstream.cn |
01f32c1f857b3e6cb6206443d4778d3411fa38fa | 85de10a9467b3cd88ce83227bee0d71706e2c2b0 | /c15/point1.py | bcd93dd9a81cdd42b3999ae7c53212cba3aa9078 | [] | no_license | sreejithev/thinkpythonsolutions | f0bbfc0951e57e9b81f50aabf968860484081524 | 59481fd3d2976e73691a3fff97e083c336070cea | refs/heads/master | 2019-07-22T14:08:54.890004 | 2017-09-15T05:06:26 | 2017-09-15T05:06:26 | 94,759,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | """
Code example from Think Python, by Allen B. Downey.
Available from http://thinkpython.com
Copyright 2012 Allen B. Downey.
Distributed under the GNU General Public License at gnu.org/licenses/gpl.html.
"""
class Point(object):
"""Represents a point in 2-D space."""
def print_point(p):
"""Print a Point ... | [
"sreejithevwyd@gmail.com"
] | sreejithevwyd@gmail.com |
8b85bd2c6c9b054817167698608b01c1bde8b42e | 8fa3f6a0b64fba033adda723b229cf4cc74898ab | /truthing/pyqtgraph/console/Console.py | 3ea1580f6b18a207f2d470401d2854be9c5c97f5 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | aldopareja/MCS | 3f86a562e9427302b1fd46b2a6d539aab5a0e9b3 | d8cf9172460dec281e8ec2d714835226a75a6966 | refs/heads/master | 2021-04-05T16:46:38.706045 | 2020-03-20T13:21:52 | 2020-03-20T13:21:52 | 248,579,433 | 1 | 0 | Apache-2.0 | 2020-03-19T18:43:56 | 2020-03-19T18:43:55 | null | UTF-8 | Python | false | false | 15,433 | py | import sys, re, os, time, traceback, subprocess
import pickle
from ..Qt import QtCore, QtGui, USE_PYSIDE, USE_PYQT5
from ..python2_3 import basestring
from .. import exceptionHandling as exceptionHandling
from .. import getConfigOption
if USE_PYSIDE:
from . import template_pyside as template
elif USE_PYQT5:
fr... | [
"clark.dorman@nextcentury.com"
] | clark.dorman@nextcentury.com |
d7a3715564bf502e8f7675515f39437fd16aea6d | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/libsecret.py | b42a31342843ec94f44a8536408092b7348707ab | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | from .base import GnuRecipe
class LibSecretRecipe(GnuRecipe):
def __init__(self, *args, **kwargs):
super(LibSecretRecipe, self).__init__(*args, **kwargs)
self.sha256 = '9ce7bd8dd5831f2786c935d82638ac42' \
'8fa085057cc6780aba0e39375887ccb3'
self.name = 'libsecret'
... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
16bc8676616f58fc61217f3c23d885a36eac8473 | 5cbd70905f76c63058ba96edcc91650a131e2911 | /node_modules/webpack-dev-server/node_modules/fsevents/build/config.gypi | 86e7c075dc794be1a39a73d36b2276978010e880 | [
"MIT"
] | permissive | lfry610/monsters-rolodex | 24590bcbe48c0d37e18cca3d8a459306d9a8fe92 | 7f27a93aaedca6f0029ebf6f21b48f061aa29980 | refs/heads/master | 2023-02-14T22:37:26.806549 | 2021-01-10T22:16:58 | 2021-01-10T22:16:58 | 328,454,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,746 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"lawrencefryer@Lawrences-MacBook-Air.local"
] | lawrencefryer@Lawrences-MacBook-Air.local |
0708beed159ee8612e7a5cb4b59e3e475cc257ab | f5c60e2a20ce8d935b97349a7040e59ffd2b442b | /yash/views.py | c44db3c6588a1b8fca00fd9efc90f9b08a96881f | [] | no_license | yasobantakumar/ONLINE-FOOD-MARKET | cb1e168f2aa8c1585b311d078a4f04c3f8612969 | 1d41154e2e261f4a2e15f6ce6051584f6203ff48 | refs/heads/master | 2022-12-10T03:16:40.286722 | 2020-09-08T09:44:26 | 2020-09-08T09:44:26 | 293,413,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,815 | py | from django.contrib import messages
from django.shortcuts import render, redirect
from yash.models import AdminLoginModel,StateModel1,CityModel1,CuisineModel
def showIndex(request):
return render(request,"yash/login.html")
def login_check(request):
if request.method == "POST":
try:
admin ... | [
"yashbardhan69@gmail.com"
] | yashbardhan69@gmail.com |
f7506da0c51002450d4c296cd3c9a8b07112962d | 517a4a9ce0ec7ad958981affef479b9097b9a023 | /gen-go-build.py | 199410b4c29e6cf16124c8ce73c16d88a8f8f748 | [] | no_license | wisechengyi/binaries | b9aa39bec865fc75739413a35447468815e46026 | 8d5d6fed66706ec9f52965bad9c6d5ed7d7430b6 | refs/heads/master | 2023-02-28T13:24:20.686886 | 2018-11-20T17:03:33 | 2018-11-20T17:03:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | #!/usr/bin/python
# Helper for creating Go build.sh files. This script will create a default build.sh file
# for Go/macOS/Linux versions listed below, unless the directory already exists. If a custom
# build.sh script is needed, just create it and this helper will ignore it going forward.
import os
from textwrap impo... | [
"stuhood@twitter.com"
] | stuhood@twitter.com |
e50972f3b85ec4897e5d40a0ed5ad4c465cd8100 | 38f267668c75ed37a17e514e18f263c872b0b5d6 | /repos/blender_tools/breakout/breakout_controler.py | f39d1752069d0f8283c2fe47c64c5358dc10f708 | [] | no_license | BlenderCN-Org/working_files | c264d1390a2bfdd4781376fd1ec1747d8c81c251 | 0788f00283d7c8c083aa5d554eb1f32c201adbd6 | refs/heads/master | 2020-05-27T08:35:12.899432 | 2016-01-06T21:52:21 | 2016-01-06T21:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,786 | py | # ##### BEGIN GPL LICENSE BLOCK #####
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distribut... | [
"jordan.goddard@tangent-animation.com"
] | jordan.goddard@tangent-animation.com |
8528501e9a70578cfb338083bb1c11b49ca821f7 | fc5ff290909092ee2d01abc7610623966bc532ad | /warmup-2/last2.py | 774a08a30ec5aba96c95b033f395f165e726d07f | [] | no_license | aishuannu/codingbat | 7fe1e486010bf421095a19e084136834f97f2a70 | 25b819be3587ecdea0f7de132ad24bb3bdbe7a63 | refs/heads/master | 2021-01-12T13:37:49.619866 | 2016-10-18T13:51:07 | 2016-10-18T13:51:07 | 68,989,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | def last2(a):
i = 0
b = 0
while i<len(a)-2:
if a[i:i+2] == a[len(a)-2: ]:
b = b+1
i += 1
else:
i += 1
return b
| [
"aishuradhakrishnan21@gmail.com"
] | aishuradhakrishnan21@gmail.com |
b59e5fc9e79aa3e28a8c97c4345cbe549c9e0b42 | 3386fd7bf665797c028e4b46f7e9ce0c9b101a9d | /MadLib.py | 1357deeb3ab0352fad743a31ca8b3ea43a6af9a0 | [] | no_license | Julie789/PythonClass1 | d1ac0f214b9434408d47d87a38536a3c6b069ed1 | d77873dc20b10ae1d99d1d4f23ec81b2266c42c7 | refs/heads/master | 2022-12-06T18:46:37.446309 | 2020-09-05T22:08:02 | 2020-09-05T22:08:02 | 293,113,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | #MadLib.py
#Name:
#Date:
def main():
#Ask user for words
#Print the story with the user supplied words.
main()
| [
"noreply@github.com"
] | Julie789.noreply@github.com |
da3f14eb4676c866d47a2784491765e6f5abcac8 | 0bbeb0bbe788ec5a8ba15acf159e4b913985bba4 | /tests/testsuite/a_basic/tests_03_networking.py | 5173cf96368f92efba523e5f790107970eeb035a | [
"Apache-2.0"
] | permissive | GlenDC/0-core | 629bd9836ab4ff2fe0c40628419b58205bb64648 | 807fa1939199fa3aa3b3e57679f61bb6c72cc57f | refs/heads/master | 2021-06-17T19:52:40.405225 | 2017-06-14T16:42:39 | 2017-06-14T16:42:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | from utils.utils import BaseTest
import time
import unittest
class BasicNetworking(BaseTest):
def setUp(self):
super(BasicNetworking, self).setUp()
self.check_g8os_connection(BasicNetworking)
def test001_join_leave_list_zerotier(self):
""" g8os-012
*Test case for testing join... | [
"deboeck.jo@gmail.com"
] | deboeck.jo@gmail.com |
8db1be4351b09baa57321eff9665ef48aaacf2e5 | 81df54e1245fbc50ffaa6c08108deeef43710596 | /Basics/simple_recursion_01.py | 28fafdb19a8df91174492771fd7f22a7f4a8167f | [] | no_license | gurupsv/LearnPython | 1abdca29ac910e8c99af43fd431da02618175bf2 | e0b25a0a4fa70ee3e0ce5f96cc7bf35eeba8b15c | refs/heads/master | 2021-08-29T03:09:05.366315 | 2021-08-19T03:36:40 | 2021-08-19T03:36:40 | 117,851,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py |
def sumofall(n):
if n == 1 :
return 1
else :
return sumofall(n-1)+n
print(sumofall(5))
print(sumofall(2))
word_list = ['cat','dog','rabbit']
letter_set = set()
letter_list=[]
for a_word in word_list:
for a_letter in a_word:
if a_letter in letter_list:
continue
... | [
"guruprasad.sv@gmail.com"
] | guruprasad.sv@gmail.com |
523c65f5d46898de218134794522c807284fe7d3 | b636634de73bc8208e244158f0a68932ed2c0682 | /exercises/501/solution.py | 6789cd15173eba585603de05988c838f7fa044df | [] | no_license | augustinkrug/hackinscience | 3de39d3a938d0f38295b8e54bcaf45735036fbda | fe50bd8b5e16851c0e650b65a8063442f92fe5d9 | refs/heads/master | 2020-06-15T02:21:47.450981 | 2015-09-25T15:40:14 | 2015-09-25T15:40:14 | 42,852,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 22 13:33:07 2015
@author: A.KRUG
"""
def changes2(amount, coins_rv):
count = 0
while coins_rv[0] > amount:
del coins_rv[0]
maxi = amount // coins_rv[0]
for i in reversed(range(0, maxi + 1)):
rest = amount - i * coins_rv[0]
if rest... | [
"a.krug@ackr.net"
] | a.krug@ackr.net |
52d164c079e7024407ee033d66648507ebb48c67 | 99052370591eadf44264dbe09022d4aa5cd9687d | /install/lib/python2.7/dist-packages/cwru_msgs/msg/_NavSatFix.py | 7fc5ec0e156d178ec0e03f7841197d2a80f8b5d4 | [] | no_license | brucemingxinliu/ros_ws | 11b1a3e142132925d35b3adf929f1000392c5bdc | 45f7e553ea20b79e3e93af5f77a1b14b64184875 | refs/heads/master | 2021-01-24T03:36:47.043040 | 2018-02-26T00:53:37 | 2018-02-26T00:53:37 | 122,892,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,328 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from cwru_msgs/NavSatFix.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import cwru_msgs.msg
import std_msgs.msg
class NavSatFix(genpy.Message):
_md5sum = "2d3a8cd499b... | [
"mxl592@case.edu"
] | mxl592@case.edu |
d57cb07ed57a82b555564b74948badf8c7d3afbb | 30ee4a21565cb20c046a300879c88992f78d9ebd | /JumpGameII.py | 10e9fccb26b3ee0c6f93a9addfb28dbf4d11f6c1 | [] | no_license | pranjay01/leetcode_python | 93ecead7d1a954970074e5cde894dff5537389a5 | b7a625e6fafd856c933c3d2bbbed00ae8992ef9e | refs/heads/master | 2022-11-06T20:19:21.810048 | 2020-06-30T20:56:34 | 2020-06-30T20:56:34 | 276,206,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | nums=[1,2,1,1,1]
def findindexOfMax(nums,cur,maxD,l):
#l=len(nums)-1
limit=cur+maxD-1
if limit==(l):
return (l)
elif limit>(l):
limit=l
maxv=nums[cur]
index=cur
for i in range(cur,limit):
if maxv<nums[i]:
maxv=nums[i]
index=i
return index
... | [
"pranjay.sagar01@gmail.com"
] | pranjay.sagar01@gmail.com |
38fd0d89ac93cda1cf7c1026d0604cb9e0057c48 | 44075f81ed374c860c731cbc8713d60e177495a7 | /Selenium/Log_In/practice.py | 7418d4bcfad45936920810a113c7f44a08d85f41 | [] | no_license | skashem/Python | a6740dc4240f90a639caa9eebcaf14e1578af594 | cd314e73ef1fab19dc90464c649a90e2c31e33ee | refs/heads/master | 2021-01-10T22:01:12.843946 | 2013-03-12T16:19:51 | 2013-03-12T16:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from Log_In import driver
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver import ActionChains
#method fo send keys
def Edit_Field( user_name,password ):
driver.find_element_by_xpath("//*[@id='email']").send_keys(user_name)
return Edit_Field
... | [
"skashem@totsy.com"
] | skashem@totsy.com |
456dccc0d0b058daea30a5811b67c32f327eaad5 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/breadcrumbs/exceptAs.py | 98450c359de443a2f944b026192782eee6f6b9cc | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 61 | py | try:
print "abc"
except KeyError as e:
print "d<caret>ef" | [
"Semyon.Proshev@jetbrains.com"
] | Semyon.Proshev@jetbrains.com |
6b3e10704b67a05bbd5fc73fe408618d870f0728 | 262311e60529868e38c2c57ee3db573f8e11c458 | /qa-automated/runner.py | c841c2e6d2e393b0fa9c3ef97393f624bae447f1 | [] | no_license | huileizhan227/untitled | 1c5604736d9ffcce6f7cb7e308cdc0ebd07e116a | 07df74c89291b1664a28e3c8dcba51a917f1835f | refs/heads/master | 2023-01-27T11:51:37.609210 | 2020-04-16T11:49:59 | 2020-04-16T11:49:59 | 150,606,504 | 1 | 0 | null | 2023-01-09T12:00:12 | 2018-09-27T15:12:18 | HTML | UTF-8 | Python | false | false | 2,700 | py | import os
import sys
import time
import qasite
import pytest
import config
from multiprocessing import Pool
from performance import Report as Perf
from common import devicectl
from common import serverctl
from common import utils
def run(project_name=None, build_id=None, test_name_filter=None):
# before
if (n... | [
"374826581@qq.com"
] | 374826581@qq.com |
2ac4989e7ee98f671dc7f66b5079039b4e0c3f88 | 1f30b545c14cdeb63b4409dccf75e99e561e94ae | /welleng/visual.py | 318f7a427a7219af39455e3876061ada7993597d | [
"Apache-2.0"
] | permissive | huangkai31/welleng | 1dbff0383e8b67e54003e01f10e758382c21dfe8 | 860b78d2fc484e40426b2a2cf6a7830a859807cf | refs/heads/main | 2023-07-12T17:20:55.223218 | 2021-08-02T22:43:52 | 2021-08-02T22:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,901 | py | try:
import trimesh
TRIMESH = True
except ImportError:
TRIMESH = False
try:
from vedo import show, Box, Axes, trimesh2vedo, Lines, Sphere
VEDO = True
except ImportError:
VEDO = False
import numpy as np
from .version import __version__ as VERSION
class World:
def __init__(
self,
... | [
"jonnycorcutt@gmail.com"
] | jonnycorcutt@gmail.com |
4926ffe92721d5b449773c2caff35eabfbef1e6a | b410490f4249b4075eab92e3a16000a8b839e18c | /object_detection/YOLOv3/dataset.py | 835b5b26d48edf15af90e53cc530340dfc619848 | [] | no_license | TaeYeon-kim-ai/Pytorch | 5936145643a2b36b5c52e43f735bda81264ed6d5 | 452e5543a959f2b280b088635953985e1101041d | refs/heads/master | 2023-07-01T17:29:30.558774 | 2021-08-12T19:01:36 | 2021-08-12T19:01:36 | 387,499,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | #import config
import numpy as np
import os
import pandas as pd
import torch
from PIL import Image, ImageFile
from torch.utils.data import Dataset, DataLoader
from utils import (
iou_width_height as iou,
non_max_suppression_as_nms,
)
ImageFile.LOAD_TRUNCATED_IMAGES = True
class YOLODataset(Dataset) :
de... | [
"lovehjty@gmail.com"
] | lovehjty@gmail.com |
04f7c65a1415eda08f8795e92296d6e74b3ec043 | 3b645c0180db61a1dbc870ea4b48c27f96683965 | /model_and_simulate/road_traffic_microscopic/vehicle.py | 73418cc0dca39e335cdc473566014b1b075cfc1e | [
"CC0-1.0",
"BSD-2-Clause"
] | permissive | tomtuamnuq/model_and_simulate | 245c361bbbfb3ad4a3b11f6bae10cab1fe6aedf1 | 40a37159ef03ca992558924c5b9cdbbfba9c5a85 | refs/heads/main | 2023-06-30T00:25:13.146440 | 2021-07-29T13:57:32 | 2021-07-29T13:57:32 | 380,200,699 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | """Module with `Vehicle` class."""
from __future__ import annotations
from typing import Optional
from numpy.random import default_rng
from .section import Cell, Section
SEED = 1234
rng = default_rng(seed=SEED) # keyword seed=SEED
class Vehicle:
"""This describes a stochastic cellular automata."""
def __in... | [
"tomtuamnuq@users.noreply.github.com"
] | tomtuamnuq@users.noreply.github.com |
94ab3c6e0fc557517bcc2017e61c5afc8ca33fa7 | c538edef188725501ad164bd7c9b8c537c024376 | /blog/handler/test2.py | 24c5ff0ed6466a6d4a96e16d8234ff800d61f201 | [] | no_license | daishitong12345/PersonalBlog | cdfcda40cf30edd4558eb2c79074fa0ac6280e64 | 83f21422e6b201d923fdcbb4156f612f75df3a93 | refs/heads/master | 2022-11-28T04:49:32.635581 | 2018-03-07T08:40:13 | 2018-03-07T08:40:13 | 124,204,737 | 0 | 1 | null | 2022-11-20T20:03:13 | 2018-03-07T08:33:47 | Python | UTF-8 | Python | false | false | 344 | py | #_*_coding:utf_8_*_
__author__ = 'dst'
from magweb import MageWeb
from ..model import User,session
from ..util import jsonify
user_router = MageWeb.Router(prefix='/user')
@user_router.post('/reg')
def reg(ctx,request:MageWeb.Request):
print(request)
@user_router.post('/login')
def login(ctx,request:MageWeb.Reque... | [
"291415593@qq.com"
] | 291415593@qq.com |
9767187549aa3969e1f4c38295e879146bb40233 | 2d1cf59d4ad9321664a3e4b846395107c42f520c | /sdk/search/azure-search-documents/azure/search/documents/_paging.py | 15968c0066934d71c94f6aca6e8a30159cbfc3d4 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | RGKarthik/azure-sdk-for-python | ad73755eed6760d5c0dfa3c4ae9b9e58005f8626 | 7927f8468808a6938972d32bad69448c98297c03 | refs/heads/master | 2023-05-14T05:40:53.086308 | 2021-05-25T19:08:31 | 2021-05-25T19:08:31 | 370,263,477 | 1 | 0 | MIT | 2021-05-24T19:19:31 | 2021-05-24T07:21:17 | null | UTF-8 | Python | false | false | 5,136 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from typin... | [
"noreply@github.com"
] | RGKarthik.noreply@github.com |
aa61f02c9495f71cfaf5f623af8b8972ba1ad99c | 763278b0a6357e88deda2c5c734e22f2337cc926 | /Monitor/Monitor/urlgenerator.py | a40b2fb14b2cd0c0765f309063a3c587aa98d724 | [] | no_license | abirAdhikari/Website_Monitoring | 1e8a4c2162dcd89b16fe4552a32a9c14b10c1137 | 8cc4a0f4a4037fdaf37ee823ee3529e35456001d | refs/heads/master | 2020-05-18T11:52:34.083834 | 2019-05-06T17:17:26 | 2019-05-06T17:17:26 | 184,391,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,565 | py | # Author: AADHIKARI 06/06/2018
'''
How to parse JSON files?
https://stackoverflow.com/questions/21058935/python-json-loads-shows-valueerror-extra-data
'''
import os
import sys
import logging
import random
import pandas as pd
import json
from pandas.io.json import json_normalize
import urllib
from lxml im... | [
"noreply@github.com"
] | abirAdhikari.noreply@github.com |
c0f054d4e60c35d007c3451890947d020565fbc5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02783/s809384037.py | b1bac9c9f8363c745905fad4ee60b29b26e6e608 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | n,d=list(map(int,input().split()))
if n%d==0:
print(n//d)
else:
print((n//d)+1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
406df6ef0eb1d39f1092d6c53dd1dce093229a1e | c60d4905da857517c8c9713624c9c4d3d4dd0a33 | /shop/migrations/0001_initial.py | 6d0fc6d5540caac5fa0af66df281d64b7d6909e0 | [] | no_license | ianb-/pojshop | 3037ee94df9f095f45a650ec9ab51d5f3a3a7667 | edf46479bfca453e1d704ad0efad494dbe62f201 | refs/heads/master | 2021-01-21T14:07:42.800642 | 2015-05-17T23:13:44 | 2015-05-17T23:13:44 | 28,342,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,990 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import easy_thumbnails.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations... | [
"ijhbrwn@gmail.com"
] | ijhbrwn@gmail.com |
40ac61ccebbeae3f39a88ba709f64e382cafcc52 | 8252d36ace0bcd68c40ddfc53a4b3179d3065ace | /Miller-Rabin.py | 8d61e419c4971b6a9ed96298ca8838c3f90166fb | [] | no_license | White898/MATH-IA | 81e730a3d83895a393e9656589c75524f113b0ef | 8e6e7a12e66790eeba3f44c01f019a46f70e79ea | refs/heads/master | 2022-04-15T18:44:53.950315 | 2020-04-10T09:06:33 | 2020-04-10T09:06:33 | 254,591,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | # Python3 program Miller-Rabin primality test
import random
import time as t
# Utility function to do
# modular exponentiation.
# It returns (x^y) % p
def power(x, y, p):
# Initialize result
res = 1;
# Update x if it is more than or
# equal to p
x = x % p;
while (y > 0):
... | [
"noreply@github.com"
] | White898.noreply@github.com |
0dd58fe6ef1aab7424246548476e00b0bfa10837 | f8af1c9be123aa2fd9ea524681277f489936fe5d | /blog/views/blog/demoview.py | bfd6709788ffbac56561f040e537c3aa0ff7620c | [] | no_license | xuejiacore/Loj | a4e949619ec4be878c9792abaa8dcb33595fc07f | af4c9a7ac540a86a465ef5469243dbebb6c03011 | refs/heads/master | 2021-01-10T01:20:46.917007 | 2016-04-04T14:48:20 | 2016-04-04T14:48:20 | 53,296,454 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | from django.shortcuts import render
from Personal import settings
from lib.io.HttpIO import FileIO
import logging
logger = logging.getLogger('app')
def demo(request, whose):
print("username = {}".format(whose))
return render(request, 'blog/demo.html')
def ckeditor(request, whose):
return render(reque... | [
"xuejiacore@sina.com"
] | xuejiacore@sina.com |
193cd2f8c6a0023673e14b6491214ea7ea79cbdc | 61d3d7864aadf9686bf8b67a6a52c6ce6218a32e | /A. Calculating Function.py | b0dff93a5dad1ce2d5c585523e9bb3c90c4528e2 | [] | no_license | jonckjunior/Codeforce | c47dc45f0cfa7217d7ab713a39a6be107b7bc3ec | b49a6914fc57bbdd947f15906926d501672cd93e | refs/heads/master | 2021-09-11T23:31:58.115876 | 2018-04-13T01:23:08 | 2018-04-13T01:23:08 | 114,308,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import math
n = input();
n = int(n)
#1 2 3 4 5
#
impar = math.ceil(n/2)
par = math.floor(n/2)
print( (par+1)**2 - (par+1) - (impar**2) ) | [
"jonckjuniorr@gmail.com"
] | jonckjuniorr@gmail.com |
ca70f69e90688b58b891a97d5a821d57cafae928 | 3f8ecf5e820ae9b4c6bdc77f39c69e0b2c4bfeb4 | /manage.py | b8b5d14c48df11ddfce66d44bec00c74a3eabb7d | [] | no_license | chaweewatp/Envest_3 | 8c677c4c4d9f63ca619330908c1c4de2ef40507e | d7dc31d3f4ceca5c93f4b8e8616e4585ea9c4fed | refs/heads/master | 2023-01-07T17:39:54.395948 | 2020-10-08T08:48:57 | 2020-10-08T08:48:57 | 288,642,873 | 0 | 0 | null | 2020-11-13T03:25:49 | 2020-08-19T05:35:17 | Python | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Envest_3.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"chaweewat.p@gmail.com"
] | chaweewat.p@gmail.com |
707dc6a7cfd0a657d590461eb85f4204b49e0385 | 7945cd610e6f57ff97e434db6fcf66cfd70d3872 | /driver/migrations/0001_initial.py | c3eb59c605d71f23d452067361a784fe4d9f8cce | [] | no_license | hyu-i/django_lesson_1 | 4700413e590368f047005e7ca0d69446a7f3c6b1 | e6f8d9eb9ca03b272fd09cd2672830af8e2f116f | refs/heads/master | 2020-09-11T10:50:31.476092 | 2019-11-16T03:40:56 | 2019-11-16T03:40:56 | 222,040,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | # Generated by Django 2.2.6 on 2019-11-02 13:47
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',... | [
"hyui.games@gmail.com"
] | hyui.games@gmail.com |
e50cae72db9459a5c8e7ef3a90a37c22cf33b31a | aa933da50c726f54e1ee31af1e5483c104655992 | /nova/migrations/0027_task_execute_user.py | b97f76b2b570b833c4aaa639119b2ee858fbfdb7 | [] | no_license | Lovezhe4ever/nova | ee638f7480277f62923fa81cba159f534b0efa92 | aede1b7276d5e5d53ed1021e954cd8b35d296723 | refs/heads/master | 2020-09-11T22:26:07.019141 | 2019-08-30T02:30:17 | 2019-08-30T02:30:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-10-10 02:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nova', '0026_assetgroup_asset_groups'),
]
operations = [
migrations.AddFiel... | [
"qiuyy_128@163.com"
] | qiuyy_128@163.com |
bdcabe865379a6f52e93ef38d4b03568127e97b0 | 7fda1a5d5a0de7043a4055408cf092f09d0ab9e8 | /Aula15/Mediador/plataforma/plataforma/plataformas/__init__.py | fbe2853bb6e1703565c1c6e8bad6b6ffb1fc6ed0 | [] | no_license | felipem4rtins/CES-22 | af5e2361eef2f5c8bbbcb4e462f8b8ba523e5b82 | 228a32034b170158ecffeb26410624788786c9e5 | refs/heads/master | 2020-03-13T18:20:05.786968 | 2018-07-04T16:50:57 | 2018-07-04T16:50:57 | 131,233,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from plataforma.plataformas.ps4 import PS4
from plataforma.plataformas.wiiu import WiiU
| [
"fel-mg@hotmail.com"
] | fel-mg@hotmail.com |
401771ebfea3ded08cebf3e5a5112f495535892d | d2ee4260f476b2246761d0b32891e6773b2185d8 | /pythonread.py | e727a4ed2d19b2cb0a565c114c8dc04da3153894 | [] | no_license | lyx12311/spokes | fa8832be4f9b2e0e459218900c46f68282baf018 | e6e4560936d273f1a471107252e45e48a8fc2f28 | refs/heads/master | 2020-05-07T09:47:14.955452 | 2019-07-11T18:18:26 | 2019-07-11T18:18:26 | 180,391,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,345 | py | #!/usr/bin/env python
import numpy as np
import idlsave
import math
import operator
import os
import sys
import glob
import matplotlib.image as mpimg
import operator
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrF... | [
"noreply@github.com"
] | lyx12311.noreply@github.com |
b51db30d31e4565ca19e3049e01ce56bbcadda9e | 1483cbcadfa336c97b8eaf6936fe2b5e208d0eea | /code/torrentData.py | fe2030be5649b8669ba2391729acd788349dbe69 | [] | no_license | meta-engineer/CS456-Peer2Peer | a777023e7f5a811145de8af175081e07cf026b4b | af66c58a5d42767adad47bb7f59f6252375b62c4 | refs/heads/main | 2022-12-31T11:42:27.329490 | 2020-10-14T18:57:24 | 2020-10-14T18:57:24 | 304,108,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | # defines a listing of peers and files available in the network
class torrentData:
CHUNK_SIZE = 512
def __init__(self):
self.peerDict = {
#ID : [IP, PORT]
}
self.fileDict = {
#"FILENAME": {"filesize" : FILESIZE(bytes), "totalchunks" : NUM_CHUNKS, "chunkDict" : {0 : [ID, ID, ...], 1 : [ID, ID... | [
"noreply@github.com"
] | meta-engineer.noreply@github.com |
4680448fb41df2983cfc6d58ce6ec8f03465b75e | fe4f569d6e2c01f7059bf029cd58ee2fbd882e92 | /viceversa_project/asgi.py | d085cbc71a97b681174236cb776660fed3e1bce2 | [] | no_license | Revival-coder/viceversa_project | 51dc0511b5678294aa00ad66cdecefd6c94ed17a | 73c20e682e6984514f32c7db2039242587c96f9c | refs/heads/main | 2023-07-24T15:09:23.816145 | 2021-09-08T23:32:55 | 2021-09-08T23:32:55 | 404,504,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for viceversa_project 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"nastia8425@gmail.com"
] | nastia8425@gmail.com |
fa653f9c0963489e50b7ebe54873f2359c9252e1 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/pere/postliste-ruter.py | 6868c570393c7a8e844c70e499b5f1ed041bc480 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | # -*- coding: UTF-8 -*-
import scraperwiki
import json
from BeautifulSoup import BeautifulSoup
import datetime
import dateutil.parser
import lxml.html
import resource
import sys
import urlparse
import re
scraperwiki.scrape('http://www2.ruter.no/verdt-a-vite/presse/offentlig-journal/')
lazycache=scraperwiki.swimport('l... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
482e93f7d67ed7308db05da1194268e8dc55f176 | 81e5c2fc8c5eead47821f5e5dc21c5bb70f55fa9 | /A7/src/subsitute_you/subsituteYou.py | 875d2aa330d5db6bc52dd032a91832c9f483c331 | [] | no_license | oduprogrammer16/cs532-s16 | 4763cf8941d4d0b92232ef3566a211f8a9af88c1 | 65ed4e5e7ec6c9fd43135e311a3a260113d87816 | refs/heads/master | 2020-07-14T04:09:15.636154 | 2018-07-07T14:39:03 | 2018-07-07T14:39:03 | 49,685,204 | 0 | 0 | null | 2016-01-15T00:46:26 | 2016-01-15T00:46:25 | null | UTF-8 | Python | false | false | 6,402 | py | import argparse
import logging
import sys
from data_extractor.data_set import Data_Set
logging.basicConfig(level=logging.DEBUG,format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',datefmt='%m-%d %H:%M:%S',filename='subsitute_you.log',filemode='w+')
defaultLogger = logging.getLogger('default')
... | [
"kclem014@odu.edu"
] | kclem014@odu.edu |
8a0f762a9c144565a0590d6ca5eecf3299bf8672 | d02d25541fc2738db4c8c38624b9ac529d82abf5 | /pokemonAI/pokemon.py | 709895f4c140a166dc6afca9315975de25c9f213 | [] | no_license | michaelostrow/pokemonAI | d356c1a1e6f299966e24492c52e3a3322a25d768 | 1bf81cd494892e7f56ebdd687bd12e033448f5e7 | refs/heads/master | 2020-03-31T01:34:45.302733 | 2015-01-05T19:25:23 | 2015-01-05T19:25:23 | 28,827,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | from pokemon_classes import Type, Pokemon, Attack, calculate_damage
from poke_gamestate import GameState
import minimax_poke_agent
import sys
# given a text file, parses it and generates
# an initial gamestate
def generate_state(fileName):
f = open(fileName)
team1 = generate_team_loop(f)
team2 = generate_team_loop... | [
"michaelostrow321@gmail.com"
] | michaelostrow321@gmail.com |
274db1c7e4366ef5d355c5f0b6718f4d5f41f569 | 33524b5c049f934ce27fbf046db95799ac003385 | /Дистанционная_подготовка/Программирование_на_python/9_списки/zadache_N.py | bb6732945983d5ab8c93702cbfcc871d84f63cc6 | [] | no_license | mgbo/My_Exercise | 07b5f696d383b3b160262c5978ad645b46244b70 | 53fb175836717493e2c813ecb45c5d5e9d28dd23 | refs/heads/master | 2022-12-24T14:11:02.271443 | 2020-10-04T04:44:38 | 2020-10-04T04:44:38 | 291,413,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py |
l = list(map(int, input().split()))
i = 0
for _ in range(len(l)//2):
l[i], l[i+1] = l[i+1], l[i]
i +=2
print (*l) | [
"mgbo433@gmail.com"
] | mgbo433@gmail.com |
c2d90777355d93fc65291fc42863c08c8a844589 | 3e4d738379ab4c0ffc6eda76dc31254aaced694b | /src/ex28/client.py | 2d254bb65aeb50a0ca497b5d90ab13282439b238 | [] | no_license | sofiane8384/csd | 21e0883ecdad412320f23957193cd0b2750b8eac | 097d458ada69a464387f73a0996f9779123410a6 | refs/heads/master | 2020-07-06T06:08:50.890391 | 2016-11-19T12:26:55 | 2016-11-19T12:26:55 | 74,056,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py |
from suds.client import Client
url= "http://www.webservicex.com/globalweather.asmx?wsdl"
client = Client(url)
#pour voir l'objet client
print client
clientclient.service.GetCitiesByCountry("France")
clientclient.service.GetWeather ("France","Besancon")
| [
"sofiane8384@gmail.com"
] | sofiane8384@gmail.com |
5049c7f8f9cc224352783ce24a1150664d01bb7d | c887ab97b1f793753b2d8d1db395c53e958e5343 | /main.py | 7a0703ea261be4e926cc9198b089f86e307630ef | [] | no_license | mmdaz/feature_testing_chat_bots | 70ce75639fe7b13090d3bcdec9ff43e22c50003a | 3dae6561b9d58c3c025916720ee0b1e1d507cd93 | refs/heads/master | 2020-06-26T15:08:45.315843 | 2020-05-31T20:01:15 | 2020-05-31T20:01:15 | 199,668,478 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from telegram.ext import Updater
from bot.test_controller import TestController
if __name__ == '__main__':
updater = Updater(token="YOUR_BOT_TOKEN")
dispatcher = updater.dispatcher
test_controller = TestController(dispatcher=dispatcher)
updater.start_polling(poll_interval=1)
updater.idle()
| [
"mohammad.azhdari.22@gmail.com"
] | mohammad.azhdari.22@gmail.com |
58d8ac2606cbf3b94e8e4f59dbdf4f4ca6b72e0c | 8c51b8513f0bfaa41b2c6d00f67a7fcee48e0b0d | /user/models.py | 5481b35dfa94b908eaacd399621c5db291505808 | [] | no_license | manik912/internship_fair | 82ca6f5d455b7816b6b29cd5d6c2c8133c9d77fe | 09dbe17fd6053f92be21f5574635522202a20644 | refs/heads/master | 2023-04-11T07:31:26.943770 | 2021-04-24T18:51:18 | 2021-04-24T18:51:18 | 357,615,713 | 0 | 11 | null | 2021-04-24T23:55:24 | 2021-04-13T16:13:56 | CSS | UTF-8 | Python | false | false | 934 | py | from django.contrib.auth.base_user import BaseUserManager
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
from phonenumber_field.modelfields import PhoneNumberField
from django.contrib.auth.models import AbstractUser
class CustomUserManager(BaseUserMana... | [
"guptamanik1921@gmail.com"
] | guptamanik1921@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.