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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd0dd0ac210bbca6c8922fd1b4b55b90ea0ad896 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /gfsa/model/end_to_end_stack.py | 0dcad41dab30b003212c181acf40bf2de50d6b57 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 16,457 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
80be94c0c3ace64ca419129673fd77280b8fb35a | d4d511a212f3f3138b29d5c055ffbb0bf8127095 | /dirigida-por-eventos-GUI/chapter_8/ejemplo_8-16.py | e19adb14488eaf87740cf0a311be52e83e3a860d | [] | no_license | SebZalewskiK/Python_ejercicios | d9e0a275053b05ffde95d7609ca47f5139db3bd4 | 64c062435951c7b9dce3b03a437b8ef572363118 | refs/heads/master | 2021-01-18T20:41:54.519741 | 2015-06-01T12:44:35 | 2015-06-01T12:44:35 | 46,050,448 | 1 | 0 | null | 2015-11-12T12:08:09 | 2015-11-12T12:08:08 | null | UTF-8 | Python | false | false | 567 | py |
# Message
'''
The Message widget is simply a place to display text. Although the standard showinfo
dialog we met earlier is perhaps a better way to display pop-up messages, Message splits
up long strings automatically and flexibly and can be embedded inside container widg-
ets any time you need to add some read-only ... | [
"gelpiorama@gmail.com"
] | gelpiorama@gmail.com |
cea43589a7bb31e1bf0c658d9ea1813573b2e2bc | ab67bf011764b6c0b6803cd44985a5a2ad3f2593 | /udpsocket.py | 2b222871dc47eb1b8e436bd7d76fd4d52cdb877e | [] | no_license | pr0logas/streamSockets | cba0616ead596bf331eda4f54b6112a212e462fc | 3f759509dfcb556d3b6a25f11c9f512fb7be430b | refs/heads/master | 2022-11-25T06:09:17.503818 | 2020-07-27T13:53:15 | 2020-07-27T13:53:15 | 285,097,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | import socket
import os, sys, time
from time import sleep
MCAST_GRP = '10.10.10.10'
MCAST_PORT = 9004
MULTICAST_TTL = 10
bytes_size_to_process = 1024
time_between_data_seconds = 5
time_between_packets_float = 0.0055
def startSocket():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
s.... | [
"prologas@protonmail.com"
] | prologas@protonmail.com |
302ed4dc0d8d825baa53e29685252cd1302bc4ca | 57bafd6a29da8d59f5c2cc2d1bcc214065931df7 | /apps/clients/migrations/0001_initial.py | 8190a5b7d3bc7e6bc0cb081a4b8d0fb3e66805db | [] | no_license | Ivonne-cas/sitiofinal | bf94ca17fbef541fb5f128b17f90f102dae3582e | 6c300fad90f3b7b0cc2c84b85f2d786e5ebaec4f | refs/heads/master | 2023-08-25T23:30:38.508316 | 2021-10-21T21:26:17 | 2021-10-21T21:26:17 | 419,844,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | # Generated by Django 3.2.8 on 2021-10-21 18:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='... | [
"ivonneximenacaste@gmail.com"
] | ivonneximenacaste@gmail.com |
4ca7dd8882f263f5749f1eecebddf59f13b12871 | 0969f7c85e5ae0a19982077d6bb702c41b2b1e1f | /nets/mobilenet/mobilenet_v2.py | 02f5fa0510270fecc4ea3bd20c7f4da25bad20b1 | [
"MIT"
] | permissive | 353622088/tianchi | 544e49bb6720c4978188cdbddd88a0ebe9f5669c | e1f378e5fd783eb4cfbfaf8ecdd944b8fcfdd733 | refs/heads/master | 2020-04-19T09:06:35.946147 | 2019-01-30T09:30:05 | 2019-01-30T09:30:05 | 168,099,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,434 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"chk0125@126.com"
] | chk0125@126.com |
e74010a40ad06fe82916fea9a7e6c222b087a685 | cb83b02ead1cb77c87e117118f7e5cd3ecf46ba1 | /sistema_plantilla/settings/settings.py | 6652e9955e4d55b35976610917e962c7d8b0c985 | [] | no_license | danielhuamani/sistema-plantilla-saas | f834d90157b3d0ab1724fe7d3be5e9224cf753ae | 8802a4b429fdce9ce433539684b52e2177042c35 | refs/heads/master | 2020-12-11T01:48:45.313743 | 2016-01-18T16:10:24 | 2016-01-18T16:10:24 | 48,857,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,996 | py | """
Django settings for settings project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pat... | [
"danielhuamani15@gmail.com"
] | danielhuamani15@gmail.com |
80793db4fcb6d003bcd7f9d86fe4acae5bc1a6c0 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/6ae12eacdae24553a91c0270cb101e66.py | 5d6e3848a1fa367f700bac002a2b381e701f99cc | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 281 | py | #
# Skeleton file for the Python "Bob" exercise.
#
def hey(what):
if what is None or what.strip() == "":
return "Fine. Be that way!"
if what.isupper():
return "Whoa, chill out!"
if what.endswith("?") or what.endswith(" "):
return "Sure."
return "Whatever."
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
481d5738f4ad8c4ba46dbd6a9831f4d1c26f8daa | 11dba20cc1a6acfe2a502bb7f02c056a9de07324 | /train.py | a393e04d0eb23f7d6a7efc5590e83a9fe5871cfa | [] | no_license | jysgit/TAAI_gen_paraphrase | f35246d09b2ecffb8c1e4e75156c06b0be3ac76d | 9bf916b2d9af0395fc92a033325733198a8eace4 | refs/heads/main | 2023-03-17T18:34:41.616533 | 2020-10-07T11:09:12 | 2020-10-07T11:09:12 | 348,598,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,600 | py | from gensim.models import Word2Vec, KeyedVectors
from gensim.models.callbacks import CallbackAny2Vec
from time import time
import os
## SETTINGS ##
def ensure_exist(path):
if not os.path.exists(path):
os.makedirs(path)
def load_file(path, encoding='utf-8'):
with open(path, 'r', encoding=encoding) as ... | [
"joannawu@nlplab.cc"
] | joannawu@nlplab.cc |
89e0353d4de23f2ac613d436afbbec0a40354e19 | e8ef02248600525a114c9ed9a6098e95d8007063 | /qtlab/scripts/sal/ff_powersweep.py | 7966c043a04204757185031af05d8a6ff6e2df04 | [] | no_license | mgely/papyllon | ac264e202298728f6ca69d566c1fe45a9de0dc1c | 490c756da8f08c971864dcd983ea82c944bc8c85 | refs/heads/master | 2021-01-10T06:28:17.250944 | 2016-02-26T13:49:21 | 2016-02-26T13:49:21 | 46,259,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | #prepare environment
import qt
import visa
import numpy as np
from numpy import pi, random, arange, size, array, sin, cos, diff, absolute,zeros, sign,ceil,sqrt,absolute
from time import time, sleep, localtime, strftime
execfile('metagen.py')
#Check and load instrument plugins
instlist = qt.instruments.get_instrum... | [
"m.a.cohen@tudelft.nl"
] | m.a.cohen@tudelft.nl |
d1767709f57c48665edcfe804c9259dc130ff472 | 806ca8734caebd076811615350178c977f6ec283 | /circuit/distributions.py | 99ad79308abd0d1a634179a12c357920a26267fc | [] | no_license | gohil-vasudev/DFT | de6939f7de33b0d4a6fc6792eb30a999dc8f24eb | 8168844c068e5d56a42910aafe9adef0b2d49746 | refs/heads/master | 2023-06-16T08:28:48.643372 | 2021-07-06T22:50:37 | 2021-07-06T22:50:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,610 | py |
import numpy as np
from scipy.stats import norm, skewnorm
from scipy.special import owens_t, erf
from numpy import pi as PI
from gekko import GEKKO
import math
import pdb
AREA_CORRECTION = False
#### MAIN ISSUE with ACCURACY are the boundaries!
class Distribution:
""" moments is a list of moments """
de... | [
"abri442@usc.edu"
] | abri442@usc.edu |
a74be607b34134f98a467b55faa4a79f3353321b | c704b09bcdf6c693e766e4edcf27a23315b6fc7b | /gs11/api/serializers.py | 11b9b493189e4de44bcb67fa872cea2b309b6d7d | [] | no_license | techyshiv/Django_RestApi | afa28435c653f868a9cd6661f9072e4678dd93bc | 241cf463f541367fb4b93485bf78f37987832dc4 | refs/heads/master | 2023-01-31T20:31:05.758727 | 2020-12-13T13:09:13 | 2020-12-13T13:09:13 | 321,067,334 | 1 | 0 | null | 2020-12-13T13:10:16 | 2020-12-13T13:07:50 | null | UTF-8 | Python | false | false | 238 | py | # Create Model serailzer
from rest_framework import serializers
from .models import Student
class StudentSerializer(serializers.ModelSerializer):
class Meta:
model = Student
fields = ["id","name","roll","city"] | [
"1616510104@kit.ac.in"
] | 1616510104@kit.ac.in |
429da4daa2c1602ac80e875b6aed9aa5a6812b71 | 75a4a0f71f3da07de4abd5e8f9f09712815feefc | /Python/python_lanqiao/基础题单/2017_字符串统计.py | 23d0f95394b7a006797cba0147aeb17f2c08ebf1 | [] | no_license | QiYi92/StudyLab | 987cf1a48b0f522858aced31351eb9e7af3d5532 | 03ea528b0405e3602e7cdab82dc98ed4ada79e0f | refs/heads/master | 2023-07-14T22:13:10.811991 | 2021-08-15T16:43:42 | 2021-08-15T16:43:42 | 319,321,339 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # 2017字符串统计
# 知识点
# 统计字符串出现的次数
# str.count()
# 统计字符串出现的位置
# str.find()
n = int(input())
for i in range(n):
sum = 0 # 重置清零
a = input()
sum += a.count('1')
sum += a.count('2')
sum += a.count('3')
sum += a.count('4')
sum += a.count('5')
sum += a.count('6')
sum += a.count('7')
sum +... | [
"62023930+QiYi92@users.noreply.github.com"
] | 62023930+QiYi92@users.noreply.github.com |
4d4c097352648b5921a147bce201bc822ae5964f | ed7badfc7ecd738001f4d3e9945cce3a2d8b059d | /HIndex.py | 14f5430a66896837eedbcf60030339820706ffec | [] | no_license | tanjingjing123/LeetcodeAlgorithms | ab41f20bfca1305d07af00ae8db725fef6d059b8 | 2bb2881824cc4e84ab6afad6085e02e1b682c96d | refs/heads/master | 2023-02-04T12:22:52.665477 | 2020-01-01T00:11:20 | 2020-01-01T00:11:20 | 284,194,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import bisect
def hIndex(citations):
sorted_citations = sorted(citations, reverse=True)
citations_len = len(sorted_citations)
if citations_len <= 0:
return 0
h_idx = 0
for order_loc in range(citations_len):
if sorted_citations[order_loc] >= order_loc + 1:
h_idx += 1
r... | [
""
] | |
4eba4dbcba0281425312479229160dda6cc51f00 | 1605df2155631e820f2a68da8e48fc05d9e2c117 | /622/solution.py | bed30a6b6dbd613497aaf8c642e3d3bb831e73bd | [] | no_license | zmwangx/Project-Euler | 918e564b7706d0785acd46ccb3f6689af5bec870 | da8ca343d3f1dc9262be1713e72ff0ffde0c2f33 | refs/heads/master | 2021-01-20T03:40:20.553534 | 2020-01-24T16:24:38 | 2020-01-24T16:24:38 | 9,463,976 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/bin/env python3
import sympy.ntheory
divisors = sympy.ntheory.factor_.divisors
def main():
n = 60
sizes = set(s + 1 for s in divisors(2 ** n - 1))
for d in divisors(n):
if d != n:
sizes -= set(s + 1 for s in divisors(2 ** d - 1))
print(sum(sizes))
if __name__ == "__main_... | [
"i@zhimingwang.org"
] | i@zhimingwang.org |
8559e49fc770740ddfa6ab9992347095f7de2769 | 57e80b3938394520bcb114ee4a89a4e172023917 | /event/models.py | 8f26d5942e3210d3d0f53e8d18ee6579bddb191e | [] | no_license | khakhil/events | 2bc75046a43e074abe996516e8704fab7fb8546d | 115c5c6cb2c6b1fbdb549552b82267cb102dbaa8 | refs/heads/master | 2020-12-02T11:06:21.977563 | 2017-07-08T07:51:03 | 2017-07-08T07:51:03 | 95,869,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,704 | py | from django.db import models
from django.core.validators import RegexValidator
from django.utils import timezone
from django import forms
from idlelib.IOBinding import blank_re
from django.template.defaultfilters import default
from enum import unique
class Blogs(models.Model):
unique_display = models.CharField(ma... | [
"v.kumar1235@gmail.com"
] | v.kumar1235@gmail.com |
d25b2a00a51d14a243e148c035a3aa5f2c4070c4 | 6062376fa8637a49533ea411f16bdbb9bb042b2c | /service/workflow/workflow_base_service.py | 915c05641d768bd33112ad69f166579e8ae2ebc3 | [
"MIT"
] | permissive | Rgcsh/loonflow_custom | 4ae9d72f811455baff98a0ddff50c54fb3b216a0 | 14d29d6669a6538fe176792d001710616719d050 | refs/heads/master | 2023-05-26T01:23:58.972585 | 2019-12-10T06:57:33 | 2019-12-10T06:57:33 | 227,034,056 | 2 | 1 | MIT | 2023-05-22T22:35:18 | 2019-12-10T05:10:34 | Python | UTF-8 | Python | false | false | 8,836 | py | import json
from django.db.models import Q
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from apps.workflow.models import Workflow
from service.base_service import BaseService
from service.common.log_service import auto_log
from service.account.account_base_service import AccountBaseService
... | [
"renguangcai@jiaaocap.com"
] | renguangcai@jiaaocap.com |
eddb1083f72d566a9ba78588b02c0de1582230e7 | 8cb101991346bd6403cfaca88b0445f917e52254 | /tuneuptechnology/tickets.py | d5ccf178b5ba56d3c933e59ce7abdad16b3a0163 | [
"MIT",
"Python-2.0"
] | permissive | TrendingTechnology/tuneuptechnology-python | a06742fbf404fb1afc525ccf1d432c4c374866f1 | 479bbece1722f7e233dbc0f7642205e1afa971c1 | refs/heads/main | 2023-06-08T17:26:41.108769 | 2021-06-22T02:15:45 | 2021-06-22T02:15:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | class Tickets():
def __init__(self, base_url, make_http_request):
self.base_url = base_url
self.make_http_request = make_http_request
def create(self, data):
"""Create a ticket based on the data passed"""
endpoint = f'{self.base_url}/tickets'
response = self.make_http_re... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
39053cb9d32fb5c76a44bfb827629ba4e6d5e6f8 | 02f79bc383266c71c4bfa0eb940cb663149a7630 | /leetcode and gfg/leetCode/try_test.py | a44a54a909d4651a07c39697f11839525df45389 | [] | no_license | neilsxD/justCodes | a10febad0ac47d115310e6e06768b7a7dc63d05c | 950ae26fce82f54341deee790e5df530f65c88d4 | refs/heads/main | 2023-07-17T04:38:32.703085 | 2021-08-24T10:22:23 | 2021-08-24T10:22:23 | 399,422,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,954 | py | # # # # lis = [[]]
# # # # lis[0].append(2)
# # # # print(lis)
# # # # a = []
# # # # a.extend([2])
# # # # print(a)
# # # # # dic_t = {2: 1}
# # # # # print(dic_t)
# # # # # dic_t[3]= ((1,2))
# # # # # print(dic_t[3][1])
# # # # # dic_t[3] = dic_t[3].append(11)
# # # # # print(dic_t)
# # # # # print(... | [
"noreply@github.com"
] | neilsxD.noreply@github.com |
f95ae46de57449685a1b929e2d7eb3108b8f93a4 | 17ff7ee3aa0dc4b001e4c3ca24581f38f1c26691 | /Jose/Ejercicios-0 Introduccion/Buclewhile.py | febd1db4cd8532a3ab7c76aab58643aec2d54b4f | [] | no_license | carlosmanri/Logic-Thinking | 51ee7309c67e7f0371048401d731617d704edeca | 61ebedda3fe1ffee89daebf274f55e104d515e51 | refs/heads/master | 2022-05-15T21:35:29.050312 | 2015-04-28T18:52:57 | 2015-04-28T18:52:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | lista = []
palabra = input("Escriba una palabra: ")
while palabra != "":
lista += [palabra]
palabra = input("Escriba otra palabra: ")
print("Las palabras que has escrito son: ", lista)
| [
"jotajotanora@gmail.com"
] | jotajotanora@gmail.com |
588cbec8471a39479c9b0cd0ad6d3c275f1ee5e6 | 6e5fba0851dd9c428c0bdf19a56a6e8a3744cba5 | /FinalExam/final4/userDAO.py | 1149ab21b9f058e154c4545eeeb688bb0829a8db | [] | no_license | besteto/mongoBD-101P | 66a3fc59f9c5185f68437a0ce61d36dd842e410a | ef9ba9947f4a837172591d505a21041618debff2 | refs/heads/master | 2021-01-01T16:25:11.918064 | 2015-07-18T23:36:56 | 2015-07-18T23:36:56 | 37,178,508 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py |
#
# Copyright (c) 2008 - 2013 10gen, Inc. <http://10gen.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"besteto@gmail.com"
] | besteto@gmail.com |
ae8725e520c6402628de792b23eacbe688886482 | 3693221a45347a052efbd909e5c1829f040ab314 | /Ex1.py | d500020e8f377d79f03fc8aeff3bf4fba37220c4 | [] | no_license | FedeScuote/proyecto_pln | e2f7aaad55680cb8e8b0384049c7348b995fee43 | f34767988d52719061a47b04debc2a77144113e7 | refs/heads/master | 2020-04-06T04:53:07.523092 | 2016-11-21T03:13:49 | 2016-11-21T03:13:49 | 73,648,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | import matplotlib.pyplot as plt
import operator
import os
import nltk
from collections import Counter
def tokenize(text_name):
"""
1)
:param text_name: receives the name of a text
:return: returns a list of tokens in that archive
"""
raw = open(text_name, 'rU').read()
tokens = nltk.word_to... | [
"fscuoteguazza@gmail.com"
] | fscuoteguazza@gmail.com |
98479f0fdf838f589f1a2a9e81057f6451e9f1f8 | 4df369a423947480377fe1dac09090b0c8ff350a | /LPTHW/ex16.py | 3132402139c54af58eb47ba37cc2799602d5926e | [] | no_license | ryan-cunningham/Other | 38512dd72ffc2433c916b53206e4164557732aa7 | 2d948ed46265006f3b50062dce2cb762ba9a4a5a | refs/heads/master | 2021-10-30T09:03:50.420770 | 2019-04-26T03:47:47 | 2019-04-26T03:47:47 | 102,972,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # LPTHW: Exercise 16 - Reading and Writing Files
from sys import argv
script, filename = argv
print(f"We're going to erase {filename}.")
print("If you don't want that, hit CTRL-C (^C).")
print("If you do want that, hit RETURN.")
input("?")
print("Opening the file...")
target = open(filename, 'w')
print("Truncatin... | [
"noreply@github.com"
] | ryan-cunningham.noreply@github.com |
3ba4d9a3323a8bb7a9dd944f28bff4943cd98968 | 266947fd84eed629ed0c21f6d91134239512afd9 | /BeginnerContest_B/061.py | 8605568528a2b38ba911c5cdf7aae2aba95aad32 | [] | no_license | SkiMsyk/AtCoder | c86adeec4fa470ec14c1be7400c9fc8b3fb301cd | 8102b99cf0fb6d7fa304edb942d21cf7016cba7d | refs/heads/master | 2022-09-03T01:23:10.748038 | 2022-08-15T01:19:55 | 2022-08-15T01:19:55 | 239,656,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | N, M = map(int, input().split())
res = [0]*N
for _ in range(M):
a, b = map(int, input().split())
res[a-1] += 1
res[b-1] += 1
for _ in range(N):
print(res[_]) | [
"sakaimasayuki@sakaimasayukinoMacBook-puro.local"
] | sakaimasayuki@sakaimasayukinoMacBook-puro.local |
400a0257a584a5bde03506f6bfcab9092f778721 | cfca1a0d2200a7ec2652e38c4d3448269b7d30fa | /homework3.py | 9b02f8e1d9eba969e1a8d83c21e206b0318647b7 | [] | no_license | Raghunandan-MS/FOLResolutionEngine | 2a929fef7d0cda578bffc26bd0005b04fffeb26c | d5a5edce457a264ee0f8c771378f24314969ddcd | refs/heads/master | 2020-09-14T03:21:48.174843 | 2019-11-26T01:12:19 | 2019-11-26T01:12:19 | 223,001,546 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,210 | py | import os
import re
import copy
import time
KB = []
pattern = r'([\~]?\w[\w]*)\((.*)\)$' # To be able to mathc the predicat and the specified parameters to the predicate in FOL
stdVariableDictionary = {}
startTime = 0
def readInput():
global KB
global startTime
queryList = []
KBList = []
input_f... | [
"noreply@github.com"
] | Raghunandan-MS.noreply@github.com |
5b80cf5018bb337ff535a03f221739250e143826 | 463fab8078c53dbc7186f264baa42fe95fd08a1d | /store/models.py | c526012645f4a4c0f53d8a707efc95429c9c4e9e | [] | no_license | alkymi-io/migration-exercise | daa68580dede29d1207e8109c18c5df72fa947b9 | 8573f45a9178306994f10e4014d222113ba4bbee | refs/heads/master | 2023-03-30T16:21:13.593523 | 2021-03-15T17:36:21 | 2021-03-15T17:36:21 | 347,194,933 | 0 | 3 | null | 2023-03-25T23:13:33 | 2021-03-12T20:53:04 | Python | UTF-8 | Python | false | false | 869 | py | from django.db import models
class Record(models.Model):
schema = models.ForeignKey('store.Schema',
on_delete=models.CASCADE)
class Cell(models.Model):
record = models.ForeignKey('store.Record',
on_delete=models.CASCADE)
field_name = models.T... | [
"steven@alkymi.io"
] | steven@alkymi.io |
dc65e6410727b1ebb8c1a7f88bd8ec30a210df4a | 6c4e95ef26d571b2e1f68cf64d69243796703c47 | /turtle 2.py | c3c48b36d1caf00bdf650559023e2d72c98b9ac9 | [] | no_license | Vincent36912/python200818 | 5d389e3f526b940459a3c189761418a5cf9b2caa | 7b1a3f98050076c09244e3636fdcb3dc30d62a02 | refs/heads/master | 2022-11-29T05:22:12.280989 | 2020-08-18T08:48:36 | 2020-08-18T08:48:36 | 288,401,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import turtle
a=turtle.Turtle()
screen=turtle.Screen()
screen.title('window')
screen.bgcolor('gold')
a.pensize(3)
a.color('red')
a.shape('turtle')
a.backward(100)
turtle.done | [
"noreply@github.com"
] | Vincent36912.noreply@github.com |
c65b7e673c0a35b00495800f1e42cc14dd21e0e8 | 1dff6eb7028092ee1510a2759fce5c415bfb9d4a | /interim files/pkmnData 624 PM 01-03-2020.py | 06ba9b068ef64dc2709a0f4b942196d7e54afee4 | [] | no_license | jsyiek/computingproject | 401adc6b3d46454ac0005a4c9046f8ddfbbd224f | 0c08bb799969ae31d61bbedf7a44c5e69444c0dd | refs/heads/master | 2022-11-18T04:07:51.834138 | 2020-06-29T20:57:37 | 2020-06-29T20:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,948 | py | pokemonInDraft = ['Charizard',
'Amoonguss',
'Electivire',
'Feraligatr',
'Garchomp','Gardevoir','Gengar',
'Hydreigon',
'Infernape',
'Kyurem-B',
'Lucario',
... | [
"noreply@github.com"
] | jsyiek.noreply@github.com |
5b7a3e70a0c8d1536bd827092600871d7d516ba3 | dc722e81e469ac55474550b29c737bfa1fd0e0a8 | /docs/source/conf.py | 275c71b6a1479430dfc170a06cc86edbc7686858 | [
"MIT"
] | permissive | yuzi40277738/lirc | dc84c8c67b0e0d2bcd4abe4105a2ab19b254309e | 4bdb5523f4dd49bb1d59fffd135f858e180552dc | refs/heads/master | 2023-02-05T20:51:00.307481 | 2020-12-27T02:47:41 | 2020-12-27T02:47:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,067 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"eugenetriguba@gmail.com"
] | eugenetriguba@gmail.com |
462fe25ee917403e855b979c1415b1b7ab5b1cf3 | d0a3c667b5ef93ae78589f5e169657b54764b667 | /gender_classifier_ml.py | 90cfc0df58f65cafe4073da0b65070e6f232458a | [] | no_license | ajomadlabs/GenderClassifier | b9aab74a2fcff7da81c8f1e561f3d0a703037b0f | 8cf22b5908c68bbb3bb0b3ca5da3f6475940dbd3 | refs/heads/master | 2021-01-10T23:55:11.853712 | 2016-10-13T09:08:33 | 2016-10-13T09:08:33 | 70,785,619 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,974 | py | '''------------------------------------------------------------------
A simple classifier which distinguishes between male and
female based on the features and training the model using
DecisionTreeClassifier model
-------------------------------------------------------------------'''
'''---------------------------... | [
"noreply@github.com"
] | ajomadlabs.noreply@github.com |
d24665a4d86deab509d18d4d06742c08a4b14a27 | b2115ba3d9d920ae5a3507a9bf1d7758cfaa5504 | /utils/optim_weight_ema.py | 22452fbac59865afb83b4cae7650500d5c109235 | [] | no_license | CuthbertCai/LCDA | bcc888ccf0c20e942c2ac7d7e022c66458cd7120 | 23d5b1676b254c73afc3edb2f2dffac235905767 | refs/heads/master | 2023-07-26T19:58:29.997190 | 2021-09-05T16:31:20 | 2021-09-05T16:31:20 | 403,355,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | from torch.optim import optimizer
class OldWeightEMA(object):
"""
Exponential moving average weight optimizer for mean teacher model
"""
def __init__(self, target_net, source_net, alpha=0.999):
self.target_params = list(target_net.parameters())
self.source_params = list(source_n... | [
"caiguanyu1995@outlook.com"
] | caiguanyu1995@outlook.com |
efa5eec4043cf6a5165d5feabc2bf0aef0af8821 | 6fceac1b307fafc376c026e03df0915ac941085a | /bcgdax.py | c45808e0515097909a2aad5886be780e93432ef9 | [] | no_license | berkando/bcgdax | d018081445eb4de573845c8f1f91f0e4b45389e8 | 3eac45d134d34d606760bbfc7519fed08a98130b | refs/heads/master | 2021-04-09T15:59:00.844871 | 2017-06-28T17:09:20 | 2017-06-28T17:09:20 | 95,691,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | import requests
# Code that is collecting the same data as the following curl command:
# $ curl 'https://api.gdax.com/products/BTC-USD/trades?after=100' | jq
api_url = "https://api.gdax.com"
product = "BTC-USD"
def getLast100Trades(after_trade_id=None):
after = 'after={}'.format(after_trade_id) if after_trade_... | [
"berkanerol81@gmail.com"
] | berkanerol81@gmail.com |
842238dcd664ffe3b0b79faa8b6f03c0fd696c00 | cabc429faa830126f7ddae115d4da9fede7419fc | /conection/connec_db.py | 3cc67c67e4f7817addf69aac3e4ef19c14f6069a | [] | no_license | necrocyber/carreras | 88275c8bd61330312bdd872fe5b7acc2d04c40bf | f20e38e5ac01ab89f271df95e89167cf11ecc961 | refs/heads/master | 2020-05-16T00:41:33.552017 | 2019-04-21T23:33:12 | 2019-04-21T23:33:12 | 182,586,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | import sqlite3
class Conectar():
nombre_bd = "db/sistema.db"
def run_db(self, query, params = ()):
with sqlite3.connect(self.nombre_bd) as conn:
cursor = conn.cursor()
datos = cursor.execute(query, params)
conn.commit()
return datos | [
"amedel.zen@gmail.com"
] | amedel.zen@gmail.com |
a505b9f708a6afdac5f632c2781f93986786a1a4 | 280a11835bfa70f903d74885900600521c79b4e9 | /theory.computation/src/TuringMachine/main.py | 666fc5937dc323cd0afe33c4cac34f0415686a91 | [] | no_license | hamxyy/practice_py | b44ca93e0ea42e3669e601c84d06d3e21e5472fe | 66a0dd05e55ba5ea91f3389e266d5a9c095fa401 | refs/heads/master | 2021-01-10T19:03:32.076182 | 2015-03-27T07:15:30 | 2015-03-27T07:15:30 | 27,380,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | '''
Created on 26 Mar, 2015
@author: z0037v8z
'''
from src.TuringMachine.TuringMachine import TuringMachineTransition, TuringMachine, TuringMachineState
from src.TuringMachine.Constant import MoveDirection
import re
def transit(curState, nextChar, transitions):
result = transitions[curState.name][nextChar]
re... | [
"hamxyy@Gmail.com"
] | hamxyy@Gmail.com |
3740b278f395768c4a255c2166677022992d93a9 | 85574bab97569bae7368dc4e2d2aa73c73743a9b | /DSPFromGroundUp/Python/016RunningSumV2/main.py | 9bf1bb6d344340923a786a4e595a379f76fda9cf | [] | no_license | saradhimpardha/UdemyDSPFromGroundUpOnARMProcessors | 3c0fcd7272e892f222871dc412fc214851477aea | 576d4a38992533ed0733278d6b4b6444db58706b | refs/heads/main | 2023-05-04T15:45:30.184864 | 2021-05-28T14:40:46 | 2021-05-28T14:40:46 | 458,248,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | #
# Imports
#
from matplotlib import pyplot as plt
from matplotlib import style
import mysignals as sigs
#
# Global variables
#
#
# Private functions
#
#
def calc_running_sum(sig_src_arr,sig_dest_arr):
for x in range(len(sig_dest_arr)):
sig_dest_arr[x] = 0
for x in range(len(... | [
"franco.polo@ii-vi.com"
] | franco.polo@ii-vi.com |
09d731b9e7645f68948b5b29110c343f5d799196 | 0a130a8773fb160fa6ac35744bd2aad2176e4807 | /kehadiran/apps.py | 314276bd98aca9a2996660aae01c1cf13e13620b | [] | no_license | raselstr/Aplikasi-Data-Pegawai | 7a371921efbab703c567804ef4ca85fa29662f9f | 7fe9225f338d6d9c2ba0edb1ec6aff92a4a8f9ea | refs/heads/master | 2023-05-07T14:19:33.322392 | 2021-05-31T09:00:16 | 2021-05-31T09:00:16 | 368,717,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django.apps import AppConfig
class KehadiranConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'kehadiran'
| [
"str.rasel29@gmail.com"
] | str.rasel29@gmail.com |
0c83fce7cbc88cbc6dc44b9f99bcbb1b07ddda13 | 0c56dd0431d4d75eeb82593ae38b49e793cbc6fc | /day24.py | f30d9489e2ab1f2012dff9cfdf7adedee5986f9a | [] | no_license | Brisabrin/Advent-Of-Code- | 47533ac25ceea3a81fc6e1b0aee698c604cfa5aa | 92e75bab0411c24bbe50c4c130cd22d8ff619ede | refs/heads/master | 2023-05-10T09:37:42.636436 | 2021-06-10T06:44:27 | 2021-06-10T06:44:27 | 375,542,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | arr = [[0 for x in range(100)] for y in range(100)]
# deep copy array
f = open("day24.txt", 'r')
coord = {'e': [0, 2], 'w': [0, -2], 'se': [1, 1], 'nw': [-1, -1],
'sw': [1, -1], 'ne': [-1, 1]}
cx = []
cy = []
for i in coord:
cx.append(coord[i][0])
cy.append(coord[i][1])
for i in f:
i = i[... | [
"Brisabrin@gmail.com"
] | Brisabrin@gmail.com |
0751238896833b73c9818850c8150c8aff389c4b | f4b74154a7e50a9cfd325b45046b6c86c1682847 | /src/settings.py | ccb98801ea3144dc52ce825ead5c542150f3330b | [] | no_license | toxicOxygen/personal_website- | 826225a979ef0e62aaddf9730d1fd5d533400310 | 1826ef3de43fc4d162a509f48a1f90392ac136e5 | refs/heads/master | 2021-09-23T09:28:51.103637 | 2020-03-30T02:12:58 | 2020-03-30T02:12:58 | 251,178,977 | 0 | 0 | null | 2021-09-22T18:54:41 | 2020-03-30T02:13:38 | HTML | UTF-8 | Python | false | false | 3,619 | py | """
Django settings for src project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# impo... | [
"kwakukusi30@outlook.com"
] | kwakukusi30@outlook.com |
27cb43ce03426ae33a2a613a5b551d5332371f3c | 4a995ce459f42c372d548eb397e95a7793b8b965 | /cursoshandler/models.py | fe22f8853dc98344edddb248959e587b5692a3c5 | [] | no_license | astandre/chatbot-system | edb1d1835fe61a2140bad53e7f68ce2bc724018a | 99aab3e1e63a05bd475c5af8733b8c771d5e69f5 | refs/heads/master | 2022-12-12T01:37:13.498987 | 2018-10-13T23:03:03 | 2018-10-13T23:03:03 | 145,641,189 | 0 | 0 | null | 2022-12-08T02:47:10 | 2018-08-22T01:49:28 | Python | UTF-8 | Python | false | false | 2,784 | py | from neomodel import *
from neomodel import install_all_labels, remove_all_labels
# remove_all_labels()
# install_all_labels()
# clear_neo4j_database(db)
# TODO set label and help_text
class Curso(StructuredNode):
uid = UniqueIdProperty()
nombre = StringProperty(required=True, unique_index=True)
cod = ... | [
"andreherrera97@hotmail.com"
] | andreherrera97@hotmail.com |
e5ab5fc2668c6debbdb50f2e0940c152ef82a489 | 31ba81b3a6f61c0ca1f36e80b57a508fcc36e106 | /minimise_functions_gradient_descent_and_normal_equation/gradient_descent.py | 604e48b13a906947269cb3d8c4be082bdbff791c | [
"MIT"
] | permissive | dev-nikhilg/gradientDescentAndNormalEquationImpl | 31e535c398cf33e48c8c08bd879332d64d8e2b8e | 622ae656138e29d3a8143228100d4f0133572529 | refs/heads/master | 2020-08-01T05:42:21.396712 | 2019-09-26T19:54:13 | 2019-09-26T19:54:13 | 210,885,240 | 0 | 0 | null | 2019-09-26T19:54:14 | 2019-09-25T15:58:14 | Python | UTF-8 | Python | false | false | 4,046 | py | import numpy as np
import matplotlib.pyplot as plt
from .minimise_function import MinimiseFunction
class GradientDescent(MinimiseFunction):
def __init__(self, X = None, Y = None):
"""Gradient descent class to minimise a generic function
Attributes:
X (n*m feature matrix)... | [
"dev.nikhilg@gmail.com"
] | dev.nikhilg@gmail.com |
45da61cb3415eb8e07c8366c7b8f0ed58e3c101e | 982539edb302b6bee5dd9285e9de00ad866b4cfd | /Tongji/Mode/PlatUserConf.py | 0128446c9127bba03b5fb549b02ac0e89e624e1b | [] | no_license | chennqqi/OpenSaaSProj | 2149a2066c607636ce2106801be2cb722cc0934d | 0f861a61d1bd1499599207a70a8e180930d96573 | refs/heads/master | 2020-04-04T16:14:08.943396 | 2017-06-01T06:50:32 | 2017-06-01T06:50:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | # -*- coding: utf-8 -*-
from datetime import date
from pony.orm import *
def define_user_conf(db):
class Plat_user_conf(db.Entity):
id = PrimaryKey(int, sql_type="int(20)", auto=True)
tm = Optional(date)
ver = Optional(str)
pub = Optional(str)
nameid = Optional(str)
... | [
"sudazhuang1@163.com"
] | sudazhuang1@163.com |
9bb42345a9b15e3849e5dbb76ebcc0d8071398eb | 280a580421a209f89580830576f2691983f80871 | /model.py | afbdc36b3408b77391c2d4a34bb8037eacc00fb2 | [] | no_license | victoria-lokteva/Kidney-segmentation | cef9c7c851052451e60c9c7faaf760e98c3594ef | 942423b92c06f7af180fdb4994cd86ca35641ff7 | refs/heads/master | 2023-05-30T21:12:33.018546 | 2021-06-21T16:45:13 | 2021-06-21T16:45:13 | 376,620,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
"""transfer learning with FCN"""
def prepare_model(pretrained=False):
model = torchvision.models.segmentation.fcn_resnet50(pretrained=pretrained)
if pretrained:
frozen_lay... | [
"vilokteva@yandex.ru"
] | vilokteva@yandex.ru |
1b6a81dbb379628475b39a6cfdb4ecdad50ae3b0 | 22861512cd989755735f5db923c7347cf1420385 | /dday/migrations/0001_initial.py | 6f7d7e7381c61368a3068d2ddeb0ae03ea799ddf | [] | no_license | kimbaeng/Django | 8d4d83bdf371ae7038501b39eac628e5781e3aa7 | 6cf35a37cd1a0998d77656ef48b33ac3fc5ab9c7 | refs/heads/master | 2020-04-04T13:07:52.883731 | 2018-11-03T04:51:03 | 2018-11-03T04:51:03 | 144,718,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-08-25 13:58
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dep... | [
"wndma1224@naver.com"
] | wndma1224@naver.com |
9af1d959d8ba0986ca6b5f688cdb2e2894b1540e | 57f67891a1a762d7acb9f51f810d4f890a6d0502 | /paydex_base_sdk/call_builder/strict_send_paths_call_builder.py | 505a3b7a60941eca520e76617c124777395a9ee0 | [] | no_license | fkmike/paydex_sdk_py | 1deaa0d705e031d6849980ec2a3f7c5aab7fdb7b | 4db4d0afd1a02d7e0076090dc4ee5f9341cae13a | refs/heads/master | 2021-04-10T20:35:55.934768 | 2020-03-13T08:20:15 | 2020-03-13T08:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | from typing import Union, List
from ..utils import convert_assets_to_horizon_param
from ..asset import Asset
from ..call_builder.base_call_builder import BaseCallBuilder
from ..client.base_async_client import BaseAsyncClient
from ..client.base_sync_client import BaseSyncClient
class StrictSendPathsCallBuilder(BaseCa... | [
"czhack000@gmail.com"
] | czhack000@gmail.com |
66fcf53b7320cf8fd3ea1e9562b05c890a8c68ae | 68c3c7e8b57f646dff8b17666fdc3cfcffeb26c0 | /nural_network/kr_logistic_regression.py | e6352a7e7d74e35916c495560b9ed12c7e82e245 | [] | no_license | gragragrao/training_deeplearning | dc8e72ca1c9b51bf65c29a0040d355ddaf6f71fa | 849ed12142abc9ff86a2694d436437dde7905fd2 | refs/heads/master | 2021-01-01T17:26:28.803074 | 2017-08-20T02:03:57 | 2017-08-20T02:03:57 | 98,074,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from commons.libraries import *
# kr.models.Sequentials: to define the model of layers
model = kr.models.Sequential([
kr.layers.Dense(input_dim=2, units=1),
kr.layers.Activation('sigmoid')
])
# another way
'''
model = kr.models.Sequential()
model.add(kr.layers.De... | [
"mathbass.ken531@gmail.com"
] | mathbass.ken531@gmail.com |
208b5d343d8c292713b19ddf713951b904ea7df9 | db52e731e6995ecf1e9bfc5720454d06a136f7de | /server/entity/game.py | 5bd41a83de68030b55960fdaed073ea9d35c86ec | [] | no_license | Deonisii/server.py | 263247b80629874f188222390a4c78cd9f1fd8de | 317afb6ed90093a3bb7b01dc1f4a78ed8e024cf9 | refs/heads/master | 2021-09-12T23:09:20.467101 | 2017-12-05T19:16:59 | 2017-12-05T19:16:59 | 113,549,485 | 0 | 0 | null | 2017-12-08T08:13:37 | 2017-12-08T08:13:37 | null | UTF-8 | Python | false | false | 24,457 | py | """ Game entity.
"""
import math
import random
from threading import Thread, Event, Lock
import game_config
from db.replay import DbReplay
from defs import Result, Action
from entity.event import EventType, Event as GameEvent
from entity.map import Map
from entity.player import Player
from entity.point imp... | [
"d_moroz@wargaming.net"
] | d_moroz@wargaming.net |
505f19ea90ab252de84c926af211dd9c822626ab | f3b97d08bf44ec1ba061f63ecfdeeb1aca21840e | /inference/data.py | 68f25976f1ac1a6f3e40f3eda7f92cbf12cbe208 | [] | no_license | malmaud/damastes | b9c207fd9a6190ee5c3bda6dded92810fcc364fd | 5abfee1f9d3684b9b505b9775a2aca43476d65d8 | refs/heads/master | 2016-09-11T08:50:54.441831 | 2013-09-06T21:44:42 | 2013-09-06T21:44:42 | 12,629,418 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,142 | py | """Tools for importing, saving, and loading data.
"""
import cPickle
import locale
import logging
import os
import re
import dateutil
import numpy as np
import pandas
import prior_sampler
import state
import util
def GetDataDir(dataset_name, file_name='state', extension='pickle'):
flags = util.GetFlags(True)
da... | [
"malmaud@gmail.com"
] | malmaud@gmail.com |
94b48fd60ae2a1848557d45847013a281ca0bb72 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/VoucherAvailableOutItemInfo.py | d0133f8f8df9195637a3cad5457d1610e907a92c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,440 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class VoucherAvailableOutItemInfo(object):
def __init__(self):
self._item_app_id = None
self._out_item_id = None
@property
def item_app_id(self):
return self._item_app_... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
9569a676ee77f48cc8cfe5fb9c05f98b0261da91 | 88a3cf15afdda6e3f1c7adaf19eb7e5524b699f6 | /main/tests.py | ed956579c53775c3f7b54374e06c24f01a5138d1 | [] | no_license | psiphi-py/DevonduToit | 7f5fbc505deca1734013c152b31351af9ca3c408 | 6b2a0bf3bba42e16b470d7c0639dcb0cff236daa | refs/heads/master | 2020-09-24T17:34:58.624345 | 2019-12-04T10:01:29 | 2019-12-04T10:01:29 | 225,345,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | from django.test import TestCase
# Test done during production
| [
"dutoitdevon@gmail.com"
] | dutoitdevon@gmail.com |
7028c0470984e7e563d66f370e2a78d0a038e6e0 | 55620949c31207ecd732cc150ebef888b1111c10 | /run_training_pure.py | dfbdf41b5bf1501357e325718cc9089c34ce68d9 | [
"MIT"
] | permissive | likai1993/DRLCacheClusters | 671ec33d2b78bbc7fdce79fa75ac5e5ce85ddaa3 | a26e9685ad378f437aa28d7c592d0ee08c98b787 | refs/heads/master | 2022-12-04T21:52:05.719523 | 2020-08-21T17:47:48 | 2020-08-21T17:47:48 | 285,300,666 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | #! /usr/bin/python3
import time
import threading
from cache.Cache import Cache
from agents.CacheAgent import *
from agents.DQNAgent import DQNAgent
from agents.ReflexAgent import *
from cache.DataLoader import DataLoaderPintos
if __name__ == "__main__":
# disk activities
datafile = sys.argv[1]
dataloader =... | [
"kai@ykt2020summer.sl.cloud9.ibm.com"
] | kai@ykt2020summer.sl.cloud9.ibm.com |
17aef85561b06fd8af6e1db19176854ad0ed41d8 | 61837b002b2be77cf385e8388c1e480ecd203fd4 | /less_2/less_2_task_9.py | 573cac3e444649c1f653e73622577dd0bb4f13d6 | [] | no_license | laycom/educational_projects | f3a14edc89d1f8e6ccf45e656a4d119b6097d274 | b3e93657e14867d6675b3b160006d63618f8d233 | refs/heads/master | 2022-07-27T04:43:30.891232 | 2020-05-17T11:21:43 | 2020-05-17T11:21:43 | 264,647,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # 9. Среди натуральных чисел, которые были введены,
# найти наибольшее по сумме цифр.
# Вывести на экран это число и сумму его цифр.
num = int(input('Введите количество чисел: '))
max = 0
sum_max = 0
for i in range(num):
value = int(input('Введите число: '))
sum = 0
value_work = value
for i in range... | [
"laycom@yandex.ru"
] | laycom@yandex.ru |
bcf1581afef31e7569bc8ef68a094cb8fad143ea | 70f5f279e051360310f95be895320d8fa6cd8d93 | /extraPackages/matplotlib-3.0.2/examples/userdemo/connectionstyle_demo.py | 1ea2bf5fe8fd2ff9ac9da4674adfb762654d93bd | [
"BSD-3-Clause"
] | permissive | spacetime314/python3_ios | 4b16ab3e81c31213b3db1e1eb00230621b0a7dc8 | e149f1bc2e50046c8810f83dae7739a8dea939ee | refs/heads/master | 2020-05-09T20:39:14.980041 | 2019-04-08T15:07:53 | 2019-04-08T15:07:53 | 181,415,024 | 2 | 0 | BSD-3-Clause | 2019-04-15T05:00:14 | 2019-04-15T05:00:12 | null | UTF-8 | Python | false | false | 1,845 | py | """
====================
Connectionstyle Demo
====================
"""
import matplotlib.pyplot as plt
fig, axs = plt.subplots(3, 5, figsize=(8, 4.8))
x1, y1 = 0.3, 0.3
x2, y2 = 0.7, 0.7
def demo_con_style(ax, connectionstyle, label=None):
x1, y1 = 0.3, 0.2
x2, y2 = 0.8, 0.6
ax.plot([x1, x2], [y1, y2... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
44e80e5fb5d75111c212010c632445489d08fe9c | 47e546799f9b5dfd1ff4a1b4dfddf6cd8a300a1b | /sandbox/230808_1928.py | bc66ee2a1c3257d02bce3b9f0a4735298f70563b | [] | no_license | pome-ta/pysta-icons | 1bde692e8ec066f703e23dbb1b4f2a3f4298bc3c | d4275c30bba96244d5752d104f7da07ab9e7a97f | refs/heads/master | 2023-08-19T03:27:39.043944 | 2023-08-12T22:32:20 | 2023-08-12T22:32:20 | 283,628,583 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | from pathlib import Path
import plistlib
from objc_util import ObjCClass, ObjCInstance, uiimage_to_png
import ui
import pdbg
UIImageView = ObjCClass('UIImageView')
UIImage = ObjCClass('UIImage')
UIImageSymbolConfiguration = ObjCClass('UIImageSymbolConfiguration')
#pdbg.state(UIImageSymbolConfiguration)
class Symb... | [
"53405097+pome-ta@users.noreply.github.com"
] | 53405097+pome-ta@users.noreply.github.com |
80866c0a6acb7ceb64a7a988d56e8332c3a49a86 | 403d1f4acae8edc4ac24bc4830c6f1dababfecaa | /cs255-assignment-10-bitcity/actors/bandMember.py | 1cdb2ec332dc546fb38e07140bb3761e54025f9c | [] | no_license | coleary9/RockBrawl | b5539b01670f5aad3c86f245df346b74bc37bdfa | 1bc7d983481a62ee178ba4774f445e37b16d3b0c | refs/heads/master | 2021-01-01T15:55:36.569836 | 2014-04-09T17:49:00 | 2014-04-09T17:49:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # BitCity Studios:
# Cameron O'Leary <coleary9@jhu.edu>
# Steve Griffin <sgriff27@jhu.edu>
# Jeremey Dolinko <j.dolinko@gmail.com>
# Jonathan Rivera <jriver21@jhu.edu>
# Michael Shavit <shavitmichael@gmail.com>
class BandMember(object):
"""Will contain variables for individual band members"""
def __init__... | [
"coleary9@jhu.edu"
] | coleary9@jhu.edu |
922b1aa37fcf55384b7269d6d11d73a57d5a7f1c | 9cd71f649500646b9fa4e8f0265576dd18769fc5 | /registration/migrations/0001_initial.py | bbbee447c04148484c2feab3ba9e10434d9440f2 | [
"MIT"
] | permissive | CodePalTutorials/codepal-sample-login | 246a56ba4a5d20fe47132c266669f4fc0ae21672 | f553cc7f7794dd20197b1df336ed7953ac7a62dc | refs/heads/master | 2021-01-19T10:05:05.425150 | 2017-06-10T05:50:22 | 2017-06-10T05:50:22 | 87,824,564 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-04-10 09:08
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"shivam.mani@outlook.com"
] | shivam.mani@outlook.com |
4ff06ccaf4e5b5ebfd657a82c367f9fa4008cb4c | 434a457ecdde52c3e525143b984d41bbca6605e7 | /meituan/get_cookie.py | a77f53065c7f0f9f403e0712e7ab4f18a2264af4 | [] | no_license | smnra/amap_GDAL | e5765595dcba9b4c666bec3cb590648d66232e56 | c9d7bb37e68779156642b93e72bdbcff8d847303 | refs/heads/master | 2021-07-05T19:50:35.075938 | 2019-03-03T04:40:35 | 2019-03-03T04:40:35 | 129,040,866 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,399 | py | #!usr/bin/env python
#-*- coding:utf-8 _*-
"""
@author:Administrator
@file: get_cookie.py
@time: 2018/11/{DAY}
描述:
"""
#!usr/bin/env python
#-*- coding:utf-8 _*-
"""
@author:Administrator
@file: meituan.py
@time: 2018/11/{DAY}
描述:
"""
from selenium import webdriver
import requests
import time
import ... | [
"smnra@163.com"
] | smnra@163.com |
eed7bf77c295f4cad446fba4bf255ebf8f992e38 | dc24849073c0a8a70e110a7daa394de593abb29d | /AnimalMultiCategory/ByTensorflow/Stage_2 Species_classification/Species_make_anno.py | 5b62f983c49529ef1cffce609e7e8d0a1f2c022d | [] | no_license | zlwmzh/CV | 29a089521b80750e4ef1cc432b1f7fee13393961 | 80c77e80b88e9c06b94df80bae3119e78e3321aa | refs/heads/master | 2020-09-13T18:49:53.548414 | 2020-01-06T08:15:44 | 2020-01-06T08:15:44 | 222,866,920 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/11/21 20:10
# @Author : Micky
# @Desc : 读取保存的二进制文件,转换为Species_train_features.npy、Species_train_label.npy、
# Species_val_features.npy、Species_val_label.npy
# @File : Species_make_anno.py
# @Software: PyCharm
import os
import numpy as np
import cv2 as ... | [
"1354319679@qq.com"
] | 1354319679@qq.com |
435d0a985383ca2931fdadfb7b0636239050db62 | f6d4667702c5755db15775ab356ada8228cc3588 | /code/scrape/scrape player_team.py | c4f78581db9a3a702ba5f68c83cca71380f7f76f | [] | no_license | Jackie-LJQ/Multiplayer-Game-analyse | 89f12c41e5b59d3eada66c51388e5f32abc5ba1f | 6a5ff44832508c4c5dc073fbe773bff6ba25cc6c | refs/heads/master | 2022-11-09T20:29:56.625045 | 2020-06-24T03:15:17 | 2020-06-24T03:15:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 7 17:05:32 2020
@author: liu
"""
import requests
from bs4 import BeautifulSoup
import numpy as np
import csv
import time
#
url = 'https://www.hltv.org/stats/players?minMapCount=1000'
result = requests.get(url)
src = result.content
player_page = BeautifulSoup(src, 'html'... | [
"liujiaqier@gmail.com"
] | liujiaqier@gmail.com |
ccf1f6930272418887ed692351ffac0a6331e193 | e03aca3988cb718bf268e66a9fbbf3721836e8ba | /receive_sms.py | 8f2513289a92cae9a1677472dac7cc3042e88e30 | [] | no_license | yoannawei/huskies | 8f48066b121140e02c25bdff4238110ca9874ae8 | 02ee05ae5f5626e76a6cacc4f95c43ccd06ddfb6 | refs/heads/master | 2021-05-15T11:21:11.474764 | 2017-10-28T00:22:58 | 2017-10-28T00:22:58 | 108,317,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | import os
from flask import Flask, request, redirect
from twilio.twiml.messaging_response import MessagingResponse
app = Flask(__name__)
@app.route("/sms", methods = ['GET', 'POST'])
def sms_reply():
response = MessagingResponse()
response.message("Huskies for days!")
return str(response)
if __name__ =... | [
"yoanna.yw@gmail.com"
] | yoanna.yw@gmail.com |
7d2794d66c8af7463d80b6feb07f0a139da4daf6 | 6f54ce52f08806075f0445e7dd206baae96ebdca | /IssueTracker/controllers/default.py | f6f0ad38bfb5a2d5fa0f37f28e66d7e27f9f3aff | [
"BSD-3-Clause"
] | permissive | ykanggit/web2py-appliances | a93d318a214aa5b3e5cd6b47b642f2c12addba46 | 5ca7a04d5403f04aad9e90e99e10dbc05a08a50a | refs/heads/master | 2022-05-06T08:55:11.089350 | 2022-04-14T19:25:02 | 2022-04-14T19:25:02 | 49,680,074 | 0 | 0 | null | 2016-01-14T22:41:45 | 2016-01-14T22:41:45 | null | UTF-8 | Python | false | false | 7,707 | py | # -*- coding: utf-8 -*-
def index():
return dict(message=T('Hello World'))
def projects():
#COLUMNS=('project.name','project.author','project.repo','project.license')
FIELDS=(db.project.id,db.project.name,db.project.created_by,db.project.manager,db.project.phase,db.project.repo)
LINKS=[lambda row: A(... | [
"massimodipierro@Massimos-MacBook-Air.local"
] | massimodipierro@Massimos-MacBook-Air.local |
5e4b4c366569875ba481b3c8ffc8b575ea8e8d40 | 7885b4718e82a1c2b7ff38803702f365a5c67d14 | /gameboard.py | c22daca759ea37f1c98d914a0187391cbd92ad5c | [] | no_license | Hatchie-47/Piskvorkator | 104090104ae31fd22ad31eddfe984b5f32fc9266 | 125ab0f714764ab953d84d7f1b02446ee725b7ea | refs/heads/main | 2023-02-16T09:35:01.986185 | 2021-01-11T09:39:15 | 2021-01-11T09:39:15 | 326,442,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,136 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 28 20:07:45 2020
@author: Hatch
"""
import numpy as np
import math as m
import random as r
import time as t
import logging
from sty import fg, rs
class Player():
def __init__(self):
self.dp = 1.1
self.dpt = -0.5
self.st = 0.05
def se... | [
"72996300+Hatchie-47@users.noreply.github.com"
] | 72996300+Hatchie-47@users.noreply.github.com |
94b4bd1f79eeb391f61424e5ec4cb5eccb063e31 | 0a3a82529b0246e6b4662010653dc7c6afebac14 | /frij/admin.py | 1c1adbb92bfedd577a90adc1bc62101e53688c25 | [] | no_license | nlicitra/Frij | 193077fef2fb9f85effe201ce29c93c785fa3a4f | d53ef2114531c8b623039aea61bf4cd9cffa9415 | refs/heads/master | 2016-09-06T03:28:53.595339 | 2015-02-04T02:13:58 | 2015-02-04T02:13:58 | 26,084,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from django.contrib import admin
from frij.models import UtilityType, UtilityCharge, UtilityChargePeriod
# Register your models here.
#admin.site.register(House)
#admin.site.register(Tenant)
#admin.site.register(Room)
admin.site.register(UtilityType)
admin.site.register(UtilityCharge)
admin.site.register(UtilityCharge... | [
"nickerous@gmail.com"
] | nickerous@gmail.com |
52327f791bad53af1e5f123f7f1b3f296bffe0bb | dc940e2aa628eff693af36584cfad935990ebe7d | /v3.1.0/tool/SaveBookInfoToMySqlTool.py | c32721874dd569c804662a6f57f96fbcb50f3b77 | [] | no_license | 520wsl/getXs8Novels | 865572ea488e0bf3d4e21664eb576237b6dd18be | ecf6d0bc5dfdbe4b5c3e8a9aac313bf7abce614b | refs/heads/master | 2020-04-18T00:59:56.777416 | 2019-02-15T08:52:11 | 2019-02-15T08:52:11 | 167,101,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = '书籍数据存储工具类'
__author__ = 'Mad Dragon'
__mtime__ = '2019/1/24'
# 我不懂什么叫年少轻狂,只知道胜者为王
┏┓ ┏┓
┏┛┻━━━┛┻┓
┃ ☃ ┃
┃ ┳┛ ┗┳ ┃
┃ ┻ ┃
┗━┓ ┏━┛
┃ ... | [
"395548460@qq.com"
] | 395548460@qq.com |
2e4d4ad192fac1e61c9f8874b8b0b4a41791f5d5 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_4/Areseye/D_a.py | e133bb845631ab5660737f81985ed9f3e3c0f065 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 585 | py | #encoding:utf8
import os
import pdb
def solve(K,C,S):
ret = [1,]
gap = K**(C-1)
cur = 1
for i in range(0,K-1):
cur += gap
ret.append(cur)
return ret;
if __name__ == '__main__':
with open('d.in','r') as fin:
for ind,line in enumerate(fin):
if ind is 0:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
81bd4caef7d8d902fd1c66113d9584c3b9b8700c | d65ffba497a7ad48438f267f07de32baba841d47 | /entry/others/partition_ds_vgg16.py | b488cc5c61d751641c90ffe6237260168bb95ee6 | [] | no_license | itsmystyle/StableReprLearning | acb34a4bb23d20ec0ac5f3a44231cd1eb56de4d8 | 2169c7c24ae83f98a87a1335af3cab97204cc92b | refs/heads/main | 2023-06-06T23:12:26.522721 | 2021-06-20T15:00:31 | 2021-06-20T15:00:31 | 376,572,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,281 | py | #!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
import pickle, sys, time, copy
import random
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data as Data
import torchvision
import torchvision.models as models
from tqdm.auto import tqdm
fr... | [
"itsmystyle.0821@gmail.com"
] | itsmystyle.0821@gmail.com |
6c7045664afdea039b0e4fd8f7621d890a4a56c1 | 94c2096615dfb665b54aa1d1917cacce4e74d5e5 | /tradition/src/contours_op.py | c8fcaceedea2746788ad4320c77c10535c8e75a9 | [] | no_license | lxngoddess5321/HallerIndex | 3ade7e1457407e3605371a53fa752e2cdbfd9ef6 | c0ab569c9d61a91d578584e4a41270e4efc657c3 | refs/heads/master | 2022-10-01T08:11:35.385384 | 2020-06-01T05:42:58 | 2020-06-01T05:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,803 | py | """
与轮廓相关的操作函数
"""
import pydicom
import cv2
import math
import numpy as np
import pylab
import matplotlib.pyplot as plt
plt.switch_backend('agg')
def find_inner_contour(contours, outline_area):
"""
找到胸腔的内轮廓
Args:
contours (list): 由长到短轮廓排序
outline_area (float): 外胸廓的面积
"""
# ... | [
"844529478@qq.com"
] | 844529478@qq.com |
a97c8fef1b2be6a9c1d1e4d5cd44d86bbc4958cd | 9410417f506abb7c8571c6a398c67f31a1940616 | /Beginner/FSQRT.py | 9572a13085b5c238475cfc9080291a2456c71949 | [] | no_license | mujtaba-basheer/python_programming | d47dce1b5b806150bb56b815d6a4aa825c3bd5a1 | 0e4fc7f045c800f89f4296279f061c663eb67516 | refs/heads/master | 2022-04-20T18:09:32.469761 | 2020-04-25T06:10:49 | 2020-04-25T06:10:49 | 258,700,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | t = int(input())
for i in range (t):
n = int(input())
sqrt = n ** 0.5
print(int(sqrt)) | [
"mujtaba.fleapo@gmail.com"
] | mujtaba.fleapo@gmail.com |
9eb78df548091f870416617ac371dc99c85a5f61 | 639da024f71c9b01278b65fc7da28aa299ff87b9 | /sorting/topological_sort/topological_sort.py | 1fe121accc63585f06b537b2c1d6f89cf4f6fca1 | [] | no_license | 99rockets/algorithms | a13db151ca66d061833f5c7769ca9ef17b0ae480 | 0033568a48bc4e5bfd792aef48859865b158c7b0 | refs/heads/master | 2020-07-03T22:15:56.045687 | 2016-11-19T22:29:13 | 2016-11-19T22:29:13 | 74,225,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from collections import deque
graph_tasks = {
"wash the dishes": ["have lunch"],
"cook food": ["have lunch"],
"have lunch": [],
"wash laundry": ["dry laundry"],
"dry laundry": ["fold laundry"],
"fold laundry": []
}
graph_numbers = {
0: [1, 2]... | [
"makhetov@gmail.com"
] | makhetov@gmail.com |
a407bf63d860d4ef99f814ea52f9fc3f1e4ab7fd | 50ecc145952ddb8716f18c698d241d97d7552782 | /1 семестр/Задание 2/Уравнение1.py | a4825d3ff36edc062c86a7900d2f9cba125bc08a | [] | no_license | V1kos1k/iu7_python | 2e32faabc030c5c0bb6448098c138c1e537ca3bd | c73f73dc71ade15d5bec07a089feaa438c76e45c | refs/heads/master | 2020-03-18T15:05:06.249028 | 2018-05-25T17:35:05 | 2018-05-25T17:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | # Мхитарян ИУ7-17
# Решить уравнение
print('16.09.2016')
print('Введите число x=')
x=int(input())
a=(x+2)
b=pow((x+2),2)
c=pow((x+2),4)
Z=a*(b+3)/(c+b+3)
print('{:7.5f}'.format(Z))
| [
"mhitaryanvika@gmail.com"
] | mhitaryanvika@gmail.com |
c4d952763fef1df914eb61e06168a995e0129fac | 371ddf5445b784f11b47a0db7b8dae47d8e46040 | /sworld.py | 7cca4859e802632709e974f4d454f7b573df3a78 | [] | no_license | RDooley629/Star-Wars-Text-Adventure | 806d1fe9edd9aa30e67b3f7f248900981f88a5b3 | ceb74aaf35ca56abaea3fb781f3838529dafb804 | refs/heads/master | 2021-05-09T01:57:39.224366 | 2018-02-10T19:11:40 | 2018-02-10T19:11:40 | 119,191,469 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,856 | py | class Maptile:
def __init__(self, x, y):
self.x = x
self.y = y
def intro_text(self):
raise NotImplementedError("Create a subclass instead!")
class relica(Maptile):
def intro_text(self)
return """
"""
class storage(Maptile):
def intro_text(self):
return """
"""
class storeroom(Maptile):
def ... | [
"noreply@github.com"
] | RDooley629.noreply@github.com |
094353b92fe4b210be32182725388ec3485add2b | b515ffa85a78e3812b7f94650a8aea81ef870516 | /venv/src/apps/users/admin.py | d0482e4e82f6782a9ca9b7d2ddcc464748188b07 | [
"MIT"
] | permissive | AkashSDas/custom_django_user_api | b9bb8441d6612122ff0ff3d3b48ae7511df0c179 | c19ab2e6ff2d2cb6ef8c42ca87b836f46b702dc5 | refs/heads/main | 2023-03-09T09:34:00.307004 | 2021-02-11T02:47:28 | 2021-02-11T02:47:28 | 337,913,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from .models import UserProfile
# User model
User = get_user_model()
# Customizing the interface of User model in the Admin Page
class UserAdmin(BaseUserAdmin):
list_d... | [
"aakashdas368@gmail.com"
] | aakashdas368@gmail.com |
f20f79e2cfffc85dbdd629bf78ecac089973e3db | b35a367efe37f2b657a2520b353b52922fc9c0a1 | /05_Excel Web Crawling/03_Selenium/00_SeleniumBasic-2.0.9.0/FirefoxAddons/build-implicit-wait.py | 5a036a1bab204b185f740b789eac348aa91c7b0f | [
"BSD-3-Clause"
] | permissive | VB6Hobbyst7/02_Excel | 4b8af7d5f4864690ecd7f670c10d4af0a14932c4 | 3c164e9b01efa6383def09f202e00c7684ce5e63 | refs/heads/master | 2023-06-20T14:35:00.353990 | 2021-07-20T04:26:23 | 2021-07-20T04:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py |
"""Script to build the xpi add-in for firefox
Usage : python build-implicit-wait.py "x.x.x.x"
"""
import os, re, sys, shutil, datetime, zipfile, glob
CD = os.path.dirname(os.path.abspath(__file__))
SRC_DIR = CD + r'\implicit-wait'
OUT_DIR = CD + r'\bin'
RDF_PATH = CD + r'\implicit-wait\install.rdf'
def main(args):... | [
"hanseol33@naver.com"
] | hanseol33@naver.com |
b4f6555d72c6cacb9fa6eab225aff4ab94ddd2b0 | 77d93431ca903d7f97d0eaa1b46a98fc1b372f33 | /yugires/yugiscrapper.py | 5963d5449b223deede8380f9c5ca07ffd6a40b3c | [
"MIT"
] | permissive | DanielLSM/yugioh-high-res | 160ce52b8e0959add9d82b0595aa3f64ccc24689 | bc0cb2149f967fee46f58bdeed8ea089214f2290 | refs/heads/main | 2023-06-06T02:23:32.827861 | 2021-06-29T16:07:54 | 2021-06-29T16:07:54 | 381,405,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from tools impor
database_endpoint = 'https://db.ygoprodeck.com/api/v7/cardinfo.php'
| [
"daniellsmarta@gmail.com"
] | daniellsmarta@gmail.com |
6b688c2274d062b107eef215f2f6857853970569 | 1333357d463006bb6540fb6f68f140c383d4e676 | /data/data_clean.py | 3bcfe42405065c6c3c2b46f2e42f29c6764ba91d | [] | no_license | markWJJ/classifynetwork | ced1ff5eaa9e1c7e9e6440e08e6744070689a305 | d65f22486434fdfbdce38d063e176eb31c5d7354 | refs/heads/master | 2023-01-09T03:12:01.540254 | 2018-09-17T07:50:02 | 2018-09-17T07:50:02 | 149,088,397 | 0 | 1 | null | 2022-12-21T03:34:27 | 2018-09-17T07:48:54 | Python | UTF-8 | Python | false | false | 8,090 | py | # -*- coding: UTF-8 -*-
import re
from collections import OrderedDict
import jieba
import codecs
from hanziconv import HanziConv
import os
import string
import json
import jieba.posseg as pseg
import numpy as np
FH_NUM = (
(u"0", u"0"), (u"1", u"1"), (u"2", u"2"), (u"3", u"3"), (u"4", u"4"),
(u"5", u"5"), (u"... | [
"363451547@qq.com"
] | 363451547@qq.com |
30bd9df19ba7cfe30134d09536a8bffcfafff577 | 4932a33d4376616561f83369d3f08dcfa5c6aa3a | /SC101_Assignment5/anagram.py | c0e44dea57bf2778beda23c1288aad4091f346e8 | [
"MIT"
] | permissive | Timeverse/stanCode-Projects | aeef37e2eb5bdb5e02cfb0e939e704e9c62c46bb | 845244b6cf2c39bf8a1949cea4a3c46125cf5f74 | refs/heads/main | 2023-04-19T12:49:32.339804 | 2021-04-26T12:26:19 | 2021-04-26T12:26:19 | 361,738,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,206 | py | """
File: anagram.py
Name:
----------------------------------
This program recursively finds all the anagram(s)
for the word input by user and terminates when the
input string matches the EXIT constant defined
at line 19
If you correctly implement this program, you should see the
number of anagrams for each word liste... | [
"noreply@github.com"
] | Timeverse.noreply@github.com |
0b8924a6363203554453981192b7d51721c09ad6 | fcd798dd548f292ab2cb334849e9e29c269e4e56 | /fcuser/migrations/0002_auto_20200728_0126.py | c6d20401b5f88af3521bd10bdefa1fe08c51a1fc | [] | no_license | hee-c/Django_Basic | f0986e87445dac2a5d4bdd4c1f54a6430fc43f07 | 36cf5f2040db8186ef86b6f0e549d7f737b8b8db | refs/heads/master | 2023-04-15T15:07:56.376993 | 2021-05-02T13:19:27 | 2021-05-02T13:19:27 | 282,562,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.0.8 on 2020-07-27 16:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fcuser', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='fcuser',
name='username',
... | [
"ways2kim@gmail.com"
] | ways2kim@gmail.com |
a27768a8024b0c4eaceb9c230784cc1baefcc183 | 4fbce74683c8dcd63fbf4197764f80230c357efd | /tap/TapTitain/handlers/upgrade/partner_upgrade.py | 71410e9f758ace920f92619fd95368e361a41684 | [] | no_license | JimmyHuang83/TapServer | f02087243d82ff7621b3ddec5dc4a1bd88efb569 | 423fd5f99272b8f28ba09b1daeef3134548a55e7 | refs/heads/master | 2021-01-10T18:47:03.586877 | 2015-10-01T04:25:00 | 2015-10-01T04:25:00 | 42,388,887 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 1,632 | py | import tornado.web
import tornado.gen
from managers.player_data_manager import playerDataManager
from models.message import MessageTools, MessData, ErrorCode
__author__ = 'Mike'
class Partner_upgradeHandler(tornado.web.RequestHandler):
@tornado.web.asynchronous
@tornado.gen.coroutine
def post(sel... | [
"jimmmyling@gmail.com"
] | jimmmyling@gmail.com |
6a478a825af5bb2e95aa807cea9fff3dfca2c8ff | f2a6b9811bbfa4a8fa36705a3453e9e20db3b1cb | /interpret.py | c85298b680aacf060ac5b4215e178acc8a86d6ea | [] | no_license | hdoupe/sqlite_tools | 7d2ce5d27f250b28b5b7393ec1a9777ed1841aa6 | 3bb635cd58e69b2af04740c80ccea0127c2a8acd | refs/heads/master | 2021-01-01T06:33:10.649173 | 2016-10-17T03:17:24 | 2016-10-17T03:17:24 | 42,671,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | from datetime import datetime
import os
import argparse
def main():
sqlite_table = "path/to/sqlite_table.sqlite"
table_name = "your table's name"
parser = argparse.ArgumentParser()
parser.add_argument("--query","-q",dest = "query",action = "store_true")
parser.add_argument("--queryfile","-qf",dest = "queryfil... | [
"hdoupe@yahoo.com"
] | hdoupe@yahoo.com |
c478158f26eae1bf886583258edec96ce542fa02 | 46fd7911a7fa3107f97ac06dad7342e7b5d428a8 | /accountio.py | dafaa2ba6aac25ec41c7f6c3c8dcadbec6622c03 | [] | no_license | dawnjunnet/Bank-details-command-loop | 94e772789f35818a1f8e8646324a6595ffde53aa | d15bc22da2767bc1faf4ae5cf7c3865bf47a251b | refs/heads/master | 2022-06-19T18:06:37.022736 | 2020-05-09T01:59:34 | 2020-05-09T01:59:34 | 257,075,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | import json
# Function write_account writes the given balance and
# transaction history to an account file whose name is
# account_N.data, where N is replaced by the acctnum argument.
#
# NOTE that the account file will be created if it does not exist.
# NOTE that if the account file already exists, it will be overwri... | [
"noreply@github.com"
] | dawnjunnet.noreply@github.com |
acfd8fc66956190ccdff41889b9fd040de175a49 | d1d19be7f559f57c1b495b4766db400bb541554b | /beberagestockmarket.py | 42331fef135b35b6268dfe8245d98c38436aa108 | [] | no_license | amlluch/trading | f2d23a3f7af5428d6ce61264f062e0a28150e6a4 | 5f136776c98cbd7ba92642e865675fffafe927ef | refs/heads/master | 2020-04-25T13:05:16.049644 | 2019-03-11T10:18:11 | 2019-03-11T10:18:11 | 172,727,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,443 | py | import re
from datetime import timedelta, datetime
import numpy as np
from scipy.stats.mstats import gmean
class Stock: # This is a single stock with all info inside
"""
creates a stock and includes all transactions on a given stock
stock format:
symbol: 3 characters
stock_type: only "c... | [
"amlluch@gmail.com"
] | amlluch@gmail.com |
ceff19f5ab5848c6a5ddb94291f6d38668ba579e | 56525e575228cd41579d462d39f8b65eabb3b3bd | /viz/src/plot_APR_distribution.py | 0229918bb1ba34d42038a17a0b41fbd78549276f | [] | no_license | tomasMasson/APOA1_evolution | fda87e2937c981e74dbfe7fa3c59d8cfe09be3c7 | fe6c8b0b91e71471a79e97f708c89787cbe93be3 | refs/heads/master | 2021-08-11T11:37:14.522677 | 2021-08-09T18:30:05 | 2021-08-09T18:30:05 | 252,469,838 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | #!/usr/bin/env python3
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import argparse
def plot_dataset(dataframe):
sns.set(style="white")
sns.histplot(
dataframe['Position'],
color='#0571b0',
bins=20,
kde=False
)
df = ... | [
"tomasmasson0@gmail.com"
] | tomasmasson0@gmail.com |
8bb879a21d90fb799bcce0febe98dc47b9b63b7e | d373f4e1e112af74e1f6c96cf6dc37b2aa7ce05c | /ShortIT/asgi.py | 37d298533701fbfc14687b475c0d6fc9fe76ccba | [] | no_license | skyman503/Short-IT | a7545fa786b0a7e0cbffcba7ae760b542fed4d1e | 948985658506406a4a2e60a66cf40bf19c94a104 | refs/heads/master | 2022-11-09T13:16:42.429061 | 2020-06-25T21:32:21 | 2020-06-25T21:32:21 | 275,001,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ShortIT.settings')
application = get_asgi_application()
| [
"karolsygiet@gmail.com"
] | karolsygiet@gmail.com |
c0b510a7ba1fba62afc49fc4616c8e867d73b2ad | d9b57163d87fc52a9247e67a9bfe6105d00291fd | /distilbert_model/train.py | 485fd003c7d12549e215eccd6e5f2303ee8b4980 | [] | no_license | andrewpeng02/imdb-sentiment | 498ce7772cad3cb61c0838985c28b90b3ab1431b | ab6b88795146f4957bd965f188321172c99673b6 | refs/heads/master | 2020-09-17T11:10:29.536675 | 2020-07-03T20:19:49 | 2020-07-03T20:19:49 | 224,083,922 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | import click
from pathlib import Path
import time
from transformers import DistilBertForSequenceClassification
from torch.optim import Adam
import torch
from torch.utils.data import DataLoader
from distilbert_model.dataset import IMDBDataset
@click.command()
@click.argument('num_epochs', type=int, default=3)
@click... | [
"andrewpeng02@gmail.com"
] | andrewpeng02@gmail.com |
8e214ab9b8689ad45f45907a3b76296b579670ab | 159707c1ce30bcb9e08fe1df9dca25b7d6b7fe1a | /app/migrations/0001_initial.py | 1f48b7fc82985071cc9601b7a7a37e946ceb6833 | [
"MIT"
] | permissive | agucova/Coins | 031e5a08242a911266669cf5b06720b701b47456 | bd1cbf04516570c20eb1bc9eff62d50e607bbd53 | refs/heads/master | 2020-04-16T14:30:40.409362 | 2019-06-27T21:10:06 | 2019-06-27T21:10:06 | 165,669,607 | 0 | 0 | MIT | 2019-01-14T13:50:08 | 2019-01-14T13:50:07 | null | UTF-8 | Python | false | false | 4,543 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | [
"andrea.benavidesj@gmail.com"
] | andrea.benavidesj@gmail.com |
ac9bc264069f3b02a22624cafb6308e8ec8ae4bf | 79e19819aec49b500825f82a7de149eb6a0ba81d | /leetcode/303.py | f778311ff580a2a44b295e3a1440ef7bab29626f | [] | no_license | seoyeonhwng/algorithm | 635e5dc4a2e9e1c50dc0c75d9a2a334110bb8e26 | 90406ee75de69996e666ea505ff5d9045c2ad941 | refs/heads/master | 2023-05-03T16:51:48.454619 | 2021-05-26T00:54:40 | 2021-05-26T00:54:40 | 297,548,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | class NumArray:
def __init__(self, nums: List[int]):
self.nums = nums
if nums:
self.memo()
def memo(self):
self.dp = [0] * len(self.nums)
self.dp[0] = self.nums[0]
for i in range(1, len(self.nums)):
self.dp[i] = self.dp[i-1] + self.nu... | [
"seoyeon@nowbusking.com"
] | seoyeon@nowbusking.com |
723c8b2001a43c9aa112cd5eba3a02f98544b6f5 | 58ade65dffc7cbe103d93d7c769096a20d9f9815 | /src/smach_based_introspection_framework/online_part/data_collection/StoreVectorToRedisProc.py | d94e5e8102adc6af5a29654d7877be2d0b34a276 | [
"BSD-3-Clause"
] | permissive | birlrobotics/smach_based_introspection_framework | 2cff69ecec030a5b5046dea99f9e15105f52361b | f16742339cddfc86effba4dbf6e5062304704b89 | refs/heads/master | 2021-05-09T12:02:26.946473 | 2019-05-29T02:46:47 | 2019-05-29T02:46:47 | 119,001,821 | 7 | 1 | null | 2018-07-05T04:58:40 | 2018-01-26T03:37:58 | Python | UTF-8 | Python | false | false | 1,512 | py | import multiprocessing
from ConvertTagTopicToInterestedVectorProc import (
data_frame_idx,
smach_state_idx,
data_header_idx,
)
class StoreVectorToRedisProc(multiprocessing.Process):
def __init__(
self,
com_queue,
node_name="StoreVectorToRedisProc_node",
):
multiproc... | [
"sk.law.lsq@gmail.com"
] | sk.law.lsq@gmail.com |
eb7311f8345d96db7e10cd248adddd89b7a807db | 3c1a2da3cf337ce7e19725feb2ab5940116e4e03 | /datasets/csvlist.py | c56cb72e7fc8e504cf92a6de043f5250e69ffc2d | [] | no_license | jiazhi412/DebFace | c8e4c5d4120f7013c1795e6dac7639629f3a3b33 | 2f74570a73dd4c252805da47ae18ef3915c42196 | refs/heads/master | 2023-08-24T21:48:10.961338 | 2021-10-20T19:16:49 | 2021-10-20T19:16:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | # filelist.py
import os
import csv
import math
import torch
from random import shuffle
import torch.utils.data as data
import datasets.loaders as loaders
import numpy as np
from PIL import Image
import pdb
class CSVListLoader(data.Dataset):
def __init__(self, ifile, root=None,
transform=None, loa... | [
"gongsixu@prip1.cse.msu.edu"
] | gongsixu@prip1.cse.msu.edu |
338551c4bcc5024d0a73e510ab9658dc2975f19f | 34af9eee717eaf205265444bfd1d39c2f0675353 | /src/users/auth_backend.py | 362b149c43831c99fe39e34b215ba6ddab274344 | [] | no_license | mohanj1919/django_cookiecutter-rest_api | e48ee7bf330004026cd6a5be6323902a2da474c8 | f9c02043dba21aa7c810340b8816237cdd504052 | refs/heads/master | 2020-09-16T07:15:19.658456 | 2017-08-05T07:25:57 | 2017-08-05T07:25:57 | 94,485,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py |
from django.contrib.auth import get_user_model
class EmailBackend(object):
def get_user(self, username=None):
UserModel = get_user_model()
try:
user = UserModel.objects.get(email=username)
return user
except UserModel.DoesNotExist:
return None
def ... | [
"mohankumar1919@gmail.com"
] | mohankumar1919@gmail.com |
507866f7c228417366dd16ecd01240835de10707 | ffe26a7490dfb5f696e2fb7a6681e7a077ee8e03 | /sys_clock.py | 5127b7957cf2b37630791aa9e44ff4956702a642 | [] | no_license | lcp-team-fdg/RPi1Image | 1f00e5374fa62dddc4808130f43abd96d00da02e | 9967e565006ccd979216123ecc72f094563ed640 | refs/heads/master | 2020-05-30T12:52:50.335710 | 2019-06-08T21:47:30 | 2019-06-08T21:47:30 | 189,746,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,106 | py | """
GS_timing.py
-create some low-level Arduino-like millis() (milliseconds) and micros()
(microseconds) timing functions for Python
By Gabriel Staples
http://www.ElectricRCAircraftGuy.com
-click "Contact me" at the top of my website to find my email address
Started: 11 July 2016
Updated: 13 Aug 2016
History (newest ... | [
"kroelld.96@gmail.com"
] | kroelld.96@gmail.com |
7b5ebbb6b02299b7f47b6077cba156000ceeb9c3 | 8efe9a6c9489d798b5f5b610eb531d86924a1548 | /src/wix/urls.py | c74a0f134076e607c3999dbed8538b6643de2a2f | [] | no_license | MarekBiczysko/naklisze_public | e8e6f7e61cdb83b74ea68862b40c061c0253767b | e53c0e8fefffbcfc3a8859976eb7b81cf6270847 | refs/heads/master | 2022-12-12T02:27:09.824803 | 2019-07-23T10:54:47 | 2019-07-23T10:54:47 | 198,410,666 | 0 | 0 | null | 2022-12-08T01:03:08 | 2019-07-23T10:46:57 | Python | UTF-8 | Python | false | false | 288 | py | from django.views.generic import RedirectView
from django.conf.urls import url
from .views import wix_page
urlpatterns = [
# url(r'^$', RedirectView.as_view(url='https://biczysko.wix.com/foto')),
url(r'^$', wix_page, name='wix'),
url(r'^', RedirectView.as_view(url='/')),
]
| [
"marek.biczysko@stxnext.pl"
] | marek.biczysko@stxnext.pl |
220101fd40320ea39f01df910b25061d9e52a33b | e4ea1f2ada2da0e671e571355a5526fbdf9614a4 | /tile.py | a7d9f1f29ecbef8484a7fa8da4ddc7eca87dd337 | [] | no_license | youndukn/LASTRA | 2143ceaf94d94f11112361bb72f2c857d7399b76 | ca7f843949615ef980f51e58cc941c50632b51fc | refs/heads/master | 2021-01-19T00:31:46.178525 | 2019-01-28T01:54:21 | 2019-01-28T01:54:21 | 87,180,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,409 | py | import tkinter as tk
import random
from tkinter import messagebox
import time
from astra_rd import AstraRD
import keras.backend as K
import numpy as np
from keras.layers import Input, Add, Dense, Activation, Concatenate, ZeroPadding2D, BatchNormalization, Flatten, Conv2D,GlobalAveragePooling2D, \
Conv3D, AverageP... | [
"Whites11!"
] | Whites11! |
61abe84b1c8861332157ee57244832fe731b1498 | f9bcdd8fe51e94b884752574229bc592a84be6bd | /python/315_Count_of_Smaller_Numbers_After_Self.py | 33e899cb414d1e0faa68834085f58c7d725813e5 | [] | no_license | HankerZheng/LeetCode-Problems | cf46a24444cfc3e6bcff38c10a5bb5945e410b5b | d308e0e41c288f23a846b8505e572943d30b1392 | refs/heads/master | 2021-01-12T17:49:40.072069 | 2017-08-17T04:37:20 | 2017-08-17T04:37:20 | 69,397,987 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | # You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smaller elements to the right of nums[i].
# Example:
# Given nums = [5, 2, 6, 1]
# To the right of 5 there are 2 smaller elements (2 and 1).
# To the right of 2 there is... | [
"zhenghan991@gmail.com"
] | zhenghan991@gmail.com |
7498608177b6c5a40ca374cdbcc9f21fd5298be9 | b3e6c46241dc393214b17d58677a7869e7e4ac9a | /gui.py | 8db260ac6a582d015f0a5f1777a40bde9610a878 | [] | no_license | Bhawna4tech/Smart-Audio-Book-Reader | 72cc4b4ed8c00b187c52ab6a5ed220c8e75c33ed | 9d70992c3e0d506b801696901cea5c35c0f0dab3 | refs/heads/master | 2021-01-09T19:05:33.501942 | 2016-08-03T11:32:55 | 2016-08-03T11:32:55 | 64,841,098 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,710 | py | #!/usr/bin/python
import os
import subprocess
import shutil
import MySQLdb
from Tkinter import Tk, Frame, Menu
import button
db=MySQLdb.connect("localhost","root","root","books")
cur=db.cursor()
speed=130
volume=40
def change_speed(menu,entry):
global speed
print menu
print entry
print speed
speed= 30 *... | [
"noreply@github.com"
] | Bhawna4tech.noreply@github.com |
688bac0891c7135030e8bf35d07f7a9518baae31 | c5d87c7f25e3fe9b17c1e88993b0ed6831e52acb | /Socket/GPS_Server_Test/GPS_Server_testData.py | 2d6e0b37aa0f879b89e87aa831bf512762c6fe1c | [] | no_license | GIS90/python_base_use | e55d55f9df505dac45ddd332fb65dcd08e8e531f | 7166ca85975bb7c56a5fbb6b723fd8300c4dd5d1 | refs/heads/master | 2020-04-02T08:33:49.461307 | 2018-10-23T03:33:41 | 2018-10-23T03:33:41 | 154,249,857 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,941 | py | # -*- coding: utf-8 -*-
"""
------------------------------------------------
describe:
this tool be used to
------------------------------------------------
"""
import SocketServer
import codecs
import datetime
import os
import threading
from SocketServer import BaseRequestHandler
SOCKET_DATA_MAX =... | [
"mingliang.gao@qunar.com"
] | mingliang.gao@qunar.com |
7e45a200414423d396becba56436abd46f1d731e | 66862c422fda8b0de8c4a6f9d24eced028805283 | /slambook2/3rdparty/opencv-3.3.0/samples/python/floodfill.py | 1b988d3763ef61c3f84e1e5039da4e6540f9914f | [
"MIT",
"BSD-3-Clause"
] | permissive | zhh2005757/slambook2_in_Docker | 57ed4af958b730e6f767cd202717e28144107cdb | f0e71327d196cdad3b3c10d96eacdf95240d528b | refs/heads/main | 2023-09-01T03:26:37.542232 | 2021-10-27T11:45:47 | 2021-10-27T11:45:47 | 416,666,234 | 17 | 6 | MIT | 2021-10-13T09:51:00 | 2021-10-13T09:12:15 | null | UTF-8 | Python | false | false | 2,007 | py | #!/usr/bin/env python
'''
Floodfill sample.
Usage:
floodfill.py [<image>]
Click on the image to set seed point
Keys:
f - toggle floating range
c - toggle 4/8 connectivity
ESC - exit
'''
# Python 2/3 compatibility
from __future__ import print_function
import numpy as np
import cv2
if __name__ ... | [
"594353397@qq.com"
] | 594353397@qq.com |
dea9ae81ec3c79c951c1a534da27bc2fc44a20ec | 96a9a4bbf0550fa16ab74fc184354ac10c974000 | /python/advanced-strings.py | d1bfeb75f9809f50039ae20bfa74303ff1e25851 | [] | no_license | licjapodaca/ethical-hacking-course | 9a4a24759360c3d2cf03b3cb9ed025e911a90f59 | 7ea6e0731eefa7597d9ae1f08931e2a82f990a69 | refs/heads/main | 2023-03-27T16:40:57.495812 | 2021-03-25T21:10:20 | 2021-03-25T21:10:20 | 350,839,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | #!/bin/python3
# Advanced Strings
my_name = "George"
print(my_name[0])
print(my_name[-1])
sentence = "This is a sentence."
print(sentence[:4])
print(sentence.split())
sentence_split = sentence.split()
sentence_join = ' '.join(sentence_split)
print(sentence_join)
quote = "He said, \"give me all your money\""
print... | [
"mcsd@jorge-apodaca.net"
] | mcsd@jorge-apodaca.net |
fe547b0d6f92c919781366e3a1059ab975ea9b14 | 725abfa74e3800622837e60615dc15c6e91442c0 | /venv/Lib/site-packages/django/contrib/messages/storage/session.py | 7dbd24a8da5c105a8955f5695fe53d22b05df70b | [] | no_license | Malak-Abdallah/TODOlist | 4840e2e0a27e6499ae6b37524bb3e58455d08bfb | fd35754e8eac9b262fae17ec16ad9fb510a12f5d | refs/heads/master | 2023-07-16T11:38:48.759232 | 2021-08-31T09:43:11 | 2021-08-31T09:43:11 | 401,600,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | import json
from django.contrib.messages.storage.base import BaseStorage
from django.contrib.messages.storage.cookie import MessageDecoder, MessageEncoder
class SessionStorage(BaseStorage):
"""
Store messages in the session (that is, django.contrib.sessions).
"""
session_key = "_messages"
def _... | [
"malkobeidallah@gmail.com"
] | malkobeidallah@gmail.com |
721d65e2c1c2c695a007ea68bca71a1ce9b8de68 | 56516211b5cd6b7465ba79000357a3fbc99bf7f2 | /backend/web/cart_product/migrations/0003_auto_20180311_1911.py | 49d5b682e265f3070d60ee94260a755b31514109 | [] | no_license | mrnonz/mejai | 4c165571a4a9599d6c11e981443a7bfb8ec4a57d | 506afb4ba33e998d5bfd4389c9b280cea082e237 | refs/heads/master | 2022-12-13T06:37:47.680151 | 2020-10-01T05:43:07 | 2020-10-01T05:43:07 | 101,288,901 | 0 | 0 | null | 2022-12-09T08:18:23 | 2017-08-24T11:45:01 | JavaScript | UTF-8 | Python | false | false | 712 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-11 19:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cart', '0001_initial'),
('cart_product', '0002_auto_2... | [
"nontawat39@gmail.com"
] | nontawat39@gmail.com |
8770db87586708d0a54dd67e1a2975ec6317d52b | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2772/8317/301956.py | b1c4c2bd1a959d947400f88d06dd30c9659cc1b4 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def solve():
num = int(input())
for _ in range(num):
n = int(input())
print(pow(n, 1/3))
solve() | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0c49b984bf9f2ac8bae5046c1f435df4c90cd46f | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SSD/mmdet/models/builder.py | 05efb838ed26ce7d0c12f1cdf8a678b15d583bdd | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,225 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
bfbb2ed9d81edf4dc490af7eed968fa79efd0218 | b4c0c347cca4856bbdf82c06142ae9cd18e02746 | /api/urls.py | 1d615a689e579ce450aaeedf48063cafdbe39872 | [
"MIT"
] | permissive | AanandhiVB/bank-admin-backend | dfb9793eedd6a447d25ad15f3417f4933806a512 | cce02c37e06dc2cd72d160f4817ec7658714831e | refs/heads/main | 2023-05-05T15:19:35.241460 | 2021-05-23T18:49:22 | 2021-05-23T18:49:22 | 370,040,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from django.contrib import admin
from django.urls import path
from . import views
app_name='api'
urlpatterns = [
path('branches/autocomplete', views.autocomplete, name="autocomplete"),
path('branches', views.search, name="search")
] | [
"aanandhi.vb@gmail.com"
] | aanandhi.vb@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.