blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cafbd0edd48a15870ef991e7abd0b9b0f1125f80 | af6d81161b66b916848f8f188c392a2cf51c95a3 | /loan_backend/urls.py | 1c12daccb300129dce015ffa0de2987ae0f1ecfe | [] | no_license | Muaaz256/loan_backend | 535814dcfa8caf3c704daea8fe6042924c80dd6f | 3e6d7994e7bd66a0f07703a4ac6b0c2d2a1ded71 | refs/heads/master | 2023-04-14T04:30:57.404524 | 2021-04-26T02:35:12 | 2021-04-26T02:35:12 | 323,278,178 | 0 | 0 | null | 2021-04-23T21:29:33 | 2020-12-21T08:42:08 | Python | UTF-8 | Python | false | false | 1,131 | py | """loan_backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"m.muaaz.nu@gmail.com"
] | m.muaaz.nu@gmail.com |
8faec69b56e1872e9a53f5c8c6245995b3b322d7 | b281ceec05bb3a7d7fa9f0ce908dfd291227f120 | /WP2020/StockProject/Web-Scrap/getNUpdateStockPriceDB.py | 30f4e650689f72e141225aacdc98c3d78d3599c9 | [] | no_license | chomskim/Web-Programming | 2ccbefc2e365d5cd78d28d9e63c5cd4971957e73 | 964671facf3956f80f37b9c0225c86d832457bdd | refs/heads/master | 2021-06-10T06:16:12.461131 | 2021-06-03T11:02:26 | 2021-06-03T11:02:26 | 160,657,276 | 5 | 21 | null | null | null | null | UTF-8 | Python | false | false | 3,172 | py | # -*- coding: utf-8 -*-
'''
Created on 2019. 1. 10.
@author: cskim
'''
import numpy as np
import pandas as pd
from datetime import datetime
import mysql.connector
import urllib.request
import xml.etree.ElementTree as ET
import dbconfig
XMLDIR = 'C:\\Temp\\xml-all'
def connect():
return mysql.connector.connect(... | [
"csknova@gmail.com"
] | csknova@gmail.com |
2360573e0a5cb29fffd13fe988c7d6f093440ffe | b07a7ef99254fd5cb63287eb9552755e33dc4ff0 | /Project_V4/hypothesisEngine/algorithm/parameters.py | e0085ee952771c214dcf6e4154ac9a4a28f4637d | [
"Apache-2.0"
] | permissive | pavandonthireddy/Website-v1 | dc7912f59fbe50912ac63a3ec93aee9efd17c58e | ec143dcf565da23783803c56c323f0105e74d759 | refs/heads/master | 2021-02-04T02:04:49.703095 | 2020-02-27T19:39:08 | 2020-02-27T19:39:08 | 243,600,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,184 | py | from multiprocessing import cpu_count
from os import path
from socket import gethostname
import os
hostname = gethostname().split('.')
machine_name = hostname[0]
#hypothesis_params = {
# 'START DATE':'2004-01-01',
# 'END DATE': '2018-01-15',
# 'PORTFOLIO': 'US_TOP_500_LIQUID',
# 'NEUTRALI... | [
"35779303+pavandonthireddy@users.noreply.github.com"
] | 35779303+pavandonthireddy@users.noreply.github.com |
5fa1263b87c8a58f0a3c3222561463850690d908 | e78a642ce007b80ad59289a7216d4d821b3f033d | /ser3.py | 48507c2c72146671f5308b69819663c513dc05d8 | [] | no_license | eier7/ser3 | 9dd7098f06739c56bdb02c8bdf53f0d0fe0bd1b0 | 9839e952e04865cf83d6aa6774f7bf25b29379ce | refs/heads/master | 2020-05-17T08:35:46.878216 | 2016-12-20T14:29:07 | 2016-12-20T14:29:07 | 34,012,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,741 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import curses
import time
import pynmea2
import serial
import re
from queue import Queue
from threading import Thread
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(22, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPI... | [
"eivind.ervik@gmail.com"
] | eivind.ervik@gmail.com |
c70625ed21d14a9898fcf4634d6fce764308da76 | 225052e8d4b45764a1d210834e9e9e6dc81cde19 | /buy_sell/models.py | 14530a7804c84284b5f0b9e4697691fe37bd353c | [] | no_license | vishnu-k-s/Buy-Sell-App | 99d8b50cce1a95466bfc2e29894c553b21d7d208 | fa92bdf17b8a5e1e3f91fd5096e216fdd2febdb8 | refs/heads/master | 2023-08-13T20:34:39.397877 | 2021-10-13T04:52:33 | 2021-10-13T04:52:33 | 394,286,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,864 | py | from django.db import models
#Model for user registration
class NewUser(models.Model):
username = models.CharField(max_length=150)
name = models.CharField(max_length=150)
email = models.EmailField(max_length=150)
phonenumber = models.CharField(max_length=10)
password = models.CharField(max_length=... | [
"vishnusajeevks@gmail.com"
] | vishnusajeevks@gmail.com |
545da2d80571e4c8539199e79b3b92fa018cd91d | 8629b45d5cec27fa701c76644db2a1ac9a090b07 | /016/16.py | e848effd4500e3781e5281f0b148d840ea536535 | [
"MIT"
] | permissive | bsamseth/project-euler | 96e3a7a94cc605ded3edf7176a93147f9836350e | 60d70b117960f37411935bc18eab5bb2fca220e2 | refs/heads/master | 2021-04-06T06:16:23.425225 | 2018-11-05T09:50:21 | 2018-11-05T09:50:21 | 59,105,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | """
2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
What is the sum of the digits of the number 2^1000?
"""
print sum([int(char) for char in str(2**1000)])
| [
"b.samseth@gmail.com"
] | b.samseth@gmail.com |
852bcee70e02a31eea4fdda750582f430f99ea17 | 11ca0c393c854fa7212e783a34269f9dae84e8c7 | /Python/226. 翻转二叉树.py | 38463da19db06e4efb8634aea7b35a3f18030818 | [] | no_license | VictoriqueCQ/LeetCode | dc84d81163eed26fa9dbc2114bba0b5c2ea881f4 | a77b3ead157f97f5d9599badb4d4c5da69de44ba | refs/heads/master | 2021-06-05T06:40:24.659909 | 2021-03-31T08:31:51 | 2021-03-31T08:31:51 | 97,978,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def invertTree(self, root: TreeNode) -> TreeNode:
if not root:
return None
def dfs(root):
if not... | [
"1997Victorique0317"
] | 1997Victorique0317 |
5ec96d7131356ad296544e70d1bc1140fcc2dd98 | 0b2bb9df09731ccc8748b0b7bf66a7a427d4e416 | /test/functional/wallet_keypool.py | 0303dd4a10afad103bc64c8ac21328401843d480 | [
"MIT"
] | permissive | tcilloni/cillocoin | aae0e5bbcb4808c489ac42d1db2725bfd4b42c5a | 1145e189b9f5f4fab414fc1751bf1fce189770c9 | refs/heads/master | 2022-06-09T23:58:47.924597 | 2019-05-03T15:25:48 | 2019-05-03T15:25:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,423 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the wallet keypool and interaction with wallet encryption/locking."""
from test_framework.test_fr... | [
"thomas.martin.cilloni@gmail.com"
] | thomas.martin.cilloni@gmail.com |
66d6ad6714e58be21a827fe0220debbf5e1ea981 | c6673f34abda861d158f15f72c0fe7e327910b19 | /src/1_数据结构和算法/1.10_从序列中移除重复项且保持元素间顺序不变.py | 0b3f5fb03422a0ca34cc16d7b8497a33777cf6fb | [] | no_license | fgd-haha/cookbook | 0ac089516d39840bbc046add93b8f4dc2e46b292 | 068ee9f2cc4b90d0fbe5fa054acf78edf97823e0 | refs/heads/master | 2021-07-02T23:51:58.479230 | 2020-09-13T16:12:17 | 2020-09-13T16:12:17 | 164,295,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | """从序列中移除重复项且保持元素间顺序不变"""
a = [1, 5, 2, 1, 8, 10]
b = [{'a': 2, 'b': 3}, {'a': 1, 'b': 3, 'c': 3}, {'a': 2, 'b': 3}]
# 去除重复,无序
print(list(set(a)))
def dedupe(items, key=None):
"""
:param items: 要去重的对象
:param key: 作用是指定一个函数将item变为可hash的对象
:return:
"""
s = set()
for item in items:
v... | [
"fgd.freedom@gmail.com"
] | fgd.freedom@gmail.com |
0a57942b9958442ababf76cf5c5edea1a6dacd8a | 13f4a06cd439f579e34bf38406a9d5647fe7a0f3 | /nn_ns/parse/MyLL1L/ProcessMatchResult_MyLL1L_of_SRRTL.py | 0aef1359eb2e3c4617306d57faaef7e442c70f50 | [] | no_license | edt-yxz-zzd/python3_src | 43d6c2a8ef2a618f750b59e207a2806132076526 | 41f3a506feffb5f33d4559e5b69717d9bb6303c9 | refs/heads/master | 2023-05-12T01:46:28.198286 | 2023-05-01T13:46:32 | 2023-05-01T13:46:32 | 143,530,977 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,673 | py |
from .tools_for_id2infoID_SRRTL import *
from .SRRTL_in_MyLL1L import mainID_MyLL1L_of_SRRTL
from .ProcessMatchResult_MyLL1L import ProcessMatchResult_MyLL1L
from .raw_tokenize_SRRTL import RawTokenizer_SRRTL
#from .id2infoID_MyLL1L_of_MyLL1L import tIDDict_MyLL1L_of_MyLL1L
class ProcessMatchResult_MyLL1L_of_SRRT... | [
"wuming_zher@zoho.com.cn"
] | wuming_zher@zoho.com.cn |
0d67d821dd5dd3cad7929858c70e6c54b367a7bc | 8a59aef3a0d28ac3bc44854241b9c984ac279595 | /Exceptions 3.py | 076292730616f27fa3a4c96f057d196517508770 | [] | no_license | LaurNetz/Exceptions | aead6bb9c42addeadf2ad70fbcb6a1c4206a1694 | 8d67f0ff3c68fcc934aa5ce5e2201faa87366729 | refs/heads/master | 2020-05-22T09:40:32.168338 | 2019-05-12T19:34:07 | 2019-05-12T19:34:07 | 186,296,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | try:
with open ("Datei.xyz", "r") as file:
print(file)
print(5 / 0)
except FileNotFoundError:
print("Datei wurde nicht gefunden")
| [
"49392741+LaurNetz@users.noreply.github.com"
] | 49392741+LaurNetz@users.noreply.github.com |
1ac9526b04e496e36c8caa591056247ab113c9a8 | fea444217851a92510651da2b60035b73344d7da | /todo/setup.py | ee4284355e4449097dd3991ca5c42f45b5f04dbb | [] | no_license | fuzzygwalchmei/scratchingPost | c70d4f3f37d3d4d6490edfbbae603305b2bb5764 | b232c54aac975aebb0945d66a841db3f241b7cd2 | refs/heads/master | 2023-01-29T13:02:22.615813 | 2020-12-15T00:47:56 | 2020-12-15T00:47:56 | 176,823,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from sqlalchemy.orm import sessionmaker
from sqlalchemy import Column, Integer, String, create_engine
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine('sqlite:///todo.db')
Session = sessionmaker(bind=engine)
session = Session()
Base = declarative_base()
class ToDo(Base):
__tablenam... | [
"marc.falzon@gmail.com"
] | marc.falzon@gmail.com |
646206d4febf8d2aefd2de7b3ee814dc8477a1ba | 2f3d8570407e96f978c3f3009920c7cce7ed3819 | /tests/tests.py | 4c151dba34fd5df040cb3fedf213a9ad6adb02e6 | [
"MIT"
] | permissive | dduong42/dbimage | b12006a55a168ecde0feede5fa6f0e8dbe722289 | a42ce84b9d4d0f904e43e7ca549280428ae3d386 | refs/heads/master | 2020-05-01T17:41:51.981347 | 2019-03-25T14:50:04 | 2019-03-25T14:50:04 | 177,606,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,706 | py | from datetime import datetime
from unittest import mock
from dbimage.models import DBImage
from dbimage.views import ServeImageView
from django.http import Http404
from django.test import RequestFactory, TestCase
from django.utils.http import http_date
serve_image = ServeImageView.as_view()
class TestDBImage(TestCa... | [
"daniel.duong@outlook.com"
] | daniel.duong@outlook.com |
7376a63bba0d810d9b3569b2ade1ee4fa29cff6b | ce92f733e9a79a0aa5359afae370c69fe013b3bb | /univer_db/models/models.py | fe7e54dadf16503a44112bfde687423e0a29d2c7 | [] | no_license | yessenovuniversity/python_univer | afb15fac1328f6e3b9a0d2f7dd1fce69a5be4fd2 | f4000f541bd971c2c1d0c5fab2c0ef22fdd2298b | refs/heads/master | 2023-08-21T23:26:58.545578 | 2021-09-29T13:41:37 | 2021-09-29T13:41:37 | 294,068,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,986 | py | from sqlalchemy import Column, Integer, String, Float, Boolean, ForeignKey, Date, DateTime
from sqlalchemy.orm import relationship
from univer_db.orm import get_base
Base = get_base()
class Speciality(Base):
"""
Модель "Специальность"
"""
__tablename__ = 'univer_speciality'
id = Column('speci... | [
"nauryzbek.aitbayev@yu.edu.kz"
] | nauryzbek.aitbayev@yu.edu.kz |
7062764757830277e1ddde4564a206ae57dab4da | e7d318945518cb6be9c44e85adb2d6e1024b5100 | /recog.py | 5d4e688576401f783a6d3d544c805a1ff008679e | [] | no_license | Nagaraja007/face-recongition-system | 5c62688fc73fa570b710755471df581d9700f58b | 53217fbcaf724d6726733580e9c608b0716a26f3 | refs/heads/main | 2023-01-13T11:37:28.785449 | 2020-11-23T07:55:13 | 2020-11-23T07:55:13 | 315,236,745 | 0 | 0 | null | 2020-11-23T07:53:21 | 2020-11-23T07:42:37 | Python | UTF-8 | Python | false | false | 1,105 | py | import cv2
import numpy as np
import face_recognition
imgBabu = face_recognition.load_image_file('Images/Elon musk.jpg')
imgBabu = cv2.cvtColor(imgBabu, cv2.COLOR_BGR2RGB)
imgTest = face_recognition.load_image_file('Images/Mahesh Test.jpg')
imgTest = cv2.cvtColor(imgTest, cv2.COLOR_BGR2RGB)
faceLoc = face_recognition... | [
"noreply@github.com"
] | Nagaraja007.noreply@github.com |
2789dc13a29b1bd4182372068d04911aecafd111 | ab33d7e3bdeadf08e0e0729b14c3a31832113ce5 | /stdplugins/say.py | a7d7d981a91a42b411b09ebb5ebe5954e5c9eb9f | [
"Apache-2.0"
] | permissive | mkaraniya/PepeBot | 36276d7010394d2414e9c04e9464faff5c90ec8c | 9f58c1c6ba01166f4cc48ea606b8b1f911cf425d | refs/heads/master | 2020-08-26T10:21:35.015984 | 2020-04-08T09:14:39 | 2020-04-08T09:14:39 | 217,000,714 | 2 | 9 | Apache-2.0 | 2019-10-23T07:56:41 | 2019-10-23T07:56:41 | null | UTF-8 | Python | false | false | 574 | py | # For UniBorg
# By Priyam Kalra
# Syntax (.say <text_to_print>)
from uniborg.util import admin_cmd
from telethon.tl import functions, types
import time
@borg.on(admin_cmd(pattern="say ?(.*)"))
async def _(event):
if event.fwd_from:
return
input = event.pattern_match.group(1)
if not input:
abe... | [
"55076817+prono69@users.noreply.github.com"
] | 55076817+prono69@users.noreply.github.com |
33d8913ac39630086a9e415aa0d564315499abeb | 0b30cdc66866b93e3c892317a4d6475830475cf8 | /scripts/Solver.py | 1a8e43fb7b7ea4db0a6833e1bb45b0f345191076 | [
"MIT"
] | permissive | ciherrera20/MinesweeperSolver | 1dda7ac1f0d1fb595d5849a786c32b46d478a046 | 5426cacc0d1059a8d5b7e527b79218bef36de0bb | refs/heads/main | 2023-04-15T19:42:19.427789 | 2021-04-29T08:31:08 | 2021-04-29T08:31:08 | 362,274,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,806 | py | import numpy as np
import time
from Board import *
class Solver:
def __init__(self, board):
self.board = board
def solveOne(self):
# Click any zeros and all of its neighbors
# Get list of squares: that touch non-clicked squaes and athe adjacent squares that have not been clicked
... | [
"ciherrera20@icloud.com"
] | ciherrera20@icloud.com |
674f327214bd3891a9a61fbde86f7e071c40e10b | 1e25077041d953fbd5a2a528c6bef04d8a5b8c01 | /testing.py | e44f2d693b1a44777187d4cbeb364c81159271bb | [] | no_license | lesquive/smartpcap | ecf9c6ba408aa5d57d6dc6fbd38962beb0b95b07 | 57ecf634fddf4f1538fc895bd665d4e494a1bd89 | refs/heads/master | 2022-02-22T16:18:27.702475 | 2019-10-10T23:59:23 | 2019-10-10T23:59:23 | 204,085,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!/usr/bin/python3
from scapy.all import *
from scapy.utils import *
import time
start = time.time()
pktnum = 0
pkts = rdpcap ('110kpackets.pcapng')
for pkt in pkts:
pktnum += 1
try:
print(pkt[DNS]["DNS Question Record"].qname)
except:
pass
end = time.time()
print("")
print("")
prin... | [
"luis-esquivel@Luiss-MacBook-Pro.local"
] | luis-esquivel@Luiss-MacBook-Pro.local |
b4b756731874b115f76aa509cfd115c1f33441d6 | 7a54cefc06f1f4b9f8e0884ae38d9155ea4c015d | /Python/commitAndPushToRemote.py | 2390806306f26fd8739adb54f6637677778e2bdb | [
"Unlicense"
] | permissive | Giorox/script-collection | 2f98cd97af1e5c0eb5a47941c4cb62635c525b6b | aa87f6123a4f6c53398da67158c4ae651c77943f | refs/heads/master | 2023-07-16T04:41:05.929050 | 2021-08-31T15:22:10 | 2021-08-31T15:22:10 | 401,523,792 | 5 | 1 | Unlicense | 2021-08-31T15:19:39 | 2021-08-31T00:27:38 | Python | UTF-8 | Python | false | false | 1,354 | py | #!/usr/bin/python
# Script to commit and push to a remote repository using gitPython package
# Usage: python commitAndPushToRemote.py
# Author: Giovanni Fazolo Silva Rebouças
# Date: 18 July 2019
# Version: v0.0.2 (23 August 2019)
# NOTE: Repository should already exist and have a remote named 'origin' configured
from ... | [
"giovannireboucas@hotmail.com"
] | giovannireboucas@hotmail.com |
6bfb8ef28cd4b15180b19694a99bf170315d9632 | 02eacb2f5bf2ef6d37e2d8793e6958e55140378b | /auxi/spy_utils/request_tool.py | fdefd5ceda4449a717b25804697e93798dea1767 | [] | no_license | xx-zhang/spy2hy | 83a6817df15422c30dcdd924943b682e6d407bb4 | 6ebdd36b8056d13668882733d9f796bc13443f07 | refs/heads/master | 2023-05-27T02:13:11.547371 | 2020-06-27T05:24:44 | 2020-06-27T05:24:44 | 275,252,283 | 0 | 0 | null | 2021-06-10T23:06:04 | 2020-06-26T21:37:12 | Python | UTF-8 | Python | false | false | 1,780 | py | # coding:utf-8
# https://stackoverflow.com/questions/4685217/parse-raw-http-headers/
from email.parser import BytesParser
from http.server import BaseHTTPRequestHandler
from io import BytesIO
class HTTPRequest(BaseHTTPRequestHandler):
def __init__(self, request_text):
self.rfile = BytesIO(request_text)
... | [
"actanble@gmail.com"
] | actanble@gmail.com |
1d1ad508982878d2a7de6f98ca22edde4e5274f0 | b4556a9e9d5d46bbe4b94d59b220af72fb2ba96f | /multilingual/transformers/modeling_tf_transfo_xl_utilities.py | e6a6dfe686d1169b5c7afb9f6cdf298368f2fcde | [
"MIT"
] | permissive | HLTCHKUST/Xpersona | 9d12650f618f40bd0d7199c5cb08a32ef7aa5076 | 1da049a1bbf3b01548f98cc23ba75ef871416e50 | refs/heads/master | 2023-04-17T11:52:03.270677 | 2022-05-25T22:09:25 | 2022-05-25T22:09:25 | 253,739,477 | 66 | 17 | MIT | 2023-04-06T10:03:37 | 2020-04-07T08:56:18 | Python | UTF-8 | Python | false | false | 8,329 | py | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | [
"zlinao@connect.ust.hk"
] | zlinao@connect.ust.hk |
341573d4341b6db71284813bb7a55d035fcd1e4f | cf6377dc2db288fcfcbddb1fd46a167a02faf8e6 | /ocr-numbers/ocr_numbers.py | 16236c0060f426affaaf9d6736f8dfdf4e6cb65b | [] | no_license | galipkaya/exercism-python | a442f295612b8dcf30515057a3879c341c7acfd9 | 87ef99b3300dd940286cb52cc12f4a92368fc9fe | refs/heads/master | 2023-07-31T03:11:51.816801 | 2021-09-26T13:40:24 | 2021-09-26T13:40:24 | 295,388,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | ocr_numbers = {
" _ \n| |\n|_|\n ": "0",
" \n |\n |\n ": "1",
" _ \n _|\n|_ \n ": "2",
" _ \n _|\n _|\n ": "3",
" \n|_|\n |\n ": "4",
" _ \n|_ \n _|\n ": "5",
" _ \n|_ \n|_|\n ": "6",
" _ \n |\n |\n ": "7",
" _ \n|_|\n|_|\n ": "8",
" _ \n|_|\n _|\n ":... | [
"galip.kaya@udemy.com"
] | galip.kaya@udemy.com |
242081385cba0f8c8aa2b376756a72a97aec67d3 | 895ce4db2d46e1a6048b5540b9213a3961909233 | /pwn/partycreation/solve.py | 8b9b8c5c4833e41b6a9200125271de273889c1f6 | [] | no_license | AdnanSlef/csawred2020_fixed | 2a3e434f1dff51d9cf5b9e4c72cdd4db43c22963 | 1b2c996b7e1b68566bbf377bd3a3d6df71b28c0d | refs/heads/master | 2022-12-17T11:45:46.573481 | 2020-09-27T19:45:33 | 2020-09-27T19:45:33 | 297,501,259 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | #!/usr/bin/env python3
from pwn import *
"""
Show character at index I: x/24c (char *)&party+0x18*I
Show values only at index I: x/8c (char *)&party+0x10+0x18*I
Leaking values is fine, but I can only rename, not revalue.
I can write nulls in name; it just has to end with a null byte.
"""
def menuChoice(n):
print... | [
"aself.school@gmail.com"
] | aself.school@gmail.com |
ba801aca965089f72776e5998d259a23802b74e6 | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/sliding-puzzle.py | 22a02e080a64c277d48f26a549604f17dc5dba51 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 4,140 | py | # Time: O((m * n) * (m * n)!)
# Space: O((m * n) * (m * n)!)
import heapq
import itertools
# A* Search Algorithm
class Solution(object):
def slidingPuzzle(self, board):
"""
:type board: List[List[int]]
:rtype: int
"""
def dot(p1, p2):
return p1[... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
7029d9404d228661a4e2e7d27618a58caefe3e98 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.SHP/Sans_8/pdf_to_json_test_Latn.SHP_Sans_8.py | a9ff90b902a1274df32bc2575bf41aceb7fb70ec | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.SHP/Sans_8/udhr_Latn.SHP_Sans_8.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
ec9b629eb9e34d72db4ddc25266b903037318372 | 17a20afc6bb39ae272b1a24610e5353b06fbb2ff | /analysisAR.py | 45796723abc9364d87eed1b66ddcb6ea045f8183 | [] | no_license | kopojs/data-assimilation-elections | f109941449489b680f8dfba70604678897346d9d | 2fc9d2bafa1cc463cd9b19840c39b0919ba8bb63 | refs/heads/master | 2022-12-17T06:41:21.988100 | 2020-09-08T19:34:02 | 2020-09-08T19:34:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,260 | py | import pandas as pd
import datetime as dt
import methods as m
import matplotlib.pyplot as plt
import math
from statsmodels.tsa.ar_model import AutoReg
from sklearn.metrics import mean_squared_error
from pandas.plotting import lag_plot
from statsmodels.tsa.stattools import adfuller
from statsmodels.tsa.stattools import ... | [
"robinhendrickx@gmail.com"
] | robinhendrickx@gmail.com |
e167205a15456bb695455dcffd27e9746cb15092 | c03717080fc76c8f442e4fc45681f2faa6d87819 | /a__preprocess_step1__comma_remove.py | 57cc31fb6685cc2a974ca85bf5625636ccaffd2f | [] | no_license | PharrellWANG/proj_vcmd | a010cc8eedd396cc7f22486daa32fb322e30ec4d | 952733f71ee3c8f18016144ddf95e6a74bc866c7 | refs/heads/master | 2021-01-20T03:09:04.226185 | 2017-05-12T02:52:02 | 2017-05-12T02:52:02 | 89,501,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # INPUT_FILE = '/Users/Pharrell_WANG/PycharmProjects/tf_dp/data/z_raw_partial_16.csv'
# OUTPUT_FILE = '/Users/Pharrell_WANG/PycharmProjects/tf_dp/data/z_partial_16.csv'
def comma_remover(INPUT_FILE, OUTPUT_FILE):
with open(INPUT_FILE, 'r') as r, \
open(OUTPUT_FILE, 'w') as w:
cnt = 0
f... | [
"15113029g@connect.polyu.hk"
] | 15113029g@connect.polyu.hk |
00f0d19f0d1b700cc76c6bded9bfe06280539b08 | 5c30b186c1e6753d12ee123a5b50f5208f64b466 | /Natural Language Processing/restaurant search chatbot/Rasa_basic_folder/actions.py | 4cedf058314d897af828ee96b182e54f66de6777 | [] | no_license | punithagirish/Assignment | 90085cf8ee37a38f7572f1e9cc00b74c438e57ff | 5914ba071906074aa79075f8c8fab13fd54886e4 | refs/heads/master | 2022-06-11T06:44:59.214022 | 2020-05-05T15:46:03 | 2020-05-05T15:46:03 | 260,674,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,357 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from rasa_core.actions.action import Action
from rasa_core.events import SlotSet, AllSlotsReset, Restarted
import re
import requests
import logging
from bs4 import BeautifulSoup
import urllib3
urllib3.disable... | [
"noreply@github.com"
] | punithagirish.noreply@github.com |
6ec0eab8f7da15e2da1d5070d96fc4234f6522ce | 8a21118dffc092bf28b20aadeaae8e333fc602eb | /Python_course/Part 3/request-handling/landing/app/views.py | 3552980558e03b436d57d192a791b7edd2742292 | [] | no_license | shattl2000/Netology | 7bb9fa54ecd30fc70c327caeb0b8575f46bba11a | 6357373160efa52c3563b53bd78d752f80973f5d | refs/heads/master | 2022-11-23T13:33:27.051130 | 2019-12-08T14:20:05 | 2019-12-08T14:20:05 | 193,401,160 | 1 | 0 | null | 2022-11-22T03:59:24 | 2019-06-23T22:25:57 | Python | UTF-8 | Python | false | false | 2,735 | py | from collections import Counter
from django.http import HttpResponse
from django.shortcuts import render_to_response
# Для отладки механизма ab-тестирования используйте эти счетчики
# в качестве хранилища количества показов и количества переходов.
# но помните, что в реальных проектах так не стоит делать
# так как пр... | [
"shattl2000@MacBook-Pro-Aleksandr.local"
] | shattl2000@MacBook-Pro-Aleksandr.local |
d2a3619d1a99b718458ffed7e6bdd3f373536969 | 04eaab6d9a6707b950d7ec4688707a883a009889 | /where/cleaners/__init__.py | d225d68de08cd820429206b62eea119429a5ee10 | [
"MIT"
] | permissive | skjaeve/where | 3eae1036419e5f9c6b824b5f9b1dcedbe9d4da93 | 690558f64d54ce46c55a0bc3ef26f6fd992a3737 | refs/heads/master | 2020-04-05T03:35:01.737430 | 2018-11-28T11:04:59 | 2018-11-28T11:04:59 | 156,520,078 | 0 | 0 | null | 2018-11-07T09:13:35 | 2018-11-07T09:13:35 | null | UTF-8 | Python | false | false | 454 | py | """Framework for cleaning data
Description:
------------
Each data cleaner should be defined in a one of two directories:
+ `editors` - Editors can add new fields to the dataset.
+ `removers` - These cleaners only remove observations.
"""
# Make the apply-functions in subpackages available
from where.cleaners.edi... | [
"geirarne@gmail.com"
] | geirarne@gmail.com |
a0826789b291e73c8285516989eb8929b529ecda | 36afa10e2dcafb68325ab40641966a36283d312b | /news/urls.py | e61e6cde2fb6f613358871b3642dedda5a13e496 | [] | no_license | parulian1/foundation | 6b707bcbf8067165d80e3bdc58626e6bb9a4521b | 178b580f17fe3aad39824f8465cb5275dc019297 | refs/heads/master | 2021-01-10T05:22:25.360967 | 2016-02-11T03:58:59 | 2016-02-11T03:58:59 | 49,107,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | from django.conf.urls import url
from . import views
app_name = 'news'
urlpatterns = [
url(r'^$', views.news, name='news_main'),
url(r'^blog/$', views.blogs, name='blog_main'),
url(r'^press/$', views.press, name='news_press'),
url(r'^press/category/(?P<category_id>\d+)/$', views.view_press_by_category, n... | [
"martogi.parulian86@gmail.com"
] | martogi.parulian86@gmail.com |
d53083f167fd05069cc03ea3f96e13596e56430a | 6c4f31eded1ab11b36b70bcf55263a13568509b2 | /geoservice/geoservice/wsgi.py | 119e140c1e9f4a028ea3e53468623409b35cf50f | [
"MIT"
] | permissive | ride90/postgis-geo-service | 202c55bee77f483f8e76be04b205ff683bbac188 | c9d1bacf6a154a3b3ec57cf52adc7b79c79c2941 | refs/heads/master | 2020-07-23T16:46:11.262073 | 2019-09-11T09:08:01 | 2019-09-11T09:08:01 | 207,635,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for geoservice 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_SE... | [
"olegpshenichniy@gmail.com"
] | olegpshenichniy@gmail.com |
09b4d2980880ee3f36aa9300da47c0c4975b6020 | 058a0a3720e97ef269460727b16d41035fcf5be4 | /2048-3D-rl-master/py_2048_rl/learning/replay_memory.py | 908e81c5a1319285cb6e72b4b71251c4b123d93e | [] | no_license | aliciaxue/3D_2048_deep_q | 516e75693c76543f7868da6c3075950faabaea86 | f60cfefcfa611a0e7e39f5649bf7d72b18c0d384 | refs/heads/master | 2020-03-18T17:53:24.464854 | 2018-05-27T15:19:26 | 2018-05-27T15:19:26 | 135,057,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | """Replay Memory"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from collections import deque
import random
MEMORY_CAPACITY = 1e5
class ReplayMemory(object):
"""Keeps a set of Experiences in a Queue"""
def __init__(self):
self.queue = deque(... | [
"u3514240@hku.hk"
] | u3514240@hku.hk |
bc56e5dd54bb287f4e585e94a821577e92f6e4ad | 3d659c1c3a8aaa0f1f4628bb046787a01f9e513d | /bin/scripts/vc_usd_nt.py | 5799d66addf54b75f6e6d3e95201684be1255047 | [
"Apache-2.0"
] | permissive | sugimotokun/VirtualCurrencySplunk | 8ba12c6bd26ac3e7262bc5d4ad714cabc5c7f4f0 | e9797ec4924da5a6a4fe33f74e831611084cecf9 | refs/heads/master | 2021-01-23T00:48:45.950021 | 2017-06-30T12:11:37 | 2017-06-30T12:11:37 | 92,849,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | #
# Copyright (c) 2017 Sugimoto Takaaki
#
# 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 i... | [
"sugimotion@gmail.com"
] | sugimotion@gmail.com |
ed5f6cde139950405c6ec1728493c26afb9a6799 | 9531e597cd3f865cc6b6f780498a18281c2413f8 | /comments/models.py | 956bf210ee9ab176d9e93f98dac9fd3202ac60d4 | [] | no_license | dpitkevics/DevNet | 7133b80ce5d56b9c11aa4c500d530faed7cb13f4 | 98ebc3916346e6c2bda79711a3896f7c2a8e2ac8 | refs/heads/master | 2020-04-15T12:04:00.245848 | 2015-09-14T17:45:39 | 2015-09-14T17:45:39 | 41,320,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from django.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from model_utils.models import TimeStampedModel
class Comment(TimeStampedModel):
user = models.ForeignKey(User)
... | [
"daniels.pitkevics@gmail.com"
] | daniels.pitkevics@gmail.com |
1ec7d95d1793fcef3900410021a4866f130286d4 | 9e715dea01dc637ed91cde345df8ae81267f60a9 | /webapp/apps/taxbrain/migrations/0069_auto_20150314_2139.py | ffaec203e84da216bcbc53279e1dc8272924d4d0 | [
"MIT"
] | permissive | kdd0211/webapp-public | f08b76201a6a59116bcfdc382ba995a46dd629cd | bcf94d5d6458ac5c6e89d0cf33d7fed06c85030d | refs/heads/master | 2021-01-16T21:07:44.059049 | 2016-01-14T05:09:50 | 2016-01-14T05:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('taxbrain', '0068_auto_20150314_2137'),
]
operations = [
migrations.RenameField(
model_name='taxsaveinputs',
... | [
"tj.alumbaugh@continuum.io"
] | tj.alumbaugh@continuum.io |
d6161fc1725dc4dfcd4a909c2e194f14906fa65a | c529c17f5ea2acc86b19178927638ff4f21934e7 | /projet1/firstApi/urls.py | 6be3def263a6d686864c88e3cad0d077512cd3bf | [] | no_license | olivierdpn/incidentManagerRegressor | 4551e207eff83427931817726aa3093ab1e968d6 | caf2543506d39f940fd69f13e1bd2719504815dc | refs/heads/master | 2020-12-26T07:14:42.621896 | 2020-01-31T13:53:06 | 2020-01-31T13:53:06 | 237,429,958 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | """firstApi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"noreply@github.com"
] | olivierdpn.noreply@github.com |
ce56eb6e727648587f59e82414d069ed72386e63 | 37ac2a5e145687a8d3af1ae4e5fc28b5364afe52 | /engine/extensions/pythonize.py | 0f4666fec7432659b1c03027941f7509c16a1919 | [] | no_license | m64/PEG | ff961554199b09c33f8f74baeed0d6d01b403412 | 0f40a8538bbc0db6869eb81291e52574632f824c | refs/heads/master | 2020-12-24T15:49:37.670080 | 2009-12-21T00:39:26 | 2009-12-21T00:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,458 | py | # -*- coding: utf-8 -*-
# ####################################################################
# Copyright (C) 2005-2009 by the FIFE team
# http://www.fifengine.de
# This file is part of FIFE.
#
# FIFE is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# ... | [
"m64@tryglaw.eu"
] | m64@tryglaw.eu |
91bf99a2e6bbb2f2dbb60eb172f61a1ec01f2632 | a5a7a70348420b5815d4a49d74aa42e4ca41b4ba | /SAN/lib/utils/box_utils.py | ab81dc6b92ea5b149614c3bfed69a410239b17bb | [
"MIT"
] | permissive | 738654805/landmark-detection | 18f8692b0f81bb4198cb6a5baca42a3f9ec89e59 | 70f647752147592fd5f62f99e64c685a6cf45b4a | refs/heads/master | 2020-06-06T10:53:50.751520 | 2019-06-13T08:41:15 | 2019-06-13T08:41:15 | 192,720,661 | 1 | 0 | MIT | 2019-06-19T11:39:25 | 2019-06-19T11:39:25 | null | UTF-8 | Python | false | false | 1,836 | py | ##############################################################
### Copyright (c) 2018-present, Xuanyi Dong ###
### Style Aggregated Network for Facial Landmark Detection ###
### Computer Vision and Pattern Recognition, 2018 ###
##############################################################
impor... | [
"280835372@qq.com"
] | 280835372@qq.com |
e52324dcdebcdb2f34f4786fda22afbb8bd34b14 | 1b370961c5245e2606f0249170b7a6a041587f44 | /기초/sample_package/vietnam.py | ceb3789ffdbaccd07725281ebb6c7e250ebc4267 | [] | no_license | JooHeon-Lee/practicePython | 5becc3415c02bfb83a3dfefc8679ab32a60a39e0 | ce7a36b5116e1517968267182038ef6745e58376 | refs/heads/master | 2023-07-02T19:27:43.917856 | 2021-08-07T04:41:28 | 2021-08-07T04:41:28 | 389,360,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | class VietnamPackage:
def detail(self):
print("[==========베트남======]") | [
"58197251+JooHeon-Lee@users.noreply.github.com"
] | 58197251+JooHeon-Lee@users.noreply.github.com |
c7e7e82e5e57eb7f5e8a25349533c08df1381489 | 4b6cc9a5850a19bec392144a2680a98757430a40 | /U-net_skip_connections.py | d4414060e814f731566958d77e1ae16b001e16e5 | [] | no_license | Saurabh-29/Image-Segmentation-with-U-net | 223585b3eff50e7993b1929d90467032f6427b97 | 45019866d9cae2a7394cedffdc1278aea77a974b | refs/heads/master | 2021-01-20T05:27:17.289403 | 2017-10-05T18:18:39 | 2017-10-05T18:18:39 | 101,447,023 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,859 | py |
# coding: utf-8
# In[1]:
#get_ipython().magic(u'matplotlib inline')
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from keras.models import Sequential,Model
from keras.layers import Dense, Conv2D, Input, MaxPool2D, UpSampling2D, Concatenate, Conv2DTranspose, Add
from keras.optimizers import ... | [
"noreply@github.com"
] | Saurabh-29.noreply@github.com |
e5d6a8db13981145d31b06f0e1a24d7802a0b44e | 741bb642f449ae634bcb51ebe97090899d29b5ce | /PythonFiles2/src/pages/mapExplore.py | a3031758bcfb39b954ce029d763cbf7133280788 | [] | no_license | vihuma/QUIPUS_DASH | 8c0f67227fa1e967167e7d3a3335556d250979ab | 9351afe033cef219453a5d29133e9020377c0de7 | refs/heads/main | 2023-06-26T06:40:28.382863 | 2021-07-27T06:16:48 | 2021-07-27T06:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import dash_cytoscape as cyto
from dash.dependencies import Input, Output, State
import pandas as pd
import keplergl
import geopandas as gpd
import urllib.request
import os
from pandas.tseries.off... | [
"noreply@github.com"
] | vihuma.noreply@github.com |
48e2ee9bf74f32216e6bdd5b5583f8c382c79a1f | b4024f4190be23e4a0305f73790a483ac5bbb346 | /articles/schema.py | bb0da173009e565fabde127a4850eb99b0daa878 | [] | no_license | alexc957/newsRecommenderBackend | c3ffc5fb1113fe563e31f45060d8a5d670717787 | 33fbbe4fd0faee482407ddc41baeb91922ab67a7 | refs/heads/main | 2023-06-05T15:25:56.106685 | 2021-06-24T21:35:12 | 2021-06-24T21:35:12 | 315,438,187 | 0 | 0 | null | 2021-06-24T21:35:12 | 2020-11-23T20:53:39 | Python | UTF-8 | Python | false | false | 3,234 | py | import math
import graphene
from graphene_django import DjangoObjectType
from .models import Article, SimilarArticle
from django.db.models import Q
from django.db.models import Count
class ArticleType(DjangoObjectType):
"""
docstring
"""
class Meta:
model = Article
class SimilarArticleType(... | [
"alexcoronel1995@gmail.com"
] | alexcoronel1995@gmail.com |
dcf6bb640f9751ecee9553d97d552f8c75126a42 | 5d6ef1469740109d732441e88aed91890f2b8361 | /accounts/views.py | 9758580ce50b736a4f2a87156cc2586f2a14e758 | [] | no_license | boiyelove/workflow | 1ce88ee830fe4536db4423962296557629d81a7e | 273c168f0a0979f29f5154d3c67337091e0fe4b3 | refs/heads/master | 2023-07-17T16:40:05.178225 | 2020-08-08T16:59:06 | 2020-08-08T16:59:06 | 172,429,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,354 | py | import datetime
from django.shortcuts import render, get_object_or_404
from django.contrib.auth import logout
from django.views.generic import TemplateView, ListView
from django.views.generic.base import View
from django.views.generic.edit import FormView, UpdateView, CreateView, DeleteView
from django.contrib.auth.dec... | [
"daahrmmieboiye@gmail.com"
] | daahrmmieboiye@gmail.com |
8989148a1e906ae9fa35e8e5f99f07891fdd0d91 | 17e9441138f8ad09eab3d017c0fa13fa27951589 | /blog17-networkx/test02.py | 837cd862a077033de44e123fefe0dbd0a98117bc | [] | no_license | My-lsh/Python-for-Data-Mining | 159a09e76b35efd46ca3e32ad6dd2174847d5ec4 | f2dd0b8f3c4f5f51a10613dff99041bca4fd64c5 | refs/heads/master | 2023-03-26T08:48:32.088713 | 2021-03-25T14:57:07 | 2021-03-25T14:57:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 02 10:33:58 2017
@author: eastmount CSDN 杨秀璋
"""
import pandas as pd
import numpy as np
import codecs
import networkx as nx
import matplotlib.pyplot as plt
""" 第一步:读取数据并获取姓名 """
data = pd.read_csv("data.csv",encoding ="gb2312") #中文乱码
print data[:4]
print... | [
"noreply@github.com"
] | My-lsh.noreply@github.com |
b7fd1cc456cbd98d11801372c51c0829413781c4 | 88f0f48a4a92e7047bc04fd5020da9b977080710 | /PythonIntroduction/lesson-03/task07/len_function.py | 491e32f8f3da5f05a3ba80d1a0ba2a248354f561 | [] | no_license | jdegrave/Python | 1a2e2f9d074ebebb46e27cc11a7a31ede17a9f6c | 742f57c9aef3363fc9b81e692fc15c226b660200 | refs/heads/master | 2021-01-11T23:34:56.237814 | 2018-02-21T18:47:58 | 2018-02-21T18:47:58 | 78,603,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | phrase = """
It is a really long string
triple-quoted strings are used
to define multi-line strings
"""
first_half = phrase[:((len(phrase))//2)]
print(first_half)
| [
"jdegrave@earthlink.net"
] | jdegrave@earthlink.net |
56369ddc8c1a98b044a2f85d4c3d2de04464af88 | 5020ce76812057bc56a6fcdbf95a316caea3a1c9 | /users/request.py | d0672b0d27dc78bbd8db3f62f780d9453d1bef4d | [] | no_license | NSS-Day-Cohort-42/rare-server-talking-heads | 820b488fb473101265c42b444ac2be329fdabe46 | 45817bc9215b30a09d8317dd43ccd2776a8f5169 | refs/heads/main | 2023-01-01T03:07:25.108146 | 2020-10-28T20:52:01 | 2020-10-28T20:52:01 | 306,053,924 | 1 | 0 | null | 2020-10-28T21:04:41 | 2020-10-21T14:36:46 | Python | UTF-8 | Python | false | false | 1,450 | py | import sqlite3
import json
from models import User
def create_user(new_user):
with sqlite3.connect("./rare.db") as conn:
db_cursor = conn.cursor()
db_cursor.execute("""
INSERT INTO User
( user_name, email, password, first_name, last_name, bio )
VALUES
( ?, ?... | [
"christopherjohnson1@gmail.com"
] | christopherjohnson1@gmail.com |
458e17eed0bc39f02d890a755f9aa6207076f831 | 2a9a136296e3d2abebf3a3dbfbbb091076e9f15f | /env/Lib/site-packages/pip/_vendor/html5lib/treeadapters/sax.py | 59b0a8ff79ffd1467ad8d32e2074685db1ed7e20 | [] | no_license | Lisukod/planet-tracker | a865e3920b858000f5d3de3b11f49c3d158e0e97 | 6714e6332b1dbccf7a3d44430620f308c9560eaa | refs/heads/master | 2023-02-18T19:26:16.705182 | 2021-01-23T01:51:58 | 2021-01-23T01:51:58 | 328,032,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | from __future__ import absolute_import, division, unicode_literals
from xml.sax.xmlreader import AttributesNSImpl
from ..constants import adjustForeignAttributes, unadjustForeignAttributes
prefix_mapping = {}
for prefix, localName, namespace in adjustForeignAttributes.values():
if prefix is not None:
pre... | [
"45397160+Lisukod@users.noreply.github.com"
] | 45397160+Lisukod@users.noreply.github.com |
84f566651ccbc2f88d67c30cfbb05c6b820cb111 | 85c260a899cf5d9e5d50ddfe0c5ad94cb1962178 | /e1-lista/triangulos.py | 355b52a218507047ed492b2c28aa5aae61ca6354 | [] | no_license | anniasebold/prog1-ufms | 4dc4c98604b3f31083a85c808977f0c32b27b7a9 | 391adc21da6f9f0f0260225ab7f34a162a52e70c | refs/heads/main | 2023-06-18T13:21:34.304666 | 2021-07-05T15:30:16 | 2021-07-05T15:30:16 | 356,414,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | a, b, c = input().split()
a = float(a)
b = float(b)
c = float(c)
meio = 0
if a > b:
if b > c:
a = a
b = b
c = c
elif a > c:
a = a
meio = b
b = c
c = meio
else:
meio = a
a = c
c = b
b = meio
elif b > c:
if a > c:
meio = a
a = b
b = meio
else:
meio ... | [
"anniasebold3.0@gmail.com"
] | anniasebold3.0@gmail.com |
4905eb23d9b63be38aa3c7d1f8e8c1fd737cec27 | 28acabcd17f791eff443270e8828533b1feaf1a5 | /Scripts/text_generation/bert_generator.py | 673303e7b2dfbf110468028d435134861aac51c5 | [] | no_license | GiorgioBelli/FakeDocumentGenerator | 3e5c47db9d4f06515cbadba944e02878b96c22a8 | 2deda3e723aa44548c872d1bbc014f1f18fac126 | refs/heads/master | 2022-12-30T05:38:57.915006 | 2020-10-16T08:59:15 | 2020-10-16T08:59:15 | 269,558,052 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150,978 | py | # -*- coding: utf-8 -*-
"""BERT-fine-tuning.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1x34tn3w-DyQwAbtlFKggkIr-p2GwwJ1x
"""
import torch
from transformers import AutoTokenizer, AutoModel,BertForMaskedLM
# import torch
from fitbert import ... | [
"belli.1797941@studenti.uniroma1.it"
] | belli.1797941@studenti.uniroma1.it |
fc963b7850cd888de5842085fc3a693b7e067296 | ae5e651fd65749534d954b208a7f1425331352dc | /code/utils.py | 096a599c322da76c1cc0b79067d6339a9445d8d9 | [] | no_license | reedan88/Isaias | d9d764c01754bcb0d13d59bbe8089e4417fb4c14 | aac64057df5fffab6fdbfe490bac939c5ef37775 | refs/heads/master | 2022-11-24T22:56:05.128373 | 2020-08-02T22:39:25 | 2020-08-02T22:39:25 | 284,553,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,803 | py | import re
import os
import time
import requests
import datetime
import numpy as np
import pandas as pd
import xarray as xr
from xml.dom import minidom
from urllib.request import urlopen
from urllib.request import urlretrieve
import matplotlib.pyplot as plt
class OOINet():
def __init__(self, USERNAME, TOKEN):
... | [
"andrew.c.reed88@gmail.com"
] | andrew.c.reed88@gmail.com |
0479016331065061923078c4af8dc446ce097c77 | dc19ea8a49c13d362d8852ff13ef7fc24e60e2e1 | /bind-shell.py | 2d2cfd84549821663993902397bd5899bc6c69bd | [] | no_license | Koploseus/Bind-Shell | 7bd63519acae1e41c436e720db1fc01dd00e14f1 | 2245c4c6ab0d1ae0749fb73164aaa97bc7be9394 | refs/heads/master | 2021-09-01T00:19:42.208646 | 2017-12-23T18:42:13 | 2017-12-23T18:42:13 | 115,214,824 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | import socket
import os
import time
##FUNCTIONS
def banner():
print " ________________ "
print "< Reverso-shells >"
print "By Koploseus"
print " ---------------- "
print " \ "
print " \ "
print " .--."
print " |o_o |"
print " |:_/ |"
print " // \ \ "
print " (| | )"
p... | [
"noreply@github.com"
] | Koploseus.noreply@github.com |
45a165fafb8b93e28d4d46d0bc49be317be87a2e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02783/s004767524.py | 890487d6a124996654e2b4b0893b434c99a5cee2 | [] | 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 | 122 | py | H, A = (int(x) for x in input().split())
if A >= H:
print(1)
elif H%A == 0:
print(H//A)
else:
print(H//A + 1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4ed8aacb5d5e8e915a445cc8c33ffb7f42a8ec4c | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/11134020.py | d61de03b13fd229fd8d73ea102ddc4195d7175b6 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/11134020.py generated: Fri, 27 Mar 2015 15:47:57
#
# Event Type: 11134020
#
# ASCII decay Descriptor: {[[B0]nos -> (J/psi(1S) -> p+ p~-) (rho(770)0 -> pi+ pi-)]cc, [[B0]os -> (J/psi(1S) -> p+ p~-) (rho(770)0 -> pi- pi+)]cc}
#
from Configurables import Gen... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
f3e20417ec83107e1acc57c6066a12fe09ef2676 | 01df649dc7068c91be60b5d275b60f21e6f7d634 | /server.py | f044c21849945ca9eed277290f3ef40322739b32 | [] | no_license | bernard-david/login_registration | 2252e50d207da45dadbba3360560a5f05f7370dc | 884977ecd4e55b44cc449d89760dc4c258ed05d1 | refs/heads/master | 2023-06-06T01:35:32.807537 | 2021-06-22T19:30:45 | 2021-06-22T19:30:45 | 378,289,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from flask_app import app
from flask_app.controllers import users
if __name__=="__main__":
app.run(debug=True) | [
"dpbernard18@gmail.com"
] | dpbernard18@gmail.com |
1f9bffa254c80991e31249fa76370253815cca96 | f9356f2a83b3ccaa85053e7f31fd75faabc50ee8 | /network/migrations/0003_tweet_likes.py | 26916b43e92002f1deef633a3cf4683fcf001892 | [] | no_license | saperez17/SocialNetwork | b7986575c4453de6294b51b93fe9c724559e0779 | 3ed42b9501a8a9ad03b591aaf28b1ba9e98fae57 | refs/heads/master | 2023-03-18T03:01:16.213552 | 2021-03-10T00:45:28 | 2021-03-10T00:45:28 | 343,564,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # Generated by Django 3.1.6 on 2021-02-27 21:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('network', '0002_auto_20210227_1104'),
]
operations = [
migrations.AddField(
model_name='tweet',
name='likes',
... | [
"saperez@unicauca.edu.co"
] | saperez@unicauca.edu.co |
1d14a6463b2ceaf9f8bc13e5d1c1c6450675751c | 49b048b05330fcc7ebd1ea6d3b619085af46b433 | /exe01.py | 751128bf3dd018f9c1442b0a37477fe9a947ef8a | [] | no_license | andreplacet/reinforcement-tasks-python-strings | a26e2c8544a2dbb161ffd27c4f806398c2096b8f | 1ee8f16bbc97bca138feb41992205674a4e07a57 | refs/heads/master | 2023-01-08T23:09:40.872807 | 2020-11-06T17:54:51 | 2020-11-06T17:54:51 | 310,668,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # Exercicio 01
print('Comparador de strings')
string_1 = str(input('Digite uma frase: ')).strip().split()
print(f'String 1: {string_1}')
string_1 = ''.join(string_1)
string_2 = str(input('Digite uma frase: ')).strip().split()
print(f'String 2: {string_2 = }')
string_2 = ''.join(string_2)
print(f'Tamanho da String 1... | [
"andreplacet@gmail.com"
] | andreplacet@gmail.com |
08de9528172825c36f456e7389df9749cff1e095 | 8dccae4838be38d2e025faf23197c13782489130 | /tests/test_is_consecutive.py | 860be248467eb7ec8d90aacd34142e31e2711677 | [
"MIT"
] | permissive | BME-MIT-IET/iet-hf2021-snek | 47c6465d797ebbe8b32077ec30936a29613baefd | 9780200ccfa1a102a78067345c0993382c835f3a | refs/heads/master | 2023-04-20T03:47:09.793996 | 2021-05-09T16:35:25 | 2021-05-09T16:35:25 | 360,850,724 | 0 | 1 | MIT | 2021-05-09T16:35:26 | 2021-04-23T10:44:04 | Python | UTF-8 | Python | false | false | 1,162 | py | import unittest
from algorithms.stack import first_is_consecutive, second_is_consecutive
class TestConsecutiveStack(unittest.TestCase):
one_element_is_always_consecutive = [24]
one_element_is_always_consecutive_2 = [24]
consecutive_stack = [1, 2, 3, 4, 5, 6]
consecutive_stack_2 = [1, 2, 3, 4, 5, 6]
... | [
"bence.kovacs.zoltan@gmail.com"
] | bence.kovacs.zoltan@gmail.com |
10b52dbe5a748394da3f160139123149454504dc | db749b9d7350ac31d58ae5197b3569177ee8b832 | /models/profile.py | aba4baa25c9553dd3e226c3e541c96e94d816886 | [] | no_license | ppetroski/python-rest-sample | 258e7f65e273364732459a604dec1dd34a89476b | f264e2c5bf0eb6b076035e579f69fe5dfea5dec4 | refs/heads/master | 2023-03-24T13:26:06.492492 | 2021-03-17T14:48:09 | 2021-03-17T14:48:09 | 342,982,361 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | from sqlalchemy import Column, String
from sqlalchemy.orm import relationship, validates
import components.validator as validator
from components.framework.baseModel import BaseModel, RelationsBase
def geo_location():
geo = None
try:
"""
Need license, but I think the "How to" was more importa... | [
"paul.petroski@hotmail.com"
] | paul.petroski@hotmail.com |
71ef0ac38df7ff3711365479429d3a21f262af87 | 1b48b3980abbe11691310a7f35efef62bc0ae831 | /_msic/py/_fp/rxpy/test_rx.py | 7ae445bd4cd75655f4c4f14080afa7efe81709e5 | [] | no_license | FXTD-ODYSSEY/MayaScript | 7619b1ebbd664988a553167262c082cd01ab80d5 | 095d6587d6620469e0f1803d59a506682714da17 | refs/heads/master | 2022-11-05T08:37:16.417181 | 2022-10-31T11:50:26 | 2022-10-31T11:50:26 | 224,664,871 | 45 | 11 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from rx import Observable
from random import randint
three_emissions = Observable.range(1, 3)
(
three_emissions.map(lambda i: randint(1, 100000))
.subscribe(lambda i: print("Subscriber 1 Received: {0}".format(i)))
.subscribe(lambda i: print("Subscriber 2 Received: {0}".format(i)))
)
| [
"timmyliang@tencent.com"
] | timmyliang@tencent.com |
3b9dd450c58558231ef96e8c726dcd9fbc794684 | 9d3fb5e27f4d98c5ea97878a1e1d53f8cf01fdbf | /vehicle/util/schema.py | 90e5f14badbba94e192d6d4796f8f0b29111a0c1 | [] | no_license | mhsueh2/sample_api | bb4e6e2e8b6222cae1e72fad5e019498919bb819 | f970712ef57adc73e5d859bb8158e93ee6bd4497 | refs/heads/master | 2020-06-27T07:10:17.524825 | 2019-07-31T15:20:51 | 2019-07-31T15:20:51 | 199,880,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from voluptuous import Schema, All, Range, Coerce, Required
class Schema:
vehicle_id = Schema({
Required('vehicle_id'): All(Coerce(int), Range(min=1))
})
booking = Schema({
Required('vehicle_id'): All(Coerce(int), Range(min=1)),
Required('user_id'): All(Coerce(int), Range(min=1))... | [
"mhsueh2@gmail.com"
] | mhsueh2@gmail.com |
ecc6dff2ab0682187eb3eed3a628b4b5e2100a2a | 79e89d58e8a58110bb63377bd28be1317abea2ac | /faro_api/models/question.py | e3060725b1ae7e858f26decb4b46fe29c37b8312 | [] | no_license | Wakemakin/faro-api | 8ab6798c9ea478455fbfce73a867b05e08270e12 | fcdd6a55247a7508982e293a71075a74ca5df5bc | refs/heads/master | 2021-01-19T05:25:50.860912 | 2013-09-03T02:15:26 | 2013-09-03T02:15:26 | 10,831,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | import sqlalchemy as sa
import faro_api.models.item as item
import faro_common.utils as utils
class Question(item.Item):
id = sa.Column(sa.Unicode(36), sa.ForeignKey('items.id'),
primary_key=True)
__mapper_args__ = {
'polymorphic_identity': 'question',
}
def __init__(self... | [
"justin.hammond@rackspace.com"
] | justin.hammond@rackspace.com |
5ee54f5967f3f9202dbda9335e8bb897d19153f5 | e28bcd09d37f675c545a9648c3aa0be402065a5d | /grozozahyst/wsgi.py | 3c4436007e1a4dcb56b9cad18e6936d7822ba82e | [] | no_license | sashoki/grozozahyst | cc44ada58bcc73a20a9341800b3091290ef0c19f | c3533540bacdf6de7055c1680403bb06911f1dbc | refs/heads/master | 2021-08-26T07:29:39.975186 | 2017-11-22T09:09:35 | 2017-11-22T09:09:35 | 101,628,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | """
WSGI config for radioservice 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/1.9/howto/deployment/wsgi/
"""
import site
site.addsitedir('/var/www/grozozahyst.com/lib/python2.7/site-packages')
import... | [
"sania_piter@mail.ru"
] | sania_piter@mail.ru |
2f7af88afa5cca1b29507b3b2c6908608c582183 | caaa87102b710e1973f4a434d1ecf2c80a972395 | /newsletter/migrations/0002_auto_20151115_1402.py | 02edde8a5c0e3b8e32ecaffd2989e1809e3b32ed | [] | no_license | SKNIRBHAY/TechWise-1 | e0df8868af17133a32da8e2341fa30aa0349af10 | 027895cb91aada1d8eecc1ddbb79e41fa66cdc75 | refs/heads/master | 2020-05-24T21:22:31.458963 | 2017-03-14T02:11:05 | 2017-03-14T02:11:05 | 84,881,955 | 1 | 0 | null | 2017-03-13T22:48:51 | 2017-03-13T22:48:51 | null | UTF-8 | Python | false | false | 350 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Newsletter',
new_na... | [
"sangitdhanani@gmail.com"
] | sangitdhanani@gmail.com |
bdd0c6698fccacd6293e5026751984486fe11b4d | 0a7cf4842e4387541c0256f4b2c49e9d2e36d780 | /src/order/migrations/0016_auto_20200116_1414.py | faef2797dcfc86eba3024bc33a5e37945ed43b04 | [] | no_license | mehrab-nt/TeamGraphic | bb1f13055e54a51a85ff52e94425c538553bfd31 | dba5d86ec157f7e8c2f72e8cb077980055559aaf | refs/heads/master | 2020-12-01T17:08:20.336814 | 2020-01-21T14:10:03 | 2020-01-21T14:10:03 | 230,706,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # Generated by Django 3.0.1 on 2020-01-16 10:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('order', '0015_auto_20200116_1058'),
]
operations = [
migrations.AlterModelOptions(
name='cart',
options={'verbose_name': 'سب... | [
"mehrab_nt@yahoo.com"
] | mehrab_nt@yahoo.com |
db19cfcb078c465e52473648face80e1c17888e7 | de706b4cd4c02ec71486fbd4a262aacf337e7a8c | /lesson_5/hw05_hard.py | 2496fdd0c950dae02dca7ad5adb119ae9288c490 | [] | no_license | DuDaria/Homework_backend | c896a30af4db9c0e118f230b5f01c351d68ff695 | fa9e06e79c7b61896e53417e8b91fd69e87d6061 | refs/heads/master | 2023-03-19T17:39:56.364082 | 2021-03-11T21:53:39 | 2021-03-11T21:53:39 | 319,733,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | # Задание-1:
# Матрицы в питоне реализуются в виде вложенных списков:
# Пример. Дано:
matrix = [[1, 0, 8],
[3, 4, 1],
[0, 4, 2]]
print("matrix:")
for line in matrix:
print(line)
# Выполнить поворот (транспонирование) матрицы
# Пример. Результат:
# matrix_rotate = [[1, 3, 0],
# ... | [
"60156592+DuDaria@users.noreply.github.com"
] | 60156592+DuDaria@users.noreply.github.com |
2e1248ddd66dcbcd30e5183f86ce76ddf2f39fed | cc66665ed3abde76c684a15eafa50733301c416b | /基础/12_return_func.py | 24fb4c8e163c3b143f0cf01c11e547b6a66a87c1 | [] | no_license | gitchenhe/PythonStudy | 7c62ebab72f6ea5c90db4ec3a9e55ae41178582f | 2c72a796e41884bd36594dd24941fd373e4ad0cf | refs/heads/master | 2021-04-03T05:09:55.732741 | 2018-03-17T14:20:09 | 2018-03-17T14:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | # 参数求和,通常情况下函数是这样定义的
def calc_sum(*args):
ax = 0
for x in args:
ax = ax + x
return ax
# 但是,如果不需要立即求和,而是在后面的代码中,根据需要再计算怎么办?可以不返回求和的结果,而是返回求和的函数
def lazy_sum(*args):
def sum():
ax = 0
for x in args:
ax = ax + x
return ax
return sum
print("普通求和", calc_su... | [
"he.chen@lanmaoly.com"
] | he.chen@lanmaoly.com |
dc081a3bdcb41c1fec957a206f7cd2c2a8b97677 | 3f6c16ea158a8fb4318b8f069156f1c8d5cff576 | /.PyCharm2019.1/system/python_stubs/-1850396913/lxml/etree/_Comment.py | d1bc71dd97ac493d449fb08c86cc8fe73d2b8f6e | [] | no_license | sarthak-patidar/dotfiles | 08494170d2c0fedc0bbe719cc7c60263ce6fd095 | b62cd46f3491fd3f50c704f0255730af682d1f80 | refs/heads/master | 2020-06-28T23:42:17.236273 | 2019-10-01T13:56:27 | 2019-10-01T13:56:27 | 200,369,900 | 0 | 0 | null | 2019-08-03T12:56:33 | 2019-08-03T11:53:29 | Shell | UTF-8 | Python | false | false | 1,038 | py | # encoding: utf-8
# module lxml.etree
# from /var/www/newsbytes/CricketPlayerDataScrapper/venv/lib/python3.6/site-packages/lxml/etree.cpython-36m-x86_64-linux-gnu.so
# by generator 1.147
""" The ``lxml.etree`` module implements the extended ElementTree API for XML. """
# imports
import builtins as __builtins__ # <modu... | [
"sarthakpatidar15@gmail.com"
] | sarthakpatidar15@gmail.com |
fc28e8962215eb1948964c9280e6b27ac215dd14 | 656590a98c1d086f16f7bbae8484a65e849f965f | /w5/Ch8e10.py | b7ce920e6b0ff7520d7e4ff118d90c3515826834 | [] | no_license | tmh327/learning_python | ed20469f106285e2b765e8eee5cc0206e3280089 | ab35e9edec810e76a002667498c13dff392d6a90 | refs/heads/master | 2020-04-21T22:25:52.260163 | 2019-05-10T18:11:22 | 2019-05-10T18:11:22 | 169,910,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | #!/usr/bin/env python3
def is_palindrome(word):
if word[:] == word[::-1]:
return True
else:
return False
print(is_palindrome('noon'))
print(is_palindrome('redivider'))
print(is_palindrome('haha'))
| [
"tmh327@drexel.edu"
] | tmh327@drexel.edu |
e8449e5c52308db1066fe4840c2557f6f0605c14 | 2bb0a54827ce23ae96448ae8603452088f0539a5 | /2/JPMC-tech-task-2-PY3/node_modules/bufferutil/build/config.gypi | 82a132a4e40a83871eb9478055c8d0f224b47999 | [
"MIT"
] | permissive | ohzecodes/JP_Morgan_Chase_ | c0f6b7975a5c4ec5ac8c61f202dad701abf39d86 | 8d85eb8fd78e95a1ffe1dba025fc5136ab4f1a1b | refs/heads/main | 2023-01-24T04:34:49.232140 | 2020-12-04T02:25:55 | 2020-12-04T02:25:55 | 318,356,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,510 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"mo.ze@outlook.com"
] | mo.ze@outlook.com |
4ec14ad7b2a357d38aaeda8a9712d81886578398 | c4cd6329231b19a3a214c22bd0c9968ba5e2fbb6 | /common/migrations/0001_initial.py | e64afe03077ad3aa91c6a742d2867212b6679805 | [] | no_license | andersonsouza/ptaas | 87998e012f6f616f04d6caedfc18f53b561257ab | f74cb1d0d9db259ceb9cbf3630650edb9079915a | refs/heads/develop | 2020-12-07T02:34:36.223679 | 2017-08-01T02:44:30 | 2017-08-01T02:44:30 | 95,488,189 | 0 | 1 | null | 2017-08-01T02:46:06 | 2017-06-26T20:47:54 | JavaScript | UTF-8 | Python | false | false | 644 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
from django.contrib.auth.hashers import make_password
def initial_setup_user(apps, schema_editor):
User = apps.get_registered_model('auth', 'User')
admin = User(
username='admin',
email='admin@l... | [
"anderson.kcond@gmail.com"
] | anderson.kcond@gmail.com |
f726e7feb9caf10f0cc95c9830827b92f818cf2f | 7fbbbf06526002ced9530c4dbd146d9d0ca680a2 | /core/urls.py | f95bea7791f2e47b5ce096d1210e133926082570 | [
"MIT"
] | permissive | zwernberg/polls | f8b9262bca5f6828e1cf4648814306c9d61feb6b | 529087174c8d28d6f10d913de3e0d8f113576c74 | refs/heads/master | 2020-07-03T09:00:05.712009 | 2016-12-06T04:00:14 | 2016-12-06T04:00:14 | 74,185,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | """polls URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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... | [
"zawerny@gmail.com"
] | zawerny@gmail.com |
2cd2605da4aa19d982ad7e30a63ff935ef7d2481 | c03e41630cdb23665a2cdcc09d1009bd8c48f0e6 | /runFittingProblem.py | ed29bbdd12a12320b77efd8e77284857896c6a77 | [] | no_license | gabrevaya/SirIsaac | a5a70f2d241053a58b710e35f024bf521c0c1056 | 0bbb26f0f9b8359613b1f6c4526bd42302d1b40e | refs/heads/master | 2020-03-21T14:30:22.433693 | 2018-06-04T19:17:47 | 2018-06-04T19:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,605 | py | # runFittingProblem.py
#
# Bryan Daniels
# 6.30.2009
#
# Code that reproduces the fitting done in the 2013 manuscript.
#
import scipy
from SloppyCell.ReactionNetworks import *
import FittingProblem
reload(FittingProblem)
import FakeData
reload(FakeData)
import os,sys,copy
from outputTag import nextFileNumString
im... | [
"bdaniels@discovery.wisc.edu"
] | bdaniels@discovery.wisc.edu |
4ae423e54fe7f9893974aaa192a2e75055429728 | e1d74c93e705f265ab90d967804dc6b88f716fe5 | /ecg_detection/ecg.py | 7685de29c6744944defec0b67c9b84d19fd537d2 | [] | no_license | pollytur/ECG | 3156f970cfbb0ecb9a3250a5e903cce010db807d | 3925302259b677da0504bb8c976d0e4b90155222 | refs/heads/master | 2021-03-15T13:48:44.179218 | 2020-08-05T15:43:20 | 2020-08-05T15:43:20 | 246,854,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,635 | py | import pandas as pd
import numpy as np
import pywt
import os
from scipy.signal import find_peaks
import matplotlib.pyplot as plt
from scipy.signal import butter
from scipy.signal import filtfilt
from statistics import mean, variance
fs = 512
lcf = 0.05
hcf = 100
# path='/Users/polinaturiseva/Downloads/mammals_dataset... | [
"p.turischeva@innopolis.university"
] | p.turischeva@innopolis.university |
4050bb856c264b490d58cbf10dc821091d2c5c7c | 3e4605fac38fcf581297f2d716bb4fcf5684e0f7 | /app/main/controller/control.py | 4064589f455351800109c29e769614a5dfd338ac | [] | no_license | drhuongsp/table_info | 0de4ac06a908357d5956be9974f69e3409f0a9e8 | 50a987d9a220ca9db7b212a742e74d1841468834 | refs/heads/master | 2023-07-21T11:27:08.241643 | 2021-09-03T07:31:29 | 2021-09-03T07:31:29 | 402,106,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import os
from flask import Flask, send_file, render_template
import pymongo
from app import app
from datetime import date
import csv
import re
'''
Đầu vào: Dữ liệu các mã cổ phiếu.
Đầu ra: Các file excell được download trực tiếp từ website ứng với từng mã"
'''
myclient = pymongo.MongoClient("mongodb+srv://ducthangbnn:... | [
"ducthangbnn@gmail.com"
] | ducthangbnn@gmail.com |
db860acf670514cdb3a4a8ac172160bfbafee046 | a8e3ddb269a8b959b3bce38e7b21aaa1a7e69dd4 | /tensorpack/trainv1/config.py | abc02ccaa6e417f64904e35095a3b993806a2fc4 | [
"Apache-2.0"
] | permissive | myelintek/tensorpack | 55945c7ea9d661b31f28c83e5477870d2f3dac86 | fcbf5869d78cf7f3b59c46318b6c883a7ea12056 | refs/heads/master | 2018-10-25T05:50:15.302077 | 2018-04-09T03:24:27 | 2018-04-09T03:24:27 | 114,971,878 | 0 | 2 | Apache-2.0 | 2022-09-29T03:16:20 | 2017-12-21T06:39:29 | Python | UTF-8 | Python | false | false | 150 | py | # -*- coding: utf-8 -*-
# File: config.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
__all__ = ['TrainConfig']
from ..train.config import TrainConfig
| [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
ea2e5ce585d31cc249c0c042569d14ec34135014 | d00fb82a5d589880c2d20c778e4b56c5b11e83d1 | /dcekit/optimization/iot.py | 8157ea211d230e3827aceb889b8a6ab2a8de1f18 | [
"MIT"
] | permissive | shinyama74/dcekit | e798c0ce417234753842a45289bdfbfe1238ed17 | f1393fa11532e9dd361dd320d8870732660f8446 | refs/heads/master | 2023-03-03T07:42:37.177853 | 2021-02-13T21:02:49 | 2021-02-13T21:02:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | # -*- coding: utf-8 -*-
"""
@author: Hiromasa Kaneko
"""
import numpy as np
from scipy.optimize import minimize, LinearConstraint
def iot_obj_func(mol_fracs, x_mix, x_pure):
"""
Objective function of Iterative Optimization Technology (IOT)
Parameters
----------
x_mix : numpy.array or pandas.D... | [
"hkaneko@meiji.ac.jp"
] | hkaneko@meiji.ac.jp |
38e06d2734981a8eacafa7f9922bd4d97b493066 | 421e9f91b91e8e204513f51d64a5ed72deb35601 | /reports.py | 18eac399e474b45b1fd2577178c05850363b7227 | [] | no_license | earthsoul/Automate-updating-catalog-information- | 7d0b01fdfff226691c4c6c1e87aa6fb01e477a5a | bdd8cc470259e3fee2c020d577196d0284bf3d47 | refs/heads/master | 2022-11-24T12:55:58.257573 | 2020-07-26T07:22:35 | 2020-07-26T07:22:35 | 282,388,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | #!/usr/bin/env python3 # shebang
from reportlab.platypus import SimpleDocTemplate # used to generate PDFs
from reportlab.platypus import Paragraph, Spacer, Table, Image # flowables
from reportlab.lib.styles import getSampleStyleSheet # used for document styles
from reportlab.lib import colors # used for table sty... | [
"sarthakpahuja1603@protonmail.com"
] | sarthakpahuja1603@protonmail.com |
10e94a6f76c90c87c8acfcd4666f27e4f016ad82 | bc169f7ccd08c180f9c25af88e1c33788191da5a | /virginproject/virginproject/wsgi.py | fdbccd808c510d06b41f4bc6bc17ca9442d9844d | [] | no_license | pradeepreddyDev/virginexports2 | dec51472d3eb22a7b5afd63233121c53bd4d2c74 | 0c32816d410c4ceb70af6b14ea64be821163e586 | refs/heads/master | 2020-09-04T05:00:05.114732 | 2019-11-05T05:16:44 | 2019-11-05T05:16:44 | 219,663,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for virginproject 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... | [
"pradeepnagireddy.it@gmail.com"
] | pradeepnagireddy.it@gmail.com |
af47b8607981e7db97d30f4a6e9ad2dff26f99f0 | b8d80a23cb27af08a1c4d34b478c76228ae5fbb4 | /insights/parsr/examples/tests/test_json.py | 909b97d73ee25c2114382bb8aeaeaf7b2647beb3 | [
"Apache-2.0"
] | permissive | RedHatInsights/insights-core | bb243e2bf8a52446fefb95ebe05478d6e35efe2e | b0ea07fc3f4dd8801b505fe70e9b36e628152c4a | refs/heads/master | 2023-09-04T21:15:40.456257 | 2023-09-04T10:46:56 | 2023-09-04T10:46:56 | 92,518,221 | 144 | 290 | Apache-2.0 | 2023-09-14T02:40:13 | 2017-05-26T14:23:11 | Python | UTF-8 | Python | false | false | 2,956 | py | import json
from insights.parsr.examples.json_parser import (TRUE, FALSE, NULL, JsonArray,
JsonObject, JsonValue)
DATA0 = """
{
"name": "Adventure Lookup"
}
""".strip()
DATA1 = """
{
"name": "Adventure Lookup",
"icons": [
{
"src": "/android-chrome-192x192.png",
"si... | [
"bfahr@redhat.com"
] | bfahr@redhat.com |
681649f3c55738cbffaa23f54af9ba82ef948b89 | c57ffbf0e3405eb87bddf96cfc6bb09fa096aa49 | /Galaxy_Postgres_Nginx_CVMFS_slurm/ephemeris_venv/bin/route53 | 6388606594a543c28946022388b62aa343f73567 | [] | no_license | BU-ISCIII/AnsibleRecipes | 33946ef689c03350141266f1c7a8d7d3d4ddfdad | b9fe5a870d404b5dab22bcfa37405c4e4bd0861b | refs/heads/master | 2021-02-18T07:55:11.667669 | 2020-03-30T08:22:31 | 2020-03-30T08:22:31 | 245,175,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,089 | #!/home/mjuliam/Galaxy_Postgres_Nginx_CVMFS_slurm/ephemeris_venv/bin/python
# Author: Chris Moyer
#
# route53 is similar to sdbadmin for Route53, it's a simple
# console utility to perform the most frequent tasks with Route53
#
# Example usage. Use route53 get after each command to see how the
# zone changes.
#
# Add ... | [
"migueljuliamolina@gmail.com"
] | migueljuliamolina@gmail.com | |
a753e07e6d28f973304135b49936433f388cb925 | 5f300f54929f2acdb2ab3959006d152c775f1b58 | /src/Products/TemporaryFolder/mount.py | 7132798470fe9f57bc4701d01dd7f7e0595191c3 | [
"ZPL-2.1"
] | permissive | plone-ve/Products.TemporaryFolder | a26a40d88dc65ee4bb04d740162dd68f0a1db2c0 | 26bd1c00503594e17722c7337c69d543f28fd14b | refs/heads/master | 2020-05-25T18:35:24.224661 | 2019-05-08T14:57:12 | 2019-05-08T14:57:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,908 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
9488d6f82af89e6350f8e311867f201ac9056640 | 06d882216885b4cc82ef131afc27baa8a797537a | /food_api/zomato_api/restaurant_url.py | f3399ee659e6f39d9d23973d5b8cccebc3ea0faa | [] | no_license | bopopescu/restaurant_data_crawler | 7de91844ae51b71b1c64af57cf82067f28996940 | dd14839cabd114ab22c86eff15428143a310da5f | refs/heads/master | 2022-11-06T21:52:22.941089 | 2017-10-09T12:10:41 | 2017-10-09T12:10:41 | 282,031,811 | 0 | 0 | null | 2020-07-23T18:54:44 | 2020-07-23T18:54:43 | null | UTF-8 | Python | false | false | 3,633 | py | from bs4 import BeautifulSoup
from urllib2 import Request, urlopen, URLError
import re
from errorhandler import typec
from re import search
from re import sub
import json
def crawlRestaurants(restaurant_url):
try:
menu_url = []
restaurant_menu_url_with_unicode = restaurant_url + "/menu#food"
restaurant_menu_url... | [
"nitesh.surtani0606@gmail.com"
] | nitesh.surtani0606@gmail.com |
77007c1c919ffc67963fee14634b26ee9856e131 | a1bffb2795728a6369c4447ca58e9a60620a1e7d | /intro/matplotlib/examples/plot_aliased.py | 91281736e7c3d601518f28e84fe5b8b6f7ae0e36 | [
"CC-BY-4.0",
"CC-BY-3.0"
] | permissive | imieza/scipy-lecture-notes | 03a4e0615f4fc4fdea3583d9557742fc1798ba65 | 74c8b7b491ceae0ce5be1745497b7adc0bad1406 | refs/heads/master | 2021-01-16T20:30:57.735341 | 2015-09-21T17:28:35 | 2015-09-21T17:28:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | """
Aliased versus anti-aliased
=============================
This example demonstrates aliased versus anti-aliased text.
"""
import pylab as pl
size = 128, 16
dpi = 72.0
figsize= size[0] / float(dpi), size[1] / float(dpi)
fig = pl.figure(figsize=figsize, dpi=dpi)
fig.patch.set_alpha(0)
pl.axes([0, 0, 1, 1], frameo... | [
"gael.varoquaux@normalesup.org"
] | gael.varoquaux@normalesup.org |
bde24f32962bc7daa1d653fc2bfc6b034f25a563 | 4f972877da14226125440b3da9bdb058764d8a54 | /pythonDemo/argparseOpt/add_arg.py | e43e60028c712b282fd0fa4373dee4ad04ff9d48 | [] | no_license | ZhiYinZhang/study | 16c29990cb371e7e278c437aa0abc7c348614063 | 8c085310b4f65e36f2d84d0acda4ca257b7389af | refs/heads/master | 2021-07-09T16:05:02.925343 | 2020-06-30T07:53:05 | 2020-06-30T07:53:05 | 153,767,096 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# datetime:2020/5/18 14:51
import argparse
if __name__=="__main__":
parser=argparse.ArgumentParser(description="在参数帮助文档之前显示的文本")
#参数需要使用--b或-b
parser.add_argument("--by","-b", #参数变量,‘-’表示缩写
action="store", #将命令行参数与action相关联,默认st... | [
"2454099127@qq.com"
] | 2454099127@qq.com |
958ac63cbf4a149a2d0dac3fed9f2a04591c3689 | a974ab24cf396c68e2072a194f86dd16e867e23e | /finalaDict.py | 0bd2c8d7d5350ebc4112e742245c2bfd940b859b | [] | no_license | archanasheshadri/Python-coding-practice | e21161991c8fb1f45cf4903b098da05f15ca4fd8 | e9f6d6f9cddb63825d82a2322bb8dcf166a60239 | refs/heads/master | 2021-01-24T03:11:59.301623 | 2018-02-25T21:49:57 | 2018-02-25T21:49:57 | 122,879,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | def uniqueValues(aDict):
'''
aDict: a dictionary
returns: a sorted list of keys that map to unique aDict values, empty list if none
'''
result = []
if aDict.keys() != []:
values = aDict.values()
uniqueValue = []
values.sort()
temp = values[0]
count = 0
... | [
"archanasheshadri@gmail.com"
] | archanasheshadri@gmail.com |
a3e6ce679b7b6173c7cb9365142a5f5abcb8693c | 50fda37ac3890182da78d28d5fb18aa2a75f5f40 | /informatyka próbna 2020/41.py | 5ae8e1a43eb41ecebfed818f3324e97924cc2ffe | [] | no_license | qattiel/Arkusze_informatyka_Python | dee95aa4953aef49080951cb5fd6465b72972c4f | 7c95a5872461cf56996d98a87ff12747ce201c51 | refs/heads/main | 2023-05-27T22:50:11.198207 | 2021-06-11T07:21:56 | 2021-06-11T07:21:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | dane = ""
with open("dane4.txt", "r") as plik:
dane=plik.read()
dane=dane.split("\n")
luki = []
element = int(dane[0])
for x in range(1, len(dane)-1):
buff = int(dane[x])
luka = abs(element-buff)
element=buff
luki.append(luka)
print(min(luki))
print(max(luki))
#for x in luki:
# prin... | [
"noreply@github.com"
] | qattiel.noreply@github.com |
df317995d729b1f1867618fd6d28b33ded828d4d | a1c4a197470f2b382aefcd2c0886d60234c4e29d | /data/dataset.py | 7406c6f37d8d62923044450e42f2919d9cff56fa | [] | no_license | luoyi9340/letter_discriminator | f91aa9d791a97d2b2f443c7d2631a05790273a48 | 7c813e40bd9c6b4b181368d524cdb78c52a6c698 | refs/heads/master | 2023-03-09T07:15:57.081805 | 2021-02-20T19:22:43 | 2021-02-20T19:22:43 | 324,271,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,068 | py | # -*- coding: utf-8 -*-
'''
手写字母数据集数据集
一共26(小写) + 26(大写) = 52个字母
Created on 2020年12月15日
@author: irenebritney
'''
import tensorflow as tf
import json
import matplotlib.pyplot as plot
import numpy as np
# 配置文件
from utils.Conf import LETTER, TRAIN
# 日志信息
from utils import LoggerFactory
from utils.Alphabet ... | [
"irenebritney@192.168.31.84"
] | irenebritney@192.168.31.84 |
f87c504d146164de3ed512fea4d780a3594f6923 | c2e4ea166b46f962d2771968642d5779183c78fb | /mtgame.py | 51d151b74133a00aff00b9710ef99d9e249b691e | [] | no_license | Twist-Flex/kwart | 344d54a2ff942d1eb78c8c0c0ad897387e2cb96d | 74b971ca63548122052ec73faef2f36e08122f77 | refs/heads/master | 2021-01-19T12:13:01.171127 | 2017-02-17T12:42:56 | 2017-02-17T12:42:56 | 82,296,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,970 | py | import random
print("Чать бот SimulatorAl. Текст пиши маленькими буквами!!!! И без занков препинания!")
privet = {
"привет":[" Салам!", " Привет!", " Хай!"],
"как дела?":[" Нормально"," Плохо"," Как всегда"," Тебе какая разница?","Показать тебе мою силу???"],
"что делаешь?":[" алкашню"," черти что"," не че"," Т... | [
"noreply@github.com"
] | Twist-Flex.noreply@github.com |
2e12956584609483d216fc9a64b372968df150c6 | eb123c1a74e39685ab6eef29af0af2c1356dfaf5 | /python/Strings Mix.py | 3db5a0965307d3cd791eb7ca312e01081845ebd3 | [] | no_license | zenuie/codewars | 9bada9d3c20c4b2b4b8321c784d2494bfe25689f | 38ea9e8a0c97ed15c8959c073752fcfd098387ac | refs/heads/master | 2021-11-30T01:43:51.590392 | 2021-11-29T06:31:58 | 2021-11-29T06:31:58 | 180,733,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | import re
def mix(s1, s2):
result = []
check_alp = '[a-z]' # 正則
s1 = re.findall(check_alp, s1) # 小寫無重複
s2 = re.findall(check_alp, s2)
if s1 == s2:
return ''
dict_1 = dictS1(s1) # 排出字典
dict_2 = dictS2(s2)
dict_1 = sorted(dict_1.items(), key=lambda x: (-x[1], x[0])) # 字典值大的排前... | [
"30676398+zenuie@users.noreply.github.com"
] | 30676398+zenuie@users.noreply.github.com |
2bcc2bfda06ed166390fe0168d90ebc217e3f515 | f2dddfc8645da74606ce6c4156ea1c552ea98f48 | /menu/migrations/0001_initial.py | ec14e9b5abcf77e9e4417a6e6515f604f1477277 | [] | no_license | Rahul2802agarwal/rahul-28 | a5bb0e2c8d964f18da9f47e21e819efad5bcb6b7 | 74d8f562d8359796bc22eb7256e1b0fcb1483492 | refs/heads/master | 2022-11-29T07:11:25.573154 | 2020-08-09T04:39:01 | 2020-08-09T04:39:01 | 282,375,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | # Generated by Django 3.0.8 on 2020-07-16 03:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer',
fields=[
... | [
"rahul2802agarwal@gmail.com"
] | rahul2802agarwal@gmail.com |
bbbb771d57dfb818066a3c9c3cbcbd8916123256 | 00a664422196910f02b379c94af2229e06143961 | /Versuch 1/clusters2GoogleMaps.py | b731e0025b26c6adcedb9357f502cb2df71723e1 | [] | no_license | lumaxis/DataMining | 96154a4fd760483243f0a4704bdf7ec23f4afd49 | bbc47e8a4af63afc25e9112f6d9787c5bb1d812d | refs/heads/master | 2020-06-03T10:18:27.459841 | 2013-12-19T13:02:42 | 2013-12-19T13:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 29 19:16:07 2013
@author: mathis
"""
import pandas
from pymaps import Map, PyMap, Icon
# import data
data = pandas.read_csv('EnergyMixGeoClustered.csv', index_col=0)
# prepare map
tmap = Map()
tmap.zoom = 2
# prepare icons
iconRed = Icon('iconRed')
iconRed.image = "ht... | [
"mathis@hoffpost.de"
] | mathis@hoffpost.de |
42f644ceaadd904c56b54ef3285f26219aac3134 | 597c9c0f8aab1dd7514088920759caf61762ed4f | /scripts/test_slam_with_webcam.py | af99f0f1bac23b59d8d6419425ba340ec3236150 | [
"MIT"
] | permissive | BOpermanis/pyORBSLAM2 | 7f86d214ad989f460eee259756df115c214d9ee3 | ff7c303bc6d2023fc3c22090e6af048072cce90b | refs/heads/master | 2021-06-24T06:21:06.125320 | 2021-05-07T15:42:03 | 2021-05-07T15:42:03 | 225,214,792 | 0 | 0 | MIT | 2019-12-01T19:11:35 | 2019-12-01T19:11:35 | null | UTF-8 | Python | false | false | 1,414 | py | import cv2
import numpy as np
import sys
# sys.path.insert(0, "/slamdoom/tmp/orbslam2/include/build/")
import ORBSLAM2 as os2
from time import time, sleep
import pickle
from gridmap import to_gridmap, DisplayMap
def test_SLAM_init():
# "/slamdoom/libs/orbslam2/Vocabulary/ORBvoc.txt"
# "/slamdoom/libs/orbslam2... | [
"slamdoom@slam.doom"
] | slamdoom@slam.doom |
b0e00c22ffb48e5979a2017cc88ab86b294c7b85 | c5ecf74984e217946d94bb3783731d03d40ab84c | /Cal.py | 78f1702e4c3311056525204d4dc4abcca5a4e512 | [] | no_license | kiran260790/python_basic_scripting | 02eabc021a0106cef79b4025189c4ee1b5cba11f | b2aa3c9f31497a5b001bfa982148bc114cb7df13 | refs/heads/master | 2023-08-04T01:22:47.786472 | 2023-07-25T05:04:02 | 2023-07-25T05:32:42 | 152,293,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | class calculator:
def __init__(self,num1,num2):
self.num1 = num1
self.num2 = num2
def addition(self):
return self.num1+self.num2
def subtraction(self):
return self.num1-self.num2
def multiplication(self):
return self.num1*self.num2
def division(self):
... | [
"kiranssgowda333@gmail.com"
] | kiranssgowda333@gmail.com |
4d8bbd6906f8bf3c8e206e8a0445d7520084e449 | cea41f28b1be6a44043d09fe1990c621b1e2ac15 | /Aula 15/ex068.py | 1b55c8db63bb4b125aa11032169e0cbbbe19631f | [] | no_license | sandymnascimento/Curso-de-Python | 9fa91c447b2d271c216d69af4ac3501613d429f8 | 95aa353a3c4801a6cdbc42639bc32b28cb91315a | refs/heads/master | 2023-04-25T03:52:07.645109 | 2021-05-09T17:27:26 | 2021-05-09T17:27:26 | 353,838,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from random import randint
print('\033[1;34m* ' * 20)
print(' '* 5, 'Vamos jogar PAR ou ÍMPAR?')
print('\033[1;34m* \033[m' * 20)
cont = 0
while True:
user = input('Você escolhe PAR ou IMPAR? ').strip().lower()[0]
numuser = int(input('Digite um valor: '))
numpc = randint(0, 10)
print(f'Você escolheu {nu... | [
"sandymnascimento@outlook.com"
] | sandymnascimento@outlook.com |
f04c44f3b9373ead505307d3d465a8862a926482 | d541422113225e372b2d645fb1e8731b24d12d75 | /hello_name.py | 86c938b89f7a20f62469916e2fcd9bdfa3724004 | [] | no_license | vdpham326/Python_Coding_Exercises | 8c1d5d4cd87f57b94600138649dc865dc9282be3 | 9efd64b24671df1c56ccfac50582d6fd71bc14fc | refs/heads/master | 2022-11-10T09:56:36.252673 | 2020-06-26T09:36:47 | 2020-06-26T09:36:47 | 274,311,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | # Given a string name, e.g. "Bob", return a greeting of the form "Hello Bob!".
def hello_name(name):
return "Hello " + name + '!'
print(hello_name('Bob'))
print(hello_name('Alice'))
print(hello_name('X'))
| [
"vdpham326@gmail.com"
] | vdpham326@gmail.com |
d3f4f28a07d725a745058165f9fa71a5072d5e6b | c8b095adbbea29211d699f4113a91bc89fa54493 | /jury/models.py | d1b52c51d89d1786c9bd0a9c7582d0bfc7f37143 | [
"MIT"
] | permissive | maribedran/speakerfight | 9e554e7ea557c5bc44aafb616e46f0878fe8e2d5 | 26e3e70e1d06ec0be004a9b1598c2b55f9823a7d | refs/heads/master | 2021-07-18T04:13:18.974661 | 2017-10-19T17:46:36 | 2017-10-19T17:46:36 | 106,606,011 | 2 | 0 | null | 2017-10-11T20:29:57 | 2017-10-11T20:29:55 | Python | UTF-8 | Python | false | false | 371 | py | from django.utils.translation import ugettext as _
from django.db import models
from django.conf import settings
class Jury(models.Model):
# relations
users = models.ManyToManyField(to=settings.AUTH_USER_MODEL,
related_name='juries')
class Meta:
verbose_name = _... | [
"luanfonceca@gmail.com"
] | luanfonceca@gmail.com |
c9d4f38b7f97483e88d2feaec9671b65a0303653 | 72663667c62dc849b4f4bb773ae011b40fd7d777 | /VoteOCR/bin/django-admin | 9d044211d2b22b3fdb73c19c1e7820cd7f04a891 | [] | no_license | neilgiri/VoteOCR | 415527bff7fa29203489e2880f57d77b3cebcf82 | a85d97f960d0640e11675d499a9c72a311d866bd | refs/heads/master | 2020-08-03T16:44:20.675192 | 2018-01-13T04:31:11 | 2018-01-13T04:31:11 | 73,542,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | #!/home/rlund/Documents/CalHacks3.0/VoteOCR/VoteOCR/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"ryan.lund@berkeley.edu"
] | ryan.lund@berkeley.edu | |
efe3f5a18b22d52c8744060a47788ebb86d50b5d | c94e4451daf83a143205d9ff1d1eb9a8411cad66 | /baselines/models.py | 8bc503573860ba03e27e5cb3a94fc48009c2b1a6 | [
"MIT"
] | permissive | visionshao/TerminologyExtraction | dd5dd447e59e5ed734ac13e0ffc52b4ab633ff7e | ff23d7794e8bbfbc6c576fd5d46b37b40a652b67 | refs/heads/main | 2023-03-20T21:06:52.162720 | 2021-03-03T11:57:59 | 2021-03-03T11:57:59 | 344,106,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | def rule_extraction(pos_sentence):
result_list = []
temp_result = []
for i, (word, pos) in enumerate(pos_sentence):
if pos[0] == "N":
if len(temp_result) == 0:
temp_result.append(word)
else:
if pos_sentence[i-1] == "N":
... | [
"noreply@github.com"
] | visionshao.noreply@github.com |
738f5c35424d9fc3c0c2579254d86e5fe343b5e4 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/6c38443a9c1f79ebf131d120be0f36ccfbe963c6-<main>-bug.py | 191038ac35ab613322148994a91dc9df1e97b7c1 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | def main():
argument_spec = ec2_argument_spec()
argument_spec.update(dict(names={
'default': [],
'type': 'list',
}))
module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True)
if (not HAS_BOTO):
module.fail_json(msg='boto required for this module')
try:... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.