blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
090d7e24217c1a131ee19c720ec5adff441bb282 | 2b8f1b067a6602a6520e9846a2df8b83a359623a | /BOJ/BaaarkingDog/0x1D_다익스트라 알고리즘/17835.py | 048443f9ddf4f5ef97defa6cf7789b1c7040321c | [] | no_license | ymink716/PS | 3f9df821a1d4db110cd9d56b09b4c1d756951dd8 | e997ecf5a3bec1d840486b8d90b934ae1cbafe94 | refs/heads/master | 2023-08-18T18:21:45.416083 | 2023-08-16T07:26:18 | 2023-08-16T07:26:18 | 218,685,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | # 면접보는 승범이네
# https://www.acmicpc.net/problem/17835
import heapq
import sys
input = sys.stdin.readline
n, m, k = map(int, input().split())
graph = [[] for _ in range(n + 1)]
# 도시 연결 정보를 역방향으로 지정
for _ in range(m):
u, v, c = map(int, input().split())
graph[v].append((u, c))
# 면접장 리스트
targets = list(map(int, i... | [
"ymink716@gmail.com"
] | ymink716@gmail.com |
3a3288f366b89fd77fc0f90506a4ed22a73e68bf | 9d0dcacf6878a3451a01083ae0b87521e3bd436d | /fMRI/fx/multiconds/SST/multiconds_posterror_with_pss.py | 41c471fbc33322f58b1075ad7a8037cf6044d7ad | [] | no_license | UOSAN/DEV_scripts | 244a87fb3dfc230c3fad19b2e4db5a0a2fab1ef4 | 513121b4fb84aaed45099415d7f9cf5e876b5d57 | refs/heads/master | 2023-08-31T11:15:54.357529 | 2023-08-28T16:44:56 | 2023-08-28T16:44:56 | 144,056,482 | 0 | 2 | null | 2019-11-26T23:48:57 | 2018-08-08T19:04:35 | MATLAB | UTF-8 | Python | false | false | 12,558 | py | import argparse
import json
import re
from os import PathLike
from pathlib import Path
from typing import Union, List
import numpy as np
from numpy.core.records import fromarrays # https://stackoverflow.com/questions/33212855/how-can-i-create-a-matlab-struct-array-from-scipy-io
import scipy.io
from zmq import PROTOCOL... | [
"benjsmith@gmail.com"
] | benjsmith@gmail.com |
f4a46ee857aeca963d206c48f92c2d37fd973b73 | 2c33ab38df0a0ffd617513640fb91fcc360d3bc3 | /Graph-Algorithm/HoughLine/hough_line.py | 13c1f5b2e48cf818ee420912512ed21d2f043fa8 | [
"Apache-2.0"
] | permissive | FDU-VTS/CVCode | 71a0dc82cd973aca55e0d97ea015d8dc66d2cc94 | e9576dfbdd1ae2ff986dadde3183eb6bc0380f76 | refs/heads/master | 2021-07-22T10:42:34.384289 | 2020-04-24T09:48:43 | 2020-04-24T09:48:43 | 149,054,139 | 33 | 10 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import matplotlib.pyplot as plt
import skimage.io
import skimage.color
import skimage.morphology
import skimage.transform
import skimage.feature
import copy
original_img = skimage.io.imread("cars.png")
img = copy.deepcopy(original_img)
h, w, _ = img.shape
for i in range(h):
for j in range(w):
r, g, b, a = ... | [
"529768926@qq.com"
] | 529768926@qq.com |
4e12442854c79ceaa4258e2f2b486a52b1219285 | 2acd5555380f6dffd7a25c1ffcceacdb83ad1b41 | /chapter_2/loadbalancer/scrap/main.py | 2a47814565f2fb9ddd00687b2a47ecdd353f3cf7 | [
"Apache-2.0"
] | permissive | minsung8/monitering_exercise | 1d2f37ac4c70591195640b1f79625686e66b71d6 | ecfaba49d7406a282d4db94b02febd83dfc03e51 | refs/heads/main | 2023-09-01T17:18:30.230581 | 2021-10-27T13:35:56 | 2021-10-27T13:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | from typing import Optional
from fastapi import FastAPI, Request, Response
from fastapi.responses import JSONResponse
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel
from datetime import datetime
import sys
import httpx
from bs4 import BeautifulSoup
import urllib.parse
from excepti... | [
"charsyam@naver.com"
] | charsyam@naver.com |
bb6f6b77013fccba9b14917b054ff3287e723d46 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03139/s876271037.py | c33057c3fdc22c46568b4749567bddc0ebeaf856 | [] | 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 | 118 | py | n,a,b=map(int,input().split())
s=min(a,b)
t=max(a,b)
if s+t<=n:
u=0
else:
u=s+t-n
print(str(s)+' '+str(u)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e6e49fa0abbb83bea3b06e6e58562c59d83cd3e7 | 3097d8735287c8e574c56831d0d49eeb4c624ad7 | /luxon/core/session/__init__.py | 6fa20d027bdd77b3a585aca7eb9142c649fc066a | [
"BSD-3-Clause"
] | permissive | TachyonicProject/luxon | 897b91e8d24bb41b66dd09c7df8933e8f8135753 | 5cfdc41a9983821b27f832c87e6424d90c0a8098 | refs/heads/development | 2020-03-12T16:49:09.961915 | 2020-01-08T11:58:12 | 2020-01-08T11:58:12 | 130,724,301 | 5 | 7 | NOASSERTION | 2020-01-08T11:58:40 | 2018-04-23T16:15:40 | Python | UTF-8 | Python | false | false | 356 | py | from luxon.core.session.session import Session
from luxon.core.session.sessionauth import TrackToken
from luxon.core.session.sessioncookie import SessionCookie as Cookie
from luxon.core.session.sessioncookie import TrackCookie
from luxon.core.session.sessionredis import SessionRedis as Redis
from luxon.core.session.ses... | [
"christiaan.rademan@gmail.com"
] | christiaan.rademan@gmail.com |
bfbae7f8b7bc700d28b3310a6c1074b340bb4859 | 22b30b51d6eabbcc9c317c3825f6bcb00f947b56 | /model/mysite1/app1/migrations/0001_initial.py | 7d7ae241763fd77cf102d24472427517100b9689 | [] | no_license | SanjayPJ/doc-exercise-django | eeb04cdcdee2618e65d46c188cb7ffe7bce11704 | 71857c82709600479299b726560d526a74050695 | refs/heads/master | 2020-03-28T02:04:28.097576 | 2018-09-16T06:50:08 | 2018-09-16T06:50:08 | 147,545,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # Generated by Django 2.1 on 2018-09-16 05:27
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Crea... | [
"sanjaypjayan2000@gmail.com"
] | sanjaypjayan2000@gmail.com |
7cbfb9269c7e422b591c35e10f80e558cdc00437 | 4e353bf7035eec30e5ad861e119b03c5cafc762d | /QtGui/QLCDNumber.py | ff1ede9cdeaafbfea7abf476b9b7fc51262978ba | [] | no_license | daym/PyQt4-Stubs | fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5 | 57d880c0d453641e31e1e846be4087865fe793a9 | refs/heads/master | 2022-02-11T16:47:31.128023 | 2017-10-06T15:32:21 | 2017-10-06T15:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,196 | py | # encoding: utf-8
# module PyQt4.QtGui
# from C:\Python27\lib\site-packages\PyQt4\QtGui.pyd
# by generator 1.145
# no doc
# imports
import PyQt4.QtCore as __PyQt4_QtCore
from QFrame import QFrame
class QLCDNumber(QFrame):
"""
QLCDNumber(QWidget parent=None)
QLCDNumber(int, QWidget parent=... | [
"thekewlstore@gmail.com"
] | thekewlstore@gmail.com |
8b8922533a39f13fe8ef9f9ed2fa1b7a6213aa3e | b51f277dfe339ea30dce10040eca40c20bd8a4dd | /src/weixin_v3/order_pay.py | d2095ef0ffd84e24cb351f2f2f67050bdb148f7e | [
"BSD-3-Clause"
] | permissive | jack139/fair | e08b3b48391d0cb8e72bbc47e7592c030f587f48 | fe0ff64f8edbd794c3fb951ab6af420054e9e585 | refs/heads/master | 2021-06-30T15:17:15.590764 | 2020-09-23T07:14:20 | 2020-09-23T07:14:20 | 160,322,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,685 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import web, json, time
from bson.objectid import ObjectId
from config import setting
import app_helper
db = setting.db_web
url = ('/wx/order_pay')
# 支付完成
class handler:
def POST(self):
web.header('Content-Type', 'application/json')
param = web.input(openid=... | [
"gt@f8geek.com"
] | gt@f8geek.com |
9bc56a8bfcd997a780c81f0a1f8e6b3cae3daf90 | 8cfee59143ecd307fe7d7a27986c3346aa8ce60c | /Analysis/Excel_Chap03/6excel_value_matches_pattern.py | 9e2b0eb303f8c3f83bb8fb7b8c5fcb805d8cd35f | [] | no_license | kiminhan/Python | daafc1fde804f172ebfb1385ab9d6205c7a45970 | dc6af486aaf7d25dbe13bcee4e115207f37d4696 | refs/heads/master | 2020-03-08T19:18:10.173346 | 2018-09-06T06:11:40 | 2018-09-06T06:11:40 | 128,288,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | #!/usr/bin/env python3
import re
import sys
from datetime import date
from xlrd import open_workbook, xldate_as_tuple
from xlwt import Workbook
input_file = sys.argv[1]
output_file = sys.argv[2]
output_workbook = Workbook()
output_worksheet = output_workbook.add_sheet('jan_2013_output')
pattern = re.compile(r'(?P<my... | [
"rladlsgks4@naver.com"
] | rladlsgks4@naver.com |
6f5861a2b4e71d6f756f74ebd5b666e58c675b68 | f0987e17aea6668158cd334c1fbacfe6286d3c77 | /NITA/lib/jnpr/toby/tmp/RLI/RLI-27K/RLI-27608/Apps/cat_MS_DST_MAC.py | 709fe11253a24b5d97cd1f7de074bcb335c3b0c8 | [] | no_license | fengyun4623/file | 00bf21f952ea3f95ffc9fe18448b244b26b7fadb | 3966c63d48557b0b94303896eed7a767593a4832 | refs/heads/master | 2023-04-02T05:01:25.066052 | 2020-07-29T16:15:31 | 2020-07-29T16:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,474 | py | import os
import sys
import logging
import time
import argparse
sys.path.append("/var/tmp")
# Importing API libraries
from grpc.beta import implementations
import authentication_service_pb2
from authentication_service_pb2 import *
import jnx_addr_pb2
from jnx_addr_pb2 import *
import firewall_service_pb2... | [
"srigupta@juniper.net"
] | srigupta@juniper.net |
6ff2697e438b56f55cf9199bf14522a507e9629e | 5bca2d5a7615d2783fae7a7569d57a9a9eb3d604 | /migrations/versions/73964d6faffe_tables.py | 56f6959a2501085e0b2d1356b2a6a39945db123f | [] | no_license | eduardolujan/product_hub | 9ff3fbf11b4703993c1efb2a6202ed3b1c446cda | 0bfe0059ab0d59243794b03f70ceffe3a1a263be | refs/heads/main | 2023-03-01T15:58:05.014636 | 2021-02-03T03:04:31 | 2021-02-03T03:04:31 | 330,279,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | """Tables
Revision ID: 73964d6faffe
Revises: 61f765248e88
Create Date: 2021-01-24 14:52:29.409679
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '73964d6faffe'
down_revision = '61f765248e88'
branch_labels = None
depen... | [
"eduardo.lujan.p@gmail.com"
] | eduardo.lujan.p@gmail.com |
eba70dfb05f89a0f5c308fa5ba16f7afa78b5a5a | 3b547e9f54a6391eee26dacdfb8c182db51861fa | /eval_model.py | bc76e12a74d1a2e93cf3f2f9573fa1ffe782a59b | [
"MIT"
] | permissive | LevinJ/CNN_LSTM_CTC_Tensorflow | faedcdd2574725ddf507e68b3584c693f7b6f470 | b6ee12032757136bdf0bcc2b21ad1605f7296413 | refs/heads/master | 2021-05-06T05:23:39.857506 | 2018-03-06T05:32:37 | 2018-03-06T05:32:37 | 115,079,266 | 3 | 3 | null | 2017-12-22T05:17:41 | 2017-12-22T05:17:40 | null | UTF-8 | Python | false | false | 2,868 | py | import datetime
import logging
import os
import time
import cv2
import numpy as np
import tensorflow as tf
import cnn_lstm_otc_ocr
import utils
import helper
from preparedata import PrepareData
FLAGS = utils.FLAGS
import math
import argparse
log_dir = './log/evals'
class EvaluateModel(PrepareData):
def __init__... | [
"jianzhirong@gmail.com"
] | jianzhirong@gmail.com |
2b62f5e2598681862e85828948f048642f3a7e82 | 1eaa6c2500868d0c60b5b2cd552cd671b635de32 | /Algorithm/sword of offer/46.求1+2+3+...+n.py | 08943c3680730a65a85553b7c90f42b642214139 | [] | no_license | jiangyuwei666/my-study-demo | f85f14a599c328addb5af09078d404f1139e0a82 | 9e2baef2f36f071f8903768adb8d5a5a8c1123f6 | refs/heads/master | 2022-04-30T16:47:24.715570 | 2022-03-24T09:08:43 | 2022-03-24T09:08:43 | 152,565,041 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | """
使用逻辑与(&&) 的短路特性,及必须满足前面,后面才会执行,但是python中好像实现不了
"""
| [
"739843128@qq.com"
] | 739843128@qq.com |
91c4c6728c8b549597426dee3069b2ca120916d3 | 25427cf7ac5ae9f8e5d421e953750a46fb2d1ebc | /ZSY/ZSY_BOM_MAN/View/migrations/0001_initial.py | 2f7a8e07d649c6ff8ba914dfe1d8fbe63115f633 | [] | no_license | povillechan/Python | d48e2e25c9961acef45162ca882b547e5b9d0b77 | 67e88d6d7bdbe49b0c5165d9b35f37dccf638877 | refs/heads/master | 2020-03-22T08:43:44.606336 | 2019-09-01T15:25:57 | 2019-09-01T15:25:57 | 139,786,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | # Generated by Django 2.0.5 on 2018-06-04 09:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bom',
fields=[
... | [
"poville@yeah.net"
] | poville@yeah.net |
9cd579fd23b8680d0118adf350f93b92447d0abd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_277/ch5_2020_06_16_02_12_47_235716.py | a63e2b56e618d1de2e9758e2e41fe85aaad0fd6d | [] | 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 | 76 | py | def libras_para_kg(libras):
gramas = libras/0.00220462
return gramas | [
"you@example.com"
] | you@example.com |
283035063cf583338fab7543c71cb3ddd00b28aa | 38d34dcc8b14b05063cef875734eb4866591d133 | /medicifyapp/migrations/0004_auto_20210109_2156.py | d391b88ff8708bfb59a0c699cbb75fad7565470d | [] | no_license | AbdurRahman111/Awsome_E-Commerce_Website | 02a4061a3842559d14dd38f7a00a61b403a04822 | 743b702bb3e87e38aaf63470b67398ee33a10358 | refs/heads/master | 2023-02-25T09:38:51.146166 | 2021-02-05T16:29:00 | 2021-02-05T16:29:00 | 336,326,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # Generated by Django 3.1.4 on 2021-01-09 15:56
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('medicifyapp', '0003_auto_20210108_1902'),
]
operations = [
migrations.CreateModel(
name='bennar',
fi... | [
"mdabdurrahmanchowdhury1122@gmail.com"
] | mdabdurrahmanchowdhury1122@gmail.com |
0ce59ea95422f9ffdfe5d58e6884c9b3aea3c0f9 | 9eb6528606cf9dd011a3ce0c1605b111c9d50955 | /Tony_study/turtle-study/turtle-circle1.py | f1a99704add630dfe7d3e4578772855dcc292681 | [] | no_license | arch123A/luoye | 0ca9f787c7d5e9ba89d2ae602528e68d7d31a636 | ba8e902cefba2c3ccc58bc266cdf9a7eff03a458 | refs/heads/master | 2023-02-02T22:47:00.256065 | 2020-12-13T09:30:33 | 2020-12-13T09:30:33 | 104,022,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | import turtle as t
import time
pen=t.Pen()
pen.up()
# print(help(a.circle))
pen.begin_fill()
# pen.fillcolor" ")
pen.circle(10)
pen.end_fill()
time.sleep(100) | [
"arch@msn.cn"
] | arch@msn.cn |
f0fc3acb68bf9ae1fa73fd72e246b5b8f3401ad3 | f58fe5f505361c7b531ca9fde0f0cb3aa48b5652 | /012/main.py | e90f2216ee821ca20f546a62836094c8f107e9e9 | [] | no_license | elitan/euler | 2ac1891555c133cc788d22d8c040778936849cb3 | 0caa13f74f3b9fb574158f10973cc9dc2586293f | refs/heads/master | 2020-12-25T15:29:46.421623 | 2018-01-17T17:04:32 | 2018-01-17T17:04:32 | 14,663,106 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #!/bin/py
"""
The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
Let us list the factors of the first seven triangle numbers:
1: 1
3: 1,3
6: 1,2,3,6... | [
"johan@eliasson.me"
] | johan@eliasson.me |
8e5579fe07aaf1de1c48be9ae4db8fd0159327d7 | 5e538961d3b5889c30f81ccbc6d315e0c9c8312e | /apps/xsl/src/xsl/MiscSettingsTab.py | d95fbdabadb7e06b9f60427eb9838574910b2df2 | [] | no_license | WhiteSymmetry/lightlang | 3df11a8c3b6b73bebf9076d0cb70827b685d9af6 | 7510d5dd87fc988fe1b14718bb546daae5baebe6 | refs/heads/master | 2021-01-12T10:42:57.621749 | 2014-04-10T14:14:26 | 2014-04-10T14:14:26 | 72,652,022 | 1 | 0 | null | 2016-11-02T15:13:00 | 2016-11-02T15:12:59 | null | UTF-8 | Python | false | false | 4,635 | py | # -*- coding: utf8 -*-
#
# XSL - graphical interface for SL
# Copyright (C) 2007-2016 Devaev Maxim
#
# This file is part of XSL.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version ... | [
"mdevaev@gmail.com"
] | mdevaev@gmail.com |
b3f1a24691f753afaad91eb52fb038da4b7fd51a | e5333b2e54f1adf2e5bc88a9a242234c5f15851a | /misoclib/com/liteeth/test/udp_tb.py | c7e04c8fd30ae94ea85af0dbf0ce195cda73726c | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hoangt/misoc | 1aaf850c18bab5b18db1fcc788feb96afbbc464e | 6c13879fb605a1ee2bd5a3b35669e093f9a4267b | refs/heads/master | 2021-01-21T02:55:59.398987 | 2015-07-13T15:00:03 | 2015-07-13T15:25:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,834 | py | from migen.fhdl.std import *
from migen.bus import wishbone
from migen.bus.transactions import *
from migen.sim.generic import run_simulation
from misoclib.com.liteeth.common import *
from misoclib.com.liteeth.core import LiteEthUDPIPCore
from misoclib.com.liteeth.test.common import *
from misoclib.com.liteeth.test.m... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
0789c8472b6c78a39a30f2bada458771bf9b1f90 | 38af786946e955269eba63342f6d74c569619a19 | /backend/manage.py | 36a3f5239240d87766bdc9a321928982b0885406 | [] | no_license | crowdbotics-apps/nfc-21501 | e3b005abe6450cb7243118b98fd3392c5557454d | 87e2410d6022a0fee907193cd75f50e1a960a29b | refs/heads/master | 2022-12-28T16:07:47.361438 | 2020-10-14T20:33:46 | 2020-10-14T20:33:46 | 304,111,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'nfc_21501.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ad01f8f72fabfb58743d2fd35c9720572beb238a | b4328ab3a6ece7d8f8568948781640c12f48053c | /accounts/admin.py | 79a78aa8dbe8463c995cc587989d4a0fd52c140b | [] | no_license | ochui/rockyshelf | 4de74bb2ecbe235371cafabc594c95d2a6169192 | eaa25f5867e53629e46629ca58c2815c0295a4a5 | refs/heads/master | 2020-08-01T03:25:33.250146 | 2019-09-26T17:55:42 | 2019-09-26T17:55:42 | 210,844,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .forms import CustomUserCreationForm, CustomUserChangeForm
from accounts.models import CustomUser
@admin.register(CustomUser)
class CustomUserAdmin(UserAdmin):
add_form = CustomUserCreationForm
form = CustomUserChangeForm
... | [
"ochuiprincewill411@gmail.com"
] | ochuiprincewill411@gmail.com |
85da7ef93e50c892890f2eb8a31704305672719a | 5dc77586e3e0f9de1f032fd2ca68494d8e58928f | /contrib/great_expectations_semantic_types_expectations/great_expectations_semantic_types_expectations/expectations/expect_column_values_to_be_valid_country.py | 3a598c9eeb4f921bde123e0ff136c16049bccb8e | [
"Apache-2.0"
] | permissive | great-expectations/great_expectations | dd7c22e6277d6b08bee3ff38a015e6e8cd434df6 | b0290e2fd2aa05aec6d7d8871b91cb4478e9501d | refs/heads/develop | 2023-09-04T09:30:26.395518 | 2023-09-02T00:00:13 | 2023-09-02T00:00:13 | 103,071,520 | 8,931 | 1,535 | Apache-2.0 | 2023-09-14T19:57:16 | 2017-09-11T00:18:46 | Python | UTF-8 | Python | false | false | 5,763 | py | from typing import Optional
import geonamescache
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.execution_engine import PandasExecutionEngine
from great_expectations.expectations.expectation import ColumnMapExpectation
from great_expectations.expectation... | [
"noreply@github.com"
] | great-expectations.noreply@github.com |
724c1d2105517d9d8760bd6be9c4e99ea6501d3c | 51a2d52711300adabde54dd57901d873b3308401 | /py/specter/test/specter_test_suite.py | 668477ba21e0d53ac6dc6e92852b713f98efa15c | [
"BSD-3-Clause"
] | permissive | desihub/specter | 571933df1923dcc8cbc6c67a118023357a6c7b4f | d9b24e363db03841a24d2727a3775fd7b459f6a2 | refs/heads/main | 2023-01-24T11:12:37.203688 | 2023-01-13T04:06:30 | 2023-01-13T04:06:30 | 6,079,897 | 6 | 8 | NOASSERTION | 2023-01-11T18:44:34 | 2012-10-04T18:35:52 | Jupyter Notebook | UTF-8 | Python | false | false | 1,001 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
"""
specter.test.specter_test_suite
===============================
Used to initialize the unit test framework via ``python setup.py test``.
"""
#
from __future__ import absolute_import, division, print_function, unicode_literals
#... | [
"benjamin.weaver@nyu.edu"
] | benjamin.weaver@nyu.edu |
1bb7ceb49897f7f73b38182c93e5cf9ae4dfbe56 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc095/B/4914893.py | 9f289d2cd87d2d83f00a6f0ec932caf15edcfcbf | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | N,X = map(int,input().split())
lists = []
for i in range(N):
m = int(input())
lists.append(m)
X -= sum(lists)
if X > 0:
amari = X // min(lists)
print(len(lists) + amari)
else:
print(len(lists)) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
cd4368d4e14f7ad7bd1ce40c5f6178a7aeae984f | 1c10937afbba2fd4a6c1d306603bc3b7f4900be6 | /aid1901/day3/demo7_surface.py | 9c281b372893452df740c322242eb08f741f85b2 | [] | no_license | zh-en520/- | 5366628ce9d819ed1d29e41e35c0996090df1085 | 1e4697b091a3b321adc3fa2c13192de8fc3686f7 | refs/heads/master | 2020-06-28T21:25:59.080990 | 2019-08-03T07:21:42 | 2019-08-03T07:21:42 | 200,345,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import numpy as np
import matplotlib.pyplot as mp
from mpl_toolkits.mplot3d import axes3d
n = 1000
x,y = np.meshgrid(np.linspace(-3,3,n),np.linspace(-3,3,n))
z = (1-x/2+x**5+y**3) * np.exp(-x**2-y**2)
mp.figure('3D Surface', facecolor='lightgray')
mp.tick_params(labelsize=10)
ax3d = mp.gca(projection='3d')
ax3d.set_x... | [
"zh_en520@163.com"
] | zh_en520@163.com |
97b3e190da056fe8d5955fb3adf6837e5831c392 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano2933.py | 0bcf83215ea92e8d552ea23ae15ce5a482981041 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
748d1d3408f65254fb393d5846e48d2f13a89830 | 7e86a9bd9ec1f82838d114bf71ad0f6d0f12152c | /venv/Lib/site-packages/stellar_sdk/xdr/manage_sell_offer_op.py | eeb133891af91ad48163ea97b2db429074ad9c17 | [
"MIT"
] | permissive | yunoUNo/fini | b39688e7203d61f031f2ae9686845b0beccd9b2a | a833bc64a3aaf94f7268ec6eac690aa68327dd96 | refs/heads/master | 2023-08-05T17:42:48.726825 | 2021-09-29T13:30:32 | 2021-09-29T13:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | # This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from .asset import Asset
from .int64 import Int64
from .price import Price
__all__ = ["ManageSellOfferOp"]
class ManageSellOfferOp:
"""
XDR Source Code
----------... | [
"quit5123@gmail.com"
] | quit5123@gmail.com |
539d185255ee3adc8d504415b0c7c41c3d7bb57e | 0fcf15789a28415d274d313e0e00ce122e03f19e | /vdirsyncer/storage/base.py | 1a96ecef4a400915a355629c001e6332c83af9ad | [
"MIT"
] | permissive | eckhart/vdirsyncer | 1b08d7a21056d887a97c3a1925bcd319e723d5e4 | 9d0d174afee16af87bea17d252d95537f11a0554 | refs/heads/master | 2021-01-18T06:21:26.873466 | 2014-07-31T08:54:12 | 2014-07-31T08:54:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,681 | py | # -*- coding: utf-8 -*-
'''
vdirsyncer.storage.base
~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer & contributors
:license: MIT, see LICENSE for more details.
'''
from .. import exceptions
from vdirsyncer.utils.vobject import Item # noqa
class Storage(object):
'''Superclass... | [
"markus@unterwaditzer.net"
] | markus@unterwaditzer.net |
ef4f09f43a2211561839ab35971f15db0dc93e6f | ac16a937f32602cf16114463f8e875a972f64c27 | /docs/dolfin/1.4.0/python/source/demo/undocumented/multistage-solver/python/demo_multi-stage-solver.py | 878ab4cdcf016ecb806852e645c82fae2e342902 | [] | no_license | mparno/fenics-web | 2073248da6f9918ffedbe9be8a3433bc1cbb7ffb | 7202752da876b1f9ab02c1d5a5f28ff5da526528 | refs/heads/master | 2021-05-05T04:45:46.436236 | 2016-12-06T20:25:44 | 2016-12-06T20:25:44 | 118,628,385 | 2 | 0 | null | 2018-01-23T15:21:47 | 2018-01-23T15:21:46 | null | UTF-8 | Python | false | false | 2,852 | py | # Copyright (C) 2007 Kristian B. Oelgaard
#
# This file is part of DOLFIN.
#
# DOLFIN is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
"johannr@simula.no"
] | johannr@simula.no |
2f3a8f2892355a2e5223f8516cf17c81f3f6edf3 | c9697437c292df7fefd68559fdd9636066bdb2f1 | /science/comparisons/comparing_fsw_hyd_ide__pulse.py | c6c3ad48b11a1b2ed6d56b85e2e087163bc7b111 | [] | no_license | JoshKarpel/ionization | ebdb387483a9bc3fdb52818ab8e897e562ffcc67 | 3056df523ee90147d262b0e8bfaaef6f2678ea11 | refs/heads/master | 2021-03-24T13:03:57.469388 | 2020-04-06T03:37:04 | 2020-04-06T03:37:04 | 62,348,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,848 | py | import logging
import os
import itertools
import numpy as np
import simulacra as si
from simulacra.units import *
import ionization as ion
import ide as ide
FILE_NAME = os.path.splitext(os.path.basename(__file__))[0]
OUT_DIR = os.path.join(os.getcwd(), "out", FILE_NAME)
SIM_LIB = os.path.join(OUT_DIR, "simlib")
log... | [
"josh.karpel@gmail.com"
] | josh.karpel@gmail.com |
966234d2cd9a29a5a0dd663e2c463d3f3a40d314 | d0be690dfc259c004746237c77521ec4fd30fb52 | /lbl_lontest.py | 1bfcfb2dd28af772c434e77b44346d24d6ae1e8d | [
"Apache-2.0"
] | permissive | rbeyer/scriptorium | 3301741ab6c8ece86dc545b1306bfe7450caf21d | 47e2341c132dc92a33032e5147eba0c26d8ef7fb | refs/heads/master | 2023-07-19T20:16:46.649746 | 2023-07-11T16:11:32 | 2023-07-11T16:11:32 | 91,381,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,363 | py | #!/usr/bin/env python
"""Reads a PDS3 INDEX or CUMINDEX, and helps determine what longitude system
it might be in."""
# Copyright 2021, Ross A. Beyer (rbeyer@rossbeyer.net)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may o... | [
"rbeyer@rossbeyer.net"
] | rbeyer@rossbeyer.net |
17a36b19dd6ab80b882c1f4b8536eecb5b143d26 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_1/Python/Renelvon/solve.py | b550930afd0bdd40a51ce994a3275d3db77fcd60 | [] | 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 | 2,649 | py | #!/usr/bin/env python3
import functools
import sys
_QUATERNION_MULT_TABLE = {
("1", "1"): "1",
("1", "i"): "i",
("1", "j"): "j",
("1", "k"): "k",
("i", "1"): "i",
("i", "i"): "-1",
("i", "j"): "k",
("i", "k"): "-j",
("j", "1"): "j",
("j", "i"): "-k",
("j", "j"): "-1",
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
601b0f0c6249de30d39f9c6bcca5bccafa39d142 | 6b20a0d3fc814cff0adafcffcaa193eb91677897 | /data/phys/fill_6297/config_common.py | 72dfc824d5f1784597b9bf16698c4ea5e8b83fbc | [] | no_license | jan-kaspar/analysis_ctpps_alignment_2017_postTS2 | 3a942f62ec8ea8f2e124e09831dfe87f54980f26 | 66b1e0cd77643c143797cee53fc36b8652a6becf | refs/heads/master | 2021-05-04T12:55:09.753837 | 2018-08-21T11:31:19 | 2018-08-21T11:31:19 | 120,303,385 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | import sys
import os
import FWCore.ParameterSet.Config as cms
sys.path.append(os.path.relpath("../../../../../"))
from config_base import config
config.sector_45.cut_h_c = -38.57
config.sector_45.cut_v_c = 1.63
config.sector_56.cut_h_c = -39.34
config.sector_56.cut_v_c = 1.41
| [
"jan.kaspar@cern.ch"
] | jan.kaspar@cern.ch |
26c39c3f10cf4e8e3c1a1f83e5764c9d78805969 | 21b131564f9708d4667dc6dc0043ce6173dfa83c | /leetcode/Symmetric Tree.py | b6335a454916b0a33c3576aab48d96da4023aaa9 | [] | no_license | hermitbaby/leetcode | 5f1b6854c181adabb00951a56dd5235316ab8a45 | 5b76e2ff61a42cd366447d4a7cf1f4f9c624369b | refs/heads/master | 2020-12-24T08:37:25.846329 | 2017-04-28T23:27:57 | 2017-04-28T23:27:57 | 34,924,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | # Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
#
# For example, this binary tree is symmetric:
#
# 1
# / \
# 2 2
# / \ / \
# 3 4 4 3
# But the following is not:
# 1
# / \
# 2 2
# \ \
# 3 3
# Note:
# Bonus points if you could solve it ... | [
"lchen@choicestream.com"
] | lchen@choicestream.com |
f9effb28c711e475e08298c71f5a21a49d7acde2 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/yangydeng_tc_koubei_newBird/tc_koubei_newBird-master/dyy/MLcodes/MLcode_0.py | a7977400f7727ac2ae6150328cbb99d500a9d311 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,026 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 09 10:21:49 2017
@author: Administrator
"""
import pandas as pd
from sklearn.ensemble import RandomForestRegressor
from sklearn.ensemble import ExtraTreesRegressor
from sklearn.ensemble import GradientBoostingRegressor
import sys
sys.path.append('../tools')
from tools im... | [
"659338505@qq.com"
] | 659338505@qq.com |
615663416663253f049b531beb1c929695c6c61f | 6fd26735b9dfd1d3487c1edfebf9e1e595196168 | /2016/day08a_tiny_code_displaying_screen.py | b29fc623f52b71abd419ce76166fd185ffdc2a7b | [
"BSD-3-Clause"
] | permissive | Kwpolska/adventofcode | bc3b1224b5272aa8f3a5c4bef1d8aebe04dcc677 | 8e55ef7b31a63a39cc2f08b3f28e15c2e4720303 | refs/heads/master | 2021-01-10T16:48:38.816447 | 2019-12-03T20:46:07 | 2019-12-03T20:46:07 | 47,507,587 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | #!/usr/bin/env python3
import numpy
with open("input/08.txt") as fh:
file_data = fh.read()
def solve(data, width, height):
array = numpy.zeros((height, width), numpy.bool)
lines = [i for i in data.split('\n') if i]
l = len(lines)
# kwpbar.pbar(0, l)
for n, line in enumerate(lines):
if... | [
"kwpolska@gmail.com"
] | kwpolska@gmail.com |
fad8744022c9adaad6c09d096ffac46929675f6e | 0a65d42f4f0e491cb2aada408401b94909f821c2 | /mhiap/mhiap_landing/urls.py | f01523ec5db9b36db84dafc291186a45715832a5 | [] | no_license | jmadlansacay/_Office | 3acde7655784e91c7dcecfc853d4f36cdfeef028 | 7f46449b9f7e8e892e2e0025ba493259197fa592 | refs/heads/main | 2023-07-28T10:23:54.680822 | 2021-09-11T02:28:07 | 2021-09-11T02:28:07 | 379,155,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.landing_index, name ='landing_index'),
] | [
"Q034800@mhi.co.jp"
] | Q034800@mhi.co.jp |
c0a91143554164dc10207cb1baec7850f8e5b7c4 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class3164.py | 75bd4fadf578af609572e00a72c5b264519b5bbc | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | # qubit number=4
# total number=39
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
bcfd03c9f8baeb8050157a15878fa97165389a4e | 440f868dd3d3bfe9bbeb8350eeac19741550537c | /migrations/versions/0a48b22fada9_modify_comments_table_migration.py | 690ff91979ef90c03e948d56b715d042030420b8 | [
"MIT"
] | permissive | Isaacg94/personal-blog | 47cc9036a85d0928d816a523188636be1a1c6ed5 | be4bc49655c5dd17664e7532ae9ceef31161157a | refs/heads/master | 2022-12-14T00:26:46.175694 | 2021-04-30T23:43:43 | 2021-04-30T23:43:43 | 217,496,372 | 0 | 0 | null | 2022-12-08T06:47:24 | 2019-10-25T09:11:21 | Python | UTF-8 | Python | false | false | 1,098 | py | """modify comments table Migration
Revision ID: 0a48b22fada9
Revises: 8eb8a629f46e
Create Date: 2019-10-28 20:39:15.260269
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0a48b22fada9'
down_revision = '8eb8a629f46e'
branch_labels = None
depends_on = None
def... | [
"7248zack@gmail.com"
] | 7248zack@gmail.com |
e6fecc5dfd263374da30baa5ca08dcfc36cf843e | e9b2a3af17a82ec4bebf3b0ca24e670885de951e | /neo/VM/RandomAccessStack.py | 7cd230c31d8ae5c134ab231ddc132e70785f6ac5 | [
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | imusify/crowdfunding-blockchain-middleware | 379efb5654f36ee3028fdd50b7e4ae649973ca6e | 35d967b005741208a7947b2edface5158d177413 | refs/heads/imu2 | 2022-06-02T06:39:05.971622 | 2018-03-03T09:59:38 | 2018-03-03T09:59:38 | 120,617,579 | 3 | 2 | MIT | 2021-06-01T21:55:40 | 2018-02-07T13:18:57 | Python | UTF-8 | Python | false | false | 1,682 | py | from neo.VM.InteropService import StackItem
class RandomAccessStack():
_list = []
_name = 'Stack'
def __init__(self, name='Stack'):
self._list = []
self._name = name
@property
def Count(self):
return len(self._list)
@property
def Items(self):
return sel... | [
"tasaunders@gmail.com"
] | tasaunders@gmail.com |
28a9f6ea1e2c3d5c96b687baee604ce54d312130 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/accounts/models_20211010000215.py | 35292b7aa656d3cd1f02443e0c8db84e9d132c67 | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
# Create your models here.
class Account(AbstractBaseUser):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
username = models.CharField(max_lengt... | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
d4fe72b1336081d99ef0dabd6ff3b10c865f77a2 | af327b6738acf8ee9383dc4fd9bc82bf522a9afb | /第6章 结构化数据分析工具Pandas/code_6.4.5.py | 83223ac8d27510a3b5a381e3be239d285164f8b3 | [] | no_license | xufive/ways2grow | c76b03d56645ae1731bcb450ab30e0cd171f0570 | 3abf8b942bfe997d73b73fe1fb61ff81ad74d093 | refs/heads/master | 2022-12-28T12:08:01.984345 | 2020-10-16T10:01:53 | 2020-10-16T10:01:53 | 265,993,044 | 16 | 9 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | # -*- encoding: utf-8 -*-
"""
6.4.5 日期时间索引对象
"""
import pandas as pd
print(pd.DatetimeIndex(['2020-03-10', '2020-03-11', '2020-03-12']))
print(pd.DatetimeIndex(pd.Index(['2020-03-10', '2020-03-11', '2020-03-12'])))
idx = pd.Index(['2020-03-10', '2020-03-11', '2020-03-12'])
sdt = pd.Series(['2020-03-10', '2020-03-11... | [
"xufive@sdysit.com"
] | xufive@sdysit.com |
e15a973ef84fabaca83fcc2b58c755850c5f1177 | 877bd731bc97f220c363914d1e66970e2d9e599e | /python_stack/_django/django_intro/books_authors_proj/books_authors_app/urls.py | 2cbca658d4748c9158dd939713ddc91444e95267 | [] | no_license | mpresto/dojo | eaccc08465298d35ae5a8e0d60e547a90bc24e05 | aec14ee041950eea7c35003fa03b0728b4606754 | refs/heads/master | 2021-05-26T00:15:16.551562 | 2020-10-04T00:09:48 | 2020-10-04T00:09:48 | 253,975,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from django.urls import path
from . import views
urlpatterns = [
path('books', views.book),
path('create_book', views.process_book),
path('books/<int:id>', views.detail_book),
path('add_author', views.add_author),
path('authors', views.author),
path('create_author', views.process_author),
... | [
"monty.preston5@gmail.com"
] | monty.preston5@gmail.com |
29089798558c29e3df1bc3539daeac08a378841d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_cockier.py | 5759063c1290757ca3ab8527642ce07e621e48af | [
"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 | 220 | py |
#calss header
class _COCKIER():
def __init__(self,):
self.name = "COCKIER"
self.definitions = cocky
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['cocky']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
da5fb1954750247d10046085ec61041faa23735d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch39_2020_04_01_14_56_02_997196.py | a35791d49c98122f6542b004e3643a0780ffd8b9 | [] | 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 | 645 | py | def collatz(primeiro_termo):
novo_termo=0
if primeiro_termo<1000:
if primeiro_termo%2==0:
novo_termo=primeiro_termo/2
else:
novo_termo=(primeiro_termo*3)+1
n=2
lista=[0]*n
lista[0]=primeiro_termo
lista[1]=novo_termo
while novo_termo>1:
if novo_... | [
"you@example.com"
] | you@example.com |
372438639e65e16bba52319154723a2d65319fc8 | d543c03d5f6993a260049ae645228e5e00f7238e | /python27/win32/Lib/zipfile.py | 7619cfee78d3de83ee873a655191daad41073f18 | [
"bzip2-1.0.6",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"LicenseRef-scancode-newlib-historical",
"BSD-3-Clause",
"OpenSSL",
"Sleepycat",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-pyth... | permissive | hehahovip/oss-ftp | 8ea4a5b7a0f5b0a156bbd9c9586e71b89c39f021 | 400b934b2fa625e31da41b3c6af98fc14f4f63ab | refs/heads/master | 2020-04-04T12:47:59.959182 | 2018-11-16T06:49:27 | 2018-11-16T06:49:27 | 155,938,177 | 1 | 0 | MIT | 2018-11-03T01:18:23 | 2018-11-03T01:18:23 | null | UTF-8 | Python | false | false | 59,383 | py | """
Read and write ZIP files.
"""
import struct, os, time, sys, shutil
import binascii, cStringIO, stat
import io
import re
import string
try:
import zlib # We may need its compression method
crc32 = zlib.crc32
except ImportError:
zlib = None
crc32 = binascii.crc32
__all__ = ["BadZipfile", "error", "Z... | [
"scorpion@yanghaorandeiMac.local"
] | scorpion@yanghaorandeiMac.local |
32094bfec7d1f73bf53f88c454aa658b21ff5eb7 | 44d70e38ffc6dad4021e8e72363893a290a64b7a | /mwatch/main.py | 94b6b983d7c32dba5025d844f0f747d292a71a21 | [
"Apache-2.0"
] | permissive | rick446/mongo-watch | 55353363174bfea9f22abf23060099f7bf1401a7 | a218a1c397f89dbfc90100fa650fa4b51958e281 | refs/heads/master | 2021-01-12T02:52:08.717843 | 2018-04-23T14:26:40 | 2018-04-23T14:26:40 | 78,122,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,690 | py | import logging
from itertools import chain
from pprint import pformat
import pymongo
try:
from mongoquery import Query, QueryError
except ImportError:
Query = QueryError = None
log = logging.getLogger(__name__)
class Watcher(object):
def __init__(self, cli, await_=False):
self.oplog = cli.local... | [
"rick@arborian.com"
] | rick@arborian.com |
0c8e2bf1927d6dfb77056648dbdb1d8d9b79192b | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/pubsub/v1/pubsub-v1-py/google/pubsub_v1/__init__.py | e4f49d6e9d87d97f720f363967d71bd48ff32afd | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,857 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
6e15139c4557ef381a727beb2930c858fa210a14 | dfab6798ece135946aebb08f93f162c37dd51791 | /timber/aokuang.timber/aokuang.timber/actors/formselectorfield/events.py | ac42bdb2d1eb95d7fe1639ac26c31dab2b19fe40 | [] | no_license | yxqd/luban | 405f5f7dcf09015d214079fe7e23d644332be069 | 00f699d15c572c8bf160516d582fa37f84ac2023 | refs/heads/master | 2020-03-20T23:08:45.153471 | 2012-05-18T14:52:43 | 2012-05-18T14:52:43 | 137,831,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
32fd38b52799830d21b7091490311c7c83f30a60 | 967056372d123ad5a86705156aea928d7352fe6a | /python基础/src/modules/my.py | 0ad230e316beccd863f6dd702a4f103130deffea | [] | no_license | lxy39678/Python | ea179ef929eb9ddddb2460656aad07880ae67f84 | aba0434bc8ca7a2abdaa3ced3c4d84a8de819c61 | refs/heads/master | 2020-04-18T22:05:11.683134 | 2019-01-27T07:49:09 | 2019-01-27T07:49:09 | 167,783,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/env python
#coding=utf-8
import time
from datetime import datetime
import sys
print
reload(sys)
sys.setdefaultencoding('UTF-8')
print sys.getfilesystemencoding()
print time.strftime("%Z").decode(sys.getfilesystemencoding()).encode('utf-8')
print "中国".encode('utf-8').decode('utf-8') | [
"895902857@qq.com"
] | 895902857@qq.com |
804693751f7c34dcafb00d5959faed6213b530fc | 5a06576cd3aa58d265c433f10fe19136f25db8a5 | /cgsa/utils/data.py | f44b89169a45995f0d8f4cf7d95bc8f1bd87cbd9 | [
"MIT"
] | permissive | gghidiu/CGSA | 3e9d787ff4150e2b3a0875c74384c1591f261945 | c5af073f064db67d92b22705899c0d0263caec58 | refs/heads/master | 2020-06-17T17:12:55.512455 | 2019-01-05T13:08:56 | 2019-01-05T13:08:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,453 | py | #!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
##################################################################
# Documentation
"""Module for reading and outputting data.
Attributes:
"""
##################################################################
# Imports
from __future__ import absolute_impo... | [
"wlsidorenko@gmail.com"
] | wlsidorenko@gmail.com |
cde49f25158ed056ea012c0cbf5dd02e5061df9b | 2fdf33eff3f22a4f2e0337f065646de8fe6cc01f | /mq/utils.py | ec63e584dd00aa2c4cdd4436bde69e7ac89a83b4 | [
"MIT"
] | permissive | apnarm/python-mq | 007d978fe6a23b0d65555909ad34f2a21df5c5d5 | 14037cf86abc2393c4f8d791fd76bcca7a781607 | refs/heads/master | 2020-04-15T10:30:05.739270 | 2014-06-09T20:58:47 | 2014-06-09T20:58:47 | 20,659,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | import sys
import time
from contextlib import contextmanager
def chunk_list(sequence, size):
"""Returns a list of lists from a list."""
def get_chunks(sequence, size):
for start in xrange(0, len(sequence), size):
yield sequence[start: start + size]
return list(get_chunks(sequence, siz... | [
"randomy@gmail.com"
] | randomy@gmail.com |
d828594adc6f7eb9cf70397564962feb6b86a16a | 796f96e8c01db0bb9493c4871be66d92689b73ab | /5097_회전/sol1.py | 6e38169fa762c0448805a506e36bde655123aa0d | [] | no_license | swhan9404/swExpertAcademy | cf82b957b7ea6231d1f4b95f77f74e7717d2de0d | dea4176229121983c6daed80811de20de6da5ff6 | refs/heads/master | 2023-04-19T22:57:37.111757 | 2021-05-02T14:58:44 | 2021-05-02T14:58:44 | 337,338,058 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | import sys
sys.stdin = open("input.txt")
T = int(input())
for tc in range(1, T+1):
N, M = map(int, input().split())
# list로 queue 구현
inp_arr= list(map(int, input().split()))
for _ in range(M) :
front = inp_arr.pop(0)
inp_arr.append(front)
result = inp_arr[0]
print("#{} {}".... | [
"swhan9404@naver.com"
] | swhan9404@naver.com |
db422a8166459af5fa7fb6aefad431847328f65f | fab72028e5aa12c0a1a1cf1b550212c017979f78 | /test_app/models.py | cd0321fab47456961ba3a922b9260af7557b4e50 | [] | no_license | jpic/test_input_relation | 0e43c64e659005472d3e7210ed0a1c8f65a05bd4 | 24a485670b2945430657ee4b998e5aaa756329c3 | refs/heads/master | 2021-01-02T08:19:08.771571 | 2015-05-19T23:43:38 | 2015-05-19T23:43:38 | 35,902,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from django.db import models
class TestModel(models.Model):
name = models.CharField(max_length=200, null=True, blank=True)
relation = models.ForeignKey('self', null=True, blank=True)
name0 = models.CharField(max_length=200, null=True, blank=True)
name1 = models.CharField(max_length=200, null=True, bla... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
0e6415dc00588741391be39b0ea44e25232e440a | 747f759311d404af31c0f80029e88098193f6269 | /addons/account_banking_nl_clieop/__terp__.py | 3728f4dce0fd515099f470fe771d6857b3c424b6 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | /home/openerp/production/extra-addons/account_banking_nl_clieop/__terp__.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
c5c3040710b66ad3829cacb41d49fd4ffee9f79b | 5966449d2e29c9b64351895db2932f94f9de42da | /catkin_ws/build/calibration_msgs/catkin_generated/pkg.develspace.context.pc.py | c5aed50da0a8c9acf6a127e9060b081e8582ea96 | [] | no_license | godaeseong/GoHriProject | 8cbce6934485b8ba3253fc7b6c5b5b59397b4518 | 425e70b7c91b6215f5477fc2250d2b0ac96577be | refs/heads/master | 2021-05-11T22:11:56.099580 | 2018-01-15T02:20:43 | 2018-01-15T02:20:43 | 117,484,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/hri/catkin_ws/devel/.private/calibration_msgs/include;/home/hri/catkin_ws/src/calibration_toolkit/calibration_msgs/include".split(';') if "/home/hri/catkin_ws/devel/.private/calibration_msgs/incl... | [
"bigdream0129@naver.com"
] | bigdream0129@naver.com |
0082adaaf92b0c63edfb3eb67e82c9f23b7aaff1 | c6d852e5842cf6f74123445d20ff03876377ae26 | /lemon/python22/lemon_25_191023_充值接口_用例关联/test_practice_01_25/middler_ware/db_handler.py | 965b6da45635f25ac85180de1363a2f57a60577d | [] | no_license | songyongzhuang/PythonCode_office | 0b3d35ca5d58bc305ae90fea8b1e8c7214619979 | cfadd3132c2c7c518c784589e0dab6510a662a6c | refs/heads/master | 2023-02-13T14:06:10.610935 | 2021-01-14T09:11:32 | 2021-01-14T09:11:32 | 327,183,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | # --*-- coding :utf-8 --*--
# Project :python22
# Current file :db_handler.py
# Author :Administrator
# Create time :2019/10/24 15:23
# IDE :PyCharm
# TODO 成长很苦, 进步很甜, 加油!
from pymysql.cursors import DictCursor
from lemon_25_191023_充值接口_用例关联.test_practice_01_25.common.db_handler_shujuku \
impo... | [
"songyongzhuang9@163.com"
] | songyongzhuang9@163.com |
9d85792ee3739689520034f7a9100b57d97a01e6 | 3b56423a34de9b4adae13d0fee4905609a9e2410 | /contrib/linearize/linearize-hashes.py | 99af17d0cc38195bef52e9e3482702549581d36a | [
"MIT"
] | permissive | mulecore/mule | 5302db1cb6596475f9496495dba12b4d1cfd0d2c | 9b2d9bf0ffc47963b5c0ce9b760cfff757961533 | refs/heads/master | 2023-03-27T02:25:49.455321 | 2021-03-26T10:31:13 | 2021-03-26T10:31:13 | 351,247,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,667 | py | #!/usr/bin/env python3
#
# linearize-hashes.py: List blocks in a linear, no-fork version of the chain.
#
# Copyright (c) 2013-2016 The Bitcoin Core developers
# Copyright (c) 2017-2020 The Mule Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.or... | [
"mule@muleda.com"
] | mule@muleda.com |
2ada5ff18ff071c0266184f2b0db5ad2a56cc1ad | 1287ad54942fd2020a217ab12004a541abb62558 | /pythonexercicios/Ex046.py | f73a36c9de3ccc6a017797df77b9e097cfd3a9b4 | [] | no_license | LuPessoa/exerciciospy- | 637f24581722e547a62380973ca645b55ff65d90 | b5faad818f978bb13a65922edceb17888b73a407 | refs/heads/master | 2023-05-12T04:16:39.847184 | 2021-06-04T03:02:24 | 2021-06-04T03:02:24 | 374,410,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from time import sleep
for cont in range(10, -1, -1):
print(cont)
sleep(0.5)
print('BUM! BUM! BUM!') | [
"lulenemacedo29@gmail.com"
] | lulenemacedo29@gmail.com |
40fcffde1d8ae8851c4f31733e22a88f8701a626 | ea9f38468c32efc07b090ff65ae0e3369486fb8b | /update/organizations.py | d7ca0b95ea56884cfbf5989ae4130373c1226511 | [] | no_license | KohoVolit/activities | f8942e9480a1d0a20bfa1727d53f49f4df9f0bb8 | 1569e8df19c9deb718e08e17ca17baa6bbedcbb0 | refs/heads/master | 2021-01-10T16:46:46.104425 | 2016-03-30T01:53:07 | 2016-03-30T01:53:07 | 53,628,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,753 | py | # insert and update organizations
# chamber and political groups
import json
import api
import authentication
import scrapeutils
url = 'http://www.psp.cz/eknih/cdrom/opendata/poslanci.zip'
unlfile = 'organy.unl'
api.login(authentication.email,authentication.password)
zfile = scrapeutils.download(url,zipped=True)
o... | [
"michal.skop@kohovolit.eu"
] | michal.skop@kohovolit.eu |
5e660b6bf487e557b8c33745d5b66cea959e7c4e | cbd2eee46663fad5b5375b13c8c21b1b06eb4c6b | /hrjk/engine/kafka_engine.py | b0e5773f5a18a78305aeb9dc4ba4f5cc70279331 | [] | no_license | 1026237416/Python | ef474ee40d7efcd6dabb6fb0ecba81b4dcfc7e14 | ffa8f9ffb8bfec114b0ca46295db05c4213c4c30 | refs/heads/master | 2021-07-05T00:57:00.456886 | 2019-04-26T10:13:46 | 2019-04-26T10:13:46 | 114,510,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@version: 1.0
@author: li
@license: Apache Licence
@contact: 1026237416@qq.com
@site:
@software: PyCharm
@file: kafka_engine.py
@time: 2018/7/17 17:58
"""
import json
from config import KAFKA_HOST, KAFKA_PORT, conductor_recv_topic
from... | [
"1026237416@qq.com"
] | 1026237416@qq.com |
96efef66f4e59be983e051f8f19e13fff585a4dc | da0ec71df76ea5071a1481ef5b54cafd6d74d720 | /python/minesweeper/minesweeper.py | 84edda519d12bb338bbe9d7f8204a1bbc09c5e6f | [] | no_license | apalala/exercism | 6bd4926c0c78790c366b3a95c1c594669f871410 | 9d295a1ba1f6950c1e03e9de6fa10ccb392ffa22 | refs/heads/master | 2021-01-18T15:56:51.685366 | 2017-03-31T23:40:29 | 2017-03-31T23:40:29 | 86,697,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | ARROUND = [
(-1,-1), (-1, 0), (-1, 1),
(0, -1), (0, 1),
(1, -1), (1, 0), (1, 1)
]
def board(matrix):
def adjust(value):
if value == ' ':
return '1'
elif value.isdigit():
return str(int(value) + 1)
else:
return value
if not matrix:
... | [
"apalala@gmail.com"
] | apalala@gmail.com |
eafa72b01bb3f0d3be4213af4e7b7bf50022defd | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/construtora/__openerp__.py | 44b6587f79173aa9f793c38484bb52a60caab17f | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,212 | py | # -*- coding: utf-8 -*-
#from __future__ import division, print_function, unicode_literals
{
'name': 'Construcao',
'version': '1.0',
'category': 'Integra',
'description': u'Construção civil',
'author': 'Integra',
'maintainer': 'Integra',
'website': 'http://www.ERPIntegra.com.br',
'de... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
620b2eb456cd0bacb38145e96666ec13851dbbd2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03393/s159130267.py | fab972600880229cd01c0c174bf16684d93f78dd | [] | 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 | 373 | py | S = input()
alp = 'abcdefghijklmnopqrstuvwxyz'
if len(S) < 26:
for char in alp:
if not char in S:
print(S+char)
exit()
else:
for i in range(1,26)[::-1]:
if S[i-1] < S[i]:
for j in range(i,26)[::-1]:
if S[j] > S[i-1]:
print(S... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e982cd970fcc733ffec8bc5132aa59a74bc15347 | e3fd35a8443aaf2f293ae03a5f6c819046a4dd21 | /leetcode-python/medium/_875_koko_eating_bananas/solution.py | 8386f90d8a84f00fa8f75457e852eec954a432c3 | [] | no_license | hieutran106/leetcode-ht | 2223ea6bcd459c2cdbc33344c0ff69df7f8a3c7f | 8332eb20e613f82cda2e326218154c7803a32403 | refs/heads/main | 2023-08-09T02:52:41.360360 | 2023-07-27T10:12:28 | 2023-07-27T10:12:28 | 234,890,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | from typing import List
import math
class Solution:
def minEatingSpeed(self, piles: List[int], h: int) -> int:
"""
We need to search k in range [1..max(piles]
Bruce force is one option, but we can optimize by using binary search
"""
left = 1
right = max(piles)
... | [
"hieutran106@gmail.com"
] | hieutran106@gmail.com |
a868b212e954ecde9a6e2ddbb97f02b3e2926de7 | 7229c0e24c02839963a3ac744b8b03dffc1a1463 | /setup.py | ee1a52ace29003f083e5dda5f8a8ec9ae1bc4141 | [
"MIT"
] | permissive | bio2bel/hippie | a4589bc912df305852fa472ef29aebad22dd2a98 | 7b21ae56a372e9972153811be9e869f6614472ad | refs/heads/master | 2020-03-29T18:47:32.021576 | 2019-08-26T13:35:17 | 2019-08-26T13:35:17 | 150,231,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | # -*- coding: utf-8 -*-
"""Setup module for Bio2BEL HIPPIE."""
import setuptools
if __name__ == '__main__':
setuptools.setup()
| [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
12f03eb4d7c67b7384a949715d2a876250691b6e | e3bdb7844f634efd89109079d22cade713c4899d | /openapi_client/models/soft_descriptor.py | 6e955d44a5031c57cec38929bb14019ee69a59d9 | [] | no_license | pc-coholic/Python | 5170c27da09b066c353e09539e404961f7ad50b7 | b7251c31339b579f71fb7ee9db05be51e9e43361 | refs/heads/master | 2023-04-19T02:42:02.914726 | 2021-04-26T16:07:37 | 2021-04-26T16:07:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,796 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
f7fcfd90159532e1747d9597ff8f8ac95b02b0b6 | 149df7dee4b00a65fd7edd143e6d5a8791b0f05f | /plotlib.py | 1589c324f8266ce95d327f744e20f95db8530943 | [] | no_license | PiotrDabkowski/Py3D | 4a65c4344884255996ea4c02cda1af8b25bc8f54 | cd383f47d22de28171be59690defe66e838d08cb | refs/heads/master | 2020-04-06T06:46:41.424810 | 2014-11-09T20:20:39 | 2014-11-09T20:20:39 | 26,407,756 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,531 | py | from PIL import Image
from PIL import ImageDraw
import guif
import math
class Plot:
def __init__(self, size=(600,400), pos=(0,0), scale_x=1, scale_y=1, centre=True):
self.__vid = guif.Video(size)
self.__size = size
self.__im = Image.new('RGBA', self.__size, 'white')
self.__draw = ... | [
"piodrus@gmail.com"
] | piodrus@gmail.com |
3d2e1e76aeff9fb853b71d131c8b95d2b0916654 | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/4.2/lib/python2.7/site-packages/RoboGalaxyLibrary/keywords/native.py | 276bc2b15f011103f08073a5398ba2f918fd3560 | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | import os
if os.name == 'nt':
from ntnative import NativeOsKeywords
elif os.name == 'posix':
from posixnative import NativeOsKeywords
| [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
a6149cc5912615ead7a405dd66d41c846a8e853d | 38d1fda1533b1ee545e4f507a77e405114ca2a51 | /tests/__init__.py | c1af8ee0dad556b017986378cedbfeb13c12ca02 | [
"WTFPL"
] | permissive | ActivKonnect/castor | 6d5f13715a78fac0b503688da95afb0130cf3929 | a6837389c23eaba9c581a194689c30587820c9e8 | refs/heads/develop | 2020-12-24T15:22:29.845970 | 2016-03-04T14:12:41 | 2016-03-04T14:12:41 | 38,937,755 | 6 | 1 | null | 2016-03-04T14:14:30 | 2015-07-11T19:26:26 | Python | UTF-8 | Python | false | false | 159 | py | # vim: fileencoding=utf-8 tw=100 expandtab ts=4 sw=4 :
#
# Castor
# (c) 2015 ActivKonnect
# Rémy Sanchez <remy.sanchez@activkonnect.com>
from .repo import *
| [
"remy.sanchez@hyperthese.net"
] | remy.sanchez@hyperthese.net |
97bfe0b12d6ac454218f101c5824d8b48fc8d518 | 4331b28f22a2efb12d462ae2a8270a9f666b0df1 | /.history/dvdstore/webapp/urls_20190914174439.py | 3a5fcfde3376715beebb709d88261bd656548217 | [] | no_license | ZiyaadLakay/csc312.group.project | ba772a905e0841b17478eae7e14e43d8b078a95d | 9cdd9068b5e24980c59a53595a5d513c2e738a5e | refs/heads/master | 2020-07-26T23:30:22.542450 | 2019-09-16T11:46:41 | 2019-09-16T11:46:41 | 200,703,160 | 0 | 0 | null | 2019-08-05T17:52:37 | 2019-08-05T17:52:37 | null | UTF-8 | Python | false | false | 1,490 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('clerk/', views.clerk, name='clerk'),
path('clerk/register2',views.register2, name='register2'),
path('clerk/register3',views.register3, name='register3'),
path('clerk/model_form_uploa... | [
"uzairjoneswolf@gmail.com"
] | uzairjoneswolf@gmail.com |
2734fe61fbccae3ea2f76c179e664252b595fd4f | f1344fb85607e6371dcf67b5c22addf535059b00 | /tests/test_score.py | 98118abf550c85939defefad2e2c92a3eb017fcc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | shunsunsun/aizynthfinder | d18bea55db48b6e29b61d167e5b5bafcc0e0b6db | 51864ef8a1dc3501d60d21ddb4d71d392f47b045 | refs/heads/master | 2023-04-10T07:28:11.204379 | 2021-04-21T12:10:42 | 2021-04-21T12:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,185 | py | import pytest
import numpy as np
from aizynthfinder.context.scoring import (
StateScorer,
NumberOfReactionsScorer,
AverageTemplateOccurenceScorer,
NumberOfPrecursorsScorer,
NumberOfPrecursorsInStockScorer,
PriceSumScorer,
RouteCostScorer,
ScorerCollection,
ScorerException,
)
from ai... | [
"samuel.genheden@gmail.com"
] | samuel.genheden@gmail.com |
c80e313bd12a3aacf520301551236756fa08a96a | 0f2e7d7c4323fb8607d5a1d709cb36f8de13078c | /0x02-python-import_modules/2-args.py | 60fb770e2d178d9b997f88c47f765de76722a66d | [] | no_license | nelsfichera/holbertonschool-higher_level_programming | ab031450f5ebc4401a255187fad82ad8b8fd9c8b | 4f3e2155746ad8e8c4cb56443c6750466d66d346 | refs/heads/main | 2023-08-18T21:31:59.425903 | 2021-09-22T16:52:32 | 2021-09-22T16:52:32 | 361,780,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #!/usr/bin/python3
if __name__ == "__main__":
import sys
n_args = len(sys.argv)
if n_args == 2:
print("1 argument:".format(n_args - 1))
print("1: {:s}".format(sys.argv[1]))
elif n_args > 2:
print("{:d} arguments".format(n_args - 1))
count = 1
while count < n_args... | [
"nelsfichera@gmail.com"
] | nelsfichera@gmail.com |
9ee29ecd7bf3848994ee9db3b3493e2ba6053189 | 8b2435044491c4f1887bcce6fdd3989b2f55be88 | /meddet/data/datasets/base.py | 6fdee7f869ce73b45b3d54a5ab17ceb0fc970800 | [] | no_license | JoeeYF/MedDetection | ed169c481ff628a771966ba5e5290f799ac2323b | 8c183d8bf632fe6bf54841ac20db19955331f336 | refs/heads/main | 2023-06-12T00:26:13.537943 | 2021-07-06T02:32:42 | 2021-07-06T02:32:42 | 382,782,483 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py |
from abc import abstractmethod
from torch.utils.data import Dataset
import json
from ..pipelines import ForwardCompose, LoadPrepare
class BasicDataset(Dataset):
N_FOLD = 5
dataset_format = ""
def __init__(self, dataset_file, image_prefix, pipeline, infer_mode=False, task=None, fold=None):
self... | [
"qiao_yuanfang@163.com"
] | qiao_yuanfang@163.com |
12150465282ffc30111b9f36e79907253eb9a7f4 | 11fa6e6506076faea2c2411143cc53ee3852a676 | /dl/pytorch/tutorial/1.2_data_loading/data_load.py | bf6a515b77d3c1c1c5eb176bf8d95ed5f51232a2 | [] | no_license | ZhangXinNan/LearnPractice | 5f0403ebe589018b7c2dd4f349228dd83ab5c60f | 992679f8697923712e42f8a5e68fbfedbeeda82d | refs/heads/master | 2023-08-04T11:46:51.673750 | 2023-07-22T06:37:50 | 2023-07-22T06:37:50 | 60,957,100 | 18 | 7 | null | 2022-11-02T08:11:56 | 2016-06-12T08:51:41 | Shell | UTF-8 | Python | false | false | 2,795 | py | from __future__ import print_function, division
import os
import torch
import pandas as pd
from skimage import io, transform
import numpy as np
import matplotlib.pyplot as plt
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, utils
# Ignore warnings
import warnings
warnings.filterwar... | [
"zhangxin19870504@163.com"
] | zhangxin19870504@163.com |
854658cf13f4ecfb539041685c704bf876be67dd | d60c06ce1cf676752c4d2331315a5fa4a18389b0 | /package/3xpath/05xpath解析基础.py | 088ae63f47c39b3bce44a03337c76af68d51a4b9 | [
"MIT"
] | permissive | HuangCongQing/Spider | f9bab6462ba7e2525a3297fceb0a0bc6f2b5e61a | f0204b8bc60ad4f78f1606a9e5c4c157094fea9b | refs/heads/master | 2023-07-05T23:19:00.272380 | 2023-07-04T12:29:27 | 2023-07-04T12:29:27 | 134,965,705 | 14 | 13 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | '''
Description:
Author: HCQ
Company(School): UCAS
Email: 1756260160@qq.com
Date: 2021-01-01 13:56:16
LastEditTime: 2021-01-04 10:34:44
FilePath: /Spider/package/3xpath/05xpath解析基础.py
'''
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from lxml import etree
if __name__ == "__main__":
#实例化好了一个etree对象,且将被解析的源码加载到了该对象... | [
"1756260160@qq.com"
] | 1756260160@qq.com |
136345666dd80f0d00f9787130e307f038c2ef90 | eb61d62ca1f6f0123e3771105f5dfbbd6115138d | /.history/leccion_20210910222316.py | dc35f2abc2ad2289ec975569ef538dca51980b08 | [] | no_license | Alopezm5/CORRECTO-2 | e0f14bcc3a88c0e222d10e3261e68532008bc42e | 223613f1fb04dce3fac9f82f243cb2f22fe100f3 | refs/heads/main | 2023-07-29T06:52:48.147424 | 2021-09-12T20:33:27 | 2021-09-12T20:33:27 | 388,995,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # frase=input("ingresas frase")
# c=frase.read()
# if c>1 and c<=5:
# print(frase)
# else:
# print("ingrese bien la frase")
from datetime import date
class Calculos:
def ant(self,fecha):
hoy=date.today()
if hoy<fecha:
re | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
4011259abc726756075d513fe7b6d65e19716f62 | 1c27972511fcf83b8050f9412714e8c029296a38 | /timedisplay2/timedisplay2/wsgi.py | ee6e16e7a853335f135755348dd2effe40b2f57d | [] | no_license | enbaba/ninja_1 | 406ab7e8b115f08194b95b76be6aa80f5a49bb09 | 9c63c851da4847eb3e858983f53cbfd7121e81fa | refs/heads/master | 2022-12-05T14:33:38.336436 | 2020-08-29T00:48:09 | 2020-08-29T00:48:09 | 291,173,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for timedisplay2 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"enbaba10@gmail.com"
] | enbaba10@gmail.com |
92a503fbafa9676d2472155a5bba906a947d0358 | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-ci/connectors/qa-engine/tests/test_inputs.py | 295dd8a484f90d3ff29746c323413a6e4167bcd2 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 6,629 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from importlib.resources import files
from unittest.mock import MagicMock, call
import pandas as pd
import pytest
import requests
from qa_engine import constants, inputs
@pytest.mark.parametrize("catalog_url", [constants.OSS_CATALOG_URL, constants.CLOUD_... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
9cf14aedda368785b0835c31f60b9e5131cf77a1 | 1936f515b46c93face431709dcf485c8b7987d08 | /python/venv/bin/easy_install-3.6 | b45fd6eb73baf83cee4a4b7aae7ffa11e1ca9d23 | [] | no_license | NicolasLagaillardie/TremplinConnecte | 216be2c7078ff3b0ba5ea081da4aeaada5ef780c | dbd46445a13d48a6bc806d8e5e685279d5551b17 | refs/heads/master | 2020-04-27T01:08:38.293591 | 2019-03-06T15:26:48 | 2019-03-06T15:26:48 | 173,956,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | 6 | #!/home/lag/.aws/python/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"lagaillardie.nicolas@live.fr"
] | lagaillardie.nicolas@live.fr |
c35f4a18d503e913aacbcd66ca915a96c3509d83 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/RecordedFuture/Integrations/RecordedFuture/RecordedFuture_test.py | 8902dfb1bc7e36f52b8dfe68c7fbcf2e8e29073b | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 53,631 | py | def create_client():
import os
from RecordedFuture import Client
base_url = 'https://api.recordedfuture.com/gw/xsoar/'
verify_ssl = True
token = os.environ.get('RF_TOKEN')
headers = {
'X-RFToken': token,
'X-RF-User-Agent': "RecordedFuture.py/2.4 (Linux-5.13.0-1031-aws-x86_64-wit... | [
"noreply@github.com"
] | demisto.noreply@github.com |
55f96f25d8159f07b2d0ec344980cf26cb305796 | e9e3f7c7a8c5e3029232327fb129967226e70c7c | /configatron/nodes/comment.py | 6ea96bafdea326f6eca5ceedda529b51283128f1 | [] | no_license | vtemian/configatron | 6ae8804d485597c732f6e8dbbb0b49156352677d | 863e73e983157bcf54e7fc2331831496ce5ba8d3 | refs/heads/master | 2023-02-02T09:05:58.361463 | 2020-12-09T18:05:44 | 2020-12-09T18:05:44 | 319,440,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import re
from .base import Node
class Comment(Node):
"""
starts with
new line
or
any number spaces
followed by `;` and any character
end
"""
REGEX = re.compile("^(\n)|(\s*(;.*)?)$")
| [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
09cfc90b2f7570592ff9034e0952e3030cd5ae53 | 9e66d474c0bf3be77fe5c327d5e501f632154fa4 | /src/marketplace/forms.py | 11b179b2bd0066faa0881b5eef3f50226ee9b2ef | [] | no_license | rcmiskin10/university-social-network | 9064c7e952c18e445f3e32592eeedf0a0215b963 | d73d61e46b96561521a35777be363d2276617fc0 | refs/heads/master | 2021-01-17T13:04:49.069656 | 2017-01-11T03:22:23 | 2017-01-11T03:22:23 | 60,044,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from .models import Product
class ProductForm(forms.ModelForm):
def __init__(self, data=None, files=None, **kwargs):
super(ProductForm, self).__init__(data, files, kwargs)
self.helper = FormH... | [
"rcmiskin@gmail.com"
] | rcmiskin@gmail.com |
f99da47b22a56aad16ca6fff173571222c2fd023 | 81d2815060bdf51e59f40366df72954ad28b2398 | /3rd_hw/blog/views.py | 10d159a9fa4b366b317ec75d748ca1377c8d86d6 | [] | no_license | ningpop/LikeLion_7th_HW | 6016604427e335250f2e3daeec27f17731612b47 | b2c65a0b7a9a928a45cf07b67cd9ed18fb86d799 | refs/heads/master | 2020-06-30T18:08:54.024617 | 2019-12-30T16:17:03 | 2019-12-30T16:17:03 | 200,902,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | from django.shortcuts import render, get_object_or_404, redirect
from .models import Blog
from django.utils import timezone
from django.core.paginator import Paginator
# Create your views here.
def home(request):
blogs = Blog.objects
blog_list=Blog.objects.all()
paginator = Paginator(blog_list,3)
page... | [
"craft1933@naver.com"
] | craft1933@naver.com |
7afd0e247bdfbc9411cf0e82498b396382fe3f4c | 959b410bf72bef851f9367ae9be42f654d7b0c94 | /setup.py | 52331ce330c06e458f72c28b9dc736b15908e384 | [] | no_license | boberstarosta/Watermark | 742c9e1233e7e2cd33cd6f28adb8a750c5bf9d5c | 56849afe85da11fdd604bcc35392f7a0498f4d26 | refs/heads/master | 2021-07-01T04:30:37.387931 | 2017-09-17T21:23:47 | 2017-09-17T21:23:47 | 103,862,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from distutils.core import setup
#This is a list of files to install, and where
#(relative to the 'root' dir, where setup.py is)
#You could be more specific.
files = ["data/*"]
setup(
name = "watermark",
version = "1.0",
description = "Adding watermarks to images",
author = "Bober",
#Name the fold... | [
"boberstarosta@gmail.com"
] | boberstarosta@gmail.com |
97ac98b56d768380cf9b9c1ede253568585d7513 | 67d8173a716da10a7350213d98938aae9f2115ce | /ProgrammingCourses/CS61A/project/scheme/tests/11.py | dbc9107332c77b54238276f874348b76991872ab | [] | no_license | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 2,690 | py | test = {
"name": "Problem 11",
"points": 2,
"suites": [
{
"cases": [
{
"code": r"""
>>> frame = global_frame.make_child_frame(Pair("a", Pair("b", Pair("c", nil))), Pair(1, Pair(2, Pair(3, nil))))
>>> global_frame.lookup("a") # Type SchemeError if you think this erro... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
9f48c60e618932f8fb6ccf0625f40cbc02f27339 | 990f13d54c09ebc217c5fcc509dab2f01f020d16 | /setup.py | 8ea30fe5ee3a5490078354b68d0ee2059bf02f16 | [] | no_license | jamesblunt/python-tclip | 5ade53b7185907e72257f8e9f6bea9fb1e71b836 | 301ca16adeb56ad791cf3b6827e8f2d4f4eecf9b | refs/heads/master | 2021-01-15T08:35:40.462261 | 2013-12-07T11:06:35 | 2013-12-07T11:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from setuptools import setup
setup(
name="python-tclip",
author="Jiangge Zhang",
author_email="tonyseek@gmail.com",
version="0.1.0",
zip_safe=False,
url="https://github.com/tonyseek/python-tclip",
py_modules=["tclip"],
install_requires=["cffi"],
)
| [
"tonyseek@gmail.com"
] | tonyseek@gmail.com |
666d936289216c750dad4e20c1392402bebc9ad9 | 4553d9a87fa134976b1622179dd2077f0f8142a0 | /apps/photos/models.py | cb1f3508bc4041860102d1f87737ee4832bc9f9d | [] | no_license | wd5/mamochkam.com | 27f07cd692ad46049ae5b8c0cd7425448fc62b66 | d554f2890e5dbc42b7124aef108938bb73481898 | refs/heads/master | 2021-01-23T21:03:17.772465 | 2011-06-05T21:56:05 | 2011-06-05T21:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from PIL import Image
from django.contrib.auth.models import User
from django.conf import settings
from django.db import models
from mamochkam.apps.common.models import Entity
from... | [
"nide@inbox.ru"
] | nide@inbox.ru |
e3f1939c28d697c0ca181b82b6da1242428ed978 | 3f4210b6a092c8a7cc43820e8d79f495018d4e68 | /starter_code/config.py | 1942d945533b930b9677779fccd1ec2f9034480b | [] | no_license | yopi1838/fyyur_yopiprabowo | a19e35722b9f2a29b44630fb8dd17972d210c824 | 557c0628417dd7be752f6e28afc8a5f510a4e1b6 | refs/heads/master | 2022-08-03T11:48:27.175178 | 2020-06-02T15:07:19 | 2020-06-02T15:07:19 | 268,832,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | import os
SECRET_KEY = os.urandom(32)
# Grabs the folder where the script runs.
basedir = os.path.abspath(os.path.dirname(__file__))
# Enable debug mode.
DEBUG = True
# Connect to the database
# TODO IMPLEMENT DATABASE URL
SQLALCHEMY_DATABASE_URI = 'postgres://yopiprabowooktiovan@localhost:5432/fyyur'
SQLALCHEMY_TR... | [
"yopi1838@gmail.com"
] | yopi1838@gmail.com |
5ee277f18cbfac9784e9029f3e68f1925cf426b2 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4079/codes/1668_1396.py | 74195d25358994a69e2ee3eed0ec42b47ccd773c | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | conta_restaurante=float(input("valor))
if (gorjeta<=300):
print(gorjeta-round(gorjeta*0.10))
else:
gorjeta(gorjeta-(gorjeta*0.06)
print(conta_restaurante,2) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
cc5f92d4059fe216023b354f347ebbcf61357fe2 | 1b5f653955779f45e78ca6dda925518779d09e8f | /submissions/2165.py | 6419ea658a8b704bd0f3fe499264457aa356c15a | [] | no_license | LeonardoSaid/uri-py-solutions | ad285f552934ead54ad2410e23113e84b0724f72 | 43c10c0e99e99d22b4b5ae2871e5d897f8823b42 | refs/heads/master | 2020-08-11T00:28:48.661578 | 2020-04-23T20:21:39 | 2020-04-23T20:21:39 | 214,453,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | s = input()
if len(s) > 140:
print("MUTE")
else:
print("TWEET") | [
"noreply@github.com"
] | LeonardoSaid.noreply@github.com |
d4673bf29ad447112ef749f137da86ca1e1456d5 | 25e40b56430fa44538aea8f77258d59899d69ff6 | /bank/context_processors.py | 12feb24860c0afb1c372305f2d10a04b0da5b429 | [] | no_license | Galaxylive/bankcenter | 207e96714fbfddc508596aad911ea85ce779bc32 | e4a2fe0e3e8b4e8b63b055aa61a39fb8cb20c12b | refs/heads/master | 2021-09-12T12:13:51.086481 | 2018-04-16T18:01:14 | 2018-04-16T18:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from .models import Bank, Location
def required_context(request):
bank_list = Bank.objects.all()
location_list = Location.objects.all()
return {'bank_list': bank_list, 'location_list': location_list}
| [
"akshar@agiliq.com"
] | akshar@agiliq.com |
e060e32c1f53318693963055bc73bedd61728875 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SSD/configs/retinanet/retinanet_x101_64x4d_fpn_1x_coco.py | b807679c46fa189d66d26fce30557db4a4e06bf8 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 962 | 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 agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
9c967c77f5b7beacb31b0008b465780a3e1016b0 | 9f79c4f9a8a9154fc3dc9202ab8ed2547a722b5f | /DataTypes&Variables/Print_ASCII.py | 3c27b61fa6794a3af2aeb387cffcd2dfcb906eb1 | [] | no_license | grigor-stoyanov/PythonFundamentals | 31b6da00bd8294e8e802174dca4e62b231134090 | 5ae5f1f1b9ca9500d10e95318a731d3b29950a30 | refs/heads/main | 2023-02-11T12:17:19.010596 | 2021-01-14T22:14:54 | 2021-01-14T22:14:54 | 321,658,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | start = int(input())
end = int(input())
for i in range(start,end+1):
print(f"{chr(i)} ",end="")
| [
"76039296+codelocks7@users.noreply.github.com"
] | 76039296+codelocks7@users.noreply.github.com |
756b2e0419e746d5f2ba7d94893571724ac1e41f | 81357d11785eb03ec9abceb93e545e5fd9bcc156 | /shop/urls.py | 41b553a2f380016c52011588f46c52fa86ce87ee | [] | no_license | ytshaha/my-first-blog | f63dcc8372aac8cd0b1bfad47a67200b2b19772d | 7ee8c893e8c98cd0c290a1121b94f34110018525 | refs/heads/master | 2023-04-19T15:31:29.996220 | 2021-05-11T18:22:12 | 2021-05-11T18:22:12 | 328,199,497 | 0 | 0 | null | 2021-04-02T07:48:22 | 2021-01-09T16:39:27 | HTML | UTF-8 | Python | false | false | 864 | py | from django.urls import path
from . import views
import django.contrib.auth.views as django_views
app_name = 'shop'
urlpatterns = [
path('', views.index, name='index'),
path('moum/', views.introduction, name='introduction'),
# path('ticket/', views.buying_ticket, name='buying_ticket'),
path('ticke... | [
"ytshaha@naver.com"
] | ytshaha@naver.com |
7c9dd7e6e35c09d734608c28e1631e8577429162 | 595c4816196017a36850770ca2e39b64a2fb7590 | /landsat/msi_landsat5.py | d8a67eba7f3bac42ba368f2d1d58a2a4149bf579 | [
"Apache-2.0"
] | permissive | XingyuXu-cuhk/Landuse_DL | 6feb546b26400733caaadcd4b420ac8557b8fe31 | a993988727387be22e7a88f6f5790de8a88dccd6 | refs/heads/master | 2023-06-06T09:23:22.323195 | 2021-06-18T09:03:16 | 2021-06-18T09:03:16 | 269,514,918 | 0 | 0 | Apache-2.0 | 2020-06-05T02:43:25 | 2020-06-05T02:43:24 | null | UTF-8 | Python | false | false | 4,215 | py | #!/usr/bin/env python
# Filename: ndvi_landsat5
"""
introduction: calculate multispectral indices of Landsat 5,
including Brightness, Greenness, Wetness, NDVI, NDWI, NDMI
The input image is download from Google Eerth Engine
For comparison, we will stack the NDVI of each image and give a name consiting with image date,... | [
"huanglingcao@gmail.com"
] | huanglingcao@gmail.com |
5ee65cca03a834f446911ce6e22c47e2f86c728d | ebb71d8710ac1445dc00b1c2a65a1e42979e2718 | /25-introduction-to-time-series-analysis-in-python/4-moving-average-ma-and-arma-models/03-estimating-an-ma-model.py | 642e3f491204bf86580507648592c948dc4a5af6 | [] | no_license | 0ashu0/datacamp-1 | 6473d83afc0ae00dc43116c1889bf065fb923ce4 | 9f0f64427ff07ff5f132886a5f44e19c5045c705 | refs/heads/master | 2020-12-13T07:56:18.687044 | 2019-01-09T07:18:02 | 2019-01-09T07:18:02 | 234,354,666 | 1 | 0 | null | 2020-01-16T15:49:48 | 2020-01-16T15:49:47 | null | UTF-8 | Python | false | false | 1,760 | py | '''
Estimating an MA Model
You will estimate the MA(1) parameter, <theta>, of one of the simulated series that you generated in the earlier exercise. Since the parameters are known for a simulated series, it is a good way to understand the estimation routines before applying it to real data.
For simulated_data_1 with... | [
"sashakrasnov.nfo@gmail.com"
] | sashakrasnov.nfo@gmail.com |
94d4170d3d0d54d449799c097408c38eeade2496 | f9f1f887629855bbf12ecb0b7358fed5946b3caa | /.history/app_blog_forum/views_20201117210223.py | ff14f3fac7843008b6d907ae22f9c8a8e7ca936e | [] | no_license | hibamohi5/blog_forum | 4f687cee3ca6bdb1d0302b3657a77c01945404b3 | d6380eb7149355c79276b738da7da94c2ee03570 | refs/heads/main | 2023-01-14T18:33:53.043754 | 2020-11-20T01:52:22 | 2020-11-20T01:52:22 | 314,417,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
def index(request):
return render(request, "index.html")
def register_new_user(request):
errors = User.objects.user_registration_validator(request.POST)
if len(errors) > 0:
for key, value in ... | [
"hibamohi5@gmail.com"
] | hibamohi5@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.