blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 3 135 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 68 | visit_date timestamp[ns]date 2015-07-25 20:53:29 2023-09-06 10:46:05 | revision_date timestamp[ns]date 1970-01-01 00:00:00 2037-05-03 13:00:00 | committer_date timestamp[ns]date 1970-01-01 00:00:00 2036-02-09 17:40:36 | github_id int64 1.61k 691M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 24
values | gha_event_created_at timestamp[ns]date 2012-06-03 10:21:33 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-09-13 22:40:33 ⌀ | gha_language stringclasses 250
values | src_encoding stringclasses 27
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 6 10M | extension stringclasses 289
values | filename stringlengths 1 218 | content stringlengths 6 10M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
86c1bfa9dc4804730b9ed6a4d49be902e9fc1b12 | cbd290a4af1cc5ae9cac800da4d0e6daeaf1a8f4 | /src/main/resources/assets/aquatica/blockstates/script.py | b623b91f776b6c63faee0b7fb4c26bd98c83cf03 | [
"MIT"
] | permissive | Draylar/aquatica | 30e0adb7ff8b8147cb87e8314dbda781bb1a1c74 | d30bd86742f0c6e9eec30c595a85451aae7d1477 | refs/heads/master | 2021-06-26T16:54:33.521187 | 2021-03-04T05:58:04 | 2021-03-04T05:58:04 | 207,000,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | script.py | colors = [ "white", "orange", "magenta", "light_blue", "yellow", "lime", "pink", "gray", "light_gray", "cyan", "purple", "blue", "brown", "green", "red", "black" ]
wood_types = [ "oak", "spruce", "birch", "jungle", "acacia", "dark_oak" ]
for color in colors:
for wood in wood_types:
file_name = f"{color}_{w... |
6cb3de3c09085789dadbc13ec4071b86cb903cec | 53bb09421f74d26cf0e311253eeeabeee50c8135 | /victorhook_blog/victorhook_blog/urls.py | 49483916a308c5cda27553946dcb5eeca3837986 | [] | no_license | victorhook/victorhook-blog | 2519040c9224a0eb4c99af8b6c5be96f70cf937e | 5668aa17602de7dc7fdbdbcf50b6292a6c924791 | refs/heads/master | 2023-04-04T17:51:02.945319 | 2021-04-19T12:49:26 | 2021-04-19T12:49:26 | 355,120,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | urls.py | from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin
from django.urls import path, include
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('django.contrib.auth.urls')),
path('api/', include('blog.urls')... |
375cd45c7eb04fbb9ac39961e44ab3cf5ef04c9b | 6bc1897c995cfa792b61e9285443f44464e1d308 | /flask_app/models/messaging.py | f254b13b2845712f39fb958a01bb9213df1d8a27 | [] | no_license | Jeff-Clapper/Motivate | b7fa77fc26c5c1eb080697f3067913707cbf9e5b | 86dbb2e2887022a3727e50f5845b0b3bf22486ff | refs/heads/main | 2023-08-23T02:47:32.992483 | 2021-10-29T17:46:59 | 2021-10-29T17:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | messaging.py | from twilio.rest import Client
class Messaging:
@classmethod
def send_sms(cls, data):
with open ("./flask_app/static/files/twilio.key", "r") as key:
twilio_key=(key.read()).strip()
with open ("./flask_app/static/files/twilio.sid", "r") as messaging_sid:
twilio_sid=(mess... |
7846b5cc2abfd6786af5419c3b62f27eeccd7566 | ff05b2734e3c2a5ba09fed8f31e811d3019a7b8c | /edusystem/admin/migrations/0001_initial.py | ce1f3c42281e660b2382441f0e3cbe8e2d222b41 | [] | no_license | zhouzhiyang-666/EduAdmSys | 77d45b4e57d8b1fab0ca0931bfd2162bc83c5cdf | 166096311d18b0110ccd61a7202233c27f966cfa | refs/heads/master | 2023-07-13T14:03:39.808382 | 2021-08-30T11:12:45 | 2021-08-30T11:12:45 | 401,311,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | 0001_initial.py | # Generated by Django 3.1.4 on 2021-01-21 14:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Admin',
fields=[
('id', models.AutoField(pr... |
b3a473ef17bac10df79bf1ab57fc18af11d84292 | c47f05ae86b54b4867428d8e2f809eb70b656cf1 | /浦发机考编程题/47.数组的全排列.py | 897e06a4de94ac6cca0bc0e293f14e4253eb97a3 | [] | no_license | Timothy2015/Leetcode | dbf17160cbc2dc519a13e0df6c411e44ac011484 | 8cb7001bbd4b05db4211776650c51b6c68fa749a | refs/heads/master | 2023-04-06T18:44:05.511504 | 2021-04-15T14:11:30 | 2021-04-15T14:11:30 | 331,288,241 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | 47.数组的全排列.py | # 题目描述
# * 给定数列a, 按全排列顺序打印数列
# leetcode-46.全排列(回溯算法)
# https://leetcode-cn.com/problems/permutations/
"""
# 回溯算法的关键步骤:
1. 路径:已经做出的选择
2. 选择列表:可以做出的选择
3. 结束条件:选择列表为空,或已经达到决策树的底部
"""
nums = [1, 2, 3]
# 使用python不能使用切片,自定义切片列表的切片
def list_slice(nums, l, r):
res = []
for i in range(l, r):
res.append(nums[i... |
5506d2a45e25c3cc762f8388dbfae05329a2eb84 | 2268e156b65db16ec6be1aed351b84b1ddbd2ebf | /Blog with Django/marketing/admin.py | 0b751bfb503de05d542fe8b5b9d9ca824c0c0848 | [
"MIT"
] | permissive | alirezaryahi/django-blog-with-comment | ec96c77b37e5a8cc6f2656f6e0ce6cf3dda0c175 | 9b4268c2fbd98d8c1e2a7c8c16b10b17e527b9e6 | refs/heads/main | 2023-03-11T06:51:25.185662 | 2021-02-23T14:48:01 | 2021-02-23T14:48:01 | 323,417,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | admin.py | from django.contrib import admin
from .models import Marketing
# Register your models here.
admin.site.register(Marketing) |
f0873649f50dd45bc936b82e9f18ca0fe78782de | dbb5045fefe0ee165a483a53159e4d47a355c2ea | /fptrans.py | 20f3ea590c7b7a928580fb96a08aa6e64dd20995 | [] | no_license | son1c/fptrans | 7496020cc29157c7add4b9ad9a6377320a759885 | d1da7cd06f47e0f24ee8ace8378c0d7121617844 | refs/heads/master | 2021-01-22T07:10:08.392634 | 2011-01-20T13:08:25 | 2011-01-20T13:08:25 | 823,150 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | fptrans.py | #!/usr/bin/env python3
# encoding: utf-8
import sys
import subprocess
def fp_con(spf):
values = {"9b":"1", "98":"2", "99":"3", "9e":"4", "9f":"5", "9c":"6", "9d":"7", "92":"8", "93":"9", "9a":"0",
"cb":"a", "c8":"b", "c9":"c", "ce":"d", "cf":"e", "cc":"f", "cd":"g", "c2":"h", "c3":"i", "c0"... |
54b6afa8f84d2a6e76a3d9cf5d6f07a2ba152853 | 4b4935aeea7794381a8243bac98469f1aa413101 | /stack.py | 545dbaeb88e07b9ca9b06782cce784d8832be79a | [] | no_license | Ramasupramaniyan/myfiles | 936af73ef5e7341aeda397bb85cf6c304004faf9 | 4881d82d6aab9e3dafe353032d61901215bf76b2 | refs/heads/main | 2023-03-05T04:01:14.807828 | 2021-02-13T11:37:28 | 2021-02-13T11:37:28 | 301,008,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | stack.py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 6 05:26:03 2020
@author: RAMPRIYAN
"""
class Stack:
def __init__(self):
self.stack=[]
def add(self,dataval):
if dataval not in self.stack:
self.stack.append(dataval)
return True
else:
ret... |
a504221d713d672b8a48207bfde392cb43a07d98 | 5278beac7a79d2a00124ce489edb36d8067ea5aa | /levels/lvl8.py | 9c8eeac7791846691571f09aa2141d8f134ace70 | [] | no_license | lllumineux/fighters | 53353c84ad5c41c34fe4a2a1aa9a2ca09459db95 | 16e499137366afb028668c41b556af959e192d6b | refs/heads/master | 2020-04-22T00:34:36.391788 | 2019-02-15T09:10:45 | 2019-02-15T09:10:45 | 169,984,965 | 1 | 0 | null | 2019-02-13T13:28:14 | 2019-02-10T14:09:09 | Python | UTF-8 | Python | false | false | 3,094 | py | lvl8.py | from BuildingLevels import Background, StativeTexture, stative_textures_sprites,\
background_sprites
def building():
global bonus_mas_pos
global narkomany
global background
bonus_mas_pos = []
fighters_mas_pos = []
narkomany = False
background = Background(background_sprites, 'windows... |
9656086f4f1718691b2fc7489254a81f7fdef254 | ebf55c4fd0262d3427ca2f138081a0d2a741b722 | /checker/parser.py | 4780de45bf7e219a0f137fd041a585fa246cb9aa | [] | no_license | lockwooddev/import-checker | e256eaf222ec58865e5c54d9e3e4c181f9ac6b98 | 44c5dd7aeb301a4f394159213c830aeda4b20a0b | refs/heads/master | 2023-03-03T04:07:11.253070 | 2021-02-09T11:37:54 | 2021-02-09T11:37:54 | 337,085,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | parser.py | import ast
class SetupParserException(Exception):
pass
class SetupParser:
"""
A parser using ast to parse install_requires contents
"""
def __init__(self, target_file):
self.target_file = target_file
def parse(self):
with open(self.target_file) as f:
content = f... |
af532ea25c508c53854a9540629a8cea2d9dc16b | 1f3120356dbc5278dc5fb9e23017bb4b1ea1e466 | /docker/lib/python3.7/operator.py | 09fb91de1f51ece8da8c7047f57977803a1187e7 | [] | no_license | AllenMkandla/intro_to_docker | 94669c3647348651b4ba31734dcb9ea6a74f9241 | 1aa812852bcd6b21613bc81e3bd44fa9e3193e14 | refs/heads/master | 2022-04-17T18:27:03.515706 | 2020-04-18T15:37:55 | 2020-04-18T15:37:55 | 256,784,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | operator.py | /home/allen/anaconda3/lib/python3.7/operator.py |
cb29398300c26f90533b2db42da95f0ed65735bc | 5e0153a295cba49619caf7ccfa339ffd5daf9650 | /Crypto/Util/strxor.py | 1fbe700e2524080a62f43094a274f1b97eacb6a3 | [
"MIT"
] | permissive | matthid/ironpycrypto | a4f871256aab714c9e01049bb0982f0874e40171 | fbcffa058cbe32bef681cc57046f9182fb2ea363 | refs/heads/master | 2016-09-14T10:17:00.437409 | 2016-05-24T22:07:08 | 2016-05-24T22:07:08 | 59,612,141 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | strxor.py | __revision__ = "$Id$"
from IronPyCrypto_Util_strxor import strxor, strxor_c
#from Crypto.Util.strxor import * |
94c73ea86f9993fb8a9fc8b9430db7ae6d9634c0 | d240549cc47de475fec80c5b25b8ab9e098af063 | /getReposForFollowerUsers.py | 2ae9c352304f368fed8a1c598916491f8fafb55d | [] | no_license | syedarehaq/github_follow_graph_analysis | 9a453bc6a41c26f0ef8fbe775246b6a75062513b | 505ae37e14f55b320c791cebe87aaeb1b5c47a4b | refs/heads/master | 2021-05-30T03:57:07.442067 | 2016-01-22T19:35:02 | 2016-01-22T19:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,187 | py | getReposForFollowerUsers.py | from github import Github
from pymongo import MongoClient
import time
import datetime
import csv
from collections import defaultdict,Counter
from random import shuffle
from bson.objectid import ObjectId
## Load mongodb
client = MongoClient("mongodb://localhost:27017/")
db = client.github_follow
follow = db.follow
user... |
1c19725e1cb394b3b35c32f97708c14edf3a2117 | 72f56a9486d8104ce82569ed2170f6b5fc4a0c01 | /administradorConsultas.py | a945cf04320656daf9d0c8befb4ad509b2ac99a7 | [] | no_license | VigTech/Vigtech-Scopus | af5e2027d3db549ef6dbf4991f738e271b6aa586 | 0da09d37a24da8d0c1bb1a8cea6cb88b68ecf673 | refs/heads/master | 2021-01-15T19:45:17.916551 | 2015-12-27T17:29:22 | 2015-12-27T17:29:22 | 34,288,560 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 23,165 | py | administradorConsultas.py | from descarga import Descarga
import xml.etree.ElementTree as ET
import os
REPOSITORY_DIR=REPOSITORY_DIR = "/home/vigtech/shared/repository/"
class AdministradorConsultas:
titulos_descargas = []
eids_descargas = []
lista_docs=[]
def __init__(self):
""""
Todo el codigo del constructor deb... |
cc3a20d2b7a81b3d0e7dea27f43acb6acf90b9b3 | af231057cf7472555ce3305d76425dbbca52bb37 | /meeting_script/text.py | afdb05c042356b3cc1536cb1b21fdf63bc2de164 | [] | no_license | aa159156/webdirver | fb96e771ee70d65e3cde2bff6f87e18d4432badb | 2e12e87b21990a29ef8797f332929cd18b2d0391 | refs/heads/master | 2022-12-06T07:41:19.649436 | 2019-06-26T13:05:08 | 2019-06-26T13:05:08 | 160,774,491 | 0 | 1 | null | 2022-11-19T02:06:23 | 2018-12-07T05:18:31 | Python | UTF-8 | Python | false | false | 7,412 | py | text.py | # coding=utf-8
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import unittest
import HTMLTestRunner
from BeautifulReport import BeautifulReport
import time
from edit impor... |
f5b8756ed26160cfaf951ad0406ff6fa9f4c9f99 | fe81d16f7e8915a999f7c05b44dd33509079cd7a | /setup.py | 51713bbcdb7c8cf1d5608fe7d37e368b4d0870ba | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | alex8080/afkak | 53b306718ae0dc9934fc78888c03d1e39f0aa870 | a328d2fbb1543e109232e07feb4ef02a0972cf35 | refs/heads/master | 2020-03-25T18:45:24.991421 | 2018-08-03T20:53:05 | 2018-08-03T20:53:05 | 144,046,470 | 0 | 0 | Apache-2.0 | 2018-08-08T17:27:49 | 2018-08-08T17:27:49 | null | UTF-8 | Python | false | false | 2,060 | py | setup.py | # -*- coding: utf-8 -*-
# Copyright (C) 2016 Cyan, Inc.
# Copyright (C) 2016-2018 Ciena Corporation
from setuptools import setup, find_packages
# NB: This version is extracted by the Makefile using awk; don't change the
# formatting here!
version = "3.0.0.dev0"
setup(
name="afkak",
version=version,
insta... |
b84a6ce79697432a62c7488ecba2eabb9f83f5fe | 501f1afe54f978ccd1ae861000ad69c61992b6e6 | /tp3.py | 16580f6712c09ae14f6df7f7d8e78de2754b2839 | [] | no_license | mferrachat/m1-ssr-ia-hearthstone | 9e3f68c22b2065e217b5dc6f76a03a3db53cd8e2 | db73a3755c4b425502a7e4d955a5f80d7366f683 | refs/heads/master | 2021-04-09T11:37:44.250817 | 2018-03-29T18:56:02 | 2018-03-29T18:56:02 | 125,534,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | tp3.py | import re
def parser(fname):
f = open(fname, 'r')
dico = {}
table = {}
id_table = {}
i = 1
for l in f:
m = re.match('^([0-9]+) (O|M)([a-zA-Z0-9_\-\.:\'!?]+)',l)
if m:
key = m.group(1)+m.group(2)
name = m.group(3)
if key not in dico:
dico[key] = set()
if name not in table:
table[name] = i
... |
5133ac6d21b100a3e681bcb4b95a78468f18ff6a | 88ae8695987ada722184307301e221e1ba3cc2fa | /native_client/pnacl/driver/pnacl-strip.py | eed28590470c8746a881bc8b9101d988462fc20a | [
"BSD-3-Clause",
"Zlib",
"Classpath-exception-2.0",
"BSD-Source-Code",
"LZMA-exception",
"LicenseRef-scancode-unicode",
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-intel-osl-1993",
"HPND-sell-var... | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 3,955 | py | pnacl-strip.py | #!/usr/bin/python3
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import driver_tools
import filetype
import shutil
import pathtools
from driver_env import env
from driver_log import Log
EXTRA_E... |
f9ca7827cc304bb6d9b0438a83779570a04dc685 | 4ecdc21138aa45ebf14b754fc575ab13a1bd13b0 | /gravbot/app.py | 0980fe216a0eb80801de701101edd86636775aab | [] | no_license | fcostin/gravbot | 32aafe993a08dd54ab9b3b219d17eea7acdbe3ab | 9ce24b2548784a54086afbab1a0e684321c898e5 | refs/heads/master | 2021-01-17T23:42:47.157758 | 2012-04-08T14:09:29 | 2012-04-08T14:29:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | app.py | from direct.showbase.ShowBase import ShowBase
from gravbot.mainmenu import MainMenu
class App(ShowBase):
def __init__(self):
ShowBase.__init__(self)
self.screens = []
self.screens.append(MainMenu(self))
def run(self):
# start first screen
self.screens[-1].ente... |
424a377003b8e4a1c8022bb26b894d3050575a5f | 26fdb0e627888e3ca80804e3e23ab71b2e444044 | /serverUdoo.py | e540733c4a764518b0136247306efba8abf5be79 | [
"MIT"
] | permissive | AppsThor/CooltivateActuator | e5dd2316ca02fe6141786cd7553be8c183837989 | 15dd4aef9142830af08c16ba0136b1800790aa0a | refs/heads/master | 2020-04-26T16:17:04.413730 | 2015-04-12T12:49:57 | 2015-04-12T12:49:57 | 33,795,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | serverUdoo.py | __author__ = 'Samuele'
from flask import Flask, jsonify
import serial
app = Flask(__name__)
ser = serial.Serial('/dev/ttymxc3', 115200, timeout=1)
ser.flushOutput()
current_fan_status = 0
current_irrigation_status = 0
current_light_value = 0
@app.route("/fan", methods=['GET'])
def get_fan_status():
return json... |
534f707cac4bb2a0993c62d1e7ad436a78effc93 | 9e196a3c5293e45e63463fd8ebac1d5ef9b5d213 | /cleverbots/mainapp/migrations/0005_snippet_size.py | 6736469b43aa09b72577ce3ad821a86bdcf0c8bb | [] | no_license | Farelkin/TestCleverbots | 9aa6d4cfad4f13797af5eef1b655c396b1473c21 | d2da6ea3af769175a7fa456aa6c906fadca816a1 | refs/heads/master | 2022-12-01T19:35:49.787580 | 2020-07-28T12:27:43 | 2020-07-28T12:27:43 | 179,934,007 | 2 | 0 | null | 2022-11-22T06:28:45 | 2019-04-07T07:54:15 | JavaScript | UTF-8 | Python | false | false | 383 | py | 0005_snippet_size.py | # Generated by Django 2.1.3 on 2019-04-17 18:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0004_remove_snippet_size'),
]
operations = [
migrations.AddField(
model_name='snippet',
name='size',
... |
97c60ecfd08217d7f4218fdca803542a3695e2f0 | 1f959b082a570b948f76fd405d091bc31490aeb5 | /RSA.py | e41ec97a5174f9c931ed249c7b66dcd6cb81ee4d | [] | no_license | SamoylovaYulya/RSA | a35905f5f8338d53c716f4c85a44af41b84c0da3 | 238fe56650d184c2d39621af0f47f9a4b4b0b9ee | refs/heads/master | 2020-05-17T10:53:18.955436 | 2015-01-30T08:24:51 | 2015-01-30T08:24:51 | 30,063,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | RSA.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import bint
import sys
import random
def xgcd(a, b):
if a == bint.bint(0):
return 0, 1, b
if b == bint.bint(0):
return 1, 0, a
px = bint.bint(0)
ppx = bint.bint(1)
py = bint.bint(1)
ppy = bint.bint(0)
while b > bint.bint(0):
q = a / b
a, b = b, a % b
x... |
368e86e5ed0216d8e98a19940dc321bf3801f53c | c96b408540f3d0b95290fceccb21a98322e9ef43 | /alembic/versions/0bafd3082b54_.py | 1e048ca835f5c262a43583a964a06615e2521e6d | [] | no_license | vcslav-v/produkto-sercxilo | 10026ad8155bd70d03028c836cc82c866c95187d | 0d8f530a8c2c1d3c713b8387d1a07291cd5e0b4e | refs/heads/master | 2023-05-14T20:35:38.917118 | 2021-06-07T12:25:39 | 2021-06-07T12:25:39 | 347,056,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | 0bafd3082b54_.py | """empty message
Revision ID: 0bafd3082b54
Revises:
Create Date: 2021-04-26 18:10:45.939282
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0bafd3082b54'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... |
1fa9ffc59c95b252b927de0a02fe2e2b83f5e5a9 | 7d9fd33da4ddfff97c7c91c4db9e581ed92ccce8 | /AutoTestingScripts/.svn/pristine/24/24068aca2291aac6b3f817de37c97b8291543fe6.svn-base | c6857c1adc9eae243d0a6195f3c7bde68152b633 | [] | no_license | nirvana-info/old_bak | 53ad241a6593c94c25b59273b046cffc00584797 | 8d42b25da8633ce99a5e6b923009baaf01d1a3b8 | refs/heads/master | 2021-01-22T23:43:40.986131 | 2015-07-15T06:27:06 | 2015-07-15T06:27:06 | 39,063,808 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,476 | 24068aca2291aac6b3f817de37c97b8291543fe6.svn-base | '''
Created on 2011-02-25
@author: iris chen
'''
import PublicFunctions
import time
def Year(self,yearOption):
self.selenium.click("//input[@value=\'%s\']" %yearOption)
def Make(self,make):
self.selenium.click("//input[@value=\'%s\']" %make)
def Categories_QP(self,value):
PublicFun... | |
e65589ff08fb4946302a925e6b76b1e6fb708afe | c3d732a2b8c3aacf19ff55973122a1384c6a89dd | /lesson06/hw06_5.py | 064b6e7160d005ddefaa063429ff87ab2986216d | [] | no_license | pavlenko-aa/geek_python | e34e315cf6a15d8cb24753fe3197a19321c7e689 | b5f201311f08ca188117f3fdfae0d60b4e40f16c | refs/heads/master | 2023-01-11T23:17:18.798989 | 2020-11-08T18:43:28 | 2020-11-08T18:43:28 | 302,544,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | hw06_5.py | class Stationery:
title: str
def __init__(self, title):
self.title = title
def draw(self):
print("Запуск отрисовки")
class Pen(Stationery):
def draw(self):
print(f"У вас в руках {self.title}. Запуск отрисовки ручкой.")
class Pencil(Stationery):
def draw(self):
pri... |
963eb044612c8d3a407547ac960335bcd2c9b69d | 7b68b43569277eaadea1e49355538f9aacdeda25 | /data/exporter.py | 5b049091452134b6eaa9a9d4ec72130aa0b5529d | [] | no_license | CarlosGabaldon/brewdonkey | 2760d522f8c0adfefbf8e24aa93876c64ccc4463 | 5fa25fc2f3e0a4ac2611417f48efc04e4c98823d | refs/heads/master | 2020-09-22T12:10:22.181939 | 2010-05-05T01:32:35 | 2010-05-05T01:32:35 | 112,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,485 | py | exporter.py | #!/usr/bin/env python
#
# This software contains code derived from a CSV bulkload client
# (bulkload_client.py) developed for the Google App Engine by Google Inc.
#
# Copyright 2008 Garrett Davis
# Portions Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may... |
33bb4314d93c5c6a3cd45883ba3777d81db1576a | 29c6d0983a7c5a5c7ae0d47daf3290ec85db0751 | /jhub_sendgrid_notifier/__init__.py | a05436f6ff0d653f29554ebc37c6a605ad791c12 | [] | no_license | yacchin1205/jhub_sendgrid_notifier | 8e6d57882c0d15560a2b3b1fe220a2cda02978e6 | 584f4f2ea6bd8221701380df2e56a1ad8daa7a83 | refs/heads/master | 2022-07-11T02:30:58.024736 | 2020-05-08T13:25:11 | 2020-05-08T13:25:11 | 262,280,516 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | __init__.py | from .notifier import SendGridNotifier
|
9c00f36e97813dfa75682175009766dbe3a6addd | 4efd0bf0aa1378ddd4e00ae8aa6877b09446b22a | /tests/make_dim_scales.py | 25cccec243377a26846b5369f7ce8011a758ccfd | [
"BSD-3-Clause"
] | permissive | jjhelmus/pyfive | 923b43f0e0ece20cdc8a361809ac6ea2cbce17be | b3bc85b223bce72637835bf1425ea24c9918f486 | refs/heads/master | 2022-12-09T15:20:35.204919 | 2022-12-05T17:09:11 | 2022-12-05T17:09:11 | 57,862,445 | 67 | 17 | BSD-3-Clause | 2022-10-21T18:00:24 | 2016-05-02T02:45:59 | Python | UTF-8 | Python | false | false | 1,107 | py | make_dim_scales.py | #! /usr/bin/env python
""" Create a HDF5 file with dimension scales and labels . """
import h5py
import numpy as np
f = h5py.File('dim_scales.hdf5', 'w')
common_args = {
'track_times': False,
'dtype': 'i4',
}
# dataset with dimension labels and scales
f.create_dataset('dset1', data=np.ones((4, 3, 2)), **comm... |
4c51ad44864301881271d7fb422207f9c08cc7a1 | dfc52e14c56e335770c060af0d9619f4e7ccc757 | /realagents/preprocessing/cluster/prclu01k.py | 9cbbb1aaad24c74e3f3b1e165967bd3c138ee15f | [] | no_license | abujed/himasmiad | 6369c27a75d306b3726650185c50e8fa88d568d2 | 4df9600c2e12e7d8f71731998a20840989389870 | refs/heads/master | 2021-01-01T15:25:16.806260 | 2015-04-04T19:57:00 | 2015-04-04T19:57:00 | 33,417,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | prclu01k.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import spade, os, sys, subprocess, socket
sys.path.append('../../dropoff')
import prall01k
outputdir = "./output"
hostname=(socket.getfqdn())
class Receiver( spade.Agent.Agent ):
class prclu01( spade.Behaviour.Behaviour ):
"""This behaviour will receive... |
0892ab79731dbbea14de0bb120524d528239c3b0 | 63d89ec4fe046b5287c1369f22b3271056770693 | /app/forms.py | e8271136f47e4af4447dc8201de3d12d74ed8e3f | [] | no_license | liamrottkov/car_dealership | 7753214b86bf229d58f5df9f502ee9049000e473 | dc760336e876fa066401d1654dee15eabfb14308 | refs/heads/master | 2023-02-05T12:08:49.344867 | 2019-08-02T17:48:52 | 2019-08-02T17:48:52 | 200,272,725 | 1 | 0 | null | 2023-02-02T06:37:54 | 2019-08-02T17:22:21 | Python | UTF-8 | Python | false | false | 2,473 | py | forms.py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, PasswordField, IntegerField, TextAreaField, BooleanField
from wtforms.validators import DataRequired, Email, EqualTo, ValidationError
from flask import flash
# class TitleForm(FlaskForm):
# title = StringField('Title', validators=[DataR... |
65c1497cd2eb7727f88123c352a422a6e15148b0 | afc024490f38b1ab1b2b97173f706b1630f0caab | /weather_app/api/errors.py | a000fc58c3b181dd446a8e56b9847ed90d530c9e | [] | no_license | Nastya67/weather_app | b5eafa579a17950aab39368ae8a92935defd09d1 | 0da39633c00ab6cbf312f8cd06cc4c5df044a40c | refs/heads/master | 2021-07-10T06:06:14.900434 | 2020-01-23T21:48:07 | 2020-01-23T21:48:07 | 235,559,843 | 0 | 0 | null | 2021-03-20T02:43:32 | 2020-01-22T11:31:48 | Python | UTF-8 | Python | false | false | 143 | py | errors.py | from . import api
import json
@api.errorhandler(404)
def error(er):
return json.dumps({"status": 404, "message": str(er.description)})
|
614266fcac404bded164c27f4fd05dd09d94767e | 9509977c1efe1ff65cac464ab00e8c4c2bf73d83 | /test_img/get_qianku_photo.py | 5b19170320cf1d31cefdbce6620435703c27f5cc | [] | no_license | 97612336/mytest | 1b78f617c607e006fc3d5978388f3cd0be382f7b | b5558e999d84bcc679463878fa02d14d887ec596 | refs/heads/master | 2022-12-12T06:12:28.703635 | 2019-08-30T03:04:34 | 2019-08-30T03:04:34 | 142,098,555 | 0 | 0 | null | 2022-12-08T02:48:10 | 2018-07-24T03:18:46 | TSQL | UTF-8 | Python | false | false | 4,284 | py | get_qianku_photo.py | import re
import urllib.request as ur
import os
# url = r'http://588ku.com/sucai/0-default-0-0-xiongmao-1/'
import chardet
from xpinyin import Pinyin
class Get_qianku_photo(object):
#得到指定页数的所有图片列表
def get_all_photo_url(self,str0,num1):
print('进入方法了')
list0=[]
p = Pinyi... |
41b4e3894f74210cc24c5887f0cf4a9879c2db45 | f8414bea7b6b89c2533ea5ef3e691d565318223d | /setup.py | 51ffe9a57991f855f3526c66965431d282e5efba | [
"MIT"
] | permissive | mmarquezs/libgen-python-api | adcabb8e5e20fbcd9df57ec0aa666aec16e6ee7a | a9ab51209d9f46e5df4890c59bc7643d84c93bce | refs/heads/master | 2022-05-30T18:46:05.885284 | 2022-05-18T15:15:49 | 2022-05-18T15:15:49 | 51,149,629 | 117 | 39 | MIT | 2019-05-14T18:42:57 | 2016-02-05T13:58:28 | Python | UTF-8 | Python | false | false | 1,307 | py | setup.py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encodin... |
83c0fe8d0a4b757b6a735f015f55231a798686d0 | 5c4619cb1858c218280200bd72123e14f0dc8590 | /02.Source/Ref/pytubeSample.py | 1b4ea1f4229f56b2d1e30cc308ba847ddecb4673 | [] | no_license | oneofSong/bitproject | 74fc7aeed2b624de8c12aa2f55b5ce997aa69117 | e50b1736a5198b83deb66d01a0d80c11280fc846 | refs/heads/master | 2020-07-08T18:52:18.218414 | 2019-10-30T04:43:56 | 2019-10-30T04:43:56 | 203,748,687 | 1 | 0 | null | 2019-08-22T08:25:56 | 2019-08-22T08:25:56 | null | UTF-8 | Python | false | false | 833 | py | pytubeSample.py |
#YouTube('https://www.youtube.com/watch?v=ayulNIOHvak&list=PLvImSI_94S8_XNtWN-FUWMl6ZiC2IYYqB').streams.first().download()
#from pytube import YouTube
import os
import subprocess
#yt = YouTube('https://www.youtube.com/watch?v=Iq3_phBQA_Y&has_verified=1') # 다운로드 받고자 하는 url을 입력합니다.
# print("yt \n")
# print... |
dac456345780fe6ced123598995a6e2285a89ef2 | 33ff82865a026002ccfdd8f227af1edfa60ffa70 | /1.numpy/topic59/topic59.py | 27ab3124a21fe1d3e5d52cda1ab4bad2b6995996 | [] | no_license | zabcdefghijklmnopqrstuvwxy/AI-Study | 0c0294ebf9814877992e41c7f93972b610663617 | cd683a1d6fb3d4cf90f2a1daa8e071ae518b2716 | refs/heads/master | 2022-04-13T15:46:28.315047 | 2020-04-09T12:29:17 | 2020-04-09T12:29:17 | 240,657,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | topic59.py | #argsort(a, axis=-1, kind='quicksort', order=None)
# Returns the indices that would sort an array.
#
# Perform an indirect sort along the given axis using the algorithm specified
# by the `kind` keyword. It returns an array of indices of the same shape as
# `a` that index data along the given axis in so... |
3e609af00cfc676a7a1a6bc8a88bf040aaff470e | e06d5a21593b04f54e84522ffb51e632aa045bdc | /src/utils.py | 3c4645b69c473c5d19e6074de60766a5de1eb035 | [] | no_license | ankitshah009/dp-llm | d92e09b5c3006c4218ec6e1f10dd10b6859b89ba | 8e2ba61627f4286fde30ddddb806b8fb024192bc | refs/heads/master | 2023-01-10T08:36:19.845807 | 2020-11-06T08:23:52 | 2020-11-06T08:23:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,505 | py | utils.py | # __author__ = 'frederik harder'
import matplotlib
matplotlib.use('Agg') # to plot without Xserver
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import scipy
import numpy as np
import torch as pt
from torchvision import transforms, datasets
def get_data_loaders(use_cuda, args, fashion=False, shuffle=Tru... |
ab0a026f991aaf958335d5324a3e6a062552703b | fe44b5a2f92bcc2e8626c0f8214cc0961c09c266 | /median-of-two-sorted-arrays.py | f8ad319c0dfccb8e155a364a6f26216af1e62bb8 | [] | no_license | vnesh-san/CodeBreakersCode | 9997ef75476030e9023f5d3601b3b8596a9852c4 | 67dcfb23add5ee5b7fe84eb0810885a87ca517ab | refs/heads/master | 2023-02-09T23:42:17.201004 | 2021-01-02T20:41:35 | 2021-01-02T20:41:35 | 318,905,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | median-of-two-sorted-arrays.py | class Solution:
def findMedianSortedArrays(self, nums1: [int], nums2: [int]) -> float:
if len(nums2) < len(nums1):
return self.findMedianSortedArrays(nums2, nums1)
l1 = len(nums1)
l2 = len(nums2)
left = 0
right = len(nums1)
while left <=... |
6a38ff1969905408eace6881a7f44dec083cf756 | 39b2f1543db2a7bf51fe6eab757d1db2c395c0d2 | /Sprint-3-Monte_Carlo_Simulation/Deliverables/les_poissons.py | 06e08ae0cbe95c9bd97414651609f53609723baf | [] | no_license | RLSpringer/Simulation | f34ab487022e13f41177be2fa6636e8d07dc7721 | 3acbe2c5cb7f18824608b0b71d0b1fd0abad2511 | refs/heads/master | 2023-02-01T13:33:13.745325 | 2020-12-11T20:02:17 | 2020-12-11T20:02:17 | 298,591,271 | 0 | 0 | null | 2020-09-25T14:09:45 | 2020-09-25T14:09:45 | null | UTF-8 | Python | false | false | 1,344 | py | les_poissons.py | """
Simulate a bionomial process
"""
# Import a method to generate random die rolls
#
# random.randint -- generate random integeters in a range
from random import randint
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
def simulate():
"""
Simulate rolling a die with prob 1/40
in... |
1e23adf0238686b190a591f796943210a1d9655b | 00eea1a0fa94a09ce212b1c0a7aa9926858b8ac0 | /lab2/task2_1.py | 690aa0eae3bbc84812bdd98b8e67286d52de886d | [] | no_license | tuhbiev/python_laboratories | bd8dba1aa321ca1add0687cc00f5c974de273d4d | 0f2c27245d1c3daea18d0a0a73266ec6f1fb1f50 | refs/heads/master | 2023-04-04T01:21:27.185448 | 2021-04-10T07:53:17 | 2021-04-10T07:53:17 | 356,511,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | task2_1.py | import math
lmt = int(input('Введите лимит: ')) + 1
x = int(input('Введите x '))
list_num = list(range(0, lmt))
sum = 0
for index in range(lmt):
sum = sum + (1/((2*index+1)*math.pow(x,2*index+1)))
print(index)
print(sum) |
f04f2e39dd1872d0dc2aee0f358c3135078d1287 | 9b70911e508538669b4ba0728e31eda40d6489da | /scrape_scores.py | a90b616372818b586657bc5a296d0df3b69e5223 | [] | no_license | cdchan/fantasy-baseball | 96e2e7c6adee66b237af4f3334e4e1a7b78476b4 | ad5e080b7b3940dad7a4a64e901b521c00253804 | refs/heads/master | 2021-07-07T12:12:53.903851 | 2021-05-21T15:35:11 | 2021-05-21T15:35:11 | 81,159,859 | 3 | 0 | null | 2021-05-21T15:33:32 | 2017-02-07T03:02:10 | Python | UTF-8 | Python | false | false | 4,331 | py | scrape_scores.py | """
Scrape historical scores for calculating current scoring environment
"""
import argparse
import os
import time
import random
import urlparse
import lxml.html
import pandas
import requests
from config import DATA_DIRECTORY, LEAGUE_ID, ESPN_COOKIE
STATS_BATTING = ['AB', 'H', 'R', 'HR', 'RBI', 'BB', 'SB', 'OBP']
... |
33159e72df53ecd06fe3771734214d86c2adb0fd | 200df6cda6e54d56a4c800e10e6d5f248d7d59f2 | /04-面试题系列/01.06.字符串压缩.py | f2a6d865cd521eb392b8bc725807257f881f0b88 | [] | no_license | jh-lau/leetcode_in_python | b9b9a47d0b3ce29c3c56836b39decc3ec4487777 | 1d1876620a55ff88af7bc390cf1a4fd4350d8d16 | refs/heads/master | 2023-04-17T15:01:49.925774 | 2021-04-24T01:17:39 | 2021-04-24T01:17:39 | 192,735,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | 01.06.字符串压缩.py | """
@Author : liujianhan
@Date : 2020/4/8 下午5:46
@Project : leetcode_in_python
@FileName : 01.06.字符串压缩.py
@Description : 字符串压缩。利用字符重复出现的次数,编写一种方法,实现基本的字符串压缩功能。比如,字符串aabcccccaaa会变为a2b1c5a3。
若“压缩”后的字符串没有变短,则返回原先的字符串。你可以假设字符串中只包含大小写英文字母(a至z)。
示例1:
输入:"aabcccccaaa"
输出:"a2b... |
eb27e3987ab230938eb897f6948a0c19e049ee00 | cde8430b6319bf0a3f3f40c4e4c1c256e67f4c39 | /deportmania/admin.py | 129f046f340f804cc51209e21c5b307ac1f8e752 | [] | no_license | alearcfer/deportmania | 09816eb49eb39722ef7d76e3dda715c3413cda5a | f164e74a10e880c9d7fa5b33d2da3bb4d01cc650 | refs/heads/master | 2020-05-20T02:38:16.472799 | 2015-09-14T15:57:33 | 2015-09-14T15:57:33 | 32,472,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | admin.py | __author__ = 'Alejandro'
from django.contrib import admin
from deportmania.models import *
admin.site.register(Proveedor)
admin.site.register(Articulo)
admin.site.register(ComentaArticulo)
admin.site.register(Factura)
admin.site.register(Gusto)
admin.site.register(Marca)
admin.site.register(Deporte)
admin.site.regist... |
27ccead1e463e442b396bffca2bdd7679e4f4395 | fb11325bb3e0c66168e9d403ab511a25caa545a2 | /fib/python_imp/fib.py | 722617bd6b93b4e0132817a65de5a41f63d47f01 | [] | no_license | basfl/yt_dynamic_programing_python_js | 397e9e06647cd6c97d72b4a3ccbe01087876c3a7 | 4ba3b07121d166d93a3e3d8ab28fc5ce26de4f48 | refs/heads/master | 2023-03-12T22:44:52.213439 | 2021-02-27T15:59:10 | 2021-02-27T15:59:10 | 332,628,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | fib.py | def slow_fib(n):
if n <= 2:
return 1
else:
return slow_fib(n-1)+slow_fib(n-2)
# memorization
def memo_fib(n, memo={}):
if n in memo:
return memo[n]
if n <= 2:
return 1
else:
memo[n] = memo_fib(n-1, memo)+memo_fib(n-2, memo)
return memo[n]
########... |
392d53f876570e37703c4c5bdc7ad9a654e1200e | 4ffb244a1c80a2c4f64b1346ef8ad34baf850159 | /SharemarketNotificationSystem/main.py | 71e9f16ab1d8a087052d87501f7ecec2b7021506 | [] | no_license | puviyarasu1435/SharemarketNotificationSystemTeleBot | 3ff836e8f7d7bbfac1f2fe9be9dfc46fabc59b5e | 168fb80fe21e3ce059a9c837f3faefb22259e92c | refs/heads/main | 2023-04-14T00:43:42.022529 | 2021-04-28T02:10:31 | 2021-04-28T02:10:31 | 362,309,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | main.py | from yahoo_fin import stock_info
from plyer import notification
import datetime,time
from telegram.ext import *
Apikey="< api key>" # api key bot father
brands="<brand name>" # brands name
chat_id="<chart id>" # telegram chart id
minutes= 15 # dely of cheking price
def send(temp,price):
notification.n... |
8f61316438fa0cb277167aaa0b7074bf9a652a4e | 170e229ca104b9bc270a5fc4eba460f2ae26af2a | /wizard_builder/admin/question_admin.py | be7f3778579296563b8fd0bb38896c83c43baada | [
"BSD-2-Clause"
] | permissive | scattermagic/django-wizard-builder | 3137b5c6588aa661dc3314d99d8010efc69705f2 | 541c2d6f2b3fe8fa54b013226eaf7c948bc80ef4 | refs/heads/master | 2021-05-16T04:12:02.039656 | 2017-10-17T17:55:10 | 2017-10-17T17:55:10 | 105,827,361 | 0 | 0 | null | 2017-10-04T22:52:18 | 2017-10-04T22:52:18 | null | UTF-8 | Python | false | false | 645 | py | question_admin.py | import nested_admin
from .base import ChoiceInline, DowncastedAdmin
class FormQuestionAdminMixin(object):
search_fields = ['text', 'descriptive_text']
list_filter = ['page__sites']
class FormQuestionParentAdmin(
FormQuestionAdminMixin,
DowncastedAdmin
):
list_display = ['short_str', 'model_type... |
aa58922e2222646e9dd6e43af0e5667bf692ed83 | 26f78ba56388765f2fe2dc8fa23ddea097209ec5 | /Leetcode/数组字符串/260只出现一次的数字3.py | c48e0ce2b412fab444cef828972965171973aeeb | [] | no_license | johnkle/FunProgramming | 3ef2ff32a1a378e1c780138ec9bab630c9ba83c7 | a60e0d17a1e9f0bc1959d7a95737fc4a0362d735 | refs/heads/master | 2023-07-18T16:05:56.493458 | 2021-09-08T19:01:19 | 2021-09-08T19:01:19 | 402,861,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | 260只出现一次的数字3.py | import collections
class Solution:
def singleNumber(self, nums):
hashmap = collections.Counter(nums)
res = []
for k in hashmap.keys():
if hashmap[k] == 1:
res.append(k)
return res |
83eaf374b806a3cf76be7db08a21bacdb603398a | 72d6b3ab3fc2c7014967a156de082d1c617cbf0f | /custom-package/lon_lat_calc.py | 6684ff0f71465a20a858355cce419c5277931fca | [] | no_license | fengmingshan/python | 19a1732591ad061a8291c7c84e6f00200c106f38 | b35dbad091c9feb47d1f0edd82e568c066f3c6e9 | refs/heads/master | 2021-06-03T08:35:50.019745 | 2021-01-19T15:12:01 | 2021-01-19T15:12:01 | 117,310,092 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | lon_lat_calc.py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 30 10:52:56 2020
@author: Administrator
"""
from math import radians, cos, sin, asin, sqrt
# 根据经纬度计算两点间距离
def calc_Distance(lon1,lat1,lon2,lat2):
lon1, lat1, lon2, lat2 = map(radians, [float(lon1), float(lat1), float(lon2), float(lat2)]) # 经纬度转换成弧度
dlon = lon2-l... |
ff553310730a90e3a39c21d3df7cef7d7fd00fd5 | ecd2706feb89ca13bf5762b04215a629669d6274 | /ch1.py | f4bb173ae3a5bca8e8f0a3032a4dd52f973d2e86 | [] | no_license | FelixZhang2000/machine_learning | c441c615971429dd7a96d3c61851a1ba620bbb7d | d9d811aaab222ff0e3f681f9fbaf59f06976dd1f | refs/heads/master | 2021-07-11T01:16:32.593752 | 2021-03-16T00:07:43 | 2021-03-16T00:07:43 | 237,161,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | ch1.py | #合成数据
from sklearn import datasets
X, y = datasets.make_classfication(n_samples = 10**6, n_features = 10, random_state = 101)
print(X.shape, y.shape)
|
c07d848a23b0281fc5e29cf35c6a2efc89dbe11d | 5f4ca3f3156e71fe340269ce9625b53671bcdf1b | /pointcloud_utils/create_test_pointcloud_images.py | 8275318ce4fca90f247054e416e561c44f58f9ff | [
"Apache-2.0"
] | permissive | k-nish/didi-sdc-challenge-2017 | 70d66901ff8407b3f1f40626e0e11b3b96ca5fd5 | 0ecdde145a54b6b1079be768e9e99d0920c0a6c1 | refs/heads/master | 2021-03-25T20:35:01.929367 | 2018-02-16T15:35:29 | 2018-02-16T15:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | create_test_pointcloud_images.py | """Create top view from a pointcloud
Based on code from http://ronny.rest/blog/post_2017_03_26_lidar_birds_eye/
and https://github.com/hengck23/didi-udacity-2017/tree/master/baseline-04
See Bo li's paper:
http://prclibo.github.io/
[1] "Multi-View 3D Object Detection Network for Autonomous Driving" - Xiaozhi Che... |
0e1c0ed5fc9297b8662e739a9b5a37f442ba28c0 | d524dc1cf48dfb3dac6b288d0f5d3206ac2ad33b | /SUSY/triggerStudies/python/test_cff.py | 9220430c845ae98bc31368c1704baa96217398e7 | [] | no_license | bainbrid/usercode | 59e7e2c2ba66be8ee6696be5b7fdddc3fa5d6d2a | 3d1ae8563ff470725721100f6e5a2e7b5e8e125e | refs/heads/master | 2016-09-07T18:38:31.267514 | 2013-09-10T20:21:21 | 2013-09-10T20:21:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,114 | py | test_cff.py | #!/usr/bin/env python
#!/usr/bin/env python
"""
Created by Bryn Mathias on 2010-05-07.
"""
# -----------------------------------------------------------------------------
# Necessary includes
import errno
import os
import setupSUSY
from libFrameworkSUSY import *
from libHadronic import *
from libTriggerStudies import... |
5bb05751a5d9d9d5f9a4831f6b9b683fa266c726 | 37c3b81ad127c9e3cc26fa9168fda82460ca9bda | /SW_expert/sw_11315_오목 판정.py | 0a6ddd7ddf7177f2c0be5cf6a5300461a3b3d95f | [] | no_license | potomatoo/TIL | 5d85b69fdaed68966db7cfe2a565b7c64ed3e816 | 395dc190fa13e5ed036e1e3c7d9e0bc2e1ee4d6c | refs/heads/master | 2021-07-08T16:19:40.410097 | 2021-04-19T02:33:40 | 2021-04-19T02:33:40 | 238,872,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | sw_11315_오목 판정.py | import sys
sys.stdin = open('./input/input_11315.txt', 'r')
def find_omok(y, x):
for i in range(8):
check = 0
yy, xx = y, x
while True:
ty = yy + dy[i]
tx = xx + dx[i]
if ty < 0 or tx < 0 or ty > N-1 or tx > N-1:
break
if board... |
64e5ff8e1c17aab70f281f356f3597a252b87058 | a9dcc006264f1e56d4072edc6a69836cb060f1c9 | /server/backbone_server/derivative_sample/get_by_taxa.py | d114291fdaf85f8c3fa4496be1a68dd6eba958b6 | [] | no_license | benjeffery/sims-backbone | d93748114efdb0efe1d983006e1b06970cbbc6be | c79d1eeb463788fb3e7be4e3193186f3a7418c9b | refs/heads/master | 2020-04-27T01:50:32.762570 | 2019-03-04T15:26:14 | 2019-03-04T15:26:14 | 173,976,589 | 0 | 0 | null | 2019-03-05T15:55:40 | 2019-03-05T15:55:40 | null | UTF-8 | Python | false | false | 3,077 | py | get_by_taxa.py | from openapi_server.models.derivative_sample import DerivativeSample
from openapi_server.models.derivative_samples import DerivativeSamples
from backbone_server.errors.missing_key_exception import MissingKeyException
from backbone_server.derivative_sample.fetch import DerivativeSampleFetch
import logging
class Deri... |
2090f5fbfe220228c4be8bfcc84a5cd18cf9cf2d | 051c93bca1aac3678a030e3b8489440fc1a5692f | /playbook/modules/core.py | d00347c00e9350bb2aa01c364d58e6efe03d4dd1 | [] | no_license | Arges42/playbook | 4c81262d41da25366dc3c870d6405b519bd9762e | e88e0705b0acd007abb3b31bdf37c8f2b417418b | refs/heads/master | 2021-01-13T07:40:39.080819 | 2017-02-16T15:50:39 | 2017-02-16T15:50:39 | 77,000,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,841 | py | core.py | import sys
from functools import wraps
from PyQt5.QtWidgets import (QWidget, QToolTip,
QPushButton, QMessageBox, QApplication, QDesktopWidget, QMainWindow, QAction, qApp, QGridLayout, QFormLayout, QColorDialog, QDialogButtonBox, QLineEdit, QGraphicsLineItem, QGraphicsTextItem,QTableWidgetItem,
QGraphicsView, Q... |
11aaa35494ed98004b0afd32b76e8ae3b2b24f34 | b0d6b79f6fbab287507e883fd29ab922453407d0 | /utils/__init__.py | 26a39f6f1da88acb057c928a0340bb39b07f752c | [] | no_license | shivekkhurana/appuity-api | e010272746a0aedc5f633d62669dbd4d4b9f5b2a | 4067ec14edb5e00fc0d9c55f8a8dfe5824879106 | refs/heads/develop | 2021-06-21T19:18:02.156571 | 2020-03-13T13:19:59 | 2020-03-13T13:19:59 | 97,321,749 | 3 | 0 | null | 2020-05-20T16:22:35 | 2017-07-15T14:40:48 | Python | UTF-8 | Python | false | false | 82 | py | __init__.py | from .response import Response
from .openwhisk_handler import invoke as ow_invoke
|
8d7b11903dce28fc0326d6f1c2e6aac069946b7f | 4e2ac6046a9b27c300c614959dc91f611832d19c | /fetcher.py | abef7a9eced6a4fc8498a21c09eb8187a66dc29f | [] | no_license | lxtonghhh/wajueji | d8e36a91b469c30de79e94801c6f2dfd9b8afbb7 | 66c735c26e4de5bb5275ea37b063bde1a93db8b4 | refs/heads/master | 2020-07-15T23:43:41.364836 | 2019-10-09T06:36:27 | 2019-10-09T06:36:27 | 205,674,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | fetcher.py | import uuid, datetime
from mongo import MongoConn, MONGODB_CONFIG
HEADERS = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36',
'Accept': '*/*',
}
class ExitSignal(Exception):
def __init__(self):
pass
class Fetcher(obje... |
2551a3371e6366fb5ad3d72f718f09bc681d3a9b | b7843e20aec7f6f60934ce2ea3ce691d4e9046cf | /[项目二] seiya/seiya/seiya/db/job.py | da51023a84f11a3bc3ba7353689e35ee6227e111 | [] | no_license | redsnowc/challenge | a54a80012beed5ffe264cb09b01e1c8aaeef5384 | c097af045228c51290eae03428b6c6135bd0a5d2 | refs/heads/master | 2020-05-03T08:50:43.085943 | 2019-10-30T07:44:00 | 2019-10-30T07:44:00 | 178,537,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | job.py | from sqlalchemy import create_engine, Column, Integer, String, ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
engine = create_engine('mysql://root@localhost/seiya?charset=utf8')
Base = declarative_base(engine)
session = sessionmaker(engine)()
class Job(Base... |
13b22593b890a4201a8c61b815dcb5b3a87b9fa1 | 8c9243ebf5b27c051f2901303a0d65b56f0b1dbf | /geopy_graph/geolocator.py | 60a508846af56ef4a9f391e9ac71fd462b9b610b | [] | no_license | anjosanap/python-graphics | 2e8010194a065cda69bbdf10a0c5d366d447c153 | 775bfc138f117b8943d176c211ae62ec8c4861fc | refs/heads/master | 2023-06-01T07:30:12.782334 | 2020-07-21T15:01:04 | 2020-07-21T15:01:04 | 270,718,913 | 0 | 0 | null | 2023-05-22T23:33:15 | 2020-06-08T15:24:24 | Python | UTF-8 | Python | false | false | 1,896 | py | geolocator.py | import random
import os
import pycountry
import pandas as pd
import pickle
import redis
from geopy.geocoders import Nominatim
import plotly.graph_objects as go
quantidade = int(os.environ['QUANTIDADE'])
class Deus(object):
def crie_pessoas(self):
geolocator = Nominatim(user_agent='teste')
r = re... |
e0e68d8217089b00ac21d5f7c169f329a700d4a4 | 162ee84ed3a789efbbc347fc8cc2b00e8f594ec9 | /ips/modules/locator.py | 20a9e3958d3f48892d34ad1d2b27a65cf108e6a2 | [] | no_license | gaiqun4726/FMS | 8c6869d79ba9210f4f1218a24901bcd2c3e38bac | 85b4238e2036b015cc28c2b5db45ed9493805ee2 | refs/heads/master | 2021-01-19T17:20:10.226740 | 2017-03-05T15:21:31 | 2017-03-05T15:21:31 | 82,445,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | locator.py | # coding=utf-8
import threading
import math
from resources import QueueResources, DictResources
locatingMessageQueue = QueueResources.locatingMessageQueue
spectrumDict = DictResources.spectrumDict
# 定位线程类
class Locator(threading.Thread):
def __init__(self, threadName):
threading.Thread.__init__(self, nam... |
1f777b68c48359516218b659979ae10ac8ee5000 | 5f261cbea280447931f5c9ef92a4437698c4be5a | /task/migrations/0002_auto_20200328_1525.py | e4ff39fca291211fd951a5d7a1b08099852da024 | [] | no_license | Mahendhar846743/FullThrottle-_Labs_Task | 574e03e327dd0d03c299214b0ad8168bf15c99f5 | e2713c12c915e7e2963ebc2e1fe2178a96e7fff4 | refs/heads/master | 2021-05-17T12:45:08.326860 | 2020-03-29T06:47:44 | 2020-03-29T06:47:44 | 250,783,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | 0002_auto_20200328_1525.py | # Generated by Django 2.2.4 on 2020-03-28 09:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('task', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='activity_periods',
... |
d05f3f66a1cf97b091edfee6edcce088290cb83a | 9985ed05d175948ef570cd84e44e6af3bf571ce6 | /market-game/bin/market | 4b6033780e5e43e3a7497e847aaca286de3d2b6d | [] | no_license | Tsangares/market | 92af4b9e677152c6d20c6819b3a8ee360d5dc377 | 6d6bdda8e74d220cf6ca6acfd4a79d4a5614c5c4 | refs/heads/master | 2020-06-12T22:48:18.008286 | 2019-07-08T03:58:41 | 2019-07-08T03:58:41 | 194,451,532 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | market | #!/usr/bin/env python
import sys
sys.path.insert(0,'../src')
import argparse
from pymongo import MongoClient
from getpass import getpass
from Market import Market
from Business import Business
parser = argparse.ArgumentParser(description='Utility used to view the property of a market.')
parser.add_argument('name', met... | |
95d155c7131c5f65665d6f655f6e0f9c673abe61 | e6709531b315264aaf98feb5019f843b44fed8f3 | /pygsvn/cmd/tsvnlog.py | b5a8fd5f5ad8970b76639fd4499186f3c3908c07 | [] | no_license | Clarence-pan/gsvn | e122b867c6f4fb5b9ba9189a628c4608603322ef | c56670c458e36e88e259327ac61fbd77517976d7 | refs/heads/master | 2021-01-23T11:59:13.445753 | 2015-10-13T08:19:51 | 2015-10-13T08:19:51 | 26,226,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | tsvnlog.py | # -*- coding: utf-8 -*-
import subprocess
name = 'tsvn-log'
def execute(path='.'):
""" execute tortoise SVN log """
return subprocess.Popen("TortoiseProc /command:log /path:%s" % path) |
a4e7b469f628c6995000fa082251b8492cc25958 | 2e0bc5e36ef52c562d7cc61ac6b754404dc27777 | /core/trainer/online_trainer.py | 25bc2e53f6da7d9f45d1080654e0bc2bc67a8b73 | [
"MIT"
] | permissive | firehose-dataset/congrad | 4e61efff8e3c8bba3ff84f55a52f8c89d0c22cc9 | 20792f43aa89beae75454e30b82b2e1280ed3106 | refs/heads/master | 2023-01-14T08:38:09.967410 | 2020-11-19T09:36:42 | 2020-11-19T09:37:56 | 278,693,742 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,447 | py | online_trainer.py | import time
import json
import math
import os, sys
import itertools
import numpy as np
from tqdm import tqdm
import torch
import torch.nn as nn
from torch.optim import Adam
from torch.utils.data import DataLoader
from tensorboardX import SummaryWriter
from core.algos import (
AGEM,
OnlineOnly,
ReplayOnly,... |
3cbe9df7b2e29ef8280152ec602f63541317a5a6 | 297dc955b122a42feceeb5b03ceffbe5af0e8e4f | /stockui.py | ceab385f4cee0eac1e20ecf11e380e37e51d9ff0 | [] | no_license | manojnilanga/stock-filter | 6569d6fb8e540094b049f9e6ecb0e3aa85164d57 | 5435656338e76c8cc29883128b148a31d63d5475 | refs/heads/master | 2023-01-31T20:13:44.988597 | 2020-12-12T08:56:50 | 2020-12-12T08:56:50 | 320,788,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,504 | py | stockui.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
import yfinance as yf
import datetime as dt
import stockstats
from get_all_tickers im... |
7d0b895d97e29c05d4851a11d80ec105565fb30d | 36eae26dff8e3a6de7c2bd4b9042dcb4e3ef2dde | /pos/urls.py | aec2ddcb1e026553c5c774141c229cd733fe7171 | [] | no_license | ochoad24/ProyectoDjango | d20c128f7bf5e469b7fe5f2ad8b83eeaa60fa5cd | 0300d6933e7b8d657046e627b3d203036c667201 | refs/heads/master | 2020-09-03T05:33:08.810908 | 2019-11-04T14:31:29 | 2019-11-04T14:31:29 | 219,397,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | urls.py | from django.urls import path
from . import views
urlpatterns=[
path('',views.my_inicio,name='my_inicio'),
# URL CATEGORIA
path('categoria',views.categoria_list,name='categoria_list'),
path('categoria/nuevo',views.categoria_nuevo, name="categoria_nuevo"),
path('categoria/<int:pk>/editar/', views.cat... |
09901d9d694840489737d5351c4e1be5d55aa7a5 | e8c3bf09425773f75990ab1c27823be16f724497 | /data_process/data_process.py | 61e6ede41f4910f12b15f1d3bfe34d41b193669c | [] | no_license | dongzwhitsz/kaggle-code | de105ffd4349eb6aa82f33b574defa0aef2055e2 | 3ac592b390328226c42b12feebde588b231c1d48 | refs/heads/master | 2020-05-18T00:39:22.936049 | 2019-05-02T06:17:14 | 2019-05-02T06:17:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,758 | py | data_process.py | '''
Date: 2019-04-09
Version: v0.0
Note:文件的主要任务为将提取原始文件的目录信息,将对应的图片的路径和其对应product tree上的分类信息提取出来 。
'''
import sys
import tensorflow as tf
import os
import json
from utils.v_timer import timer
import numpy as np
from train import get_config
config = get_config()
DATA_ROOT_PATH = ["DATA_ROOT_PATH"]
produc... |
0ee666cc065bea16fa114687122cb73859171be4 | b96f00368b7a659da68d8c06f28919462e03a5d1 | /code/show_bounding_boxes.py | 6603e0d8b712fe37851d4a59329d0eabef609a76 | [] | no_license | bhuvi3/underwater_synthetic_image_recognition | 44333e8c6adcbb95498846ab05b6e81ebddab0f9 | 15bf156dcae084d1c0e89cefa6e9a09c8052c171 | refs/heads/master | 2020-08-14T12:04:01.122074 | 2020-04-06T23:37:03 | 2020-04-06T23:37:03 | 215,165,713 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | show_bounding_boxes.py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 2 10:14:00 2019
@author: mitchell
"""
from collections import defaultdict
import cv2
import glob
import matplotlib.pyplot as plt
import os
import sys
try:
images_labels_dir_name = sys.argv[1]
except:
print("Provide the path to directory ... |
bb99fbca7dda9da7ee923e388f5e8e6aa49caef8 | a93bcfdd1b9f171ce0535985228a95ac6dc6edd6 | /hoge.py | 7c851872677509acc7eb2f8bc67d57a581f8bf06 | [] | no_license | anntoque/nose_bigquery | 1fa81fd7fe55e26b59eb10a683c1eb72a530ad13 | 3272c5c674c0a96589e25eb00438c0c3ecc5ee05 | refs/heads/master | 2020-04-08T16:21:35.381122 | 2018-12-03T17:26:04 | 2018-12-03T17:26:04 | 159,515,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | hoge.py | def sum(a, b):
return a+b
def is_even(n):
return (n % 2 == 0)
#result = sum(2,3)
#print(result)
#result_is_even = is_even(2)
#print(result_is_even) |
ecaa1d46b2bfce3044082eca96e0b2f7809cd089 | 8e61ed8100550938f6c49d180f0d826cdbd37b54 | /project/static link/runserver.py | 78ff5e775d7638661b5120358d452d4af8d8db3d | [] | no_license | LizaVasina/HackathonAstral19 | 97f5706be3d257fb302a69d394058143ba9c64e3 | 4ba979c7f0e2e68346a80641beda8f535e7c160b | refs/heads/master | 2021-06-25T07:55:42.676605 | 2021-05-29T17:43:25 | 2021-05-29T17:43:25 | 224,699,282 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | runserver.py | from http.server import HTTPServer, CGIHTTPRequestHandler
server_address = ("", 8010)
httpd = HTTPServer(server_address, CGIHTTPRequestHandler)
httpd.serve_forever() |
1afbdcc2318b8ac3a65fefab864ea08a48af3c85 | c033b4bc0b80938192712a336a941f921b056106 | /PythonK/DataScience/Chapter3/barChart.py | 6e837521f107fba0c05bb55046f7f53753efd0a1 | [] | no_license | BigBrou/Laboratory | 4e9a92cbccf2379c8fedb5abbb5dc896a477d018 | 2ec4ece91bf7d5774d7028c3ea620a36b279bfbb | refs/heads/master | 2020-03-24T16:48:25.017498 | 2018-12-27T09:04:13 | 2018-12-27T09:04:34 | 142,837,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | barChart.py | from matplotlib import pyplot as plt
movies = ["Annie Hall", "Ben_hur", "Casablanca", "Gandhi", "West Side Story"]
num_oscars = [5, 11, 3, 8, 10]
# 막대기가 기본 값이 0.8
xs = [i + 0.1 for i, _ in enumerate(movies)]
# 왼쪽 x 축 위치
plt.bar(xs, num_oscars)
plt.ylabel("# of Academy Awards")
plt.title("My Favorite Movies")
plt.x... |
d79b421e6b73b0988a82ab8d774e32967e444c1f | fd4a8d6fd363626ed267eba4f42d6105c20a9e36 | /FITBO_GPy_FITBOMM_only/cifar_hyperTuning_complex.py | 90e52d291078bc8bb2c0a691aa04a0cc0676a2a1 | [] | no_license | jamjs98764/Parallel-Bayesian-Optimisation | e1c4adc4e090a4f708f225091c7b412356ebf333 | 0931deb2b6e45040c3615275d5aedb9107765620 | refs/heads/master | 2023-07-19T20:05:05.058941 | 2019-06-02T21:44:10 | 2019-06-02T21:44:10 | 153,646,951 | 1 | 0 | null | 2023-07-06T21:20:11 | 2018-10-18T15:31:27 | Jupyter Notebook | UTF-8 | Python | false | false | 7,122 | py | cifar_hyperTuning_complex.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 27 15:36:29 2019
@author: jian
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 27 15:06:52 2019
@author: jian
"""
'''
#Train a simple deep CNN on the CIFAR10 small images dataset.
It gets to 75% validation accuracy in 2... |
b18a4e0eb075fccb59dbb10235f30ff90623f6ad | d8b010c1392598e5ce13438bc481ab76e49a0bcd | /seqtools/format/bed.py | 0943663373248c3d894f2f0398227572a2cbb1c8 | [
"Apache-2.0"
] | permissive | jason-weirather/py-seq-tools | e16075cb560ba6d46c23c4302ad2c74feb9ce02b | f642c2c73ffef2acc83656a78059a476fc734ca1 | refs/heads/master | 2021-01-20T03:35:33.960719 | 2017-11-05T16:01:42 | 2017-11-05T16:01:42 | 79,467,355 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | bed.py | import sys, uuid
from collections import namedtuple
import seqtools.structure.transcript
from seqtools.range import GenomicRange
Bed12Options = namedtuple('Bed12Options',
['sequence',
'ref',
'gene_name',
'payload'])
Bed12Fields = namedtuple('Bed12Fields',
[
'chrom',
'chromStart',
'chromE... |
86c48161bfef0e807af18a525dc6919b51088391 | 7b1eff2a845fe23c709f1c354297334806da41a4 | /aos_sw_api/snmp_server/_snmp_server.py | 7269502575539d5847f2d8106e33eb60c6500ca8 | [
"MIT"
] | permissive | KennethSoelberg/AOS-SW-API | 4dc348e1e307da5e1bdba2e77ed8e92aa8e75d4b | a5a2c54917bbb69fab044bf0b313bcf795642d30 | refs/heads/master | 2022-11-20T12:44:40.655604 | 2020-07-17T12:29:08 | 2020-07-17T12:29:08 | 276,832,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,589 | py | _snmp_server.py | from typing import Union
import httpx
from aos_sw_api.validate import validate_200
from ._model import SnmpServerModel, SnmpServerCommunityList, SnmpServerHostList, SnmpServerTraps
class SnmpServer:
def __new__(cls, session: Union[httpx.Client, httpx.AsyncClient], **kwargs):
if isinstance(session, http... |
96135c7d4d210515dd39ef96cc13862752abe3b8 | 6e4e4fac1ae4fdccdf5ed88032bb8d91b1760b0a | /polls/admin.py | 875a33d6b2528ba9677cbd201db996525b710017 | [] | no_license | KshamaAgrawal/django_project | 22b1281173852256b5346357c68f13a45fcf4ecf | 3b4d47dfc6096a5f597ddd474cee410f998076c1 | refs/heads/master | 2023-08-17T14:16:51.751344 | 2020-07-23T06:15:05 | 2020-07-23T06:15:05 | 281,360,404 | 0 | 0 | null | 2021-09-22T19:28:34 | 2020-07-21T09:57:08 | Python | UTF-8 | Python | false | false | 581 | py | admin.py | from django.contrib import admin
from .models import Question , Choice
# Register your models here.
class ChoiceInline(admin.TabularInline):
model=Choice
extra = 4
class QuestionAdmin(admin.ModelAdmin):
fieldsets=[
(None, {'fields': ['question_text']}),
('date_information', {'field... |
0c54ec981024856b2eed43a3b03a90531fe948f1 | 1040d96e3c5d756951402b9e0c392db897d7efc4 | /main.py | b31ccf84a01686a08de98e525404233e05b7e15c | [] | no_license | Ayush0406/CollaborativeFiltering | b916f6e98efc38d72711a1a06526af6cadbcf286 | a0bb4161549e9678732ee8a3e81b302022c2a820 | refs/heads/master | 2020-09-10T16:35:46.832260 | 2019-11-14T18:20:51 | 2019-11-14T18:20:51 | 221,762,187 | 1 | 0 | null | 2019-11-14T18:30:22 | 2019-11-14T18:30:22 | null | UTF-8 | Python | false | false | 1,220 | py | main.py | import os
import pandas as pd
def get_dataset_directory():
curr_dir = os.getcwd() # gets the current working directory
dataset_dir = os.path.join(curr_dir, "dataset") # concatenates
return dataset_dir
def initialise():
dataset_directory = get_dataset_directory()
dataset = os.path.join(dataset_... |
c851834375cee7bacee40084d66c9d3f00f10746 | ad14bbe75a1ffa2118fa4c5310a39254c8449de3 | /robosuite/devices/keyboard.py | 47fba271161ad71de09269e50156959978ab91f2 | [
"MIT"
] | permissive | StanfordVL/Lasersuite | 4b61fd8f0dac27063854810cdd4b23df5a6461b4 | 8b78c3d202f2a4b8712c5f228feaf5fae61f16e9 | refs/heads/master | 2023-02-14T15:21:44.600897 | 2020-07-18T04:39:50 | 2020-07-18T04:39:50 | 280,580,330 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,763 | py | keyboard.py | """
Driver class for Keyboard controller.
"""
import glfw
import numpy as np
from . import Device
from ..utils.transform_utils import rotation_matrix
class Keyboard(Device):
"""A minimalistic driver class for a Keyboard."""
def __init__(self,
pos_sensitivity=1.0,
rot_sensit... |
4e63586a097ffb8e50293c8558bb632a260cad37 | 7f8903246c6ebefc526995fce614391f79c772b9 | /Angle_from sections.py | 8e95303bf2b3cf86e995ac6ba284042dfc4f129d | [] | no_license | zaarcvon/GPlates_video | 98bf6958bd9a2e1c0a8027de34c6f19c6d3186ff | 016403e1285dff655d00bb51cdd2947549e9e249 | refs/heads/master | 2021-05-05T08:01:48.369070 | 2020-09-30T12:43:39 | 2020-09-30T12:43:39 | 118,907,976 | 0 | 0 | null | 2018-01-25T13:27:37 | 2018-01-25T12:05:54 | Python | UTF-8 | Python | false | false | 8,840 | py | Angle_from sections.py |
# coding: utf-8
# In[19]:
##Некоторые полезные функции для работы с углами в косых сечениях
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import os
# import mplstereonet
def true_dip_from_two_app_dips(az_1,dip_1,az_2,dip_2): ##Вычисление угла падения по двум косым ... |
d573aaa3fa4cdd2d1f0fa8567505dca0470abd1b | 292c8f912492e97ecb852437bba4e7294833f514 | /Model/untitled0.py | 87406c94be9637befbc09e7cca68d20ab6a31103 | [] | no_license | CornuA1/lntmodel_final | e47971ce3d36bd6ef8a0b1f125c706663752c307 | 1dd732ae86c1f8680fbf0f6d8e1c0ec3a7fd22cb | refs/heads/main | 2023-07-11T13:23:09.607029 | 2021-08-13T16:15:00 | 2021-08-13T16:15:00 | 395,445,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | untitled0.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 21 13:36:14 2021
@author: lukasfischer
"""
import csv, os, yaml
import numpy as np
import scipy as sp
from scipy.io import loadmat
import matplotlib.pyplot as plt
plt.rcParams['svg.fonttype'] = 'none'
import seaborn as sns
sns.set_style("white")
#... |
da2ed18190af3dbdaec20956e526cb3d7bf4aa17 | dbc07a956bd41b34776adeac1cac0ec46d3f7aaa | /messages_ui/tests.py | 567f2cf943e4ff9744130b84b8031d58ab1fa17e | [
"MIT"
] | permissive | sauramirez/jquery-django-messages-ui | 2ec08fff4efee908a3afafda124d4c1b2bbf1be1 | 1f7ca636185c2b7f5b8fb35cc4e5ec69480b655f | refs/heads/master | 2023-05-20T03:16:00.934700 | 2021-06-02T00:52:24 | 2021-06-02T02:15:32 | 372,996,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | tests.py | # TODO: Add Python tests.
|
5e7cfd1476c2b9c916ec3bcc4b51998238c72317 | c040bed959c8f14bea9bab7ddbc2787f3df2d89a | /Python/samples3/types/6lists1/1.6.3.py | 3802db5ef1ee2c157efe54309af42bba7dff8c70 | [] | no_license | MrRuban/lectures_devops2 | 86694ba50567ce911ec8357b308b9f0c4cf9bfe7 | 7a626afe415ed6f7bcb71d97ff2d925c5c1813d7 | refs/heads/main | 2023-07-14T23:53:13.927356 | 2021-08-30T21:30:45 | 2021-08-30T21:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | 1.6.3.py | #!/usr/bin/python3
"""
Добавление элементов
"""
scores = ["1", "2", "3"]
# add a score
score = int(input("What score did you get?: "))
scores.append(score)
# list high-score table
for score in scores:
print(score)
|
bc04e342efe235a95a0d2a13cef7dcd2d2baf118 | 55647258df0565f19179ffb97ac217708d84ba4a | /api/views/decorators/__init__.py | 19ac3e496da621e886ca17fbd53ec91d45487944 | [] | no_license | beatonma/snommoc | 25de0e81af0d9940bdc3aa6420cb5764d50c6d11 | 0a9d37dcad112c5dd98609c1566e74176ae3d89d | refs/heads/main | 2022-03-11T07:53:33.038649 | 2022-03-05T17:03:56 | 2022-03-05T17:03:56 | 188,595,195 | 0 | 0 | null | 2022-02-18T17:54:30 | 2019-05-25T17:35:58 | Python | UTF-8 | Python | false | false | 47 | py | __init__.py | from .api_key_required import api_key_required
|
83a3d51ec52e34a86f984a63c8904c1bb0d970f8 | aa94e70b61d58c3d826d7b277bff7b39078a2e0e | /dm.py | 02e95e147df86bdce83f252cb4f3b318d0863ed0 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0",
"BSD-3-Clause"
] | permissive | JoshuaSkootsky/carrot | 5a51ae2ff52a7886cd11b2cd10a4cc6f97af2a61 | 8f604dfb13cdf47a0cebe429c9dc263da04b9d9c | refs/heads/master | 2016-09-10T00:32:45.285191 | 2015-04-12T05:43:45 | 2015-04-12T05:43:45 | 33,803,941 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | dm.py | # coding: utf-8
"""
rayryeng wrote this
Joshua Skootsky made some changes
Here is his Stack Overflow Profile:
http://stackoverflow.com/users/3250829/rayryeng
a great man
It's from stackoverflow
http://stackoverflow.com/questions/20259025/module-object-has-no-attribute-drawmatches-opencv-pyth... |
499c5c1bd9e1a791b0546b8dc6ed8a8f367f6713 | b1c646ad521d09409ce0211e6ca80ae678334617 | /d_spider/课件/project/project/fengxiong/fengxiong/pipelines.py | bc6be4f05dca3fcf5f72ae523773f33593ac2c8c | [] | no_license | bing0109/learning2019 | 4f77b7351d7e3c0f28fa759915121ea87002d6cd | cd8fe6649975bdc347381f953639ec93679c151c | refs/heads/master | 2020-04-16T10:30:59.401341 | 2019-03-06T06:40:14 | 2019-03-06T06:40:14 | 165,506,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | pipelines.py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import DropItem
from pymongo import MongoClient
class TextPipeline(object):
'''
处理文本
对item... |
04cd4baffe905fe00bb06b232b56bada38d63f47 | ea2b76acd29e14d2ef23f213ba0c98f4491d00d0 | /check_files/reify_batch_anomaly_score_dataset.py | bc476ff011a225cdc4a83e68472520e7ca847d6c | [
"Apache-2.0"
] | permissive | RuiSUN1124/bigmler | 4b168ff2917eb72ae7c47079dcb33a68574c46f1 | 63aadae76785eabca9081cecdfd8a1420fdf4679 | refs/heads/master | 2021-05-01T16:06:23.929721 | 2018-02-07T00:39:03 | 2018-02-07T00:39:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | reify_batch_anomaly_score_dataset.py | from bigml.api import BigML
api = BigML()
source1 = api.create_source("iris.csv")
api.ok(source1)
dataset1 = api.create_dataset(source1, \
{'name': u'iris'})
api.ok(dataset1)
anomaly1 = api.create_anomaly(dataset1, \
{'anomaly_seed': u'2c249dda00fbf54ab4cdd850532a584f286af5b6', 'name': u'iris'})
api.ok(anoma... |
369f560c7a9ad095c96a1961a4ed6d8fc82ed8c0 | 63b800d173b837e4b08afd755f38e673f8676335 | /securepaid/migrations/0001_initial.py | 9bbab67c8f5cc523a46d60660d67fbc652f543e5 | [] | no_license | nihaopay/NihaoPay_demo_Python | 9aab308cfe7dae941679ded121027d14ee6d8859 | ad16c90ddcab493e33e90c27ee4f078be9ed6911 | refs/heads/master | 2021-05-07T19:38:31.761302 | 2017-10-30T18:29:20 | 2017-10-30T18:29:20 | 108,891,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | 0001_initial.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-30 17:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SECURE... |
5c8d510f6c7cc4080510ef0b0d39724785a36713 | 934aed6102ea9666b816c5ff393eb780973d808f | /python_grammar/进程线程/2.进程/XtProcess.py | b769ba30bf5e669ba815a1a77fbf6056899a37d4 | [] | no_license | CXuTao/Python_source | 7418c1caf2ccb2eed45a80c7d4427ff94c7a87dd | 9527860969a3029e0f3104eca479fa1291a2417a | refs/heads/master | 2020-08-03T02:21:59.093765 | 2019-09-29T03:08:38 | 2019-09-29T03:08:38 | 211,594,036 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | XtProcess.py | from multiprocessing import Process
import os, time
class XtProcess(Process):
def __init__(self, name):
Process.__init__(self)
self.name = name
def run(self):
print("子进程(%s-%s)启动" % (self.name, os.getpid()))
#子进程功能
time.sleep(3)
print("子进程(%s-%s)结束" % ... |
7d01beac82aeffb12924cf58cd5294be0e37e47a | 2f295982f76f914bdbe475e80e403f3662e5c8f5 | /clube_stat/db/tables.py | bfc2a31d132d4aac05f1b0c6232edf90fcedb3fc | [] | no_license | zaswed76/clube_stat_2 | 8879ea117c447d38007cbf7fb7fbf91c5ff1dc9d | 291c904538b65cb84eda014240ed8d6b76ccf931 | refs/heads/master | 2021-05-06T13:52:33.531053 | 2018-02-18T22:30:28 | 2018-02-18T22:30:28 | 113,288,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | tables.py | import yaml
import collections
CREATE_TABLE_QUERIES = "CREATE TABLE IF NOT EXISTS"
def get_data(path):
with open(path, "r") as obj:
return yaml.load(obj)
class Table:
def __init__(self, name: str, table: dict, queries: str,
sql_line: str):
"""
:param name: имя базы д... |
4cd568957c0723f11479abdd9ba9c7f1bccaf830 | 6207c0c2824947bdec2ba1e9c37dde379bcbfd5a | /venv/Lib/site-packages/pydicom/tests/test_json.py | 6164732d6c168465a43606b68dc5c6304c17fb7b | [] | no_license | xmr1996/Vertebrae-cutting-from-spine | 50817607003c2ef096d2c5a80ea1ca210441936d | 763d124cb3ca21b8adc2fda3222e95a92198bb9b | refs/heads/master | 2021-05-18T08:02:10.749863 | 2020-05-19T20:44:17 | 2020-05-19T20:44:17 | 251,188,794 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,869 | py | test_json.py | # -*- coding: utf-8 -*-
# Copyright 2008-2019 pydicom authors. See LICENSE file for details.
import json
import pytest
from pydicom import dcmread, compat
from pydicom.data import get_testdata_file
from pydicom.dataelem import DataElement
from pydicom.dataset import Dataset
from pydicom.tag import Tag, BaseTag
from p... |
f8de0a40d97fb8568c1f2effb18d2474b32c1f0a | 3316f61a71292ed53e5cbea845303083fa977746 | /script/orientation.py | 8869981651c8138ae42a4121eeeaae710228c72d | [] | no_license | mhsung/TheiaSfM | 63412f281124ac963d05f0e4f9db75efd93d8587 | 18289c688fbaed683dd02fd2d10dea191f1fddcd | refs/heads/master | 2021-01-19T01:04:01.145971 | 2016-12-28T23:50:32 | 2016-12-28T23:50:32 | 61,900,570 | 0 | 0 | null | 2016-06-24T17:20:28 | 2016-06-24T17:20:27 | null | UTF-8 | Python | false | false | 1,949 | py | orientation.py | #!/usr/bin/env python
# Author: Minhyuk Sung (mhsung@cs.stanford.edu)
import run_cmd
import os
import shutil
def clean_ground_truth_camera_param(FLAGS, PATHS):
if os.path.exists(PATHS.ground_truth_camera_param_path):
shutil.rmtree(PATHS.ground_truth_camera_param_path)
print("Removed '" + PATHS.gr... |
a43024363e143a6e4f3aea7257687b32e9f0d0aa | bc0ceb00cb27ce98701410d5d153008b504bd061 | /Code/tr_globals.py | 53e18b9b9c770ca420653e1b0c2f9d1a50832e9e | [] | no_license | thecapitalistcycle/translation-embeddings | d32ce8f4813296f61b6a1f52c545c00cf229918d | 4cb75e57238e9780d62c3640bbb0ea2d870b7ac7 | refs/heads/master | 2020-04-13T11:03:42.164749 | 2018-10-26T02:15:25 | 2018-10-26T02:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | tr_globals.py | import os
def getFileInfo(cur_path):
cur_filename = cur_path.split(os.sep)[-1]
file_parts = cur_filename.split(".")
file_prefix = file_parts[0]
ch_num = int(file_prefix.replace("ch","").replace("_clean",""))
file_lang = file_parts[1]
return cur_filename, file_prefix, file_lang, ch_num |
e363d95b0ac063ebb467eee2c52a8345f967fde2 | 4e5de397a7bac9e777074daaadb890f4315752a2 | /athenaCL/libATH/libTM/TimeFill.py | 69a3dc09fa74b8732e2bcedcf1c58c35000ea318 | [] | no_license | ericahub/athenacl | 60c5757e11f65f65eeb26c40125dac0e1636d86b | 96ac2a6859dedf08e8a9aebbed4ef348a66ac707 | refs/heads/master | 2021-01-10T12:38:04.869889 | 2011-12-17T20:49:19 | 2011-12-17T20:49:19 | 44,901,312 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,239 | py | TimeFill.py | #-----------------------------------------------------------------||||||||||||--
# Name: TimeFill.py
# Purpose: Texture to fill time range with a generator
#
# Authors: Christopher Ariza
#
# Copyright: (c) 2006-2010 Christopher Ariza
# License: GPL
#---------------------------------------... |
8abda2af7d4e054e505ee314edb1b5a39e4a9096 | f2712908fdd894f2879129763be7861f7d518118 | /dsa/constants.py | 71ada240fa658e95068edc9f6bdabf1f7fbe980d | [] | no_license | hp0404/dsa | b7b36ac744b1f4ef2a227d4f57226617286973f0 | d9283d8d178c93686f728c9ce221769e699a1d34 | refs/heads/master | 2023-06-15T03:23:37.049996 | 2021-07-08T17:46:48 | 2021-07-08T17:46:48 | 380,351,869 | 0 | 0 | null | 2021-07-08T17:46:48 | 2021-06-25T20:55:03 | Python | UTF-8 | Python | false | false | 1,993 | py | constants.py | # -*- coding: utf-8 -*-
class DsaConstants:
"""Lookup values retrieved from html comment tags."""
MAPPINGS = {
"DOCTYPE": {
"1": "вирок",
"2": "рішення",
"3": "постанова",
"4": "ухвала суду",
"5": "судовий наказ",
"6": "окрема ухвал... |
beff7f388548399f66ff9f47d420d68a383929cc | 21c3259c8f133e5781b6c0702edc978aeb54d16f | /pandas/8_pivot_DataFrame.py | ef5527ca3509650a3cf3cb9b52b1ec1722701e77 | [] | no_license | yatish0492/PythonTutorial | 2e3a5c7f5c914549487f88acbffefff78b8e910e | c99855beb30c20b57095ac9fb42998dfa9e9b828 | refs/heads/master | 2022-11-21T02:49:58.310680 | 2020-07-19T19:54:48 | 2020-07-19T19:54:48 | 280,911,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | 8_pivot_DataFrame.py | '''
https://www.youtube.com/watch?v=xPPs59pn6qU&list=PLeo1K3hjS3uuASpe-1LjfG5f14Bnozjwy&index=10
''' |
40fd93721f4b8b11871e359fca8265632e5db8b8 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/terraform/checks/resource/oci/IAMPasswordPolicyLowerCase.py | 13414e371008a676a8dd6c704645ded8dbb40f25 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 758 | py | IAMPasswordPolicyLowerCase.py | from checkov.common.models.enums import CheckCategories
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
class IAMPasswordPolicyLowerCase(BaseResourceValueCheck):
def __init__(self):
name = "OCI IAM password policy - must contain lower case"
id = "CKV_... |
ee84e0c939398cc39aabe7c7eb8fde1f338782ae | f7e96a91387ece4c65f2220e2d8faf6d4dde7b6f | /Dataset.py | 47229c9e6d8d0a102f74e4c14f584fed9e73f9a3 | [] | no_license | AGithubRepository/PartMobility | f2f5484e22a66d68a48fca3b7524eabf1fa17d09 | 29d15be50138f419846e6b9a0864d1b9d9174223 | refs/heads/master | 2022-12-11T16:55:59.386127 | 2020-08-29T14:00:16 | 2020-08-29T14:00:16 | 285,261,474 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,736 | py | Dataset.py | import numpy as np
import scipy.io as sio
import os
import copy
class Dataset():
def __init__(self,filepath,npoint=2048,add_noise=False,noise_scale=0.02,rotate=False):
self.__filepath = filepath
self.__npoint = npoint
self.__add_noise = add_noise
self.__noise_scale = noise_... |
0dcc74597bc791cb956a048a394e5383611e10ae | 223590e81400eb8192aeb0a56b36b5a80408d4b4 | /Keyboard Row.py | afb3b7c764b67f754ad88ac831a02ce717473b24 | [] | no_license | TianyaoHua/LeetCodeSolutions | c47fd3b6ae0bf60c0656ce12fb88290672c129ed | 418172cee1bf48bb2aed3b84fe8b4defd9ef4fdf | refs/heads/master | 2020-03-06T19:48:13.338630 | 2018-08-10T18:27:52 | 2018-08-10T18:27:52 | 127,037,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | Keyboard Row.py | class Solution(object):
def findWords(self, words):
"""
:type words: List[str]
:rtype: List[str]
"""
set1 = {'q','w','e','r','t','y','u','i','o','p','Q','W','E','R','T','Y','U','I','O','P'}
set2 = {'a','s','d','f','g','h','j','k','l','A','S','D','F','G','H','J','K','L... |
924c0af2e00103925d04889dbcd16ebbb113cbf1 | b8126dfd5a186c398f7dee6a641be465b01c540d | /py/Code/main_script.py | 22571f307f483e85333cfdca0dbb0a9746288347 | [] | no_license | GDGVIT/Code-Reviewer | f1ccdd62a6ed307ecb23ea32a815a0b0e2c304d4 | 9479f3a11ef8892f6ae410618bab428a54e1befc | refs/heads/master | 2022-12-28T01:27:39.264135 | 2020-10-08T08:02:16 | 2020-10-08T08:02:16 | 197,820,906 | 4 | 2 | null | 2020-10-08T08:02:17 | 2019-07-19T18:05:42 | Rust | UTF-8 | Python | false | false | 2,823 | py | main_script.py | from review_tool import Ui_MainWindow
from benchmark_win import Ui_message_box
from PyQt5 import QtGui,QtWidgets,QtCore
import sys
import platform
import os
import hashlib
class main_window(QtWidgets.QMainWindow,Ui_MainWindow):
def __init__(self,parent=None):
super(main_window,self).__init__(parent)
... |
90937ee23f42169cd3b7e37b87f2b815fb8cef4c | a57a14475cc9fe3277c8feaccae87f9c0f85462d | /Assignment 1 - ChatterBot/Etai.py | 0ee96c048c616e244252226cbd568c9fab14f18f | [] | no_license | dc8291/Sp17-CSE415-AI | fd9ed155434843f03fabc9da5a77cdec84a180c4 | e9c2f265060a2141344a30acc2c1dc0cefffa806 | refs/heads/master | 2021-01-03T17:25:48.690068 | 2020-02-13T03:31:28 | 2020-02-13T03:31:28 | 240,168,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,638 | py | Etai.py | # Shrink3.py
# A conversational "doctor" simulation modelled loosely
# after J. Weizenbaum's ELIZA.
# This Python program goes with the book "The Elements of Artificial
# Intelligence".
# This version of the program runs under Python 3.x.
# Steven Tanimoto
# (C) 2012.
from re import * # Loads the regular ... |
8365149b3049a8417b0b3d4da9c0614e25b3a288 | 991c8c1c385c20aa224d0004e4bbfcb6d45f7a31 | /scrapers/design_boom_scraper.py | 1d9e9f0911fd5630b3e45ff915059c0436ba0024 | [] | no_license | joeboylson/design-milk-articles | 42a2f025508c8d5fa64d0e2ff74b28a49d1ad463 | 6cc93f8bba6cb769dc031f00e7a0967c007dca4a | refs/heads/master | 2023-07-14T00:01:29.152076 | 2021-08-30T14:46:11 | 2021-08-30T14:46:11 | 343,899,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | design_boom_scraper.py | import json
import xmltodict
import requests
import re
from tqdm import tqdm
from datetime import datetime
from datetime import date
from dateutil.parser import parse
from dateutil.relativedelta import relativedelta
from .utils import save_json, slugify, get_soup
from .utils import TODAY, SIX_MONTHS_AGO
# =========... |
39eff30466494d1df6b4a90cbedee0e826d52a34 | e5e852baadf51c321366f87e93f4be6789c0a127 | /code/chap11文件和异常/11.3练习题/练习2.py | 3303f1778d440dd515c0c3d97e24ec35ca12029e | [] | no_license | chariotrequiem/python-learning | 12065509d0d12c4bd1306c4ffe69eeb2f2b1f5c8 | a2748545aaa6f6f1fc304523a9ec84d290d0a15b | refs/heads/master | 2023-07-05T04:36:05.895755 | 2021-09-01T08:34:25 | 2021-09-01T08:34:25 | 398,494,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | 练习2.py | # 当前版本 : python3.8.2
# 开发时间 : 2021/8/26 19:49
# 常见单词
"""
访问项目Gutenberg(http://gutenberg.org/ ),并找一些你想分析的图书。
下载这些作品的文本文件或将浏览器中的原始文本复制到文本文件中。
你可以使用方法count()来确定特定的单词或短语在字符串中出现了多少次。
请注意,通过使用lower()将字符串转换为小写,可捕捉要查找的单词出现的所有次数,而不管其大小写格式如何。
编写一个程序,它读取你在项目Gutenberg中获取的文件,并计算单词'the'在每个文件中分别出现了多少次
"""
def count_words(file_name... |
e1583507c6d434357ed2e97ddda9c04937445d82 | aca12cd344bf07baa4c59b7351e2b4a9d9ae4f89 | /scrape-api.py | 50c2f2947faf913dd918fdcc572b2654ae4eba82 | [
"MIT"
] | permissive | starry97/Data-Rockstar | ca6ea27d5e7f9e2a4693ef99dda2eb73103d9bd0 | fe447ec78971473da57c3e2bf0fa41a599720838 | refs/heads/master | 2020-03-23T22:56:55.534984 | 2018-07-24T23:54:13 | 2018-07-25T17:02:39 | 142,208,065 | 0 | 0 | null | 2018-07-24T23:51:46 | 2018-07-24T20:12:47 | null | UTF-8 | Python | false | false | 775 | py | scrape-api.py | import requests
import base64
import json
import sys
if len(sys.argv) < 2:
print("no song id specified!")
sys.exit()
with open("credentials.json", "r") as f:
creds = json.load(f)
# get an access token
auth = requests.auth.HTTPBasicAuth(creds["id"], creds["secret"])
payload = {"grant_type": "client_credentials"}
t... |