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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b7228c351689314206f06bf6e3f4bbc36f1dac00 | 2777bf7a60bb92d45ad1c707d572d85d7b30f8fa | /__main__.py | 37184c7d2c483856226401ceb819245cf1079e30 | [
"Python-2.0"
] | permissive | mitsuhiko/python-modernize | 59c61885506f207dd9bf551ff0dbe5ac9ebc77ca | 162161a439eee9ba124edac8b19c399020d0b227 | refs/heads/master | 2023-06-08T17:51:39.679335 | 2020-07-22T11:35:26 | 2020-07-22T11:35:26 | 3,354,059 | 306 | 27 | NOASSERTION | 2020-07-19T01:30:23 | 2012-02-04T17:18:11 | Python | UTF-8 | Python | false | false | 114 | py | from __future__ import absolute_import
from libmodernize import main
if __name__ == '__main__':
main.main()
| [
"brett@python.org"
] | brett@python.org |
b67e7413ebd454a0df9bebc99db9a2fd9f8592d7 | b79a6c3a72a0cb23978e9b7d49a96a51a1870ce5 | /grid.py | 9d4d5441dfe4ae10433ec9f209df492abda2be00 | [] | no_license | Keyril/Pathfinder | 81d6efdd0f65f3af39e16236029718bff83cee6c | c207da209dad39bfd387109ecb997acf405f4f8c | refs/heads/master | 2020-12-21T11:47:20.339558 | 2020-01-30T20:20:30 | 2020-01-30T20:20:30 | 236,421,661 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,722 | py | import time
from tkinter import *
import random
import bfs
import aStar
import aStarNums
import dijktra
window = Tk()
window.title('PathFinder')
boardFrame = Frame(window)
doubleFrame = Frame(window)
def createBoard(m, n):
global running
global startBox
global endBox
global seFlag
global board
... | [
"noreply@github.com"
] | Keyril.noreply@github.com |
2fbb9672c4956b8618fca557af5eb6f8f2734dac | 61f140ba963a9ea803917e1c2ef87fe3f9475877 | /gr/gbi-client/app/geobox/web/views/tasks.py | c972e020bc5b5b9f991323104d839740b7966e52 | [
"Apache-2.0"
] | permissive | Web-Dev-Collaborative/Github-Based-Projects | 41db5fa30157cd8810d2dfd7f457e61306e2871f | 7f8f7189337dfcc351c3215d1b2a7b5e8252c9f0 | refs/heads/master | 2023-07-03T10:50:11.475717 | 2021-08-04T20:53:17 | 2021-08-04T20:53:17 | 392,795,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | # This file is part of the GBI project.
# Copyright (C) 2012 Omniscale GmbH & Co. KG <http://omniscale.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licens... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
2dcb9548eb9fa671ec9f09da36d38eac661f678e | 2cdbbf8ffbe787c5e91b0c2176d853897e286dfb | /blog/migrations/0002_permissionlist_rolelist_user.py | 7cf01c60293ba1bd9309d79aef2380d57db5538f | [] | no_license | liying1993/lyblog | 43134d9b7ecd462c119ea90438d7e297a1dbfcac | e719d985cc2b257dc3fdc0b9f5cd75aeb3ac3b38 | refs/heads/master | 2021-01-21T12:01:25.070305 | 2017-05-19T06:34:09 | 2017-05-19T06:34:09 | 91,772,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-05-17 08:43
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
mi... | [
"13040871401@163.com"
] | 13040871401@163.com |
dd0d49ae1d1f4977d218d13bb5e40ba88e66955e | 8f011c1bcc2702d2d3a98a11900efbc95f0c9fc8 | /tests/test_authresource.py | df7f06a2a4bb1025f34532cccc95587a3b0569d2 | [
"Apache-2.0"
] | permissive | apigram/HospitalWaiterAuthService | c66b3dc07732116dc51c8634682c8cfbcba1e9f3 | 9fcff5c215f3ec99658ab2b2d300dd6f511d52fc | refs/heads/master | 2020-03-18T13:42:36.336916 | 2018-11-08T11:07:48 | 2018-11-08T11:07:48 | 134,802,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import os
import tempfile
import pytest
from app import app
@pytest.fixture
def client():
db_fd, app.config['DATABASE'] = tempfile.mkstemp()
app.config['TESTING'] = True
client = app.test_client()
with app.app_context():
app.init_db()
yield client
os.close(db_fd)
os.unlink(app... | [
"andrew.pigram@toukanlabs.com"
] | andrew.pigram@toukanlabs.com |
c0db3478511e45f7764b489091567f96ebd70cff | 03ee40240b2a44e55ab2982e962c37436dfa2afc | /crawler/ongoing/lotter/lecai/spider.py | af09250b6c528d6acad001a107abc14ea1b2da7a | [] | no_license | 535521469/fetch_sth | 81583a19de42bf933d83f08b33036ef83fe21dd3 | a74bd3697d96559ff345e2d481c5ee2dab0ef3db | refs/heads/master | 2021-01-25T07:34:48.128448 | 2013-03-24T13:58:08 | 2013-03-24T13:58:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | '''
Created on 2013-3-20
@author: corleone
'''
from scrapy.spider import BaseSpider
class LeCaiHomeSpider(BaseSpider):
home_url = u"http://www.lecai.com"
| [
"535521469@qq.com"
] | 535521469@qq.com |
3183352386e354fae0c15f240db4fece609a5626 | 1f6d8f78d8b898816cbeca667a4e08b0931d3611 | /split_and_join.py | 011566c5115d7d0d654b172fa52c7aee26010c40 | [] | no_license | scottwedge/HackerRank | 392293db64d0f25d74a984dd5303881caecb6f34 | a4095622c8f4c112219906c85e4a18e738ed33bc | refs/heads/master | 2022-05-12T04:49:34.902408 | 2022-05-12T02:57:23 | 2022-05-12T02:57:23 | 242,226,409 | 0 | 0 | null | 2020-02-21T20:38:32 | 2020-02-21T20:38:31 | null | UTF-8 | Python | false | false | 1,125 | py | #!/usr/bin/env python3
# In Python, a string can be split on a delimiter.
# Example:
# >>> a = "this is a string"
# >>> a = a.split(" ") # a is converted to a list of strings.
# >>> print a
# ['this', 'is', 'a', 'string']
#
# Joining a string is simple:
# >>> a = "-".join(a)
# >>> print a
# this-is-a-string
#
# Ta... | [
"scott.wedge@gmail.com"
] | scott.wedge@gmail.com |
84e834cf23653a27be4d8a915b1552f2c7d35a09 | 1bc322d9d8d787eaae079ef39a86809661fee47e | /scribble/diagrams.py | 4954097423ce063d57462e0834aebaa35c1e6892 | [
"Apache-2.0"
] | permissive | seanmao/scribble | 46179f566d430ac95d18e8ebf77486897c81a6a6 | 82647f852e191717169f212be8886a568a4a29f5 | refs/heads/master | 2022-11-30T10:58:28.894513 | 2020-08-14T20:24:07 | 2020-08-14T20:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,259 | py | # Copyright 2019 SiFive, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You should have received a copy of LICENSE.Apache2 along with
# this software. If not, you may obtain a copy at
#
# https://www.apache.org/licenses/LI... | [
"rxia@sifive.com"
] | rxia@sifive.com |
c854845081d775436dd9babafb974f875d309733 | 846febdd0d6762eae6f954c3d60e4073ec152fa8 | /hw5/hw5/hw5_submit/analysis.py | 4e3c25cae091602b672a6d0eaf9cdc4c6bbe1a7b | [] | no_license | budiryan/CS4641 | a29c28c9b0c9e2f04d9ddafd604499e07b664128 | 58fbfe5aa1a6892eeaaeac261c3080dd3d4cf4f6 | refs/heads/master | 2021-06-10T11:25:19.109764 | 2017-01-18T11:11:39 | 2017-01-18T11:11:39 | 78,998,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | # analysis.py
# -----------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu) and Dan Klein (klein@c... | [
"budiryan@github.com"
] | budiryan@github.com |
961e8c2e8a8b9573defc0ddab31c2e169b9834a8 | 27089a27296b4be2d1e192d30c5132dc00e9afb0 | /pysgrid/tests/test_sgrid_variable_wrf.py | d9ae63bd69bca88a4785964f046eef884f9bbc86 | [
"BSD-3-Clause"
] | permissive | sgrid/pysgrid | 8090dd82696ff6fc92c8d8a6ed2d0eaf272f4db2 | 4eb947aec7a807cd2f9a74e20884dc0e06a96d2b | refs/heads/master | 2020-05-21T22:37:55.613523 | 2017-05-25T02:02:13 | 2017-05-25T02:02:13 | 30,425,660 | 11 | 16 | null | 2017-04-19T19:35:01 | 2015-02-06T18:02:49 | Jupyter Notebook | UTF-8 | Python | false | false | 1,703 | py | """
Test SGrid Variables WRF.
Created on Apr 15, 2015
@author: ayan
"""
from __future__ import (absolute_import, division, print_function)
import pytest
from ..sgrid import SGrid
from ..utils import GridPadding
from ..variables import SGridVariable
from .write_nc_test_files import wrf_sgrid
@pytest.fixture
def... | [
"ocefpaf@gmail.com"
] | ocefpaf@gmail.com |
73f1d72b0f3787d740c6dd4e4332008d055d261a | d468d517c28a7e964a989730b0a87888a27b4478 | /test/test_trim.py | 439e97300c68a4b11b0b3d3ff462a095f1f1a67b | [] | no_license | connorjclark/zquest-data | b86aa612fcaedc57017df6fc3a1d7a41d854f9fc | a52b5d19cb73439137ef281110c8831774000c5e | refs/heads/master | 2023-07-25T21:48:31.787397 | 2023-07-06T20:04:19 | 2023-07-06T20:20:44 | 199,337,465 | 0 | 0 | null | 2022-11-22T06:43:54 | 2019-07-28T21:09:38 | Python | UTF-8 | Python | false | false | 2,592 | py | import os
import unittest
import hashlib
from pathlib import Path
from zquest.extract import ZeldaClassicReader
from examples.trim_sections import trim_qst
from zquest.section_utils import SECTION_IDS
os.makedirs('.tmp', exist_ok=True)
def get_section_sizes(reader):
return {id: header.size for (id, header) in r... | [
"cjamcl@gmail.com"
] | cjamcl@gmail.com |
65519143a0bce015ee013f6f3fa2166c5884894f | 4e22d14f05d0dd0cdb653aea65dc7c6b66a242da | /catnapping.py | 732e47e6081332fdd9960dff43b59cce86458763 | [] | no_license | ZeroPaul/automate-python | 1d58f4f94fc400af146734fdfdf1af418a715e37 | 64f67f2504856a2b0dd22436c9a624f7b2977635 | refs/heads/master | 2020-04-12T04:20:40.595759 | 2019-05-03T21:28:53 | 2019-05-03T21:28:53 | 162,292,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
print('''Dear Xo,
Eve's cat has arrested for catnapping, cat burglary, and extortion.
Sincelery,
Paul''')
print('Dear Xo,\n\nEve\'s cat has been arrested for catnapping, cat burglary, and extortion.\n\nSincelery,\nPaul')
| [
"landerspaulzero@gmail.com"
] | landerspaulzero@gmail.com |
e42b0da7b51a142ec3db9fbb310be57cd2a9913c | d411f12b4fdaa89a5f3b7bb33f9ab5dd38927840 | /hello.py | 823c44f84ea2900a7eaf3d2d433cb7628f1f92d4 | [] | no_license | JohnDS4/CM1101 | 2cbab84551f77120788591553c5d793e1755d3d6 | 4e953e5203bdb90b0e3df5a2274953556582d46a | refs/heads/master | 2020-03-31T21:35:30.953625 | 2018-10-11T12:46:48 | 2018-10-11T12:46:48 | 152,586,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | print("Hello")
print("Changes in another")
print("More changes")
print("Still more changes")
| [
"DisandoloJJ@cardiff.ac.uk"
] | DisandoloJJ@cardiff.ac.uk |
e75ffdaf41a4507709644c55e7ac2e10365b0c25 | e6b458c9962ddf4d376d240fb240340a513615f3 | /0711/특정 웹툰 제목 회차 불러오기.py | 440e08d5ad0b6df7029c8860da0a4347f4b0f088 | [] | no_license | inchangsung/Web_Crawling | 05c67b6c2ed9d083dcc634f7bb279d8fd78268f7 | d1c1a55fd8f42075800d08483ae1b7f9515a391e | refs/heads/main | 2023-06-16T22:01:07.792271 | 2021-07-11T17:32:47 | 2021-07-11T17:32:47 | 377,426,095 | 0 | 0 | null | 2021-07-11T17:19:46 | 2021-06-16T08:32:22 | Python | UTF-8 | Python | false | false | 334 | py | import requests
from bs4 import BeautifulSoup
res = requests.get("https://comic.naver.com/webtoon/list?titleId=736277&weekday=sun")
soup = BeautifulSoup(res.text,"html.parser")
webtoons = soup.find("table",attrs ={"class":"viewList"}).find_all("td",attrs = {"class":"title"})
for webtoon in webtoons:
print(webto... | [
"inchangsung@naver.com"
] | inchangsung@naver.com |
e874eb748ccd66c9efe51246c9da4bfde08897ed | 984b8a6648f2b38005bcb447fe23b1e6529a6691 | /Leet_Code/724Find Pivot Index.py | 97b0e3a72a6c185c34b030423a2367dfc77fe601 | [] | no_license | shalakatakale/Python_leetcode | c6eaff3d9e934a35bfa03238b23195c6b4b37b03 | 8c2ab2edf241b018336bd39c0fdcec91a3c594e8 | refs/heads/main | 2023-05-01T15:15:24.570869 | 2021-05-15T15:44:21 | 2021-05-15T15:44:21 | 349,558,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | # 724. Find Pivot Index
# complexity O(n)
# Space Complexity: O(1) to store leftsum
class Solution(object):
def pivotIndex(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
leftsum = 0
for i, x in enumerate(nums):
if leftsum == sum(nums) - leftsum - x... | [
"shalakatakale27@gmail.com"
] | shalakatakale27@gmail.com |
e21346c75c4066ba079d7264127a62e1cdf231d6 | 237602f537c32524dfba55db443229e0cbaf62d6 | /setup/tests.py | 28d0292a8f239c071919d6534d9d9626cd5e3dac | [] | no_license | 6abi/tdd_busca_animal | ddaba6afc568d1df3f7a95caad9898960b308daf | 38adc0423189e608c8df87303eb64bf279fb7db0 | refs/heads/master | 2023-06-09T15:52:33.078695 | 2021-07-02T03:19:32 | 2021-07-02T03:19:32 | 381,556,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | from django.test import LiveServerTestCase
from selenium import webdriver
import time
from animais.models import Animal
class AnimaisTestCase(LiveServerTestCase):
def setUp(self):
self.browser = webdriver.Chrome('E:\\tdd_busca_animal\\chromedriver.exe')
self.animal = Animal.objects.create(
... | [
"6abi.cardoso@gmail.com"
] | 6abi.cardoso@gmail.com |
0035c145c171aa5878a816b91da572d9c60413f6 | a4e06ffffadca0f924bc074b581ade682cff639f | /Form/testbox/urls.py | d4c40f882bc69be296b8bcd84bd3a10ee4cc09c2 | [] | no_license | adminq80/djangoexamples | 98ed7673190b1e7e482cc4a89bb365f5bfe98a50 | ab1d4e8221fcd238b0b3f74e1df17ce127ada72f | refs/heads/master | 2021-01-17T14:06:24.938927 | 2016-01-13T15:23:51 | 2016-01-13T15:23:51 | 49,582,042 | 0 | 0 | null | 2016-01-13T15:20:39 | 2016-01-13T15:20:38 | null | UTF-8 | Python | false | false | 143 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index,),
url(r'^test/$', views.test,),
] | [
"parki06780678@gmail.com"
] | parki06780678@gmail.com |
3e8a512ce275320132e9ff525f640ae46e265dc7 | 9ba21becafcf9b6d8908392fddd7c5bc56f81b8c | /CollapsingIntervals.py | a0d8a1c83d4dd1d58c8459c7e61db37d03d9de4b | [] | no_license | aliceliang22/Data-Structures | bb8c6ab03fa0a3c73cf695a757df1e05a95eb485 | be0bbcd558ff63ca1cd7f3c5a9947c8afc7e0f99 | refs/heads/main | 2023-06-01T08:33:55.486376 | 2021-06-29T19:19:14 | 2021-06-29T19:19:14 | 381,469,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,388 | py | # Name: Alice Liang
# EID: axl84
# Unique Section Number: 84825
# Assignment: #3
# Date: 6/19/20
# Input: tuples_list is an unsorted list of tuples denoting intervals
# Output: a list of merged tuples sorted by the lower number of the
# interval
def merge_tuples(tuples_list):
tuples_list.sort(key=lambda x... | [
"aliceliang8888@gmail.com"
] | aliceliang8888@gmail.com |
99e87bda0171e916ca08493d0d6c76e8fba36454 | 66bed0443c65f7879a09ccc797db0997618fb303 | /core/migrations/0008_comment_comment_time.py | 4fa205b0791ac2119c40cafe45d4f6b7f1423193 | [] | no_license | momentum-cohort-2019-02/w6-apile-tablescapes | bc15e7d028130bfeb2a321d45fb8846c299c80b9 | d06fe6edc42677de1a5ae6e9049cef0dbfd9644a | refs/heads/master | 2020-04-29T18:36:12.427498 | 2019-04-01T20:48:44 | 2019-04-01T20:48:44 | 176,328,918 | 0 | 0 | null | 2019-03-24T17:11:48 | 2019-03-18T16:42:09 | Python | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.1.7 on 2019-03-24 15:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_auto_20190324_1154'),
]
operations = [
migrations.AddField(
model_name='comment',
name='comment_time',
... | [
"bjgribb@gmail.com"
] | bjgribb@gmail.com |
9be8174c34a1f443330cb0de64cfd5e310f1a722 | 22c91ce11e19cc5d80074639e60a715939b0bd91 | /pyPiFiles/auth.py | cc5fc773b667d41c7d5ec37d2b084f42b1cf958e | [] | no_license | ViniciusRuiz/Gotcha | 10781caa79ad187b6836aaf3c3ae594b22e0e7e5 | 9ffbf037cca6e638eadef04661dff8f71dd22c81 | refs/heads/master | 2022-03-15T15:04:48.950229 | 2019-11-21T08:54:57 | 2019-11-21T08:54:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,324 | py | #!/usr/bin/env python
import face_recognition
import numpy
import subprocess
import glob
import time
from google.cloud import firestore
from google.cloud import storage
from PIL import Image
authorized_encodings = []
# updates local face encodings from remote images in google cloud platform bucket resource
def updat... | [
"ldm437@mst.edu"
] | ldm437@mst.edu |
6e23428edb1530ddc25330249ae15f45e1b5be4f | d33da395d3f091a1009f1dd7f8e50ca0e39d5489 | /venv/lib/python3.6/site-packages/weasyprint/tests/test_boxes.py | bed7b30e6b2e9b057ef2f1de69d6ccef99a0bb1b | [] | no_license | kid-kodi/bio-strain | cf9206d7309946e5522b682be8807629724eef65 | 94712f0549cecabee87980ad5a62f9c778a1dba1 | refs/heads/master | 2022-11-27T11:27:53.845217 | 2019-02-01T11:18:58 | 2019-02-01T11:18:58 | 167,825,680 | 0 | 0 | null | 2022-11-22T02:55:27 | 2019-01-27T15:41:52 | Python | UTF-8 | Python | false | false | 52,928 | py | # coding: utf-8
"""
weasyprint.tests.test_boxes
---------------------------
Test that the "before layout" box tree is correctly constructed.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from __future__ import division, uni... | [
"konedangui@gmail.com"
] | konedangui@gmail.com |
559d1b2d86cb1efa7b683844ed1ce138556acad7 | 623b83f99501313c3bf3f9fcd78f35d9c0c5836c | /MAIN/normalplanes.py | afa090ce7653f8c0c6d8cd13edfccfa0b6316dd0 | [] | no_license | CompVis-LV/3D-LV | 2d9ed915054885e5333d5a1aeec204071320283d | 0ec4cdc1eb4061713cdf22702dd71f03c6d65a38 | refs/heads/master | 2021-01-01T15:25:28.057745 | 2020-06-17T20:50:10 | 2020-06-17T20:50:10 | 239,329,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | import sys
sys.path.append('C:\\Users\\Jared\\Documents\ECTE458\\3D-LV\Python\\Tests')
import numpy as np
import argparse
import cv2
import signal
from createMask import create_mask
from functools import wraps
import errno
import os
import copy
def most_frequent(List):
dict = {}
count, itm = 0, ''
for i... | [
"jared.bellingham@gmail.com"
] | jared.bellingham@gmail.com |
edaad73f7db304cbbed0a72749453d01bdfe33ec | b20685cacbacf4f574e6c0d5fd90c1686e284901 | /__main__.py | 986a842d83307253e0f359a29432ec1e243d2ed9 | [] | no_license | aaronjanse/interlocking-braces | 92f29be0eefd7ea72f6f7a9698f706aada4df6f8 | a71daa0d2daf613bb1e8b850f3dbacc3edd87e42 | refs/heads/master | 2021-08-24T10:35:17.663445 | 2017-09-12T02:00:52 | 2017-09-12T02:00:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | import fileinput
from interpret import Interpreter
from callbacks import DefualtCallbacks
def preprocess_string_literals(program):
output = ''
buffer_txt = ''
in_string = False
invert = False
for char in list(program):
if char == 'i' and not in_string:
invert = True
el... | [
"aaron.janse@gmail.com"
] | aaron.janse@gmail.com |
a16e690cf4695cac7fe4065391cd02a75f3df873 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2464487_0/Python/74th/small.py | 83f5ac658df9d59b6e3e55720766377c63ef1dde | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
testcase = input()
DEBUG = False
def p(string):
if DEBUG :
print string
def p2(string1,string2):
if DEBUG :
print str(string1) + ":" + str(string2)
def ans(q,string):
print "Case #" + str(q+1) + ": " + str(string)
for q in xrange(testcase) :
line = raw_input(... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
fa195aff45a180a759d0566986c666f0905602b3 | b26a9fe238654d3fea04ebea6f2fc3898200d382 | /autoPyTorch/utils/modules.py | 36504e0f5b177f8f800d3e31dade500771eb8e78 | [
"Apache-2.0"
] | permissive | ArlindKadra/Auto-PyTorch | 1d02c088ad943e2dd42bfc492b692e1426c90655 | 6e72d5ba088981b89371f29773d243a211a4d068 | refs/heads/master | 2021-11-18T21:31:42.705180 | 2021-08-05T18:58:15 | 2021-08-05T18:58:15 | 248,235,869 | 1 | 0 | Apache-2.0 | 2020-11-13T00:03:39 | 2020-03-18T13:14:30 | Python | UTF-8 | Python | false | false | 358 | py |
import torch.nn as nn
class Reshape(nn.Module):
def __init__(self, size):
super(Reshape, self).__init__()
self.size = size
def forward(self, x):
# import logging
# l = logging.getLogger('autonet')
# l.debug(x.shape)
# l.debug((x.reshape(-1, self.size)).shape)
... | [
"marius.rks@googlemail.com"
] | marius.rks@googlemail.com |
79eace9e04cf5acc075464305933d5bd9d983ee2 | 5dd47abf7061201d9378e73e51f08fbb314ba2fd | /envdsys/envdsys/routing.py | ef1367eb35ff1bf237f5794f8d8c02faa85f8355 | [
"Unlicense"
] | permissive | NOAA-PMEL/envDataSystem | 4d264ae5209015e4faee648f37608d68a4461d0a | 4db4a3569d2329658799a3eef06ce36dd5c0597d | refs/heads/master | 2023-02-23T22:33:14.334737 | 2021-07-22T01:09:16 | 2021-07-22T01:09:16 | 191,809,007 | 1 | 0 | Unlicense | 2023-02-08T00:45:54 | 2019-06-13T17:50:03 | Python | UTF-8 | Python | false | false | 447 | py | # envdsys/routing.py
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
import envdaq.routing
# import envnet.routing
application = ProtocolTypeRouter(
{
# (http->django views is added by default)
"websocket": AuthMiddlewareStack(
UR... | [
"derek.coffman@noaa.gov"
] | derek.coffman@noaa.gov |
73f83ae285b913d794a31a92ba1cdd3cf5063e4b | 972be801215790ba193804d2eca0fee95f67ca34 | /codechef/beginner/solved/FRK.py | 219087195478f38219ce6e95ba5d50c8e5f2b427 | [] | no_license | rikithreddy/codeinpy | 6f4a998e707a83349a19ed4e014eebcafbe4f6d0 | 4ec9668dd15d9ab501e7fd43946474638ac64cd0 | refs/heads/master | 2021-06-29T22:41:25.249869 | 2020-10-01T11:18:56 | 2020-10-01T11:18:56 | 164,993,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | n = int(input())
subs = ['ch','he','ef', 'che' , 'hef', 'chef']
count = 0
for _ in range(n):
name = input().strip()
for x in subs:
if x in name:
count+=1
break
print(count)
| [
"rikith.legend@gmail.com"
] | rikith.legend@gmail.com |
6c64ea02c75bb92916378d0cda343e8105d77116 | ffe569cdf01cf0a85f01dc810418c9b43cf3bc2c | /pyrl/agents/uct.py | 85b25fa2ff70dd87ccce0d006e2a017cc154e4bb | [] | no_license | strin/curriculum-deep-RL | 46dad178af7dd875961fc6b7738054c4e0e8f09d | b4ca89e4cb37c77c8ecb8428f64b7c1fe7436e8f | refs/heads/master | 2020-04-04T15:54:07.919881 | 2016-05-18T09:36:20 | 2016-05-18T09:36:20 | 43,320,487 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | # upper-confidence table for the agent to measure uncertainty.
import dill as pickle
from pyrl.agents.agent import StateTable
class UCT(object):
def __init__(self):
self.state_table = StateTable()
def visit(self, state, action):
curr_action_counts = self.state_table[state]
if not curr... | [
"tianlins@stanford.edu"
] | tianlins@stanford.edu |
5aaed2a6ad865e0b79721558178467921183db45 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_179/ch79_2020_04_06_14_35_13_363818.py | ef752554d1d2ac997c9c02e2ec540329c84c45e5 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def monta_dicionario (l1, l2):
dicionario = {}
dicionario.append(l1[0]) = l1[1]
dicionario.append(l2[0]) = l2[1]
return dicionario | [
"you@example.com"
] | you@example.com |
ca2f3757aa406e821a20d55b6fddb629179c8d43 | 6909de83dd90ee1169d6c453c327ab2ce2687485 | /lab13/tests/split-at.py | 2929639eb68ca1204f2ffb7d0ac4c356a2c97a4d | [] | no_license | dantefung/cs61a-2021-summer | 730cb0b9ab7327c32c619779d71882531bf328dd | 4f22f20fcfddfb5bf121081919310413209da1b2 | refs/heads/master | 2023-08-19T14:51:27.380738 | 2021-11-01T06:54:33 | 2021-11-01T06:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | test = {
"name": "split-at",
"points": 1,
"suites": [
{
"cases": [
{
"code": r"""
scm> (car (split-at '(1 2 3 4 5) 3))
(1 2 3)
""",
"hidden": False,
"locked": False,
... | [
"wuyudi1109@gmail.com"
] | wuyudi1109@gmail.com |
c84e6668ba81af4bbb0bf2f25af89817f6da2860 | 5a711a4a49f94ae1497a723e29c981facf1d5f37 | /app/sports/infrastructure/filters.py | a5d210155279f673773341e42550f869c20f57a4 | [
"MIT"
] | permissive | fabien-roy/glo-2005-sportsapp | 2509583fb47bce9cff1e211cb1ed7adebaf3fdd0 | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | refs/heads/master | 2023-04-09T07:30:31.512069 | 2020-05-10T23:21:42 | 2020-05-10T23:21:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from app.interfaces.infrastructure.filters import MySQLFilter
from app.sports.infrastructure.tables import MySQLSportTable as Sports
from app.climates.infrastructure.tables import MySQLSportClimateTable as SportClimates
class MySQLSportFilter(MySQLFilter):
joined_climate_name_col = f'C.{SportClimates.climate_name... | [
"fabienroy28@gmail.com"
] | fabienroy28@gmail.com |
97d10861d9c57da92fc26b537518c04b36805480 | f8815db141c9ea8ab8a101afd1a68d535f1ffa43 | /pruevas.py | 2a2d0964f900df9490d91b68e8f08ac835ae15cb | [] | no_license | yochairo/modelado | 5f5be83981404a0ee006fb4b88a645c8225a3b2e | c97ddc3131635dc19100977f399c08b7e426b097 | refs/heads/master | 2023-03-18T06:55:04.165370 | 2021-02-17T15:19:32 | 2021-02-17T15:19:32 | 339,763,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | import pandas as pd
import math
import numpy as nps
def promediarLista(lista):
sum=0.0
for i in range(0,len(lista)):
sum=sum+lista[i][0]
return sum/len(lista)
def varianza(lista):
sum=0.0
for i in range(0,len(lista)):
sum=sum+math.pow((lista[i][0]-promediarLista(lista)),2)
re... | [
"joromabe@gmail.com"
] | joromabe@gmail.com |
8ffd6ec6c4ae62555678ce24a1a4f2d7dc9411b4 | daebe1587552153c62e695c74e154d44bb58fcc1 | /tester.py | 4272b7aab0de5df57f8d0689b9bfd356b423cfa0 | [
"MIT"
] | permissive | alex-stoica/Pytorch-Lite | 91e70625c853c6cfe8495fa72bbee3a08669f3cb | 6b01db8ad84551c27aa3a6da4d21f248ccbc9177 | refs/heads/master | 2020-08-28T22:58:03.900293 | 2019-10-27T13:13:08 | 2019-10-27T13:13:08 | 217,845,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | import torch
from constants import DEVICE
def test_net(net, loader):
correct_top1 = 0
correct_top5 = 0
total = 0
count = 0
net.to(DEVICE)
with torch.no_grad():
for data in loader:
count += 1
if count % 200 == 0:
print(count)
images, ... | [
"alexstoica@protonmail.com"
] | alexstoica@protonmail.com |
3520c59125e6523da53d8478bd964f8bb9ee9f2c | fa879c8c017d92b547e19271cb69e6bcffc59bbf | /meditate/meditate/settings.py | cabfb9bd29b490c6f12c6946b2d6fc5f0c112303 | [] | no_license | Aikay-Egwu/meditations | 17ebad9b6e46e83cf5e47c22c3e952f4a6830078 | e7862319bf73111d406d51cf60ca9f97492d44f8 | refs/heads/main | 2023-05-11T19:48:38.602086 | 2021-05-27T15:38:35 | 2021-05-27T15:38:35 | 371,404,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,351 | py | """
Django settings for meditate project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"justaikay@gmail.com"
] | justaikay@gmail.com |
773065f0d792a996af9e859c9a0e4d69c37bef2f | 3d231adc44731f778f4798bb7760152c6ef7a7e1 | /questions of day3/Q5.py | 07c67a92c2111af2ec297baf69209c2094e68dd0 | [] | no_license | uniqstha/PYTHON | 1b6a426f95daaf6c41114f8604f9d79d6c62a420 | 2925bd407e6cb880fdb57c9ed0f7dbe496c99ece | refs/heads/master | 2023-06-11T16:16:28.902772 | 2021-07-13T02:25:47 | 2021-07-13T02:25:47 | 375,231,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | #Write a program to convert second into hour, minute & second.
sec = int(input('Enter seconds: '))
hr = sec // 3600
sec %= 3600
min = sec // 60
sec %= 60
sec = sec % (24 * 3600)
print(f'{hr} hours and {min} minutes and {sec} seconds')
| [
"unique2059@gmail.com"
] | unique2059@gmail.com |
75a3db85d2dcef4ce1abfedee8643d4b8582acc2 | 3bfe2c44c4803ca3a0ed867c133a40a7e4cecec6 | /test_items.py | 040ac9310317a8e411a364d73956dca53184773d | [] | no_license | senyprim/StepicTestProject | 78ea868ceedb07c9e9ec95702b98d6a52f31d003 | 39234b7c24101d6414a3d54001da24a3c059a839 | refs/heads/master | 2023-04-04T22:11:28.541348 | 2019-07-22T13:45:19 | 2019-07-22T13:45:19 | 198,141,279 | 0 | 0 | null | 2021-04-20T18:22:14 | 2019-07-22T03:36:53 | Python | UTF-8 | Python | false | false | 801 | py | import pytest
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium import webdriver
def test_exist_btn_add_to_basket(browser):
lang=browser.execute_script("return na... | [
"noreply@github.com"
] | senyprim.noreply@github.com |
c1e0f96342e5e39589ee52a167ae417bfa98b811 | 92eec9d251e24f48fa42160e5061c5fb3120fdbb | /ipython1/trunk/ipython1/external/twisted/web2/dav/method/__init__.py | e560fda343c3c39cfaf4266c3a9febd5d54f354d | [] | no_license | minrk/ipython-svn-archive | 55dde54f52284c5c3b32ac2a12bb4734e5f8e7f8 | 9b32089282c94c706d819333a3a2388179e99e86 | refs/heads/master | 2022-12-24T19:50:01.359278 | 2020-09-25T09:34:04 | 2020-09-25T09:34:04 | 298,268,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | ##
# Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy... | [
"ellisonbg@gmail.com"
] | ellisonbg@gmail.com |
e8702e4273d04c4646dc09c87821bcdc74eeea3b | 8aa0d1d407bb1c66d01261f7e2c4e9832e856a2d | /experiments/experiments_toy/sparsity/nmf_gibbs.py | 191ea3d17786029565da075ad28ceb22a9412f92 | [] | no_license | garedaba/BNMTF_ARD | 59e3ec1dbfd2a9ab9f4ec61368ec06e3783c3ee4 | 0a89e4b4971ff66c25010bd53ee2622aeaf69ae9 | refs/heads/master | 2022-01-16T06:57:12.581285 | 2018-06-10T10:22:12 | 2018-06-10T10:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,862 | py | '''
Test the performance of Gibbs sampling for recovering a toy dataset, where we
vary the fraction of entries that are missing.
We repeat this 10 times per fraction and average that.
'''
import sys, os
project_location = os.path.dirname(__file__)+"/../../../../"
sys.path.append(project_location)
from BNMTF_ARD.code... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
a376732a001593189577b5db902da9b29d46dc53 | d9565c31dbb091e4379c9f6ce5feaec3ea711516 | /main.py | d3b1958817656a13980b7bd35ce4aed5c6146930 | [] | no_license | jfish10/quote-scraper | 3bbfd0e2a2c9242c54124f66554f684fa903d622 | 63da47575f875bf9694769384373a0054ced1f1f | refs/heads/master | 2023-02-21T21:18:51.130858 | 2021-01-04T23:57:28 | 2021-01-04T23:57:28 | 326,830,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | from bs4 import BeautifulSoup
import requests
import csv
import additional_quotes
result = requests.get('http://quotes.toscrape.com/')
page = result.text
soup = BeautifulSoup(page, 'html.parser')
quotes = soup.find_all('div', class_='quote')
scraped = []
for quote in quotes:
text = quote.find('span', class_='t... | [
"everestmf8@gmail.com"
] | everestmf8@gmail.com |
c5004198e13ad75f7282c8c2a9a8fbd200d6eef4 | df1abc2cf262e830994fc985172f748e8226e562 | /processor.py | 4c44dcf7136ff159f7ebe3e75bfdd5f20323e043 | [] | no_license | etu7912a48/paperwork | 092fbb1ca6955516b00ea87905d47746410da2b7 | de0cdfb4043d085e6ad2d2a634688f6f8a259d6e | refs/heads/master | 2023-09-04T16:59:24.949501 | 2021-11-22T04:39:08 | 2021-11-22T04:39:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,829 | py | import fitz
import cv2
import numpy as np
import easyocr
import re
import logging
#mod logger
m_logger = logging.getLogger('paperwork.processor')
#class of the main processor
class Processor():
def __init__(self, data_type, *args, **kwargs) -> None:
self.logger = logging.getLogger('paperwork.processor.P... | [
"noreply@github.com"
] | etu7912a48.noreply@github.com |
237ff58e8e70b4779aeaf9f549eed85c60a17b8c | 922127ab8352f4270ee08303f5b396a5509cf36e | /external/AR/pytracking/features/util.py | 6f546b6f79abfbae49af01232b780a8856118f9e | [
"MIT"
] | permissive | Omri-L/Stark | 6eff8711ce6a53cb9c5f44160bc52aed35084eaf | f1f29c087a5d9c3b311f915349e4a880638b0aa2 | refs/heads/main | 2023-04-21T00:11:48.696501 | 2021-05-04T13:14:13 | 2021-05-04T13:14:13 | 373,739,719 | 1 | 0 | MIT | 2021-06-04T06:14:38 | 2021-06-04T06:14:37 | null | UTF-8 | Python | false | false | 990 | py | import torch
from pytracking.features.featurebase import FeatureBase
class Concatenate(FeatureBase):
"""A feature that concatenates other features.
args:
features: List of features to concatenate.
"""
def __init__(self, features, pool_stride = None, normalize_power = None, use_for_color = True... | [
"yan_bin@mail.dlut.edu.cn"
] | yan_bin@mail.dlut.edu.cn |
b89a3fc12ce46f175c9da53e5533e5edb63bd3a4 | 442637ed688f4add41bd97660e795615ae86b69d | /setup.py | c6965f5d0f8cd81f4b10ced511595ac72e12da96 | [
"MIT"
] | permissive | ElsevierSoftwareX/SOFTX_2020_220 | 2a740cfc8adbc07bcc7db57b27eb1c3eb1729164 | ec26946f494406f22a220fd4975e045c13ee41a3 | refs/heads/master | 2023-02-06T04:14:56.274690 | 2020-12-30T14:30:15 | 2020-12-30T14:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="vcd",
version="4.3.0",
author="Marcos Nieto",
author_email="mnieto@vicomtech.org",
description="Video Content Description (VCD) library",
long_description=long_description,
long_de... | [
"marcos.nieto.doncel@gmail.com"
] | marcos.nieto.doncel@gmail.com |
58fe279d70367b1aa69c6d3f868d1e30d72871df | 24a9ca4a9c7b2f36f20cc2dac1a4017cb5b49ceb | /Real-ChemTS/ChemTS/mcts_node.py | 21b50438c3d64d478c3120b0efd96712d789d541 | [
"MIT"
] | permissive | jinzhezhang/erbb1_project | 0cc6cef23515151a5c9949364102b359600ad9b9 | 047969d47719821526bf6b81230c43341bf476cf | refs/heads/main | 2023-07-09T15:42:10.560628 | 2021-08-18T02:13:14 | 2021-08-18T02:13:14 | 396,380,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,357 | py | import numpy as np
from keras.preprocessing import sequence
from rdkit import Chem
from rdkit.Chem import Descriptors
from rdkit.Chem import MolFromSmiles
import sascorer
import networkx as nx
from rdkit.Chem import rdmolops
import sys
sys.path.append('../..')
from gnn.main.predict import predict_vec
import gnn.main.co... | [
"jinzhe.zhang01@gmail.com"
] | jinzhe.zhang01@gmail.com |
cc94a07b64fa9f7baf4cd0f66827740d8bb7a35d | 1ac2511b35cfcc3275f788a708d25623ac0f1759 | /sobol_sequence_generator.py | 3f324b3825626f2b71699200e29f52e4f3c4e8f5 | [] | no_license | QuantumElephant/manifold | 44c6050b641bd0f1328be53bc7d94a875ade3481 | a1cfd90dd49e9d30dded33aef084de63bc48e3fb | refs/heads/master | 2021-07-01T14:59:38.447500 | 2017-09-21T03:24:30 | 2017-09-21T03:24:30 | 103,166,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 17 08:37:52 2017
@author: SKY
"""
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 17 00:57:48 2017
@author: SKY
"""
import numpy as np
import sobol_sequence as sobol_seq
from scipy.spatial.distance import cdist
def generator(atom_number, molecule_number):
total=sobo... | [
"shikunyu8@163.com"
] | shikunyu8@163.com |
67952539816dfe0ff6680c594523e28d0b430f60 | 73c587d98cfb62a8c074844e9fea92018b8bf81a | /main.py | 2d45324cd5d3675b2d536edd94768ad2d9fc78e6 | [] | no_license | JDavid17/fuzzyproject | d76dd12ef27794d20872c3a765561770cd5f577e | 4715212a9d7f2f93eaf356ef55d760f549d8826e | refs/heads/master | 2020-05-24T05:00:22.721997 | 2019-05-18T02:59:47 | 2019-05-18T02:59:47 | 187,102,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,054 | py | from src.database import *
from src.defuzzification import Defuzzification
from src.aggregation import AggregationMethods
from src.aggregation import *
from src.utilis import category_selector as cs
from src.utilis import price_selector as pc
import sys
import matplotlib.pyplot as pypol
rules = [
"micro_regular &... | [
"jdavidhc1710@gmail.com"
] | jdavidhc1710@gmail.com |
0aec6aa36174cd2ae7b17de6075d450a280d9e65 | 16bbc9a76dbf6960456e170110ac5e34fd7eb084 | /cms/settings.py | 3bbe3de3144f4a9c7b036ef9f223f56f6a458070 | [] | no_license | zidianqs/changeju-cms | 0faa1d83b3060594bccd1c94c08bc028469d1fa0 | 024d70c4205cd53d7290e8fd908ae14c75db16c8 | refs/heads/master | 2020-04-15T10:57:07.011944 | 2014-08-13T04:18:36 | 2014-08-13T04:18:36 | 20,514,709 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | """
Django settings for cms project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import... | [
"yanhaoliang2007@gmail.com"
] | yanhaoliang2007@gmail.com |
144de343f3f9ab62a51a16f1c5c0a0f3d77f4b99 | c6c5c6554e31b0c5967ea66d4c01644bc5703a2b | /Approach2/splitcrimes.py | 970ee04035b3d81bb8a6b9077b041ef668c235cc | [] | no_license | viswajithiii/analyze-this | 7dc0eb2e4564e26a752a7878290402a381c965de | cf54e55a4ae90e430d751840d8499752c1be1cc9 | refs/heads/master | 2021-01-18T05:04:34.747546 | 2014-08-21T10:30:08 | 2014-08-21T10:30:08 | 23,017,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | import numpy as np
traindatafile = open('Training_Dataset_clued.csv','r')
c1file = open('TrD1.csv','w')
c2file = open('TrD2.csv','w')
crimeone = 0
crimetwo = 0
firstlineseen = False
for line in traindatafile:
if not firstlineseen:
firstlineseen = True
continue
splitline = line.split(',')
c... | [
"viswajithiii@gmail.com"
] | viswajithiii@gmail.com |
81fe82e780e762a54cf533855f00114ad3ef1997 | 5c5b34f6f598a43ddfbd473228737a27c26d1d8e | /剑指offer/面试题63. 股票的最大利润.py | c935a25747fbda4516f2627db965bc1ae5f9d1ce | [] | no_license | lovehhf/LeetCode | 34a1bc140b10dc83a32ef9a70f9c73176948a9c4 | 5d3574ccd282d0146c83c286ae28d8baaabd4910 | refs/heads/master | 2021-11-04T04:52:34.518621 | 2021-10-26T15:34:47 | 2021-10-26T15:34:47 | 173,673,492 | 0 | 0 | null | 2020-03-03T14:54:09 | 2019-03-04T04:26:15 | Python | UTF-8 | Python | false | false | 1,307 | py | # -*- coding:utf-8 -*-
"""
假设把某股票的价格按照时间先后顺序存储在数组中,请问买卖该股票一次可能获得的最大利润是多少?
示例 1:
输入: [7,1,5,3,6,4]
输出: 5
解释: 在第 2 天(股票价格 = 1)的时候买入,在第 5 天(股票价格 = 6)的时候卖出,最大利润 = 6-1 = 5 。
注意利润不能是 7-1 = 6, 因为卖出价格需要大于买入价格。
示例 2:
输入: [7,6,4,3,1]
输出: 0
解释: 在这种情况下, 没有交易完成, 所以最大利润为 0。
限制:
0 <= 数组长度 <= 20000
注意:本题与主站 121 题相同:https://l... | [
"853885165@qq.com"
] | 853885165@qq.com |
f17fb73b0910108296139cb944d9b687cf6d8558 | c0f4104194a7989e44d7f0161b2425c5a5bc3a98 | /barbican/model/repositories.py | ed44d73acf0784126efcef49bc68b8b13c9a73f5 | [] | no_license | bopopescu/Openstack-2 | f65470bdd0ee4736c45b6f869f0453cb8eb446c8 | 6f06133562e3dfd490695a92c9ddf1a322675104 | refs/heads/master | 2022-11-28T09:19:21.633850 | 2016-06-23T07:55:32 | 2016-06-23T07:55:32 | 282,095,817 | 0 | 0 | null | 2020-07-24T01:44:49 | 2020-07-24T01:44:48 | null | UTF-8 | Python | false | false | 81,929 | py | # Copyright (c) 2013-2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | [
"egonmin@CN00119199"
] | egonmin@CN00119199 |
46a316c5f2c6b406cdc0d01b4f096d3adeda6ad9 | 7bd4a14d77aca4a8872a9dbfc67b1e95be0ec2f0 | /gallery/settings.py | 4c216d7323d620b302f784a2454ecb96829f41b5 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nancy88199488/photo-gallery | f147bc17ed723206cc53f1cc007df01266ab415a | acb75015060e18311e46e41d4b9ae41a3ded18d2 | refs/heads/master | 2023-06-12T18:13:02.813950 | 2021-07-06T10:16:49 | 2021-07-06T10:16:49 | 382,945,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | """
Django settings for gallery project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
fr... | [
"nancy.moranga@student.moringaschool.com"
] | nancy.moranga@student.moringaschool.com |
28df0510b9052ed52efa691425708812be268066 | 9f8ca3212ff75897a89d7629cb3ccd34fc6fd6bf | /django_app/manage.py | 4dc22bad3b81b71ca0ceca8530c439d49299a6cc | [] | no_license | frbgd/AskFrbgd | 1f6b519d9131227422b1669683c9cbec31f0c44b | 491ed26dbac5c894bca3d30fe7f76bcb3e216669 | refs/heads/master | 2023-06-03T07:09:36.328249 | 2021-06-22T15:59:17 | 2021-06-22T15:59:17 | 359,468,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | 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', 'Ask_Frbgd.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"kap17597@gmail.com"
] | kap17597@gmail.com |
40e22450f0ea4f3fc6109626969542b02a4fdf17 | bdd43e7a563a281692cc869f07fc6686205e3b6b | /Simple Map viewer/bin/Debug/ArcGISRuntime10.2.7/LocalServer64/ArcToolbox/Scripts/CreateFeaturesFromTextFile.py | e754e6813809b6127f6ac75fec0e86385c0e3493 | [] | no_license | sangl003/Simple-Map-viewer | 5d315190ba5d80c27e5dcf9f4de54cca6076789e | 5af7a78d5563f749179a98799d01564ae1eaf48c | refs/heads/master | 2021-01-13T15:10:58.394042 | 2016-12-13T17:46:40 | 2016-12-13T17:46:40 | 76,205,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,107 | py | '''----------------------------------------------------------------------------------
Tool Name: CreateFeaturesFromTextFile
Source Name: CreateFeaturesFromTextFile.py
Version: ArcGIS 9.1
Author: Environmental Systems Research Institute Inc.
Required Argumuments: An Input Text File containing fe... | [
"sangl003@umn.edu"
] | sangl003@umn.edu |
59d05ec2e9f2d8d72c372a356a622ed059d63ef6 | 6181fcd4a266d963a0ee85971768c97922ca77cd | /src/garage/tf/embeddings/encoder.py | 4a533d386313e0c5ff2a22ef5ffd4f34132b7b4e | [
"MIT"
] | permissive | rlworkgroup/garage | 5d215bbecb3a4e74b504988d6684a7b04df69a80 | 2d594803636e341660cab0e81343abbe9a325353 | refs/heads/master | 2023-08-21T22:58:49.338034 | 2023-01-04T06:06:27 | 2023-01-04T06:06:27 | 136,846,372 | 1,832 | 363 | MIT | 2023-09-11T11:36:40 | 2018-06-10T21:31:23 | Python | UTF-8 | Python | false | false | 2,401 | py | """Encoders in TensorFlow."""
# pylint: disable=abstract-method
from garage.np.embeddings import Encoder as BaseEncoder
from garage.np.embeddings import StochasticEncoder as BaseStochasticEncoder
from garage.tf.models import Module, StochasticModule
class Encoder(BaseEncoder, Module):
"""Base class for encoders i... | [
"noreply@github.com"
] | rlworkgroup.noreply@github.com |
86839270f23d98319f47902673cdb538855f4d9c | c46fb8015fb59c1c51f2f439643d8f0e6fb1d3e7 | /libangp2p/settings_local.py | 3b9c634fd65a59253dcce8f4cabbaf9057ee8aa5 | [] | no_license | daxiaoluo/LiBangP2P | 51b364cf96cb0d58d07ce3f292647ae642f9d6c4 | e474a9d8aba5b3c4ff950be7c1cf139d75f0fea1 | refs/heads/master | 2016-09-05T14:54:40.981722 | 2015-01-05T09:12:01 | 2015-01-05T09:12:01 | 28,805,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,630 | py | # Django settings for libangp2p project.
# coding=utf8
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
ADMINS = (
('yirenjun', 'yirenjun@gmail.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | [
"taoluo@yahoo-inc.com"
] | taoluo@yahoo-inc.com |
cef64f6409c5dc09a99e25ec6e38910be4bcc2a8 | 3276853a9cf821925e8cf09d8c9242852cd53e82 | /revolv/project/migrations/0043_auto_20150504_0137.py | be889e1db6fc0bc3e58e7871b389afe4eb36e014 | [] | no_license | RE-volv/revolv | 6b1d2672c428e9ee88dd6da5a5b23c908f0a0870 | 88172f5fa829a187ceb94d1d160cc1405ce0ab2e | refs/heads/master | 2022-12-07T02:42:12.614770 | 2021-04-29T01:30:01 | 2021-04-29T01:30:01 | 52,948,154 | 4 | 15 | null | 2022-11-22T00:43:30 | 2016-03-02T08:52:23 | CSS | UTF-8 | Python | false | false | 401 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('project', '0042_auto_20150503_2140'),
]
operations = [
migrations.AlterField(
model_name='donationlevel',
... | [
"sameera.vemulapalli@berkeley.edu"
] | sameera.vemulapalli@berkeley.edu |
fbb662e15e48e52bc6bfc3b63d44116d112939a0 | f7816d48a57b4497b4631bf3d0932eee8c4af656 | /defa/wsgi.py | e03a0e3ccee384ca07c95b1a421924b578f7f192 | [] | no_license | ThiagoDiasV/defa-stock-management | a38af15d8b9f99e00d9b3d3dfde3f29adb5408d7 | 81167f80c2d57f9668612381a0fa43f4acd16bc0 | refs/heads/master | 2021-09-27T17:27:39.785567 | 2020-04-08T19:59:34 | 2020-04-08T19:59:34 | 244,090,455 | 0 | 0 | null | 2021-06-10T18:43:24 | 2020-03-01T05:06:13 | Python | UTF-8 | Python | false | false | 385 | py | """
WSGI config for defa project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS... | [
"thiago76ers@gmail.com"
] | thiago76ers@gmail.com |
6c52fcc117baf730bc43b87d478345168749bb0f | 88dd2d9233aede5f186a1f3608187bf6756b2349 | /omc3/plotting/plot_bbq.py | 41d9b369edea66da9ef427c33b651da242558621 | [
"MIT"
] | permissive | pylhc/omc3 | d6462e3a7c4d8cffca20a9f9d2de7e37c0f4dcf9 | f8180791c20c27dbe3f717c0681f379cd13d03cc | refs/heads/master | 2023-09-01T08:07:29.940932 | 2023-08-29T09:19:41 | 2023-08-29T09:19:41 | 145,120,244 | 13 | 5 | MIT | 2023-09-13T20:23:25 | 2018-08-17T12:53:09 | Python | UTF-8 | Python | false | false | 8,996 | py | """
Plot BBQ
--------
Provides the plotting function for the extracted and cleaned BBQ data from timber.
**Arguments:**
*--Required--*
- **input**:
BBQ data as data frame or tfs file.
*--Optional--*
- **interval** *(float)*:
x_axis interval that was used in calculations.
- **kick**:
Kick file as... | [
"noreply@github.com"
] | pylhc.noreply@github.com |
bc658a36302464007ad33ec47d4af1d28b852f3e | 120d82e5becce975ab95c3ca26b9cd2cf816faca | /9/9_political.py | 19189180966f2500802503bed444b89bcfade82b | [] | no_license | BruceMJ128/Python_Code-Python_for_data_analysis | c0ed37936951eebd7c0f5e17371fe8ab8e6d721b | 82d7390e5b37089188cf0333625886aaa1c883e5 | refs/heads/master | 2021-01-19T04:46:06.318007 | 2017-04-06T06:34:42 | 2017-04-06T06:34:42 | 87,394,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,016 | py | # -*- coding: utf-8 -*-
from __future__ import division
from numpy.random import randn
import numpy as np
import os
import matplotlib.pyplot as plt
np.random.seed(12345)
plt.rc('figure', figsize=(10, 6))
from pandas import Series, DataFrame
import pandas as pd
np.set_printoptions(precision=4)
fec = pd.read_csv('data/c... | [
"bruce.mj128@hotmail.com"
] | bruce.mj128@hotmail.com |
8562078511a2b98b35c0153092baecf64619a2b1 | 1442b1785a71794801b2e09febc5ce220a4562f1 | /HT_6/task_7_8.py | f9bf7d0752072428d5ad0780f7a542fc94b38dab | [] | no_license | yarik335/GeekPy | 64acfc91502601d02525be9fb03ba527a15e3450 | e8806d56f2a458c4548113170191bc3b017754d3 | refs/heads/master | 2021-05-15T19:27:07.822718 | 2018-01-24T13:55:01 | 2018-01-24T13:55:01 | 107,698,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | """7Напишіть програму, де клас «геометричні фігури» (figure) містить властивість color з початковим значенням white і метод для
зміни кольору фігури, а його підкласи «овал» (oval) і «квадрат» (square) містять методи __init__ для завдання початкових
розмірів об'єктів при їх створенні.
8Видозмініть програму так, щоб мето... | [
"yarik3351@gmail.com"
] | yarik3351@gmail.com |
b15c4909e4ebcee994aad2f27a4f718e33b226bd | c2c212ba42ebfa35f3b6122344978bc94ec8fa67 | /recipe_scrapers/primaledgehealth.py | 5a1487eff3700876a66e6921811d7de3f7c7ca93 | [
"MIT"
] | permissive | hhursev/recipe-scrapers | 0cd6b7db4ef23ca825f2354f5d1ba76076a14813 | 8ced0227b3b16c532fc5ebf3060c99ee0452adab | refs/heads/main | 2023-09-03T07:33:29.684121 | 2023-09-01T21:15:50 | 2023-09-01T21:15:50 | 42,446,168 | 1,276 | 443 | MIT | 2023-09-14T16:34:09 | 2015-09-14T12:05:00 | Python | UTF-8 | Python | false | false | 633 | py | # mypy: disallow_untyped_defs=False
from ._abstract import AbstractScraper
class PrimalEdgeHealth(AbstractScraper):
@classmethod
def host(cls):
return "primaledgehealth.com"
def title(self):
return self.schema.title()
def total_time(self):
return self.schema.total_time()
... | [
"noreply@github.com"
] | hhursev.noreply@github.com |
1658da8e0382e70539d831eed17bf286d77ea1d0 | 7b41e7883e210724ccc0e08ac0c213643e5cf0bd | /Week_02/589-N叉树的前序遍历.py | 69e93f12890964d45c4e53cc718b875d35535fe5 | [] | no_license | lieagle/AlgorithmQIUZHAO | 101fe17c5cc26aafc2a576844f903e8d36a649d3 | ef83d285b10676d203b5d21b39d2dffbf5ef72c9 | refs/heads/master | 2022-12-04T06:23:27.253569 | 2020-08-28T12:14:45 | 2020-08-28T12:14:45 | 280,793,853 | 0 | 0 | null | 2020-07-19T04:50:05 | 2020-07-19T04:50:04 | null | UTF-8 | Python | false | false | 974 | py | #Leetcode 589
#解法一,递归,先根节点放数组里,再孩子节点
"""
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
class Solution:
def preorder(self, root: 'Node') -> List[int]:
if not root: return None
output = []
def... | [
"3188279500@qq.com"
] | 3188279500@qq.com |
d35c922b47e0acae3cbeebc7a6215fc96412eaaf | 94ec56a9c81085e04f15382a6d3ba0e8944fe589 | /chapter1/ex30.py | 4d4f55bac6031013cc17ff27eefd14eac24d56d1 | [] | no_license | indraputra147/pythonworkbook | 39ccd4bb6b8ee24debed13938c88f119819603b0 | af2ed0879234085ef3e2b6fc747f84dee703bc97 | refs/heads/master | 2022-08-28T18:31:46.151942 | 2020-05-25T12:04:06 | 2020-05-25T12:04:06 | 262,615,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #Exercise 30: Celcius to Fahrenheit and Kelvin
"""
The program reads a temperature from the user in degrees Celsius
then display the equivalent temperature in degrees Fahrenheit and Kelvin
"""
c = float(input("Input the temperaure in degrees Celsius: "))
f = (9 * c /5) + 32
k = c + 273.15
print("Output:")
print("%.2... | [
"indraputra785@gmail.com"
] | indraputra785@gmail.com |
bb14e9fd5cda6909de23c7649af9f9b51cdf3c25 | 025bd10bcc4e03edfc14c8b336c0bf370ffeba64 | /napalm_logs/transport/zeromq.py | eacb29054ecfb9da0087548620927b60cfe436a7 | [
"Apache-2.0"
] | permissive | lspgn/napalm-logs | 3c514df1302aa28519fdde03207dd00a4418133c | c626f809b228cde3053ed972a58ac671871d8856 | refs/heads/master | 2021-01-20T07:37:43.022881 | 2017-04-26T10:37:58 | 2017-04-26T10:37:58 | 90,020,543 | 0 | 0 | null | 2017-05-02T10:25:45 | 2017-05-02T10:25:45 | null | UTF-8 | Python | false | false | 1,153 | py | # -*- coding: utf-8 -*-
'''
ZeroMQ transport for napalm-logs.
'''
from __future__ import absolute_import
from __future__ import unicode_literals
# Import stdlib
import json
import logging
# Import third party libs
import zmq
# Import napalm-logs pkgs
from napalm_logs.exceptions import BindException
from napalm_logs.... | [
"mirucha@cloudflare.com"
] | mirucha@cloudflare.com |
86db8f9199e6b954fe085d7e65ecfdefad8f17d5 | 39e03684081b27311385a0ab31afcc2e09883e5c | /mmdet/core/mask/__init__.py | d9132f8a58bd469e13b7a8957152d8d7fd2cc2ca | [
"MIT",
"Python-2.0"
] | permissive | witnessai/MMSceneGraph | 8d0b2011a946ddcced95fbe15445b7f4da818509 | bc5e0f3385205404c712ae9f702a61a3191da0a1 | refs/heads/master | 2023-08-12T06:54:00.551237 | 2021-10-12T03:04:21 | 2021-10-12T03:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from .mask_target import mask_target
from .utils import split_combined_polys
from .dense_reppoints_target import dense_reppoints_target
__all__ = ['split_combined_polys', 'mask_target', 'dense_reppoints_target']
| [
"23736866+Kenneth-Wong@users.noreply.github.com"
] | 23736866+Kenneth-Wong@users.noreply.github.com |
14bb902d96d1f49a37653760a597039fff4959e9 | 2c32193626ade72c798a60442ffea299724b82ee | /network/migrations/0002_auto_20200807_1856.py | f9d3b61a442cb9fb154ec7b31e908e3b778e0c2a | [] | no_license | Swetha-14/opinion-mining | fa249a56d953c136b778711864aceb1507843f0d | 98bbfa4fefb343454668f2775a4e2756e94477a4 | refs/heads/master | 2023-07-15T00:45:03.443896 | 2021-08-17T12:22:02 | 2021-08-17T12:22:02 | 388,768,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | # Generated by Django 3.0.8 on 2020-08-07 13:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('network', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"swethasukumar14@gmail.com"
] | swethasukumar14@gmail.com |
dc1e1d4c9c170ce0ef968217095a822c1d65bf67 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/atbash-cipher/0fa3dc50f1d6432491b42aa5d63e891b.py | 731850a15eca31ce3c3a1acf949ebc37d5a2cdbe | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 1,398 | py | #!/usr/bin/env python
from re import sub
def encode(text):
return _chunk([_cipher(i) for i in _clean(text)])
def decode(text):
return "".join([_cipher(i) for i in _clean(text)])
# non-public methods
def _clean(text):
"""Takes some text and returns a lowercase/alphnumeric spaceless string.
"""
ret... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
aa79fc4667a859ff73b7efe67caaf9c269dc8d56 | e5d5e331b1d124f57da2d93db94f3da6cc7640bc | /hw1/hw_1.py | 8059f864b017aeedd28bbe679da391430406bbea | [] | no_license | Krishna-Sankar/Natural-Language-Processing-585-UMASS-Fall-2017 | 806f91055878161373ae8cd49192d9940b290e47 | 19ad1e708c7d6b0522a87b4340bd8c681f12f4d7 | refs/heads/master | 2020-03-27T09:53:18.456040 | 2017-12-26T22:22:07 | 2017-12-26T22:22:07 | 146,380,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,284 | py | from __future__ import division
import matplotlib.pyplot as plt
import math
import os
import time
from collections import defaultdict
# Global class labels.
POS_LABEL = 'pos'
NEG_LABEL = 'neg'
###### DO NOT MODIFY THIS FUNCTION #####
def tokenize_doc(doc):
"""
Tokenize a document and return its bag-of-wor... | [
"32944520+Krishna-Sankar@users.noreply.github.com"
] | 32944520+Krishna-Sankar@users.noreply.github.com |
85f8a6ae7a8d540284851807e39aadb1241e8e37 | f5ae8efb5b2e1704916c5ccefe2fe52417e78eac | /ziponline/migrations/0005_auto_20201004_1655.py | d7bf023b8454cc15c510e9ab10432afaeb2eeb52 | [] | no_license | ilyuhich/ZipPodryad | d7ea04504f60e6090b4e05197a1788fb28ea14c3 | 082a3658b40fc328c8d03afa6d6e53ef3d95e1c6 | refs/heads/master | 2023-01-12T01:59:39.001375 | 2020-11-18T16:08:03 | 2020-11-18T16:08:03 | 302,758,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | # Generated by Django 3.1.2 on 2020-10-04 13:55
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('ziponline', '0004_auto_20201004_1646'),
]
operations = [
migrations.AlterModelOptions(
... | [
"ilyuhich@gmail.com"
] | ilyuhich@gmail.com |
d883ae48dd3209059106218666af8d4d05326789 | 31a7c0fa71fa9f7b75406fc6868c698acd714804 | /aichuangzuo/urls.py | b076d4ec13104a1220c3a8972612f74ca81687f4 | [] | no_license | cc8848/AiChuangZuoBackground | adb65fc6af937257e4867e95068bf66320a62611 | 72c77f9569f8739a00a82dfe298db8797f04f228 | refs/heads/master | 2020-06-05T02:07:49.050905 | 2018-06-28T10:28:25 | 2018-06-28T10:28:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | """aichuangzuo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"shuo.du@edaibu.net"
] | shuo.du@edaibu.net |
53c86a1cb0665271a0b392b6547f0d182e3207ad | ad8c2983dce0aa842d271c31f9ddcc26f8a9c9ef | /dispatch/tests/test_state.py | ec1702fdea2ca90bd3c369766f374a4b12f2bbdc | [
"Apache-2.0"
] | permissive | mesosphere-backup/dispatch | 29587c875e775572d98d96db211dda9ca3d86b5d | d10fa3e7bf5a711415c3fb9dafea331ac5273bf5 | refs/heads/master | 2021-05-28T13:30:17.950676 | 2015-02-12T21:31:02 | 2015-02-12T21:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,140 | py | from mock import patch, mock_open
import dispatch.state as state
class TestState(object):
@patch('dispatch.state.open', create=True)
@patch('os.path.exists', new=lambda x: True)
@patch('dispatch.state.ARGS', create=True)
def test_persisted_queue_two(self, mock_args, mock_open_queue):
file_data ... | [
"daniel@netkine.com"
] | daniel@netkine.com |
2e6f995fee6960e139a86b9d6ab651d51ea0ba6e | ef17666167c1f655b957f0f523358f7cd242985d | /src/coreclr/scripts/superpmi_collect_setup.py | 84240c90418f7347c057160188c6318e61e5b5e8 | [
"MIT"
] | permissive | xtqqczze/dotnet-runtime | 83301c91bfb611046f489a38cfece063f29ba979 | 3bd33dd53f0490e1e188d13f4c8a553aae7b384a | refs/heads/main | 2023-08-17T03:52:14.678867 | 2023-06-02T23:53:11 | 2023-06-02T23:53:11 | 234,144,307 | 0 | 0 | MIT | 2023-05-30T00:40:18 | 2020-01-15T18:20:48 | C# | UTF-8 | Python | false | false | 28,003 | py | #!/usr/bin/env python3
#
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the MIT license.
#
# Title : superpmi_collect_setup.py
#
# Notes:
#
# Script to setup directory structure required to perform SuperPMI collection in CI.
# It does ... | [
"noreply@github.com"
] | xtqqczze.noreply@github.com |
c956bb5027f0ebb151dac38418f947b1d1a7f1b4 | 72e09a49aef4cf271850405ad00dc474bdbe8fb5 | /conftest.py | f051d407dbe9791345fff4fe4eac4d7fd917feb8 | [] | no_license | roma123test/test_task_ui | ceb67ae6c99884ad634fa06418e73f8ebaffa0c1 | 641fff586a243b1c2ff6fcba39896a4017dc07fc | refs/heads/master | 2020-04-27T18:31:03.464586 | 2019-03-11T15:07:42 | 2019-03-11T15:07:42 | 174,574,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import random
import string
import pytest
from webdriver_manager.driver import ChromeDriver
from src.constants.users import BY_DEFAULT
from src.pages.Login_page import LoginPage
from src.pages.Main_page import MainPage
# generate random names for devices
@pytest.fixture(scope="session")
def generate_new_value():
... | [
"romkhimka@gmail.com"
] | romkhimka@gmail.com |
2b3d49431a0f55f51e3a3665adc483d6d0ed0209 | cbbef22e33fc21f0768b89dc688701e9387cabf2 | /examples/mayavi_webgl_demo.py | 43ed96dc05baf62beedd1c1eef0d1cc1348d3fa1 | [] | no_license | r0k3/jigna | ec3b8f76d95267d3d69a943b77646467e4251b4d | 3f8ad0adc31e9f3fb36aba3684e723ea0bec9199 | refs/heads/master | 2021-01-24T03:21:37.513679 | 2014-02-22T11:02:40 | 2014-02-22T11:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,809 | py | import json
import numpy as np
from mayavi import mlab
from mayavi.core.api import PipelineBase
from traits.api import HasTraits, Instance, Int, Str
from tvtk.api import tvtk
mlab.options.offscreen = True
mlab.options.backend = 'test'
def dataset_to_string(dataset, **kwargs):
"""Given a TVTK `dataset` this writes... | [
"prabhu@enthought.com"
] | prabhu@enthought.com |
f972915025a9fa882981db4531f591c88cecf896 | 13a74d3b771feb3c4b288af253dea4da825e70ca | /grouproj/env/Scripts/django-admin.py | b79deda42a47aee6e99ccbd29c9094ff7fdb03ad | [] | no_license | rafailiadimaki/Group_Project | e4e02276e08cc1e551d1e5fabfdc75ce8a5a1394 | 586a53e030e1892ddda9c3d37b3d0ad07c0caaa7 | refs/heads/main | 2023-07-14T23:59:52.813436 | 2021-09-06T18:11:17 | 2021-09-06T18:11:17 | 402,742,651 | 0 | 0 | null | 2021-09-03T11:12:04 | 2021-09-03T11:12:03 | null | UTF-8 | Python | false | false | 683 | py | #!c:\pythonstuff\grouproj\env\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecated... | [
"egiork@yahoo.com"
] | egiork@yahoo.com |
0207fc00bbb68968b30eb508747167c0cb7b24eb | a942f764828f7f0a215fc06ffd0d5ace67cb29f6 | /setup.py | 4d1ac260b14784d682e386c8d767bca01712575e | [
"Apache-2.0"
] | permissive | monikernemo/aesthetics | c2db96c734b7d58ac9d9e0d9b309a9dda8eab8f6 | f854c285a02f02e5d136266b605162a9421cfc0b | refs/heads/master | 2020-06-06T04:32:45.601865 | 2019-06-19T08:40:14 | 2019-06-19T08:40:14 | 192,638,432 | 0 | 0 | Apache-2.0 | 2019-06-19T01:44:41 | 2019-06-19T01:44:40 | null | UTF-8 | Python | false | false | 1,100 | py | from distutils.core import setup
from setuptools import find_packages
def get_version():
return '0.1.1'
def get_requirements():
with open('requirements.txt', 'rU') as fhan:
requires = [line.strip() for line in fhan.readlines()]
return requires
def get_long_description():
try:
import p... | [
"me@shubhamchaudhary.in"
] | me@shubhamchaudhary.in |
73e9c1e3a9f77d0cd400a1fc661ab8139800f386 | c576ce575fcc02409cae55cbd21e089e0d8bc58c | /banner updater.py | 1b09c305c080f1097cd0641553cd70374c74776f | [
"MIT"
] | permissive | googed/banner-bot | e680c2d574f659199aea4772b2c339e4af5570dd | 540d462959094e945a373583b3c4d69ee062c229 | refs/heads/master | 2021-01-10T10:47:55.020422 | 2016-04-14T16:41:39 | 2016-04-14T16:41:39 | 55,941,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,874 | py |
# The main subreddit's sidebar must include strings to denote the beginning and ending location of the list, the bot will not update the sidebar if these strings are not present
# With the default delimiters the sidebar should include a chunk of text like:
# [](#banner_start)
# banner text here
# [](#banner_end)
fro... | [
"godcast@gmail.com"
] | godcast@gmail.com |
4095191d2d5af67373038ef3eb73ba3597657739 | 57b29be35678ba3d7b532e574a9fa8acf00557c4 | /pelican/plugins/webassets_babeljsx/__init__.py | e0aeea29cda7608d703ba4658fb415589a1abe29 | [
"MIT"
] | permissive | rhooper/pelican-webassets-babeljsx | c0503546c2bf194a8aa9185057e5ef37f046a47b | 39fd2fb286f7bfa12c04785dddac84e935a8a5da | refs/heads/main | 2023-03-26T12:48:58.637635 | 2021-03-27T22:51:26 | 2021-03-27T22:51:26 | 350,156,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | """
Simple plugin that registers the BabelJSX filter with Jinja2
"""
from dukpy.webassets import BabelJSX
from webassets.filter import register_filter
def register():
register_filter(BabelJSX)
| [
"rhooper@toybox.ca"
] | rhooper@toybox.ca |
9b71f1699ce7f419ca1a0de7731d2a04a54f68ab | 3ef524fbe4f299fa5f2702bf3b421b9e5e548b90 | /Problem 22.py | 621ca91cd4de131ed2498a491b77f348fed7f9de | [] | no_license | PSpeiser/ProjectEuler | 87e95cac98f7811a15ca2bb1c925dd595d8a7c43 | b846c172bd12b4400e200d28886a6af7bec2dcf0 | refs/heads/master | 2021-01-01T18:55:01.121820 | 2014-04-03T14:37:35 | 2014-04-03T14:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | def value(name):
value = 0
for letter in name:
value += ord(letter) - 64
return value
import csv
names = []
with open("names.txt","r") as csvfile:
csvreader = csv.reader(csvfile)
names = list(csvreader)[0]
names.sort()
total = 0
for i in range(len(names)):
name = names[i]
multipli... | [
"mail@patrickspeiser.at"
] | mail@patrickspeiser.at |
a2080ddcb4fbd6406b8f4cfc7f1dcae4a4155bfd | d6cb6fdd4b19b18add5c45e03c9962f2f05be410 | /consumers/models/.ipynb_checkpoints/weather-checkpoint.py | 90a6c7c1f4675b8596f832eb2b89b9ad0c1d4a68 | [] | no_license | sarakuma/udacity-ds-kafka-project | 2a4d5bb75aaaa598238566169861af904a31800a | 2d4817046cc1fe444e311cb43bb0ad49ccae0e81 | refs/heads/master | 2023-08-17T22:47:06.148883 | 2020-03-10T17:55:57 | 2020-03-10T17:55:57 | 246,367,981 | 0 | 0 | null | 2023-08-14T22:08:46 | 2020-03-10T17:41:54 | Python | UTF-8 | Python | false | false | 644 | py | """Contains functionality related to Weather"""
import logging
logger = logging.getLogger(__name__)
class Weather:
"""Defines the Weather model"""
def __init__(self):
"""Creates the weather model"""
self.temperature = 70.0
self.status = "sunny"
def process_message(self, message... | [
"kumar.saraboji@gmail.com"
] | kumar.saraboji@gmail.com |
53d35c3afe3426d84013479bfd93c2bc09b77990 | 645b3461ac4081ba41519a72ae36ac807e00e31e | /level2/topnumber.py | e7b3d5147c46af803bcde71480b223000a357643 | [] | no_license | edw1n94/algorithm | 48411abe47b3d62e7baea6829a51cae3ce87ed99 | 310b7619e0330a1f2d168ad05bb7f3b4803f8278 | refs/heads/master | 2021-05-20T23:12:26.437262 | 2020-04-02T12:33:06 | 2020-04-02T12:33:06 | 252,446,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | def solution(numbers):
answer = ""
def cmp_to_key(mycmp):
'Convert a cmp= function into a key= function'
class K:
def __init__(self, obj, *args):
self.obj = obj
def __lt__(self, other):
return mycmp(self.obj, other.obj) < 0
... | [
"ngw42@naver.com"
] | ngw42@naver.com |
7f285b3636bb9855071087c8449ec16b13e9dd44 | 10c27cff9ed412954cddcbb0f3bba8c69cca3fb3 | /config_tune/deep_tcr_vdj_tune.py | 8c1196da5a6b16249c728cd3989afbb46f840ede | [
"MIT"
] | permissive | lizwood/mvTCR | 1d121019cc263d668f4993a022bb1199e14e9ec8 | dba217393a3a9b1a8700d2927dbac81d360aec4a | refs/heads/master | 2023-06-19T14:48:56.193657 | 2021-07-16T10:45:51 | 2021-07-16T10:45:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,500 | py | from ray import tune
params = {
'seq_model_hyperparams': {
'num_features_1': tune.qrandint(20, 50, 10),
'num_features_2': tune.qrandint(50, 100, 25),
'num_features_3': tune.qrandint(50, 200, 50),
'dropout': tune.quniform(0.0, 0.2, 0.05),
'batch_norm': tune.choice([True, False]),
'embedding_dim': tune.qran... | [
"yang.an@outlook.com"
] | yang.an@outlook.com |
3e483b0f7144ccc6f0004d7b0bb6806d474db98e | 2e07f6b94fc0f7a5cf55002040151b8745fd843d | /privious_learning_code/OS_Handling/os.ttyname() Method.py | 4ab70bdcb4c400b2e6ddb190eb230fa7fb5757f2 | [] | no_license | LalithK90/LearningPython | a7e6404e900b7d66c663acc72cde3e3655d54ac7 | ece38fdac88da66c8b76fe710b3df7d8635a3590 | refs/heads/master | 2023-06-09T22:32:16.674821 | 2021-06-27T18:55:00 | 2021-06-27T18:55:00 | 169,513,150 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 717 | py |
# Description
#
# The method ttyname() returns a string, which specifies the terminal device associated with fd. If fd is not associated with a terminal device, an exception is raised.
# Syntax
#
# Following is the syntax for ttyname() method −
#
# os.ttyname(fd)
#
# Parameters
#
# fd − This is the file descriptor.
#
... | [
"asakahatapitiya@gmail.com"
] | asakahatapitiya@gmail.com |
c741daee4636dd19fa8ffd7651f5f972e06fdc2c | 7e5017837ce2468c6bc1c41d73baf982eed2adbd | /video.py | e4ddd76be78be5ef8b6624f55c2ae72c7e450d02 | [] | no_license | weizy2018/learnopencv | 5fecead7af0aa13fb3c6aaba67895d5ff14adb41 | 4b2594689bef51f3f964d386d87309bf54485db3 | refs/heads/master | 2022-07-09T02:56:00.395577 | 2020-05-19T13:46:35 | 2020-05-19T13:46:35 | 255,314,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | import cv2 as cv
cap = cv.VideoCapture("/home/weizy/Videos/video.mp4")
if not cap.isOpened():
exit()
ret, frame = cap.read()
cv.namedWindow('video', cv.WINDOW_NORMAL)
while ret:
cv.imshow("video", frame)
if cv.waitKey(1) == ord('q'):
break
ret, frame = cap.read()
cap.release()
cv.destr... | [
"2233467661@qq.com"
] | 2233467661@qq.com |
5fd255ea854d7583a563fe0d7b15d7f6e2e1e56a | ad8ded1e86419d13a692b974a4fe83786a4dbdb1 | /eleven_sept/py_set_methods/symmetric_difference_update.py | e39d6d196f9b1bec29801981a76caefc936488a2 | [] | no_license | avengerryan/daily_practice_codes | 9934d7d6c1be2c8e89567e327ccd4af5a8eb89c2 | 34b1d8b772694de9414a15269fdc59284d74c11b | refs/heads/master | 2022-12-23T13:59:54.968089 | 2020-09-14T09:28:27 | 2020-09-14T09:28:27 | 295,375,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py |
# python set symmetric_difference_update() : updates the set with symmetric
# difference
# the symmetric_difference_update() method finds the symmetric difference of two
# sets and updates the set calling it.
# e.g. working of symmetric_difference_updateO()
A = {'a', 'c', 'd'}
B = {'c', 'd', 'e'}
result = A.sym... | [
"avengerrmk@gmail.com"
] | avengerrmk@gmail.com |
7af2b382b7d33e936abb8c58493342b13410c0dc | 604dba018a0937d0bdeb0bfd5400ccba1e14df10 | /src/train_predict_xgb.py | 2d12660f00492d6b86a37ff612044b35022e6211 | [] | no_license | ericdoi/kaggle-renthop-2017 | 08a132aa9b5feedb2b9cc91a6433c3b88c2dd6ca | 8adfeddc2c2893efb4ed02d9e69e2b2ce9aebe6b | refs/heads/master | 2021-01-23T11:21:08.941721 | 2019-10-31T04:52:12 | 2019-10-31T04:52:12 | 93,132,716 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,014 | py | """
Thanks to:
https://github.com/jeongyoonlee/kaggler-template
https://www.kaggle.com/sudalairajkumar/xgb-starter-in-python
"""
import argparse
import logging
import os
import time
import numpy as np
import pandas as pd
import xgboost as xgb
from kaggler.data_io import load_data
from sklearn import model_selection
f... | [
"ricekido@gmail.com"
] | ricekido@gmail.com |
684b338dccf3f6896525b851df87aeb51636c232 | e12385c85e41d98bc3104f3e4dde22025a0b6365 | /mcp23Sxx/examples/test_input_pins.py | 15bcba619e8fe45db7d43f128d95d08b71b75315 | [] | no_license | mchobby/esp8266-upy | 6ee046856ec03c900ebde594967dd50c5f0a8e21 | 75184da49e8578315a26bc42d9c3816ae5d5afe8 | refs/heads/master | 2023-08-04T15:11:03.031121 | 2023-07-27T15:43:08 | 2023-07-27T15:43:08 | 72,998,023 | 47 | 30 | null | 2021-06-20T16:12:59 | 2016-11-06T15:00:57 | Python | UTF-8 | Python | false | false | 780 | py | """
The following demo based on test_piface.py for the PiFace-Digital interface.
It uses a PYBStick + HAT-FACE (SPI1 + CE0 on S24)
Reads multiples inputs at once.
"""
from mcp23Sxx import *
from machine import SPI, Pin
import time
# PYBStick / PYBStick-HAT-FACE
spi = SPI( 1, phase=0, polarity=0, baudrate=40000... | [
"info@mchobby.be"
] | info@mchobby.be |
a2da8d67779abc0d6279f9b7b095f068a3ce9d8c | 206c86fa919a25866db8c6cf8a30d2aac22413ca | /docs/source/conf.py | 644eb1826378df6796d9174b6d53a216da8b4dd8 | [
"Apache-2.0"
] | permissive | jeevb/flytekit | 65b00d24cd14aad7cc17b390b2993e6bc146f3a8 | b773a2015e83a1991a3f06260620d79ff670f247 | refs/heads/master | 2023-05-10T11:27:30.700384 | 2021-06-03T01:30:00 | 2021-06-03T01:30:00 | 281,543,221 | 0 | 0 | Apache-2.0 | 2020-07-22T01:27:46 | 2020-07-22T01:27:45 | null | UTF-8 | Python | false | false | 6,360 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... | [
"noreply@github.com"
] | jeevb.noreply@github.com |
42f9d7c603a88fbdf3e6e830f94a7dd917677c9c | b305b327dd585f89043e0d50c395508ec113d288 | /venv/bin/gunicorn | d49dc2aae822ff5cc6d77f670b89b6a1f7d12b70 | [] | no_license | allanlburns/portfolio-project | 98a428b2b7738ba0f76007f8a630f4371508c7b1 | 7c18fd959c67a31205e6a7ba64245dc3d879ef97 | refs/heads/master | 2020-04-27T19:11:26.297039 | 2019-03-18T23:17:33 | 2019-03-18T23:17:33 | 174,606,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/home/allan/udemy_django_2.1/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"allanlburns@yahoo.com"
] | allanlburns@yahoo.com | |
ff23d78ef8ca00500d2a1223a47401b4e6b4cd08 | 4f8ddd9808535ee8aa900393c3a429f480324574 | /Estrutura_Controle/switch_2.py | f4a18106047d6f801f9cd9893ecf932303c927b1 | [] | no_license | kamibarreto/Cod3r | 1de8bb5288c16f90e1060089e7fda8216b6cb7cf | cea86f3984e3d43c0726b9ea809505d00679a314 | refs/heads/master | 2022-12-22T23:13:59.176534 | 2020-09-05T11:01:10 | 2020-09-05T11:01:10 | 284,170,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | def get_dia_semana(dia):
dias = {
1: 'Domingo',
2: 'Segunda',
3: 'Terça',
4: 'Quarta',
5: 'Quinta',
6: 'Sexto',
7: 'Sabado',
}
return dias.get(dia, "**Fora Do Sistema**")
if __name__ == '__main__':
for dia in range(1, 8):
if 2 <= dia <= 6:... | [
"fabinhobarreto9928@gmail.com"
] | fabinhobarreto9928@gmail.com |
29bae3a1c2c5625c8b165963c4600d9da472b054 | 44b4e7dfaaaeffeaee0573a529131fc9261cf118 | /Eevee_speech_assistant/asis.py | c44c532424a56057e303da6e780e1dedc512e179 | [] | no_license | maxiicano/Prototypes | 1d7905d6c722d38b9e63c489623e6b8b3a0b6156 | 8e7e93a621ca1799d903135d67b0e0af5dab5774 | refs/heads/master | 2022-10-13T11:32:48.732054 | 2020-06-09T11:11:28 | 2020-06-09T11:11:28 | 265,267,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,638 | py | import speech_recognition as sr # recognise speech
import playsound # to play an audio file
from gtts import gTTS # google text to speech
import random
from time import ctime # get time details
import webbrowser # open browser
import ssl
import certifi
import time
import os # to remove created audio files
from PIL impo... | [
"maxiicanowow@gmail.com"
] | maxiicanowow@gmail.com |
0720062a7d6fdc8eaa26ee2a812a2cb7dba81c8b | b22c848d8d3257b58e25248721fa419cb2abaeb9 | /home/urls.py | a23bb96b54da6157605d2c14f38a4cac24b2efb4 | [] | no_license | AlexNexton/soleki | 69983de38a1ca709b4c1bc093f75debf105c106e | 9c37cc5b6924a332ef1f0d534ed8087ec07d1034 | refs/heads/master | 2023-04-21T07:47:57.966541 | 2021-05-14T04:34:21 | 2021-05-14T04:34:21 | 358,224,825 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='home'),
]
| [
"cianoc13@gmail.com"
] | cianoc13@gmail.com |
ead8d7810383dbd0c853e722095e2c66e7b896e6 | 1b0a9fa04e27f67ac639c11459bfd81fa6ad4e38 | /root/models.py | 1618da9fff528a7bca7488cd1fff052b3e25965c | [] | no_license | JohnatanPalacios/BookStoreUTP | 636146a0e140ccf3f9d898afa72b88898dad18d3 | c00a6d611d0f5315a5e0674635c3d6cf48d5735a | refs/heads/master | 2023-05-05T09:33:34.583501 | 2021-05-26T03:29:12 | 2021-05-26T03:29:12 | 370,855,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from django.db import models
class Newuser(models.Model):
Email = models.CharField(max_length=150)
Username = models.CharField(max_length=150)
UserApellido = models.CharField(max_length=150)
MartialStatus = models.CharField(max_length=150)
Age = models.IntegerField()
Pwd = models.CharField(max_length=150)
Pwd1... | [
"39398211+JohnatanPalacios@users.noreply.github.com"
] | 39398211+JohnatanPalacios@users.noreply.github.com |
4756b4996bfc26be5bcb6bbd162c1c75e8e8919e | 3fc39ad0145702d7ea94098c8de0419504de7adb | /project/src/location/views.py | 780ffbac7e4d08f883238d550a185510dfa4dc00 | [
"MIT"
] | permissive | fahmihidayah/DjangoBaseProject | 22e1d1415f0f219921219fe172819117d82cec84 | 9044afe92b42ac2f677f75b796515e740402f8f4 | refs/heads/master | 2020-05-02T19:32:41.713071 | 2019-04-01T16:23:03 | 2019-04-01T16:23:03 | 178,161,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | from django.views.generic import DetailView, ListView, UpdateView, CreateView
from .models import City, Country, Address, Province
from .forms import CityForm, CountryForm, AddressForm, ProvinceForm
class CityListView(ListView):
model = City
class CityCreateView(CreateView):
model = City
form_class = Ci... | [
"fahmi.hidayah.cs@gmail.com"
] | fahmi.hidayah.cs@gmail.com |
a847dcde6a32c222103b099e71f770157530882e | 1bd3076902117867ec048210905195ba2aaaaa6b | /exercise/leetcode/python_src/by2017_Sep/Leet234_2.py | 2fc3f4fd912e27b52c33613521009eade9ed46bf | [] | no_license | SS4G/AlgorithmTraining | d75987929f1f86cd5735bc146e86b76c7747a1ab | 7a1c3aba65f338f6e11afd2864dabd2b26142b6c | refs/heads/master | 2021-01-17T20:54:31.120884 | 2020-06-03T15:04:10 | 2020-06-03T15:04:10 | 84,150,587 | 2 | 0 | null | 2017-10-19T11:50:38 | 2017-03-07T03:33:04 | Python | UTF-8 | Python | false | false | 343 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def isPalindrome(self, head):
"""
:type head: ListNode
:rtype: bool
"""
z=[1,2,3]
z2=[1,2,3]
print(id(z),id(z2))
prin... | [
"songziheng@xiaomi.com"
] | songziheng@xiaomi.com |
192a20089f9803f06a457ae730dde748802b21e2 | 283f9fc69e0b00051a79232fc2cbaabdab589c18 | /flashsale/xiaolupay/apis/v1/exceptions.py | 53aaee79459e17921f5f76d68a1d227c87e06b86 | [] | no_license | nidepuzi/ndpuzsys | 572b67a84fcd6c4fa4d49d3bdb0eb826e7791e62 | be58dc8f1f0630d3a04e551911f66d9091bedc45 | refs/heads/master | 2023-01-06T22:52:49.861479 | 2019-07-09T11:00:06 | 2019-07-09T11:00:06 | 188,955,119 | 1 | 0 | null | 2022-12-26T20:15:24 | 2019-05-28T04:41:35 | Python | UTF-8 | Python | false | false | 187 | py | # coding: utf8
from __future__ import absolute_import, unicode_literals
class XiaoluPayException(BaseException):
pass
class ChannelNotCompleteException(XiaoluPayException):
pass | [
"xiuqing.mei@xiaolu.so"
] | xiuqing.mei@xiaolu.so |
0efcca57da4995c62dec310d862bf32a0f6d1f29 | d9791df28169067788a37e29b4b4b6a138dba296 | /custom_powerline_shell/theme_clean.py | 6ac3051c5d696c49db7ccd20c9222d3288668551 | [
"MIT"
] | permissive | lexrupy/simple_dotfiles | b9e823ace8e350dd381cb6a8c7e837310a713237 | e7039a2392b32645b4b8c4852988a2ce28b79f77 | refs/heads/master | 2023-09-01T09:17:05.969207 | 2023-08-20T03:13:36 | 2023-08-20T03:13:36 | 900,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | from powerline_shell.themes.default import DefaultColor
class Color(DefaultColor):
"""Basic theme which only uses colors in 0-15 range"""
USERNAME_FG = 8
USERNAME_BG = 15
USERNAME_ROOT_BG = 1
HOSTNAME_FG = 8
HOSTNAME_BG = 7
HOME_SPECIAL_DISPLAY = False
# PATH_BG = 8 # dark grey
... | [
"lexrupy@gmail.com"
] | lexrupy@gmail.com |
081f59a2b8a2ff31e2cfbbf5e38e067819a6b053 | cb9a03113111ac9472bbd0fd74611c396315bb92 | /algorithm/leetcode/two_sums.py | 352eb7ff0b7b9f3b0e4615a610dca5b58531dd8f | [] | no_license | maoqiansheng/python_interview | 8566ef3ccfd81550f6a8ea15aa4d5473d84210b5 | 206592bb8464de40e8eaa992e040f05b69aab2c6 | refs/heads/main | 2023-03-03T13:35:50.397939 | 2021-02-08T15:12:42 | 2021-02-08T15:12:42 | 320,850,454 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | """
给定 nums = [2, 7, 11, 15], target = 9
因为 nums[0] + nums[1] = 2 + 7 = 9
所以返回 [0, 1]
原题链接:https://leetcode.com/problems/two-sum
"""
# 思路:如果我们换一种方式: target - 当前数字, 需要的另外一个变量就变成已知!
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
... | [
"980054594@qq.com"
] | 980054594@qq.com |
2b78829fbe94a27d1110030427cfb58b4f715a53 | 410038764b336c28dfe8420d3fbc6346553ce32e | /sc13-modeling-sid/regression_old1.py | 6c234c4fd0d7d2ea39a11ebcc5de7c646bc7667e | [] | no_license | avisheks/python-projects | 2b6eae6834d562af78b10395c0f21654cb47bd75 | da384f553d91dd442aa53f6588187af8074256cd | refs/heads/master | 2021-01-22T04:41:59.863806 | 2013-11-14T21:04:05 | 2013-11-14T21:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,104 | py | import os
import sys
import numpy as np
import math as m
import random as rnd
import pylab as pl
from sklearn import linear_model as lm
from sklearn import preprocessing as pp
## params
dataFile = sys.argv[1]
finp = open(dataFile, 'r')
## sanity checks
if not os.path.isfile(dataFile):
print 'ERROR:',dataFile,'d... | [
"avishek.saha@gmail.com"
] | avishek.saha@gmail.com |
698743c20a454d92c763b878c6631efac254424d | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/Refuse.py | 2b7e68efd408a30e6ade250e531d8989e57d4547 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,173 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class Refuse(object):
def __init__(self):
self._code = None
self._msg = None
@property
def code(self):
return self._code
@code.setter
def code(self, value):
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
1e8c4ead72192ee7612a1b36364cc67c251b236f | 156796fca5dda2cf194ef0125f72b9f16736deaa | /receiver.py | 0d28b015e6d49ae5bec009bc12e5c70053a8db42 | [] | no_license | auto-contest-kookmin/RPi-Laser-Receiver | 29f42fe0b28119c325600944b35816a37ed8cdab | 779813007f65910a9a65b180f3435adb7e393dfa | refs/heads/master | 2020-09-22T08:32:50.000945 | 2019-12-01T11:52:43 | 2019-12-01T11:52:43 | 225,122,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,660 | py | #!/usr/bin/env python
import RPi.GPIO as GPIO
import time
from datetime import datetime
from PCF8591 import PCF8591
import requests
import json
from ast import literal_eval
API_SERVER_URL = 'http://192.168.0.71:5000'
# 포토레지스터 모듈
class LaserMeasure(object):
def __init__(self, addr=0x48, device_num=0):
# PC... | [
"xcm1321@gmail.com"
] | xcm1321@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.