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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9783f9be231df4f348f49cdffc25ccf265dd276a | cab75db085424142215dd682bce149c7002ea9cd | /STRING VALIDATOR.py | 36a0ac5e298326e635af0995efc53c1d48197043 | [] | no_license | chopraji94/HackerRank-Questions-PYTHON- | d9399ab3a7dde2c83603c1962f766753d5c1a95e | 386084bca4afd182aaba324b8c2e1e7ad67e8dba | refs/heads/master | 2020-03-28T17:47:15.193842 | 2018-09-14T17:41:56 | 2018-09-14T17:41:56 | 148,822,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | s = input()
print(any(c.isalnum() for c in s))
print(any(c.isalpha() for c in s))
print(any(c.isdigit() for c in s))
print(any(c.islower() for c in s))
print(any(c.isupper() for c in s))
| [
"41725998+chopraji94@users.noreply.github.com"
] | 41725998+chopraji94@users.noreply.github.com |
27e65bf218c97b6ec3d56784587cae7d41b67133 | 86f45b067fa2a1afe6a553b93e75e3c71b2568df | /LinkedList.py | b012d8ef0a683afe4b25e43f5c85ae8c0cce86eb | [] | no_license | StylishSdp/Data_Structures_and_Algorithms | 95f4dadbedc5f617f18e9a4c576179d8e7fb945d | f866f63ce55ca31eaae7315ffd7ac9d191f93aa7 | refs/heads/master | 2020-06-06T04:56:25.880501 | 2018-09-21T04:04:03 | 2018-09-21T04:04:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,966 | py | import math
import random
class Node:
def __init__(self, val=None):
self.val = val
self.next = None
class DoubleNode:
def __init__(self, val = None):
self.val = val
self.pre = None
self.next = None
#打印两个有序链表的公共部分
def printCommonPart(head1, head2):
if head1 == None... | [
"277017238@qq.com"
] | 277017238@qq.com |
5e1b51aba0c3da2b0777058bbd297d92238bdfa7 | f5d40767fa1fd0a090b98a43015cbb65628ed0fd | /advcbv/advcbv/urls.py | 2db798992ac31495c4916f058e7f6021ed9f352d | [] | no_license | Akashshere19/social | a5fda2b51cfc3c500f526b41b7601831c4188ca4 | 75d78fa6b9b7b8e6b09d25e20aa663c36a912d93 | refs/heads/main | 2023-08-27T02:22:49.025973 | 2021-11-06T14:44:30 | 2021-11-06T14:44:30 | 425,266,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | """advcbv 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-based ... | [
"akash@gmail.com"
] | akash@gmail.com |
70ed2e78c1bdba1fb9adfa58a67b26b2e1e983e8 | fc8137f6a4df69640657a0af5d7201de3c6eb261 | /accepted/LRU Cache.py | 18dd102997ba63e17d76e3d14388bc4477cb9995 | [] | no_license | hustlrr/leetcode | 68df72b49ee3bbb9f0755028e024cc9fea2c21aa | 56e33dff3918e371f14d6f7ef03f8951056cc273 | refs/heads/master | 2020-04-12T08:14:25.371761 | 2017-01-01T12:19:34 | 2017-01-01T12:19:34 | 77,119,341 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # coding=utf-8
from collections import OrderedDict
class LRUCache(object):
def __init__(self, capacity):
"""
:type capacity: int
"""
self.capacity = capacity
self.cache = OrderedDict()
def get(self, key):
"""
:rtype: int
"""
value = self... | [
"823729390@qq.com"
] | 823729390@qq.com |
ca526922574a596546c4f49fd331a7ac63a8190f | d8deecc8c1f8f684f4af159de2872c50a16368bb | /classify/migrations/0005_publication_toolname.py | 5c585333edfd1c3ab524456258b6eb9110bec64f | [] | no_license | UCLA-BD2K/trainingsetbuilder | c37e5195002f8fa9bc875181feb23c77cfc1f0fe | 448c3d03bdc096cf8e10bebb9dca26ea2fdb743f | refs/heads/master | 2021-01-11T03:31:53.021794 | 2016-10-10T21:34:54 | 2016-10-10T21:34:54 | 68,947,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-22 22:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('classify', '0004_publication_fulltextviewed'),
]
operations = [
migrations.... | [
"brianbleakley@gmail.com"
] | brianbleakley@gmail.com |
d61cce7036d061e658d0ef15e46fe37ebd4bc5a5 | 7f00a1d1ff249d47d4f37e923955e0b36c065b28 | /data_structures/linked_list.py | 92f47138c5468a68fb0cf48280457805d4d8eb6a | [] | no_license | estensen/algorithms | b72423aa978e9542b41c56a2baa0b0d97228769c | f8eb411d9414273fe4cb3865b27de3e32520f2b7 | refs/heads/master | 2020-05-22T18:30:01.517563 | 2018-06-10T22:51:33 | 2018-06-10T22:51:33 | 84,714,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | from node import Node
class LinkedList(Node):
def __init__(self):
self.head = None
self.tail = None
def is_empty(self):
return self.head == None
def add(self, item):
new_node = Node(item)
if not self.head:
self.head = new_node
else:
... | [
"haavard.ae@gmail.com"
] | haavard.ae@gmail.com |
b548225dcf0dc011fd1e48783d53c58634e37467 | b60b631b1b0943deb539928cbd72251b23cf7299 | /LexiGraphically.py | 971a179c4f4951d3401322ee6f13df71352efb5d | [
"Unlicense"
] | permissive | jayantk137/ProblemsSolved | 9f3d2df4455d290622dd64580f799784947159fa | e6345e37b1331a0f0c8aabdd600455757c656258 | refs/heads/main | 2023-01-01T01:01:36.912104 | 2020-10-18T08:24:56 | 2020-10-18T08:24:56 | 300,634,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | n =int(input())
s = input()
li = dict()
k = []
max =1
for i in range(n-2):
if s[i:i+2] in li:
li[s[i:i+2]] += 1
if li[s[i:i+2]] > max :
max = li[s[i:i+2]]
else:
li[s[i:i+2]] = 1
for key,value in li.items():
if value >= max :
k.append(key)
k.sort()
print(k[0])
| [
"noreply@github.com"
] | jayantk137.noreply@github.com |
1c310c7486f7ace1a6994a9d5a39ebb4a85386e6 | e58e87c936c778467290a173f98cea3150aeb6b3 | /trainingfiredetection.py | 2e927f85a1d221c8390c16286f48134ed3fa4ecc | [] | no_license | CcQun/CIS-CV | d6fac876125a3d9628dea355fa989c762e72b3d0 | 59d4cd9bc57b57b130d7b40e2eb1d073ca1e6c7f | refs/heads/master | 2022-11-15T17:02:44.730883 | 2020-07-12T09:08:22 | 2020-07-12T09:08:22 | 275,751,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | # -*- coding: utf-8 -*-
'''
训练摔倒检测模型
'''
# import the necessary packages
from oldcare.datasets import SimpleDatasetLoader
from oldcare.preprocessing import AspectAwarePreprocessor
from oldcare.preprocessing import ImageToArrayPreprocessor
from oldcare.conv import MiniVGGNet
from oldcare.callbacks import TrainingMonito... | [
"13698603020@163.com"
] | 13698603020@163.com |
cc406973b8d3be0239b5b23d5658aadefaa6774a | 8062c0eb1af538256cd19f12670cf42523b415c8 | /tests/test_linear_regression.py | ec43af432ea06f8dbc16b6cc41687665213b9e63 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | permissive | math-sasso/tasks | 51005762ab5afdd5e9733bd53e74bf653d42cabb | 7bc07ccc2ad1adb26158689f4ddacb8748b110a8 | refs/heads/main | 2023-07-04T16:58:51.204431 | 2021-08-13T18:23:09 | 2021-08-13T18:23:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | import os
import unittest
import uuid
import papermill
from tests import datasets, server
EXPERIMENT_ID = str(uuid.uuid4())
OPERATOR_ID = str(uuid.uuid4())
RUN_ID = str(uuid.uuid4())
class TestLinearRegression(unittest.TestCase):
def setUp(self):
# Set environment variables needed to run notebooks
... | [
"fabio.beranizo@gmail.com"
] | fabio.beranizo@gmail.com |
1bec204bfbe1e3d3256c2acd2cd9827a7e26f489 | 47ec3cccb7ed6309dd4d4be3675d57a44e005976 | /fun.py | 392512f3feb244b3c2e1c616da89bb130f031bf9 | [] | no_license | subenakhatun/python | db505ea91a647a7bf4eb0d3331267577b4d11c29 | f2e23fac6b1b9710b0587bf97c0cb3d1710aa610 | refs/heads/master | 2020-04-13T14:00:49.183170 | 2019-01-13T05:35:03 | 2019-01-13T05:35:03 | 163,249,030 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py |
# function call
def function_name(parameter1,parameter2):
sum = parameter1 + parameter2
return sum
sum = function_name(20,13)
# print(function_name(4,9))
print(sum)
# variable scope, inside variable mane local variable, vitorer bvariable kaj korche
def variable_scope(a,b):
a = 30
b = 50
... | [
"noreply@github.com"
] | subenakhatun.noreply@github.com |
b9f71d639ab0c64f984ad20740caa06b1b4a7e00 | aba24f0b932e7b8c0296c891a6c841ee9ec4e1f1 | /aaa.py | 5699d0e9e20b81b79120d4e26f3aec49ff900dc9 | [] | no_license | gudwls909/test | 7722657d736e2eda94c6d6b8a468c69309a2683b | 7570d67ccf5d2743ff072a2e6ab8204c364b8398 | refs/heads/master | 2020-05-24T07:47:24.495257 | 2019-05-17T07:41:02 | 2019-05-17T07:41:02 | 187,169,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | import os
import numpy as np
aa = np.array([0,0])
| [
"gudwls909@gmail.com"
] | gudwls909@gmail.com |
7e2dbeb214ee92c378f430cf5cc247563ad2cd30 | 412a330e85ad845a79732277e291acb087d7caaa | /src/bs_basic/demo03.py | b238facde660a7b386d60d19f49a7941aed3e694 | [] | no_license | zhaopufeng/python_scrawler | d3f1284d0f25d6c09fb1c0c35f7c0c72e6c7602e | 04efb6ea7646ccc9281244468d892519c5a46d2d | refs/heads/master | 2022-01-08T13:38:32.020065 | 2019-05-29T00:02:38 | 2019-05-29T00:02:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | # 读取和设置节点的属性
html = '''
<html>
<head><title>index</title></head>
<body attr='test xyz' class='style1 style2'>
<a rel='ok1 ok2 ok3' class='a1 a2' href='a.html'>first page</a>
<p>
<a href='b.html'>second page</a>
<p>
<a href='c.html'>third page</a>
<p>
<x k... | [
"helloworld@126.com"
] | helloworld@126.com |
78d7df1774748733b38013836f2d6b2849f07fe7 | f36ae8ad939381222221a9d96f63bda3be8aa612 | /reference_count.py | 08c2611c8f3ac516e516242f07ee3b201a354487 | [] | no_license | dicander/box_arrow_diagram | 30af3e59b46610e47c0f5278c94acafd05ca02e7 | 25b113ef21fb969211d5ada13b62ec9d5385efdc | refs/heads/master | 2021-07-10T02:16:52.980897 | 2020-11-02T12:59:32 | 2020-11-02T12:59:32 | 213,208,009 | 1 | 1 | null | 2020-01-18T16:45:28 | 2019-10-06T16:59:15 | Python | UTF-8 | Python | false | false | 913 | py | class Node:
def __init__(self, value, following):
self.value = value
self.following = following
def print_values(first):
temp = first
while temp:
print(temp.value)
temp = temp.following
def create_list(size):
first = Node(size, None)
for i in range(size-1, 0, -1):... | [
"dicander@kth.se"
] | dicander@kth.se |
e19465b00dea86d31c9705849f57f03e7d300d22 | ba602dc67ad7bb50133aeb312f3c6c54627b3dec | /data/3919/WA_py/508306.py | 1daf789b3af32025e1f3a08fbb540b77f5386101 | [] | no_license | Dearyyyyy/TCG | 0d21d89275906157372d775f33309ce337e6bc95 | 7b80de16de2d3f5d95a7c4ed95d45a9e38882e67 | refs/heads/master | 2020-12-27T23:19:44.845918 | 2020-02-04T01:59:23 | 2020-02-04T01:59:23 | 238,101,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # coding=utf-8
a,b,c=input().split()
d,e,f=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
e=int(e)
f=int(f)
if a+b>c and a+c>b and c+b>a:
if a==b or a==c or b==c:
print("DY")
elif a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a:
print("ZJ")
elif a==b==c:
print("DB")
else:
... | [
"543271544@qq.com"
] | 543271544@qq.com |
bc73017752a0ac6e32e9394cd13133fa4ab82342 | e50b8bc3e15c9480d9e433dd5ec41139345d6e2e | /zparkl_demo/apps/sample_app/admin.py | 7f41fd265ea5f5e630c4e6d6157b077ebcf32202 | [] | no_license | artminster/zparkl-demo | 927bce1be24a9d906c8417dd6136c2f955be1ba6 | 8938d8c2feedd8ad9f38e8567578a26e18a98379 | refs/heads/master | 2020-06-06T15:06:39.400176 | 2013-12-20T02:40:51 | 2013-12-20T02:40:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from django.contrib import admin
from models import ModelName
class ModelNameAdmin(admin.ModelAdmin):
pass
admin.site.register(ModelName, ModelNameAdmin)
| [
"nmonteiro@nelsons-mbp.home"
] | nmonteiro@nelsons-mbp.home |
4c60f957554de44a54934ca4b954871d2c0763fb | a4cd0e691198ab30f6f7db689db978641b367260 | /GitVisualiser.Support/test/TestBranchDistanceCalculator.py | 5bf1361698369278c8481408f57291ada3c907b0 | [] | no_license | Richard-Steele-Bluefruit/InformationRadiator | 060d9ecefb8c15139f022bbd957614cfd7ca6258 | 55e079ce40ee3ede4b44d3e6256fbded347ca12c | refs/heads/master | 2022-12-12T03:02:54.166327 | 2019-11-15T16:11:54 | 2019-11-15T16:11:54 | 221,687,360 | 0 | 0 | null | 2022-12-08T09:19:16 | 2019-11-14T11:59:10 | C# | UTF-8 | Python | false | false | 9,425 | py | import unittest
from mock import patch, MagicMock
from projectpaths import *
import BranchDistanceCalculator
import ConfigurationFile
import DifferenceData
class TestBranchDistanceCalculatorTestData:
activityDetector_conflict_data = {
'ourCode': ["something that was in your archipelago", "conflict1", "confli... | [
"richard.steele@bluefruit.co.uk"
] | richard.steele@bluefruit.co.uk |
39d52dc49174c33975118904caa8fc8aa54b71f7 | e6f2c559dcbe4b66c3715385fcaa8f06dec122c2 | /Nebula/Downsample_IBD/downsample_VCF.py | 877c2618c457413db7f5c2faf7b1573494afc7ba | [] | no_license | cwarden45/DTC_Scripts | e31c60d840566a11c794671aaa1aa54abb3e379b | f78e2d49a897d9959debf7f3248f7aa5dd2123c0 | refs/heads/master | 2023-08-16T14:31:26.014119 | 2023-08-12T19:06:20 | 2023-08-12T19:06:20 | 61,499,020 | 15 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import sys
import re
import os
#down_fraction = 10
#down_fraction = 20
down_fraction = 50
#down_fraction = 100
#down_fraction = 200
#down_fraction = 300
#down_fraction = 400
#down_fraction = 500
#down_fraction = 1000
#down_fraction = 2000
#down_fraction = 3000
#down_fraction = 2000
#down_fraction = 400... | [
"noreply@github.com"
] | cwarden45.noreply@github.com |
330280ef4a96271914be311f8652dd2a640d095d | c7e7ff039d531fd0ad6f778b3f8a7cf5b180b1da | /network/admin.py | d4f90b40d20632043f3b922055c17c5723e6286c | [] | no_license | mustufajan/network-live | 1059f9545f29d6825f7b2c0c1f06bd5ab7fd08a6 | f21f59934831cf64a2ccfebf1c5e68e9271542d2 | refs/heads/master | 2022-12-09T11:17:55.771776 | 2020-09-13T17:48:08 | 2020-09-13T17:48:08 | 289,967,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Post)
admin.site.register(User)
| [
"noreply@github.com"
] | mustufajan.noreply@github.com |
2f40872fc672d6bc3d473a3d78f3f18cc368d372 | 839c4ed20a9e992c9766b189dc4dcfc03f5d71f7 | /Prac05/word_count.py | 389c06cbbadca2c1c0587d8309ff29be3dea59f7 | [] | no_license | Ballan9/CP1404-pracs | fafa9a347d1670dc57346f9820deb0a960d11b72 | 56209c14aae6c2e650a8122983770367afd2540e | refs/heads/master | 2020-05-22T01:29:03.356912 | 2016-09-15T03:05:35 | 2016-09-15T03:05:35 | 65,513,615 | 0 | 0 | null | 2016-09-22T02:15:47 | 2016-08-12T01:35:31 | Python | UTF-8 | Python | false | false | 401 | py | word_count = {}
string = input("Please enter a string: ").split()
for word in string:
if word not in word_count:
word_count[word] = 1
else:
word_count[word] += 1
length_of_largest_string = max(len(word) for word in word_count)
print(word_count)
for word in sorted(word_count, key=str.upper):... | [
"allan.serrurier@my.jcu.edu.au"
] | allan.serrurier@my.jcu.edu.au |
bfc89ac308e59c8a739caca6751128881ce3a9fa | 2b53fc6d1f03b29ad5e896d09fb068b18d822d81 | /344-Reverse-String.py | 3af2ab2a0ca2ad6de3dde4ca0699d571497d139a | [] | no_license | niushuai1991/leetcode | f97fd4e7654c23ef11e932c28b37a5336adf33fd | 7d3f09edf24d757c69d9aca566674a26eba593d4 | refs/heads/master | 2022-08-31T17:29:44.582257 | 2022-08-23T15:01:02 | 2022-08-23T15:01:02 | 66,553,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | """
344. Reverse String
Write a function that takes a string as input and returns the string reversed.
Example:
Given s = "hello", return "olleh".
"""
class Solution(object):
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
return s[::-1]
if __name__ == '__ma... | [
"niushuaiml@gmail.com"
] | niushuaiml@gmail.com |
d7cdb36fd4b26461c35c686e6fb2dbdb300a80c5 | b107e13d16d88fcb255e23349d9c1ef15be469cc | /第五次作业/scheduler.py | 6aa2b6189bebaba6c83ae59c82bf5173928a3bd3 | [] | no_license | xinyuan-liu/OS_Practice | adf65236f7165e32f247d2d509520641d5543d67 | eafaee6d13a1cd915dd5f019b513ca70924ce1e4 | refs/heads/master | 2021-01-17T22:21:09.348285 | 2017-05-31T06:44:00 | 2017-05-31T06:44:00 | 84,194,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,811 | py | #!/usr/bin/env python2.7
from __future__ import print_function
import subprocess
import sys
import uuid
import time
import socket
import signal
import getpass
from threading import Thread
from os.path import abspath, join, dirname
from pymesos import MesosSchedulerDriver, Scheduler, encode_data
from addict import Dic... | [
"lxy_pku@qq.com"
] | lxy_pku@qq.com |
db06647a6981e938a79c48c2fd34c1b303e5446e | 80453e94cfcda83b5796f17f5e3a5a8616c50288 | /network_ui_dev/migrations/0001_initial.py | d1e1eca0100a14c9a511a5cae05346a0d751324e | [
"Apache-2.0"
] | permissive | benthomasson/network-ui | eaca0ab0ed8a5ab3ba9d2e2aab81b1e38248b649 | 8c3e114d331a57848acb4004ccf090148fd36e86 | refs/heads/react | 2023-01-13T07:56:38.914187 | 2019-06-19T14:58:56 | 2019-06-19T14:58:56 | 145,854,921 | 1 | 1 | Apache-2.0 | 2023-01-06T01:08:15 | 2018-08-23T13:07:43 | HTML | UTF-8 | Python | false | false | 12,004 | py | # Generated by Django 2.0.8 on 2018-08-23 16:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Client',
fields=[
... | [
"bthomass@redhat.com"
] | bthomass@redhat.com |
1a3a8531445dfd974cb045babbdf1ceea1b12e4d | 084177c601eeb7ce99a343b94cbad8eb15cb7f95 | /flask/jinja2/sample/sample.py | f3f84ff17d340f59d35709ea8617ea5f1d481738 | [] | no_license | CaesarLinsa/flask_learn_note | bb82360c1ca15a48ba136c460b6b6159a8ff4034 | 260ae68ed6494f995a75f21f16fc493d10031a2a | refs/heads/master | 2022-09-28T03:38:23.626341 | 2020-02-07T08:42:52 | 2020-02-07T08:42:52 | 237,619,223 | 0 | 0 | null | 2022-09-16T18:17:46 | 2020-02-01T13:30:34 | Python | UTF-8 | Python | false | false | 1,176 | py | # -*- coding: utf-8 -*-
from flask import Flask, render_template, request
from flask_script import Manager
from livereload import Server
from flask_bootstrap import Bootstrap
from flask_nav import Nav
from flask_nav.elements import *
app = Flask(__name__)
manager = Manager(app)
Bootstrap(app)
nav = Nav()
nav.register... | [
"Caesar_Linsa@163.com"
] | Caesar_Linsa@163.com |
c546d06a29da7625de0d5f87dedab6c1c3b88244 | 90f52d0348aa0f82dc1f9013faeb7041c8f04cf8 | /wxPython3.0 Docs and Demos/demo/DelayedResult.py | a8342a9a2c2f81a93a8e289ffba1eaa8a9ed8cce | [] | no_license | resource-jason-org/python-wxPythonTool | 93a25ad93c768ca8b69ba783543cddf7deaf396b | fab6ec3155e6c1ae08ea30a23310006a32d08c36 | refs/heads/master | 2021-06-15T10:58:35.924543 | 2017-04-14T03:39:27 | 2017-04-14T03:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,014 | py | """
This demonstrates a simple use of delayedresult: get/compute
something that takes a long time, without hanging the GUI while this
is taking place.
The top button runs a small GUI that uses wx.lib.delayedresult.startWorker
to wrap a long-running function into a separate thread. Just click
Get, and move the... | [
"869999860@qq.com"
] | 869999860@qq.com |
4e083d51354d1d7d7b81510c3063e3c208df0193 | d4f05d51568bfda9fb964deba92d9fd599a3dcde | /base/tuple_test3.py | 4e1ce3fd3e68d5245f15605600965e2df9821e63 | [] | no_license | Fullmoon8507/PythonPracticeProject | 44beba7ce783e5e22429516d39ee96adc1ead785 | 57454099ad67bfe4431ee997fada640fde6ccecc | refs/heads/master | 2020-04-16T23:29:58.907552 | 2017-05-06T07:27:35 | 2017-05-06T07:27:35 | 53,178,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | if __name__ == "__main__":
(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) = range(7)
print(MONDAY)
print(TUESDAY)
print(SUNDAY)
| [
"fullmoon_8507@yahoo.co.jp"
] | fullmoon_8507@yahoo.co.jp |
14c62d33a1f7cc4612a123b9dd6be6c55b11d81c | 82b0ae2f8b5b8d5d984fee26d518c2023c96cdc8 | /setup.py | d2d419cafd977686c48ad3faa9abfe5e671346fb | [
"MIT"
] | permissive | peterentroprise/entro-prediction | 6a6af546cd707ba58b638317084d2b14e13c73e3 | f8ed639b65b57da22dfd37f9387ade2f99200419 | refs/heads/master | 2022-12-01T16:19:52.003282 | 2020-08-11T19:43:10 | 2020-08-11T19:43:10 | 277,581,423 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | from io import open
from setuptools import find_packages, setup
def parse_requirements(filename):
"""
Parse a requirements pip file returning the list of required packages. It exclude commented lines and --find-links directives.
Args:
filename: pip requirements requirements
Returns:
... | [
"peter@entroprise.com"
] | peter@entroprise.com |
0f9f5fd70448cab112a952fe1d3bbfaecdd9112a | ee03b696000ad6bed175ec5d6b3d9660b99b4266 | /K-Means/test.py | 0e24a233deb56a36796933163e2e73376538981f | [] | no_license | agungnursatria/K-Means | bc2d5f1726bed22a808b34fabe16ffae756b00ef | 910a6b713c111a7e759baff00529b0ce471b9999 | refs/heads/master | 2020-03-09T15:44:12.567957 | 2018-04-10T03:20:37 | 2018-04-10T03:20:37 | 128,865,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 6 15:18:33 2018
@author: Agung Nursatria
"""
# -------------------------------------------------------------
# JIKA LAMA SEPERTI MUNCUL KALIMAT DIBAWAH, BISA DIULANG JALAN PROGRAMNYA...
# RuntimeWarning: Mean of empty slice.
# RuntimeWarning: invalid... | [
"noreply@github.com"
] | agungnursatria.noreply@github.com |
1224931d246e52a66ddfe9428645e7a3d0e3fcee | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_4335.py | 454b8cb811aaf1aaa5ceae079d6b859bb77e86e8 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | # returning a single instance of a regex object's contents
line.replace('<a href="' + test_str + '">', '<a href="' + re_string + '">')
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
c19c4b35c726c1dfed536061da95efa490d4e473 | a110cda0dd755a0aeeccaa349de5b7c8f836f7d9 | /005_PrintingPDFs/renameFiles.py | 87db8921f363b65d6f0c00339428f095356404ef | [] | no_license | ksobon/archi-lab | 26d93ef07e4f571e73a78bc40299edd3dc84c2a6 | 9a8a57eccca899ace78a998dc7698ff7754fae6b | refs/heads/master | 2021-01-15T09:37:06.045588 | 2020-06-03T15:55:46 | 2020-06-03T15:55:46 | 26,090,112 | 6 | 5 | null | 2020-02-09T04:24:41 | 2014-11-02T19:02:28 | Python | UTF-8 | Python | false | false | 1,422 | py | #Copyright(c) 2015, Konrad Sobon
# @arch_laboratory, http://archi-lab.net
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManag... | [
"ksobon1986@gmail.com"
] | ksobon1986@gmail.com |
f16f9c28a7596e8a743e73b7358c469665832b38 | 63379a18a8edb12a9827fddc660e1a8349fdccdb | /component_contribution/__init__.py | 46f12f620007003e70bf0d11ea0a580efff68236 | [
"MIT"
] | permissive | jlerman44/component-contribution | 4c6c0f409d67a5a3076fff930f83221631817791 | a4c83ae45f15d8ff9f87c3075e81cca8bfdf6f82 | refs/heads/master | 2020-07-10T14:22:16.448414 | 2015-04-30T12:21:53 | 2015-04-30T12:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import kegg_reaction
import kegg_model
import component_contribution
import kegg_errors
import thermodynamic_constants
import training_data | [
"elad.noor@gmail.com"
] | elad.noor@gmail.com |
d7c92466f9a6dac20817a0c86eb3d165c1889c32 | fa44962b4214bcd89abd45c0d01d5d8c0a11284c | /simple_server_python/old_setup.py | 4a8acd0f20c5cda8fd2f223b0f15710cc22a24f8 | [] | no_license | themando/lambda_nic | 579ec92666b8d1dc17a31a80408a8c5fef9ae559 | f2337a1503840e7c8a236940c55c898a7427960f | refs/heads/master | 2023-04-13T09:21:41.159485 | 2021-04-23T21:51:09 | 2021-04-23T21:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from setuptools import setup
setup(name='simple_server',
version='0.1',
author='Sean Choi',
author_email='yo2seol@stanford.edu',
license='MIT',
packages=['simple_server'],
install_requires=[
'netifaces',
'Pillow',
'numpy'
],
dependency_links=['https://github.com/idanmo/python-memcached-udp/... | [
"yo2seol@gmail.com"
] | yo2seol@gmail.com |
0e5c49f0619d2b1edeba7d047ac7bf78062ae829 | f6b2dd8d27f9141f04a071765de444ab68808c18 | /libled/object/led_skewed_sphere_obj.py | 08186c075d70532642d6a642457b54ccd73d8b4b | [] | no_license | tatsuo98se/3d_led_cube2 | ecf9eba3e226cb4bdb225c144b3ea3512009cb12 | ea1c607c64c688db0f0fb3ed2829206875c8b521 | refs/heads/master | 2018-10-22T09:27:49.820357 | 2018-07-31T15:03:24 | 2018-07-31T15:03:24 | 104,359,509 | 2 | 3 | null | 2018-07-31T15:03:25 | 2017-09-21T14:35:48 | Python | UTF-8 | Python | false | false | 617 | py | from led_object import LedObject
from ..util import vectors_util as Vectors
import math
class LedSkewedSphereObject(LedObject):
def __init__(self, lifetime=0):
super(LedSkewedSphereObject, self).__init__(lifetime)
self.ix = 0
def draw(self, canvas):
framework_wait_time = 20
s... | [
"smartphone.560@gmail.com"
] | smartphone.560@gmail.com |
45dad345c82d2597821d8da8511698c9392e14d2 | 91ee3786a8ff19c29072835e12d391ad016a4a02 | /scripts/for_paper.py | 48b5d97ad9b180ee37e3e7627e72cfbdc8008a76 | [
"ISC"
] | permissive | HCWDavid/SPARC_smoothness | fe8844f73e9a1264ad070d9310f2e77d31107153 | 3650934f5bc9ad21c7d59dcdb6ccd249c462b3e4 | refs/heads/master | 2023-03-17T17:27:29.347458 | 2020-04-29T05:41:55 | 2020-04-29T05:41:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,687 | py | """Module for generating plots for the paper."""
import numpy as np
import matplotlib.pyplot as plt
from smoothness import sparc
from smoothness import log_dimensionless_jerk
def sine_rhythmic_movement(T_m, T_r, T_t, ts, skill=1):
# time
t = np.arange(0, T_t, ts)
# Total number of movements
N = int... | [
"siva82kb@gmail.com"
] | siva82kb@gmail.com |
2320eb1e1769378913537afe5430797d7e3a0cf2 | 07cd13c5d8d1d71105a6d86786715da3383458fc | /audeeo/__init__.py | 44ae9521bee88de1199d5b110b7135121337af58 | [] | no_license | kakty3/audeeo | 9b71e3325be56bf9fa274e6f2ac862021a9badcc | d82c4c548b38e9a57ccb646524e0a97536837bbc | refs/heads/master | 2022-03-30T11:02:25.116050 | 2019-12-05T08:33:25 | 2019-12-06T12:10:57 | 170,991,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | import os
import click
import flask
import flask_migrate
import flask_security
from audeeo import internet_archive, models, views, settings
from audeeo.database import db
def create_app(config_object=settings):
app = flask.Flask(__name__)
app.config.from_object(config_object)
db.init_app(app)
migr... | [
"kakty3.mail@gmail.com"
] | kakty3.mail@gmail.com |
6bae1e534da5115cccc6f8b434e9e25fec4d77b8 | 5ec79195afaa76ce8c94babf881d18536f72edd8 | /demo_graph.py | 0a7ec38b535a85e657374bfb6c654545222cea2b | [
"MIT"
] | permissive | mrshu/tensorboard-pytorch | dfc9734e88ec33c013fee007342d2f55701c2d73 | 8a296a17e35217f9f9632ca0fe2ab6e6c5ded02d | refs/heads/master | 2020-03-09T10:52:27.166832 | 2018-04-05T15:16:01 | 2018-04-05T15:16:01 | 128,747,250 | 0 | 0 | MIT | 2018-04-09T09:27:00 | 2018-04-09T09:27:00 | null | UTF-8 | Python | false | false | 2,383 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
from torch.autograd import Variable
from tensorboardX import SummaryWriter
class Net1(nn.Module):
def __init__(self):
super(Net1, self).__init__()
self.conv1 = nn.Conv2d(1, 10, kernel_size=5)
self.conv2 =... | [
"huang.dexter@gmail.com"
] | huang.dexter@gmail.com |
e9bf9486a87bbe6c79f4f9baac13b0737938295b | 9a553930cf5fc5c9a39cbf2373f9a16b6a3461f7 | /example03/blog/views.py | 86dbf1b2bd3da2459a45de85d94300affe07e4de | [] | no_license | lee-seul/django_example | 8ad45ad277d2e69b0108b7609be7fd37de6540f2 | bf2736e42f0a03e603f5a34eab89bae0ed43d0a3 | refs/heads/master | 2021-01-12T06:30:18.723640 | 2017-05-17T09:55:43 | 2017-05-17T09:55:43 | 77,370,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.views.generic import ListView, DetailView
from blog.models import Post
class PostLV(ListView):
model = Post
template_name = 'blog/post_all.html'
context_object_name = 'posts'
paginate_by = 2
class PostDV(DetailView):
model = Post
| [
"blacksangi14@naver.com"
] | blacksangi14@naver.com |
cbd96969214d935605329cae227c852360c7456f | ea7bb11f20ddccc2938821b7ef24149ba512bc42 | /linear_algebra/bases/__init__.py | 0a58cea7112e20d4db6f11cb6e58ebcd68b4e107 | [] | no_license | binguishensu/linear_algebra | 00b68f80c7522f6091408c2bce96fd90fa08bd83 | 171c2cc6e24cb2c3ddb44552ea52ebb31e7ec477 | refs/heads/master | 2020-04-02T17:19:29.683275 | 2017-06-23T19:42:37 | 2017-06-23T19:42:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | """
Created by Faggioni
Python Script
@author: Miguel Faggioni
"""
__all__ = [] | [
"miguelfaggioni@hotmail.com"
] | miguelfaggioni@hotmail.com |
4f4439af282e68f2d4d38325dfbd8be611d162de | 952c897b4b6a9ce49a380fd5cff097d03eb338dd | /tests/conftest.py | 2600a7c5bdae1cac69256a5b9e155c52b47fd817 | [] | no_license | jaydrennan/sudoku_solver | 7069cb6fa48c7295e0968c37f25738723bccfd0f | 3666ad48d425caa28b5a907e6813cee336da658a | refs/heads/master | 2023-02-22T17:54:52.593486 | 2021-01-19T06:07:33 | 2021-01-19T06:07:33 | 331,153,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,935 | py | import pytest
@pytest.fixture()
def original_sudoku():
original_sudoku = [
[4, 6, 9, 7, 5, 0, 3, 0, 0],
[0, 0, 0, 2, 3, 0, 0, 9, 5],
[5, 0, 0, 0, 0, 0, 0, 0, 0],
[7, 0, 8, 0, 9, 3, 0, 0, 6],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[2, 0, 0, 1, 7, 0, 8, 0, 4],
[0, 0, 0,... | [
"jsdman1313@gmail.com"
] | jsdman1313@gmail.com |
47633ec6e36859d82f8c30327ad35d56b122fee4 | 02d300b4f0cda14a48945820e8cc75cb21f3bf2e | /venv/bin/pylint | f97981207194369d487c7104a56bda4ea2b95d1c | [] | no_license | helpBell/eth-tutorial | a3e49fab33cc4378c79af4b34a65d986fa76bf10 | 85282795094d9106814fe653a5eb8390a792f71a | refs/heads/master | 2020-07-29T05:16:08.323091 | 2019-09-20T06:27:44 | 2019-09-20T06:27:44 | 209,680,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/blockchain/eth-tutorial/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"hawoo0517@gmail.com"
] | hawoo0517@gmail.com | |
65b811e91271d22e236a51270192d1ffdfb4298d | 085a0084cdf626c95dd188f7a2fdbb7ea7628b0e | /3_web data analysis/6_xpath_58二手房.py | 11d6432c98155b8d922cec754611d213b6342870 | [] | no_license | gritjz/Python_Crawler | ae3c63996582a997a350216fe4a6a84b7c5b2401 | a17597473caf1c7fe9d8df42bef330aac07a7b6c | refs/heads/master | 2023-03-25T03:38:17.535513 | 2021-03-25T23:37:09 | 2021-03-25T23:37:09 | 341,428,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | # -*- coding:utf-8 -*-
import requests
from lxml import etree
if __name__ == '__main__':
#爬取页面源码数据
url='https://bj.58.com/ershoufang/'
headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36'
}
page_text = ... | [
"CJnZ@users.noreply.github.com"
] | CJnZ@users.noreply.github.com |
2fa72ef5b65c504fc06a61ab40f41cf03cb0afab | d0459fb4064f52b19aa81d090df8d8ca9edaeead | /40-49/41.py | 81b041f21ba89b18ad7c26834665a047b97593db | [] | no_license | barrymun/euler | 3d9defbe5f79a2fb4b1286d27ac8702b5444ddca | 751db69ae1c1fac507aa5b4313122fcd273c2840 | refs/heads/master | 2022-04-15T05:45:38.456706 | 2020-03-24T19:56:57 | 2020-03-24T19:56:57 | 88,738,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from itertools import permutations
def is_prime(n):
"""
"""
if n < 2:
return False
if n == 2:
return True
if n & 1 == 0:
return False
d = 3
while d * d <= n:
if n % d == 0:
return False
d = d + 2
return True
def generate_pandigital... | [
"barrymun@tcd.ie"
] | barrymun@tcd.ie |
c9b37f22dd36573c9c8a8efbf50d3f4ffd11bf35 | 58c2b88f0132a7a5b0901862ece5ddd71165fb8f | /python/Balanced Binary Tree.py | d8a4d655310bac3da57185feec456af9364e0c47 | [] | no_license | jingcmu/leetcode | d475830d7a6420af9dc40afe5c7c1578281047c3 | 1dd5aaac2c9236165942d649fc90da1b1889583f | refs/heads/master | 2021-10-25T08:20:35.374427 | 2021-10-17T07:09:39 | 2021-10-17T07:09:39 | 14,272,316 | 3 | 2 | null | 2015-05-21T06:01:23 | 2013-11-10T07:00:59 | C++ | UTF-8 | Python | false | false | 736 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param root, a tree node
# @return a boolean
def getDepth(self, root):
if root == None:
return 0
el... | [
"jingchen@cmu.edu"
] | jingchen@cmu.edu |
506ebfa6f7767dd84f8dc89a35f78fa20d401a23 | de3ae0434f49617553135f03309323c89f38644b | /xmasctf/the-calculators/exploit_the_calculator.py | e9cf01b0c732b50636e085eb4bdf7ed240438b0c | [] | no_license | ClemensKnights/Writeups | 40302f113a1a70aaa2bd5f63327961a8801909be | c75ebfa5229d241eeea19f77a62e7305f687df88 | refs/heads/master | 2020-04-12T21:14:35.311169 | 2018-12-25T15:33:51 | 2018-12-25T15:33:51 | 162,758,374 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | #!/usr/bin/python2.7
from pwn import *
import sys
def main():
p = remote("199.247.6.180", 10008)
# Wait for debugger (gdb)
#p = process("./chall")
#pid = util.proc.pidof(p)[0]
#print("The pid is: " + str(pid))
#util.proc.wait_for_debugger(pid)
msg = p.recvuntil("CALCULATOR")
print(m... | [
"marius.momeu@tum.de"
] | marius.momeu@tum.de |
f3e6165eb09dad2217205d966b403ee2930b536d | 2fef25969d0221ef28f72494959fc049e1d4120d | /model/DAunet_deep.py | 2b80e842d57ab98f053a6d09e86bec6b099a273a | [] | no_license | JeremyY666/pytorch_medical_image_seg_collection | 37563b1165b10bd3eff1fb4767fae6b6edf3885a | 9e8c99d26569c4c9da797cbc38fe49a891260c30 | refs/heads/master | 2022-11-15T18:28:11.589203 | 2020-07-17T02:05:03 | 2020-07-17T02:05:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,191 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 20:19:51 2020
@author: 45780
"""
import numpy as np
import torch
import math
from torch.nn import Module, Sequential, Conv2d, ReLU,AdaptiveMaxPool2d, AdaptiveAvgPool2d, \
NLLLoss, BCELoss, CrossEntropyLoss, AvgPool2d, MaxPool2d, Parameter, Linear, Sigmoid, Softm... | [
"diaoyichao1995@gmail.com"
] | diaoyichao1995@gmail.com |
965bd0139ac3b48ded0f2d2fe2b1e1ce41c3c4af | 70ffc53a7a906d6da6d635d131fb525618245083 | /build/nodes/sparsestereo/catkin_generated/pkg.develspace.context.pc.py | e62fab28b645cbbc318a4a497cb4c9f04897d8ce | [] | no_license | sundsunds/catkin_backup | 529c9892655bd0f5035f1b02f0dc0fe945e0080c | 04ebec48e26fdf89e13ea0f6086c76ce8119f4ea | refs/heads/master | 2021-01-18T23:13:52.830285 | 2017-04-03T16:38:15 | 2017-04-03T16:38:15 | 87,096,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/sun/catkin_ws/src/nodes/sparsestereo/src".split(';') if "/home/sun/catkin_ws/src/nodes/sparsestereo/src" != "" else []
PROJECT_CATKIN_DEPENDS = "libks;libks_msgs".replace(';', ' ')
PKG_CONFIG_LIB... | [
"sunds1986@139.com"
] | sunds1986@139.com |
f41b020d3d66600a056dfe24bb6514413db0b3ef | 1927c9d23a0de546b1b1343f866e37cf33b20b8e | /Python Files/9_20_16/Matt Kehoe HW3.py | 42b61b502b7c92afdd9de4d29c50b995416b3d5e | [] | no_license | Mjk29/CS_100_H03 | 6ac8bf34511b75473023c7c5888a584df725ee38 | fee62a05a82891636024aecd46fa1fd9fab72fe6 | refs/heads/master | 2021-04-27T19:53:06.109002 | 2018-02-21T17:10:17 | 2018-02-21T17:10:17 | 122,367,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | import math
a=3
b=4
c=5
print(a,b,c)
if a<b:
print("ok")
else:
print("not ok")
pass
if c<b:
print("ok")
else:
print("not ok")
pass
if a+b<c:
print("ok")
else:
print("not ok")
pass
if a**2 + b**2 == c**2:
print("ok")
else:
print("not ok")
pass
""""""
import turtle
t=turtle.Turtle()
t.color(inpu... | [
"mjk29@njit.edu"
] | mjk29@njit.edu |
cb5613bfd8d6ec14e6bc38d726a3a675e9cbae55 | b563023f73eec953afc43396bf1c26519d69a236 | /web/components/commons/view_mixins.py | 2aa435d87a2e250f12544365c4b1cb1dcd4b18ea | [
"MIT"
] | permissive | pkdevbox/goodtables-web | bf3b18a9ab6e0394320ec9dfa6077e8e47d7a0c8 | 5fe41db5361b54e0a553dbea4cbb73fd55b6418c | refs/heads/master | 2021-01-12T19:25:07.958490 | 2015-08-28T08:31:43 | 2015-08-28T08:31:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
from werkzeug.datastructures import FileStorage
from flask import current_app as app
from goodtables.pipeline import Pipeline
from . imp... | [
"paulywalsh@gmail.com"
] | paulywalsh@gmail.com |
988f313b70d9c76b563797edeb96a6b4de45f325 | 2eed653fe2d2609e00fbabee9b7abdd3e46c9ef0 | /python-files/fft_NP.py | 472c0174c192e82095a32358e050519fc43e2b43 | [] | no_license | liudhzhyym/opencv-python | 832e434993969835af0f4809e0efc1405d3f80b0 | e48d24123a3cea50a09182c5a62e658cb18cde0e | refs/heads/master | 2021-09-02T23:29:44.244094 | 2018-01-04T03:35:50 | 2018-01-04T03:35:50 | 116,210,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('data/images/football.png', 0)
f = np.fft.fft2(img)
fshift = np.fft.fftshift(f)
# 构建振幅图
magnitude_spectrum = 20 * np.log(np.abs(fshift))
plt.subplot(121), plt.imshow(img, cmap = 'gray')
... | [
"liudhzhyym@163.com"
] | liudhzhyym@163.com |
93559700d50090e582362757e536d21efa60c4a8 | 3eb7575d9a1fa2f620a1fd88de1fe3da7ce552a3 | /Prac_05/emails.py | c7c0d87ede91530e74ba6ab45234986e862edd2d | [] | no_license | lazywhitecat/Pratical | 0c9d5b46a91e53dc0b2ace48c623b91ffbbe19c2 | bb37cb1f070f41281dfce9057fc75f50d512fbc4 | refs/heads/master | 2022-12-24T03:33:50.791637 | 2020-09-30T10:15:26 | 2020-09-30T10:15:26 | 283,714,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | my_dict = {}
input_email = input('Enter your email:')
while input_email != ' ':
email_name = input_email.split('@')
full_name = email_name[0].split('.')
full_name =' '.join(full_name).title()
print(full_name)
my_dict[full_name] = input_email
input_email = input('Enter your email:')
| [
"junjiequ@my.jcu.edu.au"
] | junjiequ@my.jcu.edu.au |
23dde01eaebff8726011c853cec14a7099c11dab | 07a72b9c1e21faa287f50afa847e5abc60861168 | /1 遗失宠物的智能寻找/狗不离 - 对不对/算法部分/lambda_function.py | 5f31a32b40425cb3b7ad9e6b8c4c771ccd5a6bd0 | [] | no_license | dythebs/aws-hackathon-2020 | 52047f26d82ee76bed7fafd72ad4a0d52085fb4a | df3cd05f22bb0b2c25a640d0d2a8d3d31b12c31f | refs/heads/master | 2022-12-17T00:14:46.719286 | 2020-09-15T15:37:00 | 2020-09-15T15:37:00 | 295,746,655 | 0 | 0 | null | 2020-09-15T14:02:26 | 2020-09-15T14:02:25 | null | UTF-8 | Python | false | false | 504 | py | import json
import os
import io
import boto3
import json
import csv
ENDPOINT_NAME = 'sagemaker-tensorflow-serving-2020-09-07-21-13-59-342'
client = boto3.client('runtime.sagemaker', region_name='cn-northwest-1')
def lambda_handler(event, context):
payload = event['img']
response = client.invoke_endpoint(Endpoin... | [
"244271172@qq.com"
] | 244271172@qq.com |
a943d8aa12436bea8e611967b357f8f13a8c7a1d | 689a642c9739961ec5a7b1d453df4cc2e8846e55 | /synapyse/test/impl/braille.py | 4732531b3bcaf180d202d12516b92d59e49c9773 | [
"MIT"
] | permissive | dougefr/synapyse | 16940e85f18fd1e92e635695e943d672adcf17be | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | refs/heads/master | 2021-01-18T07:40:45.299115 | 2019-10-29T18:21:41 | 2019-10-29T18:21:41 | 24,631,311 | 4 | 1 | null | 2019-10-29T18:21:42 | 2014-09-30T08:52:29 | Python | UTF-8 | Python | false | false | 3,124 | py | from synapyse.base.learning.training_set import TrainingSet
from synapyse.impl.activation_functions.sigmoid import Sigmoid
from synapyse.impl.input_functions.weighted_sum import WeightedSum
from synapyse.impl.learning.momentum_back_propagation import MomentumBackPropagation
from synapyse.impl.multi_layer_perceptron imp... | [
"dougefr@gmail.com"
] | dougefr@gmail.com |
048e3950baa1ef3fb53501de60e5d22aae233701 | 01c00a769156b010012ce6150c737be43a34a5a7 | /RegressionOneApp/serializers.py | 4176bbb946783bb0d02bdcd4b08ffaeedcef27e5 | [] | no_license | chelseatroy/RegressionOne | 87844893f91aebe4488f23db9121498e6560ee53 | 85d2f2ff5e62f3b291adb575fb980e741223a5ee | refs/heads/master | 2021-04-09T16:09:15.153337 | 2016-07-16T17:06:52 | 2016-07-16T17:06:52 | 62,819,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from rest_framework import serializers
from RegressionOneApp.models import Thingamabob
class ThingamabobSerializer(serializers.ModelSerializer):
class Meta:
model = Thingamabob
fields = ('description', 'done', 'updated') | [
"chelsea.dommert@gmail.com"
] | chelsea.dommert@gmail.com |
a6df4886bf4d3616c87128e5a53f09f3d3599244 | 6cf4552407f18cc05018716e06a806fd8cc6d818 | /main.py | 542c794ecad73e98fe004312369c1f875718a3cf | [
"MIT"
] | permissive | CatsArePanzers/python_project | 7bf20af900b58c2031b6adfe3dc8b17f8ec72dd4 | 7c77e2147cc2d3b9962aaaaa241cc7bc164ecd24 | refs/heads/main | 2023-05-31T04:12:44.828554 | 2021-06-25T15:40:43 | 2021-06-25T15:40:43 | 374,172,052 | 1 | 1 | MIT | 2021-07-07T20:59:02 | 2021-06-05T17:17:15 | Python | UTF-8 | Python | false | false | 1,992 | py | import math
import pygame
from pygame.locals import *
from src.classes import *
speed = 3
speed_ball = speed
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
screen_size = (800, 640)
ai = 1
pygame.init()
screen = pygame.display.set_mode(screen_size, pygame.RESIZABLE)
pygame.display.set_caption("Pong")
ball = Ball(20)
ball... | [
"kristianm2005@gmail.com"
] | kristianm2005@gmail.com |
424454918372312fdbb32f58eea0251da88205d5 | 1c431f7fb25afe6a70bde1912a7ebee852a9a6f2 | /08-13-2018-OOP-Testing/code/polymorphism/ex_3.py | da786a685a876248977bdbb7957b81d07b7dbab3 | [] | no_license | candace2/NYU-Intro-to-Python-Summer-2019 | 1bb3ad941dc1c2099568de042c3eb52d46670653 | 55effd8ad3709a9d7bbbaaf70f5b0ef64914eb1c | refs/heads/master | 2020-03-26T07:08:34.112672 | 2018-08-13T21:57:13 | 2018-08-13T21:57:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | class Shark():
def swim(self):
print("The shark is swimming.")
def swim_backwards(self):
print("The shark cannot swim backwards, but can sink backwards.")
def skeleton(self):
print("The shark's skeleton is made of cartilage.")
def color(self):
print('No color')
class... | [
"jessica.garson@gmail.com"
] | jessica.garson@gmail.com |
63e71d8483e8d40290c82c2af36178fd719de51a | cfcd117378664e4bea080b3c1011a25a575b3d51 | /hawc/apps/materialized/apps.py | c804446ee46e38f9bba133e2af6ddd04d9bf72c5 | [
"MIT"
] | permissive | shapiromatron/hawc | 9d3a625da54d336334da4576bd5dac6915c18d4f | 51177c6fb9354cd028f7099fc10d83b1051fd50d | refs/heads/main | 2023-08-03T13:04:23.836537 | 2023-08-01T18:39:16 | 2023-08-01T18:39:16 | 25,273,569 | 25 | 15 | NOASSERTION | 2023-09-14T17:03:48 | 2014-10-15T21:06:33 | Python | UTF-8 | Python | false | false | 214 | py | from django.apps import AppConfig
class MaterializedViewsConfig(AppConfig):
name = "hawc.apps.materialized"
verbose_name = "Materialized Views"
def ready(self):
from . import signals # noqa
| [
"noreply@github.com"
] | shapiromatron.noreply@github.com |
896cd03fa13f1e5c2a9d1371f0dcde4ef614a081 | 6598562004a1d99fc80458bc9142feae4486c53e | /Analysis/infect_model.py | 011cfc004ad08d3e129aafd34da746c255897def | [
"Apache-2.0"
] | permissive | lhuang-pvamu/covid-19 | dd0d846f7c6302a2e45488bcfa4697c0ed2f11f6 | 4fe7820cefb65c47716bd1ff7de25d38bf35cb62 | refs/heads/master | 2021-05-25T20:39:24.073343 | 2020-04-27T18:25:23 | 2020-04-27T18:25:23 | 253,911,875 | 0 | 0 | null | 2020-04-09T20:45:32 | 2020-04-07T21:05:49 | Python | UTF-8 | Python | false | false | 4,925 | py | __author__ = 'Lei Huang'
import argparse
import os
import time
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchsummary import summary
import numpy as np
import matplotlib.pyplot as plt
from torch.autograd import Variable
import math
# Standard Susceptible-Expo... | [
"lhuang@pvamu.edu"
] | lhuang@pvamu.edu |
f80c35eece571ee70a929b6b17cba878ce1e0150 | 419e771022ce46fd6be3701d87bdeb8b45188fda | /sympy/polys/tests/test_subresultants_qq_zz.py | 737bdf775221667761247400edf229fc204b4d1b | [
"BSD-3-Clause"
] | permissive | kaichogami/sympy | f13216fec7aa2d287ae74d6cd8bf7122e334a906 | 4ea2cd1db85b28919ce4c8e99ba821ee50f3a5fe | refs/heads/master | 2021-01-24T19:09:30.670629 | 2016-02-15T17:08:55 | 2016-02-15T17:08:55 | 29,065,639 | 1 | 0 | null | 2015-01-10T17:55:42 | 2015-01-10T17:55:42 | null | UTF-8 | Python | false | false | 9,702 | py | from sympy import var, sturm, subresultants, prem, pquo
from sympy.matrices import Matrix
from sympy.polys.subresultants_qq_zz import (sylvester,
sturm_pg, sturm_q, sturm_amv, euclid_pg, euclid_q,
euclid_amv, modified_subresultants_pg, subresultants_pg,
subresultants_amv_q, quo_z, rem_z, subresultants_amv,
... | [
"akritas@uth.gr"
] | akritas@uth.gr |
3ff9530ece604ca4f9b480cd01a41743077a93a7 | d98a3b5858407346bc0b1e62726f9fd31f5e688e | /config.py | 691090aed4afbe1051feb5efa0f5739152cec44b | [] | no_license | NaokiY20/othello | 1cb367b11a70c8c73c4f4091ec18736d282bf5e8 | 6f5187a7df0d1782e6f92496b88866937d89f386 | refs/heads/master | 2021-05-21T09:40:42.228072 | 2020-04-30T08:13:02 | 2020-04-30T08:13:02 | 252,641,766 | 0 | 0 | null | 2020-04-28T10:30:59 | 2020-04-03T05:37:29 | Python | UTF-8 | Python | false | false | 958 | py |
height_num=8
width_num=8
# GUI
window_large=(1280,720)
title="オセロ-othello-"
fps=30
# 色
back_green=(0,128,0)
line_color=(0,0,0)
black_color=(0,0,0)
white_color=(255,255,255)
marker_color=(255,150,150)
cursor_color=(255,255,128)
GUIboard_origin=[5,5]
# GUIboard_height=700
# GUIboard_width=700
line_thick=2
grid_heigh... | [
"naokigsyoshida@gmail.com"
] | naokigsyoshida@gmail.com |
6bf5f02e4272837db4d6847fd2485a5f2b4c1f4d | 37e040b2c8a623e9f7a41536ebe46357f7308c75 | /OperacionesListas/ContieneCero.py | 5fcad7e8dff700eb8b89429d11c9121d7381ea8b | [] | no_license | BrayanSolanoF/EjerciciosPython | 2da235417371fc68f846a30cace55d71ca572945 | 08ded12fd3ee9faf9c87fa9d2dc594657aa17ae9 | refs/heads/master | 2020-03-26T23:11:48.392183 | 2018-10-25T05:05:42 | 2018-10-25T05:05:42 | 145,519,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | def contiene_cero(lista):
if isinstance (lista, list):
return contiene_cero_aux(lista)
else: return "Debe ingresar los valores en forma de lista"
def contiene_cero_aux(lista):
if lista==[]:
return False
elif lista[0]==0:
return True
else: return contiene_cero_aux(lista[1:])
| [
"36710897+BrayanSolanoF@users.noreply.github.com"
] | 36710897+BrayanSolanoF@users.noreply.github.com |
4e1550917c2d275277b78375762a1245d4252838 | 9fdfff9f22e4f53c47371f10bd840eb5589bdb84 | /neural_net_class.py | 783891fc855d8c8b268338ed86643f4d4418141b | [] | no_license | msmel01/first-neural-network | c1510104f7105e51bba6957a6a62a8a6a4b5f9da | 37dd83fba6f460631f301933751ede3d46c0bbb4 | refs/heads/main | 2023-07-26T17:50:06.527039 | 2021-09-13T09:54:45 | 2021-09-13T09:54:45 | 404,068,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,268 | py | import numpy as np
import scipy.special
import matplotlib.pyplot
class NeuralNet:
def __init__(self, input_nodes, hidden_nodes, output_nodes, learning_rate):
self.input_nodes = input_nodes
self.hidden_nodes = hidden_nodes
self.output_nodes = output_nodes
self.learning_rate = learnin... | [
"ms.elly17.01@gmail.com"
] | ms.elly17.01@gmail.com |
092dc211620d2caa00a36bfce2172e6581e041cb | 593db6ce42c7b6a7f7fa30f7c6ac061c0c13dea3 | /recursion1.py | 0ff5891e71f1f55f59ab3744b11963ae09596cce | [] | no_license | joetomjob/PythonProjects | a33459c098ec5e74f79a5aed89d6e537f0344e9c | 92b9fced23a3908e72ecdb83f2efecc54707bd8c | refs/heads/master | 2021-01-22T20:00:16.514410 | 2018-06-25T17:45:55 | 2018-06-25T17:45:55 | 85,272,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import turtle as t
def draw1(level,num):
t.speed(0)
t.width(level*3)
if level==0:
return
t.forward(num)
t.left(20)
draw1(level-1,num/1.25)
t.right(40)
draw1(level-1,num/1.25)
t.left(20)
t.back(num)
def drawkoch(order,size):
t.speed(0)
print(... | [
"noreply@github.com"
] | joetomjob.noreply@github.com |
c044ecd51625ba4130756577fc837d5e73f2adfd | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/ospf/invalidstatshist1h.py | e5836c6bdfa0a681b104ac17c3192e27038611f3 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,917 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
b5c1fc5c0b0a9206d4bcee04b9f8aed39fe65e04 | 8c3eb49bb103c239bd719a2f9ab282c645f240a2 | /herokubot.py | 9ef729b09a19c9535fffc68a1ee940a0e8c53982 | [
"MIT"
] | permissive | MikaYlitalo/gamefav-bot | 014a73da765b8094e49d7602915a7cfb83bce482 | d167a50e3798b1cfaaf8fb9521b276f61de394c9 | refs/heads/master | 2020-03-21T01:16:33.004324 | 2018-06-19T19:35:07 | 2018-06-19T19:59:06 | 137,933,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | import logging
import os
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
def start(bot, update):
update.effective_message.reply_text("Hi!")
def echo(bot, update):
update.effective_message.reply_text(update.effective_message.text)
def error(bot, update, error):
logger.warning(... | [
"mika.ylitalo@bitfactor.fi"
] | mika.ylitalo@bitfactor.fi |
e67c12e5d99b0eab27528388d44d661202817111 | 15d710d6de2033f95c9970f14c22aa0e4bab9647 | /supervised/preprocessing/preprocessing_utils.py | 2ee4c3efdb18ce473b28442df6650c345194372a | [
"MIT"
] | permissive | mmejdoubi/mljar-supervised | 3c9ea1c706e2b279502d57f68ba917c8c9de4890 | 59e7b5b1d005af98681335dbd323bb8b24a32075 | refs/heads/master | 2020-04-21T19:18:18.654469 | 2018-12-19T12:53:03 | 2018-12-19T12:53:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | import numpy as np
class PreprocessingUtilsException(Exception):
pass
class PreprocessingUtils(object):
CATEGORICAL = "categorical"
CONTINOUS = "continous"
DISCRETE = "discrete"
@staticmethod
def get_type(x):
if len(x.shape) > 1:
if x.shape[1] != 1:
raise... | [
"pplonski86@gmail.com"
] | pplonski86@gmail.com |
57b479bf29c823246b2c05fcabbd9394b11e4dbd | e0b6c287276f253936e6a758a109132e3a52f226 | /test-scikit.py | 5b436002eb7032f023bb7b7d192efe8344518311 | [] | no_license | meotomit/crawler01 | 2a1de97dfc08b52114b55ca9f980cbc924c39670 | 30dde04757b5750d84a4e7d8ef9c801337d7e6b4 | refs/heads/master | 2016-09-05T23:14:25.068356 | 2014-12-29T10:22:13 | 2014-12-29T10:22:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | import numpy as np
from sklearn.naive_bayes import MultinomialNB
x = np.array([[42, 25, 7, 56],
[10, 28, 45, 2],
[11, 25, 22, 4],
[33, 40, 8, 48],
[28, 32, 9, 60],
[8, 22, 30, 1]])
y = np.array(['Math', 'Comp', 'Comp', 'Math', 'Math', 'Comp'])
nb = ... | [
"kimxuanphuc@gmail.com"
] | kimxuanphuc@gmail.com |
02fb262b75b7de58af4b869892556e16c808e01e | fdcd1058df2e42ce9a6c7a38b76757997f53cb2a | /muted/system/cmd_say.py | 31d6ec251e2b21423c50c77712481ca4d2855a50 | [
"MIT"
] | permissive | LZJ861124/mute | afb12d516ae1a4106079b51999dd0aa484618b07 | f278d9cd2e9c1a4551d5ecdffde919d22ab2f6bb | refs/heads/master | 2020-05-26T09:41:57.238217 | 2019-05-23T08:19:16 | 2019-05-23T08:19:16 | 188,191,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py |
from __future__ import annotations
from typing import Type
from component.name import Name
from component.role import Role
from event.event import Event
from message.message import Message
from system.channel import Channel
from logcat.logcat import LogCat
class CmdSay:
@LogCat.log_func
def __init__(self,... | [
"ywchiao@gmail.com"
] | ywchiao@gmail.com |
bc464d6e01d89624b1213e2393346c654b1ad9c3 | 18ab5f83efebba9777e143b6ade78ab5d27613dd | /xsertion/test_topology.py | e5247df2ffe184b5e2b62feff6a3c95f2b1fe617 | [
"MIT"
] | permissive | karazijal/xsertion | e50370faac44dca9cd2c01cdb15ae278ca9d3566 | 102c1a4f07b049647064a968257d56b00a064d6c | refs/heads/master | 2018-10-31T17:52:09.649741 | 2018-01-25T20:55:32 | 2018-01-25T20:55:32 | 118,465,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,421 | py | import unittest
import warnings
from xsertion.topology import *
from xsertion.layers import parse_model_description, cf
from xsertion.xcons import XSpotConFactory
from xsertion.test_layers import desc
from keras.layers import Input, MaxPooling2D, Convolution2D, Activation, merge, Dense, Flatten, Lambda
from keras.model... | [
"laurynaskarazija@the-machine.home"
] | laurynaskarazija@the-machine.home |
0f72c3479ffcec8ce8d8ee1f96c308e3d65f8af1 | ef79301a81cbbfc96c16fc4fa763e75ff0227f94 | /bin/getSN_covmat_WF.py | 2d68642dc80186e37ce38991e90475da8f52cdc8 | [] | no_license | honamnguyen/DM | 4fe834efe85600fd13390593dde258cff6c13557 | 6934a3727eff449937a072a3fbaa782acf730c8c | refs/heads/master | 2021-09-18T17:19:03.925496 | 2018-07-17T13:57:34 | 2018-07-17T13:57:34 | 93,272,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,335 | py | '''
Get SNR for the Table using Mat's covariance matrix
Note:
- Have an option to use cov mat with bid width of dl=300
- Have an option to use only the diagonal elements
- Scale cov mat with the right fsky via the relation: cov~1/fsky
'''
import numpy as np
from sn_forecast import LensingForecast
import matplotlib.pypl... | [
"dialgavn@gmail.com"
] | dialgavn@gmail.com |
8dfc695d80f737fe51ee899eb71e654c48039fca | a2b0b0fd229e19131ad55a0cab2f6293fd31910e | /TestON/tests/USECASE/SegmentRouting/SRClusterRestart/dependencies/SRClusterRestartFuncs.py | f36719ff712b0ab1319302dd7de32c86bf8db1a4 | [] | no_license | yoooou/OnosSystemTest | f2920f181f9982fde16bc3e88e5b029aa7e8c2a0 | a4062a36cb386d0de4278159acf4d3acdbbc77b5 | refs/heads/master | 2020-05-14T20:30:14.886888 | 2019-03-21T22:25:13 | 2019-03-21T22:25:13 | 181,946,517 | 1 | 0 | null | 2019-04-17T18:23:16 | 2019-04-17T18:23:16 | null | UTF-8 | Python | false | false | 3,135 | py | """
Copyright 2017 Open Networking Foundation ( ONF )
Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>,
the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>,
or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg>
TestO... | [
"devin@opennetworking.org"
] | devin@opennetworking.org |
00cbc39ea07375e29a9d25942b593f5d593b5461 | f0bd0b9a3bef4c2b584318caa7eacca1505bcc1e | /database.py | 4dfcd446c664192bd53f0a6012ce34201870457f | [] | no_license | richardsavala2/web_build | 2e4d07ad1b7272a051f711f84bbc66522e500ea3 | a4158a65cfcd4a02352ab52a33c73ec2c14836b8 | refs/heads/main | 2023-01-14T06:33:05.312903 | 2020-11-24T10:16:28 | 2020-11-24T10:16:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import pymongo
class Database(object):
URI = "mongodb://127.0.0.1:27017"
DATABASE = None
@staticmethod
def initialize():
client = pymongo.MongoClient(Database.URI)
Database.DATABASE = client['fullstack']
@staticmethod
def insert(collection, data):
Database.DATABASE[co... | [
"noreply@github.com"
] | richardsavala2.noreply@github.com |
87c425297ee0f88d7daca1b9febdf1f89e65da92 | 3529ecaa44a53172094ba13498097057c8972723 | /Questiondir/696.count-binary-substrings/696.count-binary-substrings_123598239.py | 74f334383e8c7d8ab23645fa15bf402b2364784a | [] | no_license | cczhong11/Leetcode-contest-code-downloader | 0681f0f8c9e8edd5371fd8d0a1d37dcc368566b6 | db64a67869aae4f0e55e78b65a7e04f5bc2e671c | refs/heads/master | 2021-09-07T15:36:38.892742 | 2018-02-25T04:15:17 | 2018-02-25T04:15:17 | 118,612,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | class Solution(object):
def countBinarySubstrings(self, s):
"""
:type s: str
:rtype: int
"""
if not s:
return 0
leftLength = [1]*len(s)
rightLength = [1]*len(s)
for i in range(1, len(s)):
if s[i] == s[i-1]:
leftL... | [
"tczhong24@gmail.com"
] | tczhong24@gmail.com |
05e57f453eed16d82ace8dc8d2f4cf205f2daafe | 53a651e7fd8d3c3ff90ae007f07df718688c1034 | /src/encoded/types/cart.py | cd2bc6e4801b0b2021fba8ea130d82c25c3e2373 | [
"MIT"
] | permissive | procha2/regulome-encoded | d2dde67a5b2e3a589165f58d8502066ea7e3a6e8 | 423f0cc2c237bbfc04d6028b955f7491a7b18ba3 | refs/heads/master | 2023-08-13T20:07:39.035171 | 2018-10-30T19:14:23 | 2018-10-30T19:14:23 | 300,260,083 | 0 | 0 | MIT | 2020-10-01T11:48:07 | 2020-10-01T11:48:06 | null | UTF-8 | Python | false | false | 318 | py | from snovault import (
collection,
load_schema,
)
from .base import (
Item,
)
@collection(
name='carts',
properties={
'title': 'Cart',
'description': 'Listing of cart contents',
})
class Cart(Item):
item_type = 'cart'
schema = load_schema('encoded:schemas/cart.json')
| [
"caseylitton@gmail.com"
] | caseylitton@gmail.com |
571c7eaa8fb8e05d9da3dccf9d805b615ed1b565 | 205a31c4515f02d45da6eb846ce3c34220d210b4 | /ros_laptop/build/hector_slam/hector_map_tools/catkin_generated/pkg.installspace.context.pc.py | 6704bb78e32c1f54aeeb6a99e55926a95b08f1d4 | [] | no_license | xuanlc113/B01-1A | bf2bc5d42b14ca525d276d0248f40268e6b3d9f9 | b07a1962573f0104979904a53d9ab5cd412763a6 | refs/heads/master | 2023-04-03T03:02:28.706389 | 2021-04-18T15:38:58 | 2021-04-18T15:38:58 | 347,817,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "nav_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".sp... | [
"xuan.lc113@gmail.com"
] | xuan.lc113@gmail.com |
6ccb93f049e1ea71254fac76ac7ef5977ace21c4 | 425b68346e1fbd20ced43a4c1f3bc284d66538f4 | /adanet/core/evaluator.py | 78f6fdc92e1e4b157536cf104b51b5b952588825 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | todun/adanet | b29981f20203660091c122c1c0c7bc684749423c | 74106c51e0602bdd62b643f4d6c42a00142947bc | refs/heads/master | 2020-06-25T00:53:51.073322 | 2019-07-26T21:49:36 | 2019-07-26T22:16:26 | 199,146,094 | 1 | 0 | Apache-2.0 | 2019-07-27T09:46:57 | 2019-07-27T09:46:56 | null | UTF-8 | Python | false | false | 3,261 | py | """An AdaNet evaluator implementation in Tensorflow using a single graph.
Copyright 2018 The AdaNet 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
https://www.ap... | [
"weill@google.com"
] | weill@google.com |
c7bfd8a1db51a34b917578014b643d36a745a476 | 3011e024b5f31d6c747a2bd4a143bb6a0eeb1e1d | /chapter03/db_operation_demo/venv/Scripts/easy_install-script.py | 0eb38f841eaf8e215cee3d2d5d44bb0c06bec793 | [] | no_license | yingkun1/python-django | a3084460a83682f3e0848d5b40c881f93961ecc2 | 08c9ed3771eb245ee9ff66f67cf28730d2675bbe | refs/heads/master | 2022-12-11T12:33:20.788524 | 2019-06-12T09:30:59 | 2019-06-12T09:30:59 | 189,977,625 | 1 | 0 | null | 2022-11-22T02:57:01 | 2019-06-03T09:43:30 | Python | UTF-8 | Python | false | false | 456 | py | #!E:\python-django\chapter03\db_operation_demo\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"925712087@qq.com"
] | 925712087@qq.com |
4611ee89536bf26429503bab2496e24be57c3b2c | ef2f184e916a0648da780b182a8f50fd0b112fef | /RedBlackTree/testRBT.py | 5e1622d8034a0f18187531d5273c2c5aaed92fde | [] | no_license | hseifu/Algorithms | 62826feac199faef83f6bc75eb8cacd23bc37945 | 8cd743558e07cd6a5f83902c29ff4b70c04da3fc | refs/heads/master | 2021-04-15T08:23:03.141233 | 2018-04-22T12:39:16 | 2018-04-22T12:39:16 | 126,475,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #! /usr/bin/env python3
import rbt
def main():
tree = rbt.RedBlackTree()
tree.insert(14)
tree.insert(42)
tree.insert(35)
tree.insert(7)
tree.insert(26)
tree.insert(17)
rbt.preorder(tree.root)
main() | [
"henok@Henoks-Air.wlan.jacobs-university.de"
] | henok@Henoks-Air.wlan.jacobs-university.de |
d76f406994c322a376f5db59e18468c2dd81312c | 37fb18026c4ede366534a6bc41ebb328beda69d1 | /WorldRecord.py | b3bddec774441e6c0e15cfa654e674eb64acc550 | [] | no_license | Nickruti/CodeChef_December | c6ac96f123702c6aa884aa4b172c56eb25f11509 | 9b014e1cc86d614730ec2e0301ba0d077c489ce0 | refs/heads/main | 2023-03-31T23:10:57.961768 | 2021-04-05T10:45:05 | 2021-04-05T10:45:05 | 318,812,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | '''
-----------APRIL CHALLANGES------------
Problem 2 - https://www.codechef.com/APRIL21C/problems/BOLT
Statement - Given Chef's max speed v during practice and the factors k1,k2,k3, find whether he will be able to create a new world record,
i.e, can he complete 100 m in less than 9.58 seconds?
'''
for _ in range(in... | [
"noreply@github.com"
] | Nickruti.noreply@github.com |
c33d8205ef0aa356690aa2a6624b92ff140449f0 | 175ef0c26b3770697099917803a00a21c1b005db | /lab1/production.py | 2e46621c614cb74f447706460ee0a985e2686c9a | [] | no_license | griffinjoe/py3mitAI | a172512eaa61fee4851899fea6dd37124512af7d | 71e2cd8271dd9cba61da1c14f3c9dc80fe7f7220 | refs/heads/master | 2021-09-23T00:13:54.421559 | 2018-09-19T00:58:30 | 2018-09-19T00:58:30 | 122,155,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,583 | py | import re
from utils import *
try:
set()
except NameError:
from sets import Set as set, ImmutableSet as frozenset
try:
sorted([])
except NameError:
def sorted(lst):
new_lst = list(lst)
new_lst.sort()
return new_lst
### We've tried to keep the functions you will need for
### ba... | [
"joecg@mit.edu"
] | joecg@mit.edu |
c1bfce77891652042d3ca5e2b2d9d3acd5255469 | da5fe73754517916f159497498c015908966ecd7 | /isfm.py | b62faa05132f24633a2b447bc68bac151f9d0bd1 | [] | no_license | TuskAW/sfm-mvs | aa0ab97ddd953e3177bdc0266d649365df188ad7 | 25b2ab184abe331ad0d84a393b39a1ddfc01d24a | refs/heads/master | 2023-01-21T11:39:20.834644 | 2020-11-22T17:24:00 | 2020-11-22T17:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,673 | py | import cv2
import numpy as np
import os
from scipy.optimize import least_squares
import copy
import open3d as o3d
from tqdm import tqdm
import matplotlib.pyplot as plt
def img_downscale(img, downscale):
downscale = int(downscale/2)
i = 1
while(i <= downscale):
img = cv2.pyrDown(img)
i = i + 1
return img
cv2... | [
"arihant.gaur@gmail.com"
] | arihant.gaur@gmail.com |
16ddceaec23fd6336f6cedccdb2aebf64798ed80 | 2f330fc050de11676ab46b963b7878882e9b6614 | /memsource_cli/models/page_dto_web_hook_dto.py | c508f9487b1dcee988c8b5bd9368135c2fd969fa | [
"Apache-2.0"
] | permissive | zerodayz/memsource-cli-client | 609f48c18a2b6daaa639d4cb8a61da43763b5143 | c2574f1467539a49e6637c874e88d75c7ef789b3 | refs/heads/master | 2020-08-01T12:43:06.497982 | 2019-09-30T11:14:13 | 2019-09-30T11:14:13 | 210,999,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,386 | py | # coding: utf-8
"""
Memsource REST API
Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis... | [
"cerninr@gmail.com"
] | cerninr@gmail.com |
92d1bf6985a2e1c8234fcedb30626aebc41f5f35 | 5b9f9b4ea1494943e6f7f842df55909599ed1304 | /python/onshape_client/oas/models/card.py | 2bc04cfc5daeba4a0aa5f7f2068893f0356d36fb | [] | no_license | jenniferyoung02/onshape-clients | f50534f033428027515b7fc0b801b1caab4d0aec | 8ee31a17d7af32f105b851e45f69fd4a3006e1ba | refs/heads/master | 2020-09-07T06:44:37.682545 | 2019-10-08T18:52:06 | 2019-10-08T18:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,798 | py | # coding: utf-8
"""
Onshape REST API
The Onshape REST API consumed by all clients. # noqa: E501
The version of the OpenAPI document: 1.104
Contact: api-support@onshape.zendesk.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Card(ob... | [
"ekeller@onshape.com"
] | ekeller@onshape.com |
9c7e04872bb096efa9d08c8950a8f65329b95407 | eb9a034caf787c75cdce45b06c8b04a1a44762fa | /Flask web/hello.py | f426646b169d86632afc18168733fcc892d75939 | [] | no_license | lizhengxiang/python | 38cdb37b6504be07034ea96de06b219827244986 | 1cf7ede438ae74542062778f815a02eb42c67530 | refs/heads/master | 2021-01-10T18:30:58.951671 | 2015-07-11T12:05:09 | 2015-07-11T12:05:09 | 34,398,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,087 | py | from flask import Flask, render_template, session, url_for, redirect, flash
from flask.ext.bootstrap import Bootstrap
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.sqlalchemy import SQLAlchemy
#from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.wtf import Form
from flask.ext.mail import Mail
from... | [
"1065482100@qq.com"
] | 1065482100@qq.com |
11bdfbe141524cc597b00398c0e83a11f79ed8d3 | fd7863c9f2d1d3ede7a91d50419095224ab4598d | /torinometeo/core/templatetags/core_tags.py | fb03a9fc6bb21c1e2752c1953e5a3ff7b939d914 | [] | no_license | TorinoMeteo/tm-website | 9b80344d83ef2aa7c4c820f2cea093fdaa9c77fb | a6becc62eaf5c96e146431631c0d081600e7c5d3 | refs/heads/master | 2023-08-21T14:46:35.825982 | 2023-08-09T07:25:07 | 2023-08-09T07:25:07 | 31,906,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from django import template
from django.contrib.sites.shortcuts import get_current_site
from sorl.thumbnail.templatetags.thumbnail import ThumbnailNode
register = template.Library()
@register.filter()
def strip_img(html):
import re
TAG_RE = re.compile(r'<img.+?/>')
return TAG_RE.sub('', html)
@register... | [
"abidibo@gmail.com"
] | abidibo@gmail.com |
2e790eddb7e4e03c1d35f0ce13e45eca4d59f04c | 99697559d046cdd04dd9068bd518e4da4177aaa2 | /Empty/M797_All_Paths_From_Source_to_Target.py | 1cf154c64c0e3ba9c99528c0ca04d71a5727b4b7 | [] | no_license | Azurisky/Leetcode | 3e3621ef15f2774cfdfac8c3018e2e4701760c3b | 8fa215fb0d5b2e8f6a863756c874d0bdb2cffa04 | refs/heads/master | 2020-03-18T22:46:35.780864 | 2018-10-07T05:45:30 | 2018-10-07T05:45:30 | 135,364,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | class Solution:
def allPathsSourceTarget(self, graph):
"""
:type graph: List[List[int]]
:rtype: List[List[int]]
""" | [
"andrew0704us@gmail.com"
] | andrew0704us@gmail.com |
3c973279f57807df3ecc7edd647ec31faf781bd3 | fccea19b267a3701c8939be1fe271256435fbb59 | /weather-travel-app/app.py | 08beab1526ac8077dcdff2adc4edf3eaa854271d | [] | no_license | xiestar0310/SOHS-Preparation | 41d02ffe20ff8e75c01d6e1daf882cf77c86db17 | 9d7951d1aa06a97fdd714b26afa54a7d4dae16f2 | refs/heads/master | 2022-12-11T08:16:23.800616 | 2020-08-30T07:06:46 | 2020-08-30T07:06:46 | 291,128,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,106 | py | from flask import Flask, render_template, url_for, request, redirect
import gspread, json, requests
from oauth2client.service_account import ServiceAccountCredentials
import weatherapi as w
from datetime import datetime
SCOPE = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive']
CREDENTI... | [
"noreply@github.com"
] | xiestar0310.noreply@github.com |
16f57a409c1e5cda42d3b28ed1b6df2bd18924fa | 2a7a8e21e75d9721339261946ff3a29a14f547e8 | /BlenderRigForUnity/F-curves Saver/BasicHuma.py | b67c08708c8e193b96121d4eed5c1b6928817f88 | [] | no_license | Hengle/Unity-3 | a2fd92bd47ddaf552bce8000ab98e41314cec2f6 | 1296f62adbbb480621400cfd31a93e6594ee96ba | refs/heads/master | 2021-09-25T04:23:44.381200 | 2018-10-18T06:42:47 | 2018-10-18T06:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,850 | py | import bpy
import mathutils as m
import math
import pickle
class Humanoid():
def __init__(self, armature, load = False, path = ''):
self.path = path
self.armature = armature
self.footL = self.armature.pose.bones['Foot Control L']
self.footR = self.armature.pose.bones['Foot Control R']
self.handL =... | [
"noreply@github.com"
] | Hengle.noreply@github.com |
d2296d7676651e8e0b3c8042b94248e1dd922d48 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_138/1169.py | f23ae477662433aef243097ffc171b1263c142f0 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | import numpy as np
import sys
def evaluateLeadingTestCaseAndReturnAnswer():
global lines
N = int(lines.pop(0))
NaomiSetWar = sorted(map(lambda x: float(x), lines.pop(0).split(' ')))
KenSetWar = sorted(map(lambda x: float(x), lines.pop(0).split(' ')))
counterWar = 0
NaomiSetDeceitfulW... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
457a03e5616b6afc1955a6edd20e6494456c92a1 | d56401260a04f4911c13b90331218cd8113a089a | /chat/services.py | 9fa9fa3017a0e61ed8347c2c25152f3ee4ccfd7b | [] | no_license | AndriiNartov/api_chat_test | c2bce893344bb6a351292d5c1d29f114d5b6f819 | b86c9517ce7f5e9f71152ef77a524578dd8d5dab | refs/heads/main | 2023-07-17T10:12:14.491309 | 2021-08-23T14:08:47 | 2021-08-23T14:08:47 | 399,104,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | from django.core.paginator import Paginator
from .models import Message
def make_custom_paginated_queryset(page_number, paginate_by):
'''
According to test task we need to implement pagination, but instead of query params
user should type page_number in URL path (e.g. /api/messages/list/0). For this purp... | [
"nartov1912@gmail.com"
] | nartov1912@gmail.com |
77b184c126cf142227ee6633974b28048ddf6a89 | 55f3cdd4bbd139e52d6e3679fc3bf3d83f4bc22f | /audio_interaction.py | 37f69e29d49ae63f17a9367ffdd6a6eddd557e38 | [] | no_license | kaarias/jibo_interaction | f7aed22c45242b2f453a859abfdc9e945e6336c6 | b4bc64eed2193fcab1909cd367676c8181b40fb9 | refs/heads/master | 2021-05-09T08:13:18.230499 | 2018-02-07T22:22:26 | 2018-02-07T22:22:26 | 119,382,983 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,711 | py | from fysom import *
from random import *
from jibo_msgs.msg import JiboAction
from jibo_msgs.msg import JiboVec3
from std_msgs.msg import Header # standard ROS msg header
import os
import sys
import time
import rospy
import pyaudio
import keyboard
import recorder
import datetime
import sys, select
import question_se... | [
"noreply@github.com"
] | kaarias.noreply@github.com |
08391150ff3347f886927a1c540ca8f597d26963 | afa2863bf2c760cea02d34612ec7c291df17cbb0 | /boj/11055.py | 4e4be6f2f69a76cd06df9a100d3c80777c7c8f45 | [] | no_license | jinho9610/py_algo | 7f6fd46548cf8282839782dbae71112480ddf753 | 19d64877e6fdd5b8dd51b32a30b10f9dc3faad4b | refs/heads/master | 2023-02-13T02:46:52.672272 | 2021-01-10T07:40:46 | 2021-01-10T07:40:46 | 324,091,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | n = int(input())
arr = list(map(int, input().split()))
dp = [1]*n
dp[0] = arr[0]
for i in range(1, n):
dp[i] = arr[i]
for j in range(i):
if arr[j] < arr[i]:
dp[i] = max(dp[j]+arr[i], dp[i])
print(max(dp))
| [
"kict4329@naver.com"
] | kict4329@naver.com |
d8b1e45e3e2658cfbbb6342a0e5fa994d471b9aa | a2ce28a59d76516592ff6be8788e2f7406388aff | /stats/urls.py | 071b31a9b3ea676132c6281f4660b6f819c79597 | [] | no_license | cris12gm/geno5mc | c4ab46a630b3cc93b5951f2bc0d6f8ff9a31727a | d6a404bb1c0519ada43e16b2b9317d7faa42d6e9 | refs/heads/master | 2023-01-11T07:36:51.068053 | 2020-11-12T10:21:15 | 2020-11-12T10:21:15 | 229,311,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.contrib import admin
from django.urls import path
from django.conf.urls import include,url
from django.conf.urls.static import static
from django.conf import settings
from .views import stats
urlpatterns = [
url('',stats.as_view(), name='stats'),
]+ static(settings.MEDIA_URL, document_ro... | [
"cris12gm@gmail.com"
] | cris12gm@gmail.com |
a4c98aaaef0c88024c048111c781ba6424cc35d7 | 2e07f6b94fc0f7a5cf55002040151b8745fd843d | /privious_learning_code/OS_Handling/os.tempnam() Method.py | d524bb204572241ac441fecbb617774578dd3cfc | [] | no_license | LalithK90/LearningPython | a7e6404e900b7d66c663acc72cde3e3655d54ac7 | ece38fdac88da66c8b76fe710b3df7d8635a3590 | refs/heads/master | 2023-06-09T22:32:16.674821 | 2021-06-27T18:55:00 | 2021-06-27T18:55:00 | 169,513,150 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 572 | py |
# Description
#
# The method tempnam() returns a unique path name that is reasonable for creating a temporary file.
# Syntax
#
# Following is the syntax for tempnam() method −
#
# os.tempnam(dir, prefix)
#
# Parameters
#
# dir − This is the dir where the temporary filename will be created.
#
# prefix − This is the pre... | [
"asakahatapitiya@gmail.com"
] | asakahatapitiya@gmail.com |
4503c6e5a2a1c26631e1dea309c18cc82509616c | 489c282b385bf93f44f234718b7d64005223ba1a | /day10/gevent协程/gevent配置socket高并发/socket_并发10客户端.py | e65b7b5df22a7c475a68a6ce55dfa84f0aae9095 | [] | no_license | tiaotiaodan/python | d2fdf892c568c0d8a446dd0954d4346102ac031b | add4ccbba65100eb1368fbd20ed46772c2a50888 | refs/heads/master | 2020-06-12T07:09:20.747940 | 2020-03-03T02:37:39 | 2020-03-03T02:37:39 | 194,227,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | #!/usr/bin/env python
# _*_ coding: utf-8 _*_
# Author:shichao
# File: .py
import socket
import threading
def sock_conn():
client = socket.socket()
client.connect(("localhost",8001))
count = 0
while True:
#msg = input(">>:").strip()
#if len(msg) == 0:continue
client.send( ("h... | [
"shichao@schxck.com"
] | shichao@schxck.com |
3fe5b85937788b149468de151679816b20e6d355 | ba0a7a331dec80b37dec59908a973f5d52a2efac | /tutorial/snipets/serializers.py | db2feb56c7eef3d9cf8bcac2993d5a802c1ec088 | [] | no_license | alexahn917/MAVI | a7e1a8ad254a7bebb5a47b3dce226b1e31ab7996 | 98424b3c80276b5f6015ce55d2a367c98b1a96bf | refs/heads/master | 2021-01-19T13:11:32.678808 | 2017-11-27T05:32:07 | 2017-11-27T05:32:07 | 82,367,891 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from rest_framework import serializers
from snipets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES
class SnippetSerializer(serializers.ModelSerializer):
class Meta:
model = Snippet
fields = ('id', 'title', 'code', 'linenos', 'language', 'style')
def create(self, validated_data):
... | [
"noreply@github.com"
] | alexahn917.noreply@github.com |
22cea365a20c521b367d23e839e3a99f3e4c8ddf | 6f78d3d702fd99751ac9c672ad26e73c6ce70c38 | /Python Estudos/13salario.PY | 9ad34d63529b54adc9cdbe8d85d24cd5a58d1cc6 | [] | no_license | frazoni2020/pythonexercicios | a977a5e740feed3b8e1460086623fed91aea5068 | 9096756e786da714310a1ab5ba2011d79d894628 | refs/heads/main | 2023-02-23T11:20:18.964443 | 2021-01-13T02:42:28 | 2021-01-13T02:42:28 | 329,171,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from datetime import date
atual = date.today().year
SalarioBruto = float(input('Qual seu salário: R$ '))
NumMeses = int(input(f'quantos meses trabalhados em {atual}: '))
PrimParcela = (NumMeses/12) * SalarioBruto/2
print(f'O valor da primeira parcela é R${PrimParcela}') | [
"noreply@github.com"
] | frazoni2020.noreply@github.com |
42e3bab964ade496cdf233fb3d15035714911e4e | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnexquisit.py | a74019d7bf4aac4f29e8dd0df7212f110070044c | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,760 | py | ii = [('BentJDO2.py', 3), ('CookGHP3.py', 6), ('RogePAV2.py', 9), ('GodwWSL2.py', 19), ('RogePAV.py', 11), ('FerrSDO3.py', 1), ('WilbRLW.py', 2), ('WilbRLW4.py', 2), ('ProuWCM.py', 1), ('CookGHP.py', 2), ('ShawHDE.py', 3), ('LeakWTI2.py', 1), ('KembFJ1.py', 13), ('WilbRLW5.py', 3), ('PettTHE.py', 1), ('TennAP.py', 3), ... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
a67b02cf8f3623b1a363dd53fb8c9fb03d2ca392 | 2c315cf6df763517a16714b7a495b6e526b69d6c | /NUTELLA/nutella_stop/settings.py | 85f89b7617bc5b8d0f053cec52cbd0981c2798c0 | [] | no_license | Maximedu13/plateforme-pour-amateurs-de-Nutella | cf075be785db15ad9b45b092dbd26ebdb30f0ab1 | 08cbbc2bb5460fc94767cdae7daa84032a8d484a | refs/heads/master | 2022-12-10T21:15:02.606565 | 2019-07-20T09:41:36 | 2019-07-20T09:41:36 | 189,844,421 | 0 | 0 | null | 2022-12-08T05:19:14 | 2019-06-02T12:35:42 | CSS | UTF-8 | Python | false | false | 4,224 | py | """
Django settings for nutella_stop project.
Generated by 'django-admin startproject' using Django 2.1.7.
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/
"""
import ... | [
"maxime.j.pro@free.fr"
] | maxime.j.pro@free.fr |
4bf2b210ee9df2a9d021ba1846e9c97a83405f78 | 47a3f05f23a2324d1b94da8fc7dcc74e8200718c | /app.py | 67076eab52ef43ffa6a91d71d08414ad7c7e81eb | [] | no_license | chaitaleeghare16/assignment | 2ad09eb2016882de91b380d2e8aa357877f20c2d | d1b2c7b5caafa3b517022d452c9acbeda72356e3 | refs/heads/master | 2020-11-24T13:26:58.733899 | 2019-12-17T05:12:22 | 2019-12-17T05:12:22 | 228,166,735 | 0 | 0 | null | 2019-12-15T10:33:45 | 2019-12-15T10:33:44 | null | UTF-8 | Python | false | false | 2,477 | py | from flask import Flask
from flask import render_template
from mistletoe import Document, HTMLRenderer
import os
os.getcwd()
path = '/Users/chaitalee/Desktop/cloudyuga_assignment/assignment/'
out_path = '/Users/chaitalee/Desktop/cloudyuga_assignment/assignment/templates/'
def convert_md_to_html():
print("test... | [
"chaitaleeghare16@gmail.com"
] | chaitaleeghare16@gmail.com |
0a801ca8f8592fe35397820052924fe54a417098 | 48b79c2d813cc89c227e36b83a5508acdf9657bd | /rest-api/flask_campanha/campanha_rest.py | 2c8e047b185a1263328ccf5a428486141fc6fcb5 | [] | no_license | felipe-basina/python | b1c8b980ac201241f06e79c0f5f05ee2528b9960 | bb739f9b57b1947010f831826fd7c65b2a3b85cf | refs/heads/master | 2022-09-23T20:59:34.080521 | 2020-12-19T16:37:21 | 2020-12-19T16:37:21 | 101,874,996 | 1 | 0 | null | 2022-09-16T17:42:00 | 2017-08-30T11:49:08 | Python | UTF-8 | Python | false | false | 4,102 | py | from flask import Flask, jsonify, request, g
from connect_db import *
from cliente_rest import *
from aux_modulos import *
import datetime
import traceback
app = Flask(__name__)
app.register_blueprint(cliente_rest, url_prefix='/cliente')
@app.route("/all")
def get_all():
try:
db = CampanhaDb()
c... | [
"felipe.nascimento.ecommet@gmail.com"
] | felipe.nascimento.ecommet@gmail.com |
6fc85fdf8a0c446b04f82c409090067a837a03e5 | d86f5f14bf5a1fb1c1fc65f791d5a914f1d5045f | /app/migrations/0006_auto__add_unique_promotiongroup_promotion_user.py | 62d672403b366b591c1f69dfe0ba2a1f05658621 | [] | no_license | ptnexus/socialretail | e60031ea9dd192c916c3045d6417076a7640d760 | 9b6b525b1e9f67b875928562e5ca973c477e83f0 | refs/heads/master | 2020-05-07T08:27:08.221326 | 2012-07-19T21:27:31 | 2012-07-19T21:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,116 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding unique constraint on 'PromotionGroup', fields ['promotion', 'user']
db.create_unique('app_promotion... | [
"root@ubuntuserver.(none)"
] | root@ubuntuserver.(none) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.