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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ed9756d26bc42e54fc782b2e0956c81dd48afb0 | a301e6dd6b215780bbd010ee2276aa58c35e8269 | /app.py | 277ea8f536f6fb3dc8e5bfa2bee83a0ae0c5e097 | [] | no_license | MadelineColeman/Amazon-Price-Checker | 3ab41207077a0e4a3e27c4e520eb8c51996fbd2c | 0b8048c055f6407012cb8926186c99cdcf36cfe1 | refs/heads/main | 2023-01-01T18:04:43.277248 | 2020-10-01T20:08:58 | 2020-10-01T20:08:58 | 300,407,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | #%% Import Packages
from bs4 import BeautifulSoup
from urllib.request import Request, urlopen
import smtplib
import time
#%% Declare Varibles
headers = {'User-Agent':'Mozilla/5.0'}
#%%Get Price from Amazon
def getPrice():
url = input("Enter the Amazon Link: ")
email = input("Please enter email to recieve ... | [
"colemanm191@gmail.com"
] | colemanm191@gmail.com |
e8e9487b576b340ae318034c411fb9faf9beddf3 | 0dcf78e319956f2cb2327c5cb47bd6d65e59a51b | /Python3/LinkedList/MergeKSortedLists/Heap023.py | 7010c6ca41757921ac2b6dda3a6dcb0459150e36 | [] | no_license | daviddwlee84/LeetCode | 70edd09a64a6f61492aa06d927e1ec3ab6a8fbc6 | da1774fd07b7326e66d9478b3d2619e0499ac2b7 | refs/heads/master | 2023-05-11T03:16:32.568625 | 2023-05-08T05:11:57 | 2023-05-09T05:11:57 | 134,676,851 | 14 | 4 | null | 2018-05-29T14:50:22 | 2018-05-24T07:18:31 | Python | UTF-8 | Python | false | false | 1,810 | py | from typing import List, Optional, Callable
from ..ListNodeModule import ListNode
import heapq
class HeapWrapper(object):
def __init__(self, initial: List[Optional[ListNode]] = [], key: Callable[[Optional[ListNode]], int] = lambda x: x.val) -> None:
self.key = key
self._data = [(self.key(item), i,... | [
"daweilee@microsoft.com"
] | daweilee@microsoft.com |
a28380fa7c747fd2980e91a59c59853a625e2940 | 3cf1535bd23bfbfe078464eb6ba9043e30b2d67d | /RLBotPack/Skybot/bot_functions.py | 39e65467fbe9a1ecf5442a3283ad0c06a4459d71 | [
"MIT"
] | permissive | RLBot/RLBotPack | 11bab3be9dea24521853a5ba3f0ba5716c9922d2 | d4756871449a6e587186e4f5d8830fc73a85c33a | refs/heads/master | 2023-07-09T08:37:05.350458 | 2023-05-17T21:51:07 | 2023-05-17T21:51:07 | 188,609,141 | 27 | 132 | MIT | 2023-09-12T00:02:43 | 2019-05-25T20:24:44 | Python | UTF-8 | Python | false | false | 10,014 | py | import math
def ball_path_predict(data_loc_speed): # [self.game_time, self.ball_lt_z, self.ball_lt_speed_z]
start_on=0
#print(data_loc_speed)
loc_x=data_loc_speed[1][0][start_on]
loc_y=data_loc_speed[1][1][start_on]
loc_z=data_loc_speed[1][2][start_on]
speed_x=data_loc_speed[2][0][start... | [
"noreply@github.com"
] | RLBot.noreply@github.com |
83ebf96ed9d709453f2542d0921655ff7857ce40 | caf135d264c4c1fdd320b42bf0d019e350938b2d | /04_Algorithms/Leetcode/L24_Swap Nodes in Pairs.py | eba7c0bc0a8f2006110eb82a2b8a1604aa56fe07 | [] | no_license | coolxv/DL-Prep | 4243c51103bdc38972b8a7cbe3db4efa93851342 | 3e6565527ee8479e178852fffc4ccd0e44166e48 | refs/heads/master | 2022-12-31T22:42:20.806208 | 2020-10-23T10:19:19 | 2020-10-23T10:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def swapPairs(self, head: ListNode) -> ListNode:
if not head or not head.next:
return head
else:
first = head
sec... | [
"1574572981@qq.com"
] | 1574572981@qq.com |
f851895535c8f43ebe64751ebaf22d82378cf452 | 1e0b77feea4aa08f2aa9ff63feddbc818428a350 | /script/dedecms/dedecms_win_find_manage.py | 77efcee0ec9487364ba143234992930c3a5232e7 | [] | no_license | cleanmgr112/Tentacle | 838b915430166429da3fe4ed290bef85d793fae4 | 175e143fc08d1a6884a126b7da019ef126e116fa | refs/heads/master | 2022-12-08T06:36:28.706843 | 2020-08-26T14:06:35 | 2020-08-26T14:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,769 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author: 'orleven'
import itertools
from lib.utils.connect import ClientSession
from lib.core.enums import VUL_LEVEL
from lib.core.enums import VUL_TYPE
from lib.core.enums import SERVICE_PORT_MAP
from script import Script
class POC(Script):
def __init__(self, targe... | [
"546577246@qq.com"
] | 546577246@qq.com |
db5c540680482b042de2c5eec273df36b97e0aa9 | e0441dd7ce7555a0a36e8f6e306a639e7e2be108 | /py/字符.py | d8129cd6df186a6e73de71dd2c6bc684e2ffbb4f | [] | no_license | knzh/Python | 7e6da74e1e1264de0ab342dfaf54f872d0c90f68 | d527a045c23f3d37ad65596977e615161f2bda6e | refs/heads/master | 2020-05-24T07:17:31.366363 | 2019-12-23T02:36:02 | 2019-12-23T02:36:02 | 187,153,061 | 0 | 0 | null | 2019-05-17T06:10:55 | 2019-05-17T05:38:19 | null | UTF-8 | Python | false | false | 290 | py | message="侃大山计量付款"
print(message)
message_1="abc"
message_2="Abc"
message_3="abc "
message_5=" abc "
print(message_1.title())
print(message_1.upper())
print(message_2.upper())
print(message_2.lower())
print(message_3.rstrip())
print(message_5.lstrip())
print(message_5.strip()) | [
"jykainan@163.com"
] | jykainan@163.com |
ae771cde651399504bba751485f82bbb7e7a73bb | 4628a6c1f54773f87b39146ac989d084234cee62 | /Code Reader/ObjSenseImage.py | 6f0e5df4ea023b88a4e21e936ce53e1e8049beef | [] | no_license | IshanVaidya2007/PyRo-Tutorials | 8e96d7a2ecb54990498699d3c35daf840dc78253 | c4754332bde648734700019235d04efb207aa33c | refs/heads/main | 2023-02-02T19:14:24.960565 | 2020-12-14T05:11:12 | 2020-12-14T05:11:12 | 323,958,833 | 0 | 0 | null | 2020-12-23T17:07:15 | 2020-12-23T17:07:15 | null | UTF-8 | Python | false | false | 1,502 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 31 13:51:42 2020
@author: LearnLeap
"""
import pygame
import time
from Phygital_v0 import Phygital_v0 as pyro
# Pin Initialization
pyro.pinMode('A0','dOutput')
pyro.pinMode('A5','dInput')
#Communication Init
pyro.init("COM8")
pygame.init()
width... | [
"noreply@github.com"
] | IshanVaidya2007.noreply@github.com |
162a20d336fdb8bd17fc5ea13e27d793e2d0fc97 | bb8cead9d67a79b7a702e04251fe27f9a782cd60 | /api/run.py | db24ba7234680269e47947c8582baf14cbc5314b | [] | no_license | florianbgt/todo-app | 2d3ead22f884bfb9544bc5523dc6e4ae859c88ad | e2330b1fd797d28777dab7dfe23306b7e1e72a7b | refs/heads/main | 2023-08-28T04:30:25.188341 | 2021-10-25T12:43:00 | 2021-10-25T12:43:00 | 419,964,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','_project.settings')
import django
django.setup()
from django.core.management import call_command
from django.conf import settings
from django.contrib.auth.models import User
if __name__ == "__main__":
try:
os.remove(settings.DATABASES['default'][... | [
"florianbgt@users.noreply.github.com"
] | florianbgt@users.noreply.github.com |
a907448564d7d4dbe4324695f4bc955e6226f0d8 | 8658016febe481a7e6ae0d449a3a6d4730fad6d8 | /other/add_two_ll_num.py | 88242fad1dfd23694ed8bdefaf0eebbd798f1a52 | [] | no_license | ashleyhma/hb-challenges | 74b2bc193eeb736a021b17506c8ed2bd270ced2f | 8421195e492ef630211722737241ba484ac827e0 | refs/heads/master | 2020-05-01T08:13:18.827042 | 2019-07-13T16:48:14 | 2019-07-13T16:48:14 | 177,373,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | class ListNode(object):
def __init__(self, x, y=None):
self.val = x
self.next = y
class Solution(object):
"""You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two number... | [
"ashleyheidima@gmail.com"
] | ashleyheidima@gmail.com |
7609c254a4dfe0c0e6f990924b4919bcf3d1d726 | cf3510e161b105921639f3a9f4682ca948f72085 | /tensormonk/plots/__init__.py | b6a63b39f6676568d9d667207627ab82f0050d40 | [
"MIT"
] | permissive | Tensor46/TensorMONK | eedf762f42d44e2a9a58859f86c1221c610192ad | 67617d3fdf8fde072ba9cab42de7d67c79b17494 | refs/heads/master | 2022-03-10T08:46:32.489207 | 2021-02-21T14:47:27 | 2021-02-21T14:47:27 | 135,519,908 | 31 | 8 | MIT | 2021-02-21T14:47:28 | 2018-05-31T02:15:39 | Python | UTF-8 | Python | false | false | 188 | py | """ TensorMONK :: plots """
__all__ = ["make_gif", "VisPlots", "line_plot"]
from .gif import make_gif
from .visplots import VisPlots
from .line import line_plot
del gif, visplots, line
| [
"vikas11187@gmail.com"
] | vikas11187@gmail.com |
6067d658856d2331f217e780a4b3cbfee1d37d74 | 6e6ef650d0fd5e5006dab4d755bb4ac77de43072 | /parsing/split.py | 8a33d0d7f4eeac8d5000655ed9752faad65173e6 | [] | no_license | raymondroc/an-open-review-of-openreview | b2f2a4dcd7badbbd55ab535f4f319ae8d888afa6 | 7d94a42096759b36739090f9801dc2a09dec0380 | refs/heads/main | 2023-01-10T15:22:06.851193 | 2020-11-13T18:39:30 | 2020-11-13T18:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | import csv
def append(filename, row):
with open(filename, 'a+', newline='') as infile:
csv_appender = csv.writer(infile)
csv_appender.writerow(row)
with open('../authordata.csv', encoding='latin-1') as authorin, open('../openreview_v8_deletions.csv', encoding='latin-1') as reviewin:
author_reader = csv.reader(a... | [
"kganapathy23@gmail.com"
] | kganapathy23@gmail.com |
fd665f4ee1a672d4be5eb93dc6f5a52a578af62d | cf297c3d66189d2bd9fd8bfdadaeff3ebe6eee05 | /WebBrickLibs/EventHandlers/tests/DummyRouter.py | aeb6ebe6d84716938a3c453ac113956c324b0805 | [
"BSD-3-Clause"
] | permissive | AndyThirtover/wb_gateway | 0cb68a1f2caf7f06942f94b867ea02f4f8695492 | 69f9c870369085f4440033201e2fb263a463a523 | refs/heads/master | 2022-01-19T00:07:20.456346 | 2022-01-05T21:08:16 | 2022-01-05T21:08:16 | 14,687,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # Copyright L.P.Klyne 2013
# Licenced under 3 clause BSD licence
# $Id: DummyRouter.py 2612 2008-08-11 20:08:49Z graham.klyne $
#
# Some test helpers for testing event handlers. Uses a SuperGlobal to save state.
#
import logging
import sys
import unittest
from EventLib.Event import Event, makeEvent
from EventHandle... | [
"github@lklyne.co.uk"
] | github@lklyne.co.uk |
8c692fd060f69162e03aad9ec2a23bd52730d207 | cb6dd50eca3d65c1ce34299cd71c4c5a17dbe186 | /pynq/invmat.py | 7ef75c05572db76b7466c61c8554a5d08715fef5 | [
"MIT"
] | permissive | kino2718/InverceMatrixIP | f54063d6cde3008a227364882ab8d5ad3d4d1930 | 0cf56d54ee663db69891a2f4835bde4d0e89bdd9 | refs/heads/master | 2021-01-01T17:45:24.303858 | 2017-10-10T04:08:08 | 2017-10-10T04:08:08 | 98,147,966 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | import axis_fifo as fifo
class InvMat:
def __init__(self, size):
self.fifo = fifo.AXISFifo()
self.matlen = size * size
def inv(self, mat):
if (len(mat) != self.matlen):
print("Error: mat size is invalid.")
raise
self.fifo.clear_int(0xffffffff)
... | [
"kino2718@gmail.com"
] | kino2718@gmail.com |
c2525abeea57432a93e0578742834f69db4c40a0 | 949e7e53f24d4800ad56e5659628606fd43744a3 | /src/fordisapp/urls.py | 6c313f50354b874cdf932d2780aa325c2dfb46a1 | [] | no_license | JuheePak/Web-project | 4839ed9ff70f1e47fe35097bb398e5924a3a1793 | 0b159a251dad76f246f3c6cd36da58961d7a82b0 | refs/heads/master | 2023-03-23T10:27:50.769648 | 2021-03-21T07:51:47 | 2021-03-21T07:51:47 | 290,143,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | from django.urls import path
from . import views
from django.conf.urls.static import static
from django.conf.urls import include, url
from django.conf import settings
urlpatterns = [
path('', views.index, name="index"),
path('register/', views.register, name="register"),
path('login/', views.login, name=... | [
"juhee.pak.06@gmail.com"
] | juhee.pak.06@gmail.com |
8e5e6be6ac17bd00c8bfbf3ae6596487c2f1e6f0 | 81acc9e75d36e76b984972c1e1227258a9cc7bb7 | /src/tagslam/src/camera_poses_to_kalibr.py | 376ee474306a1cfe9fcb1181c7f4ac47e38bc543 | [] | no_license | roshea6/SeniorD-RMC-2019 | 64cc377abc994cf984e4fac387382132f56b5bfb | e2978e4782455317cf1d56bdcdcefc766f950050 | refs/heads/master | 2020-08-25T04:52:23.863408 | 2020-05-09T00:16:24 | 2020-05-09T00:16:24 | 216,963,683 | 1 | 0 | null | 2020-05-09T00:16:25 | 2019-10-23T03:53:03 | C++ | UTF-8 | Python | false | false | 1,546 | py | #!/usr/bin/env python
#------------------------------------------------------------------------------
# convert camera_poses.yaml to kalibr format
#
# 2019 Bernd Pfrommer
import rospy
import tf
import argparse
import yaml
import numpy as np
def read_yaml(filename):
with open(filename, 'r') as y:
try:
... | [
"rpo1202@gmail.com"
] | rpo1202@gmail.com |
4b2ba632b93f63633f331cad76afd74773270c42 | dd659fea91ad861cfbb8936f4d6f256d550001e4 | /server/web/utils/error.py | 2e0c511231ebc094541f0c1fe8780478ea58574f | [] | no_license | wubinhong/deployer | 883e6b2b9d460575a62ad32f5624bd45879617aa | 4988241a92be058b827107f2874fc98a41629327 | refs/heads/master | 2023-05-14T21:32:40.333334 | 2021-06-04T14:57:06 | 2021-06-04T14:57:06 | 373,876,496 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | # -*- coding:utf-8 -*-
__author__ = 'Binhong Wu'
class Error(Exception):
MAPS = {
10000: "income parameters error",
10001: "project not exists.",
10002: "host not exists.",
10003: "user not exists.",
10004: "deploy permission denied.",
10005: "Incomplete parameter",... | [
"wubinhong2012@gmail.com"
] | wubinhong2012@gmail.com |
eb9043e33499f259c6e2b6bb7325bd69fbbfaa33 | c760996cb71732a8396051c1032de9740b3a0c3f | /ship.py | d476053748e4de4aabd8e0383cf406d51504d75d | [] | no_license | L-eo/alien_invasion | f484263b101bd104a6c2cf64f5d7661e1d5fcd2d | 6a991a9340fa263d9d75bdefda045fdc329b9de1 | refs/heads/master | 2021-08-23T02:20:27.191720 | 2017-12-02T13:21:07 | 2017-12-02T13:21:07 | 112,843,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | import pygame
from pygame.sprite import Sprite
class Ship(Sprite):
def __init__(self, ai_settings, screen):
"""初始化飞船并设置其初始位置"""
super().__init__()
self.screen = screen
# 加载飞船图像并获取其外接矩形
self.image = pygame.image.load('images/ship.png')
self.rect = self.image... | [
"33517904+L-eo@users.noreply.github.com"
] | 33517904+L-eo@users.noreply.github.com |
39e20ac90186dc531aa10fe85562848f05598678 | 25f76378e8d451785efda3c12d8505d1e1f7f73f | /__init__.py | 1cc26b8ec1086e65c79e6e66aef26a02c63ea56c | [] | no_license | sikattin/python_sqlite3 | b030bbad955f34e4d09ddeb68f38b36aed389341 | ce6184ab2a3867f77a05d51fccc1d8465871966d | refs/heads/master | 2021-01-01T18:09:59.324372 | 2017-07-25T05:18:42 | 2017-07-25T05:18:42 | 98,265,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | """.
initialize sqlite3_db package.
"""
| [
"distortion0mix@gmail.com"
] | distortion0mix@gmail.com |
5c22c50092409f049081caf5752155a483abf51f | 6656c2acc607d269870d04d310e8a35ebbad8d3f | /lib/python2.7/dist-packages/pr2_mechanism_controllers/msg/_Odometer.py | 3a8c8d7ac9f8a3aacb42386f5ce327b54bf4e2bf | [] | no_license | uml-comp4510-5490/install | 97bd8b643773e34f3956e40ac169729a45e34bbe | 2897bf668177aced2e58cac18e86b109716c01df | refs/heads/master | 2020-04-01T05:59:56.541628 | 2018-10-14T01:52:57 | 2018-10-14T01:52:57 | 152,929,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pr2_mechanism_controllers/Odometer.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Odometer(genpy.Message):
_md5sum = "1f1d53743f4592ee455aa3eaf9019457"
_t... | [
"james.perl12@gmail.com"
] | james.perl12@gmail.com |
7405b916f1b736e3577a6182f2df6a0a43bd5b87 | 36017343e096c0623e901a6f74108483c4d080b0 | /main.py | 461c48d3ad42842320b41ca6fc2f9821001e6340 | [] | no_license | carlosanghez/arcade | 00e420c4a6bb6d191810fb82db0afff66a3eb692 | 5630a906b8f5e271ab04154c97d1f89e96553cf0 | refs/heads/master | 2023-02-04T02:21:15.520403 | 2020-12-26T11:11:57 | 2020-12-26T11:11:57 | 323,635,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | print("hello")
mySprite = sprites.create(img("""
. . 2 2 b b b b b . . . . . . .
. 2 b 4 4 4 4 4 4 b . . . . . .
2 2 4 4 4 4 d d 4 4 b . . . . .
2 b 4 4 4 4 4 4 d 4 b . . . . .
2 b 4 4 4 4 4 4 4 d 4 b . . . .
2 b 4 4 4 4 4 4 4 4 4 b . . . .
... | [
"carlosanghez@gmail.com"
] | carlosanghez@gmail.com |
463634d045761a2bc6089838b2810c79f55472c6 | e519a3134e5242eff29a95a05b02f8ae0bfde232 | /services/control-tower/vendor/riffyn-sdk/swagger_client/models/apply_config_body_manual_data.py | aa75dfca4effe3afe375954d8a1513babe352a82 | [] | no_license | zoltuz/lab-automation-playground | ba7bc08f5d4687a6daa64de04c6d9b36ee71bd3e | 7a21f59b30af6922470ee2b20651918605914cfe | refs/heads/master | 2023-01-28T10:21:51.427650 | 2020-12-04T14:13:13 | 2020-12-05T03:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,229 | py | # coding: utf-8
"""
Riffyn REST API
### Vocabulary Before you begin, please familiarize yourself with our [Glossary of Terms](https://help.riffyn.com/hc/en-us/articles/360045503694). ### Getting Started If you'd like to play around with the API, there are several free GUI tools that will allow you to send req... | [
"jaceys.tan@gmail.com"
] | jaceys.tan@gmail.com |
d57ef9be514e2ce63c48d67c80336251d0f3da59 | 47d04c8ce72c247d306cdede90b09877407665c3 | /ask_trubnikov/question/migrations/0010_auto_20170501_0231.py | 1d93cd20165d472ac86282c0bdf482ec623be080 | [] | no_license | TrubnikovDmitriy/web-task-2 | 00cf7c98698ef3d47753968c3d086bf8820cba04 | 49a95df6828176023f955f9c8e2dd37aa90d257b | refs/heads/master | 2021-01-19T11:33:06.139051 | 2017-06-21T17:38:43 | 2017-06-21T17:38:43 | 87,977,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-01 02:31
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('question', '0009_auto_20170501_0231'),
]
operations = [
migrations.RemoveField(
... | [
"trubnikovdv@mail.ru"
] | trubnikovdv@mail.ru |
b7e7da09b42e464cfd960d7d71f876dc9de023f7 | 9f963f6a52c13eaabf0e53157636a9fb63b6f22f | /.venv/bin/django-admin | 757df18de10fe6021c495761ad7b492424d1212e | [] | no_license | sean-mcgimpsey/passwd | 278547104b2b8c5ce4646fbe549a807e642e8c43 | 0b142eaa663494d9cda8ae4714adbb44c9ef06a2 | refs/heads/master | 2022-11-30T13:52:22.841733 | 2020-08-17T21:21:07 | 2020-08-17T21:21:07 | 288,255,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | #!/home/sean/projects/password/.venv/bin/python
# -*- 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())
| [
"sean.mcgimpsey@maruedr.com"
] | sean.mcgimpsey@maruedr.com | |
1b57a02ddad0c5b539cdf0671106d70c0eaaf546 | 7480095c156078bb8a70dfd365836eccb0ffdeb3 | /paarity_outliner.py | 563d0d50f33e79e2c3cc376362d4c3b1c55d66cf | [] | no_license | Ashish265/Kata | 78a58734afea9f0a2bf21b8ab2dd42380eb2dfa5 | ea64e083f4a55d3bafc2fbf3f0745f7c3cbdd46f | refs/heads/master | 2021-05-11T10:03:17.820018 | 2020-07-22T17:58:47 | 2020-07-22T17:58:47 | 118,091,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | def find_outlier(integers):
l=len(integers)
temp=""
count=0
if l<3:
return False
else :
for i in range(l):
if (integers[i]%2==0):
count=count+1
if (count>=2):
for i in range(l):
if (integers[i]%2==0):
continue
else:
print(integers[i])
else:
for i in ran... | [
"noreply@github.com"
] | Ashish265.noreply@github.com |
3be89ddf961eef7c4996cb5042ca247db7037bb1 | 001f70eb08670694976e182794cb842c1c1536a8 | /tests/test_unit.py | c10ce587dc54f6e3b642bd62ab75ce44a8111935 | [] | no_license | hitesh70738/Final_project_crud_app | 0c04623739b25b1b7527374f4faf8c3f7ba35975 | 6292c4673a63bc7862d9964ba4650004ce46dd6e | refs/heads/main | 2023-02-09T07:26:37.289238 | 2021-01-05T15:07:12 | 2021-01-05T15:07:12 | 323,407,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,965 | py | import unittest
from flask import url_for
from flask_testing import TestCase
from application import app, db
from application.models import Teams, Players
class TestBase(TestCase):
def create_app(self):
app.config.update(SQLALCHEMY_DATABASE_URI="sqlite:///data.db",
SECRET_KEY='TEST_SECRET_KEY',... | [
"hitesh70738@gmail.com"
] | hitesh70738@gmail.com |
61f7e1110562904492dddc8c101dfdb04a9f0b79 | 2009735d19318a3ffe8e56687efb8e7688ebaf5a | /models/final_experiment_scripts/MIMIC/LoS/channel_wise_lstm.py | 672a261444acf134a165a8bd320b316b08fb5d3f | [
"MIT"
] | permissive | weikunzz/TPC-LoS-prediction | 7bb9865e2f0fa3b461cb6fc23ed49996bfba59c1 | 30770f3e75d6a2a725c422b837f7ec864708f5d9 | refs/heads/master | 2023-04-06T10:19:12.284137 | 2021-04-08T14:06:53 | 2021-04-08T14:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | from eICU_preprocessing.split_train_test import create_folder
from models.run_lstm import BaselineLSTM
from models.initialise_arguments import initialise_lstm_arguments
from models.final_experiment_scripts.best_hyperparameters import best_cw_lstm
if __name__=='__main__':
c = initialise_lstm_arguments()
c['ex... | [
"ecr38@cam.ac.uk"
] | ecr38@cam.ac.uk |
828e36ca6a8ff4e76f37661719c06a120b754ff2 | f42f4835eaeb0e1b6e19a7d56ba96673f532587a | /VSI/audio/python/arm_vsi1.py | db933c222a90918459468f754d1f778f7f9a52ba | [
"Apache-2.0"
] | permissive | Envoid/VHT-TFLmicrospeech | 20b8ed9ec1cdc775bc3c7764cc91f23f618ce92e | 3928718dd89e1f394c0288a0a9ba80e00dcdf01c | refs/heads/main | 2023-08-29T19:12:57.678718 | 2021-10-07T06:05:13 | 2021-10-07T06:05:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,102 | py | # Copyright (c) 2021 Arm Limited. All rights reserved.
# Virtual Streaming Interface instance 1 Python script: Audio Output
##@addtogroup arm_vsi1_py_audio_out
# @{
#
##@package arm_vsi1_audio_out
#Documentation for VSI Audio Output module.
#
#More details.
import logging
import wave
## Set verbosity level
#verbo... | [
"robert.rostohar@arm.com"
] | robert.rostohar@arm.com |
dbcf0d7a4a2c281299369fafdd1f56bb32569b62 | a0369b03a6da17571a58d55b777a748abd7efba2 | /qa/pull-tester/rpc-tests.py | 75f7efa89b488d2028217f6251b3efb06d098c54 | [
"MIT"
] | permissive | bestsoftdevelop777/BitrityOfficial | 25dbb0bef4273f2453dc74900b5da5abd753d820 | 17f8780a36e4be0cec0f69be15ae489247153a26 | refs/heads/master | 2023-03-07T08:15:53.461305 | 2018-08-10T18:41:56 | 2018-08-10T18:41:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,791 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Run Regression Test Suite
This module calls down into individual test cases via subprocess. It will
... | [
"vangyangpao@gmail.com"
] | vangyangpao@gmail.com |
0d7102130db2739bb99c1c008e466724c33ed4b7 | 583d03a6337df9f1e28f4ef6208491cf5fb18136 | /dev4qx/messagepush/task/subscribe.py | be4fdbc0be1cdda9998b0a83fc02a876b7637185 | [] | no_license | lescpsn/lescpsn | ece4362a328f009931c9e4980f150d93c4916b32 | ef83523ea1618b7e543553edd480389741e54bc4 | refs/heads/master | 2020-04-03T14:02:06.590299 | 2018-11-01T03:00:17 | 2018-11-01T03:00:17 | 155,309,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | # -*- coding: utf-8 -*-
import logging
import tornado
from core.subscribe import subscrible_direct
request_log = logging.getLogger("ms.request")
class SubscribeTask(tornado.ioloop.PeriodicCallback):
def __init__(self, application, callback_time):
super(SubscribeTask, self).__init__(self.run, call... | [
"lescpsn@aliyun.com"
] | lescpsn@aliyun.com |
745600672d996d6b00859d9699a4b2c35ddc8518 | a3b13b2ffa8a353276cd4a8e1a14f2ca593277af | /app/main/routes.py | 0c2d8fee5ac5c71dee54d5d5fa9b22b4789f153b | [
"MIT"
] | permissive | anlance/cdut2016 | ae8db458b2d8ecea80ff6d2d4e890a5acc9e7003 | 4f96b92d83a4bfc051b7b04ebdd5740aaed623a1 | refs/heads/master | 2022-12-09T12:31:00.211656 | 2019-02-20T13:45:44 | 2019-02-20T13:45:44 | 146,073,304 | 0 | 0 | MIT | 2022-12-08T02:58:55 | 2018-08-25T06:58:15 | Python | UTF-8 | Python | false | false | 2,365 | py | from datetime import datetime
from flask import render_template, flash, redirect, request, url_for, jsonify, json
from flask_login import current_user, login_required
import re
from app import db
from app.forms import DiscussForm
from app.main import bp
from app.models import User, Discuss, AnnounceModel
from app.news... | [
"anlan1996@qq.com"
] | anlan1996@qq.com |
56b4c3dd8ee6578ff8fd4df7d45d128709517dc9 | 6f133957d939ab88f16af4ff2b897c7796f5e7da | /wtxlog/utils/email.py | 7d968047108920c982d4efa0ad9b216b170c2de9 | [] | no_license | xtmhm2000/wtxlog | 25786b0fec99c2f293c7dd4165bfb5456c7549dd | 2de18c91c6125fcd2fdc478d7cfe3cb9b40599ff | refs/heads/master | 2021-01-17T05:45:27.129052 | 2015-02-09T06:06:39 | 2015-02-09T06:06:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | from threading import Thread
from flask import current_app
from flask.ext.mail import Message
from ..ext import mail
from .helpers import render_template
def send_async_email(app, msg):
with app.app_context():
mail.send(msg)
def send_email(to, subject, template, **kwargs):
app = current_app._get_cur... | [
"digwtx@ubuntu.(none)"
] | digwtx@ubuntu.(none) |
fbefcb0112cca43cc7b8a399c2dde0d4ca329f56 | 182c651a9b00b9b4d80e6d51ae574cb793958cd6 | /widgets/stylesheet/stylesheet.py | f9c37d6886961ae308ad487c3780ee79e8573ba3 | [] | no_license | eudu/pyqt-examples | c61a7108e1fbfcf2cd918a0f99e9a5a90a3f305c | 8e533b7b3c5e9bbe0617ef1ecb9b169dd216c181 | refs/heads/master | 2020-03-16T01:23:19.573347 | 2018-05-06T20:20:57 | 2018-05-06T20:20:57 | 132,438,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,546 | py | #!/usr/bin/python3
#############################################################################
##
## Copyright (C) 2013 Riverbank Computing Limited
## Copyright (C) 2010 Hans-Peter Jansen <hpj@urpla.net>.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is... | [
"dukalow@gmail.com"
] | dukalow@gmail.com |
9d8c06c7fd4bbe26b5861b1a1fcc6fc581759472 | bc1037d35cddecbfaa1b3fb0549a9721aba7a815 | /Problems/5.30/Solution-1/paging.py | 74134883c38e3be319009d64ed49982257cd14e4 | [] | no_license | crhntr/IAA-Code | 0d6a322d64857f7a17cb1faf72c0c9bb7e41f936 | 32d725eeed3012a1644ca30ee2899b7bfe8d5b09 | refs/heads/master | 2021-05-11T00:20:36.065974 | 2018-01-22T01:40:02 | 2018-01-22T01:40:02 | 118,299,269 | 1 | 0 | null | 2018-01-21T02:53:21 | 2018-01-21T02:53:20 | null | UTF-8 | Python | false | false | 11,444 | py | # Introduction to the Analysis of Algorithms (3rd ed)
# Michael Soltys
## Problem 5.30 - Paging
## Ryan McIntyre
## 6/22/2017
## python 3.5.2
from collections import Counter as counter
"""
Online*:
LRU = "Least Recently Used", self explanatory
FIFO = "First In / First Out", self explanatory
LIFO = "Last I... | [
"arewhyaeenn@gmail.com"
] | arewhyaeenn@gmail.com |
0ad13de9417ee4a25adef859f6294905a1ef218a | e6042030b195a88a949cd5763244cc76ac1214cc | /users/migrations/0002_profile_info.py | f5e280bec29f5e3ce2c436a8ef5a3059504b0aee | [] | no_license | 3liud/Bidding_store | a5eaa2a92b98e0ff5b04cdc9a39ab3c6c1ed9222 | 315073a31919f7f60174361455594a8def9197f1 | refs/heads/master | 2020-04-14T09:28:25.798386 | 2019-04-29T07:25:58 | 2019-04-29T07:25:58 | 163,760,916 | 0 | 1 | null | 2019-03-20T08:32:12 | 2019-01-01T19:24:23 | Python | UTF-8 | Python | false | false | 840 | py | # Generated by Django 2.1.7 on 2019-03-29 09:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('users', '0001_initial'),... | [
"eliud@localhost.localdomain"
] | eliud@localhost.localdomain |
1f77afe28d0cb282cba9d56049db486e0e6d1c6f | d39bf3e0141f39752b40ca420ec7d90204ad4219 | /tests/test_day_02.py | 213be9a1bfceacdaa6696775d1b77d416bee4eb0 | [] | no_license | jasonbrackman/advent_of_code_2017 | 33260d98e1c348b8d249eabe425783568c3db494 | a50e0cf9b628da96cb365744027d1a800557d1c9 | refs/heads/master | 2022-02-18T18:06:58.119383 | 2019-09-12T05:00:02 | 2019-09-12T05:00:02 | 112,784,403 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | """
5 1 9 5
7 5 3
2 4 6 8
The first row's largest and smallest values are 9 and 1, and their difference is 8.
The second row's largest and smallest values are 7 and 3, and their difference is 4.
The third row's difference is 6.
In this example, the spreadsheet's checksum would be 8 + 4 + 6 = 18.
What is ... | [
"brackman@gmail.com"
] | brackman@gmail.com |
3a4429b465e6d717885a3200420bd2b15a6199a6 | 9e812c3b6c0bc33cf53da5400436bb340f5beaaf | /Flask_API_v2/With authorization/users.py | 44d869bf497fe457a727d077a73d1dec7e6428f1 | [] | no_license | VladZg/Flask_project | e0230e88efdff3c298e29a4053a29ea9b9d457c4 | cf701b1d55a8f6572ce2fb3fcbf46451ec8ee59b | refs/heads/master | 2023-05-14T12:43:11.648280 | 2021-05-27T13:03:07 | 2021-05-27T13:03:07 | 355,556,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | class User(object):
def __init__(self, _id, username, password):
self.id = _id
self.username = username
self.password = password
def __str__(self):
return f"User(id='{self.id}')"
users = [
User(1, 'user1', 'abcxyz'),
User(2, 'user2', 'abcxyz'),
]
username_table = {u.u... | [
"2022zagorodniuk.vv@student.letovo.ru"
] | 2022zagorodniuk.vv@student.letovo.ru |
0b89a9634b9964f9c3b76b14b80b71e32f0ee040 | 0399c5038d53422867b713c80f0b4e06a379ea49 | /v3_horst_resort.py | 98684edd4a5b18bf70e11256827464da2494f9b0 | [] | no_license | pleabargain/python_basic_pizza | e44157eaf64ec2cda8daa9f054eb4187eae5075d | 180a407887aadc9c1b9bb0047551cd39aa573801 | refs/heads/main | 2023-02-10T01:30:58.921666 | 2021-01-03T17:51:53 | 2021-01-03T17:51:53 | 326,415,472 | 0 | 1 | null | 2021-01-03T16:30:54 | 2021-01-03T13:38:12 | Python | UTF-8 | Python | false | false | 1,703 | py | #fancy pizza order
#pizza order
#--- basis price ---
#small pizza = 12
#medium pizza = 15
#medium pizza = 20
# ---price for pepperoni depending on pizza size ---
#pepperoni small = 3
#pepperoni medium = 5
#pepperoni large = 8
# --- price for cheese depending on pizza size ----
#extra_cheese_small =3
#extra_chees... | [
"dennisgdaniels@gmail.com"
] | dennisgdaniels@gmail.com |
62e83d014e06a2aa532f768797c878fd7954ba66 | 6374af29ae984d96f86297f6e51dba40d889ab46 | /src/peggypy/compiler/report_infinite_recursion.py | d51ac3fb55d1a356cb1c8cc0ac1ddbededbc6929 | [] | no_license | thehappycheese/peggypy | 0d2ce02f1de6dfdde6a4cc208886d32531cbe9a3 | e2991f43a3e200e1154b85dfa0740b8ce4168a8c | refs/heads/main | 2023-09-03T03:23:05.292398 | 2021-10-17T16:14:20 | 2021-10-17T16:14:20 | 412,138,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py |
from typing import Any
from peggypy.compiler.always_consumes_on_success import always_consumes_on_success
from ..grammar_error import Diagnostic, GrammarError
from .utils_and_types.visitor import Visitor
from .utils_and_types.syntax_tree import (
Grammar,
Rule,
Rule_Ref,
Sequence
)
def rule(self:Visitor, node... | [
"the.nicholas.archer@gmail.com"
] | the.nicholas.archer@gmail.com |
20dc246337514a94a05d62f9a2151d156f2d4100 | 6dd9e0a01411107799d7d54cfdf0177391c68040 | /python/code_hints_tips/strip_method.py | 2fb1323f9eaff89666fc450594647efd61428e58 | [] | no_license | davidm3591/Code-Cheats-Settings | ce792b2dd2293b16262941966eca564c9c3be9bc | d2ccc9aea174ea3302f84d444b082d261c799b11 | refs/heads/master | 2023-02-24T12:28:57.420551 | 2023-02-20T06:30:18 | 2023-02-20T06:30:18 | 203,030,723 | 0 | 0 | null | 2023-02-20T06:30:20 | 2019-08-18T16:37:15 | Python | UTF-8 | Python | false | false | 379 | py | # python strip method
import re
my_str = "0000000this is string example....wow!!!0000000";
pattern = re.compile(r'0')
# matches = pattern.finditer(my_str)
# matches = pattern.findall(my_str)
matches = pattern.match(my_str)
print(matches)
# print(matches.strip(0))
# count = 0
# for match in matches:
# count += 1
... | [
"davidmltz@gmail.com"
] | davidmltz@gmail.com |
00998e3732eae7254bdc0de2feb20ec46c840040 | e04798648c899f4fcf66053b02fe60ce698dc51c | /devel/remote_pilot_control_gui_advanced.stable.py | c29b3a37d9784b8312e889cfd86406b7a2a31935 | [] | no_license | krauspe/rpctl | c2d6dae0a0c3f052f869f6c2c047234aef20ceb4 | 6c177727df85d6dd5c0fc4d1cfbdb7b85ff2d07b | refs/heads/master | 2021-01-21T04:47:05.301167 | 2018-08-21T11:08:27 | 2018-08-21T11:08:27 | 46,799,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,594 | py | #!/usr/bin/env python
#TODO: solve basedir path problem
#TODO: file not found error handling for status_list and target_config list
#DONE: disable "start reconfiguration" button after it has been pressed
#DONE: change default entry in remote fqdn select boxes to "no_change" after end of reconfiguration
#TODO: chosse s... | [
"kit02@peter-krauspe.de"
] | kit02@peter-krauspe.de |
f53804864f185c082fa55966d97ef3aa8d63bf39 | 7b389b68b0dc5106a37f11d1e75c68a57bb55e8f | /different_way_14.py | 594c3eb6cb6eba8c0ca16018a31c1ed33921bd13 | [] | no_license | 2654400439/UCAS_Cryptanalysis_2021 | e25e9d3d7c46c0f1a378174008e28b1a2f350947 | 0c87de136dc479aeeabb457422a571e6162b6aed | refs/heads/main | 2023-08-03T02:37:42.556066 | 2021-09-28T15:49:58 | 2021-09-28T15:49:58 | 411,226,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,010 | py | from collections import Counter
from matplotlib import pyplot as plt
import math
import sys
from tqdm import trange
C = 'anorblkcoobhcqlcyxrrucfmrgqlhodezoxuxbobgpkihuvalvxopikggbhforzfrpugdjwoamxdvjxmvsqzlkoesfdbwxhxkcgypnrinzqdohruzivguzzxbpxrhxgbnvoupwzwwxjyelucyvhtlxdyxthszdmyenzqjotfviehfxooflzwzbwyprkujxruamxguxg... | [
"2654400439@qq.com"
] | 2654400439@qq.com |
95c22f145895309797a8082f10eda16bd64091da | 0c6b4ffd53f20b127f995b041d7aed871badaed8 | /excersise 5/excersise5.py | 8484c302122e281b7d8a3bf8a8ee04000d12915f | [] | no_license | basu19157/Code_with_harry_excersise_python | bacb3ac055dc46ad47671d07a570436abc4c7a53 | 57f32ea7710fc2c5627bf902cef6cea0d9eb856c | refs/heads/master | 2020-08-22T10:03:59.089185 | 2019-10-20T23:02:28 | 2019-10-20T23:02:28 | 216,371,354 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py | # Health Management System
# 3 clients - basu, tushar and siraj
def getdate():
import datetime
return datetime.datetime.now()
# Total 6 files
# write a function that when executed takes as input client name
# One more function to retrieve exercise or food for any client
import datetime
def gettime():
... | [
"56300919+basu19157@users.noreply.github.com"
] | 56300919+basu19157@users.noreply.github.com |
bd8aae233cdd44ce9ac3a8e770f573964ef8e98c | 90b70106b7b5e52c3bce74bc4f244e7f043a8306 | /rmr/models/fields/range.py | 28c7cde1fae1ab4f4d5bb4586e21e8cc69cfcf45 | [
"MIT"
] | permissive | razzledazzle/rmr_django | b58d9b3856f4bba0f10338c90a5c961001198ab6 | 221c3424f8a3ba0af48426486131cc695d5fd613 | refs/heads/master | 2021-01-18T17:33:32.473998 | 2016-03-31T13:41:22 | 2016-03-31T13:41:22 | 50,594,212 | 0 | 0 | null | 2016-01-28T15:54:51 | 2016-01-28T15:54:51 | null | UTF-8 | Python | false | false | 2,091 | py | """
Range fields placed here are actual only for Django <= 1.8
Django 1.9 already has 'upper' and 'lower' lookups for the range fields
"""
from django.contrib.postgres import fields
from django.db import models
class DateRangeField(fields.DateRangeField):
pass
class DateTimeRangeField(fields.DateTimeRangeFiel... | [
"rh@redmadrobot.com"
] | rh@redmadrobot.com |
8e8bfe60db2a8c029ebd2f7b01086d1e0a249619 | fc0645445468769b09e2e359136935860a9238dc | /tests/clahe.py | 0452ec4cd4007f99c1a9d5d895f9165e7f3689fb | [] | no_license | rodrigolessa/uff-traffic-sign-recognition | 699129f273e071e6de35ab573a206304e00d9ae4 | 644a40531b41ecf8410d28a378be96fa40930ac5 | refs/heads/master | 2022-01-09T06:13:45.475020 | 2019-06-19T02:07:31 | 2019-06-19T02:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import cv2
import numpy as np
imgName = 'sinalizacao_brasileira_fotos\\152116938.jpg'
img = cv2.imread(imgName, 0)
#CLAHE (Contrast Limited Adaptive Histogram Equalization)
# create a CLAHE object (Arguments are optional).
#clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
clahe = cv2.createCLAHE()
cl1 =... | [
"rodrigolsr@gmail.com"
] | rodrigolsr@gmail.com |
4ae147e488f35e08bf3a0323963812c7b8fa66de | 12e145197be94692b105ffdd92b6b3691c9e9855 | /games/tic_tac_toe/tic_tac_toe.py | 66ad449371e721fa5ce74bfdd1f9d5171c5db6cf | [] | no_license | deepu0322/python_reusable_components | 271026da3ae20e1b917f1acf92eb658d5dd9ca6a | 5cf49f4124edb1258d779313af3a2906b332e2e6 | refs/heads/main | 2023-03-26T09:42:19.444213 | 2021-03-23T07:17:52 | 2021-03-23T07:17:52 | 349,049,983 | 0 | 1 | null | 2021-03-25T06:38:49 | 2021-03-18T11:36:49 | Python | UTF-8 | Python | false | false | 2,746 | py |
def intialboard(board):
print(board[1]+' | '+board[2]+' | '+board[3])
print('----------')
print(board[4]+' | '+board[5]+' | '+board[6])
print('----------')
print(board[7]+' | '+board[8]+' | '+board[9])
def replace_position(board,position,marker):
# user_replacement = input('type a string to pl... | [
"noreply@github.com"
] | deepu0322.noreply@github.com |
cf93f564313818cf88c36c9ec4c7b6741882aed2 | b43c1b98b8b780c5a5e9a9e109037609f179c94e | /Week_03/46.全排列.py | 3d43b5963d7605a248190a6422a79d66114b26d7 | [] | no_license | wangliangguo/algorithm022 | fbb2ae87bee15fc91c1e824545746d9823ed601e | 5f78d15d16b8be2b0685118c6c05d42c42c0a7f6 | refs/heads/main | 2023-02-15T00:25:00.505641 | 2021-01-14T10:30:36 | 2021-01-14T10:30:36 | 323,300,241 | 0 | 0 | null | 2020-12-21T10:17:51 | 2020-12-21T10:17:51 | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
#@Author :wangliangguo
#@time : 2021/1/2 下午9:19
class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
ans = []
exist = []
def recurse(nums, index, state):
if index >= len(nums):
ans.append(state[:])
... | [
"chenwangliangguo@qq.com"
] | chenwangliangguo@qq.com |
49267d7eb47ce72b1d0c45946087ead08e76e723 | 83af3b6ff2df0abba5a3f356e6e0aeff97cdf8c9 | /xls.py | fc27a85940a000f523fe7e9121e66e624b40eb32 | [] | no_license | spiritdan/pypypy_v2 | f57ebb2e08708780f268cae97f1191bff102c1bb | 07107457f5f8fbdb9411f37a42f6841f28cea6e0 | refs/heads/master | 2020-04-16T14:20:17.915939 | 2019-02-14T12:48:58 | 2019-02-14T12:48:58 | 165,663,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | import openpyxl
wb=openpyxl.Workbook()
sheet=wb.active
sheet.title='漫威宇宙'
sheet['A1']='漫威宇宙'
rows=[['美国队长','钢铁侠','蜘蛛侠'],['是','漫威','宇宙', '经典','人物']]
for i in rows:
sheet.append(i)
wb.save('Marvel.xlsx')
wb = openpyxl.load_workbook('Marvel.xlsx')
sheet=wb['漫威宇宙']
sheetname = wb.sheetnames
print(sheetname)
A1_cell=sh... | [
"spirit_dan@163.com"
] | spirit_dan@163.com |
300ca1b420e0855500c2ce64de330e26c19d61d7 | 4c33cad76db13b680700566a5787c2e2fd20d487 | /helloworld.py | c62311eff06185c1c14a7cb8f2f630b78cb9a7af | [] | no_license | universalfabric/MasterClass | de7a7e5959eeaaf439b841cbfe5a907cc328c64b | c542068b61959998a9d0dc67d00d4fab5e8aa2a4 | refs/heads/master | 2020-04-26T13:27:15.261729 | 2019-03-25T02:11:53 | 2019-03-25T02:11:53 | 173,579,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | # print("Hello World"!)
greet = "Hello World!\n"
print(greet * 20)
| [
"mike.freimuth@gmail.com"
] | mike.freimuth@gmail.com |
3a7a02f31a6979f75ec7c427dfbb6289b7b7eb59 | 1e38f8146781063559e117068127d767c503f9ec | /tex/img/plot1.py | 0275952909066ec070198d7a0c8fe477dc4ec75f | [] | no_license | kklocker/funksjonalintegralmetoder | 4530931ced3ccac98ab4f19a71fa55dd7a3b2ed1 | e85b6463cabda9d6215bfe9004e1036c6883792f | refs/heads/master | 2023-06-29T14:35:41.976960 | 2021-07-31T12:51:09 | 2021-07-31T12:51:09 | 202,173,572 | 0 | 2 | null | 2020-10-06T08:02:51 | 2019-08-13T15:29:48 | TeX | UTF-8 | Python | false | false | 287 | py | import numpy as np
import matplotlib.pyplot as plt
ef = 1
k = np.linspace(0,1.5)
ek = k**2
Vb = 1/4
Ekp = 1/2 * (ek + ef + np.sqrt((ek-ef)**2 + 4*Vb**2))
Ekm = 1/2 * (ek + ef - np.sqrt((ek-ef)**2 + 4*Vb**2))
plt.plot(k, Ekp)
plt.plot(k, Ekm)
plt.show()
print(k, ek, Ekp, Ekm)
| [
"karladlock@gmail.com"
] | karladlock@gmail.com |
d6a1639ba1d05703af45df4dc4ebeedac75f0043 | 6c7f5803ef79acbba014024673ab357323d9e222 | /auth-iitk_ironport.py | 790b4acbce252fb6d29c72ee54167dbfab795868 | [] | no_license | satendrapandeymp/Auth_IITK | bf2371448fc5e293630b299e60aaa8ca6ee76ca4 | 5973d8e6e5c3e87a6026f35cf093e019dc369328 | refs/heads/master | 2021-09-08T14:10:09.935290 | 2018-03-10T08:42:53 | 2018-03-10T08:42:53 | 115,193,846 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import urllib2, time, urllib
def internet_on():
try:
urllib2.urlopen('https://www.google.com', timeout=1)
return False
except urllib2.URLError as err:
return True
opener = urllib2.build_opener()
opener.addheaders = [('User-Agent', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko... | [
"noreply@github.com"
] | satendrapandeymp.noreply@github.com |
f4ef114a8e9ae1a4bd7d4f231e49391596865911 | 9eabd6b6537dd6adf466d0a243d59abd288b1871 | /_modules/karabiner.py | 1e8bb969d1ce4e2ab0250125192a9b837124c333 | [
"MIT"
] | permissive | mdavezac/CondimentStation | f9f6545c6544c5c25311438d28b96f382f16c646 | d4c88c5889241719dab9657fe8225a430c23043f | refs/heads/master | 2020-12-07T05:25:10.590759 | 2018-11-18T11:41:11 | 2018-11-18T11:41:11 | 46,870,954 | 1 | 3 | MIT | 2018-01-14T15:38:03 | 2015-11-25T15:45:17 | Python | UTF-8 | Python | false | false | 2,311 | py | # -*- coding: utf-8 -*-
'''
Karabiner setup
'''
from __future__ import absolute_import
# Import python libs
import copy
import logging
# Import salt libs
import salt.utils
from salt.exceptions import CommandExecutionError, MinionError
log = logging.getLogger(__name__)
cli = "/Applications/Karabiner.app/Contents/Lib... | [
"m.davezac@ucl.ac.uk"
] | m.davezac@ucl.ac.uk |
8847c3263a8b3bcbd8e6dd2f05c05064b4479df6 | cccb39f0c9916397dc9ee9a8326cefdb3027df6b | /python/RFC_downloader.py | 1edb5d7936285deb9bd51bb28a4976ceececfc11 | [
"MIT"
] | permissive | tbedford/code-snippets | 2946d8e7e28bd53367cd27687a7f2b561a335b6c | 00da6496040004b717e20673e0d74203fe34eddf | refs/heads/master | 2023-06-26T00:27:05.519551 | 2023-06-15T16:32:57 | 2023-06-15T16:32:57 | 131,804,613 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | import sys, urllib.request
try:
rfc_number = int (sys.argv[1])
except (IndexError, ValueError):
print('supply RFC number as argument.')
sys.exit(2)
template = 'http://www.ietf.org/rfc/rfc{}.txt'
url = template.format(rfc_number)
rfc_raw = urllib.request.urlopen(url).read()
rfc = rfc_raw.decode()
print(rfc... | [
"tony.bedford@live.co.uk"
] | tony.bedford@live.co.uk |
9e8347f3ee2a079d974e2bdbee6c34880736fe6e | d8a9b88f4087ebfe97b462e589071222e2261e47 | /520. Detect Capital.py | 05ac6786a14cb0b3bec7c1c660096e885cf8269c | [] | no_license | rohitpatwa/leetcode | a7a4e8a109ace53a38d613b5f898dd81d4771b1b | f4826763e8f154cac9134d53b154b8299acd39a8 | refs/heads/master | 2021-07-07T12:40:30.424243 | 2021-03-31T00:21:30 | 2021-03-31T00:21:30 | 235,003,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Check if word is all upper or all lower. elif check if word is one capital and all lower. Else return False.
class Solution:
def detectCapitalUse(self, word: str) -> bool:
if word==word.upper() or word==word.lower():
return True
if word[0] == word[0].upper() and word[1:]==wor... | [
"rohitpatwa@gmail.com"
] | rohitpatwa@gmail.com |
14e70c6f02f9d9fc19b6d2424ac79354626bc67e | d56d6bce5abd08bf476d23139190171657fac027 | /robotics/InteractiveTracking.py | 5230aa44e551312d9e82c0a0de2719a2bc1e9f9e | [] | no_license | ssgantayat/DetectionWithTracking | 9efc4ec3e70c2c0f1d845536146896a8f275edaa | 154edb55802ecf05ff814a420c4824f38bdd5287 | refs/heads/master | 2022-03-19T06:25:04.931990 | 2014-08-07T09:40:48 | 2014-08-07T09:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,968 | py | """
Author: Travis Dick (travis.barry.dick@gmail.com)
"""
import os
import cv
import cv2
import numpy as np
from CascadeTracker import *
from Homography import *
from ImageUtils import *
from NNTracker import *
class InteractiveTrackingApp:
def __init__(self, tracker, filename=None, tracker_name=None,name="vis"):... | [
"ankush1123roy@gmail.com"
] | ankush1123roy@gmail.com |
871132389561d6b5b48a9d5e7d876bc1654d5ee6 | f2889a13368b59d8b82f7def1a31a6277b6518b7 | /30.py | 75414b4d6be012ed0fdb069967fc9cd91daa06d6 | [] | no_license | htl1126/leetcode | dacde03de5c9c967e527c4c3b29a4547154e11b3 | c33559dc5e0bf6879bb3462ab65a9446a66d19f6 | refs/heads/master | 2023-09-01T14:57:57.302544 | 2023-08-25T15:50:56 | 2023-08-25T15:50:56 | 29,514,867 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # ref: https://discuss.leetcode.com/topic/10665/concise-python-code-using
# -defaultdict
import collections
import copy
class Solution(object):
def findSubstring(self, s, words):
"""
:type s: str
:type words: List[str]
:rtype: List[int]
"""
if not words... | [
"b93902098@ntu.edu.tw"
] | b93902098@ntu.edu.tw |
d8fef3f5a96c4891f675eb2abd81d61207e43e46 | 4c80bcfba6f0a6869ff6ff1d2f7e965f82867049 | /Optical Flow/main.py | e7c671d162e669aaabda1e9b914fa3dca1df3b71 | [] | no_license | himol7/Traffic-Sign-Detection-and-Classification-Under-Challenging-Conditions | 358ca1544c367c41502053d8220f11cb34ae214f | c20109db7f83de8759dae2d0bbc4b14a60e65feb | refs/heads/master | 2020-04-10T13:03:56.758935 | 2018-12-09T14:57:53 | 2018-12-09T14:57:53 | 161,039,040 | 8 | 2 | null | 2018-12-09T12:51:42 | 2018-12-09T12:51:42 | null | UTF-8 | Python | false | false | 14,518 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
from math import sqrt
from skimage.feature import blob_dog, blob_log, blob_doh
import imutils
import argparse
import os
import math
from classification import training, getLabel
SIGNS = ["ERROR",
"STOP",
"TURN LEFT",
... | [
"noreply@github.com"
] | himol7.noreply@github.com |
ef8b694de6c2ac6d30f02461ff1ca3cdcf3cd010 | 837377dc4df28263a61ee4af32514b52f3beb976 | /scripts/inverse_reinforcement_learning/envs/gridworld.py | a35a714dc92bf33cb95d8012cb7d6d70b952727c | [] | no_license | aoyan27/reinforcement_learning | 2279a36c1ba0cec1f4e254af71ebb6e6431b5636 | 9170e9e720e0e1a541b586465e01bd89555d27f2 | refs/heads/master | 2021-09-08T01:21:53.630653 | 2018-03-05T03:19:59 | 2018-03-05T03:19:59 | 100,631,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,341 | py | #!/usr/bin.env python
#coding:utf-8
import numpy as np
class Gridworld:
def __init__(self, rows, cols, R_max, noise):
self.rows = rows
self.cols = cols
self.n_state = self.rows * self.cols
self.R_max = R_max
self.noise = noise
self.grid = np.zeros((self.rows, sel... | [
"ce62001@meiji.ac.jp"
] | ce62001@meiji.ac.jp |
dce3ca6bb9e7f047acd4519df5a741b2d272fc7a | 4cee60f2f2a271de1f3a9f7c4b8e8bad42aa6a60 | /mosaic.py | c38c372f319efb8df4a77dea873ad439fdcd468b | [
"Apache-2.0"
] | permissive | bartoszptak/Mosaic_maker | 86f6706f2b520114229b5aaf98feb997019db902 | 50166305eb2ffea075c67b28a97900dead74a466 | refs/heads/master | 2021-10-29T14:46:29.398427 | 2019-10-18T08:11:49 | 2019-10-18T08:11:49 | 208,629,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | import cv2
import numpy as np
import numpy.ma as ma
import time
COLORS = 32
def get_mosaic_list():
"""Return the list of mosaic titles."""
from glob import glob
files = glob('data/tiles/*.png')
result = []
for file in files:
result.append(file.split('/')[-1].split('.')[0].title())
retu... | [
"bartptak@gmail.com"
] | bartptak@gmail.com |
8f2212df179883468530dd1fd6f1c1df00460046 | 1ca5db01f7214346cc06315c142df81d2bfcdec0 | /add_flow.py | 1338eb818c03ffc9084677019d2abd51b6ca3e0a | [] | no_license | XoulKool/AddFlow | f8bb39edb52d7d0bfa117faff1bcf9a5916b4eaf | 3e0de07da3dddca07c806e8bb33c7d64c88abf4a | refs/heads/master | 2020-04-18T04:09:42.772656 | 2017-08-28T20:50:54 | 2017-08-28T20:50:54 | 66,281,422 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,216 | py | # Copyright (C) 2011 Nippon Telegraph and Telephone Corporation.
#
# 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 appli... | [
"noreply@github.com"
] | XoulKool.noreply@github.com |
906738f6220d65cce1625250b86529ae2a068ae8 | 1d22f82abc38dd85a844cb6a19ec83ffae2a434d | /data_sci_long/solution_dsci_chapter_01_python_review.py | d23f3b9cce6e42e7caa04228aff1a0e49ce801d1 | [] | no_license | pbarton666/learninglab | c4d5602d148618ee2848a4954d8d93eae24be9ef | f2ad15b77aefcf65bd19e00f3f61687b4f13b737 | refs/heads/master | 2022-12-14T05:55:33.346925 | 2021-07-13T17:21:42 | 2021-07-13T17:21:42 | 84,211,135 | 2 | 3 | null | 2022-12-08T06:51:28 | 2017-03-07T14:52:08 | Jupyter Notebook | UTF-8 | Python | false | false | 416 | py | solution_dsci_chapter_01_python_review.py
class Dog():
def __init__(self, name):
self.name=name
class Pack(Dog):
def __init__(self):
self.members=[]
def __add__(self, new):
self.members.append(new.name)
pack=Pack()
for name in ('lassie', 'spicey', 'kelly'):
pack+Dog(name)
print("Yay! There are n... | [
"pbarton@SEB01.COM"
] | pbarton@SEB01.COM |
c6f571894dd7ccf9741d5e68fab1fbc91010d2d7 | 870bb117e3382fc3db8fdf146a96b495da04e1df | /week-03/day-2/38.py | 7719dc748471dcfe008f187b390081623059622c | [] | no_license | approximata/greenfox-weeks | f92b7900437325abbb609ac43e4fe0f8e68a5c36 | a10648d80869fcc151ea7246366f4c4a9e19a768 | refs/heads/master | 2021-01-24T18:59:19.253880 | 2016-08-21T15:17:33 | 2016-08-21T15:17:33 | 86,173,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | numbers = [7, 5, 8, -1, 2]
# Write a function that returns the minimal element
# in a list (your own min function)
def mymin(nu):
minnum=nu[0]
for i in range(len(nu)):
if minnum < nu[i]:
pass
else:
minnum = nu[i]
return minnum
print(mymin(numbers))
| [
"bodormate@gmail.com"
] | bodormate@gmail.com |
fa1bfe93bc5ca8cf885d0b3793c93d010857eca7 | 2f49c92451e81204ed65648f92bb363d0f957658 | /Code/tools/my_dataset.py | 659a45121de63b72b8c1edcff6f02eed2a8396f0 | [] | no_license | luweishuang/Sky-Replacement | 74b40997f50cb5b0153111f5389d813032bdedd9 | e77bec6de444f09e47c6321bea3f2e257dbd1c13 | refs/heads/master | 2023-05-31T02:05:36.028540 | 2021-05-31T09:27:17 | 2021-05-31T09:27:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,642 | py | # -*- coding: utf-8 -*-
import os
import random
import numpy as np
import torch
from PIL import Image
from torch.utils.data import Dataset
from glob import glob
from matplotlib import pyplot as plt
random.seed(1)
rmb_label = {"1": 0, "100": 1}
class RMBDataset(Dataset):
def __init__(self, data_dir, transform=Non... | [
"45333458+HiveYuan@users.noreply.github.com"
] | 45333458+HiveYuan@users.noreply.github.com |
3f3f5ccbe7c5bf0b18fb6e442de445731566796f | 59eaf6824fff579c1cdd89cb8da73f0278f9e2c6 | /subway_data_process/code/divide_train_and_test.py | d243ae7215c6fb4c168a6e0e764e5ad1b9e09f7a | [] | no_license | LinJingOK/BIO-mark | 577cfb3f680583064955d3069de7ab6359f552c8 | 93f7a32405ef7b181bced6a78f9fb7321836fb46 | refs/heads/master | 2023-06-21T20:50:32.517602 | 2021-07-17T04:10:17 | 2021-07-17T04:10:17 | 386,832,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py |
from sklearn.model_selection import train_test_split
filename = r'E:\workspace\PycharmProjects\BIO_mark_data\yao\data\data.txt'
with open(filename, 'r') as f:#with语句自动调用close()方法
lines = f.readlines()
data = []
for line in lines:
data.append(line)
# print(data)
train_data, test_data = ... | [
"425626997@qq.com"
] | 425626997@qq.com |
c18be261a9696d001ec6cbdc3a0a4ebb5ac7a186 | 853a642fc706af530a5fc259d11bd143d46678a6 | /pandas_multiple_tables.py | 1b5736bb2b42d0eb1434082de8e53f4d1ec87dbe | [] | no_license | jgullbrand/pandas_practice | faa74599144badb4803d2d6cb91ad99c3d7d131a | 69b236803bfbc0706bd51a206599247daddf189e | refs/heads/master | 2020-04-27T03:47:52.999739 | 2019-03-07T18:42:20 | 2019-03-07T18:42:20 | 174,035,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,942 | py | # Pandas Multiple Tables
import pandas as pd
# Loading in data from 3 tables: Total Website Visitors, New Visitors, Avg Session Duration
total_visitors = pd.read_csv('visitors.csv')
new_visitors = pd.read_csv('new_visitors.csv')
session_duration = pd.read_csv('session_duration.csv')
# Check out dataframes:
#print(t... | [
"jamiegullbrand@gmail.com"
] | jamiegullbrand@gmail.com |
30fc26e6e36c45d244ad025f815fe97fb27bdda0 | 930c7154b221dd0133766263efc8afab1aaed914 | /tests/base.py | 3696a41433129f466f43bff2d350ef613147ed1d | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | isabella232/ri-group-communication-toolkit | f212c92ec52e2e09cc065b08796f1bf988f08e5b | 9b0cc2f151f12ba072b3a932099b796e89d67009 | refs/heads/master | 2023-04-12T23:29:22.551824 | 2014-04-24T23:45:15 | 2014-04-24T23:45:15 | 358,573,545 | 1 | 1 | null | 2021-04-16T11:16:59 | 2021-04-16T11:15:15 | null | UTF-8 | Python | false | false | 774 | py | from unittest import TestCase
from mock import patch, Mock
class KitTestCase(TestCase):
def start_patch(self, tool):
# Patch all requests to twilio_numbers()
self.twilio_numbers_patcher = patch('rapid_response_kit.tools.{}.twilio_numbers'.format(tool))
self.twilio_numbers_patch = self.twi... | [
"matt@twilio.com"
] | matt@twilio.com |
6a370d78124dbc1a87f7a1d28a4f4f21efd1fbe4 | 33fec8d24705bc2c0a1502d55b610b6645326278 | /bin/sqlformat | deb363fd5ad0692549e972167397f58755f730c9 | [] | no_license | bramsteenbergen/ProductManagar | 402899e69bd9554088e09ecda69654dfb1ed8cf1 | ea20539ee61c92afb3edd22b37864de7205341b0 | refs/heads/master | 2022-12-09T05:11:10.135943 | 2020-09-24T05:33:25 | 2020-09-24T05:33:25 | 288,982,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/trie/Desktop/Dev/testEnv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"triemond@outlook.com"
] | triemond@outlook.com | |
3b9318472539ec290ac5c2d9f2f2b21c8d5e35c8 | b7eed26cf8a0042a61f555eed1e9bf0a3227d490 | /students/lakatorz_izaak/lesson_06_dicts_tuples_sets_args_kwargs/countries_and_cities.py | 38dcb815c191412dfaa63d982415397d1c37151c | [] | no_license | jedzej/tietopythontraining-basic | e8f1ac5bee5094c608a2584ab19ba14060c36dbe | a68fa29ce11942cd7de9c6bbea08fef5541afa0f | refs/heads/master | 2021-05-11T11:10:05.110242 | 2018-08-20T12:34:55 | 2018-08-20T12:34:55 | 118,122,178 | 14 | 84 | null | 2018-08-24T15:53:04 | 2018-01-19T12:23:02 | Python | UTF-8 | Python | false | false | 490 | py | def main():
cc_pairs = dict()
results = dict()
country_number = int(input())
for i in range(country_number):
country_name, cities = input().split(' ', 1)
for city in cities.split():
cc_pairs[city] = country_name
city_number = int(input())
for i in range(city_numbe... | [
"ext-izaak.lakatorz@here.com"
] | ext-izaak.lakatorz@here.com |
023a07fe0e546c56cc62618d41f849445a7aff55 | dec17e1df09b5b6426bef5d67cbe555031018317 | /lib/gradients.py | 9c2e579bb2f5104882421e9891045ed4cdd286dc | [
"MIT"
] | permissive | codeaudit/pytorch-smoothgrad | 364b3d8852f867b93b74c9b6940af399a9a59a33 | d6bb9f96ea8f59f89e72fb2136d8d48e0713eca0 | refs/heads/master | 2021-01-01T20:18:02.842154 | 2017-07-28T15:28:38 | 2017-07-28T15:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,969 | py | import numpy as np
import cv2
import torch
from torch.autograd import Variable
class VanillaGrad(object):
def __init__(self, pretrained_model, cuda=False):
self.pretrained_model = pretrained_model
self.features = pretrained_model.features
self.cuda = cuda
if self.cuda:
self.pretrained_model.cuda()
self... | [
"pkdn14@gmail.com"
] | pkdn14@gmail.com |
3bf3d5decb996dc83da753ea3597dd1bbbc55da4 | 12fdd1d25aedf9ee00199373606991f92c28ed66 | /util/param_parser/param_parser.py | 3877336d651d5bf3941a64fc13d2a422cb5872b3 | [] | no_license | SHOST628/ESPOS82_Promotion_AutoTest | ff0e6eb038c3ca349fa666bad0b89fb65d6b71ff | df7d9614d132141738d301279bbacab8be6e4fbc | refs/heads/master | 2023-04-05T12:42:17.760953 | 2021-04-20T07:18:56 | 2021-04-20T07:18:56 | 335,235,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,282 | py | from util.mylogger import logger
from util.oracle import oracle
from util.param_format_log import param_model
import re
REQUEST = 0
RESPONSE = 1
def param_extractor(prom_param, config_prom_param):
"""
promotion param extrator
:param config_prom_param: str, from promotion parameter
:param config_pro... | [
"Sincave.Zhang@tech-trans.com"
] | Sincave.Zhang@tech-trans.com |
6c8ac1427f142513c13bd7794b07ab96a6f4c884 | 751cf52d62dba7d88387fc5734d6ee3954054fc2 | /opencv/experiments_raw/contourExperiments/contourExperiment.py | 25321959930231caf2a2607e82fe2c8687768cfe | [
"MIT"
] | permissive | nooralight/lab-computer-vision | 70a4d84a47a14dc8f5e9796ff6ccb59d4451ff27 | 0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9 | refs/heads/master | 2023-03-17T12:45:22.700237 | 2017-07-11T22:17:09 | 2017-07-11T22:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | """
Display three views:
original frame
mask
resultant frame
whenever user clicks in original frame, color is specified
this color becomes the new mask color
The system then creates a contour around the largest object of that color on the screen, and a crosshair follows after that object
"""
import cv2
imp... | [
"danbudanov@gmail.com"
] | danbudanov@gmail.com |
4056ac1639854fe1a8734faa3016b7ccacbec880 | fb52ae5d98c4bcbba40c33fc0e23af1d532e7b8f | /Python/Python从入门到实践/基础知识/5if语句.py | 105b1c5fa639c38a14acb2b4dda4c5ddefbe92e8 | [] | no_license | zhengchaoxuan/Lesson-Code | 46426072d1b26191070fcc45c313f54c8db48cc5 | 872cd7074f5411ed5e7a23b99224fe0ed75a335a | refs/heads/master | 2021-03-14T04:43:01.299333 | 2020-08-21T07:12:47 | 2020-08-21T07:12:47 | 246,737,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | # 该代码是python从入门到实践的练习源码
# date :2020/07/19
# version :0.1
# including:
# 1.关键字--in 和 not in
# 2.确定列表不为空
#5-3
alien_color = 'greens'
if alien_color =='green':
print('you win the 5 scores')
elif alien_color =='red':
print('you win the 10 scores')
else:
print('you win the 15 scores')
#5-7
alien_colors = ['gr... | [
"1139500799@qq.com"
] | 1139500799@qq.com |
d4c59887844231906cc69d067be102ec4d25bc76 | 6f0fe60f57dfb8c1055afc91d58f4975cf54ce26 | /Cuberoid.py | 60331bec69d6d20630e4edb83f5400c04bdf9e66 | [] | no_license | Developer-Achu/Cuberoid | ad7132e840402fafd61cd84cb38f99dfb6634db1 | 41195e1f781bbf0af6649bee2777f6e32e234844 | refs/heads/master | 2022-07-05T13:10:51.406119 | 2020-05-17T21:57:20 | 2020-05-17T21:57:20 | 238,088,693 | 0 | 0 | null | 2020-05-17T21:57:22 | 2020-02-04T00:11:32 | Python | UTF-8 | Python | false | false | 21,291 | py | import os
import pickle
import sys
import matplotlib.pyplot as plt
from Chromosome import *
from DefineStates import *
random.seed(CubeConstants.seed)
class Cuberoid:
def __init__(self, _configuration, _n, _chromosome_length, _population_size, _mutation_rate, _max_iterations,
_elite, _config_c... | [
"achuunnikrishnan1@gmail.com"
] | achuunnikrishnan1@gmail.com |
ce5f5ad35cd9724f793635facd78f30c9089db02 | 93f3cbe9e3b5ec732cd9cbb4e144f74d45a439ad | /rev3/solve.py | 5ffb1af272998091cd74fb759168200b46263bd8 | [] | no_license | bennofs/cscg20 | 574256a17036f3c08a3cacca47f216466623ac88 | 8f1377ee5003cbf75fe4675a4cc43ccc8b0254e7 | refs/heads/master | 2022-09-11T03:15:45.298241 | 2020-05-31T18:15:53 | 2020-05-31T23:36:59 | 248,774,365 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!/usr/bin/env python3
import angr
import socket
p = angr.Project("./rev3")
sm = p.factory.simulation_manager(p.factory.entry_state())
sm.explore(find=lambda s: b"right" in s.posix.dumps(1))
s = socket.socket()
s.connect(("hax1.allesctf.net", 9602))
print(s.recv(100))
s.send(sm.one_found.posix.dumps(0))
print(s.recv(... | [
"benno.fuenfstueck@gmail.com"
] | benno.fuenfstueck@gmail.com |
d75b698c226ed15a03af9baa81e247e3850aada7 | 92e0cb619b50b465082adc7058447c377447f7ce | /Test code12.py | c4befcceb5f3ccf0907b3be2ae01f5133bf7ea42 | [] | no_license | KeDixMCA/Test | f991bfc72490e4dfc644351a3bf800929bbd2a27 | ff7f7992b2553b6d0d488de775cd7fd2e3ef091e | refs/heads/master | 2023-01-30T13:44:24.640412 | 2020-12-16T05:28:47 | 2020-12-16T05:28:47 | 316,904,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | x = 1 / 2 + 3 // 3 + 4 ** 2
print(x) | [
"61177206+KeDixMCA@users.noreply.github.com"
] | 61177206+KeDixMCA@users.noreply.github.com |
76c88c378f30434c23ff53230551d62966e81f4c | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Dazzle/SettingsSandwich.py | 4bf884a1566ec11046ea8ac3aff429377d644bff | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 18,357 | py | # encoding: utf-8
# module gi.repository.Dazzle
# from /usr/lib64/girepository-1.0/Dazzle-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of th... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
8dc31ef220e3a12803bb906e33892e6ea9a93a18 | b00873d36e44128ce30623da0ee3b556e4e3d7e7 | /solutions/solution725.py | 534be36c9402b8115b72bfe0c67a417dff55304b | [
"MIT"
] | permissive | Satily/leetcode_python_solution | b4aadfd1998877b5086b5423c670750bb422b2c8 | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | refs/heads/master | 2021-07-18T07:53:10.387182 | 2021-07-17T06:30:09 | 2021-07-17T06:30:09 | 155,074,789 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | from data_structure import ListNode, build_link_list, flatten_link_list
class Solution:
def splitListToParts(self, root, k):
"""
:type root: ListNode
:type k: int
:rtype: List[ListNode]
"""
def split(h, lh):
if h is not None:
p = h
... | [
"houjiaxu@xiaomi.com"
] | houjiaxu@xiaomi.com |
c3fed80595739ad1d496d693798265472af3607a | 6439bf971c39fc99813b6330532c3dce15e9da4a | /__SocialMedia_Sites.py | af4c328cf9d4536b5aabd7a9a8bc93e5993f2be8 | [
"MIT"
] | permissive | elithaxxor/pi_repo | 830c07059d1b779270eeb467de381d9cef44eedb | 8e54e32dfcc06ce777d13010b3d1efb1fd9ef43a | refs/heads/main_pi | 2023-08-10T16:00:53.868384 | 2021-10-04T23:55:20 | 2021-10-04T23:55:20 | 412,363,849 | 0 | 0 | MIT | 2021-10-01T07:13:14 | 2021-10-01T07:03:25 | null | UTF-8 | Python | false | false | 5,432 | py | #import socialmedia
#from socialmedia import USERNAME
USERNAME = input(f'[sys] Enter Username:' )
# INSTAGRAM
instagram = f'https://www.instagram.com/{USERNAME}'
# FACEBOOK
facebook = f'https://www.facebook.com/{USERNAME}'
#TWITTER
twitter = f'https://www.twitter.com/{USERNAME}'
# YOUTUBE
youtube = f'https://www.you... | [
"noreply@github.com"
] | elithaxxor.noreply@github.com |
be997587cc38355d84971511c1c26382c31d8d72 | 9e4792da65829c0605d42e27a79f568f7ad8cc30 | /Transmit_Ardino.py | 1661509706b626696d582c01421950c4905af4f2 | [] | no_license | mihirkawatra/homeautomation | 88aa1b8e556128e0293dbb6369ea96b8750b3ca5 | 4c9cddca89b562a5d7c398cff4c1ecdc9ac2d3a8 | refs/heads/master | 2020-04-23T08:30:10.857158 | 2019-02-16T18:51:11 | 2019-02-16T18:51:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | import serial
k = str("")
response = str("")
def transmit(msg):
ser = serial.Serial('com4',9600,parity=serial.PARITY_NONE,stopbits=serial.STOPBITS_ONE,bytesize=serial.EIGHTBITS,timeout=1)
if(msg=="on" or msg == "three"):
k = "on"
elif(msg=="off"):
k="off"
elif(msg=="fan_on"):
k="fan_on"
elif(msg==... | [
"mihirkawatra98@gmail.com"
] | mihirkawatra98@gmail.com |
a39449cefa7af5148914f91fc5647fafe9ca4355 | c8c790edfce8522ce196955c7da4494d34a0290c | /insta_auto.py | 9a34d320961126f5ec3638690e369f87da978041 | [
"MIT"
] | permissive | anounman/Insta-Follow-Boster-For-Indian-Users-With-Python | c36b2932c6bff593155b291464de67b71b165b76 | e476b48e3a3371178f1c9188de1833d0856a05b0 | refs/heads/master | 2023-04-06T23:38:03.512395 | 2021-04-03T05:55:09 | 2021-04-03T05:55:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | from time import sleep
import datetime
import random
from instagram_private_api import Client, ClientCompatPatch
username = "username"
password = "password"
try:
api = Client(username, password)
except Exception as e :
print(e)
sleep(random.randint(200, 300))
pass
def follow():
f = open('ids.... | [
"noreply@github.com"
] | anounman.noreply@github.com |
c3784b117e770c6c6948e80849e5bd8cf0457254 | 7727187a009e4b9c46c2fe06609372ec8814cd23 | /test/test_augment_data.py | d83bec586121132d679dc61a95c78929cece6eea | [] | no_license | govtmirror/freemix-akara | ebf204554f4effc0543e60083698f2ea012413b8 | 1d10c3f02afbd4268852e2c52afdf77809176bdd | refs/heads/master | 2021-01-12T07:47:08.183429 | 2014-06-05T18:53:56 | 2014-06-05T18:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | import os
import urllib, urllib2
from urllib2 import urlopen
from freemix_akara import __version__
from server_support import server
RESOURCE_DIR = os.path.join(os.path.dirname(__file__), "resource")
def test_augment():
import simplejson
url = server() + "augment.freemix.json"
req = urllib2.Request(url)
... | [
"dfeeney@gmail.com"
] | dfeeney@gmail.com |
67d57a5427e0bd112d0c8b58a7e3fcc7a4b6cac6 | a76401f82ed1c9ac47ddaff27681b90f37627426 | /.history/student_olx/main/models_20210914210437.py | 4dc4e069e91d0907166c727d7146b7a75b293961 | [] | no_license | RiteshK555/itw-project | e90e1dd13517ee8b07d72cc3bd5a42af367ab587 | a2e4c8682c2030ff77da9ade5ae4677bd475f87a | refs/heads/master | 2023-08-30T03:48:58.904979 | 2021-11-10T09:50:59 | 2021-11-10T09:50:59 | 410,032,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from django.db import models
# Create your models here.
class ToDoList(models.Model):
name=models.CharField(max_length=100)
def __str__(self):
return self.name
class Item(models.Model):
todolist=models.ForeignKey(ToDoList,on_delete=models.CASCADE)
text=models.CharField(max_length=100)
compl... | [
""
] | |
0bb1525310eb1413798c18b37fff07653451452a | 477c6821a11a8fbd0aa0f941be0bdece423d159d | /venv/bin/flask | 0f20895c4ca369ffb602363ea11844488cc35787 | [] | no_license | ruthviksai/WeatherApp | 0f9cf5b328f2cb6b01baea1740fe3b5a6f8c9e0e | 14ba6e1b356067bcfd3434af9191b23d9cf234ca | refs/heads/master | 2021-06-27T10:50:11.690968 | 2019-09-28T20:11:35 | 2019-09-28T20:11:35 | 211,556,027 | 0 | 0 | null | 2021-03-20T01:46:58 | 2019-09-28T20:10:39 | Python | UTF-8 | Python | false | false | 247 | #!/Users/ruthvik/Desktop/WeatherApp/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ruthvs@uw.edu"
] | ruthvs@uw.edu | |
59560666f370de54095a5d4639b4b0ef6157eb06 | 5b91fa8588c7b8b556c027e308321f59ac7cf5f3 | /src/parameters/lgb.py | 2fafc10c6faf6a1d658adff4fe78a57ebb66abd1 | [] | no_license | ykfujita/jpx1-3rd | 0cd8a25cfd1d85ff0a69af52e73d3f14d54d0785 | e632f4663f2422730c5b5279ecc971d7345bec59 | refs/heads/main | 2023-07-06T21:25:44.661074 | 2021-07-21T20:31:58 | 2021-07-21T20:31:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,479 | py | from src.eval.spearmanr import custum_eval, custum_eval_sklearn
model_params = {
'objective': 'regression',
'metric': 'spearmanr',
# 'learning_rate': 0.01,
}
# sklearn interfaceでfitされるときに渡すパラメタ
fit_params = {
'eval_metric': custum_eval_sklearn,
'early_stopping_rounds': 100
}
# optunaを通してlgb.train... | [
"charmer.popopo@gmail.com"
] | charmer.popopo@gmail.com |
97acc03ad3a35a433738121b10ab65da2dade94f | 409924961d406d274eccd872db21c29c6cc36d38 | /pymoticz.py | 97b39c07f2f4ab0e2f478aa2dec250b50816e115 | [] | no_license | EirikAskheim/pymoticz | 580b1f6a1080b933a2096acaaefe0cbf7a570feb | 03401ba2e9b602aca03d808560cd2a277a4df363 | refs/heads/master | 2016-09-09T23:46:02.891189 | 2013-03-06T21:53:11 | 2013-03-06T21:53:11 | 8,611,079 | 2 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,019 | py | #!/usr/bin/env python
"""Usage:
pymoticz list [--host=<host>] [--names]
pymoticz test
pymoticz status <id> [--host=<host>]
pymoticz on <id> [--host=<host>]
pymoticz off <id> [--host=<host>]
pymoticz dim <id> <level> [--host=<host>]
"""
import requests
import json
__all__ = [ 'Pymoticz' ]
__vers... | [
"eirik.askheim@gmail.com"
] | eirik.askheim@gmail.com |
27f0647ab06a5b9260d9c3e0850850fed952ff92 | e7a9239cbab66ad08e70b4961bbeadfd726cf983 | /org/konghiran/lesson/_00_python_object_and_data_structure_basic/_02_variable_assign.py | 17e0292183e66173a68b2142a9068a9e407895dd | [] | no_license | kidpeterpan/my-python-tutorials | 5a38a33cd5e39bac55b34b4f7d7f7f65a1c1bf96 | 14b89ad01c2b209d2a76ab324ca27867cec5d1c6 | refs/heads/master | 2020-11-24T12:23:27.526993 | 2020-01-10T00:38:27 | 2020-01-10T00:38:27 | 228,141,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py |
# container = value
# dynamic type, no need type declaration
my_dogs = 2
print("value is ", my_dogs)
print("type is ", type(my_dogs)) | [
"zealotkid711@gmail.com"
] | zealotkid711@gmail.com |
7c5b72f5791bf236f67f5a96f18f52171a8fadb4 | 1fdde494b9d5f03be7935e726b810795a1cbd3e9 | /code for comparing with others/permanence_igraph.py | 152a14b0ccd07f9cc0022e2e218c5991a3cfa0ac | [] | no_license | KingofTetris/Permanence-Dynamic-Game | bda83d3a43ec1da8f0c289c85f14cfb5eab338c7 | c8518720a9857799e09e3c7cc4a670ed114d8d82 | refs/heads/master | 2023-03-16T08:16:05.626699 | 2018-05-15T20:11:19 | 2018-05-15T20:11:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | from collections import defaultdict
def permanence_node_igraph(g,clustering,node_v):
'''
This function is used for calculating the permanence of community result w.r.t a vertex.
The input will be igraph classes Graph and VertexClustering,Vertex.
'''
if node_v not in g.vs:
print "There isn't ... | [
"fei.jiang1989@gmail.com"
] | fei.jiang1989@gmail.com |
5cf300d98689ea5070ebed56ea833ea47e67eb59 | 9d46c736618aa2637905537571991b2733fb45ff | /Machine learning/best-fit-line.py | e0279b2654ed923ab8d97a13a39a426dd539d3e4 | [] | no_license | rajankumar549/python-lab | be9192d07ad4e791486fdccc891420ccbde7c534 | b841b71ba5a70612e6ea5feb653a5f4d3949f8f3 | refs/heads/master | 2021-01-18T16:57:07.300628 | 2017-08-16T10:27:11 | 2017-08-16T10:27:11 | 100,477,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | from statistics import mean
import matplotlib.pyplot as plt
import numpy as num
def get_slope(xs,ys):
m=(mean(xs)*mean(ys)-mean(xs*ys))/(mean(xs)**2-mean(xs**2))
b=mean(ys)-m*mean(xs)
return m,b
if __name__=='__main__':
xs=[1,2,3,4,5,6]
ys=[5,4,6,5,6,7]
plt.style.use('fivethirtyeight')
x... | [
"rajankumar549@gmail.com"
] | rajankumar549@gmail.com |
0f10998dfce475ee752d0584a54d59b17aa336f5 | 1e8b6d1795ffb21029f79aa37ea51c8166aa76fc | /src/resnet.py | 3696e9db6bb77cf05de90276827296789cda7125 | [] | no_license | sinat-jiang/VerificationCodeIdentification | eee309f9656f78492a37026c964cd0fa1da9bdc5 | 86eba7dff1b5733cd54a51843facc1574d29c9ba | refs/heads/master | 2023-04-13T17:43:48.775529 | 2019-12-13T11:05:41 | 2019-12-13T11:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,869 | py | """
resnet 结构网络在当前分类任务中的定制版本
"""
# 实现 ResNet 的基本模块
import torch
from torch import nn
from torch.nn import functional as F
# ResNet 中的基本残差单元
# 通过这里可以看出 pytorch 中允许自定义一个网络子模块,然后指定其 forward 方法,最后可以在主网络中添加该子模块
class ResBlk(nn.Module):
"""
resnet block
"""
def __init__(self, ch_in, ch_out, stride=1):
... | [
"jiangbiao0903@163.com"
] | jiangbiao0903@163.com |
86a5818d0043a344ae72b4203da03fb978aebf6c | 457ac5574b7c2c2022664d29956675c5fb0d74fe | /Problems/Yearly income/task.py | 9560acb39f6d94224d521d27a7b91042b4f25524 | [] | no_license | UlyanaLes/hyperskill_Rock_Paper_Scissors | 5d273a22a8fef33f3795a027e33163f2c5e174d5 | beddbb227733a11d512f01f577811590f96fd5b2 | refs/heads/master | 2022-09-26T05:37:00.180658 | 2020-06-03T20:03:09 | 2020-06-03T20:03:09 | 269,172,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | # write your code here
with open('salary.txt', 'r') as infile, \
open('salary_year.txt', 'w', encoding='utf-8') as outfile:
for line in infile:
print(int(line) * 12, file=outfile)
| [
"ulles91@gmail.com"
] | ulles91@gmail.com |
220ed672271890003ae733c18575bbbb6bd7e81f | 8cdbfe5e78efde3e3020773ea367daf4430becf8 | /user_activity_anomaly/knn.py | eb2b1b0e9261b05760a78bde477d7dbc08c60eb1 | [] | no_license | NatarajanLalgudi/machine-learning-example- | 6358ea294506fd52ad9574cb64b0b82798e65e43 | a0f4071d83df5b3fac27b1eadb4379800775c8a7 | refs/heads/master | 2023-04-07T14:54:35.110161 | 2020-04-02T15:10:53 | 2020-04-02T15:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | from sklearn.neighbors import KNeighborsClassifier
from sklearn import metrics
from sklearn.model_selection import train_test_split
import pandas as pd
import joblib
import matplotlib.pyplot as plt
df1 = pd.read_csv("D:\\OneDrive\\Machine Learning Reference\\user_good.csv")
df2 = pd.read_csv("D:\\OneDrive\\M... | [
"noreply@github.com"
] | NatarajanLalgudi.noreply@github.com |
fc9dd45534fb6b6e55d49c2ab5ed2c5cc4fdbff6 | 1274a505e78d4daa756bdd28bb04edb65ae3317d | /app.py | 2720f54de3ff8f38b187aef4d752960bec1bd7ee | [] | no_license | Deretaz/ImageScreensaver | 34cb59f1454e0aaf90d89736dc54f2f5cac75876 | 275693a15aa0a7d9a2e464bb5f67120c4cbcb8e4 | refs/heads/master | 2022-01-18T02:31:35.842948 | 2019-07-06T17:36:20 | 2019-07-06T17:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | import sys
import os
import pygame
import random
import time
import glob
from PIL import Image
from win32.win32api import GetSystemMetrics
def main():
# Center the Screen
os.environ['SDL_VIDEO_CENTERED'] = '1'
# Get screen resolution
screen_resolution = [int(GetSystemMetrics(0)), int(GetSystemMetrics(... | [
"benjamin.sobe@codersgen.de"
] | benjamin.sobe@codersgen.de |
520e94135de20c0dd4494037fc3290ebd531396f | 9a72d97ec915829889ccc29c02f37d3672d363a5 | /CcloudTv.bundle/Contents/Libraries/Shared/streamlink/plugins/speedrunslive.py | feb1df0e5f78bdb03bffbc19a1347075ab7faefb | [] | no_license | alex-alex2006hw/plex-plug-ins | 64a63ddfb8b990a2499b62247a3a5824515339fb | 4d2e7be53dfffb02666ff2791fc0bc94cd6b396d | refs/heads/master | 2021-04-09T17:18:24.619889 | 2018-03-18T22:25:16 | 2018-03-18T22:25:16 | 125,717,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | import re
from streamlink.plugin import Plugin
TWITCH_URL_FORMAT = "http://www.twitch.tv/{0}"
_url_re = re.compile("http://(?:www\.)?speedrunslive.com/#!/(?P<user>\w+)")
class SpeedRunsLive(Plugin):
@classmethod
def can_handle_url(self, url):
return _url_re.match(url)
def _get_streams(self):
... | [
"alex2006hw@gmail.com"
] | alex2006hw@gmail.com |
e0bd3ed5653ee04033e69979c01df42beabf0916 | 2e0a4d35ef1d42523ec7d76f85a1b57002a2562e | /Python3.5/Head first Exercise/Exercise/webapp/cgi-bin/initdbtimingdata.py | 0c6ad0d0ee1819e675ef342d26beccfef5fe1730 | [] | no_license | starVader/Python | de7b930346f996181d8bf4f5eec37ffba5a2736b | 347b2289c86ffafab19681ddbc990064b6e13fe0 | refs/heads/master | 2021-01-10T03:42:57.589362 | 2016-02-17T05:19:41 | 2016-02-17T05:19:41 | 48,681,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import sqlite3
connection = sqlite.connect('coach.sqlite')
cursor = connection.cursor()
import glob
data_files = glob.glob("../data/*.txt")
athletes = athletemodel.put_to_store(data_files)
for each in athletes:
time = athletes[each].times
cursor.execute("INSERT INTO timing_data(times) VALUE(?)",(times))
connection... | [
"starvader473@gmail.com"
] | starvader473@gmail.com |
d9e6bf00ca6abe565d935cf41b72703f7ac8a861 | 8370b4ae01178a5e28460ff27f4a9a0065b5745f | /config.py | 0a18d7ca43cceaf7ca0336b1da55e6aee5560147 | [] | no_license | peindunk/hardcore_tv | 1ace823b6c33c2db92396a34474f8432aeead879 | 9184d9539b4fbee72461f3a702a872424fd27254 | refs/heads/master | 2022-12-10T01:34:14.425308 | 2019-01-21T01:15:41 | 2019-01-21T01:15:41 | 161,636,491 | 0 | 0 | null | 2022-12-08T01:20:15 | 2018-12-13T12:32:27 | JavaScript | UTF-8 | Python | false | false | 639 | py | # -*- coding:utf-8 -*-
'''
https://www.jianshu.com/p/7e16877757f8
'''
zq_api = "rtmp://txrtmp.cdn.zhanqi.tv/zqlive/"
SECRET_KEY = 'hardcore_tv'
pcgame = ['英雄联盟','DNF','绝地求生','魔兽世界','DOTA2',\
'梦三国2','守望先锋','三国杀','梦幻西游','传奇','暴雪游戏']
videoGame = ['主机游戏','火影忍者']
mobileGame = ['CF手游','热门手游','王者荣耀','吃鸡手游','第五人格... | [
"413447197@qq.com"
] | 413447197@qq.com |
9f164b011736f56f17f02abad61284630861b3ce | e9b7d1c8fe62a9cc0f96141b13902d95ca736baf | /django/mysite/mysite/settings.py | 4397713e968d26dfb596b1b30532aec72bc78fd2 | [] | no_license | andybao/daily_work | 26d5aee8b47b898cd6672afa927827ede789548d | b71850fbe978ed1ce2945a7d55d5dea6fbd13483 | refs/heads/master | 2022-12-22T04:13:21.701101 | 2020-04-12T13:54:23 | 2020-04-12T13:54:23 | 184,680,151 | 0 | 0 | null | 2022-12-11T01:24:59 | 2019-05-03T00:59:46 | Python | UTF-8 | Python | false | false | 3,294 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"wenyu.bao@gmail.com"
] | wenyu.bao@gmail.com |
77b43d7d9cd6b912bcee471c564b47d7a7cdd552 | 63944fb28b938e30ca5c831edce8bd2d643aaef6 | /forms.py | f3a30f3222b762ce75ea2c2eb55a4caabe9b859d | [] | no_license | Saptak625/BoldifyAWSPipline | 35cf76a83dcb4730b031a434b45abf3aac9a56b4 | f35bed14307f2dcc71daf0882ded6af5eb3748b9 | refs/heads/main | 2023-06-06T21:30:56.036420 | 2021-07-01T16:51:02 | 2021-07-01T16:51:02 | 382,098,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired, Length
from flask_ckeditor import CKEditorField
class BoldifyEncryptForm(FlaskForm):
boldMessage = StringField('Bolded Message: ',
validators=[DataRequired()])
submi... | [
"24sdas@student.dasd.org"
] | 24sdas@student.dasd.org |
f1f4be0600c0a96312d2b00339681c2c5efff41b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_cackles.py | b56545b1c6dceb5e279e87bc0ba44c4f57263de2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py |
#calss header
class _CACKLES():
def __init__(self,):
self.name = "CACKLES"
self.definitions = cackle
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['cackle']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0f7ddbc55809f101e6c51e745fc682ec6439b74a | edbf8601ae771031ad8ab27b19c2bf450ca7df76 | /283-Move-Zeroes/MoveZeroes.py | b7e24b42230eae378975aceeeb96569feb6628fa | [] | no_license | gxwangdi/Leetcode | ec619fba272a29ebf8b8c7f0038aefd747ccf44a | 29c4c703d18c6ff2e16b9f912210399be427c1e8 | refs/heads/master | 2022-07-02T22:08:32.556252 | 2022-06-21T16:58:28 | 2022-06-21T16:58:28 | 54,813,467 | 3 | 2 | null | 2022-06-21T16:58:29 | 2016-03-27T05:02:36 | Java | UTF-8 | Python | false | false | 548 | py | class Solution(object):
def moveZeroes(self, nums):
"""
:type nums: List[int]
:rtype: None Do not return anything, modify nums in-place instead.
"""
if not nums or len(nums)<2:
return
slow=0
fast=0
size=len(nums)
while fast < size:
... | [
"gxwangdi@gmail.com"
] | gxwangdi@gmail.com |
d00e8228569d9fb43bc734b6edf4821d25af7ce6 | 640e7bc10ceaf1343327feb8b7b6f83fc1f0be60 | /deeprl_hw2/preprocessors.py | fbef69beca884d71e21f96e5ab0deb6ccab6de12 | [] | no_license | MightyChaos/deepRL_DQN | b2d19201610ac3671060ce9841f643c1c20c0ab1 | 70484095c3b71d893678a43e1d0aed4716811a79 | refs/heads/master | 2021-01-23T01:01:31.522798 | 2017-03-30T02:40:18 | 2017-03-30T02:40:18 | 85,863,284 | 0 | 0 | null | 2017-03-22T18:37:02 | 2017-03-22T18:37:02 | null | UTF-8 | Python | false | false | 6,198 | py | """Suggested Preprocessors."""
import numpy as np
from PIL import Image
from deeprl_hw2 import utils
from deeprl_hw2.core import Preprocessor
from collections import deque
class HistoryPreprocessor(Preprocessor):
"""Keeps the last k states.
Useful for domains where you need velocities, but the state
co... | [
"yangluonaluna@gmail.com"
] | yangluonaluna@gmail.com |
ad4a9ade81342bbd4739b4c548e4166cf5f70c76 | ddcbb3efa6dcf72e1e704bd811666721d966678c | /fuselage/models.py | 3035a7dcc58dea3e04c561c0326f235fa03c67c0 | [] | no_license | mattdeboard/planecrash | 20e402bb5ec506e0c140cdf95f11937b3f268659 | e6e86fa1866dba00e175aa9e4637f5aeaf098f65 | refs/heads/master | 2021-05-01T16:37:15.683734 | 2014-01-28T05:02:01 | 2014-01-28T05:02:01 | 16,116,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,196 | py | from django.db import models
from uuidfield import UUIDField
class ArticleManager(models.Manager):
def by_category(self, short_name, include_unprioritized=False):
"""Retrieve all the articles for a given category short name.
This differs from the standard
`filter(category__short_name='fo... | [
"matt.deboard@gmail.com"
] | matt.deboard@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.