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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa0eb2304723651a84891f2939dba38fde4c68ce | 90dc956890f6581424aa0925c86c5752a19ba618 | /url_shortner.py | eb52b4d306b0277fdb7d4c8f3d576815288f4a62 | [] | no_license | Narentest/Applause-task | 0579dc812c5c2304cab6a5af8ad629008a83d3e7 | 072d121578d2ffdb7f6a1cb9de1d7d1f74e8c945 | refs/heads/main | 2023-03-13T22:36:32.499849 | 2021-03-15T00:03:09 | 2021-03-15T00:03:09 | 347,784,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from __future__ import with_statement
import contextlib
try:
from urllib.parse import urlencode
except ImportError:
from urllib import urlencode
try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen
import sys
def make_tiny(url):
request_url = input('enter url:' +
urlencode({'ur... | [
"narendarmsctesting@gmail.com"
] | narendarmsctesting@gmail.com |
cd009ea532016e6d794b44635f9cf787d176f987 | d374478ba42d027e730e2b9d378b0a08de9c23b5 | /4. Building your Deep Neural Network/linear_backward.py | a7d5789fc96744d2b4c971623e11c58a98dfa9a2 | [] | no_license | kuangzijian/Neural-Networks-and-Deep-Learning | 8ffe46e7b99611c033f54d553a897313b36ea22b | 781d62679497e9dfa6e6556d2b49a6366c6f945f | refs/heads/master | 2023-08-08T07:32:13.280785 | 2021-05-05T16:44:49 | 2021-05-05T16:44:49 | 217,354,065 | 0 | 0 | null | 2023-07-22T19:42:15 | 2019-10-24T17:20:55 | Python | UTF-8 | Python | false | false | 990 | py | # GRADED FUNCTION: linear_backward
import numpy as np
def linear_backward(dZ, cache):
"""
Implement the linear portion of backward propagation for a single layer (layer l)
Arguments:
dZ -- Gradient of the cost with respect to the linear output (of current layer l)
cache -- tuple of values (A_prev, ... | [
"kuangzijian1@hotmail.com"
] | kuangzijian1@hotmail.com |
6137c990285e636fdf82e210f75dee172cfa4c61 | 618eb6d8c9aca9a179ef252d1e4cb9ab13449e13 | /String/Pattern Matcher.py | db791da8160afb25e4caeaa9c09768f531257c23 | [] | no_license | kotsky/programming-exercises | 8966660986d8baf0467f1efc88b606b7d61a31f7 | 636b1f6b0ab28c6eef8f8900e68393f7b1fb931a | refs/heads/master | 2023-04-16T22:40:21.461494 | 2021-05-02T03:48:56 | 2021-05-02T03:48:56 | 268,241,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py | '''
(patternMatcher("xxyxxy", "gogopowerrangergogopowerranger")) => ["go", "powerranger"]
TO define patterns as x = "go" and y = "powerrangers" in the given string.
Count of x and y. Then calculate len of possible substrings. And check every time for new substring of x.
'''
def patternMatcher(pattern, string):
i... | [
"noreply@github.com"
] | kotsky.noreply@github.com |
a6413ee47a04dd4a4c2b9d22eed87295184b3f8e | 919156799a5dd4b8bfed059b30af5e98fa2686ed | /Clustering/hierarchical_clustering.py | b6902c0b8aafc203b622ee52fbdc2d1f7a192afc | [] | no_license | SoniaCheung/Machine-Learning-Samples | 6060d59ca287e3e91ca0aea9a2307e5f0dac5fad | a0cf9b15f3202bf9ed6cef73f8e09d2f33ad9e34 | refs/heads/master | 2020-03-29T22:55:31.035544 | 2018-10-04T14:21:28 | 2018-10-04T14:21:28 | 150,447,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 18 19:08:27 2018
@author: sonia
Hierarchial Clustering
"""
#Hierarchial Clustering
#import libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#import the mall dataset with pandas
dataset = pd.read_csv('Mall_Customers... | [
"soniacym@gmail.com"
] | soniacym@gmail.com |
ebb70ae6174007de438a9ebda6abaf0d24309a98 | 76d4de4ec3ae352bdeb55bf216afab7984c6fd63 | /server/main/api/security.py | 5054ca6f0fd8ff14ef71b938dfc4511fd68a0bc6 | [] | no_license | krystofwoldrich/via-project | 41e041df8b5120b9c99b30b6b52864752e88c785 | d332710914c4d25c06caf4ecd9f041ddf5dcb119 | refs/heads/main | 2023-02-11T08:36:46.187582 | 2021-01-07T12:26:29 | 2021-01-07T12:28:35 | 303,415,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | import uuid
import jwt
from flask_restplus import Namespace, Resource, fields
from flask import request
from werkzeug.security import generate_password_hash, check_password_hash
from functools import wraps
from parameters import config
from custom_time.custom_time import get_now_utc_iso_string
from datetime import date... | [
"krystof51@gmail.com"
] | krystof51@gmail.com |
5d3672c2a1c6bca4c072e56a67bdf929bf920c55 | 82eb24f0e9c9501727e339ec9cad9991a8ade618 | /GREETINGBOOK/socailmedia/__init__.py | 1349c1cd5b688fa8b10b1f8d831d3862c8b5b689 | [] | no_license | kundan1989/GreetingbookProject | 4bf706e79b456fd0e98d745f9a8021e60d7c7ee2 | 73248f0925b5b8fbf6b6abe827213fa37a772573 | refs/heads/master | 2022-04-27T15:01:54.557678 | 2020-04-29T09:09:42 | 2020-04-29T09:09:42 | 259,877,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | default_app_config = 'socailmedia.apps.SocailmediaConfig' | [
"kundanrj3@gmil.com"
] | kundanrj3@gmil.com |
bcdcadd3fdf0e87272d4063922c370c1021fbee4 | a055563d1fcc798db4c1a5aca01bcdc86fa95a5e | /config_file_create.py | 45a3fe31a8d88cace8f880764c83ab6829ac914e | [] | no_license | arun-618/cloud | 8f7c13b4a2f49689dea68ebe669263821d7dde36 | 529cbdd6317ff6f677eb38351b17d029078f6b58 | refs/heads/master | 2021-04-08T02:40:15.594748 | 2020-05-12T05:28:47 | 2020-05-12T05:28:47 | 248,731,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from configparser import ConfigParser
from mongoengine import *
config = ConfigParser()
config['settings'] = {
'username': "arun",
'pwd': '618618618'
}
with open('./dev.ini', 'w') as f:
config.write(f)
| [
"noreply@github.com"
] | arun-618.noreply@github.com |
8aba2942340cc5f1e675229a80ce52ff0a0f4244 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/M/martharotter/wikipediavisualiser.py | 8077e845b760b04b80b2c4f75a79ad8f643a9261 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | import scraperwiki
scraperwiki.sqlite.attach("wikipedia_paper_scraper_until_jan_20")
data = scraperwiki.sqlite.select(
'''* from wikipedia_paper_scraper_until_jan_20.swdata
order by id desc limit 10'''
)
print "<table>"
print "<tr><th>ID</th><th>Tweet</th><th>User</th>"
for... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
21b55be9be866eef698898b832f2d7cd8f6c1b9a | d393e9b2feda1145a36a5d0963a75e7fa303d1dc | /week_5/dlp.py | cbcd74ac0c6c5a0448b28d7437aabae64638c723 | [] | no_license | c-ripper/coursera-crypto | 84b8c9f325f187b90c331fa57a129e0df96368e4 | 3201adbd5b850cb7f01259dffac512fc7fd880ea | refs/heads/master | 2021-07-24T03:37:19.054505 | 2017-11-04T12:16:16 | 2017-11-04T12:16:16 | 109,491,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | from gmpy2 import f_mod, invert, mpz, powmod
from multiprocessing import Pool, cpu_count
from timeit import default_timer as timer
###################################################################
# Programming Assignment for Week 5 - Solve DLP for G^X = H mod P #
###################################################... | [
"alexander.berezovsky@gmail.com"
] | alexander.berezovsky@gmail.com |
fa226e9c59edd983c0b72c84bcd9a980cb861f7c | 148537b9709b5c1ee5ddd43c30430eccb338aec4 | /keras_ana_mit_cent_sort.py | df2dd09a41e9a857cfc4d309b489bb498e5bd141 | [] | no_license | vheinitz/learn_keras | 571137fe83b048c3e51bbe2cb6284fbefd5e404e | 0efc894cbe30fad454a697f7ecc7c76497591dd1 | refs/heads/master | 2021-01-25T12:43:49.190862 | 2018-03-01T23:57:02 | 2018-03-01T23:57:02 | 123,503,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | # Valentin Heinitz, vheinitz@googlemail.com, 2018.01.01
# L E A R N I N G K E R A S WITH
# https://www.youtube.com/playlist?list=PLtPJ9lKvJ4oiz9aaL_xcZd-x0qd8G0VN_
# Using ANA-HEp2, ANCA, dDNA data sets
#
# Find mitosis in images of Centromere-pattern cells and sort them in different
# directories
import numpy as... | [
"vheinitz@googlemail.com"
] | vheinitz@googlemail.com |
0c0342a2bf22618d0cb8629199ad831bb482d324 | 84a3092c59f828651cc3608449a531ffbcb1a599 | /main.py | 4d6611c2f9d4708464ae2ed24e45c5635ec9d053 | [] | no_license | festivalle/PyTracker-MIDI | 0009a8f70330f5090d1b5ee980650730cd7bb97e | f1443587758f388c729bc6dbae75d1a7bf306183 | refs/heads/master | 2022-04-25T05:45:17.676030 | 2020-04-25T03:44:58 | 2020-04-25T03:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,698 | py | '''
CircuitPython DJ
Inspired by LSDJ and nanoloop gameboy trackers
Code snippets and libraries from the following Adafruit Learning Guides:
FruitBox Sequencer
PyBadge GamePad
Feather Waveform Generator in CircuitPython
Circuit Playground Express USB MIDI Controller and Synthesizer
'''
im... | [
"noreply@github.com"
] | festivalle.noreply@github.com |
8a7325c4058cee17ab12e9eb1c91d00c7cfcd48e | b144ca4e7e7e53d35b6c4d56567fc00b771b3e2d | /Scripts/stock_ts_loader.py | d57b9c879b46e9bc4ed3e1577cf4848300a17432 | [] | no_license | junbai94/quant_trading | 02fb052a490e773365ab421b7cb2c4b1aebfaa51 | 3d20ddcc602a586461bd8efddafe5afeed01c416 | refs/heads/master | 2021-08-29T18:11:14.369913 | 2017-12-14T14:53:46 | 2017-12-14T14:53:46 | 110,840,452 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,704 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 27 09:42:12 2017
@author: Junbai
Load SZ50 data from TuShare
Add in get_k_data tomorrow
"""
import tushare as ts
import pandas as pd
import sqlite3
import time
import datetime
DATABASE_PATH = "C:/Users/user/quant_analysis/Database/cn_stock.db"
sql_un... | [
"noreply@github.com"
] | junbai94.noreply@github.com |
2aa6bf269adef4a8e482ad5d9fd5320bbae3df96 | 21c5b922925922c5358075f1b11361cca022530e | /day5/day5a.py | df66bae926b0f43c32c5bcae941c65ec3788472e | [] | no_license | sjstein/aoc2020 | 8efd6aeebfa6ccea4e95debe4d56d5eb88025d22 | be024ad7daf1e9385a18e9263fed69be07d8a0d9 | refs/heads/main | 2023-01-31T16:51:58.907334 | 2020-12-19T03:54:29 | 2020-12-19T03:54:29 | 317,272,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,862 | py | """
--- Day 5: Binary Boarding ---
You board your plane only to discover a new problem: you dropped your boarding pass! You aren't sure which seat is
yours, and all of the flight attendants are busy with the flood of people that suddenly made it through passport
control.
You write a quick program to use your phone's c... | [
"s.joshua.stein@gmail.com"
] | s.joshua.stein@gmail.com |
f9fe3338792613d6f1e728f251acd0f70bd12db0 | 297d5aa6906eac1c05093516a033a6670a4ea88b | /src/haverster/streamtimeline.py | 971de43c23d4f2d115086da1cadb97f93b7cce7b | [] | no_license | xinzhel97/Project_Cloud_Computing_and_Cluster | 05d3af735aec00bea6240efbec2671d926d419ce | e49515b708322753cc8d1ef75dbfa06f650f4291 | refs/heads/master | 2022-11-27T01:59:47.633324 | 2020-08-09T12:57:55 | 2020-08-09T12:57:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | from __future__ import absolute_import, print_function
import tweepy
from auth import consumer_key,consumer_secret,access_token,access_token_secret
from timelineThread import timelineThread
import json
import couchdb
from dblogin import user, password
import sys
class dbStreamListener(tweepy.StreamListener):
... | [
"phyjeremy@outlook.com"
] | phyjeremy@outlook.com |
608b68e973e8bfe9e3922fe3c69dc0ff9a731796 | bf97a169e18a256294018c0a81837e59680859d8 | /ValidBST.py | ce7107a9e086187d0b79f13a34fc2573f8a6d14c | [] | no_license | oskip/IB_Algorithms | 780904842372a608362528758377344e126d3012 | 094d871ac4b808d883d5af5430bac47782132c6b | refs/heads/master | 2021-01-19T04:25:13.948498 | 2016-07-04T16:55:09 | 2016-07-04T16:55:09 | 50,581,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | # Given a binary tree, determine if it is a valid binary search tree (BST).
#
# Assume a BST is defined as follows:
#
# The left subtree of a node contains only nodes with keys less than the node's key.
# The right subtree of a node contains only nodes with keys greater than the node's key.
# Both the left and right su... | [
"oskipet@gmail.com"
] | oskipet@gmail.com |
396ea4c1da477abeef83272f049b43b9c2305edb | ac94172f245ee73e56e4711f8663a8c466f1fa23 | /110.平衡二叉树/solution.py | f890b70c2bf6ad0fad59fe35a57a901cb7450e07 | [] | no_license | QtTao/daily_leetcode | 7aaed0f161f27cd950774fae6d966b04d7e3b76f | 52756b30e9d51794591aca030bc918e707f473f1 | refs/heads/main | 2023-06-05T05:58:36.214308 | 2021-06-28T11:18:05 | 2021-06-28T11:18:05 | 347,343,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | # !/usr/bin/python
# -*- coding: utf-8 -*-
# author : Tao Qitian
# email : taoqt@mail2.sysu.edu.cn
# datetime : 2021/5/15 01:01
# filename : solution.py
# description : LC 110 平衡二叉树
class Solution:
def max_depth(self, root: TreeNode) -> int:
""" 二叉树的最大深度 """
if not root:
... | [
"taoqt@mail2.sysu.edu.cn"
] | taoqt@mail2.sysu.edu.cn |
b0d98af14e50f4bbabae044085c11c80ef37c9df | 81c9bd683398dcd959e623acb3eb5208e5b20ca1 | /classify_images.py | 24fb1e02decc958b4c2b46a98c2e15c4ca507668 | [] | no_license | HienPhanVN/Use-a-Pre-trained-Image-Classifier-to-Identify-Dog-Breeds | de71bd31d68d0bcac146e12571a4847a662b5c56 | a08091a047ef8e08c054e650d67f1046ce524737 | refs/heads/master | 2023-03-21T15:45:58.253372 | 2019-06-29T22:56:59 | 2019-06-29T22:56:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,936 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# */AIPND-revision/intropyproject-classify-pet-images/classify_images.py
#
# PROGRAMMER: Shamil Jamion
# DATE CREATED: 17/04/2019
# REVISED DATE:
# PURPOSE: Create... | [
"noreply@github.com"
] | HienPhanVN.noreply@github.com |
50e0d7ba43a2d2eddaf378c06555d32d6b5d604f | a28e1e659e4dd82be5e253443b0c7a808cdcee92 | /SortAlgorithm/QuickSort.py | ff67210431d9014a59585e9e5f3016511d39ca00 | [] | no_license | LeBron-Jian/BasicAlgorithmPractice | b2af112e8f1299fe17cf456111276fce874586cb | 51943e2c2c4ec70c7c1d5b53c9fdf0a719428d7a | refs/heads/master | 2023-06-07T19:12:16.362428 | 2023-05-27T06:58:12 | 2023-05-27T06:58:12 | 217,682,743 | 13 | 14 | null | 2020-09-12T01:50:35 | 2019-10-26T08:59:04 | Python | UTF-8 | Python | false | false | 4,569 | py | # -*- coding: utf-8 -*-
'''
快速排序
让指定的元素归位,所谓归位,就是放到他应该放的位置
左边的元素比他小,右边的元素比他大,然后对每个元素归位,就完成了排序
正常情况下,快速排序的复杂度是O(nlogn)
快速排序存在一个最坏的情况,就是每次归位,都不能把列表分成两部分,
此时的复杂度就是O(n**2)
如果避免设计成这种最坏情况,可以在取第一个数的时候不要去取第一个元素
而是取一个列表中的随机数。
'''
# 归位函数
def partition(data, left, right): # 左右分别指向两端的元素
# 把左边第一个元素赋值给tmp,此时left指向空... | [
"1171737614@qq.com"
] | 1171737614@qq.com |
711780889d1840fe7188c450ea316d8925f126f2 | 01c9a54caea0d20454a9c3d91a5a6757ca78b94d | /chapter8/formatted_name.py | 5109974d00e59fa8219164c35b1a58b899cbd2bf | [] | no_license | cogoming/astartpy | 4c231e00df80d5d5bcdad63f3e6c36e6a1037edd | c60bc5324c6683b01389e218d678b549a91be0c4 | refs/heads/master | 2021-08-22T21:14:21.967097 | 2017-12-01T09:27:18 | 2017-12-01T09:27:18 | 111,042,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | def get_formatted_name(first_name, last_name):
"""返回整洁的姓名"""
full_name = first_name + ' ' + last_name
return full_name.title()
musician = get_formatted_name('jimi', 'hendrix')
print(musician)
#让实参变成可选的
def get_formatted_name(first_name, last_name,middle_name=''):
"""返回整洁的姓名"""
full_name = first_nam... | [
"qiuming@mq.com"
] | qiuming@mq.com |
1c2e6faec149da7d7536536c274983a294122359 | 1f5cf4f2d2b48ec347a26122d5e121eaa9ccf64e | /tasks1/task1.py | 4b9ecbff41c5e5218ff6a4616094b0c564e2bc53 | [] | no_license | entick/training_it_cloud | 52c49c1c6cadb62d9c6500fece2f1f698ee043b6 | 57c5759883718de357425938b0c42f609e9da490 | refs/heads/ivan | 2021-06-07T19:24:27.291478 | 2017-07-12T15:10:22 | 2017-07-12T15:10:22 | 96,106,290 | 0 | 0 | null | 2017-07-03T12:02:08 | 2017-07-03T12:02:08 | null | UTF-8 | Python | false | false | 265 | py | text = raw_input()
text = text.upper()
repllist = [",",".",":",";","!","?"]
for x in repllist:
text=text.replace(x,"")
list = text.split(" ")
count = 0
for x in list:
if (len(x) > 0):
if (x==x[::-1]):
count += 1
print(count)
| [
"noreply@github.com"
] | entick.noreply@github.com |
c564cb8a4f8fb15ca5244ece24f0664747b45e2e | 2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5 | /archive/513FindBottomLeftTreeValue.py | b9b3b6ac780a028c6dda69b1deef818d7aa4d7fd | [] | no_license | doraemon1293/Leetcode | 924b19f840085a80a9e8c0092d340b69aba7a764 | 48ba21799f63225c104f649c3871444a29ab978a | refs/heads/master | 2022-10-01T16:20:07.588092 | 2022-09-08T02:44:56 | 2022-09-08T02:44:56 | 122,086,222 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 1,254 | py | # coding=utf-8
'''
Created on 2017�2�15�
@author: Administrator
'''
from collections import deque
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def findBottomLeftVal... | [
"yanhuang1293@gmail.com"
] | yanhuang1293@gmail.com |
f62bc2a10938517435c706a53739b1d178c7a593 | dd5c169a925ada08c053723b8c85b3d0ae2c126e | /QuadraticEquation.py | 36043f06a1595542a79c988a00dcc8e3301858be | [
"Apache-2.0"
] | permissive | rajeshjaava/python | 01f8a38d9436cfd43839533fd32286c95ae84cc5 | fefcd92a6ea2db3dddb05365a299636bb6bf50b6 | refs/heads/main | 2023-07-01T21:26:38.526043 | 2021-08-02T15:05:01 | 2021-08-02T15:05:01 | 313,374,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # ax**2+bc+c=0
import cmath
a=1
b=5
c=6
d=(b**2)-(4*a*c)
sol1=(-b-cmath.sqrt(d))/(2*a)
sol2=(-b+cmath.sqrt(d))/(2*a)
print('The solution are {0} and {1}'.format(sol1,sol2))
| [
"rajeshthokala10@gmail.com"
] | rajeshthokala10@gmail.com |
24993c1168307724a1daf85bbc352dab641caf90 | aff612112744272579ec081b189d087e636d923a | /website/app.py | 789fc0ef8f5bd290937b4740b7d49ae7270b8eda | [] | no_license | pythonguru101/CrpytoCurrentMarket | a76bfe9ab647058fcedfd63bbe41f8f421ac385e | b207f54e15883db277b31f60bc8bbca42c9f61b5 | refs/heads/master | 2022-12-16T00:50:02.828610 | 2020-02-27T04:04:38 | 2020-02-27T04:04:38 | 236,615,768 | 0 | 1 | null | 2022-12-08T03:35:04 | 2020-01-27T23:10:02 | Python | UTF-8 | Python | false | false | 36,685 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import time
import os
import commands
# import subprocess
import base64
import csv
import re
import json
import libdb_mysql_web
import decimal
from operator import itemgetter
from flask import Flask, render_template, request, jsonify, redirect, url_for, send_fi... | [
"pythonguru101@gmail.com"
] | pythonguru101@gmail.com |
c20db2103395c74594a0bf40d5860f88f87a367a | cf01f91631bf79c9ad101f271fa12db18b30a336 | /example/theRoom/cgi-bin/home.py | d55605e54662bc7c5565466f56f58018ca496dfe | [
"Apache-2.0"
] | permissive | fallen-geko/QuickPYSER | 69b803dba734c5510dc018fd4fc0f0c2172eb33c | f8e4fb18934f8896794efd4609eef15c88e34d9e | refs/heads/master | 2022-08-13T15:26:12.270353 | 2020-05-25T18:46:44 | 2020-05-25T18:46:44 | 266,401,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,066 | py | #!/usr/bin/env python
'''
------------------------------------------------------------------------------------------
Copyright 2020 Romeo Dabok
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 ... | [
"noreply@github.com"
] | fallen-geko.noreply@github.com |
89e0aa1d612cb9446065b4b76594e32c3d855cd6 | 3fb8b4712ad22f862921c2641fd11743d0a2dbb8 | /tourbag/urls.py | 2a7a492f5332a3a89e4cbfe7f2c752df63a04251 | [] | no_license | klimt1722/tourbag | 57fe76d77d45987bd2f4cf5886c1ad3ba05cf598 | 95b4c8f109596058cfd250ec688dc8c88b3f737d | refs/heads/master | 2021-01-21T06:46:32.893270 | 2017-03-22T14:57:48 | 2017-03-22T14:57:48 | 83,257,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | """tourbag URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"TELL@jangtaeilui-MacBook-Pro.local"
] | TELL@jangtaeilui-MacBook-Pro.local |
54e636829957d06459dc60b547fb5f2dd688a85e | 0e34eb0fd1327c4663ad0b47add223b3ee4764e3 | /rename.py | 0a73cf276b876dc4f6121501ee11e50172521bb5 | [] | no_license | morphIsmail/date-rename | fb19194d03b2a2f16abd0bd7b14d2920df543a36 | 15885874c4190a339991fb24072356c30a933c95 | refs/heads/main | 2023-04-21T19:47:28.475063 | 2021-05-14T07:50:55 | 2021-05-14T07:50:55 | 367,283,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # импорт модулей
import os, re, time, datetime
# проверить ОС == Windows
from sys import platform
if platform == 'win32':
from win32_setctime import setctime
def finder():
# все файлы в текущей директории
names = os.listdir(os.getcwd())
# цикл по всем файлам
for name in names:
# путь к текущему файлу
... | [
"ismail_2016@mail.ru"
] | ismail_2016@mail.ru |
34b90bf1c2adda3444693f646a3b71fa1829dbb0 | 2939265a3ebaabd483aea301d8d7a95469ba417a | /DatabaseCreator_OLD.py | 3354e0887a8fbb3d7ce14ea0867ab98fee702a09 | [] | no_license | sahilshah379/AIAllergy_Database_Creator | 51ad02f2d9a8c20fee92d1c0b5b6f0f8db224eb2 | dd08378ad29d17f1f60ee4195970ea0aa1bd763b | refs/heads/master | 2020-07-21T14:33:02.911897 | 2019-09-08T02:53:15 | 2019-09-08T02:53:15 | 206,896,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,640 | py | import selenium
import requests
import re
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
HEADERS = {'user-agent': ('Chrome/45.0.2454.101 Safari/537.36'), 'referer': 'https://www.food2fork.c... | [
"sahilshah379@gmail.com"
] | sahilshah379@gmail.com |
e278af9ffb8d2abc6f279bbc2b85c83a0d7b416e | 91c39b4ff7198a513d5f11a9d45c75bbf73cf204 | /polls/migrations/0001_initial.py | d3e35778dc0fe7bf6490effbe0382aeaa6037a7d | [
"MIT"
] | permissive | blackway/django-gentelella | 9a238f9576cffdd64e7b9e64af181a597269a5d7 | 63e4b888c4ffa655c4b1d09b3b61c31b06f5c990 | refs/heads/master | 2020-07-07T16:41:25.069642 | 2019-09-28T01:06:55 | 2019-09-28T01:06:55 | 203,409,006 | 0 | 0 | MIT | 2019-08-20T15:59:07 | 2019-08-20T15:59:07 | null | UTF-8 | Python | false | false | 1,163 | py | # Generated by Django 2.0 on 2017-12-28 00:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
... | [
"blackway76@gmail.com"
] | blackway76@gmail.com |
34bffbc478f8a443ab31759de1082a30eb40f037 | 7a84e43b2805fcbbbba1ac6bb3fad2b5f0f4a358 | /douyin/settings.py | 53fbe6c4b071935cde8a1b77fc7259678589813d | [] | no_license | te3/douyin-scrapy | fe45ab37927068e3074ea04f6040fb425e76fd03 | 25a7f538b5ec96a190061728110fbfef1862c163 | refs/heads/master | 2022-11-28T01:36:14.876493 | 2020-08-06T09:47:11 | 2020-08-06T09:47:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | # -*- coding: utf-8 -*-
# Scrapy settings for douyin project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topi... | [
"982781738@qq.com"
] | 982781738@qq.com |
f61d8e2fbef99b67676e23d077048c449257ecbb | 49aa7daaa00b7c0fbf8cd35653e1a58cb4be5ba5 | /pydom/pydom.py | 0de2d476cdcef5591d6d3d8a38d9e3054229fe6a | [] | no_license | arxd/pyweb | 74ca0d02c791396a38b94c472f302a1639717acf | 0777b811f4c81a81b9890484af3f0a98b7bb1bde | refs/heads/master | 2020-03-27T16:56:06.001450 | 2019-06-28T10:20:00 | 2019-06-28T10:20:00 | 146,817,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,857 | py |
from aiohttp import web
import mimetypes, asyncio
import logging, os, json
from datetime import datetime
HTML = """
<!doctype html>
<html>
<head>
<title>{title}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<meta name="description" content="{desc}"... | [
"aaron@framelunch.jp"
] | aaron@framelunch.jp |
2c9401d55b683553a7c4272e8a1b38cb68ba1393 | ecaff4997482b58af6aacd79d5942583fe4d1bd5 | /data/1VII/addlnzref.py | 47c3527c4264c74b76f859739896ee09ff426610 | [] | no_license | 3ki5tj/wham | 3380d8175e55e23935d886bd332b18d023e32c0f | c0d03f4158b29d64824af44366bf403b3f2e3752 | refs/heads/master | 2021-01-17T13:30:31.919446 | 2017-09-14T21:26:15 | 2017-09-14T21:26:15 | 35,853,200 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | #!/usr/bin/env python
''' add reference lnz from MBAR '''
import sys, os, getopt, shutil, re, glob
fninp = None
fnref = "mbar.out"
verbose = 0
def usage():
''' print usage and die '''
print """ Usage:
%s [OPTIONS] file""" % sys.argv[0]
print """
OPTIONS:
--ref= set the reference f... | [
"3ki5tj@gmail.com"
] | 3ki5tj@gmail.com |
d05898717da5b0bdb2eb3a4e61da5f70552a7ed7 | 52a1c705883a283b43587dd993825ae16ace2cd9 | /locallibrary/catalog/urls.py | 62839d6b6cbdeccc89bad0936d830b89ca54b8a1 | [] | no_license | chitkokooo/LocalLibrary | db6643a42178f00e430641334a941e7ffe5010b6 | f99325f529834294f830b67007ca96a302d51a96 | refs/heads/master | 2023-08-25T00:12:26.572477 | 2020-07-18T10:08:27 | 2020-07-18T10:08:27 | 277,484,143 | 3 | 3 | null | 2021-09-22T19:27:33 | 2020-07-06T08:22:19 | Python | UTF-8 | Python | false | false | 1,209 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('books/', views.BookListView.as_view(), name='books'),
path('book/<int:pk>/', views.BookDetailView.as_view(), name='book-detail'),
# Challenge yourself (3)
path('authors/', views.AuthorListView.as_view(), n... | [
"chitkokooo.cu@gmail.com"
] | chitkokooo.cu@gmail.com |
e0f12a86fb901108bf9f2a170c3607667e2e6e21 | 22215eae0bf31c1021cf927155d310ba57adf0fb | /automaton/state_machine.py | 913aa3461a9dcbe5fe1166eb378e5cace0ed6ba7 | [
"MIT"
] | permissive | pombredanne/automaton-5 | 37e466f26d55e3ed34c8780e63b0b9ce1cac66dc | 3f5b6dc4521bc8ee284f732daa7883e49b3433e2 | refs/heads/master | 2020-12-31T03:42:52.956371 | 2013-12-28T01:02:37 | 2013-12-28T01:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | # -*- coding: utf-8 -*-
def to_state_machine(node):
state_machine = {}
nodes = set([node])
visited_nodes = set()
accepting_states = set()
while True:
start_node = nodes.pop()
for edge in node.alphabet():
end_node = start_node.derive(edge).reduce()
if end_no... | [
"anler86@gmail.com"
] | anler86@gmail.com |
f6704266b1482dc5b366cbdc3d16fd83c464f0b3 | bdfa1601b8da83f7a21da0a9ccda18277ff6c614 | /back-end/website/dist-packages/boto/gs/bucket.py | f07b9029605b439d22abe8269b50a82f5831c304 | [] | no_license | dchang00/keekaa-back-end | e66bd242018c477d42abb81da547707d44312eab | 698e027b7f6f4db5c2e9b9a899ba74f4ad4daf8e | refs/heads/master | 2021-05-16T04:21:05.352393 | 2013-11-07T07:11:02 | 2013-11-07T07:11:02 | 14,196,360 | 0 | 1 | null | 2020-07-25T20:30:01 | 2013-11-07T06:43:43 | Python | UTF-8 | Python | false | false | 17,838 | py | # Copyright 2010 Google Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish, dis-
# trib... | [
"dchang00@stanford.edu"
] | dchang00@stanford.edu |
7dfc746f506e5f5fa900920650cbc6ab587c17b2 | 9a0a732fe4d7be0ee57e003671e7f6b198945b3e | /pyjos/request/service/promotion/__init__.py | 12a111c69c365c8c7ce8ec7db6285379ba8fe8ae | [] | no_license | tcztzy/pyjos | 14f28b240e30a29841e368c2df0b9065ec92a511 | ba531e7cd61a727a69ffbcb4bc71774344c003e2 | refs/heads/master | 2021-01-09T20:46:16.196181 | 2017-03-05T07:03:50 | 2017-03-05T07:03:50 | 60,248,520 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | from . import app, batch
from ... import BaseRequest, parameter
class getcode(BaseRequest):
"""自定义链接转换接口"""
def __init__(self, **kwargs):
super(getcode, self).__init__(**kwargs)
@property
def api_method_name(self):
return 'jingdong.service.promotion.getcode'
promotionType = param... | [
"tcztzy@gmail.com"
] | tcztzy@gmail.com |
c733a026e5521d8614c95845121a8e2524ae5ac9 | fd21360b894987cb097cc9381d863ef01aeac833 | /object_tracking/bytetrack/tracker/byte_tracker.py | bc1589124a14572d4776ee61b72062cce32669d6 | [
"MIT"
] | permissive | rodrigoheck/ailia-models | b46aaf0f136eb0ca69bad7c2797e63078d2e03c5 | 82cca9912ff77003aa0e6da37ac3970c04f25652 | refs/heads/master | 2023-08-28T05:02:34.908334 | 2021-11-16T04:11:30 | 2021-11-16T04:11:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,571 | py | import numpy as np
from .kalman_filter import KalmanFilter
from .basetrack import BaseTrack, TrackState
from . import matching
class STrack(BaseTrack):
shared_kalman = KalmanFilter()
def __init__(self, tlwh, score):
# wait activate
self._tlwh = np.asarray(tlwh, dtype=np.float)
self.k... | [
"ooe1123@gmail.com"
] | ooe1123@gmail.com |
032d2486569c16c3c75a7ad16d6ce1f0bbec64df | e484e9b3be09d0e9122e92d0f3a2fbcb494a22e5 | /app.py | bfaed1de0733a8f155f2d29eb053c32d5e988b2c | [] | no_license | yjz111/xjzx | 86c6298fab48cea7b224942130e4fea3b598eaf3 | 87fb8c42a3e31fa64c0fccaf954eeb3de54a8c0b | refs/heads/master | 2020-04-25T16:31:33.202855 | 2019-04-09T13:56:53 | 2019-04-09T13:56:53 | 172,915,341 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | from flask import Flask
from models import db
import logging
from logging.handlers import RotatingFileHandler
from flask_wtf.csrf import CSRFProtect
from flask_session import Session
import redis
from views_news import news_blueprint
from views_user import user_blueprint
from views_admin import admin_blueprint
def cre... | [
"1206604668@qq.com"
] | 1206604668@qq.com |
51e3944307e72804a1265a356f3d0a5f606b613f | c49590eb7f01df37c8ec5fef00d0ffc7250fa321 | /openapi_client/models/existing_normal_order.py | a13bb994a8a5c32393770f610b14317804a73b72 | [] | no_license | harshad5498/ks-orderapi-python | 373a4b85a56ff97e2367eebd076f67f972e92f51 | 237da6fc3297c02e85f0fff1a34857aaa4c1d295 | refs/heads/master | 2022-12-09T19:55:21.938764 | 2020-09-03T05:22:51 | 2020-09-03T05:22:51 | 293,533,651 | 0 | 0 | null | 2020-09-07T13:19:25 | 2020-09-07T13:19:24 | null | UTF-8 | Python | false | false | 7,092 | py | # coding: utf-8
"""
KS Trade API's
The version of the OpenAPI document: 1.0
"""
import pprint
import re # noqa: F401
import six
from openapi_client.configuration import Configuration
class ExistingNormalOrder(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://o... | [
"thebhushanp@gmail.com"
] | thebhushanp@gmail.com |
e63d5ee85f51bfe2e1f5687b3c76cef9d7f939f3 | 6712aec3e2f8984ee7a748eeed7e6b7fc46d2404 | /polls/views.py | 52f20195e926b66028b87b15cbfe0f4d807e6567 | [] | no_license | zakaria391/django_example | 7e309a85755da89cb6da211fbcfc9f5942c5fd2b | 201cc80427abc04560cd42fe5619e50e9dc5bb93 | refs/heads/main | 2023-08-28T12:30:49.247453 | 2021-11-09T05:05:41 | 2021-11-09T05:05:41 | 426,097,950 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | from django import template
from django.shortcuts import get_object_or_404, render
# Create your views here.
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
from django.template import loader
from django.views import generic
from django.utils import timezone
from .models imp... | [
"harryjason@mailna.co"
] | harryjason@mailna.co |
5823a62afd3d08698685ab28c56917e64b1a3011 | 21818228cb62d31b9685de44deb27cfd90430573 | /ccxt/async/bter.py | 9945a46c62c3d907e8cc92124daada92fbb822ac | [] | no_license | mico/cryptoArbitrage | d9d5d2f89e3fccc0b84d9c13b771edef0f2b00a1 | ea9ef03e79f302b36948746c77e4acbb3d6f01b7 | refs/heads/master | 2021-03-22T00:17:30.448593 | 2018-05-28T05:08:21 | 2018-05-28T05:08:21 | 108,232,310 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 9,931 | py | # -*- coding: utf-8 -*-
from ccxt.async.base.exchange import Exchange
import hashlib
from ccxt.base.errors import ExchangeError
class bter (Exchange):
def describe(self):
return self.deep_extend(super(bter, self).describe(), {
'id': 'bter',
'name': 'Bter',
'countries'... | [
"artur.komarov@gmail.com"
] | artur.komarov@gmail.com |
ac940193d2f3f1caa457b04b24282a0ee5161495 | 5c1be2da807efc7ce3470dac24654b9bd8b4131a | /asreval/word_uttr_scores.py | 338580dbb5d9ec387232c3fc3d7870396db1c997 | [] | no_license | messiaen/asreval | bb8e95bbb2cc9688c653bfb7d4f37ac4592dcd21 | 54656ce4b8abb5764fb1832067a9999a03fa07b8 | refs/heads/master | 2020-03-07T11:35:30.770876 | 2017-12-15T15:36:46 | 2017-12-15T15:36:46 | 127,459,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import str
import math
from collections import namedtuple
__all__ = [
'word_lst_... | [
"gregclark0130@gmail.com"
] | gregclark0130@gmail.com |
c11aaea5e8819db91521374f5e392cdd7fe91e17 | 334eb80df42753ab52ef3fef484689d5db383dde | /knowledge/similarity.py | 0c4f1fd9121ee181bdaa0d184dd055ee7e35d4f1 | [] | no_license | malab/test-python | db8b12b8ea468a4ffc37b240fb044654d0bd3ce1 | 17134674189dd84c00da7a7234abc325ae4439c5 | refs/heads/master | 2021-01-19T06:56:34.537787 | 2014-12-22T15:27:21 | 2014-12-22T15:27:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
# from nltk.corpus import wordnet as wn
documents = (
"The time of being young, early life",
"a young person (especially a young man or boy) ",
"young people collectively",
"the time of life between chil... | [
"aurelio@germes.com"
] | aurelio@germes.com |
1ab29118ed618df82a690d46d51b918b38c9c595 | 119646d6e1f13582c577fd7b87c9654839a0b806 | /hubspot/crm/objects/communications/models/error.py | ee0e84e240b0fae81b427767c8273d3d7c978c2e | [] | permissive | HubSpot/hubspot-api-python | 446daaceeb3a6ce27edcd0414603c6d4bc07e327 | d51a64c413461c0b82d8a41743e752d878747ca1 | refs/heads/master | 2023-08-31T09:52:56.583803 | 2023-08-07T11:00:27 | 2023-08-07T11:00:27 | 248,865,684 | 227 | 98 | Apache-2.0 | 2023-09-14T15:25:19 | 2020-03-20T22:41:24 | Python | UTF-8 | Python | false | false | 9,156 | py | # coding: utf-8
"""
Communications
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfullargspec
except Imp... | [
"azheltkovskiy@hubspot.com"
] | azheltkovskiy@hubspot.com |
eb91d4a5ee4783d3343c61260473eedbd4c4dd18 | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/Geron17Hands/C_PartII/E_Chapter13/E_Exercises/index.py | 31dbc036a2281c1cf4c61b4da842159f9b8249e8 | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,826 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.HierBlock import HierBlock as hbk
from modules.node.block.ImageBlock ... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
c60c6d00ce9043829cb99f108e1c608e2884c871 | 12a21e1ae1ad776f55ce439c6397b9bcbbd57b4a | /scrapeoutage.py | b003993083c0d4cbce4c135def8c1e737a893cd7 | [
"MIT"
] | permissive | mboehn/scrapeoutage | 03eb7ddae5d3bdbd5256aa9cdd7d67336aa1ee36 | 3b9bebb3a8e942b4293c917aad72728d54bff3f5 | refs/heads/master | 2016-09-15T08:34:05.395478 | 2016-05-05T11:55:26 | 2016-05-05T11:55:26 | 14,965,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
## Set to True if testing and there only is planned outages:
DO_PLANNED=False
## This is a list of the places you want to know about
myplaces = [ u'Tjøme', u'Tønsberg', u'Svelvik', u'Sande', u'Hof', u'Holmestrand', u'Horten', u'Re', u'Andebu', u'Lardal', u'Sandefjord', u'Nøt... | [
"mathias@grytemark.no"
] | mathias@grytemark.no |
ac2042e35130d75a34e3ee03fce8e6df4be09e81 | bad9237c2cf3261beba118c25e0b5e18cb4e9361 | /Day4/dsw2/dsw2/wsgi.py | e924571cf4f487c2a1a2019af61e0a402b314890 | [] | no_license | limjh0513/dgsw_html-css | 9b0fc6eef742b2c53f7c02ef1cab523b8910c0f7 | 8ce8e5125c3851897a887fda23c78fe3cb09bb46 | refs/heads/master | 2022-12-06T19:59:06.002575 | 2020-09-04T11:50:55 | 2020-09-04T11:50:55 | 282,757,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py |
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dsw2.settings')
application = get_wsgi_application()
| [
"ljh040513@naver.com"
] | ljh040513@naver.com |
5214004ac55a355b07c8bc226a3c1b333ab947fb | d1a149731a15823e870b464662eabd6d601c3a38 | /CalcClassAndScientificFunction.py | ca38b187b79a12da756063838c951ef65f874d4e | [] | no_license | rahmausama/Calculator | 44522af2d53990131d234776693ce1450857f6e7 | 777976ea7a2b3b2f656c0834120f9c6efa940ebc | refs/heads/main | 2023-02-09T10:23:07.394380 | 2021-01-02T18:41:58 | 2021-01-02T18:41:58 | 326,257,110 | 0 | 0 | null | 2021-01-02T19:35:20 | 2021-01-02T19:35:20 | null | UTF-8 | Python | false | false | 1,905 | py | class Calc():
def __init__(self):
self.total=0
self.current=''
self.input_value=True
self.check_sum=False
self.op=''
self.result=False
def numberEnter(self, num):
self.result=False
firstnum=textDisplay.get()
secondnum=str(num)
if s... | [
"noreply@github.com"
] | rahmausama.noreply@github.com |
7f2852b0f4be4f781576595cef92b728b46f471b | c2ce7155a393e1056b5fdc4d3f9b9a89046e9285 | /scripts/pipeline.py | 3d981873f2ffb78575182feb447d1effe251678a | [
"MIT"
] | permissive | blyucs/aw_nas | 9c068dab1bd84a35e58a4c426f7c852a67b93882 | 8a32196ce342b8ad9e3885895735d1286e25beba | refs/heads/master | 2023-08-19T11:00:00.526229 | 2021-08-21T05:16:13 | 2021-08-21T05:16:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,413 | py | from __future__ import print_function
import os
import re
import random
import shutil
import logging
import argparse
import subprocess
import yaml
import numpy as np
DERIVE_N = 10
def _get_genotype_substr(genotypes):
return re.search(r".+?Genotype\((.+)\)", genotypes).group(1)
def _get_perf(log, type_="cnn"):
... | [
"foxdoraame@gmail.com"
] | foxdoraame@gmail.com |
1d59a9449e1faa81ca0cc15a68fdd61b3aed9c02 | 29ad60d0f4e4207aaf0374f811c9728b16942da2 | /Report/files/switchoff.py | 9ebd115adc375c7740070dff463253315afc67ba | [] | no_license | LCAV/AcousticRobot | c97e03bc06c59650556832794aca38cfe2d873a5 | 9f33434f64cb882897b1e0e3b8ad01642e91148a | refs/heads/master | 2021-01-10T16:46:51.989150 | 2017-10-11T08:26:58 | 2017-10-11T08:26:58 | 43,871,589 | 2 | 5 | null | 2017-03-06T16:15:09 | 2015-10-08T07:58:42 | HTML | UTF-8 | Python | false | false | 831 | py | mport RPi.GPIO as GPIO
import os
import time
#set up GPIO using BCM numbering
GPIO.setmode(GPIO.BCM)
GPIO.setup(10,GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
#function called on pin interrupt
def button_triggered(channel):
counter = 0
counter_on = 0
while (counter <= 6):
time.sleep(1)
counter+=1... | [
"frederike.duembgen@epfl.ch"
] | frederike.duembgen@epfl.ch |
e0680f343ee85bb87951a871d65120840818f049 | 33c497917be26cfddd5427dbb7cbb36ada1d713e | /Packs/Cybersixgill-ActionableAlerts/Integrations/CybersixgillActionableAlerts/CybersixgillActionableAlerts.py | 8bafe36ad2a821d171cc6bb11db009b66daa106e | [
"MIT"
] | permissive | ChuckWoodraska/content | 8caf6c7b2f9f94745c9ca5941c4a86232bfea5e1 | cd4b2e396ab229c1298443018073628e11832335 | refs/heads/master | 2021-12-21T11:24:07.360944 | 2021-12-20T15:04:37 | 2021-12-20T15:04:37 | 440,306,120 | 0 | 0 | MIT | 2021-12-20T21:03:46 | 2021-12-20T21:03:46 | null | UTF-8 | Python | false | false | 9,584 | py |
import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
''' IMPORTS '''
import json
import copy
import requests
from sixgill.sixgill_request_classes.sixgill_auth_request import SixgillAuthRequest
from sixgill.sixgill_actionable_alert_client import SixgillActionableAlertCli... | [
"noreply@github.com"
] | ChuckWoodraska.noreply@github.com |
105a53ca087440aa93635c0acd7192b5693a8611 | 44c17c1e394fc1b62fdb5020ea64300ea5859cac | /qihuan_web/blog/migrations/0002_auto_20180709_1611.py | 6b4187ffb7539b8464d07906d5eaf11ac15d3d8d | [] | no_license | wangdengkai/qihuan_website | 08d2140593fa9c8c9e62487e85af7ac44c055ede | 0d0c11faf857466025eb5f1ab1a0731b5b733926 | refs/heads/master | 2022-12-10T01:16:30.831353 | 2018-07-27T01:26:19 | 2018-07-27T01:26:19 | 139,438,549 | 0 | 0 | null | 2022-12-08T02:19:03 | 2018-07-02T12:09:04 | JavaScript | UTF-8 | Python | false | false | 583 | py | # Generated by Django 2.0.7 on 2018-07-09 16:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='like_number',
fie... | [
"wangdengkaiwy@163.com"
] | wangdengkaiwy@163.com |
bf58c5db04488963f4c42364ac29e2c62a15cba7 | 5992c932bf01602a0f33710113659e928cb15f93 | /hello.py | 527dd3bf88b2b415a66ab35ff5b57ac777c88ec7 | [] | no_license | ArystanK/stepik | 9efe280f3503067123c12455f00020dc994702cc | 52cc2d6fbe956887f02cbceb6254501e9c55e4c4 | refs/heads/master | 2023-03-31T14:57:53.305721 | 2021-03-13T12:40:44 | 2021-03-13T12:40:44 | 347,365,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | #/usr/bin/env python3
#from urllib.parse import parse_qs
# python 2
#from cgi import parse_qs, escape
from re import sub
def app(environ, start_response):
"""wsgi minimal app.
$ gunicorn hello:app
"""
#parameters = parse_qs(environ.get('QUERY_STRING', ''))
#output = ''
#for p in parameters:
... | [
"aarystan@outlook.com"
] | aarystan@outlook.com |
2a6074103d161af980d28a05fcd375eb1031fc3c | 72ef62e9a63ebbf6199d2577bc054b35a60d2ec9 | /sympy/stats/joint_rv_types.py | a0efe5989a5e2a9b7b4d081701816d2a43ebf874 | [
"BSD-3-Clause"
] | permissive | aGzDelusion/sympy | 7d2f1cfb954e5a098bc1c1b865ade108c94560f7 | f384c734dfbeb9ac5479af626152bfcb4486e10f | refs/heads/master | 2020-03-22T14:00:57.954529 | 2018-07-08T06:24:04 | 2018-07-08T06:24:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | from sympy import sympify, S, pi, sqrt, exp, Lambda, Indexed, Symbol
from sympy.stats.rv import _value_check
from sympy.stats.joint_rv import JointDistribution, JointPSpace
from sympy.matrices.dense import Matrix
from sympy.matrices.expressions.determinant import det
# __all__ = ['MultivariateNormal',
# 'MultivariateL... | [
"akash.9712@gmail.com"
] | akash.9712@gmail.com |
835034ca52476b61b60282faf5eee452c6593c69 | 260b028aaab18b06286b0cf6eae94eafa3202c19 | /bootstrapFigs100DiffTestSizes.py | 89e47fdd4c95d79764f906060a36fd78d35f3769 | [] | no_license | YaleMRRC/CPMBaggingAnalysis | f28306bab0ee6aa3c9dfe359906dec1f0a3255b1 | 37fa1ca21667cf8708684cec2fc5b27eef2120f2 | refs/heads/master | 2023-03-19T04:59:54.500948 | 2021-03-10T17:08:40 | 2021-03-10T17:08:40 | 275,262,013 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 78,130 | py | import h5py
import time
import os, sys
import glob
from functools import reduce
import pickle
import argparse
import pdb
import warnings
import numpy as np
import pandas as pd
import random
from scipy import stats,io
import scipy as sp
import matplotlib
from matplotlib import pyplot as plt
from matplotlib.ticker i... | [
"6143678+DaveOC90@users.noreply.github.com"
] | 6143678+DaveOC90@users.noreply.github.com |
81b5d2f903be4a2630043fb64531ce1e63856ff7 | c6c35bbffa33d359ab535d87222cfd96cee4b5e7 | /funny-bunny2.py | 801a90e877af316b19b47f437c19921f5b659627 | [] | no_license | skandacode/Python | 829d3a8c532f8f959fb978f46bfcb737d75dd24b | 8c821cb7519b59c9afb65b3d9638b074ba183afc | refs/heads/master | 2023-01-13T00:22:27.433291 | 2023-01-05T13:40:20 | 2023-01-05T13:40:20 | 187,404,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from tkinter import*
tk=Tk()
canvas=Canvas(tk, height=1200, width=1500)
canvas.pack()
tk.resizable(0, 0)
| [
"arun.skanda@outlook.com"
] | arun.skanda@outlook.com |
aec2e97b8d8530f6d1e153386336ebb53211600a | 33432aab8c7397021eeb803ec6ccf6199afc047d | /button.py | 182d9161ff493542bf940aeaea8e36c4a16665c2 | [] | no_license | Chris683/alien_invasion | 46d3ec46bd5299c37c32b135cf8c77a5af31fd9b | 3c00c90b31e8b8e81a8f0e72f5e9d0afbb21c761 | refs/heads/master | 2023-03-19T21:50:08.295124 | 2021-03-19T14:31:33 | 2021-03-19T14:31:33 | 254,661,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | import pygame.font
class Button():
def __init__(self, ai_settings, screen, msg):
"""初始化按钮属性"""
self.screen = screen
self.screen_rect = screen.get_rect()
# 设置按钮的尺寸和其他属性
self.width, self.height = 200, 50
self.button_color = (255, 255, 0)
self.text_color = (25... | [
"wukang683@163.com"
] | wukang683@163.com |
757cf8ad7c232ae92d6f00d0c9b417e70525c3f6 | 1d351c9df3beefce7b33affee9ce588403a22f42 | /app.py | adfeb07f6d42674bd3dc4a7d2d89262d40e1d90f | [] | no_license | learngvrk/stores-flask-restful-api | d0eb4b1faa8aa8a229f7dbd6aa4a55a63e732353 | 5ad4f6cf920e7d2687646123e6dd428185a99957 | refs/heads/master | 2021-01-05T01:51:12.061262 | 2020-02-17T02:53:47 | 2020-02-17T02:53:47 | 240,836,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | import os
from flask import Flask
from flask_restful import Api
from flask_jwt import JWT
from security import authenticate, identity
from resources.user import UserRegistration
from resources.item import Item, ItemList
from resources.store import Store, StoreList
# Create the Flask App
app = Flask(__name__)
app.conf... | [
"= ranjithpals@gmail.com"
] | = ranjithpals@gmail.com |
b4c66f8a260da4fe83eb670aeb5e4b6544e3ef5b | 00b6699ea1302149ab2b9fd57e115656f7a26e7d | /models/transformer_encoder.py | 605c2d2f1ea94fdd68595454e41d279e6400e3ec | [] | no_license | gauravaror/catastrophic_forgetting | 97ac8e1c999db4f36d01ae19a0fb307f8109eb8b | 60e53f61c45f6ce24a28bf8454c8078559bb9e6f | refs/heads/master | 2021-06-30T21:07:27.448889 | 2020-10-05T09:37:36 | 2020-10-05T09:37:36 | 174,500,380 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,573 | py | import math
import torch
import torch.nn as nn
from torch.nn import TransformerEncoder, TransformerEncoderLayer
from models.utils import Hardsigmoid, BernoulliST
from models.kv_memory import KeyValueMemory
# It's actually TransformerEncoder custom with PositionalEncoder but we use
# name: TransformerRepresentation to ... | [
"gauravarora.daiict@gmail.com"
] | gauravarora.daiict@gmail.com |
ce8b7392f9103712fc34c8d66177a778883fae0d | 3fb9c5b58ef0c596379ec5ed73e5471e6d34a5f4 | /leetcode-challenge-01-2020/week1/kthMissingPositiveNumber.py | 0ebd9ab4db4f7bc8c79f5d9bea311cdf70e99233 | [] | no_license | kramal/myLeetcode | 10d6091a94b7b313294c14682e96868da82cb655 | fb22384a38909ab9c12001eda132d75945f4e3bd | refs/heads/main | 2023-02-28T21:28:22.838756 | 2021-02-09T18:11:03 | 2021-02-09T18:11:03 | 313,072,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | def findKthPositive(self, arr: List[int], k: int) -> int:
list_missing = []
result = False
for i in range(1, arr[-1] + 1):
if i not in arr:
list_missing.append(i)
if (k - 1) < len(list_missing):
result = list_missing[k - 1]
else:
if len(list_missing) > 0:
... | [
"kramal888@gmail.com"
] | kramal888@gmail.com |
fa98b06d2d06034db777a9d9a0a9a471e55ce41d | fa95a770c4b0612dbcb545c0ce780d75eddb89e9 | /downloader/map/osm_loader.py | 3d7f3da61faf42986a0df74976a4a1cf4722d26a | [] | no_license | fpeterek/car-map-downloader | 095830fd44cab602093f3263aac38089ab32e7d7 | 827d99735051e523c3a458bbf4c12fca1cde4553 | refs/heads/master | 2023-03-27T16:55:26.520359 | 2021-04-02T10:30:49 | 2021-04-02T10:30:49 | 353,784,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | import osmium
from map.map import Map
from map.node import Node
from map.geo_position import GeoPosition
from map.path import Path
class MapLoaderHandler(osmium.SimpleHandler):
excluded_ways = ('footway', 'corridor', 'sidewalks', 'steps', 'crossing')
def __init__(self):
super(MapLoaderHandler, self)... | [
"fpeterek@seznam.cz"
] | fpeterek@seznam.cz |
ffad7c10a723699296c356e89c4dc8bc3a43652c | 333e8404417cdf40cc84132a7abd24009dabb86e | /clienteharichand.py | 47ae3e9e163b549ea8d258e742d7cc0694117edc | [] | no_license | RabindraHarichand/Practica-2 | 355f1ac1bd5c0d09bb5deafe91c08e3cb04248ac | 29c0bd4bb1433373930b71a558950ca75c323c49 | refs/heads/master | 2023-05-02T12:07:19.286519 | 2021-05-29T23:37:50 | 2021-05-29T23:37:50 | 372,077,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | import socket
import sys
import base64
import hashlib
#Ingresar datos
ip= (input('Escriba su ip '))
user= (input('Escriba un usuario '))
try:
#Establecer conexión TCP hacial servidor por el puerto 19876
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((ip, 19876))
s.settimeout(20)
#E... | [
"rharichand.17@est.ucab.edu.ve"
] | rharichand.17@est.ucab.edu.ve |
243a84a5f36c62cf4ae3192da755b3332e3e9249 | 408d9f3fe18df16663aa714416dec7584825a5a0 | /test/trainer/test_trainer.py | 09d45d17231e1c15c3524e736a3775a8cc84b119 | [
"Apache-2.0"
] | permissive | geoalgo/gluon-ts-1 | 43a036910e1a18ed56e4732570c2156571408a5a | 2de36e034e1829c9f8eda573d95f6a5cd4773a90 | refs/heads/master | 2022-09-01T12:52:34.611659 | 2019-06-06T06:09:24 | 2019-06-06T06:09:24 | 190,351,064 | 0 | 1 | Apache-2.0 | 2019-06-14T13:10:20 | 2019-06-05T07:55:19 | Python | UTF-8 | Python | false | false | 2,052 | py | # Standard library imports
from typing import Any, List
# Third-party imports
import pytest
# First-party imports
from gluonts.trainer import Trainer
def test_epochs() -> None:
assert_valid_param(
param_name='epochs', param_values=[0, 1, 42, 1000, 1000]
)
assert_invalid_param(
param_name... | [
"alxale@amazon.com"
] | alxale@amazon.com |
f4d9dcb1f41cc6a7b45a966ade0d934aaaa2b814 | 81d9929745ea14ccf6c482d270ce786e4d5e31a7 | /bin/django-admin.py | d0e1a06152fdfecd75e141843098ad01663063e3 | [] | no_license | riadush/Django-Scrapy | 9b6866f941c33c83b6802afee6e6f17d4b39451e | 5b9c4a4df3fcb5d36a8294a04b80378f5e0accbb | refs/heads/master | 2021-01-20T18:58:03.503661 | 2016-08-14T19:22:18 | 2016-08-14T19:22:18 | 65,682,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | #!/Users/riadush/Desktop/scrapydjango/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"riadush@Riadushs-Mac-mini.local"
] | riadush@Riadushs-Mac-mini.local |
080327cbd21766ac54d21ecf1f08d7336c162d80 | cb57a9ea4622b94207d12ea90eab9dd5b13e9e29 | /lc/python/289_game_of_life.py | 7db24705a3c6af0951103e9edb5e780f16317398 | [] | no_license | boknowswiki/mytraning | b59585e1e255a7a47c2b28bf2e591aef4af2f09a | 5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a | refs/heads/master | 2023-08-16T03:28:51.881848 | 2023-08-10T04:28:54 | 2023-08-10T04:28:54 | 124,834,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | #!/usr/bin/python -t
#time O(m*n) space O(1)
#0,2 are "dead", and "dead->live"
#1,3 are "live", and "live->dead"
class Solution(object):
def gameOfLife(self, board):
"""
:type board: List[List[int]]
:rtype: None Do not return anything, modify board in-place instead.
"""
m ... | [
"taobo0626@gmail.com"
] | taobo0626@gmail.com |
ce3f3e77b734c979ff3d49bc82b04f891d0df5bd | 4d1cca31a3aae847bd6ee2dc12eca3971b263fc4 | /src/flua/Compiler/Output/python/PythonClass.py | a2ffea6ea236df51bc99c98170c3846e3c94f63c | [] | no_license | akyoto/flua | 4cc27202c326a6eedd088c5bb88c644905e7be64 | e09d50e0d50fc4f4faa1b0ee482756eaef4e60ec | refs/heads/master | 2021-06-06T10:55:32.795005 | 2016-12-04T00:17:20 | 2016-12-04T00:17:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | ####################################################################
# Header
####################################################################
# Target: Python Code
# Author: Eduard Urbach
####################################################################
# License
###########################################... | [
"e.urbach@gmail.com"
] | e.urbach@gmail.com |
26cb4e82cc7893cf815f692b30f08b297b8f3e55 | c6b5bbfebcf95f79fbdefcd85d0a692247051cd3 | /multi_proxy_server.py | 651a0c392f8555a5657dddbd2a306ad4963378d5 | [] | no_license | rmacgill/CMPUT404_Lab02 | 237e197ab314cb5e07699410813860ad6428db6b | 6756f29b102b44d0e996a861de0cbb4b17dc0bd0 | refs/heads/master | 2023-02-16T17:17:27.066102 | 2021-01-19T02:12:26 | 2021-01-19T02:12:26 | 330,816,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | #!/usr/bin/env python3
import socket, sys
from multiprocessing import Process
# some constants to make this easier
LOCAL_HOST = ""
LOCAL_PORT = 8013
REMOTE_HOST = "www.google.com"
REMOTE_PORT = 80
BUFFER_SIZE = 4096
# Creates a socket object with the default arguments
def create_tcp_socket():
try:
# first ... | [
"macgillivray.robert@gmail.com"
] | macgillivray.robert@gmail.com |
9c4118ff849f01c6333a7c40154ecf6bfa18ce52 | cd3d67ac5db68db5197e924949539fe96fac2901 | /anzee_be/bin/rst2html4.py | a13a7311f9fb1711b4d8e2091d594a29778a9173 | [
"BSD-3-Clause"
] | permissive | PanthraxDigital/PD_Anzee_BE | 49dc6efdb6e88c45bd01124a0222d2542c68c247 | 070998427db470044fdccb1cf75a5b0015677d73 | refs/heads/master | 2020-04-22T12:02:26.837243 | 2019-02-14T06:12:04 | 2019-02-14T06:12:04 | 170,360,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/Volumes/Disk_2/PanthraxClients/05. Anzee/01_Anzee_WS/Anzee_BE_WS/anzee_be/PD_Anzee_BE/anzee_be/bin/python3
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publis... | [
"maha.yash@gmail.com"
] | maha.yash@gmail.com |
0967d73f73541ca521c643230b9642e958f3ed95 | 8a31861c8b8df74a9e6e2a62f88b06937a154596 | /XStreamity/usr/lib/enigma2/python/Plugins/Extensions/XStreamity/record.py | 075b0d7f7ae1fb954fc1efcaaee2db6c36ff2d51 | [] | no_license | kiddac/XStreamity | 79d7c2f06450874f03a12ba19e9f9032e1f8c564 | 0e4f79eedf3fb08e1b3900ef6d82bccfbc15139e | refs/heads/master | 2023-08-28T06:28:01.958223 | 2023-08-12T17:38:53 | 2023-08-12T17:38:53 | 250,813,457 | 43 | 29 | null | 2023-08-07T18:46:49 | 2020-03-28T14:19:55 | Python | UTF-8 | Python | false | false | 4,490 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from . import _
from .plugin import skin_directory, cfg
from .xStaticText import StaticText
from Components.ActionMap import ActionMap
from Components.ConfigList import ConfigListScreen
from Components.config import getConfigListEntry, ConfigText
from Components.Pixmap impor... | [
"kiddac2015@gmail.com"
] | kiddac2015@gmail.com |
a4a7ca95f01a689b37eaec5be609be0cb566474e | 772802bd932c76ce51e7db1436877144b12c3ad6 | /tnsr.py | aee68d061036c3724afaa7fc3b8c77589e6f4363 | [] | no_license | gokseltokur/imageclassifier | e16ec957185839d18e35bec93ff484a40bf1ce72 | 070aef7389e099d7fcca264c1d101e17f6ca0ddc | refs/heads/master | 2020-04-29T18:04:45.183994 | 2019-03-18T15:36:42 | 2019-03-18T15:36:42 | 176,313,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,265 | py | from __future__ import absolute_import, division, print_function
import tensorflow as tf
from tensorflow import keras
import numpy as np
import matplotlib.pyplot as plot
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Conv2D, MaxPooling2D
import ... | [
"gokseltokur@gmail.com"
] | gokseltokur@gmail.com |
d14a5beaf03130a87a9f70428dc8e07b1a9daa02 | bff84a3c71570e4b789fdd8b6d54de2fccf8f1f6 | /openpyxl/get_column2.py | 81e68c625e329a59e72deb3abec9b6a5ec85cc02 | [] | no_license | dominico120/python_excel_book | babcd08939f81b008138e8eee628506e03d98cb8 | 962fe312c2a7e4ef6c262c3592d9f687b6649aa1 | refs/heads/master | 2023-07-04T04:11:00.826713 | 2021-04-26T03:36:40 | 2021-04-26T03:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import openpyxl
wb = openpyxl.load_workbook('shopping.xlsx')
ws = wb['Sheet1']
for cell in list(ws.columns)[1]:
print(cell.value)
| [
"91katsuhisa@gmail.com"
] | 91katsuhisa@gmail.com |
f14e333aa0d166df0cdeacebd35555a2782063b0 | 0415adbd14f5c1cfd137df727b9aab3d9a3a1358 | /GA_path_improve/venv/bin/easy_install-3.6 | ecf63d60da623c39eddc36d20d54bd0cdd6f47ae | [] | no_license | dyz330542613/GA_maze | 8302362cd05628f807701815d9dccc62ff9123b8 | f50e5b28c91bbe6e5a15d1da1d06a896edd13c20 | refs/heads/master | 2020-03-12T02:19:21.630924 | 2019-05-07T10:06:39 | 2019-05-07T10:06:39 | 130,399,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | 6 | #!/Users/dyz/PycharmProjects/GeneticAlgorithm/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dyz@dufeifeizhudeMacBook-Pro.local"
] | dyz@dufeifeizhudeMacBook-Pro.local |
12f908935fc03abd5cdb76620bb8347f4a719490 | 6ef047ce19953492f03c31b97a0211e18480f008 | /src/VIAME/EVAL/evaluate_optical_detection_results.py | 67bcc0cead7fbce3be25d5316ea7fcddfe7c9031 | [] | no_license | muskanmahajan37/Bears-n-Seals | a089fde9b52c2b26530d9d038563f1ec249fc493 | 0d8593b40d17ec4c03b0e633c2fd5a29ed969808 | refs/heads/master | 2022-01-21T00:22:45.657797 | 2019-05-10T05:50:12 | 2019-05-10T05:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,411 | py | import matplotlib.patches as mpatches
import os
import numpy as np
from PIL import Image
from src.VIAME.EVAL.model import DetectionResults
from src.arcticapi import ArcticApi
from src.arcticapi import HotSpot
from src.arcticapi.config import load_config
import matplotlib.pyplot as plt
from src.arcticapi.model.HotSpo... | [
"yuval@yuvalboss.com"
] | yuval@yuvalboss.com |
f6d3617804c700e4c95531ffe0787d46922e3a87 | 0d43d21491abbaa06e80d7c5a92dd9b1ec3a8050 | /python/water_angles.py | f48f1c95a322a0e7266a2c6914d5eddf0d1b7506 | [] | no_license | lfelberg/confinement | 067500edfb8c0eec92f9981eac854ec9ca12ea7e | e824ab61def3b94529e9c2f1944ad8ac88d08e69 | refs/heads/master | 2021-01-11T16:23:44.557687 | 2017-08-04T22:46:39 | 2017-08-04T22:46:39 | 80,072,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,171 | py | import sys
import numpy as np
from water_angles_util import translate_pbc,cal_ang
from xyzfile import XYZFile
from volfile import VolFile
WOXY = 1; WHYD = 2; GRAPHENE = 3
def get_angles(xyz, disC, volC):
'''Method to get various angles between two waters, in confined space'''
# find water oxys, hyds
oo =... | [
"lfelberg@berkeley.edu"
] | lfelberg@berkeley.edu |
9061fd693fed8b422f6387b055e083a8789e24af | 58d6391d4601e9b847cb603d63fe717af0bed05c | /facecover 1.0/cvfacerec2.py | b4fa0da8bcbd05729e198932e2184500e0c438e6 | [] | no_license | ErikEremenko/EEVidFaceBlur | b6559283860a8d64ed82f69fc81e679f863327c6 | 34ebcfb48dc9a2b955055e9bd8378cc39ba2b97b | refs/heads/main | 2023-01-12T00:32:00.762422 | 2020-11-22T16:38:48 | 2020-11-22T16:38:48 | 315,079,681 | 0 | 0 | null | 2020-11-22T16:30:56 | 2020-11-22T16:19:33 | null | UTF-8 | Python | false | false | 2,182 | py | import cv2
import numpy as np
import os
import eeraser
import ctypes
## Styles:
## 0 : OK
## 1 : OK | Cancel
## 2 : Abort | Retry | Ignore
## 3 : Yes | No | Cancel
## 4 : Yes | No
## 5 : Retry | Cancel
## 6 : Cancel | Try Again | Continue
chooseimg = input()
image = cv2.imread(f'./{chooseim... | [
"noreply@github.com"
] | ErikEremenko.noreply@github.com |
e65d0b1b24da675b239b2d2e2c36bb245c7f9fcd | 144590772aaa89e5ead8936512b0bd035c215c7b | /resilient-circuits/tests/selftest_tests/mocked_fail_script.py | 379c2b9f793bb51a942da5de7616bd5c9153c50c | [
"MIT"
] | permissive | ibmresilient/resilient-python-api | f65dad3f3c832581127026fa3e626eaf3d4749a7 | 84e8c6d9140ceac0bf47ce0b98e11c7953d95e61 | refs/heads/main | 2023-07-23T12:36:49.551506 | 2023-07-11T15:15:43 | 2023-07-11T15:15:43 | 101,414,862 | 37 | 31 | MIT | 2023-09-07T14:00:34 | 2017-08-25T14:59:45 | Python | UTF-8 | Python | false | false | 43 | py |
def selftest(args):
raise Exception() | [
"Ryan.Gordon1@ibm.com"
] | Ryan.Gordon1@ibm.com |
b29fc417278388085744b38361297b4d7f0a9261 | 28cf4f53773e2f53fb9818574e38f79bb5c5c95e | /Blog/Blog_main/migrations/0011_auto_20210205_1347.py | bf6ec466ea9e7f14350c8a1bf25db10688448553 | [] | no_license | ialfai/Blog | 19f8b0a0d3e6007d7a8c267f6dad8b208e15eee7 | adb9c5993713e80e32cdead97526e9d13ac84349 | refs/heads/main | 2023-04-04T01:02:57.648675 | 2021-04-05T08:01:36 | 2021-04-05T08:01:36 | 332,748,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | # Generated by Django 3.1.5 on 2021-02-05 13:47
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('Blog_main', '0010_board_picture'),
]
operations ... | [
"k.zgodaferchmin@gmail.com"
] | k.zgodaferchmin@gmail.com |
63e74ea4d28b30a0ff320d82f76133830d5bb42a | 54640633f7da8eb32aabe9f3eb2086eda40f26f4 | /gemaracard/flashcard/views.py | 3d22c2bee020d0aec8ef483af19d8b6883f2df9c | [] | no_license | BenBagBag/gemaracard | 66ed295bc3f6c01df69aae5417050698c6574ee8 | ac2d085791c856996c32030f3a4a9466078f17c3 | refs/heads/master | 2021-01-25T06:24:15.445820 | 2017-06-07T01:18:46 | 2017-06-07T01:18:46 | 93,564,229 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,933 | py | from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.shortcuts import get_object_or_404, redirect, render
from django.views.generic.edit import UpdateView
from django.utils import timezone
... | [
"IsaacC@allenai.org"
] | IsaacC@allenai.org |
03fb4eeba75eacbe4144708377efb264a75ff3be | 9696340459369558a89f1106118826cd2e2cdf73 | /MapReduce/08_pipeline_delivery_point/05_debug/reducer_track_hid.py | 20169b1b37c53593a945eb8ef0fbf5e4f59c89d4 | [] | no_license | jasonzhao3/Fingerprint | 77bb5165762236a0ebdb72993dd5dcbeab4df812 | c21fa8869922d38a6b029afefe467a88b29889fc | refs/heads/master | 2021-01-02T22:44:55.540350 | 2014-06-14T02:09:10 | 2014-06-14T02:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | #!/usr/bin/env python
from itertools import groupby
from operator import itemgetter
import sys
def read_mapper_output(file, separator='\t'):
for line in file:
yield line.rstrip().split(separator, 1)
def main(separator='\t'):
# input comes from STDIN (standard input)
data = read_mapper_output(sys... | [
"yzhao3@stanford.edu"
] | yzhao3@stanford.edu |
14a2867d020b5f3f389f8d7bfcdeb01028177479 | 0153b89a3f89bc45bd9cc2401ddf21a9b6a10654 | /mlflow/tracking/__init__.py | b219fbfd6db315dbd2e943e16b27308c98b1eb74 | [
"Apache-2.0"
] | permissive | hamroune/mlflow | 4b7d3d1612e1cfd1228c367590f5fd50a7ca37ba | ccdd70aee5e17f28b4260d045a262d7b3c4fd31d | refs/heads/master | 2020-03-27T13:08:26.762956 | 2018-09-07T15:44:36 | 2018-09-07T15:44:36 | 146,592,346 | 0 | 0 | Apache-2.0 | 2018-08-29T11:50:30 | 2018-08-29T11:50:30 | null | UTF-8 | Python | false | false | 694 | py | """
The MLflow Tracking package provides a Python CRUD interface to MLflow Experiments
and Runs. This is a lower level API that more directly translates to REST calls.
For a more fluent API of managing an 'active run', see :mod:`mlflow`.
"""
from mlflow.tracking.service import MLflowService, get_service
from mlflow.tr... | [
"noreply@github.com"
] | hamroune.noreply@github.com |
e5dbb60d97f2bfa8da19922f6f081286bc632270 | 1c340ba52370d9076df56a7e29df8df91bce97b4 | /PrefixSum/BlellochScan.py | 3bca0cb4e2f067b32844ae7a214ad904f47a238d | [
"MIT"
] | permissive | dshpet/nure_TPDS | f5eabea9877e718e77038853e72cc3b6eaffd23d | deff5a4fd3b6a7ad2692d1128fb18ba1caa0af60 | refs/heads/master | 2021-08-30T18:14:31.334423 | 2017-12-19T00:03:30 | 2017-12-19T00:03:30 | 107,272,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | #!/usr/bin/env python
'''
from Udacity GPU parallel courses by NVIDIA
https://youtu.be/mmYv3Haj6uc
https://developer.nvidia.com/gpugems/GPUGems3/gpugems3_ch39.html
fuck nvidia (c) Linus Torvalds
https://www.mimuw.edu.pl/~ps209291/kgkp/slides/scan.pdf
'''
import threading
import math
import TestFunction
test_data = ... | [
"dshpet@gmail.com"
] | dshpet@gmail.com |
6f30485fdc0055a546646267b89fe8ce2600d4e5 | f4910b48ee7b026fa789aaa7b573cef00df86393 | /app.py | 0ba460202800cf4031b68435fde3b1ec6b960169 | [] | no_license | PrashilAlva/FlaskReference | 781d9c09437dbf74c4104f7fafc5e711511d7982 | be0a07186bb71c3f43cac2b7484831f67112c460 | refs/heads/master | 2020-12-27T18:29:50.415758 | 2020-02-03T16:09:00 | 2020-02-03T16:09:00 | 238,005,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import ipldb as ipl
import pprint
if __name__ == "__main__":
t_names=ipl.get_team_names()
t_labels=ipl.get_team_labels()
for ele in range(0,8):
print(t_names[ele],":",t_labels[ele])
t_details=ipl.get_team_details()
print("*"*100)
pprint.pprint(t_details)
print("*"*100)
p_de... | [
"prashilalva27@gmail.com"
] | prashilalva27@gmail.com |
5133a67b4edd0c59c4ea5de641e73dca50cb2c73 | bf8d344b17e2ff9b7e38ad9597d5ce0e3d4da062 | /ppdet/modeling/cls_utils.py | 3ae8d116959a96bb2bf337dee7330c5909bc61ac | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleDetection | e7e0f40bef75a4e0b6dcbacfafa7eb1969e44961 | bd83b98342b0a6bc8d8dcd5936233aeda1e32167 | refs/heads/release/2.6 | 2023-08-31T07:04:15.357051 | 2023-08-18T02:24:45 | 2023-08-18T02:24:45 | 217,475,193 | 12,523 | 3,096 | Apache-2.0 | 2023-09-10T10:05:56 | 2019-10-25T07:21:14 | Python | UTF-8 | Python | false | false | 1,325 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
0da4fd579a871c99b4211c261ef6bd0bcc2abf7b | d92868f71ee20bd57258277d842c72a47eeeb1c2 | /o8g/Scripts/constants.py | 1fddff79b5938630193d110e8fd19d5ddbf81da4 | [] | no_license | TheWicked/Android-Netrunner-OCTGN | 9f7d9e89b3ddf7efea51aa0f9bbdabb12acb4772 | 5835c627a752b6e0a157f31bd8b7cee9ed84f573 | refs/heads/master | 2021-01-18T05:44:07.099125 | 2013-05-26T15:53:14 | 2013-05-26T15:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,527 | py | ###==================================================File Contents==================================================###
# This file contains global variables in ANR. They should not be modified by the scripts at all.
###===================================================================================================... | [
"mail@dbzer0.com"
] | mail@dbzer0.com |
f3eeecf56824030c75e682ac5163fa2a436168a3 | 0847848675cb44889529073c17c48f4560a81010 | /Mnist/make.py | 3484b24ebd3d532add11cca5f950acad174777c2 | [] | no_license | testaccount-0695/pythonProject4 | 7272931013262b954060245a6e17a717b01fe7dd | 67d72e26bed82c314e5709a4470913a9203e85a2 | refs/heads/master | 2023-03-19T02:49:08.574957 | 2021-03-05T01:38:40 | 2021-03-05T01:38:40 | 344,656,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | import os
import tensorflow as tf
from tensorflow import keras
(train_images, train_labels), (test_images, test_labels) = tf.keras.datasets.mnist.load_data()
train_labels = train_labels[:1000]
test_labels = test_labels[:1000]
train_images = train_images[:1000].reshape(-1, 28 * 28) / 255.0
test_images = test_images... | [
"Whtjdaks2@"
] | Whtjdaks2@ |
bf5ff811dd36959cbb56b862856ef8a46fcdaabe | a7e5aa55139641ca49d27c8b0c275c25f8cc0c54 | /src/main/python/modules/window_statusbar/gui/bar.py | 209b4a51917b5adec045657e13011b29c5680617 | [] | no_license | AlexWoroschilow/AOD-Reader | 5a5fa4ea8184ea2df2301870ccd67717eab307f1 | 6e643958a4fae62128f036821030b8ea9f937d07 | refs/heads/master | 2022-02-24T05:48:48.549468 | 2019-09-20T23:42:03 | 2019-09-20T23:42:03 | 197,986,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # -*- coding: utf-8 -*-
# Copyright 2015 Alex Woroschilow (alex.woroschilow@gmail.com)
#
# 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
#
# Unles... | [
"alex.woroschilow@gmail.com"
] | alex.woroschilow@gmail.com |
650c7e5fa5b24c7ff8e597b34a818a2c3cecb225 | 56c3c324f5c35c34e7a72172568dedf4c301c4fe | /products/migrations/0010_auto_20210305_1435.py | 62b43453e670105d6588a3ece4e2ad370d63ecd1 | [] | no_license | Shubh-Bajpai7/DIS-COM | 7868b101fb4bba726363b8f982b036a64d3888d9 | 860fa4f2821ae428388cace4cd797302de77f5e0 | refs/heads/master | 2023-08-19T00:14:54.060445 | 2021-09-29T12:26:24 | 2021-09-29T12:26:24 | 411,643,523 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # Generated by Django 3.1.6 on 2021-03-05 14:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0009_auto_20210205_0505'),
]
operations = [
migrations.CreateModel(
name='Name',
fields=[
... | [
"shubh.bajpai999@gmail.com"
] | shubh.bajpai999@gmail.com |
df5280e7916d11004414fad03e054bf80f089274 | 730154818de1d81d0bca2546ca1a3ab029945860 | /test/cli/test_commands.py | 7fcb502ab2a37d9db734c94829a20e64fdfc5b1d | [
"MIT"
] | permissive | mnalband/schemathesis | b2b4cba8505dfc0f7779ac7fb10abbf42c566076 | 42b351589fae3f407a1de248750bc82d6b5796d1 | refs/heads/master | 2020-08-21T12:30:58.006890 | 2019-10-16T08:59:36 | 2019-10-18T21:28:32 | 216,160,468 | 0 | 0 | MIT | 2019-10-19T06:31:13 | 2019-10-19T06:31:13 | null | UTF-8 | Python | false | false | 9,661 | py | import pytest
from _pytest.main import ExitCode
from hypothesis import HealthCheck, Phase, Verbosity
from requests.auth import HTTPDigestAuth
from schemathesis.runner import DEFAULT_CHECKS
def test_commands_help(cli):
result = cli.run_subprocess()
assert result.ret == ExitCode.OK
assert result.stdout.ge... | [
"Stranger6667@users.noreply.github.com"
] | Stranger6667@users.noreply.github.com |
a6175ae5cd23a7649a3efbce875e054356277184 | 5b9af6e80cd5ffd1089960dba70143b947150245 | /OpenCV/text_book/opencv_practice_answer/05-cv-02-05-matplotlib_one.py | 91d69ab13a4ec87bf2f9760ec85d4c32d4650f8f | [] | no_license | bigdatachobo/Study | 4c0c89c8c5f2e132383fc7b15ac0270f2c98f9dd | 380dcdaf39803202dcdbf673f1b4665f1c4d07df | refs/heads/master | 2022-05-14T19:40:35.179414 | 2022-04-29T14:13:39 | 2022-04-29T14:13:39 | 247,881,646 | 2 | 16 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import matplotlib.pyplot as plt
import cv2
# 컬러 영상 & 그레이스케일 영상 불러오기
imgBGR = cv2.imread('images\cat.bmp')
imgRGB = cv2.cvtColor(imgBGR, cv2.COLOR_BGR2RGB)
imgGray = cv2.imread('images\cat.bmp', cv2.IMREAD_GRAYSCALE)
# 두 개의 영상을 함께 출력
plt.subplot(121), plt.axis('off'), plt.imshow(imgRGB)
plt.subplot(122), plt... | [
"noreply@github.com"
] | bigdatachobo.noreply@github.com |
a36ff24b2ee446e256d58f9764f146c8e03de42e | cab6730c6e6dea63a78c75274df21f7791f33950 | /Fakeinsta/wsgi.py | c8337bc252081854989ec3a10462437d867dff51 | [] | no_license | JoSmith18/Finstagram | a44f8a4e1be09306ac1215a70ec7503309f020bd | 4a1daea7a2427fa4f9ebc613fea4d5b6e8e2edf4 | refs/heads/master | 2021-09-03T11:58:11.525867 | 2018-01-08T22:22:06 | 2018-01-08T22:22:06 | 114,687,059 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Fakeinsta project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"jsmith@basecampcodingacademy.org"
] | jsmith@basecampcodingacademy.org |
672ff531121eeb5e8cbf9065d69e2750fe922853 | aab63fa11d0553ff8793bedf2737ef06a2138e9f | /sms/models.py | 4bc53ec0bd170c4eeece86138c1541faf5b554a0 | [] | no_license | sammienjihia/mwananchi | 4aee52e5b7eeb86670a2ee82eba21ce8da0dca4d | 23a1494906e9f4f4559a7f1da5f7dd55de97eb99 | refs/heads/master | 2021-01-11T00:11:02.863063 | 2016-10-18T10:29:08 | 2016-10-18T10:29:08 | 69,172,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | from __future__ import unicode_literals
from django.db import models
from search.models import Topics
# Create your models here.
class Insms(models.Model):
sender = models.CharField(max_length=255)
reciever = models.CharField(max_length=255)
recieved_date = models.DateTimeField()
text = models.CharFie... | [
"dilaninjihia@gmail.com"
] | dilaninjihia@gmail.com |
03f2d1cb0ebe423fc29491e8f9b182014c338584 | 39ac450698e68c44862fc8fdac9efc0ee9c6994d | /Week_02/id_40/leetcode_692_40.py | b2171ce9473813898913aa9cf2851a0b5b0413c8 | [] | no_license | algorithm003/algorithm | 70d0f6a292c480e017e90ab5996772becbc7113c | 06b1a12411c22c3f24fd58b24f17a923dca380d5 | refs/heads/master | 2022-02-02T11:59:01.917835 | 2019-06-26T14:33:22 | 2019-08-05T15:55:03 | 189,704,070 | 18 | 65 | null | 2019-08-05T04:35:13 | 2019-06-01T07:31:23 | C++ | UTF-8 | Python | false | false | 570 | py | # https://leetcode-cn.com/problems/top-k-frequent-words/
# 注意题目中的一个不太显眼但重要的要求:"如果不同的单词有相同出现频率,按字母顺序排序。"
# 目前了解到的最简洁的做法是直接利用 heapd 模块的 nsmallest 函数.
from typing import List
from heapq import nsmallest
class Solution:
def topKFrequent(self, words: List[str], k: int) -> List[str]:
counts={}
for i,... | [
"1102109100@qq.com"
] | 1102109100@qq.com |
ee000972c2fe43c9ba59fd76d31b153e07366a96 | b386130d3ca39443f2055a1162b3ac27f4bcfe3a | /.env/lib/python3.7/site-packages/aws_cdk/aws_autoscaling/__init__.py | c54c23d5e125dcd6c3372f5c83a86feecf07657e | [] | no_license | miromasat/aws-auto-witness | 5a83d77cbbada78f93af7cc0e4bd4633d0aebbd2 | 412af55405d7122cc3a6d587ed3115ac1ef9a8a7 | refs/heads/master | 2020-12-27T21:52:48.681444 | 2020-02-26T01:29:36 | 2020-02-26T01:29:36 | 238,071,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384,560 | py | """
## Amazon EC2 Auto Scaling Construct Library
<!--BEGIN STABILITY BANNER-->---

---
<!--END STABILITY BANNER-->
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
### ... | [
"mmmasat@a483e7dd7ec3.ant.amazon.com"
] | mmmasat@a483e7dd7ec3.ant.amazon.com |
c6c6323c6e8149cfa777226d6b774aadd0f6d089 | aa1e637de90f69f9ae742d42d5b777421617d10c | /nitro/resource/config/ntp/ntpparam.py | eeeb63f88a5a0e1502be215dfd0c498591acd78f | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | km0420j/nitro-python | db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba | d03eb11f492a35a2a8b2a140322fbce22d25a8f7 | refs/heads/master | 2021-10-21T18:12:50.218465 | 2019-03-05T14:00:15 | 2019-03-05T15:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,294 | py | #
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"lennart.weller@hansemerkur.de"
] | lennart.weller@hansemerkur.de |
babcc69b9a28f701d40e2b837b6de7735e6547a2 | fbb544fda7b5b90162ef7b86ccb38f71e6f07c02 | /src/vision/scripts/pan_tilt_node.py | 1fa10d2256a1328e9aafcea3f8dac8099d18127b | [] | no_license | RingOfFireOrg/PyroKenHumanoidAI | 5979ae72f21544273b17c9c6593b24d681ed02e6 | 94feaca1d60fa4eb04098e49f9add76a2fad6188 | refs/heads/master | 2020-03-13T17:53:51.103728 | 2018-04-27T01:06:43 | 2018-04-27T01:06:43 | 131,226,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,164 | py | #!/usr/bin/env python
# This ROS Node converts Joystick inputs from the joy node
# into PiPan controls to manipulate a pan-tilt camera
# It publishes joint state messages.
# =======================================================
from __future__ import division
import atexit
from math import pi
import rospy
from sensor... | [
"daniel.w.mcdonald@gmail.com"
] | daniel.w.mcdonald@gmail.com |
5c7a26e769958947f026aad486869e5e75bbac75 | 635aac1d7c2bc0b98c93e7c951f71639b79dfef1 | /cir/phase_control.py | 386e46aacff66198beb09b09f5a118162a5b6b2d | [
"MIT"
] | permissive | wafield/cir | b45c61bbd0685ebda21c3da1f2f37c05bbc9cd11 | 123d4bfe3e5bb4b0d605de486a91a0cb7eb34e4c | refs/heads/master | 2022-10-10T09:13:26.870288 | 2018-06-29T06:14:20 | 2018-06-29T06:14:20 | 138,433,868 | 0 | 0 | MIT | 2018-06-23T21:11:53 | 2018-06-23T21:11:53 | null | UTF-8 | Python | false | false | 4,248 | py | PHASE_CONTROL = {
'paused': {
'short_name': 'paused',
'full_name': 'Paused',
'instructions': 'The deliberation process is temporarily paused.',
'claim_active': 'active',
'vote_btn': 'disabled',
'prioritize_btn': 'disabled',
'theming_menu': 'hidden',
'i... | [
"wafield.pku@gmail.com"
] | wafield.pku@gmail.com |
f2b34dd64c3e7b24cac4c5d362dec04c6200c5d4 | b207df9aa87729e7802eb2cd825c72d3c13cc64b | /flipping.py | b0d56e670916aecc572b82b2c2e0454830eb9434 | [] | no_license | chandumanu111/tcsTest | b74be23e81226a98c66bc30e901e58de394540ba | 01c61c5bf7be492fbcdfac3c846cc571a98c11c2 | refs/heads/main | 2023-08-14T18:15:24.986064 | 2021-10-15T16:38:07 | 2021-10-15T16:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 25 23:01:37 2019
@author: Manu
"""
#image flipping
'''
from PIL import Image
img=Image.open('textmirror.jpg')
transpose_image=img.transpose(Image.FLIP_LEFT_RIGHT)
transpose_image.save('corrected.jpg')
print("done flipping")
'''
import cv2
img=cv2.imread('bullethole.jpg'... | [
"manasakrishna121@gmail.com"
] | manasakrishna121@gmail.com |
c05336076541453c1569b9d8c09221f777d63f7b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /2nciiXZN4HCuNEmAi_6.py | 0bd7f17fca7fe6993cac5c0ec60e2e367d3dc816 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py |
def flatten(r, resp=None, a="main"):
if resp is None:
resp = list()
if type(r) == list:
for i in r:
resp.append(flatten(i, resp, "rec"))
else:
return r
return resp if a== "rec" else [i for i in resp if type(i)!=list]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
967bf98e119cf4945094659fc337d80cf50c826f | 764591f1160e39898b8a7ffef262839954c15675 | /hit_project/hit_project/settings.py | 9935c5042ecf2069014a0e9132c02b6bc5f83f52 | [] | no_license | aryakipathak/django-project | 62c01ebc3d4cd5038b5217778c57a54aa40939ad | 4b42743bc71a3f87354379e1003e47ecb3bb842d | refs/heads/master | 2020-04-13T04:52:09.833424 | 2018-12-24T13:26:08 | 2018-12-24T13:26:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,390 | py | """
Django settings for hit_project project.
Generated by 'django-admin startproject' using Django 2.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""... | [
"noreply@github.com"
] | aryakipathak.noreply@github.com |
04de02a0bdc8ba3e56394b0e811691af03f8d834 | 7a4a33bd2181f818494e95bf33cf02117172dca1 | /src/harmonic_oscillator_classical_limit_energy.py | d9e92e85b813e6b3c1fbd32355de44ce9f4cb3bd | [
"MIT"
] | permissive | s6beotto/Harmonic-Oscillator | f3e804496f2931b9309656ed1cbfe56299d819b7 | 081555ea0120350f400586e67a26076f6f6ee2ad | refs/heads/master | 2021-02-14T14:49:06.253395 | 2020-03-31T18:13:41 | 2020-03-31T18:13:41 | 244,812,959 | 0 | 0 | null | 2020-03-12T20:40:48 | 2020-03-04T05:10:32 | Python | UTF-8 | Python | false | false | 4,519 | py | #!/usr/bin/env python3
# import modules
from tools import Potential, Kinetic, Energy, deltaEnergy, Metropolis, getRootDirectory, running_mean, block, autoCorrelationNormalized, getIntegratedCorrelationTime
import numpy as np
from multiprocessing import Pool
import csv
from itertools import islice
from configparser imp... | [
"s6beotto@uni-bonn.de"
] | s6beotto@uni-bonn.de |
6c1cc6e54292ce3dc873ecf2c2ab56d103b1057d | 6ac0aa077de3d234ad19eae7e65813d3b99a89af | /138_CopyListWithRandomPointer/solution2.py | 155c275cf582a3be2b031f93097cf175bc0f79a3 | [] | no_license | changchingchen/leetcode | 2c85dd2c433dd3937be3f74a87534a8fccd80b38 | 481e873a0332c7939e3a24281bcea837b383af58 | refs/heads/master | 2023-01-12T02:08:44.339658 | 2020-10-25T14:33:44 | 2020-10-25T14:33:44 | 266,359,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | """
# Definition for a Node.
class Node:
def __init__(self, x: int, next: 'Node' = None, random: 'Node' = None):
self.val = int(x)
self.next = next
self.random = random
"""
class Solution:
def copyRandomList(self, head: 'Node') -> 'Node':
if not head:
return None
... | [
"tim.changching.chen@gmail.com"
] | tim.changching.chen@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.