blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e07be35a858fc399900eb54d6cc0dcdfb0f3ccf | c7979f4f6435fe8d0d07fff7a430da55e3592aed | /test.py | 0085787c62ee273653b9670e76a27096a30e9b1b | [] | no_license | banboooo044/AtCoder | cee87d40bb98abafde19017f4f4e2f984544b9f8 | 7541d521cf0da848ecb5eb10ffea7d75a44cbbb6 | refs/heads/master | 2020-04-14T11:35:24.977457 | 2019-09-17T03:20:27 | 2019-09-17T03:20:27 | 163,818,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | def combinations(iterable, r):
# combinations('ABCD', 2) --> AB AC AD BC BD CD
# combinations(range(4), 3) --> 012 013 023 123
pool = tuple(iterable)
n = len(pool)
if r > n:
return
indices = list(range(r))
yield tuple(pool[i] for i in indices)
while True:
for i in reverse... | [
"touhoucrisis7@gmail.com"
] | touhoucrisis7@gmail.com |
7185c8542f411f88a48c7e3f01fcf4055e55fab8 | 0d0bb746d73cff020d30a774dd59e7fd08537bee | /ProblemA.py | 10b0f3011b49e3e82627cd7b6b236fb1d0299c1c | [] | no_license | stephypy/CS2302_LAB5 | c629aa5c124b1124ffb89087e17ef6f1f46a75ff | a908256316826ee2fcd42ff8b923fec9dad3ebb7 | refs/heads/master | 2020-09-10T22:49:03.272304 | 2019-11-22T23:09:29 | 2019-11-22T23:09:29 | 221,856,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | class Node:
def __init__(self, val):
self.val = val
self.next = None
self.prev = None
class DLL:
def __init__(self):
self.head = None
self.tail = None
self.size = 0
# Wil always insert at the head
def insert(self, val):
if val is None:
... | [
"noreply@github.com"
] | stephypy.noreply@github.com |
44ffa1fa89ef37026f245298617c83abca0ad872 | 15dc2e69defdde688acc20467c7bfd65ff553cef | /代理.py | f2c97d418848621608c66fe9124512b11c201d2a | [] | no_license | Jizishuo/Spider-play | 6bbd67aa706ef1c87f9dd9afa4e95fe32ddd5e46 | 262a30aa0b92e00d6639c3abb6790c948def2cd1 | refs/heads/master | 2020-04-07T05:12:07.941873 | 2018-11-18T13:36:00 | 2018-11-18T13:36:00 | 158,087,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | import requests
#无验证代理
prexir_dict = {
'http':'代理一',
'https':'代理2',
'https/wwww.7777':'代理3',
}
ret = requests.get(url='',proxies=prexir_dict)
#验证代理
prexir_dict2 = {
'http':'代理一',
'https':'代理2',
'https/wwww.7777':'代理3',
}
from requests.auth import HTTPProxyAuth
auth = HTTPP... | [
"948369894@qq.com"
] | 948369894@qq.com |
23b1ca144ba941c268e996dae75bfb6915124788 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/django/contrib/localflavor/mk/models.py | cf5659ffbc189b781726f7734eaf7bbe4ae7ddbd | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/django/contrib/localflavor/mk/models.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
5d889094c96bb0e4abfa38cb283c4e2bab8f5c03 | 72a4273e0e7ba0a50cbf1f113411266e4a4c8b82 | /blog/functions.py | afd59dfbfb05a3ac4cbac1d8e60c711661159ed9 | [] | no_license | Metajake/nicemurals | 2e9ff201c681056bdc040cc929bab2cea9c6b6f6 | 4a70911ff264ebde4fe9f0b5e5bc4b9521a3ed7f | refs/heads/master | 2022-12-10T12:43:12.426804 | 2020-01-29T14:10:14 | 2020-01-29T14:10:14 | 195,178,506 | 0 | 0 | null | 2022-12-08T03:30:45 | 2019-07-04T06:04:01 | CSS | UTF-8 | Python | false | false | 2,685 | py | from django.db.models.signals import pre_save, post_save
from django.dispatch import receiver
from django.conf import settings
import random
import tweepy, requests, inspect
from blog.models import Entry, Config
blogOptions = {
'homeAnchorIcons' : [
('fas', 'fa-car-side'),
('fas', 'fa-blind'),
... | [
"jaynoco@gmail.com"
] | jaynoco@gmail.com |
7e0abbfbb0cd97126cfbd2b4d8a25b41051f0740 | cb9ae0bd4c93de3f5f3a40c3917129c788a61373 | /153Q13.py | e28d5bd4a9a70f7a58552f1b65b9f5eaea6a7dc6 | [] | no_license | ParulProgrammingHub/assignment-1-Trushti | 80065fea651efa8c6076fcc2afd0701b0d77804d | 17397a3a4d5ebf63e36cda4eaabacd1fc827d7b3 | refs/heads/master | 2021-01-22T05:58:01.000344 | 2017-02-13T15:52:37 | 2017-02-13T15:52:37 | 81,725,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | n=input("Enter n")
if(n%2==0):print("%s is even"%n)
else:print("%s is odd"%n)
| [
"noreply@github.com"
] | ParulProgrammingHub.noreply@github.com |
3c56ed2e2f07c7a457406633dd157748174e5323 | a21b40dc7c5c7b77e63b8b035a10b10eee52ccf9 | /databaseConnection.py | 52bdb64de096e5070f4f897d1f4077a80431aaaa | [] | no_license | pecey/shortify | ef6785012593580cfd136bd4c2d0c6bdb647b78b | 1e1578c8eb0605ea4efc1c65ab46dd8bb1ce2e8c | refs/heads/master | 2021-07-12T15:32:45.976148 | 2018-10-26T01:42:29 | 2018-10-26T01:42:29 | 46,062,129 | 0 | 0 | null | 2021-03-19T21:54:00 | 2015-11-12T15:30:52 | Python | UTF-8 | Python | false | false | 1,122 | py | import redis
def connect(server="127.0.0.1", port=6379, db=0, password=None):
connection = {}
connection['Status'] = None
connection['Data'] = None
try:
connectionString = redis.StrictRedis(host=server, port=port, db=db, password=password, charset="utf-8")
connection['Status'] = True
connection['Data'] = con... | [
"palash@protonmail.ch"
] | palash@protonmail.ch |
76068c5dd2a452b6c43aa8f71c3d870c39ac7b40 | be08b95d4c381a99299be9686daf613f0ac78fdf | /part1_3th_list/practice3_2.py | 36023a4ad0b1d00d4192c48d1191d28dc77c6c82 | [] | no_license | LHB6540/Python_programming_from_entry_to_practice_code_demo | 433dca09707a473fa908a419b7da4452e206441f | 9ed6167a94301ab5d9ddc8b7446da2ac18dafdd8 | refs/heads/master | 2023-02-17T09:53:13.766324 | 2021-01-20T05:51:45 | 2021-01-20T05:51:45 | 293,476,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # 继续使用练习3-1中的列表,但不打印每个朋友的姓名,而为每人打印一条消息。每条消息都包含相同的问候语,但抬头为相应朋友的姓名
names = ["bai", "zhu", "ye", "zhang"]
print("Hello,my good friend "+names[0])
print("Hello,my good friend "+names[1])
print("Hello,my good friend "+names[2])
print("Hello,my good friend "+names[3])
| [
"lhb@lhbdeMacBook-Pro.local"
] | lhb@lhbdeMacBook-Pro.local |
16632db9c0a34de250399322e67794aff341e3c9 | 479cfc7426246570cc9eb70da291bd8461943f2f | /DSUM/apps.py | eacfbfa94506dfa5627a2ae5695cbd4851d9875f | [] | no_license | john9803/Excurri_Web_Project | 54f180874f8da6dd91862fd2082c34a615fa1858 | bfe4b6f82c40280a1dcfabfb898d7769018e9234 | refs/heads/master | 2023-06-09T19:39:12.517790 | 2021-06-25T07:05:01 | 2021-06-25T07:05:01 | 299,186,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class DsumConfig(AppConfig):
name = 'DSUM'
| [
"john9803@likelion.org"
] | john9803@likelion.org |
c3c63b6f512a3edb63e011f7bcce142b2873a78d | efb8721ea4d05894216f8b62929a22cd53bb6388 | /day18/p2.py | 523ce7f91fefa0fa7575f36fb8429487f96ca772 | [] | no_license | dangor/advent-of-code-2020 | 1c8f5fe5f3fa792cc56aaa2c266c135bf2cb1631 | 1860b6fefbb7e8bd6dc96a846070d4959b8d4ce4 | refs/heads/master | 2023-02-05T01:51:02.104591 | 2020-12-25T22:10:24 | 2020-12-25T22:10:24 | 317,695,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | def run(inputfile):
file = open(inputfile)
equations = list(x.strip('\n').replace(' ', '') for x in file.readlines())
file.close()
sum = 0
for equation in equations:
result = evaluate(equation)
sum += result
print(f"Answer: {sum}")
def evaluate(equation):
terms = []
operators = []
# parse ... | [
"briancdang@gmail.com"
] | briancdang@gmail.com |
e6a5c355fbd23be4ca147b5780846a516b5731d5 | c77d8957f5cbf182ad987b546ebc851b4288d6f6 | /plotting-normal-distribution.py | 4dc97cb324d2edeb74be9f1a244ce2cd791802ac | [] | no_license | Goku-kun/statistics-with-numpy | b1db23d537888f80f36c7f1a055c5919bfd0e20b | 5d6683415654567708c7d6cef41d84a8ca4cb648 | refs/heads/main | 2023-01-13T04:36:39.773197 | 2020-11-10T18:39:30 | 2020-11-10T18:39:30 | 310,846,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | # Plotting a normal distribution curve using Histogram
# It will be a unimodal symmetric histogram with center=0 and std=1 as mentioned in np.random.normal method as arguments
import numpy as np
from matplotlib import pyplot as plt
data = np.random.normal(0, 1, size=10000)
plt.hist(data)
plt.show() | [
"jethvadharmarajsinh@gmail.com"
] | jethvadharmarajsinh@gmail.com |
37bc9e5dc34b6df333a626882f5b695237bf0911 | 4c0328c7fa7805cdd196cf890695ec1a8a438a5f | /devel/lib/python2.7/dist-packages/humanoid_nav_msgs/msg/_ExecFootstepsGoal.py | 7060f4f7755727f3a1eb70d162baf59f11ee98b0 | [] | no_license | SebsBarbas/iRob_KTH | d98dfce8692bdd4d32ce3a4d72daa8d022976c0a | c164c9d12efcab56b4871fc5bb5538df5849a42e | refs/heads/main | 2023-01-23T10:49:59.073113 | 2020-12-04T18:49:53 | 2020-12-04T18:49:53 | 318,595,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,302 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from humanoid_nav_msgs/ExecFootstepsGoal.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import humanoid_nav_msgs.msg
class ExecFootstepsGoal(gen... | [
"ssbl@kth.se"
] | ssbl@kth.se |
5b23fd2da439c4d23eae958b44db0085550b3016 | d9bb656bd11f85e6419ebd786aec6fe3f917cb73 | /python/biograph/coverage/covanno_test.py | a70d2353548e31bb21d41005797a826ccb909eae | [
"BSD-2-Clause"
] | permissive | spiralgenetics/biograph | 55a91703a70429568107209ce20e71f6b96577df | 5f40198e95b0626ae143e021ec97884de634e61d | refs/heads/main | 2023-08-30T18:04:55.636103 | 2021-10-31T00:50:48 | 2021-10-31T00:51:08 | 386,059,959 | 21 | 10 | NOASSERTION | 2021-07-22T23:28:45 | 2021-07-14T19:52:15 | HTML | UTF-8 | Python | false | false | 5,439 | py | # pylint: disable=missing-docstring
import unittest
import biograph
from biograph.coverage import CovAnno, VcfEntryInfo
import biograph.variants as bgexvar
class CovAnnoTestCases(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.bg = biograph.BioGraph("datasets/lambdaToyData/benchmark/proband_l... | [
"rob@spiralgenetics.com"
] | rob@spiralgenetics.com |
a1f83ec58251bd75d452c487b955aebddd806f8f | 94b75a7213223f64455d5ec1790f4e306e0d1c37 | /webqcm/associate/urls.py | f7b4ad17ba3753e3f8b4938d54f17b59a6a16f54 | [] | no_license | mike38/webqcm | d0c53d5454e9616065230769a5219bac4e483f91 | 742c2dc0dc32a78f220168f92ef61f0659de3c7a | refs/heads/master | 2021-01-01T18:29:59.154378 | 2012-07-20T21:52:27 | 2012-07-20T21:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.conf.urls import patterns, include, url
urlpatterns = patterns('associate.views',
url(r'^$', 'index'),
url(r'^(?P<copie_id>\d+)/$', 'copie'),
# url(r'^(?P<poll_id>\d+)/results/$', 'results'),
# url(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
)
| [
"mike@alezan"
] | mike@alezan |
32046ec62e3909e6bcee725e3f0ddee8dd62870e | 5d810201c5dd42c93d5fc0e827af09b240f345bf | /chapter_6/mclip.py | a57e74e5e65b8abe46c4702d24ff81c2b024b388 | [] | no_license | thebluetoob/automateTheBoringStuff | 3d2acbdc75c81351a5f7014df969aa5cafcce7c3 | af2924c057d0269397f5b978991f591d9c8ce49d | refs/heads/master | 2022-09-16T16:40:00.816000 | 2020-05-30T03:18:41 | 2020-05-30T03:18:41 | 265,687,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/env python3
# mclip.py - A multi-clipboard program.
import sys, pyperclip
TEXT = {'agree' : """Yes, I agree. That sounds fine to me""",
'busy' : """Sorry, can we do this later this week or next week?""",
'upsell' : """Would you consider making this a monthly donation?"""}
if len(sys.argv) < 2:
... | [
"github@benjaminellett.com"
] | github@benjaminellett.com |
b222f61b6de0d092cbd584db1fb54e9f8ceea4e7 | 7af3de2633036ac03bc3164821b1cf75f30fc840 | /nltktest.py | 6544be814045ecbe6251db43b0a6bf20a198491e | [] | no_license | feweje/ES96-Dictation-Device | 257943c9bf2f2a780dc0d762316a41bed7729f7d | 16a9e01861d59d1f5d5d07f8bec1bfefed6bb7c3 | refs/heads/master | 2021-05-08T02:13:52.532226 | 2017-10-23T09:08:06 | 2017-10-23T09:08:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | from nltk.tokenize import sent_tokenize, word_tokenize
#EXAMPLE_TEXT = "heart rate 78 bpm, temperature 98 F. pediatric cancer in low-income countries. I love ES96. Drug administration is accordingly riskier. A unicorn is a fictional animal."
#print file.readline()
import itertools
words = []
with open('exampletext.t... | [
"32832145+bhu01@users.noreply.github.com"
] | 32832145+bhu01@users.noreply.github.com |
9300b8490aae6ab681657dc63e16317b41d7645c | 1bfb5b8fd4f452c704a609ca2a310057e88fd4be | /main/tests.py | 01868e6d24e3997e31a345e4b9dbe82ed96c5cbd | [] | no_license | JungleTryne/mshp_project | 58f208cfc4a474a3bdae9e3bf38afc7ae04fad93 | 15669d181811f65997e66e1900deec42220e6dda | refs/heads/master | 2023-04-06T21:42:12.438412 | 2021-03-25T15:42:50 | 2021-03-25T15:42:50 | 314,556,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | import os
from django.contrib.auth.models import User
from django.test import TestCase, Client
from django.urls import reverse
from main.models import Snippet
class TestIndexPage(TestCase):
fixtures = ['test_db.json']
def setUp(self):
self.c = Client()
user = User.objects.get(username='vasy... | [
"danila.mishin.2001@gmail.com"
] | danila.mishin.2001@gmail.com |
e70139106c1e2181cbb578a5feafe790f6ef511a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02709/s006433127.py | 8e891819bfe8e5250a41e5dd8b8b921a1409cc08 | [] | 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 | 698 | py | from sys import stdin
def get_result(data):
N = data[0][0]
A = data[1]
dp = [[0]*(N+1) for _ in range(N+1)]
B = [[A[i], i] for i in range(N)]
B = sorted(B, reverse=True)
for i in range(N):
for j in range(N-i):
dp[i+1][j] = max(dp[i+1][j], dp[i][j] + B[i+j][0] * (B[i+j][1] -... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0eafece1102e1dbcb09b8dd1bafc8ddf971fbd94 | 0ff378b747db1a00d2366fcdaabcb9a24e5180e8 | /venv/bin/explode.py | 8a9e12cb2efade1f854c5914336ac9e49be7af41 | [] | no_license | lmreyes/-django-initiation | 8e971e21fc1f42fb6dde0fc7017af6ecaffbeb1b | 5b929051c06cc8bb638ad97f0cb46dd4e3244fe3 | refs/heads/master | 2020-06-12T15:20:40.798206 | 2016-12-07T07:37:23 | 2016-12-07T07:37:23 | 75,811,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | #!/home/lmreyes/workspace-Django/venv/bin/python3
#
# The Python Imaging Library
# $Id$
#
# split an animation into a number of frame files
#
from __future__ import print_function
from PIL import Image
import os
import sys
class Interval(object):
def __init__(self, interval="0"):
self.setinterval(inte... | [
"lmreyes@emergya.com"
] | lmreyes@emergya.com |
7f14657e7b918876a0fe9942e960644e89ddc2ba | 41d95ff0ba21fa388755744fc01af03f80cbd5c6 | /gallery_mukamisha/urls.py | dc4c3f6e3ad5671df0e167c030294ecfdc116024 | [] | no_license | mukamisha/Gallery | 49a71affefe1aaa0a764e13bd7d06dd208600240 | 6d5cb25b117b798e5d2b83ce76aef5c16b18058f | refs/heads/master | 2021-09-08T04:09:32.379594 | 2019-10-15T09:25:49 | 2019-10-15T09:25:49 | 214,124,864 | 0 | 0 | null | 2021-09-08T01:22:10 | 2019-10-10T08:11:51 | Python | UTF-8 | Python | false | false | 508 | py | from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls import url
from . import views
urlpatterns=[
url(r'^$',views.images,name = 'pictures'),
url(r'^search/', views.search_results, name='search_results'),
url(r'^image/(\d+)',views.get_image,name ='photo'),
... | [
"mukamishajacky97@gmail.com"
] | mukamishajacky97@gmail.com |
596bf66bc030390c1d4bd47394cce4f3ee11c470 | bf68a46803318531af0c06816a9269d6f44a0f7c | /4_3_listOfDepths.py | 6a9e479cc76dac4b04ecec01c600e5463e7601a0 | [] | no_license | pghanem/Data-Structures-Algorithms | 09b03cea4a374a6328865f029a27a8414b4d34ad | cf9900d9ef5634f879625ddf89cf35c11c652c0d | refs/heads/master | 2020-05-04T03:47:15.881326 | 2019-04-01T21:57:22 | 2019-04-01T21:57:22 | 178,953,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py | class LinkedListNode:
next_node = None
val = None
def __init__(self, val):
self.val = val
def add(self, val):
while self.next_node:
self = self.next_node
self.next_node = LinkedListNode(val)
def print(self):
while self:
print(self.val)
... | [
"noreply@github.com"
] | pghanem.noreply@github.com |
4b95fef90b2dca9cddd020a2a0d313454473685d | c2b8fe6e03e6572a628c03d7c9804631da55af2c | /Algorithmic Questions/Queue.py | 7aaf2b3025c236110c4727c9b5a7b1e247c500cc | [] | no_license | Anthonymcqueen21/Python-Interview-Questions | 0f49f72b483f5f5b0549f0cdf4856e92d073e994 | de4657a96a48c86897b952f77666a1180fe9360a | refs/heads/master | 2020-04-02T01:18:06.826564 | 2019-05-11T03:55:05 | 2019-05-11T03:55:05 | 153,848,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # Queue is a linear data structure with a sequential collection process.
# Python implementation
from collections import deque
class Queue:
def __init__(self):
self._queue = deque([])
def add(self.name):
"""
Add element as the last item in Queue
"""
self._queue.... | [
"noreply@github.com"
] | Anthonymcqueen21.noreply@github.com |
4b88b4d4cf117c940218f430967cca96ba168a15 | 79371c17517f3d2d61659feceb6ad0c206f8a5f5 | /run.py | dffb5490c8bdd4828a42aebd9b56c6f01ead7196 | [] | no_license | kenuxi/EVA | f238582602669314172fb75fb56e161e7efb15fc | 00c9985df9951b25cd2fc8a4d0670ed14d7e54e3 | refs/heads/master | 2022-11-29T23:53:49.135472 | 2020-08-19T13:43:49 | 2020-08-19T13:43:49 | 261,166,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from werkzeug.serving import run_simple
from eva import application
if __name__ == "__main__":
run_simple(hostname='localhost', port=5000, application=application,
use_reloader=True, use_debugger=True, use_evalex=True)
| [
"kennethjlroos@gmail.com"
] | kennethjlroos@gmail.com |
beeaa9a3badc321697bf696bfbad8e80950b20ba | 2a986763160be52499303f974784fb0833935bf2 | /regex.py | 3d6fc97e0b04bb713c5b3a64d3e096ce4b6bb0cd | [] | no_license | mdav2/optavc | 6195e85c1eb05815d00cf5335edac85730a76f9b | cb43ba0bd4f3d8d50d3357bce52056a9a669410e | refs/heads/master | 2021-04-09T20:49:21.111634 | 2020-03-21T00:32:47 | 2020-03-21T00:32:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,630 | py | # fundamental components
character = r'[a-zA-Z]'
unsigned_integer = r'\d+'
signed_double = r'-?\d+\.\d+'
whitespace = r'\s'
endline = r'\n'
# fundamental functions
def capture(string):
return r'({:s})'.format(string)
def maybe(string):
return r'(?:{:s})?'.format(string)
def zero_or_more(string):
retur... | [
"matthew.mcallister.davis@gmail.com"
] | matthew.mcallister.davis@gmail.com |
c99381c88d34efa19d7aecee9a4ec148ee6586ae | 81882d9b2e7eb535e204406d6bfe3eec6e61425d | /libAFP/add_songs/input.py | 1404ea82699c5714f893218fd173ab284527663e | [] | no_license | happyyang/audio_fingerprint | ca63ef5f45cc7e679353087d6e4b1a3c1c9a6501 | 6a5fd3ac1308e255bc1f130b964970ff901c51f8 | refs/heads/master | 2021-01-15T08:35:35.081181 | 2011-11-16T07:46:58 | 2011-11-16T07:46:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | #!/usr/bin/python
import sys
import base64
import binascii
import gmpy
import string
c=sys.argv[1]
#c=base64.encodestring(p)
def b1(n):
return "01"[n%2]
def b2(n):
return b1(n>>1)+b1(n)
def b3(n):
return b2(n>>2)+b2(n)
def b4(n):
return b3(n>>4)+b3(n)
bytes = [ b4(n) for n in range(256)]
def bi... | [
"khanna.vikesh@gmail.com"
] | khanna.vikesh@gmail.com |
9869e254728f68b4d2a518791c63dc07e2a42ae6 | 6d7e44292e34bbc5e8cbc0eb9e9b264c0b498c5d | /test/unit/modules/test_sfp_stevenblack_hosts.py | 712857037dea53cb3a71165cf2ff4556e6a96ae6 | [
"Python-2.0",
"MIT"
] | permissive | smicallef/spiderfoot | 69585266dad860d3230d3ce7b801e34eeb359f90 | 6e8e6a8277ea251fdd62a0946268f5dfe9162817 | refs/heads/master | 2023-08-28T09:40:10.136780 | 2023-08-18T05:47:39 | 2023-08-18T05:47:39 | 4,165,675 | 10,620 | 2,130 | MIT | 2023-09-13T08:18:31 | 2012-04-28T07:10:13 | Python | UTF-8 | Python | false | false | 795 | py | import pytest
import unittest
from modules.sfp_stevenblack_hosts import sfp_stevenblack_hosts
from sflib import SpiderFoot
@pytest.mark.usefixtures
class TestModuleStevenblackHosts(unittest.TestCase):
def test_opts(self):
module = sfp_stevenblack_hosts()
self.assertEqual(len(module.opts), len(mo... | [
"noreply@github.com"
] | smicallef.noreply@github.com |
38debb1f5fa4785b91bf6b4dedd6dc28fe0193ab | 483bfa7d1ded5563659e93daa9ce9e6157e67bf0 | /configuracion.py | a673e40865d914b9f0eb68b0d48975ee69554a16 | [] | no_license | marioguzzzman/LPC---BOT | 5400faffed4172c289dd6d480b45294f6ec133e7 | 71e4cca8a9a1a8cb88cb5573fdbe69f0588eff48 | refs/heads/master | 2022-12-24T02:14:43.924841 | 2020-10-01T20:44:00 | 2020-10-01T20:44:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | class Configuracion:
def __init__(self):
# Tokens de Twitter
self.api_key = '8uwasd9eVvEutiExvCCtFr2SVE'
self.secret_api_key = 'J4N5VoHasdasd7Z4aFZ49q9dwud4jSoMhtT8mevNBjI4aItmMM6'
self.access_token = '126467jkghj67jghjdfgdfAyKJMwb3iy7bHjlQ2wioy'
self.secret_access_token = 'j... | [
"jc.luque10@uniandes.edu.co"
] | jc.luque10@uniandes.edu.co |
81abca48c200b3db8d321878e030c42ff732c1af | 6e5ac4591a78657311ec16f05f310b769192caf5 | /translator_ui/source/utils.py | a4a0f5cb36e0cb622e69a47efc7ba427ad667ea4 | [] | no_license | md-experiments/translator_ui | 527781991f32de75d32588536f57986ea3c747b4 | fd34df0a60f3eaf789d506b46593b4786811f93f | refs/heads/master | 2023-07-27T14:28:42.293523 | 2021-09-09T11:23:57 | 2021-09-09T11:23:57 | 404,384,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | import json
import requests
def transliterate(text, reverse=False):
symbols = (u"абвгдежзийклмнопрстуфхцчшщъыьюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ",
u"abvgdejzijklmnoprstufhzcss_y_uaABVGDEEJZIJKLMNOPRSTUFHZCSS_Y_EUA")
if reverse==True:
tr = {ord(b):ord(a) for a, b in zip(*symbols)}
else... | [
"eggs@countingchickens.co.uk"
] | eggs@countingchickens.co.uk |
5d4e75981ff37df6ecfef8505474e4adc1816e4f | 0f07cc65a0a233c4ea66562f7730a78ecd0254b5 | /Models/Ensemble/Ensemble_30lgb.py | 02576cf27ff90f62baabd662c94ddbda524f6a10 | [] | no_license | Lihit/HomeCreditDefaultRisk | 777cd92988444083b18e449f11cad9b2716ab9de | 029b41b4c0f67eb0b21e993adb63fa6c4c5de70e | refs/heads/master | 2020-03-27T17:10:53.596149 | 2018-08-31T03:10:55 | 2018-08-31T03:10:55 | 146,833,520 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,559 | py | import numpy as np
import pandas as pd
from sklearn.metrics import roc_auc_score
from sklearn.preprocessing import LabelEncoder
from skopt.space import Real, Categorical, Integer
import xgboost as xgb
from xgboost import XGBClassifier
import os
import gc
import time
from matplotlib import pyplot as plt
from sklearn.mod... | [
"wenshaoguo0611@163.com"
] | wenshaoguo0611@163.com |
1483cd24cc2bdb62d35c8307505d0e2a9adbd2c7 | 3bf86722e58af76093eac07a5bf0dbbb7a1f6f98 | /application/utils/mail.py | 4449c47a127c8be3022b54b4004496a6e2bd1033 | [] | no_license | trigladon/forest | 348e2dc057c619caa5dba24eec591aed01719f4d | f64e987b2b53ac1720e321494bbdd6c6a4d6b0a0 | refs/heads/master | 2022-12-15T18:22:21.042210 | 2019-03-29T07:34:50 | 2019-03-29T07:34:50 | 178,353,192 | 0 | 0 | null | 2022-12-08T01:46:08 | 2019-03-29T07:17:29 | Python | UTF-8 | Python | false | false | 1,059 | py | import smtplib, ssl
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from configuration import (
settings,
logger as setting_logger
)
logger = setting_logger.get_logger(__name__)
def send(email_from, email_to, subject, template, variables={}):
msg = MIMEMultipart('alt... | [
"trigladon@gmail.com"
] | trigladon@gmail.com |
641034933abd1960b6154c7f2ba6d00c5602d12c | 8b1f8ec972406ede68d2664c0a53c6ac307b0dc6 | /horizon/horizon/dashboards/nova/overview/urls.py | fc372d5ae87a4299afd544fd05b2720f114fdfe5 | [
"Apache-2.0"
] | permissive | artofwar/stack | 23a61ffee1e57442b82e00048e9a2793e2a5005a | fc0bef9bf5ad2f0325ea2e4bbc4f37cfa5d56738 | refs/heads/master | 2021-01-17T05:27:26.181569 | 2013-02-05T04:55:18 | 2013-02-05T04:55:18 | 8,145,813 | 0 | 1 | null | 2020-07-24T08:43:29 | 2013-02-11T20:24:20 | Python | UTF-8 | Python | false | false | 1,098 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | [
"weiyuanke123@gmail.com"
] | weiyuanke123@gmail.com |
85092789baf54e9d15f22e67e6a723793350b160 | 9d0a6302159217ee4e8b7f1ab987d412862525c2 | /Vehicle Detection & Tracking/detector.py | d3c768730394ab01376935cfde8618098a270ffc | [] | no_license | raajprakash/APOLLO_Autonomous_Car | e292d34837dbf0c6d12d70306c1abfe7e743af90 | 01f1da0b1524849c27bfc614f71e3c5dac66e657 | refs/heads/master | 2020-06-06T19:22:55.281624 | 2020-03-09T17:20:22 | 2020-03-09T17:20:22 | 192,833,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,882 | py | import imageProcessing as ip
import numpy as np
from Line import Line
from LaneFinding import LineSpace
import cv2
import helper as aux
from moviepy.editor import ImageSequenceClip, VideoFileClip
import os.path
from tqdm import tqdm
from scanner import VehicleScanner
class Detector:
def __init__(self, imgMarginWi... | [
"noreply@github.com"
] | raajprakash.noreply@github.com |
db2402bfb01caf374619bb7219c1b47b2f0fff35 | c4c50697f59d3abcfcd1aee52f1dea452387e9b7 | /milestone_2/save_load.py | 2d1aabe9829bfbb7a55684f26b8642aa2ef4bbfd | [] | no_license | Stringz/toolkits-architectures | 0bbc55ddf0f1cd4210557eaa35117dfc54dd462a | 639b8413406f71a836e5e0022d2e2ba9c8e6bd32 | refs/heads/master | 2023-01-14T14:34:48.627115 | 2020-11-02T20:34:59 | 2020-11-02T20:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | from __future__ import print_function
from keras.preprocessing import sequence
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation
from keras.layers import Embedding
from keras.layers import Conv1D, GlobalMaxPooling1D
from keras.datasets import imdb
from keras.models import load_mod... | [
"noreply@github.com"
] | Stringz.noreply@github.com |
f157f00b6f13e54d55bd5cd0c1cdfb96d9528a7c | 7177d2a83895a1ee820487877c0f0176631323b5 | /Cross_Checker_OpenCV_Threshold_Vary.py | a7b14d62e0bc32d8d14f863499586e96e4824423 | [] | no_license | FTi130/CrossChecker | 21c8b4da3d43e7e1d5f5775aac8552fc3a32e8a6 | cd3afe7d1d2c0fd7ae722743191ee452ed0fb774 | refs/heads/master | 2022-04-28T04:43:43.036436 | 2020-05-02T02:11:31 | 2020-05-02T02:11:31 | 260,596,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,100 | py |
# -*- coding: utf-8 -*-
import sys
import os
from PySide import QtGui, QtCore
import numpy as np
import cv2
import subprocess
import matplotlib.pyplot as plt
#aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
global info
info = []
sys.setrecursionlimit(900)
class TestLi... | [
"noreply@github.com"
] | FTi130.noreply@github.com |
5907690d15733e45c2756e5f9287c4ae14232bbc | cd5b4ccd1d328d236b1d375e35b2dea91259f0e2 | /api/migrations/0003_auto_20210213_1601.py | 826530665010d175a9243d75d7ce5e4bb331f52c | [] | no_license | Ayan9074/CourseLookUp | 68026d81cdd1d6d88d8c9e8174b12b61431c95c3 | 2e293144204b91693356b775b59b3ca27978ad44 | refs/heads/master | 2023-03-05T19:18:31.949154 | 2021-02-14T17:44:02 | 2021-02-14T17:44:02 | 338,860,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # Generated by Django 3.1.6 on 2021-02-13 12:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0002_course_img'),
]
operations = [
migrations.AlterField(
model_name='course',
name='img',
field... | [
"Ayan9074@yahoo.com"
] | Ayan9074@yahoo.com |
60851afd037bbd2705035aa7f44d394c711243a1 | 5c3196734ee503de910a94a19f61ee4fd8b13dde | /tests/test_tree.py | 409cc2cd6fd469dd24ae2b4cbf5df600aed54008 | [] | no_license | B3QL/pyheart | 3b7b503dc97aa62a1378428f3e1cfb7e2179cac2 | 8f51f2fc0dec5cfb1cffe0321dc534a24d3eef6f | refs/heads/master | 2020-03-17T14:16:13.741098 | 2018-05-09T09:55:09 | 2018-05-09T13:03:15 | 133,665,628 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | from pyheart.tree import GameTree, Node, ActionGenerator
class UniqueNode(Node):
def __hash__(self):
return hash(self.__class__) ^ hash(id(self))
def test_create_tree():
tree = GameTree()
assert tree.nodes == 1
assert tree.height == 0
tree.root.add_children(UniqueNode() for _ in range(... | [
"bartlomiej+gitlab@kurzeja.it"
] | bartlomiej+gitlab@kurzeja.it |
39bbcccfab2796a7203fddb6692ffe0121f7b164 | aa86d0078742695a8489bb3d7fed6edc56b926d1 | /Problem009.py | 4f219092391f377d8291c19cb39ccffca531eb63 | [] | no_license | Hyeongseock/EulerProject | fd40793a0bb0f92f65be5f7dde7eb5eeac0d68c6 | a63a9ddfd26cf98af8c8927842ff08dbf4d40faf | refs/heads/master | 2020-03-21T11:50:29.615519 | 2018-11-20T11:19:41 | 2018-11-20T11:19:41 | 138,524,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | '''
Special Pythagorean triplet
Problem 9
'''
'''
English version
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
a2 + b2 = c2
For example, 32 + 42 = 9 + 16 = 25 = 52.
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product abc.
'''
a = 0
b = 0
c = 0... | [
"noreply@github.com"
] | Hyeongseock.noreply@github.com |
dc79bf4d4658c6c6f2bb3784f50b2dcc487dd371 | 48a90fbcd45aae3d8da7c9564cbefb1bb99b5f47 | /HelloScrap.py | 820ce74d8a78a27317e3e763c4650a885115e880 | [
"BSD-2-Clause"
] | permissive | claw0ed/HelloScrap | 2d10fe96caf5aca0ad157d1b97e38fda9df74e80 | 0f11fe7c887780430cd86f77f60e31613a95a66c | refs/heads/master | 2021-05-04T17:35:19.493596 | 2018-02-13T07:16:00 | 2018-02-13T07:16:00 | 120,274,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | #-*- coding: utf-8 -*-
# 설치 필수 패키지
# requests
# BeautifulSoup
# 파이썬 패키지 설치 방법
# 1 미리 설치하고 작업 : pip 패키지ㅣ 관리자
# 2 작업 중 설치 : alt + enter
import requests
from bs4 import BeautifulSoup
#py3에서는 bs4로 설치
#py2에서는 BeautifulSoup로 설치
# 지정한 URL로부터 HTML 소스를 가져옴
# source_code = requests.get('http://finance.naver.com')
# source_co... | [
"claw0ed@gmail.com"
] | claw0ed@gmail.com |
545d9076bec7e6604b7c13c8b4747780594480db | f5812c5cc411780c98a26179b105d6e35e9e5dbc | /ast_functions_scope_return/mypy/cases/relational_operators.py | a04f0b9c9fd8fa94fdd6adb34676e7a8d09b906a | [] | no_license | simeonbabatunde/python2-interpreter | 157751aa18e5106f0e11b8cbf65fa2202a5c82b9 | 8f70ce8860b55cbd209c7a6f77ccbdb3abf1a5b7 | refs/heads/master | 2020-04-08T02:53:49.120509 | 2019-07-21T22:54:31 | 2019-07-21T22:54:31 | 158,952,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | x=3
y=2
x+=y**(.5+1*2)
def g():
y = 5
if y%-2 == -1:
print -2
def k():
x = 8
if y*x+(5%3)**y < 99:
print y*x+(5%3)**y
else:
print 99
k()
g()
| [
"babatunde.simeon@gmail.com"
] | babatunde.simeon@gmail.com |
e023032ed0087cf95d92c25d9409129a98a2ad7c | 425f8b4cb3f4bedcc42a35c7a1fc883b28b54711 | /model/modules/components/unit_wise_GRU.py | 85601efbb0b22707c14c0c3aa143d30f68de3ade | [] | no_license | TobbysGitHub/Brain-like-integrated-network | 70aeec9cc85e4788c3728ca31521547020921023 | 29bf570edc32a55a49c878e25de0220b3b2571c5 | refs/heads/master | 2021-01-07T23:23:02.832456 | 2020-05-02T12:24:22 | 2020-05-02T12:24:22 | 241,848,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | import numpy as np
import torch
from torch import nn
from model.modules.components.unit_wise_linear import UnitWiseLinear
class UnitWiseGRU(nn.Module):
def __init__(self, num_units, in_features, out_features, max_bptt=np.inf):
super().__init__()
self.num_units = num_units
self.in_features... | [
"15652969420@163.com"
] | 15652969420@163.com |
6af47eb3ef096ca55c61f98b997fbe4372f50239 | 077e837f753a62e894da3e44342dbca0e48b520e | /scatterGraph.py | d2b19f917ebab92a2fb79eb2c56744f50662a964 | [] | no_license | CzarKunder/C-103 | 97600f7d6e055bce552137c3c0f616eb20f7f0f4 | 2d54d948a729f35f4c7c53e4a31b2cffdd44764f | refs/heads/main | 2023-07-14T10:14:49.446196 | 2021-08-27T11:14:26 | 2021-08-27T11:14:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import pandas as pd
import plotly_express as px
df=pd.read_csv("data.csv")
fig=px.scatter(df,x="date",y="cases",color="country")
fig.show() | [
"noreply@github.com"
] | CzarKunder.noreply@github.com |
7f18d11dddb539bf444bf341f2475c2791d74926 | ce529b23367320ac89f964e99f2340d1356602b6 | /FNN_try1.py | 4182ba6f318d440d48747bd75a78014e2e7e2fb4 | [] | no_license | Ian8797/March_Madness- | 08d9947b22f17c1e312cfd865c34dcf3e07da207 | 71f2927552edda6ef45dd84b2b03f77e660c481d | refs/heads/master | 2020-07-24T23:47:37.672420 | 2019-09-12T15:59:43 | 2019-09-12T15:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,533 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 2 14:19:52 2019
@author: ianvaimberg
Pretty good accuracy toping out at around 73%
"""
import pandas as pd
import pyodbc
import numpy as np
from sklearn.preprocessing import StandardScaler
import random
import tensorflow as tf
a=pyodbc.connect('... | [
"noreply@github.com"
] | Ian8797.noreply@github.com |
d775b455901b007d04aabe84cc1f0977ab3515c0 | a5bec8821233c1dfac266de331b810a44bbe0d1c | /insta_uploader.py | 84a24459d2cc7b7cf8d4fc82aa83c256cc10604d | [] | no_license | Anitej/plp_bot | e341d96b94fa3472b9e4cb4e84669c291b505022 | a31e3b7774140e1ce0909c67226270a20041a3d2 | refs/heads/master | 2020-08-23T00:59:59.774294 | 2019-10-21T08:19:22 | 2019-10-21T08:19:22 | 216,054,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from InstagramAPI import InstagramAPI
from os import getcwd
api = InstagramAPI('USERNAME','PASSWORD')
api.login()
image_path = getcwd()+'/image.jpg'
caption = 'test'
api.uploadPhoto(image_path,caption=caption)
print('my upload done') | [
"noreply@github.com"
] | Anitej.noreply@github.com |
bb79ec35e80fe9a5ce0d1864a9defd91f9079e1e | fb4a589b87fde22d43fe4345794c00bbc3785085 | /resources/oci-lib/lib/python3.6/site-packages/services/core/src/oci_cli_virtual_network/generated/virtualnetwork_cli.py | 2755a5bb958688d7f2e52e3318996e5cab4b333f | [] | no_license | dickiesanders/oci-cli-action | a29ccf353a09cb110a38dc9c7f9ea76260c62a48 | ef409321a0b9bdbce37e0e39cfe0e6499ccffe1f | refs/heads/master | 2022-12-18T02:52:07.786446 | 2020-09-19T09:44:02 | 2020-09-19T09:44:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682,685 | py | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | [
"bytesbay@icloud.com"
] | bytesbay@icloud.com |
b8ae4ce0e3842a9e15401dfc67037d1b0db337d8 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_REPO/MICROSOFT/computervision-recipes/utils_cv/similarity/metrics.py | 1b26bc69509bdef19d2614469057bd44399d7035 | [
"BSD-3-Clause",
"LGPL-2.1-or-later",
"Apache-2.0",
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 4,948 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Dict, List
import numpy as np
import scipy
from fastai.vision import LabelList
from .references.evaluate import evaluate_with_query_set
def vector_distance(
vec1: np.ndarray, vec2: np.ndarray, method:... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
f43357dcc279e787e5cae1f9679891f779cb1a8d | 4047b22c2de7f6a898e2a3d849afedfc86e8b684 | /people/migrations/0002_auto__add_relation.py | 28c3a3d6021ba7c043808741c5058326e170b110 | [] | no_license | stanremix/sx2 | bfe1a9d55164a8cb867a44a2963c8b01334d9c46 | 0349ade7b820ce5852e61cbc11b5e3fb486dc286 | refs/heads/master | 2016-09-11T03:28:21.831141 | 2014-11-27T17:17:03 | 2014-11-27T17:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,589 | py | # -*- coding: utf-8 -*-
import 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 'Relation'
db.create_table('people_relation', (
('id', self.gf('django.db.models.... | [
"stan.util@aliyun.com"
] | stan.util@aliyun.com |
1145ac9e199d171b21e06440d94b3a093b820d55 | 6642ba118a7279cc0ddd7ae02a6f91aa2f9b346c | /gl.py | 00288c88e18b10a20cdb92ed5a2440b2c2b6e439 | [] | no_license | ssxday/Python35 | 95299fefca9587f724d21a0b357c064c341cf869 | f18b47a7d8d2e79dc896430484059f8878a2e7b8 | refs/heads/master | 2021-01-12T03:59:13.579909 | 2017-04-10T05:37:09 | 2017-04-10T05:37:09 | 77,452,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | name = "Foo module"
def foo_fun():
print('函数foo_fun:')
print('变量name:', name)
print('打包成了可执行文件exe')
| [
"AUG@AuggiedeMacBook-Pro.local"
] | AUG@AuggiedeMacBook-Pro.local |
23d42fb2b7aa7f274dc0d918d97e796fe1023c05 | 6e2a9fa80dd87e36b73e0e32c4212d98a382dc41 | /SOURCE/level3_monster.py | 093f5d0eb3d673f2162e424765a89350b8da0b18 | [] | no_license | binhle3920/search-project-ai | b1f86406c9bfd338d019c9d3741f69539dba4945 | 90d32a42f8f58108c90f771b79a13c12add844ea | refs/heads/master | 2022-12-01T23:31:54.772144 | 2020-08-15T09:56:43 | 2020-08-15T09:56:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,590 | py | import random
monster_init_pos = []
monster_cur_pos = []
monster_possible_pos = []
monster_over_food = []
def get_monster_init_pos(maze, size):
for i in range(size[0]):
for j in range(size[1]):
if maze[i][j] == 3:
monster_init_pos.append((i, j))
monster_over_fo... | [
"lethanhbinh3920@gmail.com"
] | lethanhbinh3920@gmail.com |
177b8bcaa8463b27e3fa42b9e8c58aa040aee2c0 | 1f627bbd4c864b5671bf0b38bfb1d633b25d0522 | /Single-server-multiple-clients/singleserver_multipleclient_client2.py | a7b25e0ea99d6a89ccd56f10d804acb081d83bf8 | [] | no_license | srishilesh/15CSE312-Computer-Networks | a6361eb34039e694da8f5867d87c3add0352898e | 0fe1ddd33bee65af4df60642c2ed56d0b360653e | refs/heads/master | 2023-02-23T03:34:59.282957 | 2021-01-24T17:17:59 | 2021-01-24T17:17:59 | 221,458,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import socket
s = socket.socket()
s.connect(('127.0.0.1',12345))
inp = input(" -> ")
while True:
s.send(str(inp).encode())
data = s.recv(1024).decode()
print("From Server: ",data)
inp = input(" -> ")
ans = input('\nDo you want to continue(y/n) :')
if ans == 'y':
continue
else:
... | [
"noreply@github.com"
] | srishilesh.noreply@github.com |
3c0a4b1278a8cadab1ff0e8ddbbe6e43a3f18e60 | 35a0b95f5a13f2cf3ae92d554a65fac00262b5db | /userbot/plugins/botfeatures.py | 7ccd96643d904e4ecf47b0f31c297cd599618fac | [
"MIT"
] | permissive | chettiyar/SPARKZZZ | 8463237480478c1f990edd5b41fa85912afec41d | b9ed22887210c977e3750c0511e8a290c2042b3f | refs/heads/master | 2022-12-28T17:42:43.188297 | 2020-10-16T16:07:56 | 2020-10-16T16:07:56 | 298,184,122 | 1 | 0 | MIT | 2020-09-24T06:06:36 | 2020-09-24T06:06:35 | null | UTF-8 | Python | false | false | 8,250 | py | import datetime
from telethon import events
from telethon.errors.rpcerrorlist import YouBlockedUserError
from telethon.tl.functions.account import UpdateNotifySettingsRequest
from userbot.utils import admin_cmd
import asyncio
@borg.on(admin_cmd(pattern=("sang ?(.*)")))
async def _(event):
if event.fwd_from:
r... | [
"noreply@github.com"
] | chettiyar.noreply@github.com |
d047998792a91cc1538c9bc48335233c601cc52c | 1afa1b1929d1cd463cd9970174dd58ce2ca6eb1e | /configs/apcnet/apcnet_r50-d8_512x512_80k_ade20k.py | c839763faf490130069f1bfabab6589049462d09 | [
"Apache-2.0"
] | permissive | CAU-HE/CMCDNet | 2328594bf4b883384c691099c72e119b65909121 | 31e660f81f3b625916a4c4d60cd606dcc8717f81 | refs/heads/main | 2023-08-08T17:21:57.199728 | 2023-07-28T07:34:40 | 2023-07-28T07:34:40 | 589,927,845 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | _base_ = [
'../_base_/models/apcnet_r50-d8.py', '../_base_/datasets/ade20k.py',
'../_base_/default_runtime.py', '../_base_/schedules/schedule_80k.py'
]
model = dict(
decode_head=dict(num_classes=150), auxiliary_head=dict(num_classes=150))
| [
"flyhxn@qq.com"
] | flyhxn@qq.com |
2f7e86acbc73eceee702fff5496a091e73fa02fb | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /208/208.implement-trie-prefix-tree.214862898.Runtime-Error.leetcode.py | 0cd64973ee98610f7a71ed6cc5cebf20600aa614 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | class Trie(object):
class TrieNode(object):
def __init__(self, content=' '):
self.content = content
self.isWord = False
self.nexts = {}
def __init__(self):
root = self.TrieNode()
def insert(self, word):
if search(word):
return
... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
a1ea1f10ef6de52a2d3e67977698cd2c1c6ca732 | a81d6ccc34b1e756c95c5206be708290a274ff08 | /monkeytyping.py | 7e6c5ec68816f2e3118140e11bc81439b05b16d4 | [] | no_license | lizhigeng66/checkio | 535c28982a258a58a60aa366271875342d72cc0f | a451c2ca9bae64470df941513295442463b6b00f | refs/heads/master | 2020-03-16T21:00:59.897032 | 2018-07-04T15:13:29 | 2018-07-04T15:13:29 | 132,981,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | def count_words(str1, wordlist):
count = 0
wordlist1 = list(wordlist)
for i in wordlist1:
if i in str1.lower():
count = count+1
return count
if __name__ == '__main__':
# These "asserts" using only for self-checking and not necessary for auto-testing
assert count_words("How ... | [
"lizhigeng66@gmail.com"
] | lizhigeng66@gmail.com |
c7721ff1b8b85eeccb8763337f789f7c54a91ec3 | 0aa915b246ad65a1abc9b863537b0dae4bb55d55 | /api/views.py | 696d6c68cd059dc53378b4939535df81a7ceca8b | [
"MIT"
] | permissive | MohitS10/HelloWorld | 63786afa88c29ce89359c89f2796fbbcf74ce574 | b2deff72b8e2b3d30f20feb3d1f12782e63dc7f5 | refs/heads/master | 2020-12-26T15:48:47.109084 | 2016-08-26T16:20:37 | 2016-08-26T16:20:37 | 66,651,549 | 0 | 0 | null | 2016-08-26T13:53:44 | 2016-08-26T13:53:44 | null | UTF-8 | Python | false | false | 1,133 | py | from django.shortcuts import render
from .models import Project,Member,Contact,Technology,Contributor
from .serializers import MemberSerializer,ProjectSerializer
from django.http import HttpResponse,Http404
import json
# API wale endpoints
def projects(request):
if request.method=="GET":
projects = ProjectSerialize... | [
"abhinavbansal0@gmail.com"
] | abhinavbansal0@gmail.com |
3a3f91694bd8244ed86de77d93729ab9911b4426 | 010287ab2ba027a1daa166f6405834751a54e0ed | /swagger_client/models/get_transaction_response.py | e1d27e4ef0b3bb1000ab1145543ab905298faf26 | [] | no_license | mdodong/semuxapi-py | 5ab605bc445f83f55f0465c26981879d28fbe3b0 | 3056eb70f43c4167de33fdda253bff1940f117cb | refs/heads/master | 2020-03-11T07:49:35.874614 | 2019-12-16T00:20:33 | 2019-12-16T00:20:33 | 129,867,843 | 1 | 2 | null | 2019-12-16T00:20:34 | 2018-04-17T07:55:57 | Python | UTF-8 | Python | false | false | 3,221 | py | # coding: utf-8
"""
Semux API
Semux is an experimental high-performance blockchain platform that powers decentralized application. # noqa: E501
OpenAPI spec version: 2.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
f... | [
"noreply@github.com"
] | mdodong.noreply@github.com |
fb57e686421cf3b611d518d3b5d8b489bf0284a2 | ed91f03ff533fc2ff6ea509b7efe9362205b7b1e | /music/urls.py | 2df36218f5350091c516b88cb7875a1bfeb979e9 | [] | no_license | dishagupta22/GoMusic | 4ce91a934ac6989b3e815e90e0c6b9cb3454472b | 51c87ce4a2ead0ad7a050dfb8613548e50adffe5 | refs/heads/master | 2023-07-16T04:26:44.651623 | 2021-08-21T15:00:44 | 2021-08-21T15:00:44 | 398,157,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | """music URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"dishagupta2203@gmail.com"
] | dishagupta2203@gmail.com |
1c1c9fb5a797c3b27540cf216d0626c4d16de8d0 | 2c5cecd896751acda52d881b6109502da8cb7642 | /latestUsage/sample_drawcell.py | 3facd1157999f34823155a26a384722a47969fb9 | [] | no_license | jimscafe/tkinterwidgettable | 20dd470b2c5885186b62dda8c82e0429219212a1 | 7d06600433b254d268b4928bac5e94000139bddf | refs/heads/master | 2023-02-05T21:25:29.915481 | 2021-01-01T19:22:03 | 2021-01-01T19:22:03 | 283,709,281 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | import tkinter as TK
from table_nf import MyTable
import sampleData
class Main:
def __init__(self, parent):
self.parent=parent
#parent.geometry("500x200")
mainFrame = TK.Frame(parent, borderwidth=5, bg='yellow')
mainFrame.pack()
self.table = MyTable(mainFrame, createColumns(... | [
"pdhartley@gmail.com"
] | pdhartley@gmail.com |
939922049be622f0c427960ea8964b5924ed26ca | 452c390d88b0fd4906bcfee0adb39c3d4331c55b | /symbolic/pnrg/pnrg.py | 621c24ba41d5c9cb462043356ad894f8087d455b | [] | no_license | manupedrozo/ACST-challenges | 609db97246021d804f5b0e234005d3f1790d0dd9 | 1dac7459085c13f7891f85c20507a93206b205a4 | refs/heads/master | 2023-06-17T20:50:02.349575 | 2021-07-17T18:26:39 | 2021-07-17T18:26:39 | 299,690,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | from pwn import *
r = remote("training.jinblack.it", 2020)
r.interactive()
| [
"manupedr@gmail.com"
] | manupedr@gmail.com |
8ac0c577f2d05e43310d79af00afb3a45ec1796c | 63788baaa835ca63af3b839850f81844a2265dbe | /student/admin.py | b8eae913119c7156613c300b4050bcfba0522189 | [] | no_license | Benjamin-Mukeba/um | 8ab5196ea835e78033ef3ecb5bcd7c15295e6c1d | 81863555734efd9cb065e2a7ce8a32f628be23a9 | refs/heads/master | 2021-01-09T14:36:01.409289 | 2020-02-22T12:14:32 | 2020-02-22T12:14:32 | 242,339,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | from django.contrib import admin
from student.models import Student
class StudentA(admin.ModelAdmin):
list_display = ('nom', 'postnom', 'prenom', 'sexe', 'email', 'lieu_naissance', 'date_naissance', 'Etat_civil', 'adresse', 'faculte', 'departement', 'promotion', 'annee_academique', 'registration_date')
list_fi... | [
"frank@aims.ac.za"
] | frank@aims.ac.za |
e42298ba0c1dcbe10a98df243ffa6be02c19b2d1 | f9044ff33302db393c0bed13df82f9c29fe1b7c3 | /comment/migrations/0001_initial.py | 885cfd229ec4170ff4e311e5ba15086fe85a55f9 | [
"BSD-2-Clause"
] | permissive | shanbay/django-comment | f648c49e7af42dda0db128f4f7a97edc59ffa658 | a14770db3f464fa7839f97b6a5d90caa8d5a5ab7 | refs/heads/master | 2021-01-15T22:20:17.683113 | 2017-08-15T09:48:39 | 2017-08-15T09:48:39 | 99,898,529 | 2 | 1 | NOASSERTION | 2020-02-11T21:50:17 | 2017-08-10T08:12:58 | Python | UTF-8 | Python | false | false | 1,441 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-25 06:29
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', '__first__'),
]
... | [
"cxbats@gmail.com"
] | cxbats@gmail.com |
b4b966dcf88b5c5039b27204d7e2068bdef1dab4 | 033aa01ccf4be9670b26dbd6702be0852cfa8329 | /QBuyPro/urls.py | ed9d8de422b93e105f7678e5c61690605b2f0c18 | [] | no_license | KCooperA/QBuyPro | 970425aed3ba35918ecf26f5f6e46ec7864aeabe | 5e72159798a11189112232323a3066bdffd2b067 | refs/heads/master | 2020-07-19T19:50:12.887835 | 2019-09-05T07:31:22 | 2019-09-05T07:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from django.contrib import admin
from django.conf.urls.static import static
from django.urls import path, include
from QBuyPro import settings
urlpatterns = [
path('admin/', admin.site.urls),
path('active/', include('actives.urls', namespace='active')),
path('user/', include('user.urls', namespace='user')... | [
"610039018@qq.com"
] | 610039018@qq.com |
e953084a10499a5b71969ba92dfb69cb82abf533 | 34436c7f5497b20bdb4e12ed59517b616f19fa07 | /wordcount/wordcount/settings.py | f8688335821b3d1b8dbc6e407af7db4afca5ba77 | [] | no_license | aakarsh7599/django | b2bd0145882e5588c260b32ccff7072ef56b44dd | 1635f5373980d598f9b1a05c8b0379fc52904f55 | refs/heads/master | 2020-04-17T10:49:09.490944 | 2019-01-19T10:21:59 | 2019-01-19T10:21:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | """
Django settings for wordcount project.
Generated by 'django-admin startproject' using Django 2.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"aakarsh0705@gmail.com"
] | aakarsh0705@gmail.com |
b14328e032e759d2018e9088dbcc811d8c205b6e | e4124792934eaa7245ee7e3475780e5bc9644600 | /apps/menu_of_the_day/views.py | 94285ad0c9219e415e899477510f9d1fe9c8d2a7 | [] | no_license | imaheshaher/MessApp | 2e96aa4361df2e5b24eab88603952d440576d6f9 | 069d9c427713f1ba63375734c057641777e1173f | refs/heads/master | 2022-12-28T11:56:33.594408 | 2020-10-13T04:05:20 | 2020-10-13T04:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from django.shortcuts import render
from rest_framework import viewsets
from rest_framework.response import Response
from rest_framework import generics
from .models import MenuOfTheDay
from .serializer import MenuOfTheDaySerializer
# Create your views here.
# class ListMenu(viewsets.ModelViewSet):
# serializer... | [
"shubham.joshi1507@gmail.com"
] | shubham.joshi1507@gmail.com |
f6a6458a5a8e4df5d30d00febb11f2c28b9701af | 03004ba26a666e6112f91f0d598dcc9530caea81 | /myvenv/bin/django-admin | ae1647f49ab550089305eb4623994d9c85121c83 | [] | no_license | Chad-Lines/Django_REST | 130015c1c3d7ffc37cbc999d3a1919f4bb19bc7a | cb3c225872e376ff00fbaa2ecee3056b638acc53 | refs/heads/master | 2022-12-01T08:26:54.654323 | 2020-08-13T20:45:16 | 2020-08-13T20:45:16 | 287,112,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | #!/Users/chadlines/src/Django_REST/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"chad.lines1@gmail.com"
] | chad.lines1@gmail.com | |
1839b0c83dcc234ac334d344b02618b07109a0c0 | 01369b46bf192c7fc724a366bfc6eba0819d0bf5 | /test_ts_dist.py | 01a8eddb562c575224c289833544b30521e157cd | [] | no_license | ymtoo/ts-dist | 7fae6d802ae2e1fb5a400dce4e6b5ec66e80b66b | 30de6eba0969611cda58754e212bddef2b28772e | refs/heads/master | 2022-05-01T13:54:34.165145 | 2022-04-05T09:35:13 | 2022-04-05T09:35:13 | 153,758,139 | 23 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | import numpy as _np
import pyximport; pyximport.install(setup_args={'include_dirs': _np.get_include()})
import unittest
from ts_dist import dtw_dist as dtw_dist_py
from ts_dist import lcss_dist as lcss_dist_py
from ts_dist import edr_dist as edr_dist_py
from ts_dist_cy import dtw_dist as dtw_dist_cy
from ts_dist_cy i... | [
"too_ym86@yahoo.com"
] | too_ym86@yahoo.com |
c8649b4f6a6bb5bd7b4a034c30a54372255542a7 | 3bd703927b710564d3bcfeaee4ad51afc9a4d8d3 | /Tutorials/Python Machine Learning Scikit-Learn Tutorial/script.py | 429f58d123014c5b9a066d3373cb325aef54edb4 | [] | no_license | joneswan/DataCamp | 995def48b17434a64fda91f834f94219c044a0ce | 7de1deb1995bdbddddefeb3a12faba555cf76c37 | refs/heads/master | 2021-09-26T22:19:12.160299 | 2018-11-03T14:09:29 | 2018-11-03T14:09:29 | 104,729,903 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 21 23:46:42 2017
@author: jwan
"""
| [
"joneswan.tech@gmail.com"
] | joneswan.tech@gmail.com |
9f52177716f5b91e2d0e9259a9379a611950e331 | 6ee404818f72394208190c3df694b399074f2a08 | /tagteam/archive/pexpect_create_tags.py | f77a4d66604eb351c44f9b70387ac03e2f376ee6 | [] | no_license | ivanyeo/CassandraMySQLBenchmarkMinerva | ff8f3104523456aba04b9ce8b8fb0dfc854d98ea | 71f6007187b4b37f62dab7f1ab00be1f08425e02 | refs/heads/master | 2021-01-01T05:44:48.587944 | 2014-05-24T05:40:54 | 2014-05-24T05:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | #!/usr/bin/python
import pexpect
child = pexpect.spawn('python manage.py shell', timeout=None)
child.expect('>>> ')
child.sendline('execfile("create_tags.py")')
child.expect('>>> ')
child.sendline('exit()')
| [
"ivanyeo@cs.ucla.edu"
] | ivanyeo@cs.ucla.edu |
764489758b16ca15c1c43e429135db4e36bb80ae | ba92e696948a7895ea9c48c2bf3414a97bb99605 | /p016.py | 4328aa3f58e501a3648065e06b6a9a0800c9b429 | [] | no_license | dmmfix/pyeuler | 72d1898841749a06cf66b91fb8a2664c1804a632 | 1bac27d41dbf98f224e99f95b973160cd6d8b190 | refs/heads/master | 2021-01-20T01:32:51.588234 | 2017-04-27T06:37:35 | 2017-04-27T06:37:35 | 89,293,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | #!/usr/bin/python
import euler
print(sum(euler.digits(1 << 1000)))
| [
"dmmfix@fb.com"
] | dmmfix@fb.com |
cd9b2cdd3de1794e859351c6ef5fb1a6a003a39c | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startCirq309.py | cedbf8ea5e7fd2369f2515194eef4efdd203b9d7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,079 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=3
# total number=62
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
b63900024e9705c6c672dfbc212899b782369e55 | e8ed08121d7d0ecb7c2ec462021e4e3f49e1f565 | /core/models/__init__.py | 2d58873ffa7b1b962cd1f355ffac53985e09bd0e | [] | no_license | DebraYona/django-demo-shop | aa628952cca0350164bf7fb3cc09345777f9fe9f | 42959693995ea7aa9f3289fefc49d77e7c4a9cb9 | refs/heads/main | 2023-01-29T00:18:33.571288 | 2020-12-01T06:03:35 | 2020-12-01T06:03:35 | 317,356,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py |
from core.models.product import Product
from core.models.category import Category
__all__ = [
'Category',
'Product',
]
| [
"debra.chacaliaza@unmsm.edu.pe"
] | debra.chacaliaza@unmsm.edu.pe |
26dbad4bf374aa5dfab60fe34579a10b3053625f | 1183972397f69c64845f1ebce53efe3d0bc600e1 | /Healthcare.py | 0d4c90df4894f995cb5f9664b2df0568c55142ab | [
"MIT"
] | permissive | SreekarPraneethMarri/SLAC | f7e5105962152c56d07c67dccf6e495f9382b4e3 | e7fbee0dbac23bbdc52ffbf3e691708758d036bf | refs/heads/main | 2023-01-12T05:49:53.339739 | 2020-11-08T04:00:03 | 2020-11-08T04:00:03 | 310,979,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,821 | py | import subprocess
import string
import random
from tkinter import *
import webbrowser
print ("Welcome")
def callback(event):
webbrowser.open_new(event)
def main_ho(x):
if(x==1):
dept()
elif(x==2):
print("########### BMI ##############")
while (True)... | [
"noreply@github.com"
] | SreekarPraneethMarri.noreply@github.com |
5e1a33695962ffc7bcf5f91b5f3d237c529c161c | c49ba441a2f4fc94e54358a7436b9c12d538279a | /agent/src/agent/pipeline/config/stages/topology.py | 219269d7ada6d1bd0c80d1ee56e62e3962f7989f | [
"Apache-2.0"
] | permissive | anodot/daria | 86523a9f699577c8cf61120e2c27589a4ade48bb | 4aa800e26b585a8582ec2e088384a474148d114d | refs/heads/master | 2023-07-20T11:36:58.353251 | 2023-07-17T17:33:57 | 2023-07-17T17:33:57 | 224,878,130 | 16 | 6 | Apache-2.0 | 2023-07-12T13:07:25 | 2019-11-29T15:23:32 | Python | UTF-8 | Python | false | false | 853 | py | import urllib.parse
from agent.pipeline.config.stages.base import JythonProcessor
class TopologyScript(JythonProcessor):
JYTHON_SCRIPT = 'topology/transform.py'
DATA_EXTRACTOR_API_ENDPOINT = 'data_extractors/topology'
def _get_script_params(self) -> list[dict]:
return [
{
... | [
"noreply@github.com"
] | anodot.noreply@github.com |
c57b9cb1f61e8fc94173c23d6f467792d8b13e28 | 78918441c6735b75adcdf20380e5b6431891b21f | /config/urls.py | 11cc46512420154574ca40cfbbc304780f4853c7 | [] | no_license | dede-20191130/PracticeDjango_2 | eba40532d5ce8bd4fd13fbd15d94f31942111cfa | 23593c0fa4c4dff04bd76583e8176e600ca69014 | refs/heads/master | 2020-12-23T14:23:08.039363 | 2020-02-27T12:16:00 | 2020-02-27T12:16:00 | 237,176,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"1044adad@gmail.com"
] | 1044adad@gmail.com |
8cd1044d36b864f55eaca00f3c97733a42414a42 | f1fb01d49b60e37e21b5c19034bde60470cd451d | /knowledgebase/accounts/forms.py | 1afaa65b7f826d5a7bdd510123d5e1dd6bfc56b4 | [] | no_license | shirolapov/knowledgebase | d59209d561a083bb7192867c5bf583b8223c6b98 | 95bcb6443fd67e97599ff5cb9a4cea7689dc0e9f | refs/heads/master | 2021-09-08T04:45:38.168806 | 2018-03-07T07:12:18 | 2018-03-07T07:12:18 | 124,057,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | from django.forms import ModelForm, TextInput, EmailInput, PasswordInput
from django.contrib.auth.models import User
class UserForm(ModelForm):
class Meta:
model = User
fields = ['username', 'first_name', 'last_name', 'email', 'password']
widgets = {
'username': TextInput(attrs... | [
"kirill.shirolapov@gmail.com"
] | kirill.shirolapov@gmail.com |
e354377e9ee551f2a5df6e3d8bd6929cee8a1c7c | 049ece80895f6cb20a01af88745f4e6d636c5062 | /minitimestorefuel.py | d1177dd18cef6e4d596308888a55f78830c305cd | [] | no_license | reshmahayathbi1999/prolevel | 6a07d3a9a9123c0a4add03ff0ef157a0ae641e74 | c7f56e0bf57c6ea266aa0e7e7de3d28670bcdffc | refs/heads/master | 2020-06-22T11:23:17.548612 | 2019-07-19T09:19:18 | 2019-07-19T09:19:18 | 197,706,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | w1, x, y, z = map(int,input().split())
count1 = 0
x1 = x-y
if(x1 >= 0):
di = (w1-y)*2
for i in range(z):
if(i == z-1):
di = di/2
if(x1 < di):
x1 = x
count1 += 1
x1 = x1-di
if(x1 < 0):
count1 = -1
break
di = 2*w1-... | [
"noreply@github.com"
] | reshmahayathbi1999.noreply@github.com |
3eb5bad1d6f0abb913e0438f5f6df4145dda0a71 | 30b5179e32c3f31b56b100238ee9d14449d02071 | /tests/components/netatmo/test_device_trigger.py | 8f387996906359ea3f86f1da66108d05415e7dc9 | [
"Apache-2.0"
] | permissive | Verbalinsurection/Home-Assistant-core | e149c13ecae32c34b7cabd0216abcfddd6244bdc | 5f69ae436003c75b1eeac2ec488049197e87e9ff | refs/heads/dev | 2023-09-01T18:34:53.715026 | 2023-02-14T21:17:22 | 2023-02-14T21:17:22 | 247,318,244 | 0 | 0 | Apache-2.0 | 2023-02-22T06:14:24 | 2020-03-14T17:04:17 | Python | UTF-8 | Python | false | false | 10,250 | py | """The tests for Netatmo device triggers."""
import pytest
import homeassistant.components.automation as automation
from homeassistant.components.device_automation import DeviceAutomationType
from homeassistant.components.netatmo import DOMAIN as NETATMO_DOMAIN
from homeassistant.components.netatmo.const import (
... | [
"noreply@github.com"
] | Verbalinsurection.noreply@github.com |
7e7ed9ae32b1f7fe700f938aff6c085707608464 | 6d051f9348d547fa9e49d63f53afd7967b4f8043 | /djangobmf/contrib/timesheet/permissions.py | e2842070051de28418392bb2b99afd7d6f047b33 | [
"BSD-3-Clause"
] | permissive | caputomarcos/django-bmf | 39d7f1284ebf58e12e914f0a217368f8a664ef6b | 0d07a7d3f6a3ecfaca6c9376e764add1715cfd33 | refs/heads/develop | 2022-02-09T08:23:52.983948 | 2015-11-16T01:48:22 | 2015-11-16T01:48:22 | 46,672,438 | 0 | 0 | NOASSERTION | 2022-02-02T10:46:15 | 2015-11-22T17:57:11 | Python | UTF-8 | Python | false | false | 396 | py | #!/usr/bin/python
# ex:set fileencoding=utf-8:
from __future__ import unicode_literals
from djangobmf.permissions import ModulePermission
class TimesheetPermission(ModulePermission):
def filter_queryset(self, qs, user):
if user.has_perm('%s.can_manage' % qs.model._meta.app_label, qs.model):
... | [
"sebastian@elmnt.de"
] | sebastian@elmnt.de |
b81fdb42fa0ec0cbe0bece06a4ab3c9033f7c166 | d4608a5cd7db2edf3ef9470efd74b0761ab07efc | /src/pal_python/pal_launch.py | d38262f2c4bc532450ce2c652ab8f4b8d00eaea8 | [] | no_license | efernandez/pal_python | 378c233fad4776e202804d5e79e885d803c6b4a0 | 5c1ebeb9e716fbb619b4f120737ee86869e6533a | refs/heads/master | 2021-01-15T09:15:28.257787 | 2014-03-27T18:01:28 | 2014-03-27T18:01:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,488 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# pal_python: pal_launch.py
#
# Copyright (c) 2013 PAL Robotics SL. All Rights Reserved
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the
# above copyright notice and this permis... | [
"siegfried.gevatter@pal-robotics.com"
] | siegfried.gevatter@pal-robotics.com |
591be998f5d765da792edc90a9f6aa7b76101519 | aa2c6ff3746c860d06750f4b2238a06903ad1378 | /jeyzth42/lib/base.py | 337ca607132e694b9cb569b0ead46e1206816202 | [] | no_license | jeyzth/jeyzth42 | 3d5fb7bf847397dfb09aa0998d797a4a3a9ddbec | 82f479efeba4adf4db44d4ddb7bb9c2afbff8e52 | refs/heads/master | 2016-09-06T20:39:49.197154 | 2015-07-19T01:35:52 | 2015-07-19T01:35:52 | 39,333,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # -*- coding: utf-8 -*-
"""The base Controller API."""
from tg import TGController, tmpl_context
from tg import request
__all__ = ['BaseController']
class BaseController(TGController):
"""
Base class for the controllers in the application.
Your web application should have one of these. The root of
... | [
"jeyzth@gmail.com"
] | jeyzth@gmail.com |
ab3aa0cc571115f2af8b988585586d1e19a40995 | f394598dad4276f9667e702b7360ab14dcd10cfc | /unsolved/girl_in_apple_orchard.py | df6154d23878102ec46d8c9491ae7ea415648287 | [] | no_license | siowyisheng/python-problem-solving | fe9ded3761e637883467cb81abc01bcb0a54b589 | 7e32767a3ac710ecfc37f205ee35eda194400122 | refs/heads/master | 2020-03-21T19:57:56.118616 | 2019-06-28T08:12:09 | 2019-06-28T08:12:09 | 138,980,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | A girl is walking along an apple orchard with a bag in each hand. She likes to
pick apples from each tree as she goes along, but is meticulous about not
putting different kinds of apples in the same bag.
Given an input describing the types of apples she will pass on her path, in
order, determine the length of the long... | [
"siowyisheng@gmail.com"
] | siowyisheng@gmail.com |
0af73a0872ef6a53d8a2fd26ebe105463a65d54b | c3dc08fe8319c9d71f10473d80b055ac8132530e | /challenge-101/roger-bell-west/python/ch-1.py | 214318e188fde9285e6af4b6769df93d2f5fcbb2 | [] | no_license | southpawgeek/perlweeklychallenge-club | d4b70d9d8e4314c4dfc4cf7a60ddf457bcaa7a1e | 63fb76188e132564e50feefd2d9d5b8491568948 | refs/heads/master | 2023-01-08T19:43:56.982828 | 2022-12-26T07:13:05 | 2022-12-26T07:13:05 | 241,471,631 | 1 | 0 | null | 2020-02-18T21:30:34 | 2020-02-18T21:30:33 | null | UTF-8 | Python | false | false | 1,569 | py | #! /usr/bin/python3
import math
def pas(aa):
a=aa[::-1]
n=len(a)
f2=int(math.sqrt(n))
f1=0
while 1:
if n % f2 == 0:
f1=int(n/f2)
break
f2 -= 1
out=list()
for i in range(f2):
out.append([0] * f1)
x=-1
y=0
maxx=f1-1
maxy=f2-1
... | [
"roger@firedrake.org"
] | roger@firedrake.org |
ac84b2fbaaad045cba87e7975ff99c844d6017e9 | dd660ea2bee9fdf568da47f9760568c0d5c91049 | /tf_lab/test_tf_dataset_v2.py | cea3a4d2abb1f18e193a923db06594a1d2d494ea | [] | no_license | kanhua/lyft-3d-main | 4cad265b9c92a62ab79ebab4e01e2ffe2ad8f025 | 1c74500f0bf5d52317af29cb350368832eb42aba | refs/heads/master | 2021-08-07T18:48:05.983138 | 2020-09-17T00:49:19 | 2020-09-17T00:49:19 | 219,532,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | import tensorflow as tf
from itertools import count
g=tf.Graph()
with g.as_default():
dataset = tf.data.Dataset.from_tensor_slices([8, 3, 0, 8, 2, 1])
iter = tf.compat.v1.data.make_one_shot_iterator(dataset)
el = iter.get_next()
el = iter.get_next()
el2=tf.compat.v1.add(el,el)
with tf.compat.... | [
"kanhua.lee@gmail.com"
] | kanhua.lee@gmail.com |
256350fd1e0ca70d3eb2d92a6df9eeeb0952e532 | b41e0def0792c55ee12a452bf34c1e339487b42c | /model_assessment/plot_mean_std_u200.py | a58b62ebd84e74ca23c302160d690d985032580b | [] | no_license | marisolosman/assessment_SH_zonal_asymmetries | ba6e0a9c38019313367dbbe5914c45aa4f23b19e | dc400f09be8c6845ce86d28e2ab7bc9bfb37fcc8 | refs/heads/master | 2022-12-25T00:52:31.678839 | 2022-12-19T13:34:37 | 2022-12-19T13:34:37 | 194,651,414 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,268 | py | #plor meand and std for HGT 200 A-N for ERA Interim and S4
import numpy as np
import datetime
import pandas as pd
import xarray as xr
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature
from cartopy.mpl.ticker import LongitudeFormatter, LatitudeFormatter
import os
os.environ['HDF5_USE_F... | [
"marisolosman17@gmail.com"
] | marisolosman17@gmail.com |
c0de6eaf5e7552a449c505f9bd7b126394fdc0fd | 54fb604d26a203b4d2cd90c9d0331c052c11093d | /get_binmatrix_for_genes_in_sigclust.py | 137696a4bb19be587b4b810617ad60c066ef6a9d | [] | no_license | bmmoore43/GO-term-enrichment | ee73c032b4fb7fcce16236fae3a22c775bdd3e94 | e024a97047672674027f07795f0fcfd346c0bf7d | refs/heads/master | 2023-02-09T13:21:26.943229 | 2023-02-03T17:42:29 | 2023-02-03T17:42:29 | 191,232,092 | 0 | 1 | null | 2023-02-03T16:51:49 | 2019-06-10T19:23:00 | Python | UTF-8 | Python | false | false | 7,555 | py | """
script by Bethany Moore
PURPOSE:
given a cluster file, pathway file, and significant enrichment file, gets binary matrix of genes vs. cluster where 1= gene is \
significantly enriched and 0= gene not enriched in a given cluster. Gene's pathway also written as second column.
INPUT:
REQUIRED:
-cl = file with enrichme... | [
"bmjohns43@gmail.com"
] | bmjohns43@gmail.com |
4ff990ad51fbbcc7a3aae361b076a5e4bf65d12a | 75b1bae760da0762812890edf4e0533ba1a75f59 | /sorting_algos/__init__.py | a0a4595b22c0cd53d586617fb6da2e68c208e27f | [
"MIT"
] | permissive | k-the-foodie/sorting_algos | a961af2a28fdb3c062ff028ef1a7859db9a5af93 | be092484f5f07fc939ccef623a450b428571a3a0 | refs/heads/master | 2021-09-01T19:27:01.823036 | 2017-12-28T12:29:56 | 2017-12-28T12:29:56 | 114,809,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | # -*- coding: utf-8 -*-
"""Top-level package for sorting_algos."""
__author__ = """Kunal Shah"""
__email__ = 'kunal.shah.1993@gmail.com'
__version__ = '0.1.0'
| [
"kunal.shah.1993@gmail.com"
] | kunal.shah.1993@gmail.com |
a16a54b32b0c5ced26c25d966e195d7cc4a0be04 | bd6ab3c6bcb774d7c00549a9dad7aea4ffcb646f | /parser.py | 3e6de07eddfddcd086663c3162e014782e0920b9 | [] | no_license | dfmorse23/SPD1.5Project | eb5b539053cbd1c5309fdfff4789aec8e8624e9e | e60db763525c9e6ffee89fed9ad2cdec8f896dd8 | refs/heads/master | 2022-11-16T02:10:25.809032 | 2020-07-17T01:59:06 | 2020-07-17T01:59:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,467 | py | import sys
from cmd import Cmd
import pandas as pd
class Data():
def __init__(self, filename):
self.dataName = filename
self.df = pd.read_csv(filename)
self.df_name = "df"
self.transformed_data = ""
self.transformed = 0
self.kmeans = 0
self.target = 0
... | [
"darkblackvoid@yahoo.com"
] | darkblackvoid@yahoo.com |
cd3e2be0a15ce970152bebec2f952ca08d0ba242 | f94ab3b7b7468979494e6825bdace1e72fbff16a | /recoverTree.py | e582ec4d6217371cde88ee2d754a21c3be147a90 | [] | no_license | sbsreedh/Trees-5 | 0527362c4f272f6ee281505940c86c6e334e7263 | a185930839657bb8dc30ea4676be24d64396fb4e | refs/heads/master | 2022-11-08T15:05:32.260309 | 2020-06-13T19:04:10 | 2020-06-13T19:04:10 | 271,957,655 | 0 | 0 | null | 2020-06-13T06:57:14 | 2020-06-13T06:57:14 | null | UTF-8 | Python | false | false | 2,313 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
#Time Complexity:O(N)
#SC:O(N)
#Algorithm:
#1.Explore left children assign the last encountered root as prev. and the previous ... | [
"noreply@github.com"
] | sbsreedh.noreply@github.com |
1bffcbb02c72f33a80496f918b1d05e1419a2fd8 | c2e93819a7f469cd5ac2828487598abd9f315739 | /event/migrations/0001_initial.py | 72afc4fbd76e138255be6af5c5eaeead7db4e829 | [] | no_license | DanikNik/urfu | 887be900a417f4db8aae8f784f2bd6edd42669d8 | 32fe566025c510940f73a2f3d740cef4bb5fa49c | refs/heads/master | 2020-03-25T18:04:28.915761 | 2018-09-06T07:33:22 | 2018-09-06T07:33:22 | 144,011,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | # Generated by Django 2.1 on 2018-08-23 14:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('account', '0004_auto_20180823_1346'),
]
operations = [
migrations.CreateModel(
... | [
"nikolsky.dan@gmail.com"
] | nikolsky.dan@gmail.com |
a2ef8bc783f0d38289453a9c786deca1dfdffe58 | d83f9719409383c664f5e85657618e5000b1b539 | /jenkins1.py | ddc3c7b827e02aa759269aeb83be32d2f2e5ecf8 | [] | no_license | shrish1111/jenkins_projects | 89dc0c8721719ea6809c931f54260b4818aecda0 | c8bb914edd4da11c738bbc9df217da8ff1784c4c | refs/heads/master | 2020-05-05T03:32:20.619300 | 2019-05-07T20:20:44 | 2019-05-07T20:20:44 | 179,676,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | #this is a test project1
print("hi, this is project one")
| [
"shrish.chamoli@gmail.com"
] | shrish.chamoli@gmail.com |
8d10d73283042f260c275caa78cfa0a123a6d152 | 7508a7c68b19259743729779219ed83c94e8a820 | /geoscan_ws/src/gs_logger/setup.py | 546df4f980aa33f2d8e4e1e6b16c83e7582299d8 | [] | no_license | ITMO-lab/geoscan_pioneer_max | 0a9946f26fd4228c3694e08934df9975cb30e5ce | a25fefad94e7b389d8d040a6d32e7d8388866131 | refs/heads/master | 2022-11-27T06:29:07.571265 | 2020-08-07T15:25:52 | 2020-08-07T15:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup()
d['packages'] = ['gs_logger']
setup(**d) | [
"ilya@eadsoft.com"
] | ilya@eadsoft.com |
b73c9813a5eeeefc76d8a3e11dbda6456ee83c45 | 539d84c6f3ee281787ed50883ef748e827c8637e | /4th/homework_9/id_69/322-CoinChange.py | 99f391847588d587c195a53e014676e1fe3b7657 | [] | no_license | StuQAlgorithm/AlgorithmHomework | 513678422ff4a984b90d137d7dabe075d23f5dcf | 88da6b274e49ce97d432e1f4d4de8efa55593836 | refs/heads/master | 2021-01-21T06:52:35.934321 | 2017-10-09T02:12:52 | 2017-10-09T02:12:52 | 101,950,372 | 6 | 12 | null | 2017-10-09T02:12:53 | 2017-08-31T02:31:32 | Python | UTF-8 | Python | false | false | 2,201 | py | # https://leetcode.com/problems/coin-change/description/
# You are given coins of different denominations and a total amount of money amount.
# Write a function to compute the fewest number of coins that you need to make up that amount.
# If that amount of money cannot be made up by any combination of the coins, retur... | [
"lyl.lucas@gmail.com"
] | lyl.lucas@gmail.com |
24460fde23af0571b0746245d8b896480757ab02 | ccad086a2c92209052e2d6c16229a5b4957f8b40 | /GameTutorial.py | 5b87eac4bb22cc7a196bc6f27590b1e0051a6709 | [] | no_license | rat-and-rojangles/Luigi-s-Universe | 48b3d1d2581b54305c19b6429b57f1b4e23a6ef6 | c4c34f65d2923c5cec5a376d7ff89ce07c97a889 | refs/heads/master | 2021-05-31T12:28:05.138033 | 2016-02-27T23:18:15 | 2016-02-27T23:18:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,179 | py | import pygame
from pygame.locals import *
import sys, os, math, random
import MainScreen
from LevelTutorial import *
from Enemy import *
from HUD import *
from TextOption import *
WHITE=(255,255,255)
GRAY=(127,127,127)
BLACK=(0,0,0)
RED=(255,0,0)
GREEN=(0,255,0)
BLUE=(0,0,255)
LIGHT_RED=(255,127,127)
LIGHT_GREEN=(1... | [
"starfox139@yahoo.com"
] | starfox139@yahoo.com |
91117b19352d55ffd475a2a6b3864904f968a699 | 2fb888de6aefd029cffff9a2f4894035d16ce6d5 | /myapp/views.py | 00e9711f910035c70ae86b3d6bfe76737bad1cd2 | [] | no_license | Changolaxtra/djangoTest1 | ad6251b4797aaeb0582adfbd19d59cd56ff1e251 | c4ea932c5b9d7f8924f390ffbac304fa7f619b8f | refs/heads/master | 2022-12-28T08:46:38.670302 | 2020-09-23T04:27:19 | 2020-09-23T04:27:19 | 297,848,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import Book
# Create your views here.
def index(request):
book_list = Book.objects.all()
context = {
'book_list': book_list
}
return render(request, 'myapp/index.html', context)
def products(request):
r... | [
"dan.rojasx@gmail.com"
] | dan.rojasx@gmail.com |
59bc43fe1887c763a42db251c74f7dc8883f6ca0 | 501c60d76cc3091dc5e0784391275d7801397c2c | /agedBrie.py | 6e0100f94908af8ab0e674f259066b753e88f3c6 | [] | no_license | patezno/Gilded-rose | 18063241d9cf0d4616c49e98838020e06135d910 | be6dd4177b0372b78fbe53b0f491d9ed9563f312 | refs/heads/master | 2020-04-15T12:52:50.150554 | 2019-02-14T18:27:22 | 2019-02-14T18:27:22 | 164,690,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from regularItem import RegularItem
class AgedBrie(RegularItem):
def update_quality(self):
if self.getSellIn() >= 0:
self.setQuality(1)
else:
self.setQuality(2)
if __name__ == '__main__':
# test case 1
pato = AgedBrie('pato', 9, 4)
pato.update_quality()
... | [
"patezno97@gmail.com"
] | patezno97@gmail.com |
98d60b21a5c679f28850ad8f5ff63c51f628bec9 | 8fa938eddcc75eb7dff1f2055c49cb3817a00c63 | /Basic - Part1/ex25.py | 401a85059bdce57303b2f6a7d352f47c800826bd | [] | no_license | jayhebe/w3resource_exercises | f27109759d112b0611574aa70eb378ace447c2a0 | b29aa7c806f6021a8988e83bb9f674522a41380d | refs/heads/master | 2020-05-07T09:23:24.039271 | 2020-01-30T15:05:06 | 2020-01-30T15:05:06 | 180,374,062 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | def value_in_group(group, value):
if value in group:
return True
else:
return False
if __name__ == '__main__':
print(value_in_group([1, 2, 3, 4], 3))
print(value_in_group([2, 3, 4, 5], 3))
print(value_in_group([2, 3, 4, 5], 8))
| [
"jayhebe1983@sina.com"
] | jayhebe1983@sina.com |
ca16cb570cabc3a43ee4ced4dde4251c62ad535f | cd6780f8df34207eb21983c98cfb18981a42a284 | /intermediate-project-/code.py | d2fa3f6f5ab1d810e42e6896c6ea334c97df9205 | [
"MIT"
] | permissive | Manan-1226/greyatom-python-for-data-science | ca6bd3d2c7085eca706fd0ab31ee8221618a14b2 | 815745f17873d4811d8d437e638bfbefaccfcfae | refs/heads/master | 2022-11-06T23:54:05.334034 | 2020-06-28T04:22:35 | 2020-06-28T04:22:35 | 269,128,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,123 | py | # --------------
#Code starts here
#Function to read file
def read_file(path):
#Opening of the file located in the path in 'read' mode
file = open(path,'r')
#Reading of the first line of the file and storing it in a variable
sentence = file.readline()
#Closing of the file
file.cl... | [
"Manan-1226@users.noreply.github.com"
] | Manan-1226@users.noreply.github.com |
94edcc6d24f273466db2cb36c4e6537a754ee8c7 | b1e554cc2f73896da2474e6229dc865c2e291906 | /app/core/migrations/0002_tag.py | b7f7bd0af4f9d13930386a810171f4c2886ce946 | [
"MIT"
] | permissive | Justoo1/recipe-app-api | 0d8a2854588c6e00193633112aedc6075393a330 | 91282b8bc993e7871dfff28feca5110ef76d370f | refs/heads/master | 2022-12-18T13:07:52.810958 | 2020-09-23T04:15:42 | 2020-09-23T04:15:42 | 296,110,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Generated by Django 2.1.15 on 2020-09-21 09:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"amankrahjay@gmail.com"
] | amankrahjay@gmail.com |
00449eccc8ef7abf5c0b1a98674c42fbd5bcfb81 | 033841f8c0ee04bbefa628c12acef15607501f0e | /assignment1/variables.py | 92b72c6134f8aec14cd0acc1292344605e005a02 | [] | no_license | jwsawyer87/hello-world | d341e25b707e503b2cf98e17e873313a8cd448fc | 0737299285c7b9e5ba619800d1e3cb01396b2522 | refs/heads/master | 2020-04-21T10:53:00.959797 | 2019-02-23T15:14:07 | 2019-02-23T15:14:07 | 169,501,059 | 1 | 1 | null | 2019-02-07T14:23:48 | 2019-02-07T01:00:16 | null | UTF-8 | Python | false | false | 32 | py | shoe_size=10
print (shoe_size)
| [
"Trish@Trishas-MBP.attlocal.net"
] | Trish@Trishas-MBP.attlocal.net |
6a3d9bef64ac5e972b4d4a898b8e65e546cfa9fa | 59a6cae7f00a44af899067d5282fcdfc1aaf97aa | /lists/tests.py | c17fdc109816d730f672450e8ceb6b3fe439cae2 | [] | no_license | gboned/gboned | 71893fe56ed5b4665e0bec2ce1705155c5caebc2 | 04206503f71a902ec5266807e4463a2868dc00c5 | refs/heads/master | 2021-05-20T13:04:33.637892 | 2020-04-02T02:42:43 | 2020-04-02T02:42:43 | 252,309,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | from django.urls import resolve
from django.test import TestCase
from django.http import HttpRequest
from lists.views import home_page
class HomePageTest(TestCase):
def test_root_url_resolves_to_home_page_view(self):
# resolve es la función que Django usa internamente para resolver la URL
# y enc... | [
"gboned@cifpfbmoll.eu"
] | gboned@cifpfbmoll.eu |
ae07dc6b69c91b9aebdc683249dee11c47e0b6fe | 6a1d1ac076a3d5a8c8bb2f5bd52facb52e98bbc4 | /tests/test_all.py | b991996a67ab47d76d4fe3177b4c24b01b528c69 | [
"MIT"
] | permissive | DanLindeman/ConferenceScheduler | c7184fb43bbfcb78d279b729f1b99d82542a62a9 | c54be5f545d4742ef9468797ce473e0a4590cb45 | refs/heads/master | 2016-09-08T00:28:43.924594 | 2015-08-02T17:51:25 | 2015-08-02T17:51:25 | 40,087,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """Sample integration test module."""
# pylint: disable=no-self-use
import unittest
from conference_scheduler import sample
class TestConference_scheduler(unittest.TestCase):
"""Sample integration test class."""
def test_network_stuff(self):
assert sample.function_with_network_stuff() is True
... | [
"lindemda@gmail.com"
] | lindemda@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.