blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c413ee58d6ded08e8b6880d77f64aa9f712e6da9 | 4d72dbd02dbde3fc957fd14dab85da9dfe4b25c3 | /71.py | 09ef0026d1c44f0fb3514f0355db49c8bc6832a1 | [] | no_license | lienordni/ProjectEuler | ff01a17d4dee780823db587240791d716796d8ef | 199d5166b098e844d467d2aa18c11072ec7b0008 | refs/heads/master | 2019-07-09T17:39:55.958354 | 2017-09-28T06:59:01 | 2017-09-28T06:59:01 | 62,440,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | a,b=2,5
c,d=3,7
while True:
a+=c
b+=d
print(a,b)
if(b>10**6):
break | [
"lienordni@gmail.com"
] | lienordni@gmail.com |
ed5d08d0ce27daf97966703071d8127f2d30a69a | 9b7f4adf6a6e112e46fc604be29d26f4aa2272a6 | /exercism/python/robot-name/robot_name.py | 3d56c316f01c5806829b3e6f6eeb59de0399b512 | [] | no_license | Jivelien/Experimentation | 46b29aa3519dcbbb8e70e130988e631ad4a4248a | 5ad5c053f178a097ad8087c82f5d9eb98633affc | refs/heads/master | 2023-02-01T10:55:49.251379 | 2020-12-19T10:32:43 | 2020-12-19T10:32:43 | 287,028,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | from string import ascii_uppercase
import random
robot_name_list=[]
class Robot(object):
name=''
def generate_name(self):
return random.choice(ascii_uppercase)+random.choice(ascii_uppercase)+str(random.randint(0,9))+str(random.randint(0,9))+str(random.randint(0,9))
def set_name(self):
newN... | [
"julien.Delannoy@hotmail.com"
] | julien.Delannoy@hotmail.com |
1d60c69777328c402ca14a676bc124b064771ff4 | 87edb77d3557fe84bf3307be850df62eb00e1e19 | /сбор.py | 72b0fa630458ff32d7d09483fd7499e303b3e03b | [] | no_license | Artizi/game | 218b7bcf48e1c6ef42f6136e170dc381fc9f6878 | f45d724946806a66ebdad2e8b4951219f1b045ca | refs/heads/master | 2020-04-27T07:43:21.787745 | 2019-03-06T13:24:33 | 2019-03-06T13:24:33 | 174,145,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,570 | py | import pygame
import sys
import random
'''Куча переменных для игры'''
wightlap, heightlap = 900, 500
window = pygame.display.set_mode((900, 500))
wightlap, heightlap = 1000, 500
pygame.display.set_caption("Догонялки")
screen = pygame.Surface((1000, 500))
fon = pygame.image.load('фон.jpg')
zadergka_of_cactus = 0
x_fon ... | [
"Lozowoi.ilia@yandex.ru"
] | Lozowoi.ilia@yandex.ru |
9441d5f4512b720830b0c5f564c351ba598e3212 | a920034b2558ec5e91de22d82a6d86fb3f6f561f | /greedy&sort/10162.py | ae00aa05875d3ff0bdc2c88656088434f099e97e | [] | no_license | ny2060/Python_Algorithm | 7cef912d063bb5363bc42fd685a51649e3c56da6 | f9c01707ab45ede314cb003c5785660f706685a3 | refs/heads/master | 2023-08-14T18:21:15.881668 | 2021-10-11T14:28:48 | 2021-10-11T14:28:48 | 404,254,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | import sys
food=int(sys.stdin.readline())
time=[300,60,10]
time=sorted(time,reverse=True)#내림차순으로 정렬
if food%time[-1] !=0:
print(-1)
else:
for i in time:
print('%d' %(food//i))
if food >=i:
food -= i
| [
"dpswpfskdud@naver.com"
] | dpswpfskdud@naver.com |
08827c44467d766274cb752cc3a4ed43079ce1dd | a5cd523e1d6f0ea4bbdbe83e72a2282ad060ea59 | /main.py | e27cac4617d9069174da6a1b0eef285cff71b0c1 | [] | no_license | Jumabek/iris_segmentation | b6750065d4fef2ec7c2416d2a9415f30717d1fc2 | 07a5bc4caacb23cd064c2eb00d8b4d0886e0e558 | refs/heads/master | 2023-07-14T06:07:02.792316 | 2021-08-17T12:03:15 | 2021-08-17T12:03:15 | 397,237,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | import numpy as np
from segment import segment
import cv2
from os.path import join
import os
def get_filenames(a_dir):
return [name for name in os.listdir(a_dir) if os.path.isfile(os.path.join(a_dir,name)) and (name.endswith(".bmp") or name.endswith(".jpg"))]
dataroot = '/media/bek/data/course/biometrics/iris_seg... | [
"jumabek4044@gmail.com"
] | jumabek4044@gmail.com |
ccb5ef41ce71402531dbf02200c024660b41f8d2 | 5cd9fdf4488d04a91647a60edece87b32c3802f4 | /CacheServer/wsgi.py | 58a4c91b1778bfddb86f3e29bcaa3ff64113a995 | [] | no_license | mavarick/CacheServer | f2562d9bb1660fbd3d4cd472ca8c33e601cd2e48 | 3dd36802af860af5a85b7685b907a38efeb9ebc2 | refs/heads/master | 2021-01-18T23:46:11.870893 | 2017-09-12T04:04:44 | 2017-09-12T04:04:44 | 52,849,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for CacheServer project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"xufeng.liu@iu-talents.com"
] | xufeng.liu@iu-talents.com |
21a6fdee4b85a6f5171668d21e20390dfabeb7de | 1c668c159a374b5fe30137d521ad303a2e1baa82 | /markov.py | 795fb495e25b82be1f6829ca9eb2e0ac31637cf0 | [
"MIT"
] | permissive | DmytroZinkevych/Markov-algorithm-interpreter | 1ec762befeb0d785c6cdcd2fc56b230e742854d9 | 7fb57cd192a85cc87723b12a1af5231aa654b1ba | refs/heads/master | 2020-06-12T19:20:18.675124 | 2017-07-27T09:44:50 | 2017-07-27T09:44:50 | 75,765,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,686 | py | # -*- coding: utf-8 -*-
def make_command (s):
if s=='>end':
return s
else:
if s.find("->") != -1:
i = s.find("->")
return (s[0:i], "->", s[i+2:])
elif s.find("=>") != -1:
i = s.find("=>")
return (s[0:i], "=>", s[i+2:])
... | [
"noreply@github.com"
] | noreply@github.com |
ee7b8e64c5c5aabbd39dc3e97b98f0c125bbe83b | ba7e577bc4d083d5bfb1b0622d6149d57537bc62 | /leetcode/217_contains_duplicate.py | 4a01bac85e2491ed77d936570df8ff60f59b2605 | [] | no_license | lvraikkonen/GoodCode | 5b59f51252384de38fd21f13d4afda1f4f8be94d | a0f270c1adce25be11df92877813037f2e73e28b | refs/heads/master | 2022-05-04T19:55:40.751420 | 2022-04-12T09:41:15 | 2022-04-12T09:41:15 | 71,972,790 | 0 | 0 | null | 2020-10-13T18:57:51 | 2016-10-26T06:24:11 | Java | UTF-8 | Python | false | false | 572 | py | from collections import Counter
def containsDuplicate_counter(nums):
"""
:type nums: List[int]
:rtype: bool
"""
n = Counter(nums)
for k, v in n.items():
if v > 1:
return True
return False
def containsDuplicate_set(nums):
"""
:type nums: List[int]
:rtype: boo... | [
"claus.lv@hotmail.com"
] | claus.lv@hotmail.com |
11b7d99630fe2f1c0911ddebb3ffc5a6a7c629b3 | 6ce149415b138af0606ff6aeb57511947c4fcc30 | /grailed/sel.py | 82e1f029ab16eef19304297c1e5408c224d4f9f2 | [] | no_license | ftaruc/projects | 9397dc7ae4aace9855ec8b3311e2a7f9decf20de | 286ce7d4e847882252e3b4e33cd5ebecd941812b | refs/heads/main | 2023-04-06T07:49:21.811294 | 2021-03-23T08:51:52 | 2021-03-23T08:51:52 | 327,396,230 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,345 | py | #Import packages
import pandas as pd
import numpy as np
#import matplotlib.pyplot as plt
import re
import time
import sys
import requests
import datefinder
import pickle
#selenium
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver import Chrome
from sele... | [
"ferdie@berkeley.edu"
] | ferdie@berkeley.edu |
e0aaddac3ec13c25540d435aa328944f249a9596 | 60105dfa9cd52412e86a1970b0873a47c058ca07 | /day1/files_ex1.py | 7d2050c21a6d506445c58dc66deef58798fb2eec | [
"Apache-2.0"
] | permissive | ktbyers/pynet-ons-feb19 | d6802ec01902169dffebe2b11fcd3a1ed9c42d3d | 5f02125f115fda2c26af87656b4f83d98cd2822c | refs/heads/master | 2020-04-19T20:43:31.754871 | 2019-02-25T20:47:40 | 2019-02-25T20:47:40 | 168,422,755 | 0 | 6 | Apache-2.0 | 2019-02-07T20:03:09 | 2019-01-30T22:05:35 | Python | UTF-8 | Python | false | false | 320 | py | #!/usr/bin/env python
# READ ####
f = open("my_file.txt")
my_content = f.read()
print(my_content)
# WRITE ####
print("\nWriting file.")
f = open("new_file.txt", "w")
f.write("whatever2\n")
f.close()
# APPEND ####
print("\nAppending file.")
with open("new_file.txt", "a") as f:
f.write("something else\n")
print()
| [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
9230922cc0d5d21762db9fa255247982efd79301 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/formatter/closingParenthesisInFromImportStatementWithNoHangingIndent.py | acd9400b7c7627d65aaecf625caff9ce653fb00c | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 52 | py | from foo import (bar,
baz
) | [
"mikhail.golubev@jetbrains.com"
] | mikhail.golubev@jetbrains.com |
b55f0f05637279792f57cb0b017a7dc283bf8676 | 30dbdd771059f77d9c1b3595fb6f931f5db280ef | /EDU/S4F/Farmbot_GeneralAP.v6.0.1/test.py | af0b30ac314883c0517b2f6e48c983e476bb8081 | [
"MIT"
] | permissive | FBTUG/FBTUG_MiniFarmBot | 9b5efad24983285bfee0a3eda742686aafc2f164 | 96bb6f6b88961b000783deb44dd644a7e1ceb623 | refs/heads/master | 2023-01-08T18:58:56.336336 | 2022-12-26T09:20:58 | 2022-12-26T09:20:58 | 123,499,756 | 7 | 3 | MIT | 2022-11-22T01:58:15 | 2018-03-01T22:29:28 | C++ | UTF-8 | Python | false | false | 729 | py | from class_ConfigSetting import*
ItemList=[]
ItemList.append("thrshd_gray")
ItemList.append("thrshd_size")
ItemList.append("Scan_X (Beg,Interval,Amount)")
ItemList.append("Scan_Y (Beg,Interval,Amount)")
ItemList.append("limit Maximum (X,Y)")
defaultValueList=[]
defaultValueList.append(128)
defaultValueList.append(20)... | [
"hou.joe@gmail.com"
] | hou.joe@gmail.com |
1ace3517f43d7d290a8fc589cebe294ed00f6bc2 | bdecf1bba1f0554f038b7d7ecf09337c2db59650 | /HDL_gen/ssd_wrapper_gen.py | 33e7183626ea4d9f573027bddf63218f25ebd8fd | [] | no_license | beppe712/honours-project | ace564b253e65fbd94156e9a0429e5377b5246ce | f7e1f90d0ab5a4638d771e24e7774137ecfd8d06 | refs/heads/master | 2020-03-09T03:54:30.120696 | 2018-04-13T16:00:42 | 2018-04-13T16:00:42 | 128,575,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | from hdl_utils import *
def gen_ssd_wrapper(r,outpath="ssd_wrapper.sv"):
outfile = open(outpath,'w+')
outfile.write(gen_heading())
outfile.write(gen_description("ssd_wrapper","Two Seven Segment Display Wrapper","ssd_driver"))
module_io = """
module ssd_wrapper(
input CLK,
input DONE,
input [{}:0] OUT,... | [
"beppe712@hotmail.it"
] | beppe712@hotmail.it |
44fd1784c32385a2cc9c411830c62f991b365432 | da3d79607c7787e1d8036c291615c7996d262c1c | /AOC_20/day_14/bitmask_decoder.py | ff7b8c32475cf2fb7966f4b00ecfe1658e4827e4 | [] | no_license | Price47/advent-of-code | 2b3512e2134cb958af7e0425643ad39c835192f4 | e691b9276fd0f82e9760707da17a522ae512b9b0 | refs/heads/master | 2022-12-07T23:10:32.846923 | 2022-12-05T06:11:46 | 2022-12-05T06:11:46 | 160,543,240 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | from core import DefaultLogger, AOCBase
from collections import defaultdict
import re
log = DefaultLogger.get_log()
class BitmaskDecoder(AOCBase):
"""
https://adventofcode.com/2020/day/13
"""
def __init__(self):
self.data = self.read_input()
self.mask = self._parse_mask(self.data[0])... | [
"richardstoeffel47@gmail.com"
] | richardstoeffel47@gmail.com |
d036805b85edb2e1846da24c7dc43c38d5a4e726 | c8c95520fb1a17d627a0256df2c6702f4f53403a | /3.3_the_for_loop.py | 371bcc17241b1a8ab78f7f1d729ca822967cbf14 | [] | no_license | wsargeant/httlacs | 608f1b4b34c95f18f934f10883beb56a2895c269 | 3337b369c541e18d5ed9ecbca35494c3ebcfa591 | refs/heads/master | 2023-02-21T21:10:03.228762 | 2021-01-25T08:44:46 | 2021-01-25T08:44:46 | 284,936,152 | 0 | 0 | null | 2020-08-28T10:35:17 | 2020-08-04T09:32:38 | null | UTF-8 | Python | false | false | 202 | py | def main():
pass
if __name__ == '__main__':
main()
for f in ["Joe", "Steve", "Pete", "Ian", "Mike", "Dom"]:
invite = "Hi " + f + ". Please come to my party on Saturday."
print(invite)
| [
"69194027+wsargeant@users.noreply.github.com"
] | 69194027+wsargeant@users.noreply.github.com |
2809aeb21bb390af39a5ab42e873973a5a8a81b7 | dbf885d7b65f9af2c5b1f5b9e4c51823de853ce6 | /pdf_decanter/tests/__init__.py | 2c099968d0da8948f08fbff831c7112b9a2fc950 | [
"Apache-2.0"
] | permissive | hmeine/pdfdecanter | b3d10cf7c7e05bb87dab2acbacc21df5123f3054 | d33f8c577b3afcc6152f8d6af44b4bb746b6bd06 | refs/heads/master | 2021-01-18T15:22:01.030028 | 2019-03-13T10:52:49 | 2019-03-13T10:52:49 | 4,405,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # Copyright 2012-2014 Hans Meine <hans_meine@gmx.net>
#
# 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 applicabl... | [
"hans_meine@gmx.net"
] | hans_meine@gmx.net |
78cd4e11041da4fd0f289957569b72d75a9d4f45 | acad9989517a18487d0cfd19dfba0345c0a2cd31 | /data_statistics/variable_statistics.py | 223b618424ceff584aa410ff8121dcf69f5567f4 | [
"Apache-2.0"
] | permissive | go-jugo/ml_event_prediction_trainer | 6d2e7a7c50a51eda9e44976e5d1044cf45bbaec6 | 0d644b737afdef078ad5b6fc2b7e2549b964b56f | refs/heads/main | 2023-05-30T01:22:39.009695 | 2021-05-11T07:28:11 | 2021-05-11T07:28:11 | 377,505,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import dask.dataframe as dd
def descibe_dataframe(df):
error_cols = [col for col in df.columns if 'errorCode' in col]
df = df.categorize(columns=error_cols)
statistics = df.describe(include='all').compute()
statistics = statistics.T
statistics.to_excel('../statistics/variables_statistics.xls... | [
"noreply@github.com"
] | noreply@github.com |
61ed38f2e4ae102e2913fcf19741b10bc6bbe7fd | 62ef612e182b7454e48811e6da587aaee2db0c69 | /Tries/Trie.py | 2270fbba460f097cb484bc9072aabfde3943d80d | [] | no_license | Prabhav-R/Data-Structure-Implementations | a3d7ac73d7da31f8bd5990919b5fd4a5bfccc17e | 858ce53de67245d8eecc3bcf9d24bf2765208eb6 | refs/heads/master | 2022-09-08T22:53:32.659730 | 2020-05-21T15:48:24 | 2020-05-21T15:48:24 | 265,517,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,872 | py | class TrieNode:
def __init__(self):
self.isEndOfWord = False
self.children = [None]*26
def isEmpty(self):
currNode = self
for node in currNode.children:
if node != None:
return False
return not currNode.isEndOfWord
def delete(self, word,... | [
"prabhavrajeev.51@gmail.com"
] | prabhavrajeev.51@gmail.com |
e80c7b99b6c6fcb647485bff94c55bc33fbc419f | ba74c5a19cb4845f0a7046c49523542e11e2d8a2 | /iautost/atide/ui/assistanter/assistanterMsg.py | ad9e789cb4728b4235938cb63a8d4d65da3c5e54 | [] | no_license | hyCpp/AutoTestPython | d7d4dd2bdca4ff86902dd7ecbca7cd327e630ea9 | e5231e3799669d06a7a2831246ba974eedbce0a8 | refs/heads/master | 2020-04-18T06:14:13.256915 | 2019-01-24T05:57:36 | 2019-01-24T05:57:36 | 167,311,200 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,638 | py | # -*- coding: UTF8 -*-
#!/usr/bin/python
'''
Created on 2018-6-11
@author: wushengbing
'''
import os
import sys
import time
import threading
import PyQt5.QtWidgets
import PyQt5.QtGui
import PyQt5.QtCore
from PIL import Image, ImageGrab
class CLabel(PyQt5.QtWidgets.QLabel):
def __init__(self, parent=Non... | [
"huyang@iauto.com"
] | huyang@iauto.com |
c20750b6f53aa15f47ac3c2b439de845d5b19472 | 2b1dc9cfde202590f8b1e071c324f85e2e63464b | /test_fibonacci_fallo.py | 64c46e114e041591d52460e758752e2d788a42c7 | [] | no_license | pabloleaman/Pablo_Leaman | f4ab632a7c2a0e942e54905b13ef6bddf00b5b89 | 5e5ff823d71ebb55f76abd2b3a8a728d0d91cd7d | refs/heads/master | 2021-07-25T07:33:15.983736 | 2017-11-06T04:24:30 | 2017-11-06T04:24:30 | 109,645,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # Se importa modulo "unittest" que permite crear tests unitarios.
import unittest
# Se importa el modulo que contiene la serie de Fibonacci, la cual se quiere testear.
import Fib_prueba
# Se crea la clase que contendran los respectivos tests.
class TestFibonacci(unittest.TestCase):
# Se define test para... | [
"noreply@github.com"
] | noreply@github.com |
fe8bcf713a878e1f1e6a4abbe2f105d84eeebb7d | 5e6da81df5f7a78ff7faaf627ce3f97f66289445 | /_es_exam.py | 4bca6c7f0b63779c73ccc345eec1bda35a771c2a | [] | no_license | jlinka/ESG | 94dc01158344b2d5e12e0213b118ea96cb62b061 | 244ff86bbe13256497da3dfaf4e7eb852527c404 | refs/heads/master | 2020-07-04T13:51:16.805697 | 2019-08-14T08:07:14 | 2019-08-14T08:07:14 | 202,303,382 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,960 | py | # -*- coding: utf-8 -*-
# @Time : 6/20/19 10:24 AM
# @Author : jlinka
# @Project : ESG
# @Desc : es全文索引简单增删改查
import os
import json
import time
from pprint import pprint
from collections import Counter
from elasticsearch import Elasticsearch
from ner.ner import Ner
cur_dir = os.path.dirname(os.path.realpath(__file_... | [
"jlinka@foxmail.com"
] | jlinka@foxmail.com |
4d81884cf3a8cc8734cc8333c6fac08fb458d747 | 43be8677395a876fe784ba424df03faa9816c6c3 | /tests/test_units/test_basic_app.py | 021e3a67e8c5d5a8c36cbffef3579919360fcf50 | [
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | gward/pylons | 60c20c9c0521e9407ef259d1def95e03f4033e74 | 8bf74880adc0f2e35f43d1e8ae30c2f0ec25f353 | refs/heads/master | 2021-01-16T00:46:47.606231 | 2015-09-10T19:05:35 | 2015-09-10T19:05:35 | 42,264,602 | 0 | 1 | null | 2015-09-10T19:02:39 | 2015-09-10T19:02:39 | null | UTF-8 | Python | false | false | 5,868 | py | import os
import re
import sys
from nose.tools import raises
from __init__ import test_root
def make_app(global_conf, full_stack=True, static_files=True, include_cache_middleware=False, attribsafe=False, **app_conf):
import pylons
import pylons.configuration as configuration
from beaker.cache import Ca... | [
"ben@groovie.org"
] | ben@groovie.org |
0835e9fc57680d9176bb8db00c3ab142153895cc | 76d0601337265aa0f064058cab488d01c6bbae4e | /venv/bin/pip3.7 | a7a294ec15d0775c3173152f67ef7dac512e84b1 | [] | no_license | lovenishgarg/PyShop | cafb7acf1e0757c222aec15b9ab049b5825082d9 | 9db014804834e9c2e6f081ab4e8a67410bffd3d2 | refs/heads/master | 2022-04-14T08:22:40.314310 | 2020-04-13T07:58:26 | 2020-04-13T07:58:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | 7 | #!/Users/lg/PycharmProjects/PyShop/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__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.... | [
"60829596+techielove92@users.noreply.github.com"
] | 60829596+techielove92@users.noreply.github.com |
7e9b9a0aad90d98e4fb2409f0db85fadcc0b665d | bc441bb06b8948288f110af63feda4e798f30225 | /architecture_view_sdk/model/metadata_center/stream_metric_states_pb2.py | 8a7a27d80fc16e11d705b7d43834edd01cdc33a1 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,685 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream_metric_states.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google... | [
"service@easyops.cn"
] | service@easyops.cn |
0c238b53e30bb6aace21ca85e6139c54047c9e9c | 32e789a8ae5eecec4ee8ab6cf72af0b7c599f5a9 | /.venv/bin/wheel | 5c7f8f28cc1a15bb37695045165bd81d187b9a7f | [] | no_license | kafura-kafiri/Khorus | 5aabc306673c9298bbd0c4a85ce874b7240a1d00 | 3d4cb0e8b56f9d296003e8bb7ff9a4f30a8f3ef8 | refs/heads/master | 2021-05-10T13:48:22.513815 | 2018-01-31T15:00:57 | 2018-01-31T15:00:57 | 118,488,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/pouria/PyProjects/Khorus/.venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kafura.kafiri@gmail.com"
] | kafura.kafiri@gmail.com | |
2fcaf139e76286b816d99605e71bc07a933e540c | dc940d7614c4cf55a3c61a1ad4ee48e4ea4e319d | /src/slurmify/slurmify.py | cc78977d8e499ee972aa5bd9eb2e6fe671d6160d | [
"MIT"
] | permissive | salotz/slurmify | b4c88e434c2814c71fcef9cd13ecd716163a75d8 | 4a6da629706621b9b2633d34e574b121a75a8f87 | refs/heads/master | 2020-04-28T23:22:10.227665 | 2019-10-08T01:37:33 | 2019-10-08T01:37:33 | 175,651,924 | 0 | 1 | MIT | 2020-12-01T07:43:57 | 2019-03-14T15:42:30 | Python | UTF-8 | Python | false | false | 5,320 | py | import os
import os.path as osp
import tempfile
import subprocess
from jinja2 import Environment, FileSystemLoader
from slurmify import TEMPLATES_PATH
# names of the templates
SLURM_JOB_TEMPLATE = "slurm_job.sh.j2"
SLURM_RUN_TEMPLATE = "slurm_run.sh.j2"
SLURM_SETUP_TEMPLATE = "slurm_setup.sh.j2"
SLURM_TEARDOWN_TEMPL... | [
"samuel.lotz@salotz.info"
] | samuel.lotz@salotz.info |
b0b8ff5d8a4426d05c3a08f7bcf2eb2112c2a454 | 5463fab24a88e2693445d8763c784ec486d6f155 | /spider/MysqlConnecttencent.py | 004d40827199ddbefa1fbfc925962f217073be22 | [] | no_license | HITweibowen/HITChat | 8ec91d3a647e4f622f080418972cad87adfb7db8 | 8db618014c482948511f83404d7b71f76fce65ec | refs/heads/master | 2021-09-01T01:51:59.861832 | 2017-12-24T08:00:36 | 2017-12-24T08:00:36 | 115,248,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,094 | py | # -*- coding: utf-8 -*-
'''
@author: xinghuazhang
@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited.
@contact: xing_hua_zhang@126.com
@software: PyCharm 2017.1.4
@file: Connect-mysql.py
@time: 2017/10/30 8:50
@desc:
'''
import MySQLdb
class mysql:
def __init__(self):
self.con... | [
"32197524+HITweibowen@users.noreply.github.com"
] | 32197524+HITweibowen@users.noreply.github.com |
7a8fa12f5d1cb13446a07ad2b0d36370c27adf16 | 1d04c90b3331261d741cc4f8757aeb0088193627 | /setup.py | fab6d30a6a0fe2cbc72fdd710ca21377f27e0b75 | [
"ZPL-2.1"
] | permissive | jean/Products.ZopeVersionControl | 11f5251fea47e12b6db10c2ff2067f23a93ebad4 | c5a7efacf39bd27a7acda525096f7f05e0672179 | refs/heads/master | 2021-01-22T16:37:29.630614 | 2013-03-13T14:29:07 | 2013-03-13T14:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | from setuptools import setup, find_packages
__version__ = '1.1.4dev'
setup(
name='Products.ZopeVersionControl',
version=__version__,
description="Zope Version Control",
long_description=(open('README.rst').read() + "\n" +
open('CHANGES.rst').read()),
classifiers=[
'Fr... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
8f0937b5e72502ac4df29ce701bc7b3fe2f8c5d6 | 14ab3337d1fa1b23f0c5ed9c266857f3ce193c3e | /model_trainer.py | 789334137cdb24259877658a02bf1b9addeb05ee | [
"MIT"
] | permissive | heonedream/NN_compression | 145bb7218f583b9fab08f90dc56bc46a1564930d | e2a9cce51218fc3b89ff3b5945b17d162c633366 | refs/heads/master | 2020-03-28T02:49:27.094466 | 2018-09-06T01:21:32 | 2018-09-06T01:21:32 | 147,147,659 | 0 | 0 | null | 2018-09-03T03:37:28 | 2018-09-03T03:37:28 | null | UTF-8 | Python | false | false | 3,446 | py | from __future__ import print_function
import os
import time
import tensorflow as tf
import numpy as np
import sys
class ModelTrainer():
def vocab_encode(self, text):
return [self.config.vocab.index(x) for x in text if x in self.config.vocab]
def vocab_decode(self, array):
return ''.join([self... | [
"noreply@github.com"
] | noreply@github.com |
eec1b2a98e2fd3889f7053a0707033e664c9d605 | c6e950b6be678bf3097b4311693093747e2e30c9 | /management/compose.py | b89a91028a81a65fe705b216dcfe4a88bd1a802e | [] | no_license | tcco/multicontainer-api-boiler | bb6dd5c15807d19692ed920cff5b94269952e87f | 23605bebda4abb324c32f7ef2187c705fcd784b1 | refs/heads/master | 2021-01-21T15:31:42.094411 | 2016-12-19T22:38:12 | 2016-12-19T22:38:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | """
Docker-compose management commands.
:copyright: (c) 2016 Pinn
:license: All rights reserved
"""
import click
import subprocess
@click.command()
@click.option('--ecs', is_flag=True)
@click.option('--volumes', is_flag=True)
@click.option('--images', is_flag=True)
def clean(ecs, volumes, images):
"""Subproces... | [
"timco92@gmail.com"
] | timco92@gmail.com |
cbd70168fe2a1175f1f7535444c2ea846c45f236 | 8c5e1af9be8632dc52fdd6f9b009ec3dbe7b8325 | /Week06/homework/homework.py | 90d59981341d962a6bb351d8cfc0dfb9a9a1375c | [] | no_license | qwert100good/Python004 | ea026dca274a9e94564e30781ea3c34e68d6d9c8 | a1dbecf2bb61c6517b990a3667d4945100135a03 | refs/heads/master | 2023-02-02T15:14:55.573076 | 2020-12-20T18:38:50 | 2020-12-20T18:38:50 | 296,891,452 | 0 | 0 | null | 2020-09-19T14:54:28 | 2020-09-19T14:54:27 | null | UTF-8 | Python | false | false | 4,312 | py | # if __name__ == '__main__':
# # 实例化动物园
# z = Zoo('时间动物园')
# # 实例化一只猫,属性包括名字、类型、体型、性格
# cat1 = Cat('大花猫 1', '食肉', '小', '温顺')
# # 增加一只猫到动物园
# z.add_animal(cat1)
# # 动物园是否有猫这种动物
# have_cat = hasattr(z, 'Cat')
# 定义“动物”、“猫”、“狗”、“动物园”四个类,动物类不允许被实例化。
# 动物类要求定义“类型”、“体型”、“性格”、“是否属于凶猛动物”四个属性,是否属于... | [
"310914495@qq.com"
] | 310914495@qq.com |
eb044062bd50bd1349122d2d60a8a2823c46e2c2 | 6ea2708e84a636fda8e9d00dbd08cbd642279044 | /pe_90_99/problem_91.py | c8943dde792291bf0a4901a63c5c4ba4b4bccb3b | [] | no_license | jwilner/project_euler | a1984305f9ed0cc86f7581436441c1d679b2aa03 | 5c0333fb240d0e8e75411c6301157c12d27758f4 | refs/heads/master | 2016-09-06T00:35:52.525496 | 2014-03-03T04:49:36 | 2014-03-03T04:49:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py |
def euclid_gcd(a, b):
while b != 0:
a, b = b, a % b
return a
def triangles_at_p_or_q(x, y):
gcd = euclid_gcd(x, y)
new_x, new_y = x / gcd, y / gcd
return min(int(y / new_x),
int((50 - x) / new_y))
if __name__ == '__main__':
num_at_origin = 2500
trivial_cases_for_on... | [
"jhwilner1@gmail.com"
] | jhwilner1@gmail.com |
69a41d7a7641fdab201ca83c80f0a881b55541e4 | 52f27875ea34007c92570232e7229ed5b643daae | /elec/migrations/0010_auto_20200726_1820.py | 7a8857a81319979dfbd82e8a616f8b5b352926f2 | [] | no_license | Srashtimittal/Website | 2e331ba6a84c6cba246e7b13a8541a34e706f73b | fc20db967556f41af11820457f1ae8be3c6ec6aa | refs/heads/master | 2023-06-10T23:09:28.317749 | 2021-06-23T17:30:24 | 2021-06-23T17:30:24 | 292,929,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # Generated by Django 3.0.7 on 2020-07-26 12:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('elec', '0009_auto_20200726_1728'),
]
operations = [
migrations.RemoveField(
model_name='good',
name='desc',
),
... | [
"srashtimittal990@gmail.com"
] | srashtimittal990@gmail.com |
bd43d4b1bc8f330307b9720cb6b8e6383124f6dc | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/62/usersdata/191/32531/submittedfiles/ex1.py | e50dfa28cc19c4488d103df646274da8bad5050f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = float(input('Digite a: '))
b = float(input('Digite b: '))
c = float(input('Digite c: '))
delta=(b**2)-(4*a*c)
if delta>=0:
x1=(-b+delta**(1/2))/(2*a)
x2=(-b-delta**(1/2))/(2*a)
print('x1 é igual a %.2f'%x1)
print('x2 é igual a %.2f'%x2)
else:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cc0132e70c3ce574975dc2b2b8cca9793cb2b5a0 | 16baafc48606cae3391d111fbc1834265b5a9c3f | /tests/ez_sofifa_scraper/TestFiles/player_rows.py | cdc183c3b3ce3c33303f9bf1bc43681d28e15600 | [
"MIT"
] | permissive | ericziethen/ez-sofifa-scraper | b5900983cd3cb17f6d912918b4614f105bdc0f4c | c6e51e2f468de64a8368ef42fce8ed745d6155ac | refs/heads/main | 2023-04-03T06:25:19.068204 | 2021-04-01T12:11:49 | 2021-04-01T12:11:49 | 326,291,623 | 0 | 0 | MIT | 2021-04-01T12:11:49 | 2021-01-02T23:37:26 | null | UTF-8 | Python | false | false | 16,460 | py |
# Test Data, slightly modified, e.g. Given extra positions for testing
PLAYER_1_ROW_STR = """
<tr>
<td class="col-avatar">
<figure class="avatar">
<img alt="" data-src="https://cdn.sofifa.com/players/001/179/21_60.png" data-srcset="https://cdn.sofifa.com/players/001/179/21_120.png 2x, https://c... | [
"noreply@github.com"
] | noreply@github.com |
8c75e45856e352bb64ee659a6da9313954d97790 | e6464262fb396da7d9706e7ef2ed23b5a5c52246 | /preprocessing_train_or_test_football_crop_and_pad_600x600.py | 5bdf2dc4456dbf4f521b2a134064a513fc9a7253 | [
"Unlicense"
] | permissive | akatsukioshiro/Pill_Classifier | 4eda404f75c8d6a2dfeccaba226adc7e02db2355 | ba7168cb42f7e13668ddbe741516955b8678ff23 | refs/heads/main | 2023-06-01T09:58:11.786133 | 2021-06-20T21:40:34 | 2021-06-20T21:40:34 | 378,744,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | import numpy as np
import cv2 as cv
import glob
def unsharp_mask(img, blur_size = (9,9), imgWeight = 1.5, gaussianWeight = -0.5):
gaussian = cv.GaussianBlur(img, (5,5), 0)
return cv.addWeighted(img, imgWeight, gaussian, gaussianWeight, 0)
for opt in ["football"]:
for name in glob.glob("./train/"+opt+... | [
"noreply@github.com"
] | noreply@github.com |
01df0fb94886f3c5d2d2f59c3708b6fb59b455ac | 7320dadb75f1db9adf0d454ad06d4e2ff4cc3699 | /checkout/migrations/0001_initial.py | 1ef7fe9b10ff813474384e3ce04e33882079725a | [] | no_license | Johnny-Morgan/boutique-ado | ffc161937e16b8b44347d93c4925c84e53ca2146 | 249833bbcce7a49d8321745ca7e4875be820f49b | refs/heads/master | 2023-06-03T06:25:53.226195 | 2021-06-23T13:02:52 | 2021-06-23T13:02:52 | 370,500,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,351 | py | # Generated by Django 3.2.3 on 2021-06-12 09:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('products', '0002_auto_20210603_1210'),
]
operations = [
migrations.CreateModel(
... | [
"jwjmorgan@gmail.com"
] | jwjmorgan@gmail.com |
47901e29654b8ba9992f6538fddcf929308cfe4c | dfae62865c3b96b83385d384c7ad8280a44ff1a0 | /scotland-yard/mcts/MCTS.py | 9053aa1a29224bc33ced274ce9ac6de5a8326a6a | [] | no_license | madeleine789/SAO-cops-and-robbers | 1e8af6139b287895622e5f7cd28848bf5e6d1cc6 | 57c0bd67d8f78fcbce31e5420f80205ee2af3b36 | refs/heads/master | 2021-01-21T04:46:46.697224 | 2016-06-08T10:01:55 | 2016-06-08T10:01:55 | 54,589,551 | 0 | 0 | null | 2016-06-08T10:01:55 | 2016-03-23T20:05:19 | Python | UTF-8 | Python | false | false | 2,138 | py | import copy
import random
import math
from node import MCTSNode
class MCTreeSearch:
def __init__(self, iterations_count, exploration=0.0):
self.iterations_count = iterations_count
self.exploration = exploration
def perform_search_with_exploration(self, state, expl_param):
self.explora... | [
"madeleine789@gmail.com"
] | madeleine789@gmail.com |
0f4c7c0ade4114f7ec4d4b22c01b83ae0189a4f4 | b177c38b799e171d633e50070fc4c4e2610fe96a | /time_convertion.py | f46e12501ec2e0b07338088185408e58202f8d28 | [] | no_license | jayanthns/hackerrank_problems | c9ae02d531c82fc03734a18211aa658d426b8ddf | ce3b7f174b1ef9ef5ffa5256570997a88bc4d5af | refs/heads/master | 2020-03-10T23:08:35.091824 | 2018-04-15T17:37:56 | 2018-04-15T17:37:56 | 129,634,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | def timeConversion(s):
#
# Write your code here.
#
am_or_pm = s[8:]
s = s.rstrip(am_or_pm)
if str(am_or_pm) == 'PM':
hour = s[0:2]
if hour != '12':
hour = str(int(hour)+12)
res = hour + s[2:8]
s = res
if str(am_or_pm) == 'AM':
hour ... | [
"jayanth.ns@avetoconsulting.com"
] | jayanth.ns@avetoconsulting.com |
ce530f3a0911852d37807d078ec6dcec182f3b0f | a2dce63dc04f484d1457073610343378656a1ffd | /p24.py | c193733b0ed3535db6ba4015fe24cd7bf5da243e | [] | no_license | analaura09/pythongame | 5ece67047095160cdbc56ae3bb14920c787d8d02 | 54c83cf731a384fdb04bc4c3ed0bcf109b03d5ed | refs/heads/main | 2023-03-29T00:35:35.713616 | 2021-03-21T17:53:28 | 2021-03-21T17:53:28 | 348,432,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import run()
nome = str(input(' Digite o nome da cidade: ')).strip()
print(nome[:5].upper == 'SANTO')
opçao = int(input('deseja repetir esse exercicio?[1] \ndeseja voltar para o mundo1? [2] \ndeseja sair do jogo?[3]'))
if opçao == 1:
import p24
p24.run()
if opçao ==2:
import mundo1
mundo1.run()
if opç... | [
"pereira.laura@escolar.ifrn.edu.br"
] | pereira.laura@escolar.ifrn.edu.br |
ffe66310adde7ebf5f1d3eb51057a1dd44527150 | 97b7be3c8a5538432e0454fcaa79b1614a08d4f6 | /venv/bin/chardetect | 9d65199f9a420eaefbb47f15147245abccebe5b2 | [] | no_license | jryoun23/pythonBots | de55e99718b57b33e342110111294beaf6d2e452 | 6152b1353af98d94972eea198490d8706533a4b5 | refs/heads/master | 2023-05-05T11:57:14.399701 | 2021-05-21T01:17:12 | 2021-05-21T01:17:12 | 365,695,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/Users/josephyoung/Documents/pythonStuff/traderBois/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jryoun23@asu.edu"
] | jryoun23@asu.edu | |
161d874e27627ec8c6158a2d75565436e6b85818 | 471401a258251b3a911ff468d857e01b850b3d08 | /dvc/repo/experiments/remove.py | c712572f5d7ca4e2dc7d3f8d0ad4a4dfc96355c2 | [
"Apache-2.0"
] | permissive | Suor/dvc | c3cda793f6e9e5f9d101e86685894a227a6bdce9 | 869ea442ef2d0c3e049bd735fcba9f157fdbf801 | refs/heads/master | 2023-03-23T02:29:16.840390 | 2021-10-28T22:14:05 | 2021-10-28T22:45:10 | 180,741,595 | 0 | 0 | Apache-2.0 | 2023-03-09T17:10:43 | 2019-04-11T07:48:12 | Python | UTF-8 | Python | false | false | 2,728 | py | import logging
from typing import List, Optional
from dvc.exceptions import InvalidArgumentError
from dvc.repo import locked
from dvc.repo.scm_context import scm_context
from dvc.scm.base import RevError
from .utils import exp_refs, remove_exp_refs, resolve_exp_ref
logger = logging.getLogger(__name__)
@locked
@scm... | [
"noreply@github.com"
] | noreply@github.com |
d2c63c9675ec79a7e59f67bee16f6019f99124f5 | 7b967357fd30738594bf1f0c47947cb316eede89 | /src/customer_input/payment_error_test.py | 34a53c12a4cd3cfc672099ef0c6458896888539e | [] | no_license | bondhan/Py_TestLang | 21f3ebd98e6140707c1c52559b7e35952087da38 | 5a05031c2415c153c62cbf9c26413c0177eb000a | refs/heads/master | 2022-12-09T15:05:05.240935 | 2019-12-08T23:10:34 | 2019-12-08T23:10:34 | 226,324,250 | 0 | 0 | null | 2022-09-16T18:15:13 | 2019-12-06T12:21:16 | Python | UTF-8 | Python | false | false | 4,904 | py | import os
import sys
sys.path.append(os.path.abspath('.\src'))
sys.path.append(os.path.abspath('.'))
sys.path.append(os.path.abspath('..'))
os.environ['PYTHONPATH'] = os.path.abspath('..') + ";" + os.path.abspath('.')
import json
import pprint
import sys, getopt, time
import requests
from random import randint
from f... | [
"bondhan.novandy@gmail.com"
] | bondhan.novandy@gmail.com |
e1ba01b4e69386345f851060eff86d446114a874 | 777f55744d410c1647b47603ac8d7b5a87b1e59a | /__init__.py | fb41b4b36156baff6d5d1105a143418dec725534 | [] | no_license | Yuzhe17/simpledistributions | d55903b583702e9f43565644b8ffa8a99bc1f43a | 5d41ec8dfb04a213e238d59f53b760fb1e05695d | refs/heads/master | 2023-06-23T01:16:24.563076 | 2021-07-12T10:56:43 | 2021-07-12T10:56:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from .Gaussiandistribution import Gaussian
from .Binomialdistribution import Binomial
from .Poisondistribution import Poison
# TODO: import the Binomial class from the Binomialdistribution module | [
"yuzhexiao93@gmail.com"
] | yuzhexiao93@gmail.com |
de2268274a6a670b34fce64205509c704a6dec7f | 8de32ac2412a4a9f49f748ebf2b38a716bfe06d7 | /day16_exceptions_string_integer.py | 73494b370dffdc9cd2e3a53fd85b67082df74c18 | [] | no_license | btab2273/hackerRank | 09e2eb6895063cd3a70814d815d1ad382ec7be9c | 150ee41c5a0d1917fdac0a2c8e93e5ec9745b3d9 | refs/heads/master | 2021-01-23T04:23:13.163536 | 2017-03-26T22:06:20 | 2019-04-20T03:53:53 | 86,192,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | S = raw_input()
# Use a try-error clause to catch strings that cannot be converted to integers
try:
print(int(S))
except ValueError:
print('Bad String')
| [
"noreply@github.com"
] | noreply@github.com |
017dc69fc5d000d15828181b4c3632954e86c2d8 | 434136f8da21117e6682b6785feb4358302aa840 | /ROC_Stefan/PrintROC.py | d8c3a132dc48087033708537aa270a6a476f13c0 | [] | no_license | chiara-rizzi/hgtd_btagging | 44d34a2c5271e500b6309f580da9ea0ee69db323 | b7a2523a824ea78fa053853280993d6971780ad0 | refs/heads/master | 2020-09-17T03:29:17.360800 | 2019-03-21T16:25:27 | 2019-03-21T16:25:27 | 223,974,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,946 | py | #import argparse
from glob import glob
import os, sys
from array import *
import ROOT
from ROOT import *#TCanvas,TLegend,gROOT
import math
import time
from math import sqrt
ROOT.gROOT.LoadMacro("AtlasStyle.C")
ROOT.gROOT.LoadMacro("AtlasUtils.C")
SetAtlasStyle()
tmpVale=sys.argv
def Helper():
print " "
prin... | [
"chiara_rizzi@hotmail.it"
] | chiara_rizzi@hotmail.it |
b4a70ecd9b6a013b95d90446e2a813e6747c77e6 | d1def3fa04cffafdefc40fbe312bd153d9aa90fc | /mymodule/book/__init__.py | 21ffc16f5a8209cca687f9ee2eb98625802a3588 | [] | no_license | peterliu502/Hello_Python | 5dcce0dc5248cf79bbb8862f7e8b52eb35f72117 | 46c6108c4ed7dde928711c9315f0b2a5795b3b00 | refs/heads/master | 2022-04-08T04:46:33.507931 | 2020-03-20T16:36:42 | 2020-03-20T16:36:42 | 232,245,298 | 1 | 0 | null | 2020-03-20T16:36:44 | 2020-01-07T04:54:48 | Python | UTF-8 | Python | false | false | 148 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__all__ = ['ID', 'writer'] # 将本包下所有的子包或模块赋给__init__.py的__all__属性
| [
"798551899@qq.com"
] | 798551899@qq.com |
17dedbac399d6f25995e1351a29fd78760e09562 | db7be03deb10996b99ec128fda05d049b3c64dfe | /Python/exemplo05.py | 3ac34cea7b841bcdb05107c0bf34ad047f511a96 | [] | no_license | carolhcs/Studies-Basic-Intermediary-Codes-ALGC | a75842506d107524464a63504b327cb85b827382 | 0c70024973003c7772c6f0ddc410d36cac866ead | refs/heads/master | 2023-03-04T15:45:20.410077 | 2021-02-13T00:04:32 | 2021-02-13T00:04:32 | 80,257,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | ##Operador in e not in
l = ["laranja","maça","abacate","uva"]
## in
if "laranja" in l:
print("Fruta encontrada")
else:
print("Fruta nao esta na lista")
## not in
if "laranja" not in l:
print("Fruta nao esta na lista")
else:
print("Fruta encontrada")
## procurar caracteres
palavra = "Carol"
if "a... | [
"carol_lgl@hotmail.com"
] | carol_lgl@hotmail.com |
d0023ea5c905833dc64359363ca3df0bbc721123 | 877eba1fa70d8f99ecc0e4a470bd8240618f1cfc | /venv/Scripts/easy_install-3.7-script.py | 4f1873d9a82ef69658089c763890e96541b6e791 | [] | no_license | ydoublemm/pythoncode | 9a634ea0b52b893e0e7f7c9d83873c2d376d3df5 | 392c5b846a41ea38b471ad9d9d81b9ada1715b36 | refs/heads/master | 2020-08-04T05:03:16.819440 | 2019-10-01T04:55:41 | 2019-10-01T04:55:41 | 212,016,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!H:\pythoncode\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__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\.pyw?|\.exe)?$', '', sys.argv... | [
"871049074@qq.com"
] | 871049074@qq.com |
a4e1b7f960a339d2696bd14deaf451002d5bf475 | 12cb9edd19612c132028c45707b4ec944ae4ae88 | /3-deploy_web_static.py | 8438f8acc72a80543e4eb6219a324f9f94c48f43 | [] | no_license | imperfectskillz/AirBnB_clone_v2 | 6345389a99f66c23d310ac3030986ef8973c00bb | 8910d78da6a6bb6f14fa569af913739f4b5cf5f5 | refs/heads/master | 2020-03-08T01:08:53.124647 | 2018-04-19T01:14:16 | 2018-04-19T01:14:16 | 127,822,734 | 0 | 0 | null | 2018-04-02T23:11:34 | 2018-04-02T23:11:34 | null | UTF-8 | Python | false | false | 1,537 | py | #!/usr/bin/python3
#fabric script generates a tgz archive
from fabric.api import *
from datetime import datetime
import os
env.hosts = ["52.91.246.129", "107.23.155.217"]
env.user = "ubuntu"
def do_pack():
"""
creates tgz
"""
filetime = datetime.now().strftime('%Y%m%d%H%M%s')
filename = 'versions... | [
"j.choi.89@gmail.com"
] | j.choi.89@gmail.com |
ba4ce143ab4efe10927d17ed3c09492ccae1cd5b | b3aa3d77836fa8f05b54d68e7bd6bff19dced90d | /Codeforces/636 Div 3/D.py | 84ea81677d1e3e2eaf8eef86a8f7d3c3ae042df2 | [] | no_license | anoubhav/Codeforces-Atcoder-Codechef-solutions | 660c5b78723791bc33b1d51977bf11ebe6dfe4c1 | aeebcae332af64aba49f52261d11aa6996f33b1c | refs/heads/master | 2022-12-08T14:02:49.574928 | 2020-08-29T14:18:30 | 2020-08-29T14:18:30 | 255,004,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,380 | py | # # Unsolved in contest
## Accepted solution: O(n+k) solution
# https://www.youtube.com/watch?v=QouZfBC9CVw&list=RDCMUC4lyxGubhu5u1s1LYCwXtZw&index=2
def prefix_algo():
t = int(input())
from collections import defaultdict
import math
for _ in range(t):
n, k = list(map(int, input().s... | [
"anoubhav.agarwaal@gmail.com"
] | anoubhav.agarwaal@gmail.com |
a9982a8f2ea8b99b85488f5ab2984195127a5fdd | 390c347ce47ad253883030f93f6901061874f2da | /experiments/genes/gene_sca_discrim_1.0.py | 8a68ebbee7bcf5d85541f935f27a47cc4e866775 | [
"MIT"
] | permissive | bdpedigo/sparse_new_basis | 55646622330a30dd33f490bf3a23036273f4b8ad | 4bb9c766154fe713c544a80178c067ae8c867026 | refs/heads/main | 2023-01-28T05:43:54.488110 | 2020-12-09T23:23:51 | 2020-12-09T23:23:51 | 312,875,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,160 | py | #%%
import os
import pickle
import time
from pathlib import Path
import colorcet as cc
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from hyppo.discrim import DiscrimOneSample, DiscrimTwoSample
from matplotlib.lines import Line2D
from sklearn.decomposition import PCA, Spa... | [
"benjamindpedigo@gmail.com"
] | benjamindpedigo@gmail.com |
c8ee30780f6b29a2be07e9b1ef56eacf14c3aee8 | 0f4eec0256850499f933a07d60f79fbac692abfc | /train2.py | 4e0db77df954f3bf2ed111a3f0795698c433966d | [] | no_license | dmavridis/superres | 33401aa1294ec111352725f94850d210f866d870 | 7d07d5f1f3b097e98e980cf62fd55024dfc80fc3 | refs/heads/master | 2020-06-10T05:23:32.150703 | 2019-07-25T06:32:42 | 2019-07-25T06:32:42 | 193,595,009 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,033 | py | #!/usr/bin/env python
import random
import glob
import subprocess
import os
from PIL import Image
import numpy as np
from tensorflow.keras.models import Sequential
from tensorflow.keras import backend as K
from tensorflow.keras.callbacks import Callback, LambdaCallback
from tensorflow.keras.layers import Conv2D, Dense... | [
"noreply@github.com"
] | noreply@github.com |
8834bccb7d0ddfedb67cef2c7494d39cfeb53fe0 | b9d947a0ff93f48f54c7cdfc271a62135cd903e0 | /MSC/main.py | c983e9ecc3ab661db5096c50ac7097a6c4bab8b0 | [] | no_license | Athrunen/MIDIShortCuts | 863f0d14a20ddfcc94e2bded8d527779dace1282 | be5c6988ba22fd91038a8d63d3c919c9cae21e38 | refs/heads/master | 2022-07-20T06:29:24.783094 | 2020-03-10T22:58:13 | 2020-03-10T22:58:13 | 266,095,853 | 0 | 0 | null | 2020-05-22T11:42:08 | 2020-05-22T11:39:31 | Python | UTF-8 | Python | false | false | 3,597 | py | import pygame.midi
import sys
import time
import bridge
debug = not True
cm = ""
buttons = [*range(16, 23 + 1), 64]
dials = [*range(1, 8 + 1)]
dialdata = {}
named_buttons = {
16: "STOP",
17: "PLAY",
18: "RECORD",
19: "UP",
20: "DOWN",
21: "RIGHT",
22: "LEFT",
23: "SELECT",
64: "S... | [
"athrunen@gmail.com"
] | athrunen@gmail.com |
9be119c5296d0b0b933eefcfdc17acb3287f4a85 | 36790663f43de2d7d253c8d300f472391adf5dc8 | /celery_project/app/models.py | f67bf5edfa4565a788a750966c4b62a09c06ab6d | [] | no_license | ViktorRaboshchuk/django_celery | 86c7a0eb3bd0f670bf662550eab277dfa7c6f572 | 86ac752e40b4c3d04a37b5159541e1b232ac23ab | refs/heads/master | 2023-06-23T13:22:48.933839 | 2021-07-12T07:57:09 | 2021-07-12T07:57:09 | 385,167,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.db import models
# Create your models here.
class Contact(models.Model):
name = models.CharField(max_length=30)
email = models.EmailField(max_length=50)
def __str__(self):
return self.name | [
"viktor.raboshchuk@gmail.com"
] | viktor.raboshchuk@gmail.com |
a0cd7aae57ad61bd35a5f8f02c40170ca531d11c | bf596a266eebd5e83029d8804348dbd9283a563b | /mainapp/views.py | e3b9f8de9b99563fc793ae0553b218fbca2edfb6 | [] | no_license | Agwebberley/best_of_books-live | b0d06552e8345ba1ab5f763fbc95837965ccdbc8 | 3d02744be89ae8b3c0fbc210c8c98f8e4132f54d | refs/heads/master | 2023-08-28T18:28:39.356550 | 2020-05-08T20:28:10 | 2020-05-08T20:28:10 | 258,317,755 | 0 | 0 | null | 2021-06-10T19:02:15 | 2020-04-23T20:05:21 | Python | UTF-8 | Python | false | false | 1,381 | py | from django.shortcuts import render
from django.db.models import Q
from django.views.generic import ListView, DetailView, CreateView, UpdateView, DeleteView
from .models import Post, Genre
from .forms import PostForm, EditForm
from django.urls import reverse_lazy
class HomeView(ListView):
model = Post
template_name... | [
"44350096+Agwebberley@users.noreply.github.com"
] | 44350096+Agwebberley@users.noreply.github.com |
c29aa7ebe11d45637e582453e40d5f668b9e0189 | 5b3d8b5c612c802fd846de63f86b57652d33f672 | /Python/six_kyu/digital_root.py | 5655cf937c38c8dc012f4fb38a715f99a3c7198f | [
"Apache-2.0"
] | permissive | Brokenshire/codewars-projects | 1e591b57ed910a567f6c0423beb194fa7f8f693e | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | refs/heads/master | 2021-07-22T18:50:25.847592 | 2021-01-25T23:27:17 | 2021-01-25T23:27:17 | 228,114,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | # Python solution for 'Sum of Digits / Digital Root' codewars question.
# Level: 6 kyu
# Tags: Algorithms, Mathematics, Numbers, and Arithmetic.
# Author: Jack Brokenshire
# Date: 13/02/2020
import unittest
def digital_root(n):
"""
A digital root is the recursive sum of all the digits in a number. Given n, t... | [
"29889878+Brokenshire@users.noreply.github.com"
] | 29889878+Brokenshire@users.noreply.github.com |
10d497ee159d5fa12d220be2c774fd33f365bf17 | fcd80f58e8006cb6bb04ac9dca4b3d58dc8d1d70 | /files/example197_file_seek.py | 9beb719cee7f34becceb6ea5685d4a6b719d77dd | [] | no_license | penguuu/python-examples | 56e252be3dbf61cb0345cf8f95a01577f755f332 | 32f46ba435fd2797454af6228b368524ac1ebd79 | refs/heads/master | 2021-01-04T22:18:03.474098 | 2020-02-15T20:32:18 | 2020-02-15T20:32:18 | 240,781,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | #!/usr/bin/python
fo = open("example197_file_seek.py","r")
print "Name of the file: ", fo.name
line = fo.readline()
print "Read Line: %s" % line
fo.seek(0,0)
line = fo.readline()
print "Read Line: %s" % line
fo.close()
| [
"pengu@shadow.babcom"
] | pengu@shadow.babcom |
61e37196f31ae35d096a8c8fd30ddb31149a289a | 3256af0d6c19732bb84b256a9f792aaf7f3d901a | /f5/bigip/tm/asm/policies/test/functional/test_extractions.py | 64620349bef5b578dcd0fbe54e55e1a2ec400974 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | F5Networks/f5-common-python | 73e33ea489d989399d205077163f24ce584d83b9 | 3050df0079c2426af99b9a1b8f93d0b512468ff4 | refs/heads/development | 2023-08-29T10:11:23.713392 | 2022-09-21T02:45:03 | 2022-09-21T02:45:03 | 45,062,555 | 286 | 180 | Apache-2.0 | 2023-05-12T23:13:03 | 2015-10-27T18:48:06 | Python | UTF-8 | Python | false | false | 4,460 | py | # Copyright 2017 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"caphrim007@gmail.com"
] | caphrim007@gmail.com |
b3b76840c9d768a59aadb9f1b6f3f28171a2ce04 | b00e32f3c4e531cd4fa4aec90c6070970d7e133b | /unigrams.py | 0952f387893105dc3c1416b8c8009e7be65db437 | [] | no_license | lukaszarczynski/unigram-word--decipher | d16983b6b37d10509201a55bee2b39ce7c188c53 | f17147dffb20fc97b8571d212cf8ae2e23f7c33e | refs/heads/master | 2021-07-14T10:03:17.737881 | 2017-10-07T04:45:53 | 2017-10-07T04:45:53 | 106,587,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | from collections import defaultdict
from os.path import isfile
def find_ngrams(default_path=None, *, n: int=1) -> str:
"""Find file with n-grams"""
if default_path is None:
if isfile("{}grams".format(n)):
return "{}grams".format(n)
else:
if isfile(default_path):
ret... | [
"lukaszarczynski@gmail.com"
] | lukaszarczynski@gmail.com |
0fcb38ed4b11b89f3af06a4adbf4410b3eab6123 | 528f910908885c3ded4ecc6380b9603c8dcacbd6 | /tbapi/top/api/rest/SimbaRptCusteffectGetRequest.py | 58297bc4539f31f788a51628d13782982910cac7 | [] | no_license | Monica-ckd/data007 | 15fe9c4c898a51a58100138b6b064211199d2ed1 | 0e54ae57eb719b86ec14ce9f77b027882a3398a8 | refs/heads/master | 2023-03-16T05:26:14.257318 | 2016-05-25T06:57:05 | 2016-05-25T06:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | '''
Created by auto_sdk on 2013-04-01 16:44:41
'''
from top.api.base import RestApi
class SimbaRptCusteffectGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.end_time = None
self.nick = None
self.page_no = None
self.page_size = None... | [
"root@u16392468.onlinehome-server.com"
] | root@u16392468.onlinehome-server.com |
bb088eb9e09ae672bd47871761eb211e9a8dd6e4 | f1d87fa1373f91feb2effe852b1b7cbb514f654c | /hots_build_builder.py | 13b6c6baed35a0b8c7103cc54f8bc42af20812ee | [] | no_license | pust777/five-man-bot | 1391b71a3cbe52e1a3649cdec4b244c7112dff71 | a346bbe66ec16e1119e47c6659e53879ea975e01 | refs/heads/master | 2021-05-06T06:44:54.960655 | 2017-12-11T20:24:25 | 2017-12-11T20:24:25 | 108,369,039 | 0 | 0 | null | 2017-10-26T06:09:54 | 2017-10-26T06:09:53 | null | UTF-8 | Python | false | false | 4,288 | py | import json
import json_loader
import fetch
class BuildBuilder(object):
VALID_LEVELS = [1, 4, 7, 10, 13, 16, 20]
def __init__(self):
self.heroes_json = json_loader.get_json("heroes.json")
self.content_lookup = json_loader.get_json("content_lookup.json")
#TODO: break this out into smal... | [
"apkregness@gmail.com"
] | apkregness@gmail.com |
fb5e0cbc84d8801e24e350f9c849aaae07d4483e | 4de03eecadc4c69caf792f4773571c2f6dbe9d68 | /tests/api/test_beshared.py | 6362f1d3b23953ff61e2bcedd67f638da265f5a2 | [
"Apache-2.0"
] | permissive | Tr-1234/seahub | c1663dfd12f7584f24c160bcf2a83afdbe63a9e2 | ed255e0566de054b5570218cb39cc320e99ffa44 | refs/heads/master | 2022-12-23T16:20:13.138757 | 2020-10-01T04:13:42 | 2020-10-01T04:13:42 | 300,138,290 | 0 | 0 | Apache-2.0 | 2020-10-01T04:11:41 | 2020-10-01T04:11:40 | null | UTF-8 | Python | false | false | 2,540 | py | import json
import seaserv
from seaserv import seafile_api
from seahub.test_utils import BaseTestCase
class BeSharedReposTest(BaseTestCase):
def setUp(self):
self.login_as(self.admin)
def tearDown(self):
self.remove_repo()
def _prepare_repo_and_group(self):
# create repo for use... | [
"colinsippl@gmx.de"
] | colinsippl@gmx.de |
56c8337bee7ea95ec41e2241d1e8278262a491d6 | 43d56f77f5750582ecd249e9dd5f92fcf6c2003a | /f5_openstack_agent/__init__.py | d8d3bf24cab67d13eeb416520a2c0c75ae779de1 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | swormke/f5-openstack-agent | 89c24597d291669210ad752f0d40e0b0536cd59c | 3a35e599a429eca507327b52db4b698c109ecb7b | refs/heads/master | 2021-01-12T12:02:35.793548 | 2016-03-25T23:33:15 | 2016-03-25T23:33:15 | 54,804,139 | 0 | 0 | null | 2016-12-15T20:30:42 | 2016-03-26T23:27:52 | Python | UTF-8 | Python | false | false | 24 | py | __version__ = "2.0.1a2"
| [
"r.browne@f5.com"
] | r.browne@f5.com |
13071b693d1093b8a3d354a8f893b80c17d5fc33 | 04f856d2f186c5c1a162d73d63017cf132e8f636 | /Problem 022.py | 70344523926dd5019975c221975154c8fd24968d | [] | no_license | nstornetta/Project-Euler | b82eaa261ffc23a8efcc8b8ee26dc5951f93172f | 80495f069990b98000d9c49c16a344d2381d02ab | refs/heads/master | 2021-06-11T13:03:41.818371 | 2016-12-31T17:32:20 | 2016-12-31T17:32:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | # -*- coding: utf-8 -*-
"""Code to solve problem #22 of Project Euler. Problem reads as follows:
Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the alphabetical value for each name, m... | [
"nathaniel.stornetta@gmail.com"
] | nathaniel.stornetta@gmail.com |
d6b6ee08b2d359bc2bca2c186634a1e98a0d5a54 | ce8a380b9b5ad26555c1dc8468d3f467c55f2d4c | /helper_func.py | 4b6d5da76d30fe3613eaca03884e346c65483578 | [] | no_license | HaseFlrn/mpk | ab7437165d22f9d4581485591fc2cc89acbc0b07 | 6c63357fa14170cec927aeaf2580329ddfb05eef | refs/heads/main | 2023-04-23T05:05:17.765931 | 2021-05-06T20:34:07 | 2021-05-06T20:34:07 | 360,954,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | def any_of(a: list, f):
'''Erwartet ein Array a und eine Funktion f.
Liefert True, wenn f(el) == True für irgendein el in a gilt.
'''
return any(map(f,a))
def board_to_string(board: list):
'''Erwartet ein zweidimensionales Array board.
Liefert einen String der das Array als Spielfeld i... | [
"florianhase12@gmail.com"
] | florianhase12@gmail.com |
18c4533d40a354d79e401454e9c7ff0ae56aecb3 | 07697349fff8fd367ac1447ded53ceeb6a4c638a | /Web3/Homework/ex2.py | 787081ac115c568bec3fd3fa6f9480df24c63691 | [] | no_license | levuhachi/levuhachi-web-c4e23 | ea2ac43a2d8410469bd380a8c8527b83ca7e53f8 | ae3e0055ae0eab275ad17bdcf19f8eebdd9eb952 | refs/heads/master | 2020-04-07T18:29:29.992534 | 2018-11-29T10:03:05 | 2018-11-29T10:03:05 | 158,612,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from mongoengine import *
class Bike(Document):
model = StringField()
fee = IntField()
image = StringField()
year = IntField()
| [
"levuhachi@gmail.com"
] | levuhachi@gmail.com |
0f33a0a52984cf60cf2d8d8ebbea32f2f4e9dd42 | 096cbc69da4f9e649a9858292e01d5703b16eec3 | /bot-engines/crypto/strategies/basic.py | 9dea135325a895b5b8088e279ecd2f80fd2471d2 | [] | no_license | webclinic017/camelopardalis | 9a9daafc5d0385e95234fab4e16f1913883d83a8 | 98407ffead06abe45b3bd591ee96964bc80b4b9d | refs/heads/master | 2023-05-02T19:05:17.229276 | 2018-03-17T06:03:09 | 2018-03-17T06:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | from crypto.engine import Strategy
import logging
class BasicStrategy(Strategy):
def __init__(self, exchange, params):
super().__init__(exchange, params)
self.spreads = {k: float(v[0]) for k, v in params.items()}
def __str__(self):
return "Basic"
def analyze_market(self, market):... | [
"kdelaney@gmail.com"
] | kdelaney@gmail.com |
64b2dd0ee2448d18b763f3d2663e33790714d44c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /MbbX7qJJeEnQu9bKr_16.py | 770c027324993f571e65cc9d43a73570afc5f508 | [] | 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 | 217 | py |
def max_occur(text):
freqs = {c: text.count(c) for c in text if text.count(c) > 1}
if not freqs:
return 'No Repetition'
return sorted(c for c in freqs if freqs[c] == max(freqs.values()))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6d23004951c597c739a77280febec8db68afdaf6 | d8a5525d2e2070f0434e971b6b03df6d6457d47d | /torch_glow/tests/nodes/zero_test.py | 3a5472f453da540a4dc3a705bbf9d2e2a12c8655 | [
"Apache-2.0"
] | permissive | pytorch/glow | 0006dbac932da386ff1143cff166b89323aec337 | f35c3d180290c79d5d3578ccc800bb35ce88e420 | refs/heads/master | 2023-08-30T17:44:59.170945 | 2023-08-29T05:29:36 | 2023-08-29T05:29:36 | 105,281,531 | 3,201 | 780 | Apache-2.0 | 2023-09-14T08:29:16 | 2017-09-29T14:28:18 | C++ | UTF-8 | Python | false | false | 1,146 | py | # Copyright (c) Glow Contributors. See CONTRIBUTORS file.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
649f0194997c48869a652d931d142ca475e17023 | f136ed0998c0878291602880cb95ca38c209b6a7 | /week2/fibonacci_partial_sum/fibonacci_partial_sum.py | 750f8776deda6884c71b73e5e01751ca58fd39c7 | [] | no_license | Ahsan-hafeez/algorithmic-toolbox-1 | dba8513bf576436704bf9149ff1b8d6776dc3e3b | e6e6549cb13c43b5c04437dcbba19287edc93f11 | refs/heads/master | 2021-05-26T09:42:54.049282 | 2017-05-07T16:30:56 | 2017-05-07T16:30:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | # Uses python3
import sys
def fibonacci_partial_sum_naive(from_, to):
if to <= 1:
return to
previous = 0
current = 1
for _ in range(from_ - 1):
previous, current = current, previous + current
sum = current
for _ in range(to - from_):
previous, current = current, pre... | [
"ishita.mathur@delhivery.com"
] | ishita.mathur@delhivery.com |
a16fbaac25f830576c0b7c62c50f7f3306075440 | 8c209ec772d005795d8987a6b2111ed0cbacb42d | /tk46.py | 30f7749c1c168fdd8915a267b0a53fb0fcb03574 | [] | no_license | pirateunclejack/python-tkinter | 963cd789900697cd2c08c2cfdc2d2e2a55b7b432 | 867baec3f41a0173fbcd0f036000b5d5f6dcb910 | refs/heads/master | 2022-11-12T09:42:46.869774 | 2020-03-06T16:59:14 | 2020-03-06T16:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from tkinter import *
root = Tk()
w = Spinbox(root, values=("jifeji", "jifjeiowj", "ljfowiejfi", "ljifieji"))
w.pack()
mainloop()
| [
"piratexxoo@gmail.com"
] | piratexxoo@gmail.com |
17910e914d37e62bd10383f758b7f0ddc9d73682 | a4ed7efbe437b04f931fc16b4f9819b087ab668b | /WalkingPatternRecognition/mobileapp/models.py | f7d7a5013d20b1d7ec1ab063404856c40267bdb2 | [] | no_license | bjanadi97/WalkingPattern | 3121b8bc33758f57645e34f78221073eab0d5a55 | fc591dbc449433cb850b95c08599cc10f36195da | refs/heads/master | 2023-02-08T12:58:54.524344 | 2021-01-04T07:36:19 | 2021-01-04T07:36:19 | 297,689,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,736 | py | import django
# from django.db import models
from djongo import models
from django.utils import timezone
from django.contrib.auth.models import User
class Dog(models.Model):
GENDER_TYPES = (
('M', 'Male'),
('F', 'Female'),
('U', 'Unknown'),
)
name = models.CharField(max_length=50)
... | [
"it17133678@my.sliit.lk"
] | it17133678@my.sliit.lk |
d7e0c7f393629eae2b09e969954df81cbf1967f0 | 564166cae3e08b042a675a57ddeb1d53b76575d5 | /session1/hw/hw1/aoc.py | b2bb99033954cac9e4657798d5c74caf04e81d38 | [] | no_license | bakegane/LEANHTUAN-Fundamentals-c4e3 | cc897d2604a66939c854cbdb14df3a79126c0166 | f9624e6019bb2b15098987a7beaf1d45f7e9ebdc | refs/heads/master | 2020-04-02T15:50:13.492521 | 2018-11-02T02:33:27 | 2018-11-02T02:33:27 | 154,585,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | Radius = int(input("Radius? "))
pi = 314/100
n = "Area = "
print( n + str(((Radius)**2)*pi)) | [
"bakegane@gmail.com"
] | bakegane@gmail.com |
d23605f3e9cbada9b9d86d9dc07595f757f96f99 | 52bf1b51ca26e9c284aff5beb0b370bbed87beba | /DerpBox/derpbox_flask_app.py | 73b5582ec8b6ee733b03589d0b10635defeb12cb | [
"MIT"
] | permissive | warisb/derpbox | 4002655c66b11c240e79c2c533f0a78a0fc1cbec | 77b17450464acaab3a0c7aafd464ac965dabc8cd | refs/heads/master | 2020-12-25T18:33:56.731392 | 2017-06-17T21:00:59 | 2017-06-17T21:00:59 | 93,972,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,475 | py | #!/usr/bin/env python
"""foobar.py: description"""
import base64
import os
import threading
from flask import Flask, jsonify, abort, request
import file_utils
from derpbox_synchronizer import DerpboxSynchronizer
from time import time as get_time
__author__ = "Waris Boonyasiriwat"
__copyright__ = "Copyright <year>"
... | [
"waris.boonyasiriwat@gmail.com"
] | waris.boonyasiriwat@gmail.com |
e4c25a8d5dc51d21e303e14da91976b9410980d3 | 263ea65622ae574e451eadf714d1374b83f774bb | /score_2021.py | 2264dd1a8c99ea01b50e86eda1505e3f638afc9d | [
"MIT"
] | permissive | breeeak/AF_location | 6a1a6c5c679dafc63a1f0216467f97fae433e97a | 2936963a317cdc540eb29d4e26e0076b93dc6a50 | refs/heads/master | 2023-09-06T03:20:54.985781 | 2021-10-26T07:41:42 | 2021-10-26T07:41:42 | 420,609,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | py | #!/usr/bin/env python3
import numpy as np
import json
import os
import sys
import scipy.io as sio
import wfdb
"""
Written by: Xingyao Wang, Chengyu Liu
School of Instrument Science and Engineering
Southeast University, China
chengyu@seu.edu.cn
"""
R = np.array([[1, -1, -.5], ... | [
"1060913206@qq.com"
] | 1060913206@qq.com |
9ab76eca08ef1cb5ad821f5cc8b000188f945e5e | ae405b372cbe52231b1389bb89d76cbc0101aab4 | /mlp_multi.py | 5d4c753f7f641037488ddb582467e41aeab0a08a | [] | no_license | riyakothari/Pytorch-implementations | 98e77975fd85852ddfb3c2b70eae0e676e4cbbfe | 495bbd492ad8174da8383f656ba0bf000e2c9eb9 | refs/heads/master | 2022-12-02T03:50:22.928808 | 2020-08-26T10:15:33 | 2020-08-26T10:15:33 | 266,732,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,049 | py | import os
import torch
import pandas as pd
import argparse
from sklearn.preprocessing import LabelEncoder
from torch.utils.data import random_split
from torch.utils.data import Dataset
from torch.utils.data import DataLoader
from torch.nn import Module
from torch.nn import Linear
from torch.nn import ReLU
fr... | [
"noreply@github.com"
] | noreply@github.com |
5208e1c92fee3e1d99f96396e13c947a88b15100 | f68ff0a3fb13796238ac786994488c252bd1ff35 | /manage.py | d96156ee9c043815218d4c082716de95812986f1 | [] | no_license | dmytro-barchuk/kititsa | 758a7a95c8d5d12e5afe4ac75dc5a7c7a050c9e0 | af025c0630b5f9d603f3b61c0cbb445fee46aff0 | refs/heads/master | 2023-04-13T06:51:00.956939 | 2021-04-27T08:30:26 | 2021-04-27T08:30:26 | 357,507,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'kititsa.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"dvbarchuk@gmail.com"
] | dvbarchuk@gmail.com |
fb41bef4006d05267a3398d303727b5a6a217ee7 | e95dde4f20cc9f290b8a26009d3a98d407d56be8 | /signalMC_production_crab/step1_step2/step2.py | 3b4f6cbbb8e704f952d2270611b1cf2d003f964b | [] | no_license | syuvivida/DM | 12dfa02c138b25ab27da7e695def4bba830cb8e7 | 1e33aed481486b237d47bc9d044cb07050b4784f | refs/heads/2016ana | 2021-06-15T13:54:56.146284 | 2019-04-05T12:59:31 | 2019-04-05T12:59:31 | 26,820,615 | 0 | 4 | null | 2017-10-01T07:22:02 | 2014-11-18T17:16:44 | Python | UTF-8 | Python | false | false | 4,046 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step2 --filein file:B2G-RunIISpring16DR80-00816_step1.root --fileout file:B2G-RunIISpring16DR80-00816.root --mc --eventcontent RAWAODSIM,DQ... | [
"syu@ncu200.cern.ch"
] | syu@ncu200.cern.ch |
bf25f5cf468bc4623c4e62cbecbe2dd3f21462a4 | ab48377c6f23b93ee2271536df70a494699ef281 | /blog_project/blog/views.py | 50e7f0c73e658c69b72e5cfec0cf6099c8919861 | [] | no_license | keshabthanet/Django | a798d085c5d86afcc96bd9eead71b6ab68f7dbfe | 50cb3d070e7b1bac6cd7b9889eecd0b75c888206 | refs/heads/main | 2023-03-07T10:36:24.057146 | 2021-02-26T15:47:50 | 2021-02-26T15:47:50 | 335,872,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.decorators import login_required
from blog.models import Post, Comment
from django.utils import timezone
from blog.forms import PostForm, CommentForm
from django.contrib.auth import login,logout
from django.views.generic import (... | [
"keshab.thanet0806@gmail.com"
] | keshab.thanet0806@gmail.com |
520cdfb888fb96b3e45e8823596507a3dcbccd74 | 5cab04f1e1fc76bb749e3fd661c89cf833ae0800 | /budgetless/db.py | 10ab33e305db164d01118467d563a0891e2c8e79 | [] | no_license | matthewwardrop/budgetless | 4f2916298a4246cc7bacacf1a5d9abae789483f9 | 5b57c46ac9f1238a61018094ea2c92b7332fb6af | refs/heads/master | 2021-01-18T02:26:54.152396 | 2016-05-11T19:36:23 | 2016-05-11T19:36:23 | 55,863,230 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | from sqlalchemy import Table, Column, Integer, String, MetaData, ForeignKey, \
Date, Boolean
import datetime
db_metadata = MetaData()
tbl_src = Table('providers', db_metadata,
Column('id', Integer, primary_key=True),
Column('provider', String, nullable=False)... | [
"mister.wardrop@gmail.com"
] | mister.wardrop@gmail.com |
a2e316b27ab73c451a00b3bced56a770902bd00b | b0bead69a109cc24c1671f7a4b2d1b7bc31c989d | / quiz.py | c5f13b9ecf1325f58df140445023dfe23d7335f9 | [] | no_license | tristanbriseno/CS1.0 | d7853ada5a2f5c008b9224ada86b336216fa4562 | f0f597bd9f9d1357cfbf25b9e0d9efae09d16973 | refs/heads/main | 2023-01-31T00:23:30.206964 | 2020-12-06T03:39:49 | 2020-12-06T03:39:49 | 292,704,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from random import choice
def get_translation(user_response):
Monday = ["lunes"]
Tuesday = ["martes"]
Thursday = ["jueves"]
if user_response == "Monday" :
return choice(Monday)
if user_response == "Tuesday" :
return choice(Tuesday)
if user_response == "Thursday" :
return choice(Thursday)
... | [
"tristan.k.briseno@gmail.com"
] | tristan.k.briseno@gmail.com |
905983c22f49fb899e34721f66a727b0bc0f0504 | fcbbe36d5764e78224edf5bd1106a5498f7ea742 | /src/DeepRL/world.py | 4b9d04966592f705719fecd918d8069431f42fa1 | [] | no_license | asinghani/StanfordAiCourse | d552b572cf65c2ea3673643316ba6f028933a424 | 0740d8afdd4c66431afec9290882e3258860b91b | refs/heads/master | 2021-09-18T13:10:30.369165 | 2018-07-14T16:43:17 | 2018-07-14T16:43:17 | 138,753,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,654 | py | from __future__ import print_function
import numpy as np
from robot import Robot
from point import Pt, _epsilonEquals
# Obstacle class (only rectangles)
class Obstacle:
def __init__(self, cX, cY, width, height):
self.x = cX
self.y = cY
self.width = width
self.height = height
... | [
"anish.singhani@gmail.com"
] | anish.singhani@gmail.com |
d9754dc77930600ce653090ce390599beb6b0d10 | 9c90ae97eb8db8775d20604c32fccbded1940950 | /aiprojectone.py | 1acdb65df8c450447ae99d9092d1009eac152d7d | [] | no_license | Arslan976/python-basics | e067ff3c7c98edc736d6e200be5e72ac8095f1bb | c3292266ecd3ef2f10b15adaad9aa5ca1660176b | refs/heads/main | 2023-02-25T13:01:32.925354 | 2021-02-09T01:49:19 | 2021-02-09T01:49:19 | 336,964,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,867 | py | # author Arslan Faisal CSU ID : 2809340
# Simple Instruction for running this program
# When you run the program it will ask you for any input out of 1 2 3
# These number are according to the task
# You can run one task at a time, for the other task you would have to run program again
# If you want to see output... | [
"noreply@github.com"
] | noreply@github.com |
1d93490e2e1d14d03efa2b19074b8100b77c383e | 461344f83fe32d67456740fbf5a5eabb1a798f44 | /backend/venv/Lib/site-packages/django/utils/translation/__init__.py | 02025da9e4b91fffd99195506f90763355fdf9b3 | [
"MIT"
] | permissive | Mustard030/vue-django-shop | 6903fa821bb19828afc357b8c8142ffd20246af4 | a51706b30bcdeaa360772c17086d8ef44e4081cd | refs/heads/main | 2023-05-15T08:27:35.866373 | 2021-06-14T05:20:56 | 2021-06-14T05:20:56 | 315,927,957 | 3 | 0 | null | 2021-01-02T16:45:31 | 2020-11-25T12:08:08 | Python | UTF-8 | Python | false | false | 10,889 | py | """
Internationalization support.
"""
import warnings
from contextlib import ContextDecorator
from decimal import ROUND_UP, Decimal
from django.utils.autoreload import autoreload_started, file_changed
from django.utils.deprecation import RemovedInDjango40Warning
from django.utils.functional import lazy
from django.uti... | [
"978090944@qq.com"
] | 978090944@qq.com |
b5995ba400cdef8251e2ed83be1b7a3160a382e1 | 627cca9406c31ce30c493ff7502f79eb4c57eee3 | /xcha/pools/pool_config.py | 2302aa6557d98b0686a6c0e7e602138bfb72a332 | [
"Apache-2.0"
] | permissive | blockchiansea/xcha-blockchain | 40c6d36813f671e94316a522904238f495f39f6b | 7de0ba89056236e30069aef12fe25843f6093bcf | refs/heads/master | 2023-07-26T02:36:57.654196 | 2021-09-06T06:04:21 | 2021-09-06T06:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,801 | py | import logging
from dataclasses import dataclass
from pathlib import Path
from typing import List
from blspy import G1Element
from xcha.types.blockchain_format.sized_bytes import bytes32
from xcha.util.byte_types import hexstr_to_bytes
from xcha.util.config import load_config, save_config
from xcha.util.streamable im... | [
"xchanet@gmail.com"
] | xchanet@gmail.com |
e7d81a7577d3b65bc925c64ee243bef5e6769399 | b89986de291597e2e7aca7b6292be36e13809e61 | /app/users/models/user.py | fcad1f935f3f0921bba86d65e3c8b103b75c82d2 | [] | no_license | karolkrych/terms-of-services | dfa1f1b5fbd783f6aeea63241f5be2207b0c09f2 | df4516dd885c0e3c367e55251c2253987d13303e | refs/heads/master | 2022-12-10T17:21:33.895018 | 2020-02-23T15:04:10 | 2020-02-23T15:04:10 | 241,946,380 | 0 | 0 | null | 2022-12-08T03:39:23 | 2020-02-20T17:26:35 | Python | UTF-8 | Python | false | false | 226 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
street = models.CharField('Street', max_length=255)
postcode = models.CharField('Post Code', max_length=255)
| [
"kkrych@surgecloud.co"
] | kkrych@surgecloud.co |
f46cab725867b423a70019993fb07366449bc5bd | ed39d0932ae5e35a8366a18d7f1265a3872c9f43 | /main.py | a293136aa8e937fa4f637d48cfa0adc232c42002 | [] | no_license | imtaehyun/stock | a172faecd0537f3ee49837c26f689212e5954e03 | cb29e2e5e99992d414b758778c76da8eb982a5ea | refs/heads/master | 2021-01-17T12:57:46.417530 | 2016-06-22T08:31:48 | 2016-06-22T08:31:48 | 58,919,537 | 2 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | #-*- coding: utf-8 -*-
import sys
from kiwoom import Kiwoom
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow, QTextBrowser, QListWidget, QTableView, QTableWidget
from PyQt5.QAxContainer import QAxWidget
from PyQt5.QtCore import pyqtSlot, QAbstractTableModel, QVariant, Qt
from PyQt5 import uic
class MyWi... | [
"140179@shinsegae.com"
] | 140179@shinsegae.com |
147696cca2192290bf3e8a14b32aaac3be75e321 | 8f3e9c04251be16a498bec0bbc9b5c6722543411 | /Classification/Kernel SVM/kernel_svm.py | f1a2bb4849bbce4ff1d8afe1505c08b0dbddcb9d | [] | no_license | vaibhavbhanawat01/Machine-Learning-Models | ff04dd422d155fb273a9d79c3f13a0636b69e6c6 | 39d5d14be97186087fd92f05585ebd4f959c9dc8 | refs/heads/master | 2021-04-02T16:24:28.826888 | 2020-05-24T16:30:19 | 2020-05-24T16:30:19 | 248,294,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | import numpy as np
import matplotlib.pyplot as mat
import pandas as pd
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:,2:4].values
Y = dataset.iloc[:, 4].values
from sklearn.model_selection import train_test_split
X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size = 0.25, random_s... | [
"vaibhavbhanawat01@gmail.com"
] | vaibhavbhanawat01@gmail.com |
29024940ecc8c5decfcc86b0477948dfcd33bc30 | be15b2ec2bcbcc782d9e45648e8ffcccdc64cc8c | /mriver_osagga/kmeans_ny_uber_pickup_points.py | 2f67b907780bd7e4a65816721bc2e2432f99900f | [] | no_license | maximega/course-2019-spr-proj | 71d67d1a48bc21fb6120e3689bc12654625970ff | 90284cf3debbac36eead07b8d2339cdd191b86cf | refs/heads/master | 2020-04-22T18:06:00.856289 | 2019-05-01T22:00:49 | 2019-05-01T22:00:49 | 170,565,563 | 2 | 0 | null | 2019-04-30T02:51:47 | 2019-02-13T19:21:24 | HTML | UTF-8 | Python | false | false | 5,604 | py | import urllib.request
import json
import csv
import dml
import prov.model
import datetime
import uuid
from io import StringIO
from sklearn.cluster import KMeans
import numpy as np
import matplotlib.pyplot as plt
import geopy.distance
from collections import defaultdict
class kmeans_ny_uber_pickup_points(dml.Algorithm)... | [
"osagga@bu.edu"
] | osagga@bu.edu |
0c2564c74f11c92624cfde26e3724565ec38a320 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/financials_beta/azext_financials_beta/vendored_sdks/financials/aio/_financials.py | d04272fa50b6915e7ad0d391b9af5cb2f0907b76 | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 26,543 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
9a464c4fd56093f9f499fdba4af48fc51bfa8c7d | 2385e1e02ecff63a1b6b896c21d549af8c550f0d | /blog/migrations/0002_haber_slug.py | 9a0ea34f1bd49b9d1428173fe076b61e6e9350ee | [] | no_license | otay95/dDers | 29e230a091312865e491c46eff723d4b1e2ab7b3 | 6380a425bc5d7fe9762eea2a33f53d1cab77b0ea | refs/heads/master | 2020-09-17T07:05:05.519711 | 2019-11-25T21:06:07 | 2019-11-25T21:06:07 | 224,030,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 2.2.7 on 2019-11-25 20:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='haber',
name='slug',
field=mod... | [
"burak.karahan@mail.ru"
] | burak.karahan@mail.ru |
066ee00da75844cf57cb4f5e8d3c9f4958f060e3 | 67af82e4e3e654fd59dc8e14479907c084d68e4b | /LeetCode-Python/456. 132 Pattern.py | 7bc8d687b7f8db59f5e36de73902e8685ad81d66 | [] | no_license | KaranJaswani/Codes | 6ba3f90cc3a0908ccfa4cf4c9b4794f5de6c63a6 | 0a833b8f666385500de5a55731b1a5590827b207 | refs/heads/master | 2020-05-30T07:12:37.383960 | 2017-12-30T14:06:45 | 2017-12-30T14:06:45 | 68,880,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | import sys
class Solution(object):
def find132pattern(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
stack = [- sys.maxint - 1]
for l in range(len(nums) - 1, -1, -1):
if nums[l] < stack[-1]:
return True
else:
... | [
"karanjaswani123@gmail.com"
] | karanjaswani123@gmail.com |
7964c30a21eee59aa05a36ea294835c5058356db | e1fb8f1456a5afc8dcd75d953b34b67f23dfbdcd | /main.py | 3de4547cd3e1aba64a430ed934a0ae46956170da | [
"MIT"
] | permissive | bboysteed/splint | cc90a41888d9e11afbeef4f4160717e66aa17d1b | 332ed0f94126ff14cc839177e9f50daae55cca6d | refs/heads/main | 2023-03-29T05:50:15.315013 | 2021-04-11T04:10:08 | 2021-04-11T04:10:08 | 354,812,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | # -*- coding: utf-8 -*-
"""
@requirement
- python版本大于3.5
- splint cppcheck有环境变量
@用法
python main.py test.c
"""
import csv
import re
import subprocess
import sys
try:
agv = sys.argv[1]
except IndexError:
print("\033[32m{}\033[0m".format("""
error: 错误语法
@用法
- python main... | [
"18811603538@163.com"
] | 18811603538@163.com |
baa93bdab2d277b0b2d6e603286334f3c50f26bf | 494207bd3dfdaefd6dbe5a8b7ff09fb2d75ab42b | /lib/logs.py | 66fe0dd27ddb03a4f6076b7598d809eab4812549 | [] | no_license | XnailzX/SaOSD | cb543f5fc3e3909b4477c7974d2f33f933c3ff6b | 95ff48220c3508a5b0a3ef10160e9627c5a5fc19 | refs/heads/master | 2021-01-21T22:14:33.949978 | 2017-09-05T12:41:00 | 2017-09-05T12:41:00 | 102,137,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | # Copyright 2016 Google Inc. 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 applicable l... | [
"noreply@github.com"
] | noreply@github.com |
7dcd0d21bcc5c03eccb8ef348421dd586a257fa2 | 8cf64b65696d72676fb35a3a0e4609a831847531 | /train0812.py | 1741997a93307e3e3fa30585439fb4bd698d020f | [] | no_license | he13689/yolo | 01acf27f6863d0f139b17e1ef5f12c0886baeca1 | 1f963d35c77686119f662a6239297835ba7e1c8a | refs/heads/master | 2023-07-15T23:31:07.947452 | 2021-08-23T05:58:21 | 2021-08-23T05:58:21 | 395,178,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,863 | py | '''
稳定版 的 0.1.1 version ,请不要随意改动 我们的algae数据集使用了加强 数据集样本数量为2倍
0812进行更新, 更新内容亟待调试
更改明细:
启用 Diou nms 和CIoU Loss
在Algae上 13 epoch 出现 val结果
改变batch size 为 64 (4个16之后更新)
使用finetune参数 其中lr0等关键参数都经过了调试,能够更好地训练模型
改变了模型加载参数的方式和位置
更新了损失函数的计算方式, 加入了正样本的权重 加入了自动平衡
降低了val中的threshold 0.7 to 0.6
使用scratch 参数从新训练 hyp.scratch.yaml
改... | [
"375004220@qq.com"
] | 375004220@qq.com |
f22064ed8768216f70b3b13d681b0a8f00c8a85f | 10cc7199261f486a341a7e76ca511f3944cffa80 | /mysite/views.py | 0146addb91e016dcaae6cc7d4959a26ce36bdf92 | [] | no_license | ravinarayanaA/FoodRecommender | f0b485d87864dada489314fada983848e50cf85e | 8f239a27a0179252cda5b1785a658d09451fa6ab | refs/heads/master | 2020-12-24T21:28:12.268564 | 2016-05-10T05:45:37 | 2016-05-10T05:45:37 | 58,381,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | from newproject import find_items
from restaurants import find_rest
from django.shortcuts import render
from django.http import HttpResponse
from .forms import NameForm
def get_name(request, path):
# if this is a POST request we need to process the form data
if request.method == 'POST':
list1 =[]... | [
"a.ravinarayana@gmail.com"
] | a.ravinarayana@gmail.com |
597b2eeb07a225e27e857b13ac3462eadb1344ea | ce208e1d0653122fb976e1fa7431965fbd3f8fc4 | /1.1.6/controlDB.py | 6f911e720261963e21ec2d556876a9ce415ea558 | [] | no_license | yidongyi/python | f6e3d8144ed6b1b76f3df17f4f0b307e934826ff | 96f66fb6106dfdbdfc3dc98cde770ffa69bfe979 | refs/heads/master | 2021-07-08T10:45:57.047518 | 2017-09-24T11:04:47 | 2017-09-24T11:04:47 | 104,637,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #-*-coding:utf8-*-
from pymongo import MongoClient
import time
# mongo_uri_auth = 'mongodb://user:password@localhost:27017/'#mongo有要验证的话请自行替换user和password
mongo_uri_no_auth = 'mongodb://localhost:27017/' #mongo没有账号密码验证的时候用这个
client = MongoClient(mongo_uri_no_auth)#创建了与mongodb的连接
db = client.YDY
table = db.t #获取数据库中表... | [
"530860979@qq.com"
] | 530860979@qq.com |
530662a6281618ea8aab5d9d5d88658c84398fb5 | abd8121ab19a59e900e2d20633b9edb2d3a664ec | /tiny-imagenet/train_tiny_imagenet.py | 57a6aebb2888c8b9279b934d7fe373eb0fafa499 | [] | no_license | djsaunde/rinns_python | e5650871c6f02a56c8beed2fa5a2495e1d68e714 | c576608fca46421b582863e43f88b3a11da41534 | refs/heads/master | 2021-03-16T08:32:41.805236 | 2017-07-03T16:47:12 | 2017-07-03T16:47:12 | 94,337,774 | 6 | 1 | null | 2017-06-21T18:06:03 | 2017-06-14T14:07:32 | Python | UTF-8 | Python | false | false | 7,107 | py | import os
import sys
import keras
import argparse
import numpy as np
import tensorflow as tf
from get_tiny_imagenet import get_data
from keras import losses
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten, BatchNo... | [
"rmccorm4@binghamton.edu"
] | rmccorm4@binghamton.edu |
663b5899829bdbb4124124d399856750e86dabcb | f427813dbf9fb39127f3581ce660e353cd81ac6a | /reviews/trustpilot.py | 0c330384e65c6a9f3d653fcf1ca769dddb11d6dd | [] | no_license | pkardas/reviews | 759b0806af43502dfa07945c99e52e974bfc9e16 | e156c3960b9efe0beab338c69192911c1ab0a1c2 | refs/heads/master | 2023-04-20T17:03:48.944058 | 2021-04-23T19:24:04 | 2021-04-23T19:24:04 | 360,467,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,403 | py | import csv
from typing import List, Optional
from bs4 import BeautifulSoup
from reviews.gateways import get_website_html
from reviews.models import Review
class TrustPilotReviews:
def __init__(self, reviews: List[Review]) -> None:
self.reviews = reviews
def to_csv(self, folder_path: str = ".") -> N... | [
"pkardas.it@gmail.com"
] | pkardas.it@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.