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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e139bb21e3e65931f79037851b518967a20f1bdf | 6ce7ec83576e8021d050f86cd4c696a142f1798a | /final_exam/02.problem.py | 3bca39f6d99a95ed5fcbb067e335e57b32331afe | [] | no_license | Nanko-Nanev/fundamentals | 2707e20900dc779b96d453c978e8e74f1fb86fa4 | f46a655ff32bbfe6f3afeb4f3ab1fddc7a0edc89 | refs/heads/main | 2023-02-09T18:39:55.305854 | 2021-01-07T10:30:37 | 2021-01-07T10:30:37 | 326,507,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import re
pattern = r"^(\$|%)(?P<tag>[A-Z]{1}[a-z]+)\1:\s\[(?P<t1>[0-9]+)\]\|\[(?P<t2>[0-9]+)\]\|\[(?P<t3>[0-9]+)\]\|"
n = int(input())
for i in range(n):
data = input()
result = re.match(pattern, data)
if result:
obj = result.groupdict()
tag = (obj['tag'])
a = chr(int(obj['t1']))
... | [
"75886522+Nanko-Nanev@users.noreply.github.com"
] | 75886522+Nanko-Nanev@users.noreply.github.com |
7cc1e02baa1ff8a47e4b543d8df9d4f42f3110fc | 2ea2631c1c7fd49d5c177f4b804b8470bdd62a82 | /sievePlot.py | 707c12b294296830c2404c227e276f6c54faeee4 | [] | no_license | Shichimenchou/CS4700FinalProject | abf733e83ee248eff98bb8ca6bc1d0d6a8e772fa | b80480bae028c714b5c8f812e2aa587c3f1092e4 | refs/heads/master | 2022-04-23T20:29:59.202388 | 2020-04-28T05:34:10 | 2020-04-28T05:34:10 | 259,216,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from pylab import *
t = arange(10, 31)
cpp = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 2, 4, 9, 20, 41, 83, 173]
julia = [0.000038, 0.000065, 0.00012, 0.00027, 0.00058, 0.0011, 0.0021, 0.0048, 0.0084, 0.018, 0.041, 0.094, 0.21, 0.61, 1.03, 2.05, 4.21, 9.77, 26.62, 76.77, 379.12]
python = [0.00025, 0.00058, 0.0010, 0.... | [
"linsonphillip@yahoo.com"
] | linsonphillip@yahoo.com |
3d07439a0606060f4f49825121ce14c2c92590b0 | e6c506beafef296be2f60c3809b36c96c7374224 | /左旋转字符串.py | 87a697603b995532a2bcc0e42f07e4a2dc49236e | [] | no_license | Liubasara/pratice_code | d435c982379e377e3cb657d77e207f4f51f5e3b5 | 353363780b0918802e9457aee8ec2a8acc0c24fb | refs/heads/master | 2023-08-18T01:29:00.676510 | 2023-08-10T11:09:11 | 2023-08-10T11:09:11 | 137,707,904 | 0 | 0 | null | 2023-01-08T07:34:21 | 2018-06-18T03:54:33 | JavaScript | UTF-8 | Python | false | false | 72 | py |
if __name__ == "__main__":
a = [1,2,3,4,5,6]
print a[1:]+a[:1] | [
"followsin@gami.com"
] | followsin@gami.com |
3586db050a69dcf9aa2c251478a20d1daa1a8560 | 7eed53aaefbac57b374b31946ea2b26ff55e0e44 | /scripts/poc-7segment.py | d165774207b3d24e307b319de89e547f22bcc962 | [] | no_license | Nickardson/tracy-the-turtle-projects | 580b268a7ab3b9abc47c343a1e7cf4462ffc746b | 0545c2cd42b6a22544794b207ac2bc51475268da | refs/heads/master | 2022-12-12T07:54:19.942076 | 2020-03-06T01:01:56 | 2020-03-06T01:01:56 | 237,668,470 | 0 | 0 | null | 2022-12-11T22:53:59 | 2020-02-01T19:45:42 | Python | UTF-8 | Python | false | false | 2,182 | py | from turtle import Screen, Turtle
screen = Screen()
screen.setup(950, 200)
screen.register_shape('segment', ((-14.5, 0), (-12, 2.5), (12, 2.5), (14.5, 0), (12, -2.5), (-12, -2.5))) # <=>
SCALE = 1.75 # arbitrarily scale digits larger or smaller
CURSOR_SIZE = 25 # maximum dimension of our custom turtle cursor
SPA... | [
"taylorgratzer@yahoo.com"
] | taylorgratzer@yahoo.com |
a5b48a72bcda4d1aa680865c3ef883043afe3f26 | ff01890e8c6090cd7519da93a96d96a11235ec94 | /utils/flow_resolver/protocol.py | 74c97372118610e128a1103c7b503297c8b19ec5 | [
"Apache-2.0"
] | permissive | DeckerCHAN/shadowsocks | 707fbd19448919462bf9249c0e8feb557b9db1dc | 29afedb748b0ca2051def24b3bed430f522b4adf | refs/heads/master | 2021-01-15T21:30:02.355942 | 2015-05-09T05:09:49 | 2015-05-09T05:09:49 | 32,707,288 | 0 | 0 | null | 2015-03-23T02:38:19 | 2015-03-23T02:38:19 | null | UTF-8 | Python | false | false | 100 | py | __author__ = 'Decker'
class ProtocolType:
TCP = 1,
UDP = 2,
HTTP = 3,
UNKNOWN = -1 | [
"DeckerCHAN@gmail.com"
] | DeckerCHAN@gmail.com |
12772ef7ee948e7a258e8f3156c4960d0078d2b9 | 37ca51c6c0b21b9b6efbc437bca34f433384ffee | /solution/bit_map/no_16_power.py | e7912d98fad93dc217ff4e334db2a44507a87e3a | [
"MIT"
] | permissive | LibertyDream/algorithm_data_structure | 2ea83444c55660538356901472654703c7142ab9 | 5d143d04d001a9b8aef30334881d0af56d8c9850 | refs/heads/master | 2020-05-18T00:52:59.457481 | 2019-12-31T09:21:46 | 2019-12-31T09:21:46 | 184,074,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | '''面试题16:数值的整数次方
实现函数 double Power(double base,int exponent),求base的exponent次方。
不得使用库函数,同时不需要考虑大数问题
-------------
Example
input:2,3
output:8
---------------
功能、边界、负面测试,错误返回方式
'''
def power(base:float, exponent:int):
if not isinstance(exponent, int):
raise TypeError('exponent must be an integer')
if a... | [
"mfx660@163.com"
] | mfx660@163.com |
cafc4911927a1bc3db70b0421caa2bd1947264dc | 5928d9dcf1ff48f5c9d1a491fd170886d4af4b9e | /walltime1s/time_diff.py | 2d35bd10713fac06055fb9354a1c9da5a913e757 | [] | no_license | xyongcn/qemu-tprof | 1ad76dd166eea692487153359c1d61a237eeb42c | 7c30f139e2d662d2bbc6d3a0925053b194f4e3bc | refs/heads/master | 2016-09-05T21:15:59.188610 | 2014-12-15T07:58:06 | 2014-12-15T07:58:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!/usr/bin/python
import sys
log=sys.stdin
def get_tusec(p_line):
words=line.split(":")
words2=words[1].split(",")
sec=words2[0].strip()
usec=words2[1].strip()
tusec=int(sec)*1000000+int(usec)
return tusec
line=log.readline()
t1=get_tusec(line)
while True:
line=log.readline()
if not... | [
"myming@ubuntu-xyong.(none)"
] | myming@ubuntu-xyong.(none) |
31affbaa13b3b6dbe80804986e0fff5b1236c8cd | 63e903bd5448de49d666d00ae1cef76ba7e41b93 | /venv/Scripts/pip3.8-script.py | 986a0efffcb314557212eb151bb063f4e90a870c | [] | no_license | North-Poplar/untitled1 | 0958c01dfa92700876fd6a97a206cbd6c52175a2 | 06b1b025a7a2f66ce1d81a9e4ec1e164259cdb3a | refs/heads/master | 2022-11-11T18:21:33.833494 | 2020-07-04T14:55:54 | 2020-07-04T14:55:54 | 277,105,098 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!C:\Users\18505\PycharmProjects\untitled1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__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.a... | [
"2481253805@qq.com"
] | 2481253805@qq.com |
2c535cfcb097e6b1a7f0880f3a022b2d331efe16 | b6c6d71b2c0c00540a6387ddd1e27db096d2f442 | /AIlab/certainty_facor.py | 85096f6a6ca860f1b181765f697481ee593bca29 | [] | no_license | raghavdasila/General-programs | 26bb5daddd054f8e6d56924ecb87884e687c8a53 | a9f2899ad2b048291793bbdf3dac808b571f9f13 | refs/heads/master | 2021-07-07T05:30:52.374798 | 2017-10-05T04:40:17 | 2017-10-05T04:40:17 | 104,132,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | if __name__=="__main__":
print "Medicine Accuracy Testing (Enter percentages)"
print "Enter sensitivity"
se=float(raw_input())/100.0
print "Enter Specificity"
sp=float(raw_input())/100.0
print "Enter percentage of users"
up=float(raw_input())/100.0
print "Enter population"
p=float(raw_input())
pv=(se*up)/(se*... | [
"noreply@github.com"
] | raghavdasila.noreply@github.com |
0a6a1c337560a7be7affe868a65af85fb574f072 | 15581a76b36eab6062e71d4e5641cdfaf768b697 | /LeetCode_30days_challenge/2021/February/Peeking Iterator.py | 1c47322e8ae397e80fa7c43ca73eea44f3a2c292 | [] | no_license | MarianDanaila/Competitive-Programming | dd61298cc02ca3556ebc3394e8d635b57f58b4d2 | 3c5a662e931a5aa1934fba74b249bce65a5d75e2 | refs/heads/master | 2023-05-25T20:03:18.468713 | 2023-05-16T21:45:08 | 2023-05-16T21:45:08 | 254,296,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | # Below is the interface for Iterator, which is already defined for you.
#
# class Iterator:
# def __init__(self, nums):
# """
# Initializes an iterator object to the beginning of a list.
# :type nums: List[int]
# """
#
# def hasNext(self):
# """
# Returns true if... | [
"mariandanaila01@gmail.com"
] | mariandanaila01@gmail.com |
bc74fafeb39a89942c02e53e1e406997948fc37a | d78e6d49aeb50b9a408ed0d423e96df3be7850e3 | /prototypes_v1/ui_v0/server/env/bin/flask | 2a0105ea5ea486926b7b370d5e8891df932ff422 | [] | no_license | jdunjords/birds-iview | 77e3fb0815d10fbf971c10b7b28c99a947ef628c | e8da36a46f49827eebf16b6acbb6b3967de41f4c | refs/heads/master | 2023-03-06T06:23:43.801460 | 2021-02-09T01:35:47 | 2021-02-09T01:35:47 | 295,505,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/jordancolebank/Desktop/programming/capstone/server/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jordancolebank@Jordans-MacBook-Air-3.local"
] | jordancolebank@Jordans-MacBook-Air-3.local | |
58d2f98a4c78f4b9506164627358da2605c36583 | 6bb3a6087257094c963a819cba72ff122eb526b1 | /model/mxnet_/mobilenetv3.py | 63c0bf7d5664ca36ca24ddd9581c497ef2fa2e43 | [] | no_license | manhngodh/spdoor | 67efa2d23514134626df15de820f25d774043d18 | f790a3ede681f5c3921a891f862066350a0ecc02 | refs/heads/master | 2022-12-14T19:48:16.591183 | 2020-09-11T09:59:18 | 2020-09-11T09:59:18 | 293,794,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,156 | py | import math
import mxnet as mx
import mxnet.ndarray as nd
import mxnet.gluon as gluon
import mxnet.gluon.nn as nn
import mxnet.autograd as ag
# import symbol_utils
def make_divisible(x, divisible_by=8):
import numpy as np
return int(np.ceil(x * 1. / divisible_by) * divisible_by)
# def adaptiveAvgPool(inp... | [
"manhngodh@gmail.com"
] | manhngodh@gmail.com |
a50627fd3992ca3c5b4930f7a1ab9aff7f483375 | d08dc239a3eda6de61be9c128976bb6d199a6721 | /final_project/image_search/search_img/server.py | 6fd6f1183bcfe59602119754c5dd3cf19b96efdd | [] | no_license | NataKuskova/vagrant-final_project | 7ac87ec4623a4a30b9d225a58f83cf7b9f37407d | d3f624a99c3d1d65d0321f8e90070c847e7b8cd3 | refs/heads/master | 2021-01-11T00:52:58.463215 | 2016-10-10T07:09:19 | 2016-10-10T07:09:19 | 70,456,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,320 | py | from autobahn.asyncio.websocket import WebSocketServerProtocol, \
WebSocketServerFactory
import asyncio
import asyncio_redis
import logging
import json
FORMAT = u'%(filename)s[LINE:%(lineno)d]# %(levelname)-8s ' \
u'[%(asctime)s] %(message)s'
logging.basicConfig(format=FORMAT, level=logging.DEBUG) # f... | [
"natasga.kuskova@gmail.com"
] | natasga.kuskova@gmail.com |
24eb3295d972efef909d1fed9ece99c0780b2a84 | 83bd3d644c8feb0b57ac44b681fee4650677c186 | /Commonstruct/TriangleSlice.py | c9fe4b5b4c43f7755f393bffcfb60bd5863f3c0d | [] | no_license | theForgerass/3DPointCloud | 389d2af938c1cdb0650811db0485afacfefd2c76 | e42fe100a82b87264ab26aebdd4168492ae79b93 | refs/heads/master | 2020-06-04T04:09:06.555579 | 2019-06-05T10:32:51 | 2019-06-12T10:57:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | """
三角面片结构
"""
from Commonstruct import Point3D
from Commonstruct import Triangle
class TriangleSlice:
__slots__ = ('_facet', '_vertex')
def __init__(self, facet=Point3D(), vertex=Triangle()):
"""
三角面片初始化函数
:param facet: 法向量
:param vertex: 顶点(3个)
"""
self._fa... | [
"614490648@qq.com"
] | 614490648@qq.com |
92e7d30756b64afbf77cb481a3bf486bdcc1f546 | c02f0785a36f970e72239acb73a8ed14e580d2c9 | /interview/interview_preparation_kit/warmup/challenges/sock_merchant/sock_merchant.py | df985956bfa5a017e5801d5c4107f8a8a06efe26 | [] | no_license | Nyakama/hacker_rank | f6fca0fea20a583e6c0e4b11d3e46c0c11c7e051 | fe611c1f9bde7233d5c1e4d9b3e58594193434ea | refs/heads/master | 2022-12-13T09:17:24.093312 | 2020-08-29T00:03:57 | 2020-08-29T00:03:57 | 290,355,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/bin/python3
import math
import os
import random
import re
import sys
from collections import Counter
# Complete the sockMerchant function below.
def sockMerchant(n, ar):
sum=0
for val in Counter(ar).values():
sum+=val//2
return sum
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_... | [
"lungile.nyakama@gmail.com"
] | lungile.nyakama@gmail.com |
432927ddc73c6e066d33be9506269fb5c92f748b | 14a4e6e0bf76c68e471794088a5e2a95d6ce4b5a | /test.py | 687e974121098855cd758ed1256dea7e645205ec | [] | no_license | yuzhengfa/test | e16c2479baf159d887a117481398513349bd8cb0 | 63dbe2534a346b86bd77e70c829a6e4ccb886128 | refs/heads/master | 2020-04-30T09:12:53.099485 | 2019-03-20T14:58:58 | 2019-03-20T14:58:58 | 176,740,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,333 | py |
# coding: utf-8
# In[17]:
import pandas as pd
import numpy as np
import re
# In[18]:
#对drector清洗:
def sub_name(str1):
first_name = []
a = str1.split(',')
for i in a:
i = re.sub('[ ]','',i)
if i[0].encode( 'UTF-8' ).isalpha():
first_name.append(i)
else:... | [
"794191669@qq.com"
] | 794191669@qq.com |
36ef2e86187829ed5ae2b132e41bef8f08740314 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/compute/v20210701/gallery_application_version.py | 85870dafc661c246411261654d85f997d3480818 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,510 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
a5b7854d74583f2b5913bc129ba9fe75b8003d23 | fe2aa0c918f2dd7950414757fe0d1b73c3cb75a4 | /votesystem/vote/migrations/0002_remove_poll_name.py | d7773cc24a907bb7edcf12ab3b09786ba5fdf6c2 | [
"MIT"
] | permissive | majaeseong/votesystem | 6b705f7a2aedce692607de315e5652c44ecd0ce2 | 624fadca0251a81c0417f3a3a23f3d6c38b1cf33 | refs/heads/master | 2020-04-14T06:15:58.589054 | 2019-01-07T05:31:55 | 2019-01-07T05:31:55 | 163,681,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # Generated by Django 2.0.9 on 2018-12-30 11:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vote', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='poll',
name='name',
),
]
| [
"cpontina@naver.com"
] | cpontina@naver.com |
bca22854600441942d4c3a0acba4c13b9361eaf3 | 8f19107b3fb4dae9114f6aec3ed448665742d87d | /squareroot.py | 656577af68fa5b2d4550e47b3f69a1484c4e2280 | [] | no_license | Munster2020/HDIP_CSDA | a5e7f8f3fd3f3d4b92a2c9a32915d8152af87de6 | ab21b21849e4efa0a26144fcbe877f6fb6e17a2f | refs/heads/master | 2020-12-14T13:24:14.961945 | 2020-03-25T21:09:13 | 2020-03-25T21:09:13 | 234,757,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | # Created by: Brian Shortiss
# Created on: 29 February 2020
# Write a program that takes a positive floating-point number as input
# and outputs an approximation of its square root. You should create a
# function called sqrt that does this.
# Sources:
# https://en.wikipedia.org/wiki/Newton%27s_method
# https://www.cs... | [
"g00387820@gmit.ie"
] | g00387820@gmit.ie |
d7ce23f53fe0a65a72e04d05fb3d4fc24bc04900 | 973e19eb630d38dc1c9aaf5662199257afc38786 | /usaspending_api/references/models/toptier_agency.py | bb9f3109a7f02e7fea17ec1cfeb604dfe382929c | [
"CC0-1.0"
] | permissive | Violet26/usaspending-api | 40e424c333c59289a2d76db4274e1637f2fcea7c | 3e2b54662bb27217f4af223d429b09c112a01a5a | refs/heads/dev | 2022-12-15T22:04:36.837754 | 2020-02-14T18:20:21 | 2020-02-14T18:20:21 | 241,180,147 | 0 | 0 | CC0-1.0 | 2022-12-08T06:22:57 | 2020-02-17T18:35:00 | null | UTF-8 | Python | false | false | 682 | py | from django.db import models
class ToptierAgency(models.Model):
toptier_agency_id = models.AutoField(primary_key=True)
create_date = models.DateTimeField(auto_now_add=True)
update_date = models.DateTimeField(auto_now=True)
toptier_code = models.TextField(db_index=True, unique=True)
abbreviation = ... | [
"barden_kirk@bah.com"
] | barden_kirk@bah.com |
c2f2d1e2fa978cbe1369c0ec85d70b4be9c746c9 | 66f5ab6d5f78d304350ec4dd734b5d30cb8423f7 | /first.py | c60dbcc76e375946b5952d2d0841112066974bb0 | [] | no_license | akuppam/Py_programs | 4695819bbe744bed6c04b6a5cbde67da6dae0e98 | 65c7f9830c6a8602b65ae6a5b273453efdd846ac | refs/heads/master | 2021-01-19T01:13:53.999056 | 2017-04-04T20:36:50 | 2017-04-04T20:36:50 | 87,232,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | print "good one" | [
"noreply@github.com"
] | akuppam.noreply@github.com |
050fbf37649611034d2d17fa1d8f6eaaec527045 | 99b784550a6d306147c022c8d829800b0fbb8c68 | /Part_1_Basics/Chapter_9_Classes/number_served.py | c4bf3cff3db3a73bcf0555f68427754403f58a40 | [] | no_license | apuya/python_crash_course | 116d6598f656d8fed0b4184edbce8e996cd0f564 | 0b2e8a6e9849a198cfb251706500a919d6f51fe7 | refs/heads/main | 2023-06-03T22:41:03.203889 | 2021-06-16T04:07:28 | 2021-06-16T04:07:28 | 367,812,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | # Python Crash Course: A Hands-On, Project-Based Introduction To Programming
#
# Name: Mark Lester Apuya
# Date: 06/12/2021
#
# Chapter 9: Classes
#
# Exercise 9.4 Number Served:
# Start with your program from Exercise 9-1 (page 162). Add an attribute
# called number_served with a default value of 0. Create an insta... | [
"contact@mapuya.com"
] | contact@mapuya.com |
20eb7196fe3b002591b7b276815778936aebeb54 | 4eb76ddbe2bf6d7fb8ee791dcaa1dfaccd4a09b0 | /jitai/events/EventTemplate.py | e85c491ebb1b21082dabbe5b4fef53d7216dc3b1 | [] | no_license | koike-ya/research | 3cae0be17a8871d5782842510676c05a75627c49 | 3ff99c56c8e5d6c57ee65f1bca2431f3dc6f6593 | refs/heads/master | 2021-10-12T03:13:20.645738 | 2019-01-26T07:12:58 | 2019-01-26T07:12:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,138 | py | from abc import ABC
from datetime import datetime, timedelta
import pandas as pd
from jitai.src.utils import set_hour_minute
class EventTemplate(ABC):
def __init__(self, param, user_info, ema, logger):
self.param = param
self.ema = ema
self.name = param["condition_name"]
self.ema_... | [
"makeffort134@gmail.com"
] | makeffort134@gmail.com |
5a6cba04c45e10f428b0c7903415372b7a0ae2c4 | 85af8bcd480794a413e27c114b07bfae50447437 | /Python/PycharmProjects/aula 7/desafio 015.py | b734a05b4dd97dccb6dfef94c114d18952a788af | [
"MIT"
] | permissive | MarcelaSamili/Desafios-do-curso-de-Python | 83974aeb30cc45177635a6248af2f99b3fdbd3fa | f331e91821c0c25b3e32d2075254ef650292f280 | refs/heads/main | 2023-05-31T20:07:56.844357 | 2021-07-05T12:30:18 | 2021-07-05T12:30:18 | 375,374,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # Escreva um programa que pergunte a quantidade de Km percorridos por um carro alugado e a quantidade de dias pelos quais ele foi alugado.
# Calcule o preço a pagar, sabendo que o carro custa R$60 por dia e R$0,15 por Km rodado.
km = float(input('Qualtos KM voce percorreu com o carro?KM'))
dias = int(input('Quantos dia... | [
"marcela.santos10.b@gmail.com"
] | marcela.santos10.b@gmail.com |
736a992d87d9f3a6e7f7e9766c0b786164df94b7 | dccd4b277e0538e90f0ab179fd4a60be1b8766ad | /app/local.py | 7bba6685957aa83940dd4715fb27cf4403a2a3d5 | [] | no_license | rafalstapinski/news-map | cb5b34e13fd6f88d7d044f6113ff257f369fdb6d | 8cc6cedaf5bb15ad5b62ae7ed518ee314b6d187d | refs/heads/master | 2021-05-15T16:43:31.958684 | 2017-11-20T22:20:40 | 2017-11-20T22:20:40 | 107,473,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import web
import routes as Route
import helpers as Help
Index = Route.Index
Location = Route.Location
Article = Route.Article
urls = (
'/', 'Index',
# '/locations', 'Location',
'/articles', 'Article'
)
Help.Config.set()
app = web.application(urls, globals())
if __name__ == "__main__":
... | [
"stapinskirafal@gmail.com"
] | stapinskirafal@gmail.com |
242f80c5d1c207d66d4fd11b8d495d63cf4a6543 | 4b2c5fe21ffcc35837bba06d2c3b43c5116f74bd | /Bit++.py | b021896ca96ab26196e29a12c95ef313ebda47fc | [] | no_license | joydas65/Codeforces-Problems | 8870cbbf1db9fa12b961cee7aaef60960af714ae | eb0f5877d0fede95af18694278029add7385973d | refs/heads/master | 2023-06-23T07:16:49.151676 | 2023-06-17T07:28:24 | 2023-06-17T07:28:24 | 184,123,514 | 5 | 1 | null | 2020-11-28T07:28:03 | 2019-04-29T18:33:23 | Python | UTF-8 | Python | false | false | 212 | py | ans = 0
for _ in range(int(input())):
s = input()
if s[0] == '+' or '+' in s:
ans += 1
elif s[0] == '-' or '-' in s:
ans -= 1
print(ans)
| [
"noreply@github.com"
] | joydas65.noreply@github.com |
f78398b8f7458ea46cd65be017f77894f35269a5 | 0947e06c9015b3ba8fe542d8b56e2df95c4ac15b | /loanPrediction.py | e09846e815caea31cd9e9d9ad1352ad8c2b1c310 | [] | no_license | stnorbi/LoanPrediction | 0a41a20f9045fb8dd70b9b42cec1d396125e517c | 714b2107cb5e7d125f6585cdbc9ffd471eceadd4 | refs/heads/master | 2020-04-10T19:10:40.706148 | 2018-12-14T22:09:11 | 2018-12-14T22:09:11 | 161,224,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
pd.set_option('display.expand_frame_repr', False)
# File pathes:
sample_path=os.path.dirname(__file__) + "/Samples/"
#Load the dataset into a pandas dataframe
dataFrame=pd.read_csv(sample_path + "train.csv")
print(dataFrame.head())... | [
"streling.norbert@gmail.com"
] | streling.norbert@gmail.com |
b91cb3c12a2949a4360518e9abecbc11298c03dd | 230b7714d61bbbc9a75dd9adc487706dffbf301e | /third_party/blink/web_tests/external/wpt/tools/wptrunner/wptrunner/environment.py | 2493f1fa4407a39aad3ac3c2a724322b75b0944a | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-w3c-03-bsd-license"
] | permissive | byte4byte/cloudretro | efe4f8275f267e553ba82068c91ed801d02637a7 | 4d6e047d4726c1d3d1d119dfb55c8b0f29f6b39a | refs/heads/master | 2023-02-22T02:59:29.357795 | 2021-01-25T02:32:24 | 2021-01-25T02:32:24 | 197,294,750 | 1 | 2 | BSD-3-Clause | 2019-09-11T19:35:45 | 2019-07-17T01:48:48 | null | UTF-8 | Python | false | false | 8,027 | py | import json
import os
import multiprocessing
import signal
import socket
import sys
import time
from mozlog import get_default_logger, handlers, proxy
from .wptlogging import LogLevelRewriter
here = os.path.split(__file__)[0]
repo_root = os.path.abspath(os.path.join(here, os.pardir, os.pardir, os.pardir))
sys.path.... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
9ae2cd4efdde3a7a2959e488d8dc87e026f832c1 | f1d2d069d905572bec0d740a476e70f7a9ea3a1f | /src/main/python/game.py | 252d821510edc3db2e1dc4a7a70a46ed66cda5be | [] | no_license | shahchiragr/IoT | 312d75f74dbae4cf82bf7af35fb7dd0ae803efba | 282613e0cf8d8eda79dcac7907802a8b6b083b6b | refs/heads/master | 2021-01-20T19:13:15.704424 | 2016-07-27T05:27:34 | 2016-07-27T05:27:34 | 64,192,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | #import necessary libraries
import RPi.GPIO as gp,random, time
#set variable for easy pin reference
switchR = 19 #red switch
switchB = 26 #blue switch
ledR = 13
ledG = 6
ledB = 5
#initialize GPIO pins
gp.setmode(gp.BCM)
gp.setup(switchR, gp.IN, pull_up_down=gp.PUD_DOWN)
gp.setup(switchB, gp.IN, pull_up_down=gp.PUD_DO... | [
"chirag_r_shah@hotmail.com"
] | chirag_r_shah@hotmail.com |
09efc6dcd913ebfbe5d6b1b5e95d76b38c620dc4 | b87f21f6a2dcf050e87b71c57e503f5b565c7138 | /IMPORT_Pro/make_own_app/views.py | 1bec47e06f6566b194c0566550834cf9d0de0bd0 | [] | no_license | anjanikumar496/Django-Import-Export | 62e613c9c9f91484f83218f171fb92b8a7a96b2c | ac259283e3ad554fe45da07e064239c0ee804a8c | refs/heads/master | 2020-11-27T10:52:19.142180 | 2019-12-21T15:58:56 | 2019-12-21T15:58:56 | 229,411,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
from tablib import Dataset
from .resources import *
from .models import Person
def Simple_Upload(request):
if request.method == 'POST':
person_resource = PersonResource()
dataset = Dataset()
... | [
"anjanikumar496@gmail.com"
] | anjanikumar496@gmail.com |
9740ebd46f4efaf866df9077cf36f71f266f2f83 | 1f4c19a1bc91c09b3b5b54346b67c913363f7cd0 | /ctpn/layers/target.py | d8c13115572c3aeffa3a30d87192baf4332b5894 | [
"Apache-2.0"
] | permissive | ximingr/ctpn-with-keras | d80bcd753a8d82c4504b8635f43f8253cadb878d | d78d74bbf55cbf5d4867e363eb417c1590a8fd52 | refs/heads/master | 2020-07-06T11:32:24.968182 | 2019-09-27T05:42:32 | 2019-09-27T05:42:32 | 203,003,267 | 0 | 0 | Apache-2.0 | 2019-09-27T05:42:33 | 2019-08-18T12:57:43 | Python | UTF-8 | Python | false | false | 10,031 | py | # -*- coding: utf-8 -*-
"""
File Name: Target
Description : 分类和回归目标层
Author : mick.yi
date: 2019/3/13
"""
from keras import layers
import tensorflow as tf
from ..utils import tf_utils
def compute_iou(gt_boxes, anchors):
"""
计算iou
:param gt_boxes: [N,(y1,x1,y2,x2)]
:pa... | [
"ximing.fr@gmail.com"
] | ximing.fr@gmail.com |
1bb09a586e6092ecbb1565e6fb7441d8a796c5f1 | d7275cdd7215d5b52cac214955df6c22be17bd86 | /src/__init__.py | 4088dd23697036923046c6640821450025596277 | [
"MIT"
] | permissive | DMCFA/Flask-Rest-API | d572c393632a8d6cfae6d9d12535954c5af16cb0 | 062b8d82eed587a9d5a9ed8e1bbae128a0cf576a | refs/heads/main | 2023-04-13T02:08:04.785374 | 2021-04-10T16:32:39 | 2021-04-10T16:32:39 | 353,328,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
app = Flask(__name__)
appdir = os.path.abspath(os.path.dirname(__file__))
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(appdir, 'db.sqlite')
app.config['SQLALCHEMY_TRACK_MOD... | [
"duartemalmeida@gmail.com"
] | duartemalmeida@gmail.com |
bb92611663129085e0c2b2b258620024399268b9 | 24d070c6410fdf7212c4c37c2fadc932cd4e8aec | /trac/tests/notification.py | f2f6ce13b9e162a72b77a90a539f2142f77a07ba | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | clubturbo/Trac-1.4.2 | 4f111e8df9e8007a0e02080bec560361b25fc11c | 254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78 | refs/heads/master | 2023-01-20T16:20:44.724154 | 2020-12-03T08:57:08 | 2020-12-03T08:57:08 | 317,922,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,655 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2005-2020 Edgewall Software
# Copyright (C) 2005-2006 Emmanuel Blot <emmanuel.blot@free.fr>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also availab... | [
"jonn@mindhunterx"
] | jonn@mindhunterx |
7eec1dfec4ec3c98b358f145c22daa5e51803b30 | 06691f0d09b8b788a479666087a11b3be2907b8a | /CD CODES/Experiment 4 Left Recursion Elimination/LeftReccurveElemin.py | a40de9b355d504f81050265875459b2c7256dec6 | [] | no_license | Subhojit907/CD-Codes-Sem-6 | 888e16fb4ccb3dd9b0dba8d7d65df163202cbc0c | a78caa8f2ea7bddb4f1f535e37999920e7e3ef86 | refs/heads/main | 2023-05-28T19:07:50.802368 | 2021-06-09T18:21:22 | 2021-06-09T18:21:22 | 375,451,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,248 | py | gram = {}
def add(str): #to rules together
x = str.split("->")
y = x[1]
x.pop()
z = y.split("|")
x.append(z)
gram[x[0]]=x[1]
def removeDirectLR(gramA, A):
"""gramA is dictonary"""
temp = gramA[A]
tempCr = []
tempInCr = []
for i in temp:... | [
"noreply@github.com"
] | Subhojit907.noreply@github.com |
7f83f95d256280eded283b30416cba6725d161ef | e02ffc3482b616a91a6f6a13d61845c0604fb617 | /CalStatistics/CalStatistics.py | f98c4832fe54f594dce341c8423a3ff07cb691cf | [] | no_license | Gsynf/PythonProject | 6d136a1176289e7d42c4ed25b9b6d4f515fe01d0 | e55718c3c998f66ba0e2c78c088ef702aeefa532 | refs/heads/master | 2020-05-07T09:04:25.514202 | 2019-07-15T02:35:15 | 2019-07-15T02:35:15 | 180,360,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | #!usr/bin/env python3
#coding:utf-8
__author__ = 'hpf'
#基本统计值
def getNum(): #获取用户不定长度的输入
nums = []
iNumStr = input("请输入数字(回车退出):")
while iNumStr != "":
nums.append(eval(iNumStr))
iNumStr = input("请输入数字(回车退出):")
return nums
def mean(numbers): #计算平均值
s = 0.0
for num in numbers:
... | [
"18813058359@163.com"
] | 18813058359@163.com |
69a2bb20118b3100ec46a9ba846f43df9a9212fc | ab0b4cc07be3f2865be2ff0cb5fd119bc70fc300 | /Development/blogapp/migrations/0013_auto_20211003_2158.py | d80099e2edd1b5b92c82dce2fdf791aef0b29120 | [] | no_license | Imtiyaz172/moni_siza | c3f586d465608d8ba3c03eede697a5a72d3726fd | 6a9cb1fc733dcea25547493b7d437bf80b0c835d | refs/heads/main | 2023-08-22T17:07:54.107946 | 2021-11-01T09:06:39 | 2021-11-01T09:06:39 | 379,846,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # Generated by Django 2.0.3 on 2021-10-03 15:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0012_auto_20211003_2144'),
]
operations = [
migrations.RemoveField(
model_name='user_reg',
name='user_ima... | [
"shihaborg1@gmail.com"
] | shihaborg1@gmail.com |
2527f4d9fd54b3e27de63af10a0a6823676bffc5 | 8f63cf27e69bc44dcd11e63a0c396b398443009b | /tests/unit/util/iterables.py | 454eaf3914e1ade640b62d055b97606ada1ab216 | [
"MIT"
] | permissive | ethanjli/phylline | fae756dbbead0351dd11c770158a1aa08fa363d2 | f11307d0f37ca835996250e1e835c44abd282769 | refs/heads/master | 2021-01-01T23:56:41.018911 | 2020-02-25T05:07:34 | 2020-02-25T05:07:34 | 239,400,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | """Test the util.iterables module."""
# Builtins
# Packages
from phylline.util.iterables import make_collection, remove_none
def test_make_collection_singleton():
"""Test whether the make_collection function makes collections from singletons."""
assert make_collection(42) != 42
assert make_collection(4... | [
"lietk12@gmail.com"
] | lietk12@gmail.com |
03ac5092ebd77ee802d6b084a74dddda69c2c23b | 17d8c4428feee8b5d36ac98d338ca8d07ef1e2cd | /Chapter_3/knock20.py | 01072d1e53e66392ecadfb26763a3f8b1931137c | [] | no_license | mot11/NLP100knock | c8819be8d412b78ac588120aa0cacd9a9ba13bbe | 32d31609443f210835b71913940e6a9ecd24be10 | refs/heads/master | 2020-06-15T16:57:47.820621 | 2016-12-30T14:58:37 | 2016-12-30T14:58:37 | 75,277,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # -*- coding: utf-8 -*-
import re
# creates text file "uk.txt" from JSON
p = re.compile(r'"イギリス"')
found = False
i = 0
with open('jawiki-country.json', 'r', encoding='utf-8') as f:
for line in f:
i += 1
for m in p.finditer(line):
found = True
break
if found:
... | [
"moshi811@gmail.com"
] | moshi811@gmail.com |
54c5ad78ced39b2cecd00aca7399d2b8244f00de | 883feb44d5a95b96886665106a7db7ec15afbfe2 | /core/vm/vm.py | 72176cc003b2d573ebb3c245f1f4cbd47cca6fc0 | [] | no_license | CarlosIvanCardenas/proyecto-compiladores-ui | 7079b807aedef251d8cc1c44639b802c3db3750b | d699f0dc157014e749a9a0ef0a59b2831be824ab | refs/heads/main | 2023-01-13T22:01:29.992005 | 2020-11-24T01:09:50 | 2020-11-24T01:09:50 | 314,642,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,813 | py | from dataclasses import dataclass
from common.scope_size import GLOBAL_ADDRESS_RANGE, LOCAL_ADDRESS_RANGE, CONST_ADDRESS_RANGE, TEMP_ADDRESS_RANGE, \
POINTER_ADDRESS_RANGE
from compiler.quadruple import Operator, Quadruple
from compiler.symbol_table import VarType
from vm.memory import AddressBlock
from common.debu... | [
"cicc1998@gmail.com"
] | cicc1998@gmail.com |
e1995e2e558f63a34c905142503cb7f6958579ca | ab4637a2260663f5d952c439cef134340c3dcece | /apps/my_app/views.py | fc293ebfbd5f050c185c64f438a38f6dd0cb1a42 | [] | no_license | ariasamandi/semi_restful_users | cec2309d1078e75a3e1e842da8a37c93e0856e87 | db793c987c8d15a28c13086cfef566f39ad1d4e5 | refs/heads/master | 2020-03-11T17:30:53.043609 | 2018-04-19T02:41:51 | 2018-04-19T02:41:51 | 130,149,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from models import *
# Create your views here.
def index(request):
context = {
"User": User.objects.all()
}
return render(request, 'my_app/index.html', context)
def new(request):
retur... | [
"ariasamandi@gmail.com"
] | ariasamandi@gmail.com |
d927834b35dd9386b9cabf1db95a7f7ea77141c8 | 55cc1c8ed04c2ce104985c851354d347741a0166 | /test_deconv3D.py | e7667c5678b8cb944a68d76c3afd7682ee432d5e | [] | no_license | anlthms/team-magpie-dsb-2017 | 3cb09eddf5d8c0757b91b32a9a76f309fe4591d6 | 97e9d222fb84691b67156df728dfda7399fc45a6 | refs/heads/master | 2021-07-13T18:06:45.110335 | 2017-04-11T16:29:54 | 2017-04-11T16:29:54 | 86,396,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,648 | py | from keras.models import Sequential, Model
from keras.layers import Input
from keras.layers.convolutional import Convolution3D
from keras.layers.normalization import BatchNormalization
from keras.callbacks import ModelCheckpoint, EarlyStopping
from new.deconv3D import Deconvolution3D
import numpy as np
import pylab a... | [
"ronens1@Pronghorn.ent.core.medtronic.com"
] | ronens1@Pronghorn.ent.core.medtronic.com |
a3da0f001fde7949f07a23a3c977be7f2b31a51c | 43ec36aa7c98b796db1e0d4c7aa59c45dccbfbf6 | /conexion.py | 8891e11c556823f23af23fcee086755aa128449d | [] | no_license | noratoj/tkinter_condomi | 929d04477d0d897e38425b1cd20b7817c136b8ff | f83ee710219994b18f2f11aa8f45eecb1767fa18 | refs/heads/master | 2022-12-01T19:31:11.545474 | 2020-08-15T11:10:37 | 2020-08-15T11:10:37 | 279,878,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | import mysql.connector
from mysql.connector import errorcode
class Conexion:
def conectar(self):
try:
conexion = mysql.connector.connect(user='root', password='3875', database='condo', host='127.0.0.1')
return(conexion)
except mysql.connector.Error as err:
... | [
"juliocesarnorato@gmail.com"
] | juliocesarnorato@gmail.com |
34529478085062e959c34fee5da4b78c41f9e8bf | 2e1fad208df28fcd6fc923915e1ae6865a74051d | /Assignment 5/fsm.py | 1acb975664a46194e9da7ef3e6fd9f9a9ef4d438 | [] | no_license | cameronpadua/CSS390-Assignments | df9e435d2c6aac2618b0c3ef57fdf7ef43e29adb | a4089d46cb5ec3c91d170dbadaa355190e68bfc1 | refs/heads/master | 2021-04-28T19:50:49.531800 | 2018-02-18T01:35:56 | 2018-02-18T01:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,040 | py | #! /usr/bin/python
"""
Name: Cameron Padua
Class: CSS390
Assignment: Finite State Machine Generator
Description: This script is used to generate C++ code using python. The
user must provide all the edges, header, footer, and states
to create a python file to run... | [
"cameron.padua@gmail.com"
] | cameron.padua@gmail.com |
68e9badb63dfa7f93aed88ca630799e3a43f8ee8 | bb24d8a7f71206fac23ebef0d53f94918d7aa32d | /mymusic/migrations/0005_album_image_url.py | 2818a2cbf76e1a6e207e5a6e7dae1d783a693bd1 | [] | no_license | momentum-morehouse/django-music-bettinacjohnson | ec3311b41df1c3c09a3993fb476c06d715a87405 | c52f24d2f9faec73b0cad4139ebfe002bd819766 | refs/heads/master | 2022-11-27T02:04:49.847168 | 2020-07-16T23:46:13 | 2020-07-16T23:46:13 | 279,333,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 3.0.8 on 2020-07-15 20:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mymusic', '0004_auto_20200714_1510'),
]
operations = [
migrations.AddField(
model_name='album',
name='image_url',
... | [
"replituser@example.com"
] | replituser@example.com |
b86f37f64be3a4a6a783e0cc8de77ab087a399bf | 4b360696d512a35b2114c482c658d10e3ff91a2c | /project-addons/mail_ph/models/__init__.py | 94a375f2116535169a7287ca79e29be1a3feb530 | [] | no_license | Comunitea/CMNT_010_15_PHA | 24ecf3be6a50441dfa3dd8deca4ee96ac5e61970 | d4a24aafba48fc7dda7ee662e0c7e1112c220162 | refs/heads/master | 2022-08-12T00:39:24.464028 | 2022-07-11T10:30:30 | 2022-07-11T10:31:31 | 37,918,119 | 0 | 1 | null | 2015-12-02T12:39:43 | 2015-06-23T12:37:45 | Python | UTF-8 | Python | false | false | 256 | py | # -*- coding: utf-8 -*-
# © 2020 Pharmadus I.T.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import res_partner, sale_order, purchase_order, hr_holidays, \
account_invoice, res_company, stock, mail_compose_message, mail_mail | [
"oscar.salvador@pharmadus.com"
] | oscar.salvador@pharmadus.com |
da2d3c60254b69999d1ab59f7e74952218582ac1 | 25d147519eb689d00339d7950b764798629ad3a8 | /forms/models.py | 537559e89ab76839d62ef8b41a38e2037b68fcdc | [
"MIT"
] | permissive | bernardobgam/edtech_experiment | 3172f3eb7a2ab522f23666d64f221375febba108 | 88a64b925b6692261649418260a0bdf7b4a5a9d1 | refs/heads/master | 2022-12-13T03:48:10.721752 | 2019-10-21T04:23:04 | 2019-10-21T04:23:04 | 216,477,111 | 0 | 0 | MIT | 2022-11-22T04:17:36 | 2019-10-21T04:24:44 | JavaScript | UTF-8 | Python | false | false | 1,063 | py | from django.db import models
from lab.models import LabProgress, LabCode
from django.utils import timezone
from django.db.models import Sum
# Create your models here.
class ParticipationConsent(models.Model):
"""Saves the consent forms"""
lab_session = models.ForeignKey(LabProgress, on_delete=models.CASCADE)
... | [
"bernardogam@gmail.com"
] | bernardogam@gmail.com |
aad3ce20af76236936080e408ab49e3291e96572 | a723779f23d83fda069cf68e6dcf643e5afff82a | /lecture4/flights/0002_auto_20210809_2024.py | 5ab8d29d8602dc39cc0a226927a22a66ccab2877 | [] | no_license | dan1el5/cs50-lectures | 362e83b14c4dab1997c5b5735569f1ac1081d158 | 711aabd6d6f0babe9be99491b3c94b224969b857 | refs/heads/main | 2023-07-12T11:50:51.296952 | 2021-08-24T05:38:50 | 2021-08-24T05:38:50 | 399,343,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | # Generated by Django 3.2.5 on 2021-08-10 00:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('flights', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Airport... | [
"noreply@github.com"
] | dan1el5.noreply@github.com |
1d6c1bc9d8dcf9d0703c2f2e0e55e31c19f55315 | b4687bd0817c6d00d8afde2721102416462cd73f | /txtemplates/server_templates/templates/protocol/__init__.jinja | 385ad13db7f0d3c9042df2b700ac4bd8cb63cd9d | [] | no_license | mdrohmann/txtemplates | a8818b5213c38f1d27d497e3578129d07f764c06 | b346b15d3eb465ec828a31fea0a00df3ae582942 | refs/heads/master | 2020-06-02T21:37:31.690441 | 2015-04-21T16:00:41 | 2015-04-21T16:00:41 | 40,129,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | jinja | from . import pb
__all__ = ['pb']
# vim: set ft=python sw=4 et:
| [
"mdrohmann@gmail.com"
] | mdrohmann@gmail.com |
7ac450e80d74815ef7401aa056f3feb1952628a3 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/tests/series/test_duplicates.py | 6577b3e54b7b981a4d18a17b1a5eb28849a224fe | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,717 | py | import numpy as np
import pytest
from pandas import Categorical, Series
import pandas.util.testing as tm
def test_value_counts_nunique():
# basics.rst doc example
series = Series(np.random.randn(500))
series[20:500] = np.nan
series[10:20] = 5000
result = series.nunique()
assert r... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
7d046603c008827962ae044ec476f221c259833d | 8696c69e63a825201a4529381f612ca501a397bb | /modeling/two_layer_decoder.py | 1c1452182614f26da697f6b6877e07ae12786405 | [] | no_license | nageshgurram12/generic-semantic-segmentation | 14aaf7d08d0e07e4c998071a8c63f71a2d381ea3 | 6cc5be06ff6a51bd9cad41c076a21cdb4f7eee3e | refs/heads/master | 2021-07-26T00:09:37.223561 | 2020-10-11T14:24:32 | 2020-10-11T14:24:32 | 224,564,709 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,939 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from modeling.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d
class NonBottleNeck(nn.Module):
def __init__(self, inplanes, planes, BatchNorm=None, dilation=1):
super(NonBottleNeck, self).__init__()
reduction =... | [
"nageshgurram12@gmail.com"
] | nageshgurram12@gmail.com |
88e16d0fac13e4e9eee8c7bea8b9fa71c55ddd68 | 9c2edc273db48dcb6d31a937510476b7c0b0cc61 | /cython_sample/setup.py | aee60680780e7c7437d6abd35f1504bd902ef425 | [] | no_license | miyamotok0105/python_sample | 4d397ac8a3a723c0789c4c3e568f3319dd754501 | 77101c981bf4f725acd20c9f4c4891b29fbaea61 | refs/heads/master | 2022-12-19T22:53:44.949782 | 2020-05-05T05:09:22 | 2020-05-05T05:09:22 | 81,720,469 | 1 | 0 | null | 2022-11-22T02:22:55 | 2017-02-12T11:15:08 | Jupyter Notebook | UTF-8 | Python | false | false | 731 | py | #! -*- coding: utf-8 -*-
#python setup.py build_ext --inplace
from Cython.Build import cythonize
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy as np
try:
numpy_include = np.get_include()
except AttributeError:
numpy_include = np.... | [
"miyamotok0105@gmail.com"
] | miyamotok0105@gmail.com |
c68b9bbba04f39d17cbece18a7af398f104bf636 | 3a5d1b27f21af3aed3ee6d614b162b852d03c6e8 | /sqltool.py | bbb7cb457063b96ab808c9c1490ede7518457cf4 | [] | no_license | pyking/SqlKnife_0x727 | f7bc400720d4ed749bfbc77181cebc12f52fbacc | 09bc9f0cbf3b781bc92078267d46cccf74117c97 | refs/heads/main | 2023-07-04T09:54:20.770956 | 2021-08-04T09:24:10 | 2021-08-04T09:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271,416 | py |
sqltxt4="""
CREATE ASSEMBLY [PotatoInSQL]
AUTHORIZATION [dbo]
FROM 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A24... | [
"hl0rey@163.com"
] | hl0rey@163.com |
d7160f9ee837a91c8da2ae76425140f5dac1dd8d | 0925e75bfd0b0cf88b238826a477a21caae648a2 | /calculator/settings.py | 680e3b5e5b1030543d3cb2597d44b91af01068a2 | [] | no_license | uzgit/calculator | c0018e1e326bcdaf3d0d1632ca6a4bbd6020d35e | e999379bfbbd962d86151928f62d06972b2f37a1 | refs/heads/master | 2020-08-31T08:15:58.770074 | 2019-11-04T09:22:15 | 2019-11-04T09:22:15 | 218,645,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | """
Django settings for calculator project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"jspri17@gmail.com"
] | jspri17@gmail.com |
73a885c8935eb053011d613987cd0a93f87b0d0e | 8b7d6a22debf824294e3e556ec4f5049524bfb14 | /Polynomial/polynomial.py | 1cc82259356c84e861052efbcb1f9786782d627f | [] | no_license | djtsorrell/Intro-Python-OOP | cc46622e5d34b9b29209a9d19286253e04e6e902 | a3185f11a13b8ee035138eef13a3aa2a376794cd | refs/heads/master | 2023-03-04T17:01:55.212225 | 2021-02-15T17:19:44 | 2021-02-15T17:19:44 | 287,131,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | from itertools import zip_longest
class Poly:
"""
A class to represent and manipulate polynomials.
Parameters
----------
coeff : list of float
List of coefficients for the polynomial.
Attributes
----------
coeff : list of float
List of coefficients for the polynomial.... | [
"sorrelldominic9@gmail.com"
] | sorrelldominic9@gmail.com |
3f79c10b4a5c6efa78489ad412c41b7383e80ce2 | 376de370915329d65f60e41e17cbcf642cfe0212 | /optim/trpo.py | e39eb7f5f68872800c2717ef033c01ba1c89fedb | [
"MIT"
] | permissive | Bobobert/TRPO | 4c5588f8e8366a350843cb3933e65f54103eff4e | 9134ac692955b2bee3596d9a6a4dde145ad993e7 | refs/heads/master | 2023-03-25T16:08:15.072113 | 2021-03-19T02:33:19 | 2021-03-19T02:33:19 | 339,814,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,247 | py | # THIS IS HELL
from torch.distributions.kl import kl_divergence
from TRPO.functions.const import *
from .functions import cg, ls, convert2flat, convertFromFlat, unpackTrajectories
class TRPO:
"""
Optimizer Trust Region Policy Optimization
Mostly based on Schulman's implementation on Theano
https://git... | [
"robertolopez94@outlook.com"
] | robertolopez94@outlook.com |
7f071599e4a39af20a60059d04fd05dcdb5ac758 | 1eb99619f016fdea0be643674cdb4deb9b1b626e | /ParkingLot_full_stack/parking_lot/parking_lot/settings.py | 65a499e53c6e613e9f2ebc95a66cd75ff9ca8cf6 | [
"MIT"
] | permissive | Eduardo95/ParkingLot | 0ebee78eba0834d46879c1acbc1d978f4dd80f99 | bce9fd06694b0e16bcd57a175347f381f56a8089 | refs/heads/master | 2023-08-08T00:27:27.736079 | 2021-04-27T07:12:31 | 2021-04-27T07:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,251 | py | """
Django settings for parking_lot project.
Generated by 'django-admin startproject' using Django 2.1.2.
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 o... | [
"xwt97294597@gmail.com"
] | xwt97294597@gmail.com |
75923154d02e8e140b61ff4649653b02ba3d84f9 | 3f4ab4ba2b99c967ebe9a36b69f61283694751a7 | /Tourn/migrations/0013_auto_20200608_2134.py | 10bf48ecf7839f5182143fceb110bffcabe5fe66 | [] | no_license | happyberry/Tournaments | f7f113b8bf069298243d5c942960472c1ae2afbb | 90e57c6b8e78213f445f6c29be45e58c0e497e85 | refs/heads/master | 2022-11-08T19:19:09.152070 | 2020-06-21T14:39:39 | 2020-06-21T14:39:39 | 267,960,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # Generated by Django 3.0.6 on 2020-06-08 19:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Tourn', '0012_auto_20200608_2134'),
]
operations = [
migrations.AlterField(
model_name='game',
name='score',
... | [
"j.tadej@wp.pl"
] | j.tadej@wp.pl |
c27fbb4d69410fb5cf725de53194f9c56c32cab0 | bd24ac1c323245878ff14bf3cbb511b15b36503d | /modules/solver.py | 6f88bb54bce25e3b6904f1aeb0173de6e51518f1 | [
"MIT"
] | permissive | liupeng0606/SARAS-ESAD-Baseline | 22cc2c5c685ad50656d0b4df0f394903a406a55d | 3696e77ffbe9f10f18a2a9e1ac74f0b09076e6b0 | refs/heads/master | 2022-10-24T14:27:59.622404 | 2020-06-16T08:21:40 | 2020-06-16T08:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,922 | py | import torch, pdb
import torch.optim as optim
# from .madamw import Adam as AdamM
# from .adamw import Adam as AdamW
# from torch.optim.lr_scheduler import MultiStepLR
class WarmupMultiStepLR(torch.optim.lr_scheduler._LRScheduler):
def __init__(self, optimizer, milestones, gammas, last_epoch=-1):
self.mile... | [
"guru094@gmail.com"
] | guru094@gmail.com |
023ce6ce8542b911c4f6bd577f910836abcf972d | 63a9ab5db1ae5ad433fef00669f07e01a36a19cf | /details.py | 68419c3f203a2fcba0be751e7e07e7b9320327fd | [] | no_license | RaynardAg/ProductConfigurator | daa4fe852d2a7d0caaa1e9daeea09ee3548f0151 | 425fe21e9107b799594aa884d50a19c022aac228 | refs/heads/main | 2023-07-01T21:57:37.500669 | 2021-08-13T02:10:57 | 2021-08-13T02:10:57 | 395,493,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | import csv
from bs4 import BeautifulSoup
from selenium import webdriver
from re import sub
""" Extract information from previous web scraping stage"""
def get_url(csv_name):
with open(csv_name + '.csv', encoding='UTF-8') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
urlli... | [
"noreply@github.com"
] | RaynardAg.noreply@github.com |
60d34638bc1a71aec3b30bdb71943672f3a6594b | 88ed6ed99589f7fb8e49aeb6c15bf0d51fe14a01 | /026_removeDuplicates.py | 5e8dbfc5edb96029cb37d413ce206813159f712a | [] | no_license | ryeLearnMore/LeetCode | 3e97becb06ca2cf4ec15c43f77447b6ac2a061c6 | 04ec1eb720474a87a2995938743f05e7ad5e66e3 | refs/heads/master | 2020-04-07T19:02:43.171691 | 2019-06-23T15:09:19 | 2019-06-23T15:09:19 | 158,634,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | #!/usr/bin/env python
#coding:utf-8
#@author: rye
#@time: 2019/2/18 17:15
'''
很快就写完了。。。算是最近写题最快的一个
'''
class Solution:
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
i = 0
j = 0
while j < len(nums):
if... | [
"noreply@github.com"
] | ryeLearnMore.noreply@github.com |
6a5f28424aac29934414b717667a4d6e93eb928a | 4bf1a2d4cb11d056030ea1ea8fa98fca737ece8c | /setup.py | 2938b39eb7b21602d0614bbbf5c2b9ff4b13314e | [
"BSD-3-Clause"
] | permissive | vicramr/consensuscluster | ed50716eefd7d0e8d31a25fc728f8a8d9bd06f73 | 959e842b6bd4bc5c24b49c516edc4d4d1e96071b | refs/heads/master | 2020-05-19T21:55:44.821305 | 2019-06-03T04:06:25 | 2019-06-03T04:06:25 | 185,236,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | #! /usr/bin/env python
"""A Python implementation of consensus clustering."""
import codecs
import os
from setuptools import find_packages, setup
# get __version__ from _version.py
ver_file = os.path.join('consensuscluster', '_version.py')
with open(ver_file) as f:
exec(f.read())
DISTNAME = 'consensuscluster'
D... | [
"vicram.r@hotmail.com"
] | vicram.r@hotmail.com |
7c9d87260077a86dbbabda14b55843274ed9025d | 24b9a0aec77bc27fb4e7cf3e1f6006c3ae0ad764 | /app.py | ceaad411db1e4c4cc7063da398a5e9765d74d51e | [] | no_license | pbca26/electrum-monitoring | 2761f254b8ddb85639a74e003355aea6473e177f | 6bb3cc88b28cb5427248b6db1463e97c5d1be831 | refs/heads/master | 2022-11-26T10:32:19.470869 | 2020-05-12T12:59:34 | 2020-05-12T12:59:34 | 270,329,223 | 0 | 0 | null | 2020-06-25T12:50:15 | 2020-06-07T14:21:01 | null | UTF-8 | Python | false | false | 2,614 | py | import os
import json
import requests
import atexit
from lib import electrum_lib
from lib import electrums
from flask import Flask, render_template, jsonify
from apscheduler.schedulers.background import BackgroundScheduler
app = Flask(__name__)
electrum_urls = {}
explorers_urls = {}
@app.before_first_request
def... | [
"gdath100500@gmail.com"
] | gdath100500@gmail.com |
2c24254b0354d439e0c5b46198b0b3e896d9d36a | 17e6e6188a426eae2360f72bd89305a1b36382dd | /quiz20 2.py | cd60059378925e2be5d8b481bf8021e924c1ca9c | [] | no_license | manojputhalapattu/python | bdbf3fa4c9c6c740b1c67acc8d52a4d9fb29f628 | 674f23fef39aad3881fe8988eb2f126bfd636d7b | refs/heads/master | 2020-09-25T04:28:37.142342 | 2019-12-06T16:26:42 | 2019-12-06T16:26:42 | 225,917,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | x=1
while x<=5:
print("*",end='')
y=1
while(y<=5):
print("*",end='')
y=y+1
x=x+1
print()
| [
"noreply@github.com"
] | manojputhalapattu.noreply@github.com |
5a80607c8637163410aec5e6372e07c4a642fe98 | 484d73935f057756df8bc6556fc5704327443108 | /236/A_test.py | 49dc94cdcb8d04cbc13e9010b55aa0604f5e0da9 | [] | no_license | kazuya030/CodeForces | 5d93d25f456589ad6343e1140ca27c5ecbd0d652 | 8d859c7680c7dd1c40943bb05116bf032ea5f9bd | refs/heads/master | 2021-03-12T23:45:53.592799 | 2012-12-02T06:57:30 | 2012-12-02T06:57:30 | 6,964,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #coding: utf8
import sys
import StringIO
__date__ = '2012/10/20'
from A import solve
def test(input, ans):
ans = str(ans)
s_in = StringIO.StringIO(input)
s_out = StringIO.StringIO()
sys.stdin = s_in; sys.stdout = s_out
str(solve())
sys.stdin = sys.__stdin__; sys.stdout = sys.__stdout__
a... | [
"minami@Retinan.local"
] | minami@Retinan.local |
d7a1256a63d48f75460c5afb5d1a56bfc3eb0fb0 | cda3eb3c2f13e02448125a2931eac769a32d85a7 | /Fractal/fractal.py | 936939ccba7eb745be57296b50c55fd17a35c910 | [] | no_license | VenomRo666/Python-Fundamentals | c3a36d7cf51472e066853dd8f8219128bce3b88a | 2a7b8659e3883afd685ec26eaa3d9ea78c752e6e | refs/heads/master | 2020-06-10T06:28:39.800730 | 2015-07-16T14:16:10 | 2015-07-16T14:16:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | """ Computing Mandelbrot sets."""
import math
def mandel(real, imag):
""" Compute a point in the Mandelbrot.
The logarithm of number of iterations needed to
determine whether a complex point is in the
Mandelbrot set.
Args:
real: The real coordinate
imag: The imaginary coordinate
... | [
"johanvergeer@gmail.com"
] | johanvergeer@gmail.com |
cb62c894b9da32ff1434d2237515a58c24e7c6e4 | d7294d121a0a4778117096185f47507e6da85ea9 | /03 - Recursion/fibonacci.py | 9cd51a9b9a410fa7e03b8c04c354319fa4252389 | [
"MIT"
] | permissive | MarquezLuis96/CompThink_Python | ee0124c933a65959d07261c6a3affa68deccd52c | e8d3db42c5568c4fa1d6f4d6376a871b4bd3128e | refs/heads/main | 2023-01-20T05:57:20.122839 | 2020-11-23T22:27:16 | 2020-11-23T22:27:16 | 309,174,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # Date: 2020/11/16
# Author: Luis Marquez
# Description:
# A simple program to learn about fibonacci with recursion
# #
#fibo: This function is called when we will calculate the fibonacci serie
def fibo(iterations):
"""
This function calculate the fibonacci serie, calling itself many times... | [
"englamc@gmail.com"
] | englamc@gmail.com |
5afe25ed35a74d83494d0891f309246f59f0954f | 41be5fc78b1e9252e4cfe4d7adf98dceb944c4c9 | /argomenti.py | f66f6b44166bc6fdf88b09a60ac06142a7e31459 | [] | no_license | Klemici/corso-intro-python | 828eb9187cba183821b5d7bf66e25e179ba79306 | c35871aff9050f538c450158739abafaa196df6b | refs/heads/master | 2021-01-21T07:04:21.842082 | 2017-02-23T16:32:57 | 2017-02-23T16:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from sys import argv
script, name, age = argv
print 'Ciao %s, Hai %s anni' % (name, age)
| [
"klemici@outlook.com"
] | klemici@outlook.com |
752be920ca53c3c110792cae0eb771e213dad151 | f6e2c094567be508b0af0105be7b2f468a74079c | /agent.py | 0f2519d9fb31c7f621730d400ae4f545ae4d2f1a | [] | no_license | CPapageorgiou/Reinforcement-Learning-Pixelcopter-DQN | 5c7ed37331dd692df897fed6753847e413f2d33f | da61addb443e4350655fe91711e58182c2514add | refs/heads/main | 2023-08-17T09:14:48.915968 | 2021-09-21T14:11:04 | 2021-09-21T14:11:04 | 408,818,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,573 | py | import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.models import Sequential, load_model
from tensorflow.keras.layers import Dense
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.losses import Huber
from ple.games.pixelcopter import Pixelcopter
from ple import PLE
import numpy ... | [
"chrisanorthosara@hotmail.com"
] | chrisanorthosara@hotmail.com |
14961e21699bc8361368a4d2cdb64cac51864a02 | af573b5db79f10b8d93a1fec8808cb5dfe666eff | /imageFinder/tools/views.py | 262f53b5b1b6edddf058125a3e087ef4a6b48bcc | [] | no_license | kevkid/YIF | a9739e9295030bc5b22551ff9b65f57af465b695 | 709f61f44743be5a69da9fb283536d5b3ddd2d59 | refs/heads/master | 2020-04-12T07:21:58.559035 | 2020-03-06T20:19:53 | 2020-03-06T20:19:53 | 62,367,716 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | import os
from web.models import Image, Classes
from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.conf.urls.static import static
from imageFinder.settings import STATIC_URL, STATIC_IMAGES
from django... | [
"kevin@Phantom"
] | kevin@Phantom |
fd7663c74ab7441e0d5e4e98c3e5a02023c432b6 | 48983b88ebd7a81bfeba7abd6f45d6462adc0385 | /HakerRank/data_structures/trees/tree_top_view.py | 54610fe4a1f57e64ca716708d368bed09f4c0f84 | [] | no_license | lozdan/oj | c6366f450bb6fed5afbaa5573c7091adffb4fa4f | 79007879c5a3976da1e4713947312508adef2e89 | refs/heads/master | 2018-09-24T01:29:49.447076 | 2018-06-19T14:33:37 | 2018-06-19T14:33:37 | 109,335,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | # author: Daniel Lozano
# source: HackerRank ( https://www.hackerrank.com )
# problem name: Data Structures: Trees: Top View
# problem url: https://www.hackerrank.com/challenges/tree-top-view/problem
def topView(root):
instance = root
if not root:
return
answer = [instance.data]
while instance.... | [
"lozanodaniel02@gmail.com"
] | lozanodaniel02@gmail.com |
e49a46bd598b2890f0a5b005daecd7631585b582 | 24230b116eaaf509c1076679d0fefbb0f96d4155 | /Ch10-shutil.py | e59746e0569b545530b797f53905e58b8e2cf8c1 | [] | no_license | kamchung322/AutomatePython | b2e168f6d02db06a652c481eb8dbbbd2abeef616 | d719cfa965b9e70acd8b98928a3b06ba2fba2be0 | refs/heads/master | 2021-04-04T05:21:40.622512 | 2020-03-25T09:24:22 | 2020-03-25T09:24:22 | 248,427,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | import shutil, send2trash, os, zipfile
from pathlib import Path
def copySingleFile():
CWD = Path.cwd()
shutil.copy(CWD / 'Remark', CWD / 'Remark_Backup' )
def copyDir():
CWD = Path.cwd()
shutil.copytree(CWD, CWD/'Backup')
def renameFile():
# use move function to rename file name
CWD = Path.cw... | [
"kamchung322@gmail.com"
] | kamchung322@gmail.com |
6c6f0158a133d53785b286410755f200ac888fa6 | 59995c33bfc97aaac24693fc05e697b44260c2dd | /Learn-code-note/Python/Head-First-Python/Chapter-3/version-3.py | 1d4da7e64dc57c0b4c8da72c0d2b0c072825dfa4 | [] | no_license | 302wanger/Python-record | 6bfd0ff34f486d62a9b06f105e77f942f1afd035 | eac76cfd322a75bbb1ec7157a0877b2604daaddd | refs/heads/master | 2021-08-27T19:57:22.953766 | 2017-11-28T06:15:05 | 2017-11-28T06:15:05 | 112,293,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # -*- coding: utf-8 -*-
# 特定指定异常
# 比第二个版本多了个try/except,原因是要判断文件是否能打开
# 使用try/except可以让你关注代码真正要做的工作
# 而且可以避免向程序增加不必要的代码和逻辑。
try:
path = '//Users/wangyuan/Desktop/Learn-code-note/Python/Head-First-Python/Chapter-3/sketch.txt'
data = open(path, 'r')
for each_line in data:
try:
(role, line_spoken) = each_line.sp... | [
"wangyuanfu315@gmail.com"
] | wangyuanfu315@gmail.com |
c019e47f0ff83cf6dcdb0d544128652acf3ae52c | 0cf6728548830b42c60e37ea1c38b54d0e019ddd | /Learning_MachineLearning/DeepLearningWithPython/5.3.py | 0f1e218f44d0b1287be5fb399e830a0c97bf75a1 | [] | no_license | MuSaCN/PythonLearning | 8efe166f66f2bd020d00b479421878d91f580298 | 507f1d82a9228d0209c416626566cf390e1cf758 | refs/heads/master | 2022-11-11T09:13:08.863712 | 2022-11-08T04:20:09 | 2022-11-08T04:20:09 | 299,617,217 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,734 | py | # Author:Zhang Yuan
from MyPackage import *
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import seaborn as sns
import statsmodels.api as sm
from scipy import stats
#------------------------------------------------------------
__mypath__ = MyPath.MyClass_Pa... | [
"39754824+MuSaCN@users.noreply.github.com"
] | 39754824+MuSaCN@users.noreply.github.com |
564872cb7da5965f0b12fed997e4dd289276360a | 9e56fedadfadc3787bcf501dcde4f0a6df68994b | /fanqizha/callinfo/modelpredictive.py | f66c7b0e2bc8d9fa6b40de96342cfc89788ca083 | [] | no_license | datadragon1363193649/datadragon | c70f3685c5189a78556636c1f70e0fcebaf62d1b | 125140e52a541c7d45f38c45e830443a58a6ae06 | refs/heads/master | 2021-09-15T16:53:33.004526 | 2018-06-07T09:38:22 | 2018-06-07T09:38:22 | 115,381,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,192 | py | # -*- cocoding: utf-8 -*-
import os
import sys
_abs_path = os.path.split(os.path.realpath(sys.argv[0]))[0]
apath = os.path.split(os.path.realpath(_abs_path))[0]
sys.path.append(apath)
from sklearn.pipeline import Pipeline
# from sklearn.linear_model import SGDClassifier
from sklearn.model_selection import GridSearchCV... | [
"xuyonglong@jiandanjiekuan.com"
] | xuyonglong@jiandanjiekuan.com |
580d3bab5161c2089c9b1c92b66b2465fd94ddb9 | 3e24611b7315b5ad588b2128570f1341b9c968e8 | /pacbiolib/thirdparty/pythonpkgs/scipy/scipy_0.9.0+pbi86/lib/python2.7/site-packages/scipy/linalg/interface_gen.py | aed22b2164e1399c612a6bd8fd85ad35866e808f | [
"BSD-2-Clause"
] | permissive | bioCKO/lpp_Script | dc327be88c7d12243e25557f7da68d963917aa90 | 0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2 | refs/heads/master | 2022-02-27T12:35:05.979231 | 2019-08-27T05:56:33 | 2019-08-27T05:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,791 | py | #! python
import os
import re
from distutils.dir_util import mkpath
def all_subroutines(interface_in):
# remove comments
comment_block_exp = re.compile(r'/\*(?:\s|.)*?\*/')
subroutine_exp = re.compile(r'subroutine (?:\s|.)*?end subroutine.*')
function_exp = re.compile(r'function (?:\s|.)*?end function... | [
"409511038@qq.com"
] | 409511038@qq.com |
d5639a38d46c8ca185577e305802ad1d23d806ac | 5b62cd5c19ebc179b97104b46b714c876d1f4968 | /payments_configuration/payments_configuration.py | 7b187fab6fe6e1de2ff06f6bdf6802227b4b0b38 | [] | no_license | dgvicente/acme_payments | 0a457839736f10cb0c968aa73ecd85bea2ebd145 | 501c4b2656711745f4b526a2cc10a6bc20a0a84a | refs/heads/master | 2020-07-27T17:04:41.035655 | 2019-09-20T00:06:39 | 2019-09-20T00:06:39 | 209,165,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | from .payments_configuration_entry import PaymentsConfigurationEntry
class PaymentsConfiguration:
def __init__(self, weekdays, weekends):
self.weekdays_config = [PaymentsConfigurationEntry(item) for item in weekdays if item] if weekdays else []
self.weekend_config = [PaymentsConfigurationEntry(it... | [
"dianagv@gmail.com"
] | dianagv@gmail.com |
998bbd1f2c9cba66553dc8f643a0380cbf6edcbc | c8388bb33ffbfa74e5babae5159029fa99248a92 | /SubscriberCount_Raspberrypi/getSubs.py | b322a11ec5202e3badaf3b34b42f89e636e827e4 | [
"MIT"
] | permissive | tieum/SevenSegments | 994054a38dfa96348d458175272522acbb76fd8b | 7a7c596bc21bd285c1260418a5a54cd365b2fa77 | refs/heads/master | 2022-11-20T05:11:29.529024 | 2020-07-22T05:56:06 | 2020-07-22T05:56:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | #!/usr/bin/python
"""
Get the Youtube subscriber count from google.apis and send it to the display every 60s.
Loops until killed.
You will need to get your own API-Key from google but that is quite simple. Google it ;)
"""
import urllib, json, time
import sys, traceback
import serial
urlYT = "https://www.g... | [
"florian.pubhooyah@gmail.com"
] | florian.pubhooyah@gmail.com |
a118b3014504cb8657f235f4b8fa23f71f3919fd | 118fa1d714b70a8115830f1eb3e68ce301af0609 | /Flask_Blog/flaskblog/models.py | 86da6341a0df59369890770b579b04747500c251 | [] | no_license | sagarkk/Blog_App | 0b27dfd80ac805a13138f0b7278315aea74e48fe | f3facaa7cfe26aad846e23fc87d045790be06bc8 | refs/heads/master | 2022-12-24T20:41:48.596732 | 2020-09-27T17:11:11 | 2020-09-27T17:11:11 | 299,074,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py |
from datetime import datetime
from flaskblog import db,login_manager
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, UserMixin): #our model for relational database , table name lower_case(user)
id = db.Column(db.Intege... | [
"sagarkksrivastava@gmail.com"
] | sagarkksrivastava@gmail.com |
fcb046483bad9e61389f3e02826eca935ceff488 | 8f27c4a4c428d3ad4687a1a3b8a905c904ec93cd | /product/models.py | efda70dc77a7ca551f28ee15003aa728bf3c21f8 | [] | no_license | absalam48/sifdeal | c6d85533041b34462711f8adf39d0cfb4a993749 | 9542d0afd7a0bc64b2f6e03707aae81906d98fb5 | refs/heads/master | 2020-04-09T11:39:39.881595 | 2018-12-04T08:22:56 | 2018-12-04T08:22:56 | 160,318,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import datetime
from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
class UserProfileInfo(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
#additional
name = models.CharField(max_length=30, default="")
addre... | [
"noreply@github.com"
] | absalam48.noreply@github.com |
7ed6fd5365fefc1a4f1ac5a00784755f8803be15 | 4f244db97ebcefd61e06400ab7983a93291dab0f | /fspages/template/loaders/filesystem.py | 443a0c0fe49d465b7b5bd20ed96c04b713fc7288 | [] | no_license | vldmit/django-fspages | 40bbb85f50263c117cab2023e18677b9c6646be4 | 095367599e08dbfa2b8652454a15b1a2acabff8d | refs/heads/master | 2016-09-05T23:12:14.661776 | 2013-06-19T07:38:12 | 2013-06-19T07:38:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | from django.template.loaders.filesystem import Loader as FileSystemLoader
from django.conf import settings
from django.utils._os import safe_join
from django.utils.translation import get_language
class I18NLoader(FileSystemLoader):
"""
When searching for template, prepeng
"""
is_usable = True
... | [
"vldmit@gmail.com"
] | vldmit@gmail.com |
314ea5491f976610601bc93def87970f19fa13e6 | 33e006f5ae711d44d796a0e3ca384caefe1ec299 | /Wprowadzenie do algorytmow - ksiazka/rozdzial 2/2.1-2.py | 1919575e88d14a8d51ece544f7292e484a60b267 | [] | no_license | Cozoob/Algorithms_and_data_structures | 959b188f8cef3e6b7b1fd2a6c45a5e169d8f41fe | f786a397964f71e2938d9fd6268d3428e3ed7992 | refs/heads/main | 2023-08-05T02:23:43.565651 | 2021-09-17T10:52:14 | 2021-09-17T10:52:14 | 407,532,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # Zmodyfikuj INSERTION_SORT tak zeby sortowala w porzadku nierosnacym
def insertion_sort(A):
for j in range(1, len(A)):
key = A[j]
# Wstaw A[j] w posortowany ciąg A[1,...,j-1]
i = j - 1
while i >= 0 and A[i] < key:
A[i + 1] = A[i]
i -= 1
A[i +... | [
"kozubmarcin10@gmail.com"
] | kozubmarcin10@gmail.com |
300105105b624689dfe8a2adcac101be4fe25fd7 | 149489e12a2f209e33a82684518785540b3508b8 | /configs/dram/low_power_sweep.py | 9adfcaff0c0faa9eb1e0e129a7edc6b1e1f8ad9c | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | FPSG-UIUC/SPT | 8dac03b54e42df285d774bfc2c08be3123ea0dbb | 34ec7b2911078e36284fa0d35ae1b5551b48ba1b | refs/heads/master | 2023-04-15T07:11:36.092504 | 2022-05-28T21:34:30 | 2022-05-28T21:34:30 | 405,761,413 | 4 | 1 | BSD-3-Clause | 2023-04-11T11:44:49 | 2021-09-12T21:54:08 | C++ | UTF-8 | Python | false | false | 10,445 | py | # Copyright (c) 2014-2015, 2017 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the fun... | [
"rutvikc2@midgar.cs.illinois.edu"
] | rutvikc2@midgar.cs.illinois.edu |
60439f893682ea05faf93e8d2f99a32f19f70f81 | 05551338203763bad453a2264c5b6582d725ed3d | /MusicAnalyser/wsgi.py | dbc7c190ac92f348379d612961c9d6b364a84d37 | [] | no_license | ShivayaDevs/MusicAnalyser | 51e553c138ee5e05b9b9c8ec19e10e5594a6d05d | b86abceebb1c11e938af43747dca4512ecb00ca3 | refs/heads/master | 2021-01-22T18:23:31.125100 | 2017-03-17T19:05:33 | 2017-03-17T19:05:33 | 85,077,721 | 5 | 2 | null | 2017-03-17T06:19:51 | 2017-03-15T13:47:18 | Python | UTF-8 | Python | false | false | 404 | py | """
WSGI config for MusicAnalyser 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"verma.yash8@gmail.com"
] | verma.yash8@gmail.com |
8fa25a444983f0afff5bd748f6d52e39bd7b29c8 | a5ac4d7858049bd4923a118689d9888f9d632ac0 | /python-examples/search.py | d776de1a0a786bf74a3d830d81553204a6d35c0a | [] | no_license | ssanupam24/Practice-Code | fd1e7c962c0b6ba19cb56cd8b21723936d000008 | 0cec9fca9774af4ee1731a338324ea1958012f75 | refs/heads/master | 2021-10-18T11:27:53.828012 | 2021-10-03T07:59:28 | 2021-10-03T07:59:28 | 19,810,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | # If on Python 2.X
from __future__ import print_function
import pysolr
# Setup a Solr instance. The timeout is optional.
solr = pysolr.Solr('http://localhost:8983/solr/', timeout=10)
# How you'd index data.
'''
solr.add([
{
"id": "C:",
"title": "anupam",
"category": "0\C:"
},
... | [
"ssanupam24@gmail.com"
] | ssanupam24@gmail.com |
c62c4a9af1d76050479aa8b61113b12aa938d298 | 9187131d6a06e4a2cd56a0eb6d20604b38ea2359 | /apitest/tp/mail/test_case/page_object/mail_page.py | fd5073f7bbd54dfe0c0487251a04d2b334badf62 | [] | no_license | hikaruwin/hikaru | 0dc75843047c01023327854798fbf4999e710f57 | 1675192d4584609bb1f678c2e5a82c06915ab25e | refs/heads/master | 2020-03-27T23:33:14.958007 | 2018-09-04T10:29:40 | 2018-09-04T10:29:40 | 147,327,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # coding: utf-8
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from time import sleep
from .base import Base
class MailPage(Base):
url = '/'
login_success_user_loc = (By.ID, 'spnUid')
def login_success_user(self):
return self.find_elem... | [
"your email"
] | your email |
f68070e7227f2546fd83426b40fe7fd9c8ca6d50 | cdd20f17a5d9682d678ba599e65e392557444647 | /FrontA.py | d83a63ae5bf7d64df7ed3b37c774dc6aa62a1fae | [] | no_license | VaibhaviKhachane/Expense-Tracker | c81e63e4f8afe0470f7848e003b7053c09063867 | c344f086db72378146023eb255e57f2f0e496bf6 | refs/heads/main | 2023-05-30T17:42:58.378471 | 2021-06-22T12:48:30 | 2021-06-22T12:48:30 | 379,114,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | from tkinter import *
from PIL import ImageTk,Image
from tkinter import ttk
from tkinter import messagebox
import sqlite3
import os
root = Tk()
root.geometry('1100x600')
root.title('EXPENSE TRACKER')
root.iconphoto(False, PhotoImage(file='icon1.1.png'))
root.resizable(0, 0) # Disable resizing the GUI
frame1 = ... | [
"noreply@github.com"
] | VaibhaviKhachane.noreply@github.com |
1167d356ec72345b3d1ca24a149967a04bd26d5a | 2295989763da2fbf76d313fc5adfcb36a4e2edea | /1464_leetcode.py | 5e941997fd53802d9c7314a821c9acad35b40b7e | [] | no_license | Nafisa-Tasneem/Problem_solving_python | e342f07f7f1e4928cb28e89b31ce26ad6ced5690 | 35669815c8c6ab4b7775ad2c3d3fe01e2c79ab01 | refs/heads/master | 2023-01-30T22:03:15.026656 | 2020-12-13T07:05:01 | 2020-12-13T07:05:01 | 294,961,092 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # 1464. Maximum Product of Two Elements in an Array
nums = [3,4,5,2]
arr2 = []
for i in range(len(nums)):
for j in range(len(nums)):
if j!= i:
arr2.append((nums[i]-1) * (nums[j]-1))
print(max(arr2)) | [
"nafisatasneem1101@gmail.com"
] | nafisatasneem1101@gmail.com |
f9711376315cbcd8dd8294cc5623e86d72968337 | 5d402b4447f50ec51541d3aa2c6df7fd4f1eb9b0 | /grouper.py | 4b89284da6338af899e51b77ed2b2046e34916f8 | [] | no_license | calvinzpinson/hateabase | 6f9c98845731a779e415f5a33b44e295e9bd660a | 0731963b136f84863ab4830f10c156f8b490affc | refs/heads/master | 2021-01-13T15:34:49.675691 | 2016-12-20T05:04:08 | 2016-12-20T05:04:08 | 76,924,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | def create_view(name, fields, tables):
statement = 'CREATE VIEW %s AS (\n' % (name)
statement += 'SELECT'
for field in fields:
statement += ' %s,' % (field)
statement += ' COUNT(*) AS NumIncidents, __IC__.TotalIncidents, __OC__.TotalOffenses\n'
statement += 'FROM'
for table in tables:
... | [
"kkawahara1028@gmail.com"
] | kkawahara1028@gmail.com |
5fa1e7edecb16cfbd19a8080159912880e780b91 | b3d87379fdf36c97b3a32cdbeb969e2650c7af98 | /quadrun.py | 1c9a9a014d01bc11e8e198831b235addfcb3262d | [] | no_license | 2black0/quadrotor_python | d388653fa5c467fc6c80f8ce98bd67554fb737a1 | e3711a6afd6105aacbeb2c6bc652a6685be1a885 | refs/heads/master | 2020-05-22T20:40:41.434261 | 2019-05-13T23:59:30 | 2019-05-13T23:59:30 | 186,511,928 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import quadvar as qv
import quadmodel as qm
import numpy as np
from array import *
# run from 0 to t_plot
while qv.t_plot[qv.counter-1] < max(qv.t_plot):
exec(open("quadmodel.py").read());
# plot the result
exec(open("quadplot.py").read()); | [
"noreply@github.com"
] | 2black0.noreply@github.com |
c90af5a8f09cfde61ce93409ebaadce92a1d8139 | fc1e1a4a346f9a6b7ea7069f42b8ac9bf503a7f5 | /bin/module/plot_distro.py | 3f73629b79311fb097539a81d982176da88d9548 | [] | no_license | BiCroLab/CUTseq | 6e1c165f83f3e30d8fad266caebf92b4836db0ff | 065c861a43a2380db92558f7ce7ab9c637f9025f | refs/heads/master | 2020-08-01T15:17:38.225831 | 2019-09-26T07:53:33 | 2019-09-26T07:53:33 | 211,031,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import sys
data1 = np.loadtxt(str(sys.argv[1]))
data2 = np.loadtxt(str(sys.argv[2]))
name = sys.argv[3]
fig, ax = plt.subplots()
sns.distplot(data1,ax=ax,label='all genes')
sns.distplot(data2,ax=ax,label='PAM50')
#ax.set_xlim(0,1000)
ax.legend(... | [
"silvano.garnerone@gmail.com"
] | silvano.garnerone@gmail.com |
d11295c900433e9132c3b111d7674e2125be180e | c8a0a370e3bdba7a159911ef9bee0c2bf9401dc7 | /Python Offer/10.Beautiful_of_Programming/02.Chapter2/2.4.The_Number_of_1.py | 05a9528cd5d2ffcdc0c6e24ac5d641a4df972004 | [] | no_license | ht-dep/Algorithms-by-Python | c47d08c27b3e8cb8b9f3f5ebd9c50f6b099281b5 | 5c5ed701944f6b5ebed1f933d65cc8c31ec42245 | refs/heads/master | 2020-03-06T23:43:10.988589 | 2018-01-21T14:54:20 | 2018-01-21T14:54:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # coding:utf-8
'''
2.4 1的数目
给定一个十进制正整数N,写下从1开始,到N的所有整数,然后计算其中出现1的个数
'''
def Count1(n):
return 0
if __name__ == '__main__':
n = 12839
print Count1(n)
| [
"1098918523@qq.com"
] | 1098918523@qq.com |
65ce711038749d54964ebb890ad5b84986fd8cde | c9ce096f4aee437688aacf1d0757e87991200e0b | /crawlall.py | 0f1cf2f743ec025c517f4ee42266c204f9b95c1a | [] | no_license | rohithsai1904/NEWS-CRAWLER | aad4a31cc87e2e41413eb87f846577bf1648f01a | 9f66d91e811724d248b167100d193ec01dfd03df | refs/heads/main | 2023-05-29T05:59:07.752211 | 2021-06-18T12:04:31 | 2021-06-18T12:04:31 | 378,135,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | import scrapy
from twisted.internet import reactor
from scrapy.utils.project import get_project_settings
from scrapy.crawler import CrawlerProcess
def start_sequentially(process: CrawlerProcess, crawlers: list):
deferred = process.crawl(crawlers[0])
if len(crawlers) > 1:
deferred.addCal... | [
"noreply@github.com"
] | rohithsai1904.noreply@github.com |
223aba0f3a6f0830d35ca6c772b7bd4a586e3e03 | 5e7aee7be8f1e99129957bbd26b93a0a22638b56 | /py/model.py | e3bf74cc518d1bee778f0d12e3c3a9981afed8c8 | [
"MIT"
] | permissive | alexisperrier/rabotnik | fa0391ccc62bf1c203a227ffe83ac1c32c738821 | e629118a692ea65dc39bf323f74096eec6c120e5 | refs/heads/master | 2023-04-08T15:09:49.843081 | 2021-04-15T11:02:22 | 2021-04-15T11:02:22 | 277,247,779 | 0 | 0 | null | 2021-04-15T11:02:22 | 2020-07-05T06:53:47 | Python | UTF-8 | Python | false | false | 13,710 | py | '''
Contain classes for most major database tables
Each class offers methods to insert, update, upsert ...
For instance the class Channel has the following methods:
- create: inserts a new channel in table channel
- update: updates data for a given channel_id, data is from API
- update_from_feed: updates data for a g... | [
"alexis.perrier@pm.me"
] | alexis.perrier@pm.me |
6f953e1b9bd7d90dcdff2db982c6806aff2e1411 | cc44da7bde5439248f01a6a1d18c8e36deaa559b | /attic/mash-original/apps/mashapp/views.py | fa64b2a5b8d24119ad49edceadfbe8f8e7e20642 | [] | no_license | panna/lab | 767175016fbe5169c3b93ac49b058f095bf4cb12 | 0f46c7d29d2fd90b61e4ef7bdc4b7c8a3857de63 | refs/heads/master | 2020-04-03T11:19:33.126924 | 2009-11-16T20:51:57 | 2009-11-16T20:51:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,329 | py |
from django.utils import simplejson
from django import forms
import md5
import re
from springsteen.views import *
from springsteen.services import *
from springsteen import utils
from mashapp.models import *
from voting.views import json_error_response
from django.core.exceptions import ObjectDoesNotExist
from voting... | [
"admin@crowdsense.com"
] | admin@crowdsense.com |
b07f99a0807b1964ad81d8b566bd461031dd078d | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/account_helpers/customfilescache.py | 76a90b18fe88817f3ac8604b079be904324562d0 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 18,439 | py | # 2016.08.04 19:47:56 Střední Evropa (letní čas)
# Embedded file name: scripts/client/account_helpers/CustomFilesCache.py
import os
import time
import base64
import urllib2
import cPickle
import BigWorld
import binascii
import threading
import BigWorld
from debug_utils import *
from functools import partial
from helper... | [
"info@webium.sk"
] | info@webium.sk |
71a8a66e76ca142acb18fe646e73586520d65752 | f53a307ff2cc14cebd76076384705e73e27ecbc1 | /visel.py | 624879eae93a60d6d1f1610cc279324815f11582 | [] | no_license | MrIvanushka/PaperGames | 49445e0223e95e004b1e46cc9ab409062b4e03a6 | b96424a547abb42568c6309979f4418141120d87 | refs/heads/master | 2023-04-26T08:36:09.229748 | 2021-05-12T14:34:16 | 2021-05-12T14:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,157 | py | from tkinter import *
import random
root = Tk()
root.title("Виселица")
canvas = Canvas(root, width=600, height=600)
canvas.pack()
def but():
y = 0
while y < 600:
x = 0
while x < 600:
canvas.create_rectangle(x, y, x + 33, y + 33, fill="white", outline="blue")
x = x + 33... | [
"77945441@mil.ru"
] | 77945441@mil.ru |
1c8bcdf2d99bd5630809fedcd85b30f4ca5af1d3 | b61b0a5333814779669320532233ee75327f039f | /xls_proc.py | 2b62ee064f9f7d001f18b164b612cead6498106d | [] | no_license | marine0131/attendance_calc | 75f6d387e336dfd7ff22fcde5bcb13c96a87c810 | e991f30ba7ff88474b2135315b12f360d52ee726 | refs/heads/master | 2020-03-26T07:52:31.226713 | 2018-08-14T08:37:25 | 2018-08-14T08:37:25 | 144,675,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,994 | py | #! /usr/bin/env python
import xlrd
import xlwt
import re
import datetime
import json
with open("config.txt", 'r') as f:
params = json.load(f)
FILE = params["FILE"]
MONTH = params['MONTH']
ON_WORK_TIME = params['ON_WORK_TIME']
LUNCH_TIME = params['LUNCH_TIME']
REST_TIME = params['REST_TIME']
AFTERNOON_WORK_TIME =... | [
"wanghj@woosiyuan.com"
] | wanghj@woosiyuan.com |
6e3c18adb7d7ad77bb6e1bcc4a56f27e7e828f9f | feae71cec59a1ddff977fe20522f0e0cb65d3210 | /train.py | ee1409ef2d0c7224a0fac0df8a0e74d54da80a56 | [] | no_license | NadineMoustafa/sentiment-analysis-chatbot | 1a99b915a4654526e0441a5f49b923531dda662b | 3fe4280b570996c219ab2c9df619b8bf1dc0e642 | refs/heads/main | 2023-06-27T18:15:02.017027 | 2021-08-02T12:24:07 | 2021-08-02T12:24:07 | 391,936,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | from utilities.load_data import load_data
from model.model import NeuralNet
from model.dataset_model import ChatDataSet
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
X_train, y_train ,all_words, tags = load_data() #Loading the data
#Hyper parameters
batch_size = 64
hidden_size = 8
input... | [
"nadine.moustafaa@gmail.com"
] | nadine.moustafaa@gmail.com |
6a5f99fc2d8fd1c5ad7da2f097eecb0cf51bf7cf | 0ba2c3776618b5b8b76f4a23f21e9c6ad3f6e2e1 | /afterclass/homework1/007_1.py | 98e2ac33076dbf3ab283e7a973e4e7a0a135d6f8 | [] | no_license | WangDongDong1234/python_code | 6dc5ce8210b1dcad7d57320c9e1946fd4b3fe302 | 6a785306a92d328a0d1427446ca773a9803d4cc0 | refs/heads/master | 2020-04-15T12:35:03.427589 | 2019-09-16T15:38:25 | 2019-09-16T15:38:25 | 164,681,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | #list记录以i为分段点的最长增长子序列的个数
#返回最大分段点的坐标
def Max(list,n):
max=0
index=0;
for i in range(0,n):
if list[i]>max:
max=list[i]
index=i
return index;
def LIS(array,len,list,list_increase):
# list记录以i为分段点的最长增长子序列的个数
for i in range(0,len):
list.append(1)
list... | [
"827495316@qq.com"
] | 827495316@qq.com |
2959a6d7bfeb74dc537f99b5b38d991fb0b5e85c | 457ffac5060e203defd64b78a11eea5fa02e584e | /cart/tests/test_views.py | f3c9769cc2258ba75821921bf1b75be939706b21 | [
"MIT"
] | permissive | andreztz/tutorial-e-commerce-django | a722915824833f098a7a3728a0fff341348b05c5 | 47d7fd9ed8edb43e6a57ede0f2b29a349a1f2b7b | refs/heads/main | 2023-02-22T23:21:41.646560 | 2021-01-17T16:24:41 | 2021-01-17T16:24:41 | 330,708,842 | 0 | 1 | MIT | 2021-01-18T15:29:09 | 2021-01-18T15:29:08 | null | UTF-8 | Python | false | false | 1,892 | py | import pytest
from django.conf import settings
from django.urls import resolve, reverse
pytestmark = pytest.mark.django_db
class TestCartAddView:
def test_reverse_resolve(self, product):
assert (
reverse("cart:add", kwargs={"product_id": product.id})
== f"/cart/add/{product.id}/"
... | [
"fcgr.fcgr@gmail.com"
] | fcgr.fcgr@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.