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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
366e5b6c1921361a7577480414955fd30e18ee39 | 0547c3ebab814e3fdf2616ae63f8f6c87a0ff6c5 | /846.hand-of-straights.py | 1efee8792025199a30b3260fd14120bab6d55e5d | [] | no_license | livepo/lc | b8792d2b999780af5d5ef3b6050d71170a272ca6 | 605d19be15ece90aaf09b994098716f3dd84eb6a | refs/heads/master | 2020-05-15T03:57:15.367240 | 2019-07-30T03:11:46 | 2019-07-30T03:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | class Solution(object):
def isNStraightHand(self, hand, W):
"""
:type hand: List[int]
:type W: int
:rtype: bool
"""
| [
"qgmfky@gmail.com"
] | qgmfky@gmail.com |
b67b5e6d66ad477d22a129a6bb6faf2a37a69867 | ad846a63f010b808a72568c00de016fbe86d6c35 | /algotradingenv/lib/python3.8/site-packages/IPython/external/decorators/_numpy_testing_noseclasses.py | 9f8f382391de958a20ccb9a35664f5c7c66ba463 | [] | no_license | krishansinghal29/algotrade | 74ee8b1c9113812b1c7c00ded95d966791cf76f5 | 756bc2e3909558e9ae8b2243bb4dabc530f12dde | refs/heads/master | 2023-06-02T01:53:24.924672 | 2021-06-10T09:17:55 | 2021-06-10T09:17:55 | 375,641,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | # IPython: modified copy of numpy.testing.noseclasses, so
# IPython.external._decorators works without numpy being installed.
# These classes implement a "known failure" error class.
import os
from nose.plugins.errorclass import ErrorClass, ErrorClassPlugin
class KnownFailureTest(Exception):
"""Raise this exce... | [
"krishansinghal29@gmail.com"
] | krishansinghal29@gmail.com |
27ccdbea81862874e0b78a77232a7d471e5f184a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Av2u6FKvzFvrtGEKS_18.py | 4e2d4cf4fdcb9ad90f1ec69e7cba9c1c762d567b | [] | 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 | 846 | py |
# Do not touch this starter code but implement the reverse function at the
# end of the LinkedList class
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
class LinkedList(object):
def __init__(self):
self.head = None
self.tail = None
def insert(self, data):
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
aefe95e6018e09299e56e99a58f0ee15d7083c8d | cc892dd4361525e61bb7fe892ac3928b3e508887 | /what.py | 61eb1213c7e30bac13c2307eac80444fa24641e0 | [] | no_license | Tsuirongu/PyQt | 0a3498e0906868e928bd6a261fe1a2758781267d | 3f0d3d25e43c587b68d0565d78840f1233980b54 | refs/heads/main | 2023-02-04T22:42:38.691985 | 2020-12-29T06:16:00 | 2020-12-29T06:16:00 | 325,202,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,974 | py | import sys
import os
import json
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtWebEngineWidgets import QWebEngineView
from PyQt5.QtCore import *
from PyQt5 import QtCore, QtGui, QtWidgets
import loadCsv
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
class DragLabel(QLabel):
def __... | [
"noreply@github.com"
] | Tsuirongu.noreply@github.com |
9a91b60c24903f61054fed747c3be85c66cb2793 | 256f817910dd698970fab89871c6ce66a3c416e7 | /1. solvedProblems/340. Longest Substring with At Most K Distinct Characters/340.py | e1fd7e173bc2c9b114189909699c70c7543f9303 | [] | no_license | tgaochn/leetcode | 5926c71c1555d2659f7db4eff9e8cb9054ea9b60 | 29f1bd681ae823ec6fe755c8f91bfe1ca80b6367 | refs/heads/master | 2023-02-25T16:12:42.724889 | 2021-02-04T21:05:34 | 2021-02-04T21:05:34 | 319,225,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,982 | py | # !/usr/bin/env python
# coding: utf-8
"""
Author:
Tian Gao (tgaochn@gmail.com)
CreationDate:
Sat, 11/28/2020, 20:48
# !! Description:
"""
import sys
from typing import List
sys.path.append('..')
from utils import binaryTree, nTree, singleLinkedList
from utils.utils import (
printMatrix,
printDict,
... | [
"tgaochn@gmail.com"
] | tgaochn@gmail.com |
75ccc5e971e7897820fb56e7d4c7130e5188c704 | b60d87e9818a336f5baf43764f242a5e015c84d8 | /rasa_dm/policies/ensemble.py | 2e98c9e92d0aa143901143effc008407fb2ffd0a | [] | no_license | mukesh-mehta/Chatbot | b3062e82cae07827847fdbad18bf1cc88aa9309d | 69864a5dd96aefaa6b4958fec0513186e6af2d3d | refs/heads/master | 2023-03-04T13:54:07.391881 | 2023-02-20T14:29:33 | 2023-02-20T14:29:33 | 114,714,602 | 4 | 10 | null | 2023-02-20T14:29:34 | 2017-12-19T03:27:07 | Python | UTF-8 | Python | false | false | 3,610 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import io
import json
import os
import numpy as np
import rasa_dm
from builtins import str
from rasa_dm.trackers import DialogueStateTracker
from rasa_dm.util import cre... | [
"mkm96.ubt2014@iitr.ac.in"
] | mkm96.ubt2014@iitr.ac.in |
2a6923ba26403d7e7ea8efed70b9bcf624239f60 | 3a031452d9abbeb16fb3f5592245aa1bf0a6c883 | /WeatherApp.py | 5e7896d65734edc0daa71b12abe37c189960bb7d | [] | no_license | Anam0609/WeatherApp | a0285ed409678603e169df3544d7bc768109607d | 23a6b635486e2e5b20430057d0630122a291e14f | refs/heads/master | 2022-11-30T01:47:43.959224 | 2020-08-11T10:30:21 | 2020-08-11T10:30:21 | 286,714,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | import tkinter as tk
import requests
from PIL import Image, ImageTk
# setting the window size
theheight = 500
thewidth = 800
# "https://api.openweathermap.org/data/2.5/weather?lat=35&lon=139&appid=7f65701f025236c354d7754c5a4e0b71";
def get_weather(city):
weatherkey = '7f65701f025236c354d7754c5a4e0b71'
url = ... | [
"biancamajikijela95@gmail.com"
] | biancamajikijela95@gmail.com |
96bbad619bf902b5c03c90f60b751ea234ae0cb1 | 01ec5fae952211e0a0ab29dfb49a0261a8510742 | /backup/scripts/s1_src.py | 2059a709914e95436fd3845342e581a5154dc71d | [] | no_license | algoboy101/LeetCodeCrowdsource | 5cbf3394087546f9051c493b1613b5587c52056b | 25e93171fa16d6af5ab0caec08be943d2fdd7c2e | refs/heads/master | 2021-02-20T00:18:51.225422 | 2020-06-21T09:04:24 | 2020-06-21T09:04:24 | 245,323,834 | 10 | 4 | null | 2020-03-09T02:23:39 | 2020-03-06T03:43:27 | C++ | UTF-8 | Python | false | false | 2,676 | py | #!/usr/bin/env python2
#-*- coding:utf8 -*-
"""
通过source/src.txt文件获取以下信息:
d["index"] = index
d["name"] = name
d["title"] = build_title(index, name)
d["url_leetcode_cn"] = url_leetcode_cn
d["url_leetcode"]
"""
import glob
import urllib
import os
import pickle
import urllib
data = {}
fname_src =... | [
"chenwenwen0210@126.com"
] | chenwenwen0210@126.com |
138e79d105f114c67ae8e2c12bcd6e2bc886a47f | 4b61ba2dded57be5673d5277cffadf6c13181b9f | /lab/lab1/0916/fifo_test.py | c965a8e4147e41e00289005a109b2ee141e36afe | [] | no_license | CL2228/ECE5725-Embedded_Operating_Systems | 447f15da257f5ff0b66e821dd795983aff79d32a | c9b1f44babaeba5837ce9b5d721b68050ddce05f | refs/heads/main | 2023-08-18T05:38:20.174596 | 2021-10-06T03:09:42 | 2021-10-06T03:09:42 | 406,428,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | """
Names: Chenghui Li, Hehong Li
NetIDs: cl2228, hl778
Lab1, 09/09/2021 & 09/16/2021
"""
import subprocess
import sys
x= sys.stdin.readline()
while x != "q\n": # if input a q, break the while and quit the video
if x == "p\n": # if input a p, pause the video
cmd = 'echo "' + "pause" + '" > /... | [
"g20170282@icloud.com"
] | g20170282@icloud.com |
acf0d6f6b28293d3fa1bfd2c8f09d6c148245659 | 45c25b56705c7782e9b547f18bce4459ac83d4ac | /build/config.gypi | 030baad2aa02a346830f639490aa2fb1f0f64cd8 | [] | no_license | stakeout/csssr-test | 14cbeef185c5411c39dd23b7527ab2ee347e7c94 | 10c32271802578ef3ed25d9b13de42b381d7783c | refs/heads/master | 2021-01-20T19:19:51.520894 | 2016-06-27T14:35:53 | 2016-06-27T14:35:53 | 60,634,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"host_arch": "x64",
"icu_data_file": "icudt57l.dat",
"icu_da... | [
"novash@tut.by"
] | novash@tut.by |
03f78e02bcb35721419e9b22592c1ff69b8001ee | e902ce7156544420a18e838ff80b7fada60fee6f | /auctions/migrations/0016_remove_listing_winner.py | 15b188088a4409ebace540badb2a9078a1921a47 | [] | no_license | martyanovandrey/Auctions | 4e45a48b044055f3ac35cbc23c6d95f6dc2094b7 | 58c70857b10c070162e496bf8da0227efedf85bd | refs/heads/master | 2023-06-25T02:26:04.015361 | 2021-07-28T17:39:06 | 2021-07-28T17:39:06 | 297,530,574 | 0 | 0 | null | 2020-10-18T19:11:44 | 2020-09-22T03:59:56 | Python | UTF-8 | Python | false | false | 328 | py | # Generated by Django 3.1 on 2020-10-16 19:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('auctions', '0015_auto_20201016_2256'),
]
operations = [
migrations.RemoveField(
model_name='listing',
name='winner',
)... | [
"37772440+martyanovandrey@users.noreply.github.com"
] | 37772440+martyanovandrey@users.noreply.github.com |
8d8fdbe506c47f47787dd5aab4831c37f052bbab | 8bb9c2a39b586ec7f9ef630e557541ac7d754ba6 | /Mundo 2/Python_Exercicios/ex041.py | 06782808b41f220be2af4efeb4b3da7d647d5bf5 | [] | no_license | SirGuiL/Python | 390bd18ddb8af84271d72221314bb744f8af6e09 | 4a6c51a239548fc88788f71cc54184ef598c2584 | refs/heads/main | 2023-07-09T21:07:22.890943 | 2021-08-09T16:16:25 | 2021-08-09T16:16:25 | 383,320,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from datetime import date
ano = int(input('Digite seu ano de nascimento: '))
idade = date.today().year - ano
if(idade <= 9):
print('Você se encaixa na categoria mirim.')
elif(idade <= 14):
print('Você se encaixa na categoria infantil.')
elif(idade <= 19):
print('Você se encaixa na categoria junior.')
eli... | [
"guibiel-10@hotmail.com"
] | guibiel-10@hotmail.com |
be3f75c453bf73ade54b0a5a7997dcd2e1d53c3a | e082450b1b8b0fad78e3aa325e305f3f7cdfa5d8 | /component_add.py | 6322b4dded3571b192ff4d4fdd28fd1daeea95d1 | [] | no_license | Aditya-Kashyap/Automation | f41095f53f79d60c835f1856ff36f033ed07c167 | 0bccd805ea9d58054d7236d3faaa02e5d0c9e63e | refs/heads/master | 2020-12-22T20:04:01.197235 | 2020-04-30T07:04:18 | 2020-04-30T07:04:18 | 236,916,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,320 | py | class ComponentAddition:
def __init__(self):
self.arr = {"name": "sample-name", "type": "sample-type", "flavor": "sample-flavor", "description": "sample"}
@staticmethod
def comp_add():
print("Enter the Name of Component to be added")
comp_name = input()
print("Enter the Typ... | [
"adi.inhere@gmail.com"
] | adi.inhere@gmail.com |
fe14f2115c6d8ac2ddf2d6e11be9e9c06367e1c5 | 299eabcb14187b58f931b9adc0542f7113210e27 | /info/migrations/0005_auto_20210526_0739.py | 6e162c69faf85463ca189517dfed59244a214220 | [] | no_license | hebilidu/animal_info | e19b741162e19bc9bf4e30de6c92da079d292ed9 | 587dcfb572fedf8ce7c3d1e09cabe6e3a5754e2e | refs/heads/main | 2023-05-08T20:59:52.582903 | 2021-06-01T06:00:29 | 2021-06-01T06:00:29 | 370,058,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # Generated by Django 3.2.3 on 2021-05-26 07:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('info', '0004_passport_last_visited_country'),
]
operations = [
migrations.CreateModel(
name='Country',
fields=[
... | [
"git@hebi.fr"
] | git@hebi.fr |
947166b31d96d83cdee5e6bd191f02766a960666 | 613a5915117e995ca3ac4146de978ab29e2518c9 | /dmwTrader/technical/linreg.py | 1e32df62dfdab1e49a971c05250e76ea8a58b93a | [] | no_license | dxcv/DmwTrader | 44f4e49cbbe8276c37a46d27e3ed408aaed31ec5 | 9735227ac98224c847b9af80fc086ce87b8b1511 | refs/heads/master | 2020-06-20T11:21:56.104314 | 2017-12-28T06:04:31 | 2017-12-28T06:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,189 | py | # -*- coding: utf-8 -*-
"""
.. modulefrom:: pyalgotrade
.. moduleauthor:: Gabriel Martin Becedillas Ruiz <gabriel.becedillas@gmail.com>
revised by Zhongyu
"""
from dmwTrader import technical
from dmwTrader.utils import collections
from dmwTrader.utils import dt
import numpy as np
from scipy import stats
# Using s... | [
"hezhongyu0@hotmail.com"
] | hezhongyu0@hotmail.com |
64bb985a43603d2cd5341cc937268b27fd0230de | 4cbc2a16074c51d928dd6686d3ba912b6c61fc88 | /simple_social/accounts/urls.py | db9ceef6d44193c2b59e06eb4322175ad7361198 | [] | no_license | andrew103/social_media_clone | b63439239630fa5cf75b9a5de6adf3b9c335824b | 7129b00038beaf1a27a9d0604351b577ff530f1f | refs/heads/master | 2020-12-02T09:11:22.378928 | 2017-07-09T20:21:38 | 2017-07-09T20:21:38 | 96,708,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from . import views
app_name = 'accounts'
urlpatterns = [
url(r'^login/$',auth_views.LoginView.as_view(template_name="accounts/login.html"), name = "login"),
url(r'^logout/$', auth_views.LogoutView.as_view(), name = "logout")... | [
"andrew_103@rocketmail.com"
] | andrew_103@rocketmail.com |
190a5ad0ef2bfe1fa70d5db8c10a62b7ca1482e2 | f1c07e84c9637c726aecca018dff4360a8523550 | /python/7-kyu/complementary-dna.py | 2922de2094797eed39d6a3b0831b293d6e397223 | [] | no_license | magladde/code-wars | d4112210fb2ecd51cc0602e4f58b75c9a4b4271b | 9409cce454e3255d97a6af020773c9aab435aab6 | refs/heads/master | 2022-06-22T23:24:12.129370 | 2020-05-12T22:58:37 | 2020-05-12T22:58:37 | 261,883,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | def DNA_strand(dna):
complimentary_strand = ''
for i in range(len(dna)):
if dna[i] == 'T':
complimentary_strand += 'A'
elif dna[i] == 'A':
complimentary_strand += 'T'
elif dna[i] == 'G':
complimentary_strand += 'C'
elif dna[i] == 'C':
... | [
"magladde@gmail.com"
] | magladde@gmail.com |
3f7bfbadf9329b5930c000e11628cb365ad9c346 | c46bdc2bebb8a6c5868e3a12c1c9104eeecfee48 | /chapter 15/15-3.py | b2e354ac71e5b0421e09207bd38623018d4c1e45 | [] | no_license | JoeJiang7/python-crash-course | 4612d9393918a8c460501df9a9a53e464b54c65b | 0dc7fd517e71f1ea9229c9665dfdf2111d631e25 | refs/heads/master | 2020-08-24T08:37:31.888920 | 2019-10-22T12:45:33 | 2019-10-22T12:45:33 | 216,795,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | import matplotlib.pyplot as plt
from random_walk import RandomWalk
while True:
rw = RandomWalk()
rw.fill_walk()
point_numbers = list(range(rw.num_points))
plt.plot(rw.x_values, rw.y_values, linewidth=1)
plt.scatter(0, 0, c='green', edgecolors='none', s=100)
plt.scatter(rw.x_values[-1], rw.y_va... | [
"joejiang@seu.edu.cn"
] | joejiang@seu.edu.cn |
e403926edc63a77639f93fdc497335b065b136c4 | ff15cc1435c7fc3cb099e6d3ec8a6c2dbb3bc11c | /Programming Basics with Python/First_Steps_in_Coding/01_Hello_SoftUni.py | b8b38c7ced24f1042add7de96ca3aacb2c0b96ae | [
"MIT"
] | permissive | petyakostova/Software-University | 4c6a687e365cb918e75b678378e699f8bd707fe0 | 672d887d104260f18220bfb3d4a667b96a444b23 | refs/heads/master | 2020-03-12T12:56:02.407069 | 2018-07-16T20:12:20 | 2018-07-16T20:12:20 | 130,630,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | # prints the text "HelloSoftUni"
print('Hello SoftUni') | [
"petya_kostova_@abv.bg"
] | petya_kostova_@abv.bg |
34166c18d83a2ff7918a33296d355457645bae1b | 5e31aec4b38d53993e416a4974842d6378148de2 | /ratelimit9/forms.py | e24bdcea3cfc3a4daca13fa599d33a637ebf942f | [
"MIT"
] | permissive | 9dev/django-ratelimit9 | b2182ef067457a742c86130f624e2792eb02890b | ac1e6affeaa1084013467349e258e52abc50e7bb | refs/heads/master | 2021-08-16T08:02:45.147091 | 2014-12-19T13:00:52 | 2014-12-19T13:00:52 | 28,229,301 | 2 | 0 | MIT | 2021-06-10T17:30:23 | 2014-12-19T12:51:54 | Python | UTF-8 | Python | false | false | 639 | py | from captcha.fields import ReCaptchaField
class Ratelimit9Form(object):
def __init__(self, *args, **kwargs):
captcha = kwargs.pop('captcha', None)
super(Ratelimit9Form, self).__init__(*args, **kwargs)
if captcha:
self.fields['captcha'] = ReCaptchaField(
... | [
"9devmail@gmail.com"
] | 9devmail@gmail.com |
e77b9bf7ab6d5437d6b040caef3e6915f04fffca | a71582e89e84a4fae2595f034d06af6d8ad2d43a | /tensorflow/python/data/experimental/kernel_tests/optimization/make_numa_aware_test.py | d79ae4387c868d4821ac65787ba0bc04d47cc7d3 | [
"Apache-2.0"
] | permissive | tfboyd/tensorflow | 5328b1cabb3e24cb9534480fe6a8d18c4beeffb8 | 865004e8aa9ba630864ecab18381354827efe217 | refs/heads/master | 2021-07-06T09:41:36.700837 | 2019-04-01T20:21:03 | 2019-04-01T20:26:09 | 91,494,603 | 3 | 0 | Apache-2.0 | 2018-07-17T22:45:10 | 2017-05-16T19:06:01 | C++ | UTF-8 | Python | false | false | 1,813 | py | # Copyright 2018 The TensorFlow 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
c14d0ef0b5ded965c2955fe2dba0d3e10bce2d87 | 6978c3de8160e3e88930e8da53588bd4b63ade94 | /home/bin/syncthing-archive.py | 417b8ce7cadfa6ddf6986a17185ac93a59aea3b6 | [] | no_license | vonpupp/dotfiles-apps | 37126cdd516079db105f3acce291854b9464edf2 | b8188866193ccacf648758cb306c5265697c021c | refs/heads/master | 2022-08-04T16:22:49.088386 | 2022-07-10T00:51:27 | 2022-07-10T00:51:27 | 36,723,839 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | #!/usr/bin/env python
# Source: https://docs.syncthing.net/users/versioning.html#external-file-versioning
# Lets assume I have a folder "default" in ~/Sync, and that within that folder there is a file docs/letter.txt that is being replaced or deleted. The script will be called as if I ran this from the command line:
... | [
"albert@haevas.com"
] | albert@haevas.com |
39dfe7da8a352ef55114fb6b089a6e550760e664 | b29d68ea866fdf99bc92609ab6bd0654f5ad2130 | /tut2bonus.py | 0a5da54c0a6d8470ac6ae7a6e244e31d5287d40d | [] | no_license | Mulokoshi/Simon-Assignment-1 | 05299f92f244e00a6436bc15afead13168bd9ba4 | 6fba6d49676fa3b594e5480dfa8f9f61af9108ba | refs/heads/master | 2021-01-17T12:37:19.569972 | 2016-06-20T10:39:43 | 2016-06-20T10:39:43 | 56,517,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | ## We obtained the difference of the two Area by integrating the function in to two parts,
## from -5 to 5. The 1st initial part is from -5 to 3 and 2nd part from
## 3 to 5, Therefore, we can conclude that the 1st integral is the sum of the two parts and the 2nd integration is
## only for the initial part.
import nu... | [
"simonmulokoshi@gmail.com"
] | simonmulokoshi@gmail.com |
14d7846fd0619742b8296a89bde76be7c95dda8a | c0bd691bb09a1a8b35b07aa27ffed54a4f2e8b57 | /evaluation/questionnaires/questionnaire_eval.py | df5f85a5444a467d1352a621d37d95426a0277c0 | [] | no_license | codwest/interactive_image_segmentation_evaluation | 2302aa1cae7a012779287cf3d9a0a2356051ffc0 | 7c018b2fc0e22471dc6f820ad3f40d9c2dc1b57a | refs/heads/master | 2022-04-13T05:47:39.788961 | 2020-03-19T16:42:40 | 2020-03-19T16:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,392 | py | from collections import namedtuple
from typing import List, Union
import numpy as np
def generate_dummy_questionnaire_data(mode: str, num_users: int, num_prototypes: int = 1):
"""Function to generate example data"""
if mode.lower() == 'sus':
if num_prototypes == 1:
return np.random.randin... | [
"mario.amrehn@fau.de"
] | mario.amrehn@fau.de |
596ba1a6543c1cde196b8ccaa7f46776e36327d6 | 2f02026ec22cf350d65449f90aea4dc9eb7ebc89 | /exercise3/score_strategy.py | 800fa51d73111ad3ede48da68ffb47d4b382cfe0 | [] | no_license | Ten10/NLPCourse | 3a349e2d665cebb33a083c2386772a7e176e3c1b | 6da394c188f1272950f86724f89e0de5c9d4e680 | refs/heads/master | 2020-09-11T12:08:57.581360 | 2020-03-14T17:27:31 | 2020-03-14T17:27:31 | 222,059,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,218 | py | import abc
from math import log10
from exercise3.corpus import Corpus
from exercise3.document import Document
from typing import Dict, List, Tuple
class ScoreStrategy(abc.ABC):
@abc.abstractmethod
def __init__(self, name: str, corpus: Corpus, **kwargs):
self.name = name
self.corpus = corpus
... | [
"jonathan.k@qspark.co"
] | jonathan.k@qspark.co |
0cb367809e325a0dd6c531f0d61a66a4ad15a1a6 | 43ccd4d2b43733790b015ff0aa298fbbf8e4aea6 | /springy/indices.py | 3e81c1184b9d909163856b1438e1e3f50d1ada43 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | dboczek/springy | 9c4ff247a898724ad71cc54fd20a54599155d3e3 | e1df3e66e67b6614826b833f77a64cb95453108e | refs/heads/master | 2021-01-18T04:49:28.487870 | 2016-01-29T20:54:48 | 2016-01-29T20:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,177 | py | from collections import defaultdict
import itertools
import six
from .connections import get_connection_for_doctype
from .fields import Field
from .utils import model_to_dict, generate_index_name
from .search import IterableSearch
from .schema import model_doctype_factory, Schema
from .exceptions import DocumentDoesNo... | [
"marcin.j.nowak@gmail.com"
] | marcin.j.nowak@gmail.com |
5479940e8409ca5cf4b10fe746b7b58d6f4ea083 | 4bae98f34747054505f11f2af0c61020bdcccf47 | /gde_test.py | 5e58bcd18c50d546d54b5070b0041d4913643387 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | edoliberty/streaming-quantiles | 726adc679ab25dde3d88555138426211465f5faf | 500747df3088ce4f236f84f5f5887d5f9a272ab8 | refs/heads/master | 2022-11-30T17:34:24.940409 | 2022-11-19T14:22:05 | 2022-11-19T14:22:05 | 54,480,798 | 53 | 23 | Apache-2.0 | 2022-11-19T14:22:06 | 2016-03-22T14:17:23 | Jupyter Notebook | UTF-8 | Python | false | false | 1,921 | py | import unittest
import numpy as np
from gde import GDE
class TestGDE(unittest.TestCase):
def test_one_update(self):
k = 10
gde = GDE(k, 3);
gde.update([0, 0, 0]);
self.assertTrue(gde.query([0, 0, 0]) == 1);
self.assertTrue(gde.query([0.01, 0.01, 0.01]) > 0.95);
... | [
"edo.liberty@gmail.com"
] | edo.liberty@gmail.com |
bb4865db730020b6945e02383297db7706ba99ad | c82da5e6c9287951c1c214ed172c03761d0b3940 | /Part 1 - Data Preprocessing/data_preprocessing_template.py | 5dd9e788990ab666983fbcbc4fcbdffcc43e21d5 | [] | no_license | NegiArvind/A-Z-machine-learning | 695d1cbbd20a5ca1d94533069b734d34b0b22c7e | 66b5c5e5c0abf03401016a4f932be3c24b6784c8 | refs/heads/master | 2020-04-02T04:46:54.149663 | 2018-10-21T17:20:33 | 2018-10-21T17:20:33 | 154,034,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | # Data Preprocessing Template
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Data.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 3].values # first argument i.e ':' says take all rows and 3 saying take 3 column
... | [
"negiarvind229@gmail.com"
] | negiarvind229@gmail.com |
badb4fd17812c95118c46b700aaf4cbbb0c9698a | 3cae0e4309cdad8a9c38668c1caeb8bdbdbc7224 | /mag/data_scripts/test.py | 94b9a780e4c5fdbe67bdae193ec370c189591a8f | [] | no_license | matmcc/graph_django_neomodel | bf84cd2e0eb08a703058447a8dcb0da0e7ded8fe | cd795a76bf9dbb45441f40a206f83dc4a6176323 | refs/heads/master | 2020-12-02T09:09:21.943323 | 2020-02-13T20:17:05 | 2020-02-13T20:17:05 | 230,957,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from mag.Mag import Mag_Api
from decorators import timing
mag = Mag_Api()
p = mag.get_paper(2157025439)
r = mag.get_refs(p)
c = mag.get_cits(p)
lp = r + c
@timing
def time_this():
return mag.get_cits(lp)
time_this()
| [
"matmcconkey@gmail.com"
] | matmcconkey@gmail.com |
78f3b9f5927206d15c77dd073f490b9202ab0fc2 | cac93d697f9b3a75f059d725dee0251a8a81bf61 | /robot/install/lib/python2.7/dist-packages/ur_dashboard_msgs/msg/_SetModeGoal.py | 7628590a2f33e2c657df2d3e8743b53b989e0882 | [
"BSD-3-Clause"
] | permissive | satvu/TeachBot | c1394f2833649fdd72aa5b32719fef4c04bc4f70 | 5888aea544fea952afa36c097a597c5d575c8d6d | refs/heads/master | 2020-07-25T12:21:34.240127 | 2020-03-09T20:51:54 | 2020-03-09T20:51:54 | 208,287,475 | 0 | 0 | BSD-3-Clause | 2019-09-13T15:00:35 | 2019-09-13T15:00:35 | null | UTF-8 | Python | false | false | 5,203 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_dashboard_msgs/SetModeGoal.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetModeGoal(genpy.Message):
_md5sum = "6832df07338535cc06b3835f89ba9555"
_typ... | [
"sarahvu@mit.edu"
] | sarahvu@mit.edu |
33503c160832f77601867c9dd684393799d296a4 | 01341bd59e8d51e98287a23fe94460959439642e | /11_hl_max_guesses.py | e82fb20a82da8e681980f00b2e5702950ee013da | [] | no_license | williamsj71169/02_Higher_Lower | d6a39e27711b03a3f21067696fbc615486a2f540 | 7d2cf92a54f346a98f9aac64f93aae32f982e553 | refs/heads/master | 2021-01-16T12:43:24.769153 | 2020-03-15T20:45:01 | 2020-03-15T20:45:01 | 243,126,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | #
import math
for item in range(0, 4):
low = int(input("Low: "))
high = int(input("High: "))
range = high - low + 1
max_raw = math.log2(range)
max_upped = math.ceil(max_raw)
max_guesses = max_upped + 1
print("Max Guesses: {}".format(max_guesses))
print()
| [
"58008516+williamsj71169@users.noreply.github.com"
] | 58008516+williamsj71169@users.noreply.github.com |
196e04b40f7912da4624f6e6f9ae396bb81751c6 | 6aaf1cc6caa35282d4acb347b11cd6dd138d7be7 | /challenge3/challenge3.py | 0b9c765f0975748ebaf095c6ddbacf41adb7b467 | [] | no_license | ntrainor1/Challenges | df3e5ab1b0415d430c988b605957bf21f70dcc66 | 555c3ab817af39d58879f7bc91ad240fa13ec07e | refs/heads/master | 2020-09-24T09:59:14.144274 | 2019-12-19T16:03:12 | 2019-12-19T16:03:12 | 225,734,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | import unittest
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class Challenge3(unittest.TestCase):
def ... | [
"nathaniel.trainor@sling.com"
] | nathaniel.trainor@sling.com |
f8a244ebb1e4016d0d197a54d46ec5194a9c4296 | 751c37e6d6c9add85da691f9e5bcc87757cd66ec | /scripts/xdg_extract.py | 0b90ec47200135b914ba906b56648d3a014393b8 | [] | no_license | andreavanzo/lu4r_ros_interface | 23d9ecdf908bf8c21f6ad55a0eff69f0d2238121 | 1b0e249541c359e1d0054375f76d6e9f9dfb2b83 | refs/heads/master | 2021-06-09T15:31:23.071501 | 2017-01-12T13:09:48 | 2017-01-12T13:09:48 | 68,290,354 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,920 | py | import xmltodict
import json
import pprint
import os
def find_node_in_list(root,serializerID,type="@serializerID"):
if type in root:
if root[type] == serializerID:
return root
for e in root:
res = find_node(e,serializerID,type)
if res is not None:
return res
def find_node(root,seriali... | [
"andrea.vanzo1@gmail.com"
] | andrea.vanzo1@gmail.com |
48de2103f2baa12bfa7ff1c30f880892b801a394 | 02263b003824b221e466928a997fd35f939bb655 | /core/utils/timeout.py | 4a697d94575be7bf70c57f8fdf321cc0f285f9cb | [
"Apache-2.0"
] | permissive | neoericnet/cmdbac | dad27b53a54df0a3ab76df4ea7cf4e66ec1dbf0d | 1f981e6f110728e51ba4ffdb90ff2d4ce091057a | refs/heads/master | 2020-08-06T23:54:01.631707 | 2017-11-15T05:54:47 | 2017-11-15T05:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from functools import wraps
import errno
import os
import signal
class TimeoutError(Exception):
pass
class timeout:
def __init__(self, seconds=1, error_message='Timeout'):
self.seconds = seconds
self.error_message = error_message
def handle_timeout(self, signum, frame):
raise Timeo... | [
"zeyuanxy@gmail.com"
] | zeyuanxy@gmail.com |
ea693066e5c2cfa3a129e92b9162b3156c200ed6 | 60598454222bc1e6d352993f9c4cd164cd6cc9cd | /core/migrations/0014_auto_20200723_1127.py | f07013abc7d877cba2d16a2195b83a8886e01144 | [] | no_license | nicksonlangat/mychurch | 12be8911ce1497d7c6a595d06275f21ecf58b185 | e503828cab165c9edcde89b3ef6d7c06b5eb7fdb | refs/heads/master | 2023-08-10T15:36:06.208376 | 2020-07-23T09:52:19 | 2020-07-23T09:52:19 | 281,030,716 | 0 | 1 | null | 2021-09-22T19:35:09 | 2020-07-20T06:15:58 | Python | UTF-8 | Python | false | false | 498 | py | # Generated by Django 3.0.8 on 2020-07-23 08:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0013_attendance_status'),
]
operations = [
migrations.RemoveField(
model_name='service',
name='seat_capacity... | [
"nicksonlangat95@gmail.com"
] | nicksonlangat95@gmail.com |
2a694eabe7199cc99ba33b4ee00cbceaed511c3c | ecc8ad26f7a4070650f0766875367f17aaa08bdf | /sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt.py | bbe1a6fc0d2346a605fe8fffee885322ae139d8c | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SnehaGunda/azure-sdk-for-python | 70eec2fb331916cc2b2765b69bd8e598c1e95533 | 88fae6ec703ac3641459b5d07158c9ed710524fe | refs/heads/master | 2022-12-01T15:15:30.855201 | 2020-05-18T20:22:49 | 2020-05-18T20:22:49 | 265,086,816 | 0 | 0 | MIT | 2020-05-18T23:19:41 | 2020-05-18T23:19:40 | null | UTF-8 | Python | false | false | 25,075 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from io import BytesIO
from datetime import date, time
from azure.core.exceptions import ClientAuthenticationError, ServiceRequestError, HttpResponseErro... | [
"noreply@github.com"
] | SnehaGunda.noreply@github.com |
c7b785d66e77bcc3c624b989a5fb4ac1850f82f0 | 692bbb2cb7170e9ef92e43d0a3a143aab4ca5e64 | /cd_custom_sale_credit/__openerp__.py | d0345caaf2ff4c0e38e1b660b2262533ba21c195 | [] | no_license | kailIII/O7-Custom-Sale-Credit | f1a0fa31677919dec74be462d62dc9b346d7f919 | bfbd31358d54777547ea422ab061e0c5fe964aca | refs/heads/master | 2021-01-21T15:43:17.079171 | 2014-12-01T03:21:31 | 2014-12-01T03:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
{
'name': 'Personalizacion del Modulo de Venta',
'version': '1.0.0',
'category': 'Ventas',
'sequence': 3,
'author': 'Gerardo A Lopez Vega @glopzvega',
'website': 'http://www.codetodev.com',
'summary': "Permite customizar la vista de ventas",
'description': "Permit... | [
"mcgalv@gmail.com"
] | mcgalv@gmail.com |
8f98d8f3660cdf41a784921e4755a08b7d2a5bd4 | beb637252e9b5ce3fa808ba4bb8f129823540cb0 | /stats/mantel/plot_ISC_subplots_mantel.py | b8137a936e43ef460f4de07aaeda554762ed9be0 | [
"MIT"
] | permissive | athiede13/free_speech | 6b4ecdfcf66cc80148fa870876836da3a0b98a03 | bde32c2d48724c98f089376876cf9888f67a9f20 | refs/heads/master | 2022-01-29T12:57:25.168260 | 2022-01-08T19:40:15 | 2022-01-08T19:40:15 | 176,300,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,522 | py | """
Plot subplots.
Created on Tue Sep 4 16:21:37 2018
@author: Anja Thiede <anja.thiede@helsinki.fi>
"""
import matplotlib.pyplot as plt
#%matplotlib qt
#%matplotlib inline
#to fill
filepath = '/media/cbru/SMEDY/results/mantel_correlations/2019_05_simple_model/'
filenames1 = (filepath + 'phon_clu_5.000000e-01-4Hz... | [
"anja.thiede@helsinki.fi"
] | anja.thiede@helsinki.fi |
002da74881db575d6ff7c07730665307babedfe2 | c12a32aa34dc141beff31cdceac68be4578ed9cf | /Snakefile | bca8d7129e54efffef219ca9d9363a12ac5569df | [] | no_license | taylorreiter/cosmo-kmers | a31f16fba24a0e45571a2e8182223e5965cd1afc | 94cc66ba101d56827f08129aa69473691b00c8f3 | refs/heads/master | 2020-06-20T23:24:41.127627 | 2020-04-18T16:03:42 | 2020-04-18T16:03:42 | 197,281,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | include: 'snakefiles/data.snakefile'
include: 'snakefiles/classify.snakefile'
include: 'snakefiles/mgx.snakefile'
rule all:
input:
#expand('outputs/gather_human_micro/unassigned/{sample}.un', sample = SAMPLES)
#"outputs/cosmo/hmp_2k_t138_mtx.labels.txt",
#expand('outputs/mgx_sigs/{sample}_... | [
"taylorreiter@gmail.com"
] | taylorreiter@gmail.com | |
05fc5187df71d55444543c1027e46b77e6aeaaa4 | b14f4302363380024ca9b5cc096dbcef230057bd | /JPA_MASTER_no_model/Deployment_code/Bin/digitization/test_main.py | 37593144c937145c1f708d138a97a481d89f0995 | [] | no_license | RajatChaudhari/Clustering_n_stuff | 1706da296656fc8c54d67c037d45ae5fd2b7b4f8 | b0de4bece13725ace69b12006c50da421478fea2 | refs/heads/master | 2020-04-22T22:36:46.926207 | 2019-02-12T10:57:46 | 2019-02-12T10:57:46 | 170,714,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import family_classifier,jp_struct,pp_struct
import mammoth
convertor = pp_struct.pp_to_struct()
clf = family_classifier.family_classify()
path = 'Manager, Human Resources Business Partners - Human Resources Business Partners - Human Resources.DOCX'
file = open(path, 'rb')
fils = mammoth.convert_to_html(file).v... | [
"silverprince.v1@gmail.com"
] | silverprince.v1@gmail.com |
0430b585c6f5da83bef5507cb158267ac18d89c4 | 63b1a78452cb4204e501e023bd9f3c8a364b723c | /test_nbdev/_nbdev.py | 358f0ff246827f6c9ce7115b0bbb8ec347081e0d | [
"Apache-2.0"
] | permissive | teddyxiong53/test_nbdev | 03e22ef361a1768bc14f83cf617b8ab5fd172663 | 11d4ca82eedb45f4a3f687bd3e3d06336ebcbe9c | refs/heads/master | 2023-07-17T21:19:41.518320 | 2021-09-12T01:52:50 | 2021-09-12T01:52:50 | 405,512,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"say_hello": "00_core.ipynb"}
modules = ["core.py"]
doc_url = "https://teddyxiong53.github.io/test_nbdev/"
git_url = "https://github.com/teddyxiong53/test_nbdev/tree/master/"
def custom_doc_links(name): r... | [
"1073167306@qq.com"
] | 1073167306@qq.com |
c16f8beb6dd17e8abea992b1486d2f97065e2a08 | 324d2f9f97c1eb82746ccbede11d359ce3ee0b60 | /Inject.py | 2bbd9635a78d20608221cd38b672261cdf861488 | [] | no_license | kokobae741/koko2in1new | 03512f1cd4b2c19e0a9a5b13046665667d3fdcf4 | f3be010bfcd2810244569d049e7381bf03ba0124 | refs/heads/master | 2020-06-12T21:46:03.520115 | 2019-06-29T18:13:43 | 2019-06-29T18:13:43 | 194,435,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,756 | py | import os
import sys
import random
import socket
import select
import datetime
import threading
lock = threading.RLock(); os.system('cls' if os.name == 'nt' else 'clear')
def real_path(file_name):
return os.path.dirname(os.path.abspath(__file__)) + file_name
def filter_array(array):
for i in range(len(array)... | [
"noreply@github.com"
] | kokobae741.noreply@github.com |
d27b28efcb5be09b33ca429f48cfea363d519429 | f70e55037d6098ff30af5fe57050c5f1f09ae2f9 | /app/api/admin.py | 7e2f53b2236a84f095a329c6db6aaa11b13f4ecc | [] | no_license | apoorv-on-git/pixel-editor-v2 | 13191d7f106c5cb69468e77acbf0c0f1becba958 | 52ef95ee96166e542737304da3cdcb1ba6dec3fb | refs/heads/master | 2022-12-28T07:19:10.613298 | 2020-10-02T11:42:45 | 2020-10-02T11:42:45 | 265,566,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,861 | py | from flask import Blueprint, jsonify, request, session
from app.utils.role_util import *
from app.db_controllers.auth_controller import *
from app.db_controllers.admin_controller import *
from app.utils.s3 import *
from app.db_controllers.helper import *
from app.db_controllers.logging import *
import json
admin_api =... | [
"apoorvelous@gmail.com"
] | apoorvelous@gmail.com |
6de11477ac51ab34a279bbbe020cfae8a87cd518 | 80a81c6e46298ea3d7d15a075e6359e5937911eb | /travel_guider/main_app/urls.py | b3dad109047719512f6a52444504aa3621340df1 | [] | no_license | pranavmodx/InOut6.0 | 628408206f36501ffabbd291be6273c4c0e82f1d | fb31ea482cd1a185eccf9e1ddf3954085f5fec90 | refs/heads/master | 2020-08-21T20:02:41.897889 | 2019-10-20T10:39:00 | 2019-10-20T10:39:00 | 216,236,246 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.urls import path
from . import views
urlpatterns = [
path('search', views.location),
path('ga', views.all_guides),
]
| [
"kurian.bkk@gmail.com"
] | kurian.bkk@gmail.com |
e690939d981b0797d6c1e0462b87509a33105f93 | 08e802066fbe75f4313dab14fdbf753f4085f2db | /evaluate.py | 4410fc4bc18500ce698fed623301c66c9c2fd1ad | [] | no_license | Full-Stack-Typhoon/STN-GTSB | e680b42729774d1331132c5c8f2d57740076f74a | 55d32aa6db3413e5d56d13d3d9f62de339a0c055 | refs/heads/master | 2023-01-27T12:04:15.691714 | 2020-07-27T02:22:54 | 2020-07-27T02:22:54 | 282,772,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | from __future__ import print_function
import argparse
from tqdm import tqdm
import os
import PIL.Image as Image
import torch
from torch.autograd import Variable
import torch.nn.functional as F
import torchvision.datasets as datasets
from data import initialize_data # data.py in the same folder
from model import Net
... | [
"vikaspatidar@nyu.edu"
] | vikaspatidar@nyu.edu |
ad18d9200e1912c46c1ab6b83a72f107dcb414a5 | 945e5d0338728b1411282325140b48ad29d2571c | /source/maizi/users/templatetags/myfilter.py | 315c1db6ff90c2c3a5f83f6c4d2d400e0c2c50df | [] | no_license | NickyWu123/MaiziEdu | 768b91499e4adcdf8e5cb937394bf8b8c79120bf | c46b9d793d2352dff3fea5acc1fceb4b1f853670 | refs/heads/master | 2020-12-24T06:12:07.360996 | 2016-11-08T10:56:28 | 2016-11-08T10:56:28 | 73,169,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | # -*- coding: utf-8 -*-
from django import template
register = template.Library()
@register.filter
def email2name(key):
return key.split('@')[0] | [
"1075569650@qq.com"
] | 1075569650@qq.com |
a2936518716f46a732c49bb4438e53440f319901 | 2879f990d80b916a952c058203440204541d4af7 | /fundamentals/session3/hw.session3/answer.py | 4d729278ed04bf2283c4c3419f06315743ede977 | [] | no_license | anhquan2505/nguyentrananhquan-fundamentals-c4e27 | 4c52d75a33aab9cae62885aca5a7f935f5b070e9 | b776e06fc26563a32212f411035f931e2e502062 | refs/heads/master | 2020-04-25T04:19:35.465522 | 2019-04-06T11:03:17 | 2019-04-06T11:03:17 | 172,506,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | form=['T-Shirt', 'Sweater']
def addon():
new=input("enter new item: ")
form.append(new)
xuat()
def xuat():
print("our items: ")
for i in range(len(form)): print(i+1,".",form[i])
def update():
x=int(input("update position: "))
form[x-1]=input("enter new item: ")
xuat()
def delet():
x=... | [
"quanquytoc25052000@gmail.com"
] | quanquytoc25052000@gmail.com |
b3de9af0ea9ab10667ea7729377fab15baf9230e | def6bf52f6c01029e2c83b848b90e8b7d9f7abde | /.venv/bin/django-admin | 4a1cb14fc2c10455db411ffc85ac2f7b4507587e | [
"MIT"
] | permissive | JayB-Kayode/practice-python-and-django | c3e82bc841bd3d2aa7194cb4077f96cc5546713c | c92333965aeb28de336694c9c289278fa275918d | refs/heads/master | 2021-01-01T15:22:45.355145 | 2017-07-27T02:06:36 | 2017-07-27T02:06:36 | 97,606,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | #!/home/jb/Documents/git/practice-python-and-django/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"jdickewu@gmail.com"
] | jdickewu@gmail.com | |
eb358b6147afb1190aea50f70a2ea57683b256eb | 9b1cc2f4a85f6246d1cadabf9a49359b891351e0 | /Presprocess Data/MFCCs.py | 48eab257b6d7e10a7627e3b88b3d621c886efbca | [] | no_license | Rishabh40/Drone-Classifiaction-using-Deep-Learning | b3779882363d96200ea2d37ee1c416fc0cd1a01c | 47679615715418fecd4e61081414fb36a3f0455b | refs/heads/main | 2023-04-24T06:04:35.696913 | 2021-05-07T00:01:04 | 2021-05-07T00:01:04 | 362,565,160 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,491 | py | import numpy as np
import librosa
import librosa.display
import matplotlib.pyplot as plt
FIG_SIZE = (10, 7)
file = "B_S2_D1_070-bebop_000_.wav"
# file = "1-19111-A-240.wav"
# load audio file with librosa
signal, sample_rate = librosa.load(file, sr=22050)
# display waveform
plt.figure(figsize=FIG_SIZE)
librosa.displ... | [
"arishabh106@gmail.com"
] | arishabh106@gmail.com |
57384c4656a81e353c32e9f8b5b9f09be76387db | dc1d85ff7a2bbb59292e5226b73cacee5f40a159 | /Scripts/scRNAseq/InVitro/MM468/Persister/run_local_GRN_arboreto.py | 2aef1b7d9b42cace93f5af707e1239f2d160e8f7 | [] | no_license | vallotlab/ChemoPersistance | 09cdb36d9f9a8166d378ad5c6a65b2b093e15b29 | 2c546ef7293f9dd58e0acf1c5d16e7616cf6789a | refs/heads/master | 2023-04-11T23:17:37.864902 | 2021-11-02T12:12:23 | 2021-11-02T12:12:23 | 299,303,167 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import os
import pandas as pd
from arboreto.algo import grnboost2, genie3
from arboreto.utils import load_tf_names
wd = os.getcwd() + '/'
net1_ex_path = wd + 'int/1.1_exprMatrix_filtered_t.txt'
net1_tf_path = wd + 'int/1.1_inputTFs.txt'
ex_matrix = ex_matrix = pd.read_csv(net1_ex_path, sep='\t', index_col=0, header... | [
"pacome.prompsy@curie.fr"
] | pacome.prompsy@curie.fr |
241cafabc1786d18738a3dbb2c5762712ff8cf93 | 98ca37f5dd2751efaa060cca19e0b83f871d7765 | /sdk/translation/azure-ai-translation-document/tests/test_all_document_statuses.py | 57e1a2f437a4cfaf8be9034e89d309b760822451 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | jayhebe/azure-sdk-for-python | 5ea99732ebb9929d3f6f77c08cc640d5915970b1 | f4455f85d9fe747fa4de2fdc691b975c07bfeea5 | refs/heads/main | 2023-06-24T01:22:06.602194 | 2021-07-28T02:12:25 | 2021-07-28T02:12:25 | 390,290,984 | 1 | 0 | MIT | 2021-07-28T09:23:46 | 2021-07-28T09:23:46 | null | UTF-8 | Python | false | false | 8,190 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from datetime import datetime
import functools
from testcase import DocumentTranslationTest
from preparer import DocumentTranslationPreparer, DocumentTra... | [
"noreply@github.com"
] | jayhebe.noreply@github.com |
181a12cec462f882b8a8dd0b2c576c760b0d125b | 420139f1472cc9169cc5ad397ee7685d3429e992 | /LeetCode-solutions/medium/tree/208-Implement-Trie-(Prefix-Tree).py | 1a248b4ad319b562c0fb7e818e45ed864ae37748 | [] | no_license | nabilatajrin/competitive-programming | 8f2447ce641e5cd5c791147bf4985a72b0084345 | e421d627df9a50314f65e23ade0e100581b36eaf | refs/heads/master | 2023-08-18T07:16:59.347895 | 2023-08-14T05:26:22 | 2023-08-14T05:26:22 | 174,977,783 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | class TrieNode:
# Initialize your data structure here.
def __init__(self):
self.children = collections.defaultdict(TrieNode)
self.is_word = False
class Trie:
def __init__(self):
self.root = TrieNode()
def insert(self, word):
current = self.root
for letter in wo... | [
"noreply@github.com"
] | nabilatajrin.noreply@github.com |
5a53e41615f39015cfa2d0af16c6248ca4554853 | 69b6b7fc8cc2bab8e46b8db5ca2647a1cff26798 | /04_divisors.py | 79fbadfb7a240613678830da1535c5d5297d3f02 | [] | no_license | katecpp/PythonExercises | 7c8e54c9182521d3acea6b72715882e9b9e4315a | 4f57cc8e1e72ff5d3437558b4e7e312bdd1459b3 | refs/heads/master | 2020-04-18T07:48:09.432312 | 2016-11-29T10:55:06 | 2016-11-29T10:55:06 | 67,781,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #! python3
def readInteger(name):
value = ""
while value.isdigit() == False:
value = input("Enter " + name + " : ")
if value.isdigit() == False:
print("This is not a number!")
return int(value)
print("Divisor finder. What number you want to check?")
number = readInteger("number... | [
"kasia.macias@gmail.com"
] | kasia.macias@gmail.com |
9284ce60220954204e63f2ef806f44fe4c25aa5c | c2c5af28d852c0fe2b535c59189e920ebd420471 | /src/logger.py | 890280d8ed5e6621c6247eb88dd304fb145980a7 | [] | no_license | olonyk/multi_modal_learning | f23cb9bb015871b5730fb166a28d62d68abd4df1 | e06c6fc1a3884bef97d5246bfc57c0ebaab235dd | refs/heads/master | 2021-05-06T03:35:28.411852 | 2017-12-20T16:03:31 | 2017-12-20T16:03:31 | 114,905,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | from datetime import datetime
from multiprocessing import Process, Queue
from os.path import abspath, dirname, join
class Logger(Process):
def __init__(self, log_file=""):
super(Logger, self).__init__()
if log_file == "":
self.log_file = abspath(join(dirname( __file__ ), '..', 'log_file... | [
"olonyk@gmail.com"
] | olonyk@gmail.com |
b6575bb3e92eee5a044c75fa0be0aff7bff35a09 | 9a976fd6f420f871f1d99058eab6d944c9cc5202 | /problem_2_method_1.py | aaf8eb21773b4ac43f447c5fb9a3d9a2a95964ba | [] | no_license | arunenigma/Project-Euler- | 0e2bb1f5f899628c0a60bde59e2077511eea4531 | 364f28158cc4f12085d13ce342f4efbefeab99a0 | refs/heads/master | 2021-01-01T20:47:55.619091 | 2012-02-18T02:34:32 | 2012-02-18T02:34:32 | 3,467,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # Author -- Arunprasath Shankar
# Solved using recursion
# Run time is longer than the Matrix and Pure Math methods..
# Will post the Matrix and Pure Math Methods Shortly
import time
def fibo(n):
if n < 2:
return n
return fibo(n-2) + fibo(n-1)
sum = 0
list1 = map(fibo,range(2,36)) # choose range based on your intui... | [
"arunprasath9586@gmail.com"
] | arunprasath9586@gmail.com |
2e0ec754aadd0a7d602c299398b0bb7de5231134 | 96820782571b704b9642ec5df50e59debf1506b8 | /imagemain.py | 96f5fecbeb4373813d7b1914621014ed6971e8f7 | [] | no_license | Jeenal4801/Cryptography- | 34182b501f388a2d981a3a28bbc6e79810136e36 | b7a077ea7983a47d203021f1d8ae39be7e50a122 | refs/heads/main | 2023-05-24T00:05:48.291994 | 2021-06-16T07:01:20 | 2021-06-16T07:01:20 | 377,400,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # Home Screen for Image Encryption/Decryption
"""
@author : Ankit Devani , Jeenal Shah , Meghna Kanade , Sarthak Bharad
"""
print("What do you wish to do?")
print("1 - Image Encryption ")
print("2 - Image Decryption")
j = int(input())
if j == 1:
import imgencryption # Calling the image Encryption file
... | [
"noreply@github.com"
] | Jeenal4801.noreply@github.com |
0a7e4ac3a6aa381a2be9b21e6ff39af814db7972 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/joblib/parallel.py | dff07a7420ad4d2662baa74a296be91ffc236c13 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:10afb49d59c3778a8fd053bbec2d63b85f3b24f63a308df37f309126a62f3571
size 46534
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
3e5f3130f9738ba4f15b928fe8f5c3a74cba0942 | 39bf4156130c3fa83465acd2897a775e5bb315c3 | /MHacksCashalyst/venv/bin/pip2 | 888c336e6353316eb11648c3c88c96c56bd1da30 | [
"Apache-2.0"
] | permissive | Sagarsaurus/Cashalyst | b5d8e51d204111dd37148aba509cfbd7074a81e4 | 6aad4c6d28124966f7c2312a80c16bd71b729ac1 | refs/heads/master | 2016-09-06T14:56:41.900287 | 2014-09-07T14:15:25 | 2014-09-07T14:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/sagar/Cashalyst/MHacksCashalyst/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"Sagarsaurus@github.com"
] | Sagarsaurus@github.com | |
bb82f89b7e766b26b985e03b33f130543bb84b01 | c72fe96328f07909a6c243a6c5acb21895da3b01 | /Minimum_of_number_days_kohli_takes.py | 83b2f6015a8734eda8aba96e48b995cc32469e7e | [] | no_license | Sathyasree-Sundaravel/sathya | 348fcd8d0d75512e14d095ffe58abe902723fcde | 2951a8447d716fc8ab130465a40f1e7339cb88bf | refs/heads/master | 2020-05-25T22:59:57.120769 | 2019-07-21T12:53:04 | 2019-07-21T12:53:04 | 188,025,931 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | #Minimum number of days Kohli takes
n,t=map(int,input().split())
sec=list(map(int,input().split()))
count=0
for i in sec:
t1=86400-i
t=t-t1
count+=1
if t<=0:
break
print(count)
| [
"noreply@github.com"
] | Sathyasree-Sundaravel.noreply@github.com |
41236c0357826b9c316bfb542762b2e3691a8c22 | 9bbdd8a50c9a4e3c2543dce278f438fdca91fc8a | /project_django/urls.py | c860bad9028615be81d44bd24a5d921a9d682214 | [] | no_license | abhisekdey83/project_django | cfd3749c5ce0cf96210824fdec2fb83228f48718 | 9e9ae2190189b3915a39f48ac77de9261b6a119e | refs/heads/master | 2023-05-04T01:48:13.893957 | 2021-05-27T18:19:02 | 2021-05-27T18:19:02 | 371,349,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """project_django URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"abhisek.consultant@gmail.com"
] | abhisek.consultant@gmail.com |
06ca5a72c98a955d6bee2f5f458083b0f0522baf | cead7da1a5db7268079a0ea63ef22067eb35e4de | /p1.py | 07bfde20b9e9fefd0e2a677e3f177e02e455b20f | [] | no_license | sbharathc1/Pc-scan-script | 5b5ae9e4eec5218f499f7c437ff9ca22e1a5ba01 | 8480c656d4d5d42cff0e4c5eeeaf37b0ab946f1f | refs/heads/master | 2021-09-07T11:39:10.095359 | 2018-02-22T12:19:21 | 2018-02-22T12:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | #!/usr/bin/env python3
import os
import operator
def get_size():
i=raw_input("please select an option\n1.scan entire pc(may take few minutes)\n2.scan only specified path\n")
i=i.replace(" ","")
while(1):
if(i=="1"):
start_path="/"
break
if(i=="2"):
start_path=raw_input("please provide your folder path\n... | [
"noreply@github.com"
] | sbharathc1.noreply@github.com |
f62ca0aa1cead10a3bcabd4ddedbe3af8afadcbb | ec81868f0c6f9914ecb08e1f4d53cd23009f344b | /kcf_tracker.py | 970b6aa52f56ac195ccbbf748d5ac8a72944db31 | [] | no_license | lingqing97/KCF_COPY | 1909b6f9e124eeb5da318067fbd3c108b0a6e362 | 4f5b2c0b8894599ccf282a9d8b274e531c2d54a9 | refs/heads/master | 2021-01-13T20:17:24.575227 | 2020-02-23T09:42:41 | 2020-02-23T09:42:41 | 242,482,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,785 | py | import numpy as np
import cv2
import copy
def limit(rect, limit):
'''
@description:根据limit对rect进行裁剪
@param rect:输入的矩阵,[左上角x,左上角y,w,h]
@param limit:限制的范围,[左上角,左上角y,w,h]
@return rect:裁剪后的范围
'''
if((rect[0]+rect[2]) > (limit[0]+limit[2])):
rect[2] = limit[0]+limit[2]-rect[0]
if((r... | [
"1766552041@qq.com"
] | 1766552041@qq.com |
f06015cdef49de3c91fb4a6212eece1e0d38b437 | c0bc042e73825a89949c1df1daefc41796903ae1 | /youtube/urls.py | aac35fa9fa3fba7ce66c1b936fd40c853849efae | [] | no_license | Pennylele/pennyfang_portfolio | 389aa93f392701ef5fa4f1a129d98c0ddd373dbc | b29706123b860d2378d89f0daa462b33e4609a68 | refs/heads/master | 2023-09-05T11:33:29.847845 | 2021-11-24T19:32:15 | 2021-11-24T19:32:15 | 325,154,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from .views import VideoListView, SearchResultsView, FilterByViews, VideoDetailView, Sync
from django.urls import path
app_name='youtube'
urlpatterns = [
path('', VideoListView.as_view(), name='home'),
path('search/', SearchResultsView.as_view(), name='search_results'),
path('sort-by-views/', FilterByView... | [
"fangle0121@gmail.com"
] | fangle0121@gmail.com |
ff2532571c8166d3675284f76593bd1a95dab989 | 0fb92723a990013d9d3d9c213a222f8ff6b5b68a | /python-1/main.py | 79e538a0bd5eabda81bc7997e0a1bcdd95deed8b | [] | no_license | DiegoAbreu/DataScience-Desafios-Code-Nation | e0bef8e559b2bfe473e3ef685428496aeb777729 | 8b9d15e412811c4be3d4d0d72f578e45e73ee46b | refs/heads/master | 2020-03-30T02:17:23.660827 | 2018-10-02T17:12:52 | 2018-10-02T17:12:52 | 150,623,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | # coding: utf-8
# Todas as perguntas são referentes ao arquivo `data.csv`
# Você ** não ** pode utilizar o pandas e nem o numpy para este desafio.
import csv
from collections import Counter
def ler_coluna(coluna):
data = []
with open('data.csv', 'r') as csv_file:
csv_reader = csv.DictReader(csv_file, ... | [
"diego.souza.abreu@gmail.com"
] | diego.souza.abreu@gmail.com |
439bbcad449efc5d0400e7a0ddcae109c2ef7bc2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02682/s885339008.py | 44ace31b98dd71329482c26565d401a8c6238465 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | a,b,c,k=list(map(int,input().split()))
if k<=a+b:
print(min(a,k))
else:
print(2*a-k+b) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
46fcc38f84594d6958f6b45acd381e86adb3dc74 | ad255b99c699113075e21ecea6f12756b85f6c9b | /inscriptions/migrations/0001_initial.py | 2a071529050c7d9ac6a4edf868d283a0370396dd | [] | no_license | obiwankennedy/rcmsite | 107052c519f8bf08eb0eba51ea3d6cdc10b5f814 | aef69b9230ebfc2b5cc63bf7587a05baad5bb25a | refs/heads/master | 2020-12-04T04:08:45.670664 | 2020-01-03T14:27:18 | 2020-01-03T14:27:18 | 231,602,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | # Generated by Django 2.1.1 on 2019-02-19 21:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
... | [
"renaud@rolisteam.org"
] | renaud@rolisteam.org |
6e859c4eeaf898edbf7c63f09de8bce565c77eb2 | 168e5105e9867c2bd349d3e410f8f133aafe3de1 | /13.beautiful soup笔记.py | cded091978e58d626feafe2ad882b08b9789624a | [] | no_license | AB-IN-lsy/PythonSpider | 5378bd092a6f93b72d4d75203dce30c21fd10847 | ab90bcd48529cfaef0f095c272aa5b62ec814443 | refs/heads/master | 2023-05-01T21:37:35.261276 | 2021-05-17T12:31:01 | 2021-05-17T12:31:01 | 368,178,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | import requests
r = requests.get("http://python123.io/ws/demo.html")
from bs4 import BeautifulSoup
soup = BeautifulSoup(r.text, "lxml")
'''
<html><head><title>This is a python demo page</title></head>
<body>
<p class="title"><b>The demo python introduces several python courses.</b></p>
<p class="course">Python is a w... | [
"liusy200708@163.com"
] | liusy200708@163.com |
c7a257fcfb9671357743b523c722338a44377458 | 4e29a6fd4d278d6f21c3853262b13c46f43dad87 | /SeleniumScripts/pom/pages/util_methods.py | e39d99b5791af728f6a9f2e188e8f2886f32034c | [] | no_license | abheet/Selenium-Robot-Framework | 5df73337d6b55406b23321981ab992537b9bf02e | 0352fd58e45123f1a75c29f95702c2a2eeb17f51 | refs/heads/main | 2023-06-22T03:33:56.217975 | 2021-07-16T16:47:53 | 2021-07-16T16:47:53 | 301,199,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,194 | py | from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from ..locators.locators import SignUpPageLocator
import config
def input_values(web_driver,locator,value=""):
"""Input/Enter Values for specific elements on page"""
try:
web_eleme... | [
"abheet.jamwal@gmail.com"
] | abheet.jamwal@gmail.com |
7a8f1b0479cbefd64d2db8ef7b12f4b23e9c6d4e | 91b80ef798cbcdaab7f6ae0be994f5a3b12f1515 | /93.py | efbe3c264235342658f2009b27e588c2561b0992 | [] | no_license | luckkyzhou/leetcode | 13377565a1cc2c7861601ca5d55f6b83c63d490e | 43bcf65d31f1b729ac8ca293635f46ffbe03c80b | refs/heads/master | 2021-06-21T11:26:06.114096 | 2021-03-24T21:06:15 | 2021-03-24T21:06:15 | 205,568,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | class Solution(object):
def restoreIpAddresses(self, s):
"""
:type s: str
:rtype: List[str]
"""
seg_count = 4
res = list()
segments = [0] * seg_count
def DFS(segIdx, segStart):
if segIdx == seg_count:
if segStart == len(s):... | [
"luckkyzhou@gmail.com"
] | luckkyzhou@gmail.com |
e755ee2dc322d58d532060b4eff46793cc342710 | 9d73e270f44b8893c11d1aafb4c15a0d5b359bae | /alembic/versions/edeb7133b093_adds_pure_json_collection_meta_table.py | 0e99c90e269e1ee1fbc7673c06bdff0bad716d83 | [] | no_license | UMNLibraries/experts_dw | 55011ee5afda65ac26b57507aec07dd171b85217 | 897c5442fb6a92336247c1372e5387ee7dc60510 | refs/heads/main | 2023-04-27T19:08:38.045074 | 2023-04-27T18:34:55 | 2023-04-27T18:34:55 | 81,886,376 | 2 | 0 | null | 2022-04-12T20:03:01 | 2017-02-14T00:28:00 | Python | UTF-8 | Python | false | false | 1,338 | py | """Adds pure_json_collection_meta table.
Revision ID: edeb7133b093
Revises: d2a6a03e4c73
Create Date: 2020-11-10 12:22:04.523444
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import oracle
# revision identifiers, used by Alembic.
revision = 'edeb7133b093'
down_revision = 'd2a6a03e4c73'
... | [
"nihiliad@gmail.com"
] | nihiliad@gmail.com |
2dfbe40fb67b4cd0e24ea193c8156e3c9fba4d56 | a61a0a20a767c94bea97029e1a0e7c814ca22a00 | /djangoProject/urls.py | 4dcc5e88bcb99d3b5ece9c24712fd4dcc9273ec4 | [] | no_license | sedyukov/MITPnotes | 884a29fd19dbe9babdb9a3157928b495732de09f | 6150ef14b5e151be4118a8fb7078a30b67a5bd91 | refs/heads/master | 2023-06-28T13:22:11.434104 | 2021-08-03T08:51:52 | 2021-08-03T08:51:52 | 370,229,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """djangoProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"babecaleksei@yandex.ru"
] | babecaleksei@yandex.ru |
f86da1b3ebfc2c35c88517b4bf4e187db8a1e127 | 4eac61601699e38a17e69d7917bab7259be720ba | /Server/Snapmap_db/Snapmap_db.py | 90dbbfaafaef27f1630774c608d15dd6decf2e78 | [
"Apache-2.0"
] | permissive | G-Doxastakis/SnapMap | 9433a1f65cb7742fb0fe1944caf826f2ab5992ed | a463315f45ce61d621474b45e538282aaa4ba258 | refs/heads/master | 2021-03-27T10:51:53.691377 | 2016-12-04T14:27:22 | 2016-12-04T14:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | import sqlite3
def open_db():
conn = sqlite3.connect('Snapmap.db')
c = conn.cursor()
return c, conn
def create_table(c):
c.execute('CREATE TABLE IF NOT EXISTS \
Images(Name TEXT, Lat FLOAT, Long FLOAT)')
def add_entry(name, lat, lon, conn):
c = conn.cursor()
c.execute('... | [
"noreply@github.com"
] | G-Doxastakis.noreply@github.com |
e735d3dbe96e2b6726a39a1e764ecda61d94be85 | 0764c6fa71758bcf9f61f137a2b2554b55045b2f | /HHmodel/twoneurons.py | 43af6deb253006d4c94b15b126d7faba18a7188f | [] | no_license | pujadpatel/pujadpatel-personal | 7bd5255d3927e820e1540f084cfe0cfb2fc6b831 | f4f761b253aafa7693ec44954d85048fd2d3f18a | refs/heads/master | 2021-01-11T20:44:21.508031 | 2017-12-12T03:17:30 | 2017-12-12T03:17:30 | 79,173,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,274 | py | from math import *
import matplotlib.pyplot as plt
import numpy as np
#Betas and Alphas
def alphaN(vm):
return (0.01*(10.0-(vm+60.0)))/((e**((10.0-(vm+60.0))/10.0))-1.0)
def betaN(vm):
return 0.125*e**(-(vm+60.0)/80.0)
def alphaM(vm):
return (0.1*(25.0-(vm+60.0)))/((e**(0.1*(25.0-(vm+60.0))))-1.0)
def bet... | [
"pujadpat@usc.edu"
] | pujadpat@usc.edu |
5bd4b629e2c1439c220548e9247835c48992f28e | fac96b4c97150e02f1405f7430c89b115e4c27f7 | /ch08/ex8-20.printing_models.py | bfef927128761d040af4e85f8ced90253a583a32 | [] | no_license | gustavonvp/PYTHON-CRASH-COURSE | 37478990ff3c3c368da505eb9e5a35dee5d1960b | 8033e2eb84cf6d85fd4ff42ae0550f38dcd23f62 | refs/heads/master | 2023-04-03T00:42:20.333183 | 2017-10-24T05:47:01 | 2017-10-24T05:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # Start whith some designs that need to be printed.
unprinted_designs = ['iphone case', 'robot pendant', 'dodecahedron']
completed_models = []
# Simulate printing each design, until none are left.
# Move each design to completed_models after printing.
while unprinted_designs:
current_design = unprinted_designs.po... | [
"freebz@hananet.net"
] | freebz@hananet.net |
ec8e892b22ed3c2bc12e7b2a2063ba23a38398fe | 18ed2d60b066fff39abc0e417fa143c8ea1290bb | /interviews/indeed/first_duplicate_word.py | b0fd540cd91b39623f15cb9590e9ccf652b8fb1c | [
"MIT"
] | permissive | tanchao/algo | 1e518937891edd4bb7de27f85a7222ee7c027f41 | 92883db53fe2c5860319d4fca82b0ea32da0d2a8 | refs/heads/master | 2022-07-22T02:53:32.554524 | 2022-07-17T05:17:02 | 2022-07-17T05:17:02 | 19,317,206 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'tanchao'
def first_dup_word(text):
texts = text.strip().split()
words = set()
if len(texts) > 2:
for word in texts:
if word in words:
return word
words.add(word)
return ''
if __name__ == '__ma... | [
"chaos.tc@gmail.com"
] | chaos.tc@gmail.com |
5d8c2c21c425289bf070970045fc338486eb2e08 | 66f383fec502102bfec58ed8cb9c43a71e599c55 | /apps/accounts/events.py | f34b3398d34130125064588eeea3a67c4b10f9ab | [
"MIT"
] | permissive | hacktoolkit/django-htk | 0a984a28f7fbc7eed8e2b1975d210792ddbee829 | 935c4913e33d959f8c29583825f72b238f85b380 | refs/heads/master | 2023-08-08T11:52:54.298160 | 2023-07-21T19:08:37 | 2023-07-21T19:08:37 | 15,924,904 | 210 | 65 | MIT | 2023-09-08T23:59:28 | 2014-01-15T04:23:40 | Python | UTF-8 | Python | false | false | 1,082 | py | # Python Standard Library Imports
# Third Party (PyPI) Imports
import rollbar
# HTK Imports
from htk.utils import htk_setting
from htk.utils.notifications import slack_notify
def failed_recaptcha_on_login(user, request=None):
extra_data = {
'user' : {
'id': user.id,
'username': u... | [
"hello@jontsai.com"
] | hello@jontsai.com |
e042996b58247ba2e883ecbe8c2cf259b2b5803b | f6c5d6db844d85c3af69ad0b08442cc68ab84c47 | /tests/arduino_tests/test_config_reader.py | 8dcdd30b949c9535ab492050bad3987ab913474f | [
"MIT",
"Python-2.0"
] | permissive | vt-sailbot/sailbot-21 | 364a8f41b431313b52386531599dc45a006cc6de | b5d75cb82e4bc3e9c4e428a288c6ac98a4aa2c52 | refs/heads/master | 2023-04-14T13:42:14.124404 | 2020-02-25T18:31:49 | 2020-02-25T18:31:49 | 203,252,828 | 5 | 0 | MIT | 2020-12-04T19:59:32 | 2019-08-19T21:28:56 | Python | UTF-8 | Python | false | false | 1,280 | py | import os
import unittest
from src.arduino.config_reader import read_arduino_config
from src.arduino.config_reader import read_port_config
from src.arduino.config_reader import read_pin_config
from tests.mock_bbio import Adafruit_BBIO
from tests.mock_port import serial
class ArduinoConfigReaderTests(unittest.TestCas... | [
"ryanjs@vt.edu"
] | ryanjs@vt.edu |
a70d21ed2a48720e2b9c9a258bcb1b746dda2e1a | 73e277935ef28fd05935c93a3f155c9cc6dc6de7 | /ctf/crypto/source/rbtree/rb2.py | 81ec357f0f8e932791d02d3999f89d0fbf068e95 | [] | no_license | ohmygodlin/snippet | 5ffe6b8fec99abd67dd5d7f819520e28112eae4b | 21d02015492fb441b2ad93b4a455dc4a145f9913 | refs/heads/master | 2023-01-08T14:59:38.618791 | 2022-12-28T11:23:23 | 2022-12-28T11:23:23 | 190,989,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,501 | py | # -*- coding: utf-8 -*-
BLACK = 0
RED = 1
#graphic elements of rbtree for printing
VC = '│'
HC = '─'
SIZE = 3
RIG = '┌' + HC * SIZE
LEF = '└' + HC * SIZE
SP = chr(32)
IND1 = SP * (SIZE + 1)
IND2 = VC + SP * SIZE
class rbnode(object):
def __init__(self, key=None, value=None, color=BLACK,left=None,right=None,p=None... | [
"laitaizong@gmail.com"
] | laitaizong@gmail.com |
49fc5957058c412d732f0ba5e3dfe4ad008051be | 3221f2c2c0c63fd93206ee04d99c2297a5ebd751 | /pandas/io/xml.py | c376b43f4d4dd64b44008d5958deff679e216bfa | [
"BSD-3-Clause"
] | permissive | taytzehao/pandas | a706430e1f26cbb935bb1fd5f45c15ca160a549c | 3c01ce2af5099a8a830195b2050d3a4036d14ff3 | refs/heads/master | 2023-08-30T21:36:45.552342 | 2023-07-22T20:30:48 | 2023-07-22T20:30:48 | 310,008,302 | 0 | 0 | BSD-3-Clause | 2021-05-26T12:32:57 | 2020-11-04T13:18:38 | Python | UTF-8 | Python | false | false | 37,728 | py | """
:mod:``pandas.io.xml`` is a module for reading XML.
"""
from __future__ import annotations
import io
from os import PathLike
from typing import (
TYPE_CHECKING,
Any,
Callable,
)
import warnings
from pandas._libs import lib
from pandas.compat._optional import import_optional_dependency
from pandas.err... | [
"noreply@github.com"
] | taytzehao.noreply@github.com |
046c143add2698a9229d1b07fa99e3656b742dbf | 8d5e41b9ea09cf5c8bd29f8288e1d31c0331b3a0 | /test/outFull_HLT_Run3TRK_ROICaloROIPF_Mu_oldJECs_data323775_lumijson_dump.py | 2ce3b959d70ea4a527e22df3e03ac0d0d4e8b21d | [] | no_license | SWuchterl/RecoBTag-PerformanceMeasurements | 073d7ad9f270695b949804567d4f32a693f5f3f2 | 5e24364be195a8f9a42aae265c6ab7e3e5fa2c1e | refs/heads/Run3_ForJIRA | 2022-05-20T05:59:32.337883 | 2022-01-04T11:27:49 | 2022-01-04T11:27:49 | 224,145,402 | 1 | 4 | null | 2021-12-08T13:35:31 | 2019-11-26T08:53:50 | Python | UTF-8 | Python | false | false | 5,028,515 | py | import FWCore.ParameterSet.Config as cms
from HeterogeneousCore.CUDACore.SwitchProducerCUDA import SwitchProducerCUDA
process = cms.Process("HLT2")
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('/store/data/Run2018D/EphemeralHLTPhysics1/RAW/v1/000/323/775/00000/08D3F006-5E29-7945-B32... | [
"sebastian.wuchterl@cern.ch"
] | sebastian.wuchterl@cern.ch |
653e892c9b0e8d7676e7419a4cd8223861cf33d8 | 4912cbd47c19c58d142e6833911d70f5ea037357 | /question_bank/reverse-string/reverse-string.py | c47284c0fefc2d681bb7e99d7485ae06dcaf5e97 | [
"Apache-2.0"
] | permissive | yatengLG/leetcode-python | a09a17cd9e60cafd9ff8ca9c068f5b70719c436f | 5d48aecb578c86d69835368fad3d9cc21961c226 | refs/heads/master | 2023-07-13T16:10:01.920716 | 2021-09-06T02:51:46 | 2021-09-06T02:51:46 | 286,969,109 | 13 | 6 | null | 2021-02-16T10:19:44 | 2020-08-12T09:13:02 | Python | UTF-8 | Python | false | false | 643 | py | # -*- coding: utf-8 -*-
# @Author : LG
"""
执行用时:36 ms, 在所有 Python3 提交中击败了98.98% 的用户
内存消耗:14.4 MB, 在所有 Python3 提交中击败了19.40% 的用户
解题思路:
双指针。分别指向列表首尾,然后交换指针指向元素
"""
class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
... | [
"767624851@qq.com"
] | 767624851@qq.com |
54358ec564208cff69b8e0c543657236e4c5419f | 028a51a4fd7118c33396f5b4c0f3aa3f56a6c6ac | /theInheritance.py | 78a1321e8e4eca6d0b755f1ea66983efeb0d296b | [] | no_license | sidd2502/learning-python | 343ee712b6a1fe2d13a83ca1dac860e965fc37ce | f3c1443d8306c5e2da650026853d3dec7250aea7 | refs/heads/master | 2021-05-09T10:06:50.322457 | 2018-01-25T18:32:52 | 2018-01-25T18:32:52 | 118,951,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | class Parent():
def __init__(self, surName, firstName):
self.surName = surName
self.firstName = firstName
def showdetail(self):
print("First name is:", self.firstName)
print("Sur name is:", self.surName)
billyCyrus = Parent("Cyrus", "Billy")
billyCyrus.showdetail()
class child... | [
"siddharthj.dce@gmail.com"
] | siddharthj.dce@gmail.com |
af378187d383f4e600616fca71efb3c592c82019 | 61b1bf7e921ddc908dea24df3268b1aa7acaad08 | /Django/viewsetsAndRouters/vr/api/serializers.py | 895ad2d07a755adfb56aa4c453b80fe9a80ab6ac | [] | no_license | FMasnaga/MyBlogCodes | ed5660c9bbb18e88d9c510eb3cebefcffc6ab338 | 7d3fa3762f6774cb15561d92f495fd969c0303dd | refs/heads/master | 2022-11-27T15:19:56.001437 | 2019-10-03T11:03:41 | 2019-10-03T11:03:41 | 203,200,651 | 0 | 0 | null | 2022-11-22T04:12:38 | 2019-08-19T15:33:47 | Python | UTF-8 | Python | false | false | 234 | py | from rest_framework import serializers
from vr.models import Profile
class ProfileSerializer(serializers.ModelSerializer):
user = serializers.StringRelatedField()
class Meta:
model = Profile
fields = "__all__" | [
"mmasnaga@gmail.com"
] | mmasnaga@gmail.com |
7eeb2d332ea862f3ef932e2478861cd2c56abbca | 592e7e8f1224190c5a33ec7ca8ba97f1ae1919bd | /788/Sol_题解_dp.py | e6a67f7c9f0339e0a384769c6ed5e939421e7c7a | [] | no_license | Nicolas-Li/LeetCode | b4e5eaeb156aab8fb9ab531eb8425617e32d3914 | 7c60414d5dcdf4a3d74c11390ed50ec81def06cf | refs/heads/main | 2023-03-07T14:20:46.470271 | 2021-02-18T03:43:58 | 2021-02-18T03:43:58 | 331,369,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | class Solution(object):
def rotatedDigits(self, N):
A = map(int, str(N))
memo = {}
def dp(i, equality_flag, involution_flag):
if i == len(A): return +(involution_flag)
if (i, equality_flag, involution_flag) not in memo:
ans = 0
... | [
"lijunjie_thu@qq.com"
] | lijunjie_thu@qq.com |
267642d43a20837d7f965469f7e60a9a22e35ea3 | 934961d96068ccaea46a32022614d07fc65007e1 | /save_as_pb.py | dc617cb6b2d67aa65632efcde16c0513c08bb0c3 | [] | no_license | AshutoshSancheti/FaceNet | 5a92ceb624ed4c2b219c51eb80f65c344f52d9f1 | e75dab169db8991dee2f4251e53abbabeecd3c06 | refs/heads/master | 2020-03-30T04:07:45.612426 | 2018-11-20T09:54:28 | 2018-11-20T09:54:28 | 150,725,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | import tensorflow as tf
meta_path = 'mobilenet_v2_checkpoints/my_model-1100.meta' # Your .meta file
with tf.Session() as sess:
# Restore the graph
saver = tf.train.import_meta_graph(meta_path)
tf.get_default_session().run(tf.global_variables_initializer())
tf.get_default_session().run(tf.local_variab... | [
"ashusancheti13@gmail.com"
] | ashusancheti13@gmail.com |
cb662f3f1ec68283494e7dd6ab627411ce475ddd | 4bd818bc9bd83ed39c9d48b0e4e4821a2b8c45d9 | /src/etherollapp/etheroll/customtoolbar.py | d31f906fb38e24b9465769aeaa3b7894757e17a9 | [
"MIT"
] | permissive | AndreMiras/EtherollApp | 8ef158e9e5886922bb56a42d836daa392e5d5f2e | 2ccc30fad736a6fee0cba8b99c521bee6ad13087 | refs/heads/develop | 2021-09-11T14:41:04.753290 | 2021-09-01T07:28:44 | 2021-09-01T07:28:44 | 125,426,260 | 59 | 29 | MIT | 2021-06-08T20:29:42 | 2018-03-15T21:07:28 | Python | UTF-8 | Python | false | false | 846 | py | from kivy.app import App
from kivy.clock import Clock
from kivymd.toolbar import Toolbar
from etherollapp.etheroll.ui_utils import load_kv_from_py
load_kv_from_py(__file__)
class CustomToolbar(Toolbar):
"""Toolbar with helper method for loading default/back buttons."""
def __init__(self, **kwargs):
... | [
"andre.miras@gmail.com"
] | andre.miras@gmail.com |
5d63bffd4927d97831cdd0d7c13b48c197613363 | f98836fedddf8e019dd10f443737eb40c6799450 | /lab6/code/results.py | bdce29f9430d0e1f0f92deedfa4521627e2e4203 | [] | no_license | Engcomm/eece5698_hss | ccf665c91b80c165ccc03acc43151273c444250d | fde6d9e2d19edeceefcfe87fb4eb4976905a25e1 | refs/heads/master | 2021-01-26T07:18:19.968371 | 2019-04-25T16:46:28 | 2019-04-25T16:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | #!/usr/env/bin python
import sys
import os
import matplotlib.pyplot as plt
import numpy as np
with open('results.txt', 'r') as f:
data = np.loadtxt(f, delimiter='\n')
print(data)
fig = plt.figure()
ax = fig.add_subplot(111)
y = data / 100000
ax.set_xlabel('Number of NOP Instructions')
ax.set_xlabel('Accura... | [
"gupta.arjun45@gmail.com"
] | gupta.arjun45@gmail.com |
a262c50ef90ef1952dd214f40a1100e7a5091acd | 58de9f5a2525965dd76812d096866b19b894a1b0 | /scripts/aizhan.py | 9e621f96590ad81ae51f8328aabddafe627bd2a4 | [] | no_license | benevolence-doctor/sunny_shell | ce8624f6ad4e9a471b703d2581e93e19b73c603c | b7baad9914eab802669d3fce0fb5081485549e59 | refs/heads/master | 2016-09-06T18:01:38.333400 | 2015-07-24T10:32:26 | 2015-07-24T10:32:26 | 39,625,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | #!/usr/bin/python
# coding: utf-8
import re
import sys
import os
list_file = sys.argv[1]
def Get_Com_Name():
fd = open(list_file, 'r')
for line in fd.readlines():
line = ''.join(line.split())
cmd = 'curl -s http://icp.aizhan.com/%s > /dev/shm/site' % line
os.system(cmd)
... | [
"benevolence_doctor@yeah.net"
] | benevolence_doctor@yeah.net |
b0fe4b6f20442f6ba76f885dbb49a445c8df729a | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d59101416366fa8d50bd2d8218e772b2c6a8bd7f-<remove_from_device>-fix.py | 58894645341f61f607af0fa3f9de1bd569631b46 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | def remove_from_device(self):
name = self.want.name
if self.want.parent_policy:
uri = 'https://{0}:{1}/mgmt/tm/security/firewall/policy/{2}/rules/{3}'.format(self.client.provider['server'], self.client.provider['server_port'], transform_name(self.want.partition, self.want.parent_policy), name.replace('/... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c1a061af3784a826750cede4415f266434c69d61 | 939b09af0f1a4f55ba07deff06b7812540edc444 | /Chapter2-Python语法基础/2-3-变量.py | 7825931dd58ef288c030e8988f0586bcb6c09f38 | [] | no_license | zsalec/Python-Full-Stack-Free | 0a4f7209e0707df676a5fb9567134c4ae7ed6f29 | cf9055d7994f40beadfbb5bf16f82706f050e865 | refs/heads/master | 2023-03-09T10:04:18.536218 | 2021-02-25T10:11:05 | 2021-02-25T10:11:05 | 314,942,980 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | """
# 主要内容
- 坚持写 Blog
- jupyter notebook 的用法
- 变量
- 跟 vi/vim 的编辑模式很像
"""
# 声明变量的三种格式
# 格式 1
s1 = 'I love Python'
# 格式 2
s1 = s2 = 'I love Python'
# 格式 3
s1, s2, s3 = 'I love Python', 'I love China', 'Thinking less, done more'
print('I love Python')
"""
# 变量类型
- 严格意义上讲,Python 只有一种类型
- 标准数据类型六种
# 1. 数字 Number
# 2. 字... | [
"zs_alec@163.com"
] | zs_alec@163.com |
2dec1c6a28efe617cceabacff2ce60b4f5b118b0 | fe7e5da08236379d47237657db35010496257e20 | /036/solution.py | 5c8ab3d1f784a5305c0e0de5a2bf2d06340df2ae | [] | no_license | cenalulu/python_euler_solver | 8c6cada32e8cb9eeb4b565d0f18d350f003187b2 | be94f51b25595d3436d5473d030a3ec49313fb7b | refs/heads/master | 2021-01-21T13:04:32.801703 | 2015-04-12T11:29:04 | 2015-04-12T11:29:04 | 28,670,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | #! encoding: utf8
from profile_decorate import profile
"""
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.
Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.
(Please note that the palindromic number, in either base, may not include leading z... | [
"cenalulu@gmail.com"
] | cenalulu@gmail.com |
6b17b265a777bc0f99e7fc03867051e4f35588f9 | d4ad0fca089376759ff248e19e76be3c8498470d | /apps/__init__.py | cea904d1c561588670608b3371b1ef449206affa | [] | no_license | bestomato/showMongo | 8ab4abd570c0c6fdb054e45fecfdbf179fe625e4 | c1e94058f0df692cfeb5dd2545a7523ff3e88fca | refs/heads/master | 2020-05-17T04:56:55.181462 | 2017-07-24T01:57:54 | 2017-07-24T01:57:54 | 24,936,542 | 1 | 2 | null | 2014-11-27T07:17:41 | 2014-10-08T10:54:16 | null | UTF-8 | Python | false | false | 1,061 | py | #-*- conding:utf-8 -*-
import os
import sys
from settings import INSTALLED_APPS as _INSTALLED_APPS
# load app path into sys.path
def _app_path_load(dir_level_num=3):
app_root_path = os.path.abspath(__file__)
for i in xrange(0, dir_level_num):
app_root_path = os.path.dirname(app_root_path)
sys.p... | [
"50481322@qq.com"
] | 50481322@qq.com |
ae0af1e4ee36986b50159982daa33a8f7311e4aa | aff9eaee65ec6af3ad492b92eba0c6d33fc888d9 | /raterprojectapi/migrations/0011_remove_game_action_pic.py | 13976918ecd7a3513c6476c3aaf9a879459cc6d3 | [] | no_license | jeaninebeckle/raterproject-server | dda9109748d8c6f70b16c2042248f72c04cecdbd | 97c3250fcf0d1f54876a918f27adec47e1fd1d9d | refs/heads/main | 2023-03-04T06:44:56.612921 | 2021-02-05T02:00:57 | 2021-02-05T02:00:57 | 313,794,566 | 0 | 0 | null | 2021-02-05T02:00:59 | 2020-11-18T01:56:32 | Python | UTF-8 | Python | false | false | 338 | py | # Generated by Django 3.1.3 on 2021-01-22 02:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('raterprojectapi', '0010_auto_20210122_0242'),
]
operations = [
migrations.RemoveField(
model_name='game',
name='action_pic',... | [
"jeaninebeckle@gmail.com"
] | jeaninebeckle@gmail.com |
f1f61533bdd10a1d0934ffcb81c2cc36423c1451 | 59d7299e1c8f81dc27458aeb2efc9b5ccbccc1c3 | /utilities/pybrain_examples/fft.py | 494afe789f615f6340d825f70db9bf76a4b948c4 | [] | no_license | Cognitive-Technology-Group/PyOBCI | 43993ef9451d9120176d3a0899e5338098e4f5e7 | 611d22265aa68dc7ca4381c6c65f5349e641c97d | refs/heads/master | 2016-09-06T15:36:49.057104 | 2015-01-17T06:16:27 | 2015-01-17T06:16:27 | 21,548,385 | 5 | 2 | null | 2015-04-30T00:09:55 | 2014-07-06T20:50:57 | Python | UTF-8 | Python | false | false | 2,182 | py |
from mne import filter
import numpy as np
import matplotlib.pyplot as plt
def windowed_fft(data, fs):
""" Applies a Hanning window, calculates FFT, and returns one-sided
FFT as well as corresponding frequency vector.
"""
N = len(data)
window = np.hanning(N)
win_pow = np... | [
"jnaulty@gmail.com"
] | jnaulty@gmail.com |
742563e6e5c8b80fb2370d0efff845ea3de25328 | 0ca9e70119bbb5f69d385809817ab2d7bc9f447e | /PropertyDeals/Accounts/views.py | 8fc3a6919a38c18831ed6af6f2f6d54daf5168f0 | [] | no_license | umerk4466/Investment-Property-Deals | bb4696ac78e38fcd0fbc26f234a2413b0a26358a | 6cb93f8d1bd01d936cb6382c1b06b10448a868a4 | refs/heads/main | 2023-04-02T12:26:03.214316 | 2021-04-08T15:45:35 | 2021-04-08T15:45:35 | 336,414,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | from django.shortcuts import render, redirect
from .forms import InvestorSignup, DealSourcerSignup
from .models import User, DealSourcer, Profile
# Create your views here.
def investor_signup(request):
if request.method == 'POST':
form = InvestorSignup(request.POST)
if form.is_valid():
... | [
"umerk4466@gmail.com"
] | umerk4466@gmail.com |
25fc162a32a064435805350e835b68a86780e7df | bc0a71321b5fccd6f4c13ec0c76062ca6ed18fe6 | /venv/Scripts/pip-script.py | a883e8abea4a1471df4a4127ab4bd0410f28ae25 | [] | no_license | liangxioa/indev | fc95b567d8ddc97f7c80abaf86aa2fdae91bced1 | 334f126be5a6aebf6637c4b341e89a229c62f9cc | refs/heads/master | 2020-08-08T17:48:53.867256 | 2019-10-12T00:46:58 | 2019-10-12T00:46:58 | 213,644,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #!C:\python\indev\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"804092147@qq.com"
] | 804092147@qq.com |
90956aeffa8957e9ba1fd7628a4d3623d503c407 | 4ccafcdedc87262b76f61b4a04b458e083d27305 | /pb de planificare/planificare.py | 74577544f6fa7a73124b7a1d7d84609b2f05798f | [] | no_license | mihaela-nichita/DAI | cf313228d6dd5712366ca1595bed374e3b67e579 | 823cc8958f83681f7b62a650e01a572f35620bad | refs/heads/master | 2020-04-26T02:39:51.027845 | 2019-04-22T08:36:18 | 2019-04-22T08:36:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,249 | py | from collections import namedtuple
Nod = namedtuple("Nod", ['stare', 'actiuni', 'd', 'g', 'h', 'f'])
Stare = namedtuple('Stare',['poz_rob','pe_cutie', 'poz_cutii','lumini'])
DA='DA'
NU='NU'
def opUrcare(s):
if s.pe_cutie == NU:
return
camere = [1,2,3]
if s.poz_rob != None:
camere = [s.p... | [
"40822291+MihaelaNichita@users.noreply.github.com"
] | 40822291+MihaelaNichita@users.noreply.github.com |
9d96d467699e2db6bbc9dacc1e91761aab92a6dc | 2d921bb03eade0763ddb3a9cc5cb637730ecbde1 | /python/plot/PlotStyle.py | 12d2ecb4732ab7424ed515bca8ebc8ce4145f6a4 | [] | no_license | rmanzoni/WTau3Mu | 10c57971b80f9769578284abd69009008901eea7 | 5ad336df976d5a1b39e4b516641661921b06ba20 | refs/heads/92X | 2021-01-18T15:10:41.887147 | 2019-05-09T12:48:00 | 2019-05-09T12:48:00 | 84,342,825 | 0 | 7 | null | 2018-07-19T09:08:19 | 2017-03-08T16:35:42 | Python | UTF-8 | Python | false | false | 5,537 | py | from ROOT import gROOT, gStyle, TFile, TH1F, TH2F, TCanvas, TLegend, TF1, TGraph, TVectorF, TGraphErrors, TObjArray, THStack, TStyle, TGaxis, kWhite
""" Initialises default ROOT plot style.
In order to support old instances of the PlotStyle that
depended on a given ntuple, it is setup as a class.
"""
class P... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
d28f93833de104995b112c67f309aeca3665e1a5 | 8e75f2ba056e5bd75647f1e3f9773e1015c0dd0e | /628_maximum_product_of_three_numbers.py | 9df4c2022f676107d77fa0ca3142287a66e826c7 | [] | no_license | eazow/leetcode | 96cbcba143ce04c6e83c5c985e19320f48c60b0d | c1c5ee72b8fe608b278ca20a58bc240fdc62b599 | refs/heads/master | 2022-12-10T00:06:06.676066 | 2022-11-29T09:02:04 | 2022-11-29T09:02:04 | 46,109,860 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | class Solution(object):
def maximumProduct(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums = sorted(nums)
return max(nums[-3] * nums[-2] * nums[-1], nums[0] * nums[1] * nums[-1])
assert Solution().maximumProduct([1,2,3,4]) == 24
assert Solution().maximumP... | [
"eazow@163.com"
] | eazow@163.com |
08b3051adaf303a2d19d7736a97fbe771d06b6ae | 80760d4c8a6b2c45b4b529bdd98d33c9c5509438 | /Practice/atcoder/ABC/130/src/d2.py | 82230a1e0cc7c786640ababca689faaaffcd8866 | [] | no_license | prrn-pg/Shojin | f1f46f8df932df0be90082b475ec02b52ddd882e | 3a20f1122d8bf7d95d9ecd205a62fc36168953d2 | refs/heads/master | 2022-12-30T22:26:41.020473 | 2020-10-17T13:53:52 | 2020-10-17T13:53:52 | 93,830,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # 尺取の練習と聞いて
n, k = map(int, input().split())
arr = list(map(int, input().split()))
ans = 0
r = 0
tmp_sum = 0
for l in range(n):
# 条件を満たすまで右端を伸ばす
while r < n and tmp_sum < k:
tmp_sum += arr[r]
r += 1
# whileを抜けた時は条件を満たしている
if r == n:
while tmp_sum >= k and l <= n:
tmp_... | [
"h4l@yahoo.ne.jp"
] | h4l@yahoo.ne.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.