blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4eba2c4e7d3f3a716f4fb9c487b54cc496062efc | f79402983074f9b3031ac84377924fdcfc69a1a3 | /中等148. 排序链表.py | 8b8f0b60a7f7ee48f3d9858b52f8c7aa2fb718a8 | [] | no_license | ganhan99/leetcode | bd328b5a58c87c7cc1e8fcf4d721a8d29deb3f23 | 173754f20605ddf4d010938c8bbe85beac04da53 | refs/heads/master | 2023-03-18T13:28:01.412612 | 2021-03-03T03:52:59 | 2021-03-03T03:52:59 | 308,853,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,696 | py | """
给你链表的头结点 head ,请将其按 升序 排列并返回 排序后的链表 。
进阶:
你可以在 O(n log n) 时间复杂度和常数级空间复杂度下,对链表进行排序吗?
示例 1:
输入:head = [4,2,1,3]
输出:[1,2,3,4]
示例 2:
输入:head = [-1,5,3,4,0]
输出:[-1,0,3,4,5]
示例 3:
输入:head = []
输出:[]
"""
"""
合并排序,利用递归,自上而下
"""
#大神做法1
class Solution:
def sortList(self, head: ListNode) -> ListNode:
de... | [
"940320304@qq.com"
] | 940320304@qq.com |
10737ee28709c6f69cd44dc07390956149671c1c | 90b5a86b07745561267fde367259b9f48da3ca74 | /blogpy/urls.py | 74a1c9962b5324260c433ff2fdefe64cc99d2682 | [] | no_license | enjoy-binbin/pyblog | fb8bfc6017595412850faf20ba4ce0c8e5ee761b | 47e93d67dbfd8acf58bfb7e2e15c0c6cce32ef6e | refs/heads/master | 2021-08-11T06:38:52.959002 | 2019-02-06T13:46:50 | 2019-02-06T13:46:50 | 166,924,461 | 2 | 0 | null | 2021-08-09T20:47:43 | 2019-01-22T03:59:51 | Python | UTF-8 | Python | false | false | 2,132 | py | """blogpy 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-base... | [
"binloveplay1314@qq.com"
] | binloveplay1314@qq.com |
6a1eef9c44bc3d758c9c7601cd43fe88313fc497 | 297497957c531d81ba286bc91253fbbb78b4d8be | /testing/web-platform/tests/tools/third_party/pywebsocket3/test/test_stream.py | e3560d1ad4210f3e858306085bb511c1f67b8d93 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 1,116 | py |
"""Tests for stream module."""
from __future__ import absolute_import
import unittest
import set_sys_path
from mod_pywebsocket import common
from mod_pywebsocket import stream
class StreamTest(unittest.TestCase):
"""A unittest for stream module."""
def test_create_header(sel... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
dbdf847edde35b2fd7e57bd9dd69cb16c7da4ec9 | b07d48a3cb7c37e2114e0e8ee8f12c188a06ff0a | /rlvision/tests/restructure_dataset.py | a1315692d5e5510acd6467016be8f612ed58ccb9 | [
"MIT"
] | permissive | collector-m/Learning-to-navigate-without-a-map | 7212f35d6c958d08ce11569c4296d1ae20ed947c | 232f13c84036b1f3e7902ec163e8217a67e0aa28 | refs/heads/master | 2021-08-27T17:26:45.790832 | 2017-06-24T19:48:10 | 2017-06-24T19:48:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | """Restructure data.
As the original data has shuffled the data randomly,
therefore it's difficult to reconstruct the exact path.
Here we manually select the necessary data from raw data.
Author: Yuhuang Hu
Email : duguyue100@gmail.com
"""
from __future__ import print_function
import os
import numpy as np
import r... | [
"duguyue100@gmail.com"
] | duguyue100@gmail.com |
b0389c1366da16e45c6a83b90d51b05aaf87e5c4 | 5ab5f41948ee2fffc5120ac65f16e3c0cb651ca4 | /src/anyio/_core/_testing.py | f4438116bd2ef95be42f066f476d812a5e1e0a7e | [
"MIT"
] | permissive | smurfix/anyio | e3f4f4ae3a17bcfda436e1667957de143e5f350b | 509cd598554af0fb205bdf0ad2d9509644ae0c01 | refs/heads/master | 2022-12-22T02:51:30.170581 | 2020-10-04T20:33:30 | 2020-10-04T20:33:30 | 152,191,752 | 1 | 0 | NOASSERTION | 2018-10-09T05:18:54 | 2018-10-09T05:18:54 | null | UTF-8 | Python | false | false | 1,582 | py | from typing import Coroutine, List, Optional
from anyio._core._eventloop import get_asynclib
class TaskInfo:
"""
Represents an asynchronous task.
:ivar int id: the unique identifier of the task
:ivar parent_id: the identifier of the parent task, if any
:vartype parent_id: Optional[int]
:ivar... | [
"alex.gronholm@nextday.fi"
] | alex.gronholm@nextday.fi |
8b780613fe2ca102d2c573febf97f4bd7b9f1165 | 9743ea1ef7c7b7e23de0b34aa1478602c7b42695 | /060Tornado/tornado_queue.py | fbe4b58ca106487d0e17b57a9439466cfedb0bc6 | [] | no_license | Amigolinux/Crawler4Caida | fc47b5ffc6e1288f27b09ca9092d103ce65d5f7d | c35fe1c544a33fe07a3b523ee96209582206ce0f | refs/heads/master | 2023-07-15T21:10:28.917951 | 2021-08-12T10:28:33 | 2021-08-12T10:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,451 | py | # coding:utf-8
"""
create on Jan 22, 2021 By Wenyan YU
Email: ieeflsyu@outlook.com
Function:
探索Tornado异步网络爬虫技术
"""
import time
from datetime import timedelta
from html.parser import HTMLParser
from urllib.parse import urljoin, urldefrag
from tornado import gen, httpclient, ioloop, queues
base_url = "http://www.mr... | [
"ieeflsyu@outlook.com"
] | ieeflsyu@outlook.com |
01013f8f90b13c4ecad08108ceb3fda16ac646c6 | 6238dc5b5818f54295547cf4cb1afa5553ddfb94 | /taobao/top/api/rest/ItemTemplatesGetRequest.py | 58254460177ffc1d1a7982b31bf3bafecfc539e4 | [] | no_license | liaosiwei/guagua | 8208bb82b1df5506dcb86c1a7094c849ea5576a6 | ee6025813e83568dc25beb52279c86f8bd33f1a4 | refs/heads/master | 2016-09-06T16:45:00.798633 | 2013-05-03T04:02:35 | 2013-05-03T04:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | '''
Created by auto_sdk on 2013-04-14 16:35:32
'''
from top.api.base import RestApi
class ItemTemplatesGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
def getapiname(self):
return 'taobao.item.templates.get'
| [
"liaosiweiorxiaowei@gmail.com"
] | liaosiweiorxiaowei@gmail.com |
2fdda6deebbcfcfd7fc8adf1a335551ad2a7a108 | a683336af761bfd67cf2af1977867eb43a1aea86 | /spotifyics_gui.py | c39a47251968d422d6c39967dd7e36bf60e48daf | [] | no_license | nicehiro/spotifyics | 9903928ac8359af6c42596c958064d70b6e6ad4a | b7a73689f584d9911ae4ad56f6d96cc994530ae8 | refs/heads/master | 2020-06-09T03:18:28.203669 | 2019-06-25T13:33:37 | 2019-06-25T13:33:37 | 193,360,473 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,118 | py | import sys
from functools import reduce
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import QWidget, QApplication, QLabel, QScrollArea, QVBoxLayout, QPushButton
from lyric_parser import LyricParser
from netrequest import NeteaseRequest
from spotifydbus import SpotifyDBus
class SpotifyricsWin(QWidget):
... | [
"wfy11235813@gmail.com"
] | wfy11235813@gmail.com |
065592314f66034e84bb0c6fc70d8546b8c3b427 | 586a2b27f687957518c20483e82cbd986f4fa220 | /backend/home/migrations/0001_load_initial_data.py | ede12baf2f2d4bde435dd750c1048f292e9fe103 | [] | no_license | crowdbotics-apps/trackey-28720 | de09332dd77f9a5c4b62f656cc031648d831c3e2 | 75b2287d3be3ec649978c53f7aafc442bc83caa7 | refs/heads/master | 2023-06-19T16:54:15.349872 | 2021-07-11T15:11:31 | 2021-07-11T15:11:31 | 384,979,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "trackey-28720.botics.co"
site_params = {
"name": "Trackey",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_create(d... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
dd437d8a9fdd1e9180cdc05dcef75b91111e6a5d | 6e74581033d5f09600feb3cf009d44fefcaad830 | /blog/migrations/0003_auto_20200615_0613.py | 77deb9f07a2113881429a239f669482e3486b04c | [] | no_license | vsevolodpohvalenko/Django_project2 | 6c18ef31f0794bace207fae52d8aedf80eef06c0 | 7ed467276384012cded2b8ab259f2d490c9a736f | refs/heads/master | 2022-11-07T09:43:56.793584 | 2020-06-19T20:25:35 | 2020-06-19T20:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.0.7 on 2020-06-15 03:13
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20200614_1752'),
]
operations = [
migrations.AlterField(
... | [
"vsevolod.pohvalenko@gmail.com"
] | vsevolod.pohvalenko@gmail.com |
b982d59d0ed5ae4c1f32880df7bdece73dc42706 | 7ef7ebce070ee7efab187c77dd4e0a626cff515a | /Tree/preorder.py | 973f71a92274cc4a4fb226b3725855e0d7682e4d | [] | no_license | winston1214/Data-structure | 3e371bc88aa141fcfcc94ba80c9f852f92555c3e | e0b0095e2802d5d33c0e44c55b6522b768d62af0 | refs/heads/master | 2022-12-11T03:27:52.860508 | 2020-09-08T12:05:44 | 2020-09-08T12:05:44 | 284,871,488 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # @Author YoungMinKim
# Data Structure - binary Tree Function - Preorder
class TNode:
def __init__(self,data,left,right):
self.data = data
self.left = left
self.right = right
def preorder(n): # 전위순회 VLR
if n is not None:
print(n.data,end='')
preorder(n.left)
preor... | [
"winston1214@naver.com"
] | winston1214@naver.com |
99783b9dacd73fa661cd3a5edaec32fbc7056551 | ec9f108742315278c9e4e904efaf394c00b230af | /alpyro_msgs/map_msgs/projectedmapinfo.py | d33f2fdc889a9018991985f98d27ab1dab11adc9 | [
"MIT"
] | permissive | rho2/alpyro_msgs | 3cdc51e0eac5b3cbb2599ce55f69d5813c3064e5 | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | refs/heads/master | 2022-12-05T09:54:16.291162 | 2020-08-26T18:16:37 | 2020-08-26T18:16:37 | 290,033,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from alpyro_msgs import RosMessage, float64, string
class ProjectedMapInfo(RosMessage):
__msg_typ__ = "map_msgs/ProjectedMapInfo"
__msg_def__ = "c3RyaW5nIGZyYW1lX2lkCmZsb2F0NjQgeApmbG9hdDY0IHkKZmxvYXQ2NCB3aWR0aApmbG9hdDY0IGhlaWdodApmbG9hdDY0IG1pbl96CmZsb2F0NjQgbWF4X3oKCg=="
__md5_sum__ = "2dc10595ae94de23f22f8a... | [
"git@rho2.eu"
] | git@rho2.eu |
2907e94e5f511137fdaa057a447a3d25d7a1b7bc | b3e147ac438246d60644725fa93c16c9bae7fa7e | /Python Collections/devowel.py | d92a2f269092f25893e8ccc7f088943914473ed9 | [] | no_license | Ehsan-Molavi/teamtreehouse | c55180b3d8eac8c18c03f335056fae1088c769e4 | cbe90b2eff0708e4c95a6909d7edec494ddd9615 | refs/heads/master | 2020-09-09T05:54:49.828487 | 2017-04-25T16:09:19 | 2017-04-25T16:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | state_names = ["Alabama", "California", "Oklahoma", "Florida"]
vowels = list('aeiou')
output = []
for state in state_names:
state_list = list(state.lower())
for vowel in vowels:
while True:
try:
state_list.remove(vowel)
except:
break
output.append("".join(state_lis... | [
"brian@ubuntu.ubuntu-domain"
] | brian@ubuntu.ubuntu-domain |
b39ed748383f2e894b535d091b191f3d3f6a1e3b | b232b26af08e8b9c84139a35e7ab42188a14309f | /ydy_web/migrations/0001_initial.py | 58e35ded167ce4af2d78e9c26b8c1427792d3590 | [] | no_license | SS4G/ydy | c6116d216b5eeafc450dc16625bad0a0bacc4f46 | 123a0a04fe8f43010aa4de8932915052cfb0132f | refs/heads/master | 2021-01-19T01:31:11.682393 | 2016-11-10T03:28:21 | 2016-11-10T03:28:21 | 72,983,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-11-06 13:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Commen... | [
"ziheng_song@126.com"
] | ziheng_song@126.com |
0bfae41cfb0b9342a207fda795717112507279ba | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startQiskit187.py | 09da5a462a355f4377f450dfa08576e5add70a66 | [
"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 | 2,485 | py | # qubit number=3
# total number=12
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
1aab20fc3027a937df5ab29a89cfd90d6f30fa2e | cc8dd1bf3ff193e24e636ef6aad54ce18e831270 | /游戏/大作业/demo_bird.py | 47822c43b2e3b47e307ec8c3e1de242f3c07b32c | [] | no_license | RelaxedDong/python_base | c27cbc1c06914826d3287dae46a9fe0dd2bff7b0 | 7f865c7d5bdb6454f3b20cd899dbaf19092fb360 | refs/heads/master | 2022-01-08T12:43:58.851895 | 2019-04-24T03:17:13 | 2019-04-24T03:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #encoding:utf-8
# __author__ = 'donghao'
# __time__ = 2019/4/22 15:25
import pygame
class Bird(pygame.sprite.Sprite):
def __init__(self):
pygame.sprite.Sprite.__init__(self) # 初始化
position = 230,230 #初始位置
self.img = pygame.image.load('ab.png') #加载小鸟素材
self.rect = self.img.get_rect(... | [
"1417766861@qq.com"
] | 1417766861@qq.com |
c37c6dd8379626d08fb6b1e1821f9d9c22423640 | 70b114071d1d695584b460f7ba6cbf09b28871b0 | /catkin_ws/build/geometry2-indigo-devel/tf2/catkin_generated/pkg.develspace.context.pc.py | eae044a983c9f4df7f7ddc39e28fd733ad4a52e3 | [] | no_license | Jykkis/atv | d17602174c6cbcf3b5b4e96f6e9d7269718c3d8e | ba0e3bd899e234ae7c69644846d73c20189b330d | refs/heads/master | 2020-03-11T19:37:07.875140 | 2018-04-19T12:52:03 | 2018-04-19T12:52:03 | 130,212,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/atv/atv-project-2017/catkin_ws/src/geometry2-indigo-devel/tf2/include;/usr/include".split(';') if "/home/atv/atv-project-2017/catkin_ws/src/geometry2-indigo-devel/tf2/include;/usr/include" != "" ... | [
"jyri.hallikas@aalto.fi"
] | jyri.hallikas@aalto.fi |
34994c881016bb2d2e989ded9eadd27b121db701 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/F/fh/chronik-c-w.py | 0e67afeb716d54a7ed559a1fc8b809014f1d7cc2 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,480 | py | import scraperwiki
import lxml.html
import re
try:
scraperwiki.sqlite.execute("drop table if exists 'chronik-cw'")
scraperwiki.sqlite.commit()
except:
print 'e'
try:
scraperwiki.sqlite.execute("""
create table 'chronik-cw'
(
id INTEGER PRIMARY KEY AUTOINCREMENT
)
... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
873266cf35dafade2a083060805c6e6bb2ecc66d | a6af6bf06b57d91ae8f85b08a0d526d9c6bb8f55 | /manager/urls.py | cd7065d95d37b8ae9d993d9cdf3a205b05de1cf1 | [] | no_license | Laksh8/password_manager | 1ed12d7b660a561bf274847bc977d3415e306ab1 | 5c67708a03acd5fbcd84e19bca162ff738d7feea | refs/heads/master | 2022-12-17T13:34:38.466625 | 2020-09-07T13:48:11 | 2020-09-07T13:48:11 | 293,539,633 | 3 | 1 | null | 2020-10-04T14:16:08 | 2020-09-07T13:43:56 | CSS | UTF-8 | Python | false | false | 197 | py | from django.urls import path
from .views import HomeView,CreateDetail
urlpatterns = [
path("home/",HomeView.as_view(),name="home"),
path("detail/",CreateDetail.as_view(),name="detail")
]
| [
"lakshitkhanna311@gmail.com"
] | lakshitkhanna311@gmail.com |
fb7b437611f66adfd54e90510f3f92dc3f6d35db | a1119965e2e3bdc40126fd92f4b4b8ee7016dfca | /trunk/repy/tests/ut_repytests_testfileflushwrite.py | d09edfdf0a2664ea52eb5eed605015b61da090e1 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SeattleTestbed/attic | 0e33211ddf39efdbcf5573d4fc7fa5201aa7310d | f618a962ce2fd3c4838564e8c62c10924f5df45f | refs/heads/master | 2021-06-10T23:10:47.792847 | 2017-05-15T12:05:43 | 2017-05-15T12:05:43 | 20,154,061 | 0 | 1 | null | 2014-10-16T17:21:06 | 2014-05-25T12:34:00 | Python | UTF-8 | Python | false | false | 306 | py | #pragma repy
if callfunc == "initialize":
filename = "junk_test.out"
mode = "w+b"
num = "2"
fobj = open(filename,mode)
try:
fobj.write(num)
fobj.flush()
fobj.seek(0)
if fobj.read(1) != num:
print ' write did not flush to disk on mode: '+mode
finally:
fobj.close()
| [
"USER@DOMAIN"
] | USER@DOMAIN |
ad2b9d20f8a32efa3d159bdf352f6f5ca7cb2207 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_hometowns.py | 90f5f4e89e82fc12e01622be847075a1c3c83cd4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py |
from xai.brain.wordbase.nouns._hometown import _HOMETOWN
#calss header
class _HOMETOWNS(_HOMETOWN, ):
def __init__(self,):
_HOMETOWN.__init__(self)
self.name = "HOMETOWNS"
self.specie = 'nouns'
self.basic = "hometown"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3428ad0a18f37bcca79ede004c6b06a5d1307d4a | 37fef592f365194c28579f95abd222cc4e1243ae | /streamlit/venv/venv/bin/plasma_store | c5573b53b6370fbafb6bc9ffb9baf35917638e57 | [] | no_license | edimaudo/Python-projects | be61e0d3fff63fb7bd00513dbf1401e2c1822cfb | 85d54badf82a0b653587a02e99daf389df62e012 | refs/heads/master | 2023-04-07T03:26:23.259959 | 2023-03-24T12:03:03 | 2023-03-24T12:03:03 | 72,611,253 | 4 | 3 | null | 2022-10-31T18:10:41 | 2016-11-02T06:37:17 | null | UTF-8 | Python | false | false | 308 | #!/Users/edima/Documents/Coding/python_projects/streamlit/venv/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pyarrow import _plasma_store_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(_plasma_store_entry_point())
| [
"edimaudo@gmail.com"
] | edimaudo@gmail.com | |
8b7f905dfb0eb18ae9e537d1c7ddd44315b701fe | 1c81269ce733638f1f8b7a5640468110acdb79bf | /BIOMD0000000341/model.py | 8ed882e2dda90d5c51fce487fa0406ff08190222 | [
"CC0-1.0"
] | permissive | biomodels/BIOMD0000000341 | f21831ecc004310f422c35de92418799ba925c63 | aa43ac45a44ea59bb424fe548f8b2cd639b98d05 | refs/heads/master | 2021-01-22T05:05:54.927382 | 2014-10-16T05:17:12 | 2014-10-16T05:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'BIOMD0000000341.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"stanleygu@gmail.com"
] | stanleygu@gmail.com |
89fc8813bd847262276d578b2abb8885a2b7628a | cd2d3b6be41eb9b96ecc3a22dc730325c21f22e6 | /charalog/log3/gui899.cgi | c58445d49b5b3aeb308e1f5d50d3633773930eb8 | [] | no_license | cappuu/TC | c61f235349e9a68d472fa85bbea1adbef3ea154a | def08d09219e11bee2135f6b796569b769ee21c1 | refs/heads/master | 2021-09-10T19:37:33.847161 | 2018-03-31T22:56:05 | 2018-03-31T22:56:05 | 124,523,296 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 280 | cgi | [188년07월]여몽님이 무안국님을 상대로 설전에서 승리!
무안국님의 수비력이 약화되었습니다.
<font color=red>32</font>회:여몽의 정신력 12 (-2) VS 무안국의 정신력 0 (-4)
[188년07월]여몽(지력:51 매력:50)님과 설전을 시작!
| [
"lu2447315@gmail.com"
] | lu2447315@gmail.com |
018c8410a1bce41a65394e62993f4dc4cff82327 | 6bd51065a8ecd097e7f80ee3c6acd16a083be350 | /tensorflow/python/ops/linalg/linalg_impl.py | 04a15e3e5bc548f99bd5d4ad1fcbf0fa22b4d1ef | [
"Apache-2.0"
] | permissive | cglewis/tensorflow | 29b50dadbdb599bacd06af960689bc518a472de1 | 6eac524ef63728bdc10c40f95d30c94aede5f4ea | refs/heads/master | 2023-04-07T18:38:29.752739 | 2017-10-31T17:56:48 | 2017-10-31T17:56:48 | 109,033,012 | 0 | 0 | Apache-2.0 | 2023-04-04T00:37:48 | 2017-10-31T17:54:48 | C++ | UTF-8 | Python | false | false | 3,837 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
7543103a30954629ca3c0d0b21c3a1ff83558b28 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_256/ch17_2020_04_12_21_38_26_417893.py | e695d5c40e46d4c5254606021bd2a1157e32c54e | [] | 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 | 230 | py | def eh_bissexto(ano):
if ano % 100 == 0:
if ano % 400 == 0:
eh_bissexto=True
else:
eh_bissexto=False
elif ano % 4 == 0:
eh_bissexto = True
else:
eh_bissexto=False | [
"you@example.com"
] | you@example.com |
031b3c2e4a6a54a79401414b1c1ef1cd32982b62 | 9fcd6a91132fd12731d259fe7d709cdf222381bb | /2022/23/foo.py | f590717c6e2d0db817f4d4b7d8f9059247dd4462 | [] | no_license | protocol7/advent-of-code | f5bdb541d21414ba833760958a1b9d05fc26f84a | fa110cef83510d86e82cb5d02f6af5bb7016f2c7 | refs/heads/master | 2023-04-05T15:33:26.146031 | 2023-03-18T14:22:43 | 2023-03-18T14:22:43 | 159,989,507 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | import sys
from collections import *
from itertools import *
from util import *
def parse(line):
return line.strip()
xs = list(map(parse, sys.stdin))
g = set()
for y, row in enumerate(xs):
for x, c in enumerate(row):
if c == "#":
g.add((x, y))
dirs = [(N, NW, NE), (S, SE, SW), (W, NW, SW... | [
"niklas@protocol7.com"
] | niklas@protocol7.com |
b66cd41d94a322bd42c30251b79a75dfe84c7937 | 48d850797008fca07e2e60da2f2cc2551d30aa90 | /python_tech/description.py | 7595468231b75ea6b3daa3f85837793f3821ec3e | [] | no_license | Vvegetables/code-piece | 69bfc7bd5371aee20e9088d82678c47f0625cb84 | cbf652ec600e8f6644fb0df2ab79d8304d006fd0 | refs/heads/master | 2020-04-05T17:30:38.526603 | 2019-04-04T08:37:45 | 2019-04-04T08:37:45 | 157,064,280 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | from openpyxl.styles.fills import PatternFill
class Color:
def __init__(self, color):
self.color = color
def __get__(self, obj, objtype=None):
return self.color
def __set__(self, obj, value):
pass
def __delete__(self, obj):
pass
class OpTypeColor:
CREAT... | [
"625736074@qq.com"
] | 625736074@qq.com |
1c9efeee9d9d6d2654ecc23b8f8ee071cbad534a | c6a8c75e6fa9abe7f38f8d3d30b531e7a19599e1 | /.history/spider_20210124001849.py | dbe9bfbaf8146862984c613c38ee67898d1d412b | [
"MIT"
] | permissive | KustomApe/yahoauc_spider | b8d16e6a7c23694656db624c8b2fa632500efdec | bea630bbe1aa88e5138a98137c21865f316fdc96 | refs/heads/main | 2023-02-24T11:59:07.431130 | 2021-01-23T16:19:40 | 2021-01-23T16:19:40 | 332,230,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | import io,sys
import requests
import urllib.request as urlreq
from bs4 import BeautifulSoup
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
# def main():
words = input("検索したいキーワードを入力してください(複数の場合は半角スペースで区切ってください):").split(' ')
print(words)
word = '+'.join(words)
print(word)
url_origin = 'https://au... | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
17e8900933c8e8cb478898c421a12f1279c6e8bb | 52825eeb90f5c31a344a5485617ff4ba2af42217 | /chapter_09/read_file.py | fa29627394da8ba6dfc0b47613f6adfb064663b8 | [] | no_license | hsqf/Course_Python | e3c73e1e1c067f3c2d83def49651e3bb111737f2 | d1a0633a600dc84d9faed9537b64ff1f16b1a9ce | refs/heads/master | 2021-01-03T20:34:13.404896 | 2019-09-22T02:29:02 | 2019-09-22T02:29:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # -*- coding: utf-8 -*-
"""
运用生成器读取500G 的大文件,该文件比较特殊,只有一行
"""
def my_read_lines(file, new_line):
buf = ""
while True:
while new_line in buf:
pos = buf.index(new_line)
yield buf[:pos]
buf = buf[pos + len(new_line):]
chunk = file.read(4096*10)
if ... | [
"1692717842@qq.com"
] | 1692717842@qq.com |
fdfa492e0b97f77a289aff3eaacf3943ad08e18d | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res_bw/scripts/common/lib/plat-mac/lib-scriptpackages/explorer/microsoft_internet_explorer.py | ba59e3be1de6fb0d42931ca8c8de17bf2ce63683 | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,350 | py | # 2016.05.01 15:31:52 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/plat-mac/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py
"""Suite Microsoft Internet Explorer Suite: Events defined by Internet Explorer
Level 1, version 1
Generated from /Applications/Internet Explorer.app
AETE/AEUT r... | [
"info@webium.sk"
] | info@webium.sk |
2482724f54aef90cf5adfdc227f20d61c3724e5c | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/전달값과 반환값_20200705101830.py | 90423cb6a5058eb25ea7be952b5cd7f6cf87529a | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | def open_account():
print("새로운 계좌가 개설되었습니다.")
def deposit(balance, money): # 입금
print("입금이 완료되었습니다. 잔액은 {0} 원입니다.".format(balance + money))
return balance + money
def withdraw(balance, money) # 출금
if balance >= money: # 잔액이 출금보다 많으면
print("출금이 완료되었습니다. 잔액은 {0} 원입니다.".format(balance - money... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
e2422acbd69777a09ef24405d863b1b4cccd8825 | 491980a6d5936d09bc1bb9b9124729c02f3b1724 | /hello-01/crawl/os-module.py | c073ce4a0a87c4824c5ef3c359eb7dc3b21c70ce | [] | no_license | larryback/hello | 2dc8506dcc20af615feff1f29d2b889bbb1142bb | e0937cd616c1dc7795d887ea88613ef399d7b17d | refs/heads/master | 2020-04-04T23:15:36.303348 | 2019-05-02T08:48:31 | 2019-05-02T08:48:31 | 156,352,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # 모듈을 읽어 들입니다.
import os
# 기본 정보를 몇 개 출력해봅시다.
print("현재 운영체제:", os.name)
print("현재 폴더:", os.getcwd())
print("현재 폴더 내부의 요소:", os.listdir())
# 폴더를 만들고 제거합니다[폴더가 비어있을 때만 제거 가능].
os.mkdir("hello01")
os.rmdir("hello01")
# 파일을 생성하고 + 파일 이름을 변경합니다.
with open("original.txt", "w") as file:
file.write("hello")
os.rename("... | [
"41230266+larryback@users.noreply.github.com"
] | 41230266+larryback@users.noreply.github.com |
e8f19c20fc6b1b46f4f669a2c8ebb08237e48e35 | 624ee4b890e6af1e04201e214811b2021c2f9430 | /cartography/intel/github/users.py | 81eeeefae0c66b7fbcc0b1c97982f87d4b772be9 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | sigopt/cartography | fa31420613e3aaa396c0d3f7137624e083588300 | 59b16d4371518915822e50b60bbb919619ed2a1a | refs/heads/master | 2023-08-11T08:33:10.800166 | 2021-09-28T20:05:24 | 2021-09-28T20:05:24 | 411,351,171 | 0 | 0 | Apache-2.0 | 2021-09-28T20:05:25 | 2021-09-28T16:05:59 | Python | UTF-8 | Python | false | false | 3,309 | py | import logging
from typing import Dict
from typing import List
from typing import Tuple
import neo4j
from cartography.intel.github.util import fetch_all
from cartography.util import run_cleanup_job
from cartography.util import timeit
logger = logging.getLogger(__name__)
GITHUB_ORG_USERS_PAGINATED_GRAPHQL = """
... | [
"noreply@github.com"
] | sigopt.noreply@github.com |
0d2e7a3f60ea72c80388fabb4abb61eeb00715fa | 46ad9c1dea1ae28763296089b4421c69c2dbd834 | /backend/menu/api/v1/serializers.py | 9321412906410326338a101a88c3fa7a99e030e9 | [] | no_license | crowdbotics-apps/teste-28254 | f36b97833e2059984066debfd1fc26a066a60150 | c078ffabf55a19a60c985b166f15375b07b445b5 | refs/heads/master | 2023-06-16T16:02:29.123525 | 2021-07-11T19:55:14 | 2021-07-11T19:55:14 | 380,772,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | from rest_framework import serializers
from menu.models import ItemVariant, Country, Item, Category, Review
class ItemSerializer(serializers.ModelSerializer):
class Meta:
model = Item
fields = "__all__"
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Catego... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
693f3bdbc9b4b00c3199fcb32c86f162faa95506 | 3aad08b916e28c7ad361163a9c18b71a44e51b72 | /jobboard/migrations/0015_auto_20180804_1811.py | 5ec46a59953003f00eb6521062b85cf374bb018b | [] | no_license | vaibhavmule/csclub | 870fd8bb61c3d094a510bea2eb603d09bbba1322 | e7a7ee9fa8790da82b7f0fd69622214acc9f8a28 | refs/heads/master | 2022-12-19T01:33:41.974383 | 2019-07-26T04:45:05 | 2019-07-26T04:45:05 | 164,586,470 | 0 | 0 | null | 2022-12-07T23:53:32 | 2019-01-08T07:08:54 | Python | UTF-8 | Python | false | false | 421 | py | # Generated by Django 2.0.7 on 2018-08-04 12:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobboard', '0014_auto_20180804_1750'),
]
operations = [
migrations.AlterField(
model_name='employer',
name='logo',
... | [
"vaibhavmule135@gmail.com"
] | vaibhavmule135@gmail.com |
2e0b67aac1f41cacc4bbc5de6d1cf92ec7857539 | 7c64360b6e32f8576344048db7b9938ea722dedd | /ana/x021.py | 93be8d60d853a8451d2d049e3cffbd3e7f207af5 | [
"Apache-2.0"
] | permissive | recepkandemir/opticks | 4be08a9243c3e0abe82eca77be70178e6384e555 | 523387f7593676bab58de22d22049e650de3f5c3 | refs/heads/master | 2023-01-24T16:55:04.131498 | 2020-12-04T20:25:09 | 2020-12-04T20:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,929 | py | #!/usr/bin/env python
#
# Copyright (c) 2019 Opticks Team. All Rights Reserved.
#
# This file is part of Opticks
# (see https://bitbucket.org/simoncblyth/opticks).
#
# 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... | [
"simoncblyth@gmail.com"
] | simoncblyth@gmail.com |
49d70e2708022caf129f195cae70529b7c6fa51e | c7e0c86a24521a13c3b06c73244e9f5854f47284 | /smarts/core/traffic_provider.py | eef2560acb572c0069631f29b5d1ca63fe1b7423 | [
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"CC-BY-NC-4.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-generic-exception",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"BSD-3-Clause",
"MIT",
"LGPL-... | permissive | huawei-noah/SMARTS | 243d1f1fa4d3afe52a1dd8f7c6c500054d4a1a97 | 2ae8bd76a0b6e4da5699629cec0fefa5aa47ce67 | refs/heads/master | 2023-08-31T05:06:29.064270 | 2023-08-28T23:11:31 | 2023-08-28T23:11:31 | 301,903,883 | 824 | 212 | MIT | 2023-08-08T14:52:00 | 2020-10-07T02:11:23 | Python | UTF-8 | Python | false | false | 2,679 | py | # Copyright (C) 2022. Huawei Technologies Co., Ltd. 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 us... | [
"noreply@github.com"
] | huawei-noah.noreply@github.com |
186235a3f8058ba3a8a1da830fd1a8321a052a05 | a606893da1e354c7c617d0c9247b23118be2813a | /字节/394.py | f3a517a43cb453602e3d88f33323f7664bcf76f2 | [] | no_license | lindo-zy/leetcode | 4ce6cb9ded7eeea0a6953b6d8152b5a9657965da | f4277c11e620ddd748c2a2f3d9f5f05ee58e5716 | refs/heads/master | 2023-07-22T06:19:00.589026 | 2023-07-16T12:35:14 | 2023-07-16T12:35:14 | 229,958,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
class Solution:
def decodeString(self, s: str) -> str:
# 记录当前字符串
res = ''
# 记录当前的数字
num = ''
st = []
for c in s:
if c.isdigit():
num += c
elif c == '[':
st.append((res, i... | [
"492201845@qq.com"
] | 492201845@qq.com |
2a8c8dee3663795e00d729773d1b9618a0cba5f2 | f5c859f8a8c31e343f8a293cc43982f0879db2ab | /class-29/demo/users/users/views.py | 15df2ff370239a2127a5240fe4f4494f08d6d212 | [] | no_license | Plastiche/seattle-python-401n1 | ff12b9cb0b95f048b34ddada38485804e1449fdc | 0f28d6e5454784827420863615c0e119f60f507e | refs/heads/master | 2022-12-29T05:14:51.944810 | 2020-10-17T08:30:27 | 2020-10-17T08:30:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic.edit import CreateView
from .forms import CustomUserCreationForm
# Create your views here.
class SignUpView(CreateView):
form_class = CustomUserCreationForm
success_url = reverse_lazy('login')
template_nam... | [
"rogerhuba@gmail.com"
] | rogerhuba@gmail.com |
3b0d5912ba87d9d5d830ca2af6c0870e91e91e09 | ad17506f24832e321db2c88e131a663d6763dd43 | /test/json/店铺运营_单价优化.py | 368115f197fe5ec901d70106907a388ddc214a59 | [] | no_license | gitletian/mpintranettool | 01e291f2c03a0da4d1733ae45a008cbe9a8873fd | c47d62c890ebf851d84d3236c6a71930234519bb | refs/heads/master | 2021-09-15T21:19:14.998815 | 2018-06-11T02:36:13 | 2018-06-11T02:36:13 | 105,220,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,733 | py | # coding: utf-8
# __author__: ""
####################################### 店铺运营 -> 单价优化 #######################################
# 请求(默认)参数
{
"interval": [
{"name": "start_date", "value": "2017-01-02"},
{"name": "end_date", "value": "2017-05-02"},
{"name": "date_type", "value": "1"}
],
... | [
"guoyuanpei12@sina.com"
] | guoyuanpei12@sina.com |
ae9263c0bd6290e23b612f4680453fa3266dd468 | 4c499782655f8e929a5dd6b39d6c5d378fcfd7bd | /amazing_quicksort_implementation.py | 320c61502e441727f75371975a065d5fb4d57188 | [] | no_license | IanCBrown/practice_questions | 53a3fd66bee807f6e30e6d57632966f146c704c9 | 838b94c26cd3c26b76c3908277944a3b5f9bc7c7 | refs/heads/master | 2021-08-06T07:14:57.237709 | 2020-04-16T05:03:33 | 2020-04-16T05:03:33 | 149,521,025 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | def quicksort(arr):
if len(arr) <= 1:
return arr
pivot = arr[len(arr) // 2]
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]
return quicksort(left) + middle + quicksort(right)
print(quicksort([3,6,8,10,1,2,1])) | [
"icb0004@auburn.edu"
] | icb0004@auburn.edu |
675e47687ddcdc0a01f4c3e27f1c64c516241d26 | 6905f33488d3ee648baf6a1fd8a8609677ee0b5e | /sesion_5/mongo.6.py | 30ae71aa57ee0a359161b54b91ecc14bd14fa253 | [] | no_license | badillosoft/python-cisco | 66394cd07c5e45061b888a733edc121f1d21c19f | a0ab2190af837683d2be841fbc954d3e2d1ea5c1 | refs/heads/master | 2021-01-21T18:59:08.937297 | 2017-05-27T03:22:54 | 2017-05-27T03:22:54 | 92,102,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # _*_ coding: utf-8 _*_
from pymongo import MongoClient
client = MongoClient()
db = client.cisco
personas = db.personas
f = open("personas_nombres.txt", "w")
for persona in personas.find():
nombre = "%s %s\n" % (persona["nombre"], persona["apellido"])
f.write(nombre)
f.close() | [
"kmmx@hsoft.local"
] | kmmx@hsoft.local |
28b8b33333519a7d09876a2e371e37cbf42f5bcb | b037e81ad5486cc9edd8d6a11184c3657dc9781b | /magicranker/rank/tests.py | d7a8fef65eb52d380125d0c90f18cb5721b75e4d | [] | no_license | lextoumbourou/magicranker | f9bc36b2b1d006a39d655d7278a154d51a57392f | 7859359561702ccf930fcc03118845e7a336c760 | refs/heads/master | 2021-01-13T17:13:37.787155 | 2018-03-24T03:57:44 | 2018-03-24T03:57:44 | 7,437,619 | 6 | 4 | null | 2018-03-20T12:06:24 | 2013-01-04T08:54:44 | JavaScript | UTF-8 | Python | false | false | 2,681 | py | from django.test import TestCase
from magicranker.rank.Ranker import Ranker
class RankerTest(TestCase):
fixtures = ['rank_stock_data.yaml']
def testRankByPEReturnsLowestFirst(self):
pe_rank = {
'name': 'pe',
'min': {
'changeable': True,
'value'... | [
"lextoumbourou@gmail.com"
] | lextoumbourou@gmail.com |
4435a3baf7f81a0295da570ad2dd917b0ae33e92 | 9d21e0faaa56e477d257fe54f7f3a95c477e7611 | /u02/u02_03_time.py | c77e6e56c1f4b1f4a10ac0ed8b41ad92e571b216 | [] | no_license | dorahero/python_basic | e6b0d3607145f714fd0e4a5af29f5787bf6184ca | d6ea4892f9f789b09e24450853946fb787b22c38 | refs/heads/master | 2022-12-07T20:35:17.961818 | 2020-08-08T02:27:32 | 2020-08-08T02:27:32 | 285,957,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import time
import locale
locale.setlocale(locale.LC_CTYPE, 'chinese')
unix_sec = time.time()
loc_time = time.localtime()
utc_time = time.gmtime()
readable_time = time.asctime()
print('UNIX Time:', unix_sec)
print('local time:', loc_time)
print('GM time:', utc_time) # 台灣-8
print('readable time:', readable_time)
# ... | [
"dorahero2727@gmail.com"
] | dorahero2727@gmail.com |
7669f7c7686ac2cebfe0ae0c1044839591068e90 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04001/s503027557.py | 1174eb7e766c0657923cba5115fda20915afbf81 | [] | 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 | 1,193 | py | import sys
S=input()
S_seq=[]
for i in S:
S_seq.append(i)
if(len(S_seq)==1):
print(int(S))
sys.exit()
separate=[]
for i in range(len(S_seq)-1):
a=[]
if(i==0):
a.append("*")
a.append("_")
else:
for j in separate:
a.append(j+"*")
a.append(j+"_")
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
018c7914276792cf907ae124a62d987e05caf3b1 | 69d8e789b289edfeb2fc18d0ef1c395bde9fb375 | /candy_135.py | 438b09fb4345704dccd4ac6f2b639154a3a7e77f | [] | no_license | Lucces/leetcode | d2db842eae7cdf1d7b9c56844660eb6f1940d88a | 2c3dbcbcb20cfdb276c0886e0193ef42551c5747 | refs/heads/master | 2021-01-19T05:59:04.712086 | 2016-08-29T13:33:00 | 2016-08-29T13:33:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | #!/usr/bin/env python
# coding=utf-8
class Solution(object):
def candy(self, ratings):
"""
:type ratings: List[int]
:rtype: int
"""
n = len(ratings)
if n == 1:
return 1
candies = [1] * n
i = 0
requirement = 1
while i < n - 1... | [
"cntqrxj@gmail.com"
] | cntqrxj@gmail.com |
bc74411398f110fae4bc606d35050688aa740125 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03372/s201968363.py | 8876222b4837bd5d33ca01385020af07a1d69219 | [] | 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 | 1,013 | py | N, C = map(int, input().split())
Xi = [list(map(int, input().split())) for _ in range(N)]
#両端に(0,0)があると考えると楽なので追加
Xi.insert(0, [0, 0])
Xi.append([C, 0])
# 真上に0があると考える。下から⇢にいくか←にいくかで区別
#右方向に進んだときの累積Caloryと累積max
total = 0
R_max = [0 for i in range(N + 2)]
for i in range(1, N + 1):
total += Xi[i][1] - (Xi[i][0] - Xi... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
24887d33f578465e60b4ebdec574cad154a3b999 | 02b5e89f444c695fd117c60bb68b9d801945bb97 | /ooi_data/test/test_ooi_data.py | 61f473e1be6c818737eade6801ab9a5268715ef3 | [] | no_license | petercable/super-guacamole | a4a728bc192c37060cd006a9756f7f7977f4d640 | c35a27fd1aaafa8f03b747481e41339d9c890e3f | refs/heads/master | 2020-06-14T08:10:31.866083 | 2016-11-30T17:57:34 | 2016-12-02T01:28:00 | 75,212,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,058 | py | import unittest
import datetime
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy_utils import database_exists, create_database, drop_database
from ooi_data.data import find_modified_bins_by_jobname
from ooi_data.ooi_postgres.model import Base, Parameter, Stream, PartitionMe... | [
"petercable@gmail.com"
] | petercable@gmail.com |
454e0e18517f77fc782524c77362a56c27983aa9 | ac69b8e84c0980310c960d649d5202315475247b | /awesone-python3-webapp/www/orm.py | da0e9f9ec7ada1e5f7413a30fc353b16644eb31c | [] | no_license | diffstyle/Python_learning | b511649b3c48c1acc96a804782cf13ef5b11b689 | 6f66c16733ca3d712925f760ab332714f51fd4d4 | refs/heads/master | 2020-04-30T05:41:56.746377 | 2019-03-21T06:00:01 | 2019-03-21T06:00:01 | 176,632,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,019 | py | #!/usr/bin/python
# -*- coding: utf-8 -*
#__author__ = 'Zhang Shi Qiang'
import asyncio, logging
import aiomysql
def log(sql, args=()):
logging.info('SQL: %s' % sql)
async def create_pool(loop, **kw):
logging.info('create database connection pool...')
global __pool
__pool = await aiomysql.create_poo... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a6f8afb19ca6a3911d015c0dfdd5601c5a5c6320 | 9851c3f47c1aa165bc0d239074fe238f82055875 | /Data Structure/Sort/Merge Sort/main.py | 70899459f8d5b0b94f22fd5cafa4b96424ac2315 | [
"Apache-2.0"
] | permissive | InnoFang/algo-set | 12f886dbec0da664327d26bcaf02c1316151a643 | 2419a7d720bea1fd6ff3b75c38342a0ace18b205 | refs/heads/master | 2023-03-16T09:51:24.631068 | 2023-03-13T11:08:54 | 2023-03-13T11:08:54 | 86,413,001 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | import random
def merge_sort(arr):
if len(arr) < 2:
return arr
mid = len(arr) // 2
left, right = arr[:mid], arr[mid:]
return merge(merge_sort(left), merge_sort(right))
def merge(left, right):
result = []
while len(left) and len(right):
if left[0] < right[0]:
... | [
"innofang@outlook.com"
] | innofang@outlook.com |
56de320d480c828beebb2ca1bb2de89c6e7d64ac | 9ac405635f3ac9332e02d0c7803df757417b7fee | /cargues_catalogos/migrations/0027_auto_20200130_0939.py | 439603491fb07f502366a36c25bed2c3d63a6343 | [] | no_license | odecsarrollo/07_intranet_proyectos | 80af5de8da5faeb40807dd7df3a4f55f432ff4c0 | 524aeebb140bda9b1bf7a09b60e54a02f56fec9f | refs/heads/master | 2023-01-08T04:59:57.617626 | 2020-09-25T18:01:09 | 2020-09-25T18:01:09 | 187,250,667 | 0 | 0 | null | 2022-12-30T09:36:37 | 2019-05-17T16:41:35 | JavaScript | UTF-8 | Python | false | false | 3,707 | py | # Generated by Django 2.2.6 on 2020-01-30 14:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sistema_informacion_origen', '0004_auto_20190610_1453'),
('colaboradores', '0001_initial'),
('cargues_catalo... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
f37db5df55b3dc835e1343425ac7fb15fae540b5 | 59d1f3e95cff507f97b8a9b09e580b49bf9e5668 | /idioms/python/PolicyBasedDesignEx3.py | 8d1f9532ad3d0b96098e4bea96f7367647debdfb | [] | no_license | baites/examples | 55daa4602c30d3234de0e769418cd072dc068f8f | 97246c26483637b95198ed2ef76e234d3c0194dc | refs/heads/master | 2023-05-27T05:28:30.174487 | 2023-05-25T09:57:48 | 2023-05-25T09:57:48 | 101,946,654 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | #! /usr/bin/env python
# Define policy classes
class InputMessage:
"""Implement a message."""
def run(self):
return 'hello world'
def AddPrefix(Input):
"""Implement the concatenation of a prefix."""
class _(Input):
def set_prefix(self, prefix):
self._prefix = prefix
... | [
"bazterra@gmail.com"
] | bazterra@gmail.com |
f73d5d7bea8a3ec21985e6574fee70d7ef89826f | f526368983ada3dcb61b882fd6f1fcdff628408f | /utilities/deploy/apache/project.wsgi | 73e272a01d27702711cd16de874d7d1842cc006d | [] | no_license | dimagi/data-hq | c43b212ae44ed5d86c38926e3a70d81599634a8c | 763c0865e1d51d6a5139978068959ce084e6eccc | refs/heads/master | 2016-09-10T15:00:59.756145 | 2010-09-16T17:56:32 | 2010-09-16T17:56:32 | 847,904 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,962 | wsgi | #!/usr/bin/env python
import os
import os.path
import sys
# Calculate the project path based on the location of the WSGI script.
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
SRC_ROOT = os.path.dirname((os.path.dirname(__file__)))
# add our local apps and shared directory to the path for ... | [
"rluk@dimagi.com"
] | rluk@dimagi.com |
97a6785c9ef815328d3605e2c2f8adf079c11076 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Python-3-Video-Tutorial/Exercise Files/Exercise Files/17 Modules/modules.py | 6cc4314e961bba4d3ba2d6d2441efc5bf4f916b6 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 303 | py | #!/usr/bin/python3
# modules.py by Bill Weinman [http://bw.org/]
# This is an exercise file from Python 3 Essential Training on lynda.com
# Copyright 2010 The BearHeart Group, LLC
import sys
def main():
print('Python version {}.{}.{}'.format(*sys.version_info))
if __name__ == "__main__": main()
| [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
acd6a70fc201c4fc5c8f30638577f52f2efe6935 | 4ec709b16e366c60a9c7f2f7696608b036825140 | /merced/policies/__init__.py | 8f9b5f3ef69dc40c06c6ec95fc9a5f916872bdd3 | [] | no_license | alanccai/sierra-pywr | 19c7efc4485879a4ca35677fdb14b3c795829e02 | 4447c6247af5159030b3025f14c2397283c4fcd0 | refs/heads/master | 2020-08-19T10:17:30.590861 | 2019-10-15T20:33:45 | 2019-10-15T20:33:45 | 215,909,820 | 0 | 0 | null | 2019-11-15T17:54:23 | 2019-10-18T00:31:58 | null | UTF-8 | Python | false | false | 179 | py | # Importing specific policy classes into this file exposes them for importing from the policies module as a whole
from .IFRs import Requirement_Merced_R_below_Crocker_Huffman_Dam | [
"herr.rhein@gmail.com"
] | herr.rhein@gmail.com |
3735f1892b80ec43e77425072adb02483996160a | 3312a3ba01e124ba6083678501a58df3e8b960c6 | /zero_to_one_hundred/processors/refresh_puml_processor.py | 103af2b007a7c2e81867cf432f006c32d9168c6f | [
"Apache-2.0"
] | permissive | fossabot/0to100 | 0940971e7ab0d17c1ddf0b30da497960e87f6cb3 | 37faa1340b2ec8b87e5d4c268c8caf521ea164cb | refs/heads/main | 2023-07-30T12:22:25.362981 | 2021-09-22T15:30:23 | 2021-09-22T15:30:23 | 409,258,608 | 0 | 0 | Apache-2.0 | 2021-09-22T15:30:22 | 2021-09-22T15:30:21 | null | UTF-8 | Python | false | false | 897 | py | """RefreshPUMLProcessor:
add uml like mind-map of the sections
"""
# pylint: disable=C0116,R0903,E0401,W0703,W1201,redefined-outer-name,missing-function-docstring,E0401,C0114,W0511,W1203,C0200,C0103,W1203
from configs.config import ConfigMap
from models.map import Map
from models.puml import PUML
class RefreshPUMLPro... | [
"noreply@github.com"
] | fossabot.noreply@github.com |
7b84e1ecff86cba5ead18f12b7502f8e708e2555 | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /xlsxwriter/test/comparison/test_chart_format29.py | 521fac41d1ed255fe5b9d0ad2f4b5bc36945acba | [
"BSD-2-Clause-Views"
] | permissive | elessarelfstone/XlsxWriter | 0d958afd593643f990373bd4d8a32bafc0966534 | bb7b7881c7a93c89d6eaac25f12dda08d58d3046 | refs/heads/master | 2020-09-24T06:17:20.840848 | 2019-11-24T23:43:01 | 2019-11-24T23:43:01 | 225,685,272 | 1 | 0 | NOASSERTION | 2019-12-03T18:09:06 | 2019-12-03T18:09:05 | null | UTF-8 | Python | false | false | 1,854 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
a74ace8e8a4cf26b1911783c160a00a797a3e2e1 | 053ee75478fc27fcf12993e9db89856e492e2ce4 | /modules/dbnd-airflow/test_dbnd_airflow/scenarios/scheduler_for_profiling.py | dff8c537769b4ecc792af7dc0b8da34913821fc0 | [
"Apache-2.0"
] | permissive | bireports/dbnd | ece7ee767c025043d65565bf17af44a56b59c976 | 3fb73677f162892921ba1de39612177a2d149a5e | refs/heads/master | 2022-11-09T14:47:15.736707 | 2020-06-21T18:39:27 | 2020-06-21T18:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | import logging
import os
# before we load any config!
os.environ["DBND_DISABLE_SCHEDULED_DAGS_LOAD"] = "True"
os.environ["DBND__LOG__SQLALCHEMY_PROFILE"] = "True"
os.environ["DBND__LOG__SQLALCHEMY_TRACE"] = "True"
print(os.environ["DBND__LOG__SQLALCHEMY_TRACE"])
# in order to profile scheduler.py Dag Processor you ... | [
"evgeny.shulman@databand.ai"
] | evgeny.shulman@databand.ai |
719937c9e472e9136b0cdae830660dd03e879fa4 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /68omQmgQEwv8558ZK_1.py | a7ca5f47756c160a41ed947582daf8546938a770 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py |
characters = {
'Knight': [120, 140, 6],
'Warrior': [180, 71, 8],
'Fairy': [71, 100, 16],
'Robot': [160, 120, 11],
'Giant': [160, 200, 4]
}
items = [[10, 20], [20, 30], [3, 24]]
def max_stats(character, gold):
return [characters[character][i] + items[i][0] * min(gold // items[i][1], 5) for i in range(3)]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0b803d90ae6d480c1ea5690997ae209763b57ca4 | b898bf5c6bfc92a652fae3f4174f7326554767fa | /tools/lint/clang_format.py | 3256471c627e9b02434b569785a2098f81306536 | [
"BSD-3-Clause"
] | permissive | rcory/drake | 98ee71c89431b50cc405c2504a08e39637fe78b4 | d6537f094d1141dd84d5f2dbb5bafa4042797fa9 | refs/heads/master | 2023-06-08T09:00:01.526990 | 2018-02-22T15:27:31 | 2018-02-22T15:27:31 | 88,185,612 | 1 | 0 | NOASSERTION | 2020-04-30T21:53:10 | 2017-04-13T16:36:33 | C++ | UTF-8 | Python | false | false | 359 | py | """Drake's wrapper for the clang-format binary.
"""
import os
import sys
def get_clang_format_path():
if sys.platform == "darwin":
path = "/usr/local/bin/clang-format"
else:
path = "/usr/bin/clang-format-4.0"
if os.path.isfile(path):
return path
raise RuntimeError("Could not f... | [
"jeremy.nimmer@tri.global"
] | jeremy.nimmer@tri.global |
8ae3f278639a3ee5fee546538811ae1771a7855e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_fascination.py | c97c7b7f18fa8e0b7296a300e715d2fdc9b789ab | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py |
#calss header
class _FASCINATION():
def __init__(self,):
self.name = "FASCINATION"
self.definitions = [u'the fact of finding someone or something fascinating: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
52d2939c4e9fd69d2937834bd3fcf489338853b4 | 362fc140b0a179878ecb9121bf83e10d78f60ce0 | /_unittests/ut_documentation/test_run_notebooks_onnx_viz.py | 955eea555f25fc1a6cc87f19bb2a65b221c8654c | [
"MIT"
] | permissive | adrinjalali/mlprodict | 4694e7f8435c13079082ad8726698a4b1b74ea8d | bc1606ec3683a7e2830875350eafc8cb8e2bc3a0 | refs/heads/master | 2020-06-23T13:38:08.097582 | 2019-08-13T12:50:29 | 2019-08-13T12:50:29 | 198,639,337 | 0 | 0 | null | 2019-07-24T13:18:00 | 2019-07-24T13:17:59 | null | UTF-8 | Python | false | false | 1,099 | py | # -*- coding: utf-8 -*-
"""
@brief test log(time=30s)
"""
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.ipythonhelper import test_notebook_execution_coverage
from pyquickhelper.pycode import (
add_missing_development_version, ExtTestCase, unittest_require_at_least
)
impo... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
c7a144e715bc2b8f0a12930df94f080903ee1c6c | 94f180b4b0b0a699d6948fd5e1216d16d6735edc | /source-code/Subdomain Visit Count 811.py | 47453a6bde243d7a44c8a505b14e6a990970c660 | [
"MIT"
] | permissive | ttungl/Coding-Interview-Challenge | 7093b7f8da0c03abaf2f61340384cdc15c7a31e7 | d80c3e15468d50b42ee53fcc73e9326c6c816495 | refs/heads/master | 2021-09-15T05:25:27.192040 | 2018-05-26T19:02:33 | 2018-05-26T19:02:33 | 115,586,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | # 811. Subdomain Visit Count
# ttungl@gmail.com
# A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com", and at the lowest level, "discuss.leetcode.com". When we visit a domain like "discuss.leetcode.com", we will also vi... | [
"noreply@github.com"
] | ttungl.noreply@github.com |
f6c7bab54e61be867b0e953a842289f1679b16d6 | 958c748bee94e214813df9555852fe7c27fc9e79 | /stacc.py | 418ab22a20005d7b1423ba92c6852927afd2e7bc | [] | no_license | kekloldyormarket/SeemsRareSOLdrop | 3b0c3147066d14eebd13973b2e0ac292e512dacb | 217a141f5517a432046914aaaa3c6cc285b3bcd8 | refs/heads/main | 2023-08-25T20:01:37.735588 | 2021-10-11T03:03:08 | 2021-10-11T03:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import json
import requests
with open('staccsnap.json', 'r') as f:
staccs = json.loads(f.read())
for stacc in staccs:
try:
arweave = requests.get(staccs[stacc].uri).json()
for att in arweave['attributes']:
if att['trait_type'] == 'Rarity':
rarity = float(att['value']... | [
"you@example.com"
] | you@example.com |
523e3b509b5dc8ae3c6c8ee8ea83a1994f1d9bd0 | 2a028a56022805980bf31f11aa713d28de8f8622 | /0901/mayi - 饼图、分页/mayi/mayi/settings.py | 047abfbaeccaf11cbf7c33e50c3d9c7c52b5ae52 | [] | no_license | ALICE5/U-PLAN | e066ab9b3e52446cd7318b8f7c38a818d6250c4c | 76f92ba074f30ea51b771db1e0c656b3cd3d6607 | refs/heads/master | 2020-03-27T00:37:28.337909 | 2018-09-19T07:07:30 | 2018-09-19T07:07:30 | 145,639,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,173 | py | """
Django settings for mayi project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Buil... | [
"alice4u@bjtu.edu.cn"
] | alice4u@bjtu.edu.cn |
0824054c10489720b958cd6a83b6a2955e54eb35 | 55c64c7a78c5f78f35f84ae1fce60d387ba11040 | /bc4py/user/network/directcmd.py | 8ce37119ab2d25ebe8b5068e3da62ccdd5e4e8ee | [
"MIT"
] | permissive | kmn/bc4py | df580de46456fed860e7fc0a812f5b46e04483c3 | 8f9ee09ed1325faad8c361a9b6c1b5abbc93cbc1 | refs/heads/master | 2020-04-13T06:04:32.273534 | 2018-12-18T02:48:41 | 2018-12-18T02:48:41 | 163,010,903 | 0 | 0 | null | 2018-12-24T17:16:21 | 2018-12-24T17:16:21 | null | UTF-8 | Python | false | false | 4,166 | py | from bc4py.config import V, P, BlockChainError
from bc4py.database.builder import builder, tx_builder
from binascii import hexlify
def _best_info():
if builder.best_block:
txs = [{'tx': tx.b, 'sign': tx.signature} for tx in builder.best_block.txs]
return {
'hash': builder.best_block.ha... | [
"thhjuu@yahoo.co.jp"
] | thhjuu@yahoo.co.jp |
b338487eb46ba9e4138d46e449fa38c61e9cb9e2 | 7c16a9f999f966060c064ae5bd4bddaf8f4e1dd0 | /jumpcloud_2.py | adf2ab5b1f6a855f030f62aa839d8daae41c6fe1 | [] | no_license | sbd2309/Adv.Python | fd5ed698b14c75484903006da7753a155cf11b47 | f7ef906cd78114643ffaaaaca6d4cb0ccfb34f62 | refs/heads/master | 2021-10-25T01:48:29.420102 | 2021-10-17T06:20:11 | 2021-10-17T06:20:11 | 232,631,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | def jumplcloud2(l, y):
energy = 100
for i in range(0, len(l), y):
if l[i] == 1:
energy -= 3
print(f"Value of Energy is {energy}")
else:
energy -= 1
print(f"Value of Energy is {energy}")
print(energy)
x, y = [int(i) for i in input().strip().sp... | [
"noreply@github.com"
] | sbd2309.noreply@github.com |
36a8545732be3dbfeccb902ad7b7dbdc003cf1d3 | cfeb96d00a07cf3a5743a44fcef546aceeae3d3a | /398-RandomPickIndex.py | ceebc631cc3da2f6affacd9c3687f0258e04e6c3 | [] | no_license | minseoch/algorithm | d5218b6187129e68aa355ce6cc89a3496e0f654c | 4c0cfe857f5d78a44c1a3bfb2571d72da4911d97 | refs/heads/master | 2023-03-04T02:10:02.344708 | 2021-01-30T04:44:28 | 2021-01-30T04:44:28 | 296,403,602 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py |
# 398. Random Pick Index
# https://www.youtube.com/watch?v=A1iwzSew5QY
# Reservoir Sampling
# https://leetcode.com/problems/random-pick-index/discuss/88072/Simple-Reservoir-Sampling-solution
import random
class Solution2:
def __init__(self, nums):
self.nums = nums
print(f"self.nums={self.nums}")
... | [
"minseo@Minseos-iMac.local"
] | minseo@Minseos-iMac.local |
a705e2b2103b4db7529e0e38bf3f81a06173cd97 | c007dd8ff275b5fc07fba3f0e56b1fde9b9e82df | /blog-api/devBlog/profiles/serializers.py | 4b4e122c4b18ef6b75d95017c1fc1370e369fbe6 | [] | no_license | ahrav/Edumacation | c7a074f9ebecfcac0b07977d388b3064c565c669 | 7481991128afccb56e409f14c93df175926433c7 | refs/heads/master | 2022-12-03T21:09:00.429047 | 2019-07-16T13:06:15 | 2019-07-16T13:06:15 | 192,711,106 | 0 | 0 | null | 2022-11-22T04:08:32 | 2019-06-19T10:29:47 | Python | UTF-8 | Python | false | false | 1,624 | py | from rest_framework import serializers
from .models import Profile
class ProfileSerializer(serializers.ModelSerializer):
"""Serializer for the Profile model"""
username = serializers.CharField(source="user.username")
bio = serializers.CharField(allow_blank=True, required=False)
image = serializers.C... | [
"ahravdutta02@gmail.com"
] | ahravdutta02@gmail.com |
42421fbcd066dedd967b267581e9fc3cb7f21b0c | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210529110724.py | 8d62cf1e4b76000d7a91951d0cd20edcc8bc1e35 | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,073 | py | from flask import Flask, render_template, redirect, url_for, flash, request
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, Validati... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
f7ab3d6f2c0582c21abcd03f175ce0339fc96614 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetCode/908 Smallest Range I.py | b5446b4da05d11b71c1a819ea670f40b16bc8e3b | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 778 | py | #!/usr/bin/python3
"""
Given an array A of integers, for each integer A[i] we may choose any x with
-K <= x <= K, and add x to A[i].
After this process, we have some array B.
Return the smallest possible difference between the maximum value of B and the
minimum value of B.
Example 1:
Input: A = [1], K = 0
Output: 0... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
4c0409ee4203d18f7ab02b3af93a669ba14a6a11 | 14be3567f1e95306e0f617bfa84f8ce697807d7f | /pyconsg2/proposals_pyconsg/forms.py | 94fec53ef99bb49da3837acd2feaa7439158a73b | [] | no_license | pythonsingapore/pyconsg2 | 68b5a48504e4e63b8d27409d3d41d8f60d081605 | b6fd05de9a66af5636f09ea614ced26080e818db | refs/heads/master | 2021-01-21T04:32:39.040738 | 2018-01-28T04:53:27 | 2018-01-28T04:53:27 | 13,821,910 | 3 | 2 | null | 2014-06-02T00:39:09 | 2013-10-24T03:47:55 | CSS | UTF-8 | Python | false | false | 1,461 | py | from django import forms
from django.utils.translation import ugettext_lazy as _
from markitup.widgets import MarkItUpWidget
from . import models
class ProposalForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(ProposalForm, self).__init__(*args, **kwargs)
self.fields['additional... | [
"mbrochh@gmail.com"
] | mbrochh@gmail.com |
c3dadcc8f435c8d2e4399efd3ebdc5b467bc6ff0 | 5d48aba44824ff9b9ae7e3616df10aad323c260e | /array/1450.number_of_students_doing_homework_at_a_given_time.py | f8a9442f6fc5d382edc8af3e7ded12dbf349f884 | [] | no_license | eric496/leetcode.py | 37eab98a68d6d3417780230f4b5a840f6d4bd2a6 | 32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17 | refs/heads/master | 2021-07-25T11:08:36.776720 | 2021-07-01T15:49:31 | 2021-07-01T15:49:31 | 139,770,188 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | """
Given two integer arrays startTime and endTime and given an integer queryTime.
The ith student started doing their homework at the time startTime[i] and finished it at time endTime[i].
Return the number of students doing their homework at time queryTime. More formally, return the number of students where queryTime ... | [
"eric.mlengineer@gmail.com"
] | eric.mlengineer@gmail.com |
61a8aaaae01e28afb95f37a35792efb7f57f3522 | 036c51c1a159e686eff1811288ec8679aae78d3b | /roscam/shared/vision_api.py | 21d9e48ea14869ac13ad00cd7498fa808711f8ac | [] | no_license | lwneal/ros-fun | 6419bf1d4c4c06b72f350917332928886ce934c8 | 21aea84fa9b1ab36581e61b01c7f78d1aef9d2af | refs/heads/master | 2021-05-03T20:14:54.548139 | 2017-03-05T20:45:51 | 2017-03-05T20:45:51 | 67,166,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import sys
import zlib
import os
import pickle
import math
import sys
import struct
import socket
from StringIO import StringIO
import capnp
import numpy as np
from PIL import Image
from shared import util
from frametalk_capnp import FrameMsg, VisionRequestType
DEFAULT_ADDR = ('localhost', 1237)
def vision_reques... | [
"nealla@lwneal.com"
] | nealla@lwneal.com |
c6ca25b6544c9beaa826084f0af3f2b3aeba74d5 | ad715f9713dc5c6c570a5ac51a18b11932edf548 | /tensorflow/lite/testing/op_tests/reshape.py | 35107c5ef57bf589b2f0fc302b8773d3f8c3da99 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | rockzhuang/tensorflow | f1f31bc8edfa402b748c500efb97473c001bac95 | cb40c060b36c6a75edfefbc4e5fc7ee720273e13 | refs/heads/master | 2022-11-08T20:41:36.735747 | 2022-10-21T01:45:52 | 2022-10-21T01:45:52 | 161,580,587 | 27 | 11 | Apache-2.0 | 2019-01-23T11:00:44 | 2018-12-13T03:47:28 | C++ | UTF-8 | Python | false | false | 3,457 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
efe64bbb6a14e2a52f1a22d1d0c78c02d8fb58bf | f52566c8cdfc3d472c7f585c72417c9a9dd5edc5 | /Python/pythonProjects/progress_plot.py | e3f87450612ed50e53252656f6764835827651bd | [] | no_license | ccc013/CodingPractise | ab16799712e3ed3952d0eaaed6e3143c8f48ea52 | bf94e9c10a3ce1f909a29c5a75bc219f6c5bae10 | refs/heads/master | 2021-01-10T20:31:47.198146 | 2019-05-08T14:28:33 | 2019-05-08T14:28:33 | 40,797,904 | 13 | 15 | null | null | null | null | UTF-8 | Python | false | false | 2,753 | py |
import os
import sys
import numpy as np
import matplotlib.pyplot as plt
import math
import pylab
import sys
import argparse
import re
from pylab import figure, show, legend, ylabel
from mpl_toolkits.axes_grid1 import host_subplot
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='makes a pl... | [
"429546420@qq.com"
] | 429546420@qq.com |
18ea951b3d4416c4b03e25f3cb50f91d33f44a00 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_8/hmldhr001/question3.py | f7ae261f95f9dadb0d44311b65280007da89e9ff | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | m=input("Enter a message:\n")
if m=="HELLO WORLD":
print("Encrypted message:")
print("HELLO WORLD")
elif m=="the quick brown fox jumps over the lazy dog.":
print("Encrypted message:")
print("uif rvjdl cspxo gpy kvnqt pwfs uif mbaz eph.")
elif m=="hello world":
print("Encrypted ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
88dfffc6eb0b778eea5bb884815693fca88b87fc | b84f9ebfb2bcbfc9d51a11dcfaa83aacb6b2bb93 | /basenet/lr.py | 84d47e8484a2c5be63d83fc9fc6b9894dd64e9f7 | [] | no_license | MeRajat/basenet | 0826d6d63d77ca8ceff00fe9121fdd81a206d0ec | 15ce63ce4981e09f188b5a85630623eaaf12c056 | refs/heads/master | 2020-03-13T03:58:24.361697 | 2018-04-10T03:43:29 | 2018-04-10T03:43:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,213 | py | #!/usr/bin/env python
"""
lr.py
learning rate scheduler
"""
from __future__ import print_function, division
import sys
import copy
import numpy as np
from tqdm import tqdm
import torch
from torch import nn
from torch.nn import functional as F
from torch.autograd import Variable
# --
# Helpers
def pow... | [
"bkj.322@gmail.com"
] | bkj.322@gmail.com |
887df4059c0b702bf79a5d302869ea4665e49597 | a85168b6afb6597972a873bc3282a1e05f076a04 | /networks/__init__.py | a6b0944372865a7540533cd458f4db72fcb8e8a0 | [
"MIT"
] | permissive | 9622034/break_captcha | b82112f6d1e8e8beb8f90062d6b6b7833e198fd1 | 9ab16d1d7737630786039d07caec308bdb8a26d9 | refs/heads/master | 2023-03-25T14:41:12.828742 | 2019-09-25T06:39:11 | 2019-09-25T06:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from .cnn5 import CNN5
from .resnet50 import ResNet50
from .densenet import (
DenseNet121, DenseNet169, DenseNet201
)
from .rnn import (
BiGRU, BiLSTM
)
| [
"1251680944@qq.com"
] | 1251680944@qq.com |
f161bf4f832e70bab14b2a3b7d15875b36c04697 | 1626e16760c9c5b5dc9bd7c345871c716d5ffd99 | /Problems/0500_0599/0539_Minimum_Time_Difference/Project_Python3/Minimum_Time_Difference.py | 4a1c6119d5b5b67280d5beb56363e76d7abefd06 | [] | no_license | NobuyukiInoue/LeetCode | 94ddb19e63cb8d0775cdc13f311fe90c87a1d718 | 3f0ffd519404165fd1a735441b212c801fd1ad1e | refs/heads/master | 2023-09-01T07:38:50.939942 | 2023-08-23T09:51:17 | 2023-08-23T09:51:17 | 158,100,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | import os
import sys
import time
from typing import List, Dict, Tuple
class Solution:
def findMinDifference(self, timePoints: List[str]) -> int:
# 64ms
timePointsInt = [int(t[:2])*60 + int(t[-2:]) for t in timePoints]
sortedTime = sorted(timePointsInt)
minimum = 1440
for i i... | [
"spring555@gmail.com"
] | spring555@gmail.com |
18795c28b3e0d9e3705936c5d496ef0c7fa394c8 | 59d0cfc76bb202b799b204355650a1a07811d5be | /newsletters/models.py | cb90471c04f9e630e3dd2849925429c595bd8dbd | [] | no_license | nabirhossain/newspaper | c4c91ae37e486adf47263562505c578f38431c8e | 25f534f472daa2930ddf52616c34e3fea7f094fc | refs/heads/master | 2022-08-30T10:43:31.199591 | 2019-02-10T16:00:55 | 2019-02-10T16:00:55 | 170,000,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from django.db import models
# Create your models here.
class NewsLetterUsers(models.Model):
"""Email for subscribing confirmation"""
email = models.EmailField()
date_added = models.DateTimeField(auto_now_add=True)
class Meta:
ordering = ['-id']
verbose_name_plural = 'NewsLetter User... | [
"nabirhossain13@gmail.com"
] | nabirhossain13@gmail.com |
94b0fa5629e5fb830755b145872a9e84033587c5 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/simclr/src/lr_generator.py | ee443f0e85ea75b3061d37fb213f43fdae0cb7e1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 6,943 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
6cda5f71648c91a4fc509b3433891e119939185c | 0f0530b06a59fe6cfaa74b0030d892256e33c666 | /tests/test_net_web_asgi.py | d9c2acdad33edcbe3c6ec13c819155b68ac2a93d | [
"Apache-2.0"
] | permissive | nicoddemus/aioworkers | c269b470be5be0c2a59fb2a91d3a285f54125735 | 4ab85064844dc28141833d1348989d8c891f3d7d | refs/heads/master | 2022-12-06T21:22:29.976784 | 2020-08-22T11:42:53 | 2020-08-22T11:43:24 | 291,555,920 | 0 | 0 | Apache-2.0 | 2020-08-30T21:37:29 | 2020-08-30T21:37:28 | null | UTF-8 | Python | false | false | 908 | py | from asyncio import Queue
from aioworkers.core.context import Context
from aioworkers.net.web.asgi import AsgiMiddleware
async def app(scope, receive, send):
assert scope['type'] == 'http'
await send({
"type": "http.response.start",
"status": 404,
})
async def test_lifespan():
q = Q... | [
"yttrium@somedev.ru"
] | yttrium@somedev.ru |
957cf21de21fefe9bdc13a498f264c19abce8e30 | fc77fc08e983385521f7073e160cf05b8484dc9d | /BookSearchApp/env/app.py | b1faad1f847dee89bccc7efc9cfc422fad835798 | [] | no_license | Icode4passion/Apps | e561a179147ab0f9bd074998f2b3e3a9bfedc539 | 51e5f2c9026a7f6a6efef33f4f54c9d7573a3070 | refs/heads/master | 2020-05-04T15:22:59.139023 | 2019-04-03T07:57:58 | 2019-04-03T07:57:58 | 179,238,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///mybook.db"
app.secret_key = "Rock Flask"
db = SQLAlchemy(app) | [
"yogeerama@gmail.com"
] | yogeerama@gmail.com |
afb6b58c8a265fa587ebb77bf8d65a2b7a9cd48e | 55c6f50de6cfdfca5a75dd9901937894ab128f90 | /openturns/1.16/theory/data_analysis/spearman_coefficient-3.py | a48d0e3f448ddb582a92c087a00c68f149708c0d | [] | no_license | openturns/openturns.github.io | 01f66a4f269278b7aae3d813fc26b70eb4cd8713 | 6bb6c7de3a43649c1fcf1eaac2b03f79c5d1ac3b | refs/heads/master | 2023-08-04T09:19:44.238372 | 2023-07-20T05:44:35 | 2023-07-20T05:44:35 | 40,717,161 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | import openturns as ot
from openturns.viewer import View
N = 20
ot.RandomGenerator.SetSeed(10)
x = ot.Uniform(0.0, 10.0).getSample(N)
f = ot.SymbolicFunction(['x'], ['5'])
y = ot.Uniform(0.0, 10.0).getSample(N)
graph = f.draw(0.0, 10.0)
graph.setTitle('nSpearman\'s coefficient estimate is close to zero\nbecause U and ... | [
"sayhi@circleci.com"
] | sayhi@circleci.com |
4b4dc1aa8a474140a1915a983d2c252d4c1b8a37 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/77_15.py | bf5ddebae8e2f5227c0519808941ef6da385fe5b | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | Python – Test Record existence in Dictionary
Sometimes while working with pool of records, we can have problem in which we
need to check the presence of particular value of a key for existence. This
can have application in many domains such as day-day programming or web
development. Lets discuss certain ways ... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
1d66d6b8572e967523cbe06b14855c4658e77bd8 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2449486_1/Python/pali6/b.py | fe17f0097208c8187a0ad0bbd2dc2db80c58304d | [] | 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 | 608 | py | n = int(input())
def check_rows(lawn):
for row in lawn:
maximum = max(row)[0]
for tile in row:
if tile[0] == maximum:
tile[1] = True
def do_case():
height, width = map(int, input().split())
lawn = [] #[y][x]
for y in range(height):
lawn.append([[int(... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
56a2dab6493e19601e84078754409b647c2a4e89 | a81984a197944169935f005f95a0e69e8c64143b | /artifacts/default/CentOS_7/get-sdk-2018.06.13-CentOS_7.py | 6659b93dbe42606417441256b52a19f871ee140a | [] | no_license | pulp-platform/pulp-sdk-release | d6531bfb2f55335d02103a63fc5af90877333af3 | a3ad33b4bd5bcf704580857b9a1adcba3ed2a7ff | refs/heads/master | 2021-06-05T02:10:59.317545 | 2020-01-09T09:12:05 | 2020-01-09T09:12:05 | 132,143,493 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,712 | py | #!/usr/bin/env python3
# This file has been auto-generated and can be used for downloading the SDK it has
# been generated for.
import os
import tarfile
import os.path
import argparse
src="59b44701b6ac8390a97936cbd049256fc2917212"
artefacts=[
["https://iis-artifactory.ee.ethz.ch/artifactory/release/CentOS_7/pulp... | [
"germain.haugou@iis.ee.ethz.ch"
] | germain.haugou@iis.ee.ethz.ch |
5c3f771df5abad14df0b41844ac313bb7d32d769 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/202/usersdata/273/96707/submittedfiles/desvpad.py | ab360e0aab329516801eade107e9a53d39e7535d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # -*- coding: utf-8 -*-
import math
#comece abaixo
list=[]
n=int(input('digite a quantidade de valores: '))
i=0
soma=0
for i in range (i,n,1):
numero=int(input('digite um numero: '))
list.append(numero)
soma=soma+numero
media=soma/n
somatorio=0
for i in range(i,n-1,1):
somatorio=somatorio+((i-media)... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1ef5fc71ea4a7812a05c31c39707f6995de315b6 | 60fb7142f180df3de24d66bfc32f35e64a56cacd | /src/users/urls.py | 07b97cb47146278eec8b1713de870da3f66fb386 | [] | no_license | a-samir97/lms-project | 5ca45ae64736c92b514d2b02b441686f310048d0 | 22a3a23df4ef96d45236512bbaf43654c37c79d8 | refs/heads/master | 2021-07-14T15:04:34.223879 | 2020-09-07T19:29:48 | 2020-09-07T19:29:48 | 200,075,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from django.urls import path,include
from . import views
app_name = 'users'
urlpatterns = [
path('create/',views.create_user_role,name='create-role'),
path('delete/',views.delete_user,name='delete-user'),
path('admin/',views.admin_page,name='admin-page'),
path('instructor/',views.instructor_page,name='... | [
"a.samir9710@gmail.com"
] | a.samir9710@gmail.com |
08723ebc022eb29a12d3f25e532b931660a49142 | d0aa628399195b7e9aba42bbd7d1f0e24f1b046e | /merge.py | 5b64835a3d3e0a94c433145664272f9cd6697f0a | [] | no_license | sarureddi/string | 7752fc7ed34ddd642bf901ec88c828856070c7a4 | a89b0c0aef426c8ea98b9d8f4a13f4c8282ea003 | refs/heads/master | 2020-06-01T06:57:42.174967 | 2019-06-07T04:39:47 | 2019-06-07T04:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | def mergeSort(alist):
print("Splitting ",alist)
if len(alist)>1:
mid = len(alist)//2
lefthalf = alist[:mid]
righthalf = alist[mid:]
mergeSort(lefthalf)
mergeSort(righthalf)
i=0
j=0
k=0
while i < len(lefthalf) and j < len(righthalf):
... | [
"noreply@github.com"
] | sarureddi.noreply@github.com |
054a52eac46a5a6f65c74f902b2d59f2f2b75d06 | 891aba394df57d7894900e99e5881ad5817a84bd | /s24/24.2_crear_tabla.py | 3b5b791b1c0fab7f552353a2c03e71b94f1a4c16 | [] | no_license | feliperojas/mision_tic_G11 | 42d87e698eb8c9ace896805f5fc5436a0035ec3b | cfc41e873a4138f3f4f2ad63143042eb606c0f45 | refs/heads/master | 2023-05-28T09:29:40.247531 | 2021-06-09T16:43:45 | 2021-06-09T16:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | import sqlite3
conexion = sqlite3.connect("db/datos1.db")
print("Conectado exitosamente")
cursor = conexion.cursor()
cursor.execute("CREATE TABLE empleados(id integer PRIMARY KEY, nombre text, salario real)")
conexion.commit() # Guardo los cambios en la base datos | [
"camohe90@gmail.com"
] | camohe90@gmail.com |
b9fe530d25d58978603162cfb268133af574789e | 70bc8d939f77f330cc394fdd65676ce8c4cf3d5a | /agents/natural/natural.py | 93e001b6fd78968c71847eeea17205e222e63cda | [] | no_license | kryptoss/zoe-startup-kit | 2fcc575ca9af7b770fdfe4ba24945fe157b6c657 | 1b62ceafb55291a964de4eb4a0726da1e4ca60ab | refs/heads/master | 2021-01-11T01:20:23.718013 | 2014-05-27T13:56:02 | 2014-05-27T13:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,008 | py | # -*- coding: utf-8 -*-
#
# This file is part of Zoe Assistant - https://github.com/guluc3m/gul-zoe
#
# Copyright (c) 2013 David Muñoz Díaz <david@gul.es>
#
# This file is distributed under the MIT LICENSE
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associat... | [
"david@gul.es"
] | david@gul.es |
2e86b0fdd59c5752f0d177c4253ed13f49884264 | e1c14c3b3ed552f1af97f427c342be70d8e3b27f | /src/5.2Graphs/bridge-in-a-graph.py | 505d1910c83c51ade8065179b15bbc185e9d1f48 | [
"MIT"
] | permissive | mohitsaroha03/The-Py-Algorithms | 4ab7285b6ea2ce0a008203b425ec3f459995664b | b5ba58602c0ef02c7664ea0be8bf272a8bd5239c | refs/heads/master | 2023-01-28T09:25:33.317439 | 2020-12-05T06:17:00 | 2020-12-05T06:17:00 | 280,189,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,853 | py | # Link: https://www.geeksforgeeks.org/bridge-in-a-graph/
# IsDone: 0
# Python program to find bridges in a given undirected graph
#Complexity : O(V+E)
from collections import defaultdict
#This class represents an undirected graph using adjacency list representation
class Graph:
def __init__(self,vertices):
... | [
"MohitSaroha@Etechaces.com"
] | MohitSaroha@Etechaces.com |
4152c1978690244fbc25f325288996ee09ceb84c | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/tutorial/gui/scaleform/meta/TutorialBattleNoResultsMeta.py | 3bde88849cd7b326db4a89b7fa7d01951caa6d6c | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 413 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/tutorial/gui/Scaleform/meta/TutorialBattleNoResultsMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class TutorialBattleNoResultsMeta(AbstractWindowView):
def as_setDataS(self... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
50aab54fbbd29ab4a8003f504c45aca195cb845b | b17844b85f54eca6a3f5f9bcbef051a3814f6ecc | /some_experiments/get_keyword_from_paragraphs.py | 86e49bf351f93c33164ab9b8f4ad58363d2faf5a | [] | no_license | czt616/trec_news | 544bc706973935e99c01699e31f10d930e22cdd7 | f912fee1cf37ba14a1de5a735786dbf682135d52 | refs/heads/master | 2020-03-21T13:55:14.243675 | 2018-06-08T15:42:22 | 2018-06-08T15:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,954 | py | """
get keyword queries for each paragraphs
"""
import os
import json
import sys
import re
import argparse
import codecs
import subprocess
from string import Template
import redis
import math
from myUtility.indri import IndriQueryFactory
from collections import OrderedDict
sys.path.append("/infolab/node4/lukuang/trec... | [
"lukuang1989@gmail.com"
] | lukuang1989@gmail.com |
2a40a3307e6b5e1013caa1ddea4b9022bf2f74a8 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_0806+682/sdB_PG_0806+682_coadd.py | 5bffaca91383ddd94ca34edcf5413d095e23c73e | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[122.984208,68.061967], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_PG_0806+682/sdB_PG_0806+682_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
3f70f27abe05dd9e9692e809e9950742376f0406 | d0f5f4497d8a5edaef64f391b7d5fa84a251bf64 | /0x04-python-more_data_structures/0-square_matrix_simple.py | 30a8409f7fc77dc3fdd974b3e917a5050f778f57 | [
"MIT"
] | permissive | darkares23/holbertonschool-higher_level_programming | 34117bdb6df4adf2eb6f566dc91b41720f41c78e | 931b1b701d8a1d990b7cd931486496c0b5502e21 | refs/heads/master | 2020-09-29T03:03:41.603798 | 2020-06-27T18:40:23 | 2020-06-27T18:40:23 | 226,934,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/python3
def square_matrix_simple(matrix=[]):
def pow2(x):
return x ** 2
i = 0
new = matrix.copy()
for row in matrix:
new[i] = list(map(pow2, row))
i += 1
return new
| [
"desarrollojuseca@gmail.com"
] | desarrollojuseca@gmail.com |
35ec35a482eb64aee68580bd0e09f80a1d7f58da | 5c4d4a2c44eebf8fd9dd790da2a9ba4ededcfb70 | /django_kala/projects/tests/factories.py | 12ce7d94e2fe10e858bebdcc7cd843a2d5bf34a0 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | brahimmade/kala-app | bc2602c6034203f83ced448ba54db7606a1234fe | 6ac816e7c2711568cd7bcb1d996ba74c09513b3f | refs/heads/master | 2023-03-21T05:15:52.436228 | 2020-03-10T15:50:29 | 2020-03-10T15:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | import factory
from projects.models import Project
class ProjectFactory(factory.django.DjangoModelFactory):
class Meta:
model = Project
django_get_or_create = ('name', )
name = factory.Faker('text')
description = factory.Faker('text')
| [
"bgroff@hawaii.edu"
] | bgroff@hawaii.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.