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
113af3e207e4b01797c11ec0d406ac5a136b56c2
801418efbd049078c8aad4cd17297f3ece571412
/temp/toy/python/238. Product of Array Except Self.py
d7da2b067439b8c2b107a462617c0fb4b8eac579
[]
no_license
xixihaha1995/CS61B_SP19_SP20
2b654f0c864a80a0462fdd4b1561bdc697a8c1e2
7d6599596f7f49b38f1c256ece006b94555c1900
refs/heads/master
2023-01-01T18:41:48.027058
2020-10-29T04:50:01
2020-10-29T04:50:01
240,976,072
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
class Solution: def productExceptSelf(self, nums: List[int]) -> List[int]: res, p, q = [1], 1, 1 for i in range(len(nums)-1): p *= nums[i] res.append(p) for i in range(len(nums)-1, 0, -1): q *= nums[i] res[i-1] *= q return res
[ "wulicheneason@gmail.com" ]
wulicheneason@gmail.com
30dfff8bcb7876a52d6a99c2cd8349866f1eb587
9da79476a3002a4af98cc76effdabdbec9613adf
/Extended_Methods/Heuristic_2/GLOBAL_VAR.py
3bb5558e36235af3c35eb3a14bab112ea60dec5a
[ "CC-BY-4.0" ]
permissive
heyuan7676/ts_eQTLs
1cb0517dbe1faac616fef6e5ebc87ffb6d47899a
62b04f5477183f5c0cb60f21264b3147fd8bd82a
refs/heads/master
2021-07-15T13:23:20.491904
2020-10-09T16:03:53
2020-10-09T16:03:53
211,209,498
20
2
null
null
null
null
UTF-8
Python
false
false
3,354
py
import os import sys import numpy as np import pandas as pd import pdb r2 = '1' FDR = 0.05 fmDir = '/work-zfs/abattle4/heyuan/tissue_spec_eQTL_v8/FL/coph' ll_dir = '/work-zfs/abattle4/heyuan/tissue_spec_eQTL_v8/LL' prefix = 'v8_cbset_95_allPairs_filteredGenes.ciseQTL_results.complete_filteredSNPs.LDblocks_%s...
[ "yuanhe777tt@hotmail.com" ]
yuanhe777tt@hotmail.com
f481ea5b3e5bc16aabe05bdd0923e9f989d4f03d
a9f508078a6950ec72c7bd4fbf6b2cac664c31a9
/proxypool/importer.py
976e76680792e8db97cea4bf72fea86830e54f56
[]
no_license
0x1un/proxypool-china
6bcaf7bd3ed7fa440bc6ef132dada7e1cc0185d7
b480ffe62c802c579e754fcb0bcceca8fe246a74
refs/heads/master
2020-03-20T09:48:47.860726
2018-06-16T13:36:51
2018-06-16T13:36:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
from proxypool.db import RedisClient conn = RedisClient() #导入函数 def set(proxy): result = conn.add(proxy) print(proxy) print('录入成功' if result else '录入失败') #手动导入代理 def scan(): print('请输入代理, 输入exit退出读入') while True: proxy = input() if proxy == 'exit': break set(pr...
[ "aumujun@gmail.com" ]
aumujun@gmail.com
32b8a244de29e4e047b0af3c9a8d1030db2a951d
4d06cc4dc18358741cc30a68a97c3a5e0755ad40
/image_recovery/imglib.py
765d5fceb6e2c400085c1918e84b6fa67532c62f
[]
no_license
maridonskova/color_image_recovery_ozon_masters_nla_project
047e755f074a0dca04cfe6b9d476dd65c5dadca8
17760cb93c36d9a192b99e746d7fdcbbab8734f3
refs/heads/master
2022-04-06T17:20:30.479329
2019-12-20T18:50:40
2019-12-20T18:50:40
215,392,053
1
1
null
null
null
null
UTF-8
Python
false
false
4,005
py
# ================================ import numpy as np import cv2 from itertools import product # ================================ def img2qm(filepath: str) -> np.array: """ Reads image from file in filesystem and transforms it to NumPy 3-tensor Parameters: ---------------- filepath: str ...
[ "ayiserov@gmail.com" ]
ayiserov@gmail.com
0758d42be8c51765633d9a7297cba762e8b04a25
cb55abd80671e898f08e07710bd87c72ba559477
/backend/provider/sendgridservice.py
23c8e65589e43d8381fa04ceaaad61cb32086739
[ "MIT" ]
permissive
laughinging/yaes
ef307a27806ebbd9e6bb0f318825b7bdf4ad25b3
0893f7848ee0530fa6c3bd553f89aa430f9b2f02
refs/heads/master
2020-03-18T05:14:14.684146
2018-05-30T12:29:55
2018-05-30T12:29:55
134,331,994
0
0
null
null
null
null
UTF-8
Python
false
false
2,356
py
import os import logging import sendgrid from set_up import sg_client from sendgrid.helpers.mail import * from backend.provider.provider_exceptions import * logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) class SendgridMail(object): SENDGRID_ERROR = { 400: "BAD REQUEST",...
[ "qianyunguo@gmail.com" ]
qianyunguo@gmail.com
a262ae2e16a1c482655881051aec3552ba5cef76
3e8f63c0e45de6df395f41c62889330ad1a2f839
/lesson10/basic/warehouse.py
551ee21a9ee3bdfb327fde49840ae8bccb54269e
[]
no_license
lvshaokang/python
336de2ec7d532fc777bf221dece307ee6625562f
71807622f19922e1ea718c38c544fc77d666d274
refs/heads/master
2020-03-28T19:41:44.530856
2018-10-01T14:56:45
2018-10-01T14:56:45
149,000,805
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
class WarehouseManageSys: def __init__(self): self.item_detail = {"老坛酸菜": 5, "红烧牛肉": 4, "酸辣粉": 6, "拉面": 7, "老干妈": 10, "乌江": 2, "王中王": 2, "蒜肠": 12, "淀粉肠": 8} def get_item_list(self, item_type): pm_list = ["老坛酸菜", "红烧牛肉", "酸辣粉", "拉面"] zc_list = ["老干妈", "乌江"] xc_list = ["王中王", "蒜肠"...
[ "lvshaokang@hotmail.com" ]
lvshaokang@hotmail.com
a3048e66ffb33cc2d58ad1fbd2181763d17a7bc4
37e95a54c78b2cad61a8977833c3b69a9d757a5c
/Excepciones4.py
73dba6ebeb5910b26a297d8e9511abc603c9b74b
[]
no_license
solrac205/curso_python
b8ab869440887523a0be56fc9b5ab4f53921ac98
c372dde614918a66e323da0ce16184f7d84c3a1e
refs/heads/master
2023-02-06T01:43:13.612237
2020-12-31T03:25:09
2020-12-31T03:25:09
325,693,852
0
0
null
null
null
null
UTF-8
Python
false
false
1,989
py
print("******************************************************") print("Curso No. 23 Excepciones" ) print("******************************************************") def divide(): try: op1=(float(input("Ingrese el primer valor a operar: "))) op2=(float(input("Ingrese el segundo valor a operar: "))) print("La div...
[ "carlos_205ram@hotmail.com" ]
carlos_205ram@hotmail.com
75d2f93063a4feaf6b869a50b0e5a88d40500e00
2bcf18252fa9144ece3e824834ac0e117ad0bdf3
/httpy/tags/0.7/tests/TestCaseHttpy.py
08a1fc6dd3fb6eb41284fefc3f7dc8c1602cb96c
[]
no_license
chadwhitacre/public
32f65ba8e35d38c69ed4d0edd333283a239c5e1d
0c67fd7ec8bce1d8c56c7ff3506f31a99362b502
refs/heads/master
2021-05-10T14:32:03.016683
2010-05-13T18:24:20
2010-05-13T18:24:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,199
py
"""The idea and code for running a test._server in another thread are from the standard library's test/test_socke._server.py. TODO: This is out of date now that we are using asyncore (via httpy._zope._server). """ import asyncore import os import select import socket import threading import time import unittest fro...
[ "chad@zetaweb.com" ]
chad@zetaweb.com
861bd0f912326d66adf883ca271ce7af6319eb44
21906e3edd0cebc04a43f198fce4946c4cf3cf4f
/main_opencv.py
842ea1a4595658042f44649009e93cde77649e9a
[]
no_license
chincherpa/slit_scan_image
f675a070b56b9f7b5f26d2d6fb53d11e827f721a
f5868d43296467f72ea33754a33f21640d75b1bf
refs/heads/master
2020-06-29T21:57:47.557903
2019-08-05T10:56:15
2019-08-05T10:56:15
200,635,139
0
0
null
null
null
null
UTF-8
Python
false
false
900
py
import os import sys import numpy as np import cv2 this_path = os.path.dirname(os.path.realpath(__file__)) filename = 'big_buck_bunny_720p_5mb.mp4' path_to_file = os.path.join(this_path, filename) output_filename = os.path.splitext(os.path.basename(path_to_file))[0] + '.png' clip = cv2.VideoCapture(path_to_file) firs...
[ "accounts@mail.de" ]
accounts@mail.de
6651590162295a4127549a42719282d946ad2af4
a679c7624dd97779858bb7695b9e113bde09b6c6
/Python/Medium/firstNonRepeatedChar.py
cb6b0102b768d492ec5a2e63051bc8e09b366610
[]
no_license
lgminh/Challenges
8f2fe24bae97a0343a6ccfa20ffcfa95b92469e7
1da5c2b7b49f36f2e8d8786ed54834e9af34086c
refs/heads/master
2021-10-29T01:34:40.692029
2019-04-25T09:10:41
2019-04-25T09:10:41
75,462,282
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
from string import ascii_lowercase def firstNonRepeatedChar(s): x = {} for i in ascii_lowercase: x[i] = [] for idx, c in enumerate(s): x[c].append(idx) for k,v in x.items(): if len(v) != 1: del x[k] print min(x.values()) for k,v in x.items(): if...
[ "minhlg@ahamove.com" ]
minhlg@ahamove.com
41b8a35c5311c10f292a99c2ef0c63c9c5713fa9
0a5aeb6d170e14fc53d07c0523d1b995db1fd341
/Lab 7/file sequential.py
2f54749f2e24d636a6a30e96c47e57cb0177c025
[]
no_license
iweyy/WIA2004-Operating-Systems
f664f8b9a32654de7ab1887131410dd69475edca
3106393626ee05171637404cee68fc4e8c2acee2
refs/heads/main
2023-08-08T14:26:11.961866
2021-06-01T15:55:43
2021-06-01T15:55:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,478
py
maximum = 50 files = [0]*maximum repeat = 1 while repeat == 1: start = int(input (f"Enter the starting block of the files (0-{maximum-1}): ")) while start<0 or start>=maximum: if start>=maximum: print ("Exceed maximum number of file") if start<0: print ("Cannot be a nega...
[ "megathilmi49@gmail.com" ]
megathilmi49@gmail.com
1b498a36f1e5cddb3c338c90afdb44c34630961f
794543da14ede49acde50acfac76681e87f31673
/src/training_scripts/sprp_onmt_copy_512/validate.py
58e8a364d3f0da808802f433ecd18845a2bb7706
[]
no_license
roeeaharoni/sprp-acl2018
0f404dd27e5ea09f427df920e3d47b0d45d6c5d7
2d215999cd72cc0f59d7a6733e1b1f1d7ea54777
refs/heads/master
2020-03-07T23:33:59.874847
2019-02-15T10:06:01
2019-02-15T10:06:01
127,784,457
16
5
null
null
null
null
UTF-8
Python
false
false
1,835
py
from src import evaluate import os def main(): model_name = 'sprp_onmt_copy_512' base_path = '/home/nlp/aharonr6' moses_path = base_path + '/git/mosesdecoder' test_dirs_path_prefix = base_path + '/git/Split-and-Rephrase/evaluation-directories/validation/' # the file containing the ids of the te...
[ "roee.aharoni@gmail.com" ]
roee.aharoni@gmail.com
3c0d2f6529512fe74b919bbd685a3ca9f69943c6
00c56919bc5919b2f728b3d631ad4b2d2fdb14fa
/missingvalues/Student/missingvalues_student.py
29efce54c92d59c33e70bcedcbc0eb810628f351
[]
no_license
Tcintra/Missing-Values-and-Feature-Engineering
b108299176826a1124af52bd0102edcc11ed362b
f0b751253ce921b3e22d9310413a204517dfa212
refs/heads/master
2020-06-12T15:15:36.480988
2019-07-11T23:28:36
2019-07-11T23:28:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
""" Author : Thomas Cintra and Yun Zhang Class : CS 181R Date : 2019 June 20 Description : Credit Score analysis Name : Homework 3 """ # seaborn module import seaborn as sns # python modules import os # numpy module import numpy as np # pandas module import pandas as pd # matplotlib modul...
[ "noreply@github.com" ]
Tcintra.noreply@github.com
25efd543c95c0f31ed446fd5997a5882b21497e1
b992ccd52327348af6d647b078ce43a356be5ff4
/ScrapyTest/ScrapyTest/pipelines.py
3ea8bba409b53ba8500899bad694824cfe4d854e
[]
no_license
moritzwilksch/ScrapyProjects
b22ddd259484bf3604bba64eb64df00f2fb2443e
a29a07b760defd398a44048cb92e0d4b7f623d9c
refs/heads/main
2023-01-12T17:01:54.746172
2020-11-22T13:55:12
2020-11-22T13:55:12
315,046,775
0
0
null
null
null
null
UTF-8
Python
false
false
911
py
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter from scrapy.exporters import JsonItemExporter ...
[ "moritzwilksch@gmail.com" ]
moritzwilksch@gmail.com
e074302c25447ad18fcf0611616ce9b72342db7e
276c023c6c051611724eca97595511d422152f4b
/tests/test_server.py
22863dfb74ece7697161d765f8d914eaec4cdb39
[ "MIT" ]
permissive
perrinjerome/cmake-language-server
2aa1a03ee2a4b1df8acdee953da1fb7b3270c36d
66af586b2aa4da1a21b54e566f81d250acb0a848
refs/heads/master
2020-12-07T08:15:00.568358
2020-01-03T17:17:26
2020-01-03T17:17:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,732
py
from concurrent import futures from pathlib import Path from typing import Optional from pygls.features import (COMPLETION, FORMATTING, HOVER, INITIALIZE, TEXT_DOCUMENT_DID_OPEN) from pygls.server import LanguageServer from pygls.types import (CompletionContext, CompletionParams, ...
[ "regen100@users.noreply.github.com" ]
regen100@users.noreply.github.com
bce22db2adda5234a705ff0d1fb719565b3bddd8
9692a20a1e7a224a72785e4495f31421639b9f3b
/frex/pipeline_stages/filters/candidate_filterer.py
2d79e3b31e1ec3776b5978e1f52488af2826dfdb
[]
no_license
solashirai/FREx
6b0cb040930761a0e269f4591d7dde36e3f636d1
36ad09a0cb0020661ee990c7800bafd110e2ec04
refs/heads/master
2023-08-14T08:49:49.270281
2021-09-29T14:58:23
2021-09-29T14:58:23
291,760,109
0
0
null
2021-09-24T22:41:19
2020-08-31T15:57:47
Python
UTF-8
Python
false
false
2,535
py
from abc import abstractmethod from typing import Generator, Optional, Any from frex.models import Explanation, Candidate from frex.pipeline_stages import PipelineStage class CandidateFilterer(PipelineStage): """ CandidateFilterer is a PipelineStage that determines whether input candidates should be removed f...
[ "solashakashirai@gmail.com" ]
solashakashirai@gmail.com
c7fa88552bf8e2d09b066cfbefe9f1deb2738348
b4b5b755eb767c8b8224df7d05f94ab49e9eae1d
/lib/model/test.py
635fdbb590850b0c96dd8f9556abb5e419b7d099
[ "MIT" ]
permissive
107618024/Windows-Faster-RCNN-TensorFlow
8aa18d96df569251eeebec7c877bc2904e590035
95e73edffd0c0a556a2de8b832db53509d3db1f9
refs/heads/master
2020-06-22T19:00:17.663216
2019-07-09T17:06:49
2019-07-09T17:06:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,246
py
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ impor...
[ "32533059+gwspotex@users.noreply.github.com" ]
32533059+gwspotex@users.noreply.github.com
e827ef9de12fa0211e6677aa82084594cd16d444
6b76819d395bb76591fc12e9de83161b37d61672
/woot/apps/expt/management/commands/step02_zmod.py
f30ef4f4d650e4b9e4688253eed2cfb7feb067a9
[]
no_license
NicholasPiano/img
8426530512ee80a4ed746874c4219b1de56acbfd
3a91c65c3c9680ba7ed7c94308a721dd0cff9ad5
refs/heads/master
2020-05-18T15:48:50.566974
2015-07-16T00:01:17
2015-07-16T00:01:17
38,632,176
0
0
null
null
null
null
UTF-8
Python
false
false
1,707
py
# expt.command: step03_zmod # django from django.core.management.base import BaseCommand, CommandError # local from apps.img.models import Composite from apps.expt.util import * # util from optparse import make_option spacer = ' ' * 20 ### Command class Command(BaseCommand): option_list = BaseCommand.option_lis...
[ "nicholas.d.piano@gmail.com" ]
nicholas.d.piano@gmail.com
a65b97abab28068022d29611ca85cf695c6bb4c6
6e8eef0a0523382c3505e8f1d8f390e1a10afd07
/scraper/ku_scraper.py
8682d97d937d478bdbee43b21ec5371937887e38
[ "MIT" ]
permissive
israfelsr/course-summarization
a81edcfb23ca17edf4fdc0e01255f0e92887aeec
0a3ec432d3690167f036dc5b01625908f37a1da3
refs/heads/master
2023-08-22T22:47:35.500127
2021-09-23T11:41:39
2021-09-23T11:41:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,995
py
# Python Imports from bs4 import BeautifulSoup import numpy as np import pandas as pd import time from tqdm import tqdm, trange # Local Imports from scraper.utils import * class KuScraper(): def __init__(self): self.masters_url = 'https://studies.ku.dk/masters/programmes/' self.university_name = 'Universit...
[ "israfel.sr@gmail.com" ]
israfel.sr@gmail.com
8268a59d42801e2ee2cd8a1c58941a45940bc16a
f6a3de837ac401c464ada6d980b084425ef45791
/alexa-iot/device-broker.py
df6cfdf87a18510e1d4b32847420767a3692e0d9
[]
no_license
johanlu4st/python-alexa-skills
4f9a0bf39c0d94cac9ef3318b9e094f2da275560
e71f5d4e1f49469dd9321fafbc166d2e65509ef8
refs/heads/master
2020-09-14T09:54:49.013271
2018-05-11T11:22:34
2018-05-11T11:22:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,067
py
from flask import Flask, render_template from flask_mqtt import Mqtt from pymongo import MongoClient import datetime app = Flask(__name__) client = MongoClient('mongodb://pyiot:password123456@ds133166.mlab.com:33166/pyiot-stackup') db = client['pyiot-stackup'] app = Flask(__name__) app.config['MQTT_BROKER_URL'] = 'm1...
[ "bunnyppl@gmail.com" ]
bunnyppl@gmail.com
3931ee5baf8bc1af8cebd1dfcacdfcb03668a43e
6cf909646199c6aa4e7a32a2f804c750013b4d2d
/property crriter.py
7343516c2d36acb6d67f5eb1d26bb246d3fe478a
[]
no_license
LJ0401/pizzapy
3613dbba44e243fcb52672ee15389d07e4f7a7f5
21f76af524a822a841a7ab7ee385263ce4ad49b0
refs/heads/master
2021-01-22T21:37:22.828565
2017-04-13T14:21:28
2017-04-13T14:21:28
85,444,138
0
0
null
null
null
null
UTF-8
Python
false
false
765
py
#Property Critter #演示属性 class Critter(object): """A virtual pet""" def _init_(self, name): print("A new critter has been born!") self._name = name @property def name(self): return self._name #访问属性 def talk(self): print("\nHi, I'm", self.name) #程序主体 ...
[ "1351507858@qq.com" ]
1351507858@qq.com
1515e9a592a06f8c05dc0dec9c9fd9eb17031857
15563e9aff20ceeb813bc89f02b7832f5fef8a89
/tests/test_filerecorder.py
988a9258575b12423828e9d590bc5d36d8a43e80
[ "BSD-3-Clause" ]
permissive
openxc/openxc-python
5cc9a3b6ddf9ce7ecf6bca3163c306c0d5f4fbd9
5341180fea6c364027dedc9bc4c8027b2831325f
refs/heads/master
2022-05-12T22:26:54.176224
2021-08-11T14:35:16
2021-08-11T14:35:16
6,508,031
91
33
BSD-3-Clause
2022-03-24T11:23:19
2012-11-02T15:20:10
Python
UTF-8
Python
false
false
162
py
import unittest from openxc.sinks import FileRecorderSink class FileRecorderSinkTest(unittest.TestCase): def test_create(self): FileRecorderSink()
[ "chris.peplin@rhubarbtech.com" ]
chris.peplin@rhubarbtech.com
3da95531c372cce9a2250fcbe7c834b331cfe810
22f4146b560571bfc646b7f0b500a4540f0db936
/Exercises/hand.py
3849da666c9b6fa084d014601ac091b1b7fdd5e7
[]
no_license
xFluke/MITx-6.00.1x
86f3801593ce0dadfd468b039731b70c9e23a660
a973bddeae9312a936f5989bb124728b044f34a6
refs/heads/master
2020-03-28T16:36:08.046350
2018-09-13T23:56:34
2018-09-13T23:56:34
148,711,552
0
0
null
null
null
null
UTF-8
Python
false
false
3,136
py
import random class Hand(object): def __init__(self, n): ''' Initialize a Hand. n: integer, the size of the hand. ''' assert type(n) == int self.HAND_SIZE = n self.VOWELS = 'aeiou' self.CONSONANTS = 'bcdfghjklmnpqrstvwxyz' # Deal a new hand...
[ "noreply@github.com" ]
xFluke.noreply@github.com
d393bbe033abd2b8272cc0170156ef42703866a4
12342d6bf6635bf2bfc734f3a8e9bcb40e8782ce
/day5_2017.py
5b129fa811622a09731c9bd23ae465913e23c384
[]
no_license
ngocmtu/adventofcode
6d06d008eae4b07b303dcf814a2e2ba42d599909
cde11d15284faa0433e3a62fc69fca7c9b93aaba
refs/heads/master
2020-03-23T08:01:23.707800
2018-07-24T18:49:00
2018-07-24T18:49:00
141,303,967
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
# s = [int(line) for line in open('input.txt','r').readlines()] # s= [0,3,0,1,-3] def solve_part1(s): new_pos = 0 cur_pos = 0 count = 0 while True: if new_pos >= len(s) or new_pos < 0: return count else: count += 1 cur_pos = new_pos step = s[cur_pos] new_pos = cur_pos + step s[cur_pos] += 1 def ...
[ "noreply@github.com" ]
ngocmtu.noreply@github.com
2ac108f270cf5ffa0bfbca7755b958d446b3a030
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/merra_scripts/01_netCDF_extraction/merra902Combine/21-tideGauge.py
784ddb0d0f655471f76357e1f1df6c7540900599
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
2,374
py
# -*- coding: utf-8 -*- """ Created on Tue Jun 17 11:28:00 2020 -------------------------------------------- Load predictors for each TG and combine them -------------------------------------------- @author: Michael Tadesse """ import os import pandas as pd #define directories # dir_name = 'F:\\01_erainterim\\01_er...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
16bf0ef9ec53acb6b4376b1146bb236b50565626
fddad101c7be2fcbc05131081e708f31948c002f
/329. Longest Increasing Path in a Matrix/answer_bfs.py
a9141a61f5be8c4c3d3ff273a059e79b03652077
[]
no_license
LennyDuan/AlgorithmPython
a10c9278c676829ab5a284a618f6352414888061
523c11e8a5728168c4978c5a332e7e9bc4533ef7
refs/heads/master
2021-07-16T12:31:08.284846
2021-03-28T20:31:28
2021-03-28T20:31:28
244,040,362
0
0
null
null
null
null
UTF-8
Python
false
false
935
py
def longestIncreasingPath(self, matrix) -> int: if not matrix: return 0 res = 0 visited = set() rows, cols = len(matrix), len(matrix[0]) directions = ((0, 1), (0, -1), (1, 0), (-1, 0)) def traverse(i, j, visited): if (i, j) in visited: return 0 res = 1 ...
[ "hod8@aber.ac.uk" ]
hod8@aber.ac.uk
abe3042622f37a3eb01601fb6fef3fa398f676a7
6438528fd3b380b1f5dcb94f4ccb18dc9add06e2
/py/size.py
fa1f0756b62d1a4ec6dbc5ac640d3b20c49d444f
[]
no_license
JanStoeckmann/point_cloud_denoising
df4b6ce61095bbcd2a7c48485debef946654dacf
2da1a93b30d83541f8388df3cf609809bcb49fb5
refs/heads/main
2023-02-07T14:22:20.094419
2020-12-21T14:38:18
2020-12-21T14:38:18
322,682,380
1
0
null
null
null
null
UTF-8
Python
false
false
723
py
#! /usr/bin/python import sys import numpy as np import os def load_pcd(input): file1 = open(input, 'r') Lines = file1.readlines() cloud = [] for line in Lines: if (line[0].isnumeric()) or (line[0] == "-"): point = (line[0:-1]).split(" ", 2) cloud.append([float(point[0])...
[ "jansto@web.de" ]
jansto@web.de
0588bf589dc53ee0422f074a5ff5c91ed6377dba
d8e0d76faf67f5f466aa72b5515b1e84f30f2750
/resources/spotipy/util.py
1ca2a057fd7fc8906f4f1923abdf7c1202422a46
[]
no_license
NicolasHaeffner/spotimark
edf23a1a1ce7256dc8c5e2b6e73e3ad5c4f54441
cea4067f4aca0f78e1c996e5a72bbe3ae5eae66d
refs/heads/master
2021-05-13T16:41:10.508334
2018-01-09T10:07:05
2018-01-09T10:07:05
116,799,463
0
0
null
null
null
null
UTF-8
Python
false
false
2,981
py
# shows a user's playlists (need to be authenticated via oauth) from __future__ import print_function from . import oauth2 import webbrowser from http.server import BaseHTTPRequestHandler, HTTPServer from urllib.parse import urlparse as urlparse import threading from time import sleep class TokenHandler(BaseHTTPReq...
[ "nicolas.haeffner@me.com" ]
nicolas.haeffner@me.com
7e4604149921d96cee1e6d69a3b590c27c1da8f1
fb5fe577eaf98073ebe458ee51b3ef288e956353
/week5/9.py
ab76ec63b57426393f2e57bfd99d4a6eb4908de2
[]
no_license
askarakshabayev/PP2_2021
f41b9703411602877c037f4a2099eb29f262125c
366793190ae7e6461e659697bfbefed28ae5e26e
refs/heads/master
2023-04-09T11:59:32.046566
2021-04-17T07:51:40
2021-04-17T07:51:40
334,356,647
1
3
null
null
null
null
UTF-8
Python
false
false
524
py
import os import shutil # dir_path = "/Users/askar/Documents/KBTU/PP2/week5/test1/test2/test3" # os.makedirs(dir_path) # src = "/Users/askar/Documents/KBTU/PP2/week5/test1/test2/test3/input.txt" # dst = "/Users/askar/Documents/KBTU/PP2/week5/test1/test2/test3/input_1.txt" # os.rename(src, dst) src = "/Users/askar/Do...
[ "askar.akshabayev@gmail.com" ]
askar.akshabayev@gmail.com
6d8269da5291ae9167422229e4273a6016767dd4
843bb82a466376ca0a74a6e28bffa8bf43df72b8
/covid_tracker/users/migrations/0001_initial.py
a6439db3963e263f35577e52584547014c08f095
[]
no_license
heyswatisrivastava/covid_tracker
a27210db400a83a466d21258fa6e4c062ac46c1f
843efed94d1df47d19a00f7d1fb7d3e40086c9a6
refs/heads/main
2023-05-10T12:04:57.788635
2021-06-28T11:11:34
2021-06-28T11:11:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,573
py
# Generated by Django 3.2.4 on 2021-06-27 06:38 from django.db import migrations, models import django.db.models.deletion import django_mysql.models import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Creat...
[ "swatisrivastava162@gmail.com" ]
swatisrivastava162@gmail.com
bb085c931ea83f30ef777b2ca2a79f3eddced1d0
1953ad2d8cc8a36e29d3d48e5458aeb69bf17bdd
/[9372]패션왕 신해빈.py
8d1c75cf0e13cc09638262f1edfb0beec15e5d53
[]
no_license
wookkl/backjoon-problemsolving
8b75ac4575ffdc15615bc5672f1d5358ac3016a4
fbe7e051c7513f52b2ac26472dfc34955013549d
refs/heads/master
2023-04-10T22:33:49.614340
2021-04-25T00:50:47
2021-04-25T00:50:47
219,535,847
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
for _ in range(int(input())): items = [input().split() for i in range(int(input()))] d = {k: 0 for _, k in items} res = 1 for v, k in items: d[k] += 1 for v in d.values(): res *= (v + 1) print(res - 1)
[ "wjddnr315@gmail.com" ]
wjddnr315@gmail.com
67c00ebedf8cd9fafcd55f4e5118aa391ff74616
a397c77c92522252a7333aa712949b8001e7f443
/freebot/modules/life.py
a9be7d70ec8a94577154af42daee6c072e0a2c1b
[ "LicenseRef-scancode-public-domain" ]
permissive
vashadow/Kopachris
a7b3fa64cd0b45afc12f389c61770c5c1a13d6da
fa791f00df9b5e332b82cd39f9ceb704579218b9
refs/heads/master
2023-09-04T10:30:10.761319
2021-09-26T03:23:31
2021-09-26T03:23:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
854
py
import re ## Description stored in db.bot_modules description = "The answer" ## Prefix stored in db.bot_modules ## Each module should have its own prefix for bot_vars entries prefix = "42_" ## Event type handled by this module event_type = "PRIVMSG" ## Additional global vars #H_HTTP = {'User-Agent': 'Mozilla/5.0 (X...
[ "chris@WS01-Chris.kopachris.net" ]
chris@WS01-Chris.kopachris.net
8679eb15e7abddc2ffc51114e648c08423ab7ebd
2aec9c5e8c72b731d3abf22f2a407fe09c1cde09
/QDS_Test/case/dbwytest.py
22710e1c97b825043ebe5514995dd8e8038a0300
[]
no_license
jiangyg/ZWFproject
8b24cc34970ae0a9c2a2b0039dc527c83a5862b5
aa35bc59566d92721f23d2dd00b0febd268ac2dd
refs/heads/master
2020-09-26T17:01:00.229380
2019-11-15T13:16:21
2019-11-15T13:16:21
226,297,631
0
1
null
2019-12-06T09:55:37
2019-12-06T09:55:36
null
UTF-8
Python
false
false
3,860
py
# coding=utf-8 import time import logging from selenium.webdriver import ActionChains from utils.mytestcase import MyTestCase from utils.logincookie import DengLuPage from utils.random import unicode from utils.screenshort import get_screenshort class DbWyTest(MyTestCase): """担保无忧测试集""" ...
[ "34021500@qq.com" ]
34021500@qq.com
238056c98f81b88787366589bde5eb878cd01528
a93af8744c2a7c6fd0b8e353c9a6a6af563376e1
/venv/exporter.py
6ad74bd3e42333b0d0897cbb1b5b72ddd6c93337
[]
no_license
ohjiwoo123/Python-JobScrapper
9189cba701cac1d7ee52932ed2e2cde2f81f7d63
e2591233b0c9c1473ce7682b41b6959b20944965
refs/heads/main
2023-06-02T22:06:20.385638
2021-06-20T13:23:05
2021-06-20T13:23:05
373,442,512
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
import csv def save_to_file(jobs): file = open("jobs.csv",mode ="w") writer = csv.writer(file) writer.writerow(["title","company","location","link"]) for job in jobs: writer.writerow(list(job.values())) return
[ "ohjiwoo123@naver.com" ]
ohjiwoo123@naver.com
ba3c5206735c47b78b510cda18d0093d61793a4f
5822544fcead26c64e6d05ba57ba2ab0fb446b39
/Program/FunctionList.py
a3c63b08a3e4b2af213ea65bd5f0989db3e1c811
[]
no_license
R-second/PyAlgorithmProblem
7ba72b152b9f1356c448fb292aea5380c86e8b84
32ba15b9d9459731ee6dc5553bbaa756114c5323
refs/heads/master
2020-05-20T00:01:16.972241
2019-05-11T11:31:42
2019-05-11T11:31:42
185,279,094
1
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
# FunctionList.py import tkinter import PrimeFactor import Fibonacci import Gcd import MaxMin import Sort import Calendar class FunctionList: # functionListにアルゴリズムの名称を設定 functionList = ["素数判定", "フィボナッチ数列の出力", "最大公約数出力", "最大値判定", "ソート", "万年カレンダー"] @classmethod def functionMain(cls, num): # subW...
[ "R-second@yamadarigatsu-no-MacBook-Air.local" ]
R-second@yamadarigatsu-no-MacBook-Air.local
11e357c42da450eb40840e5bb31b4c09f2f26c89
edb9121984ef9d6647ea7462c1401bdc6b9451e7
/grid_modules/__init__.py
1712334588c3eebf6859a51bae6265f6929e4b86
[]
no_license
yang0110/controllable_agent
eceb6b17da4ea22cf8de753dd5260da37b2a403c
befeb7386d22ef8806725740ee08cbf9c87a5a0d
refs/heads/main
2023-08-25T21:25:49.977459
2021-10-14T13:08:53
2021-10-14T13:08:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
37
py
# from grid_modules.common import MDP
[ "ahmed.touati90@gmail.com" ]
ahmed.touati90@gmail.com
2dd2ab1673c7b063eaa173cb49cb2e9ec01c412c
5aa3e81a9b7b251ee510208aab5f6a000c8d9e67
/Selenium/21 Comment(未完成).py
4223aeb1e7f17659ff81a1494ec9171ae95d40f6
[]
no_license
PhenomK/Project
d99aae43d837863e86a8aee56eb92ec08c632f2b
7a5a1481ff29023c0a2d5cbcac24d1d7ccf9c684
refs/heads/master
2021-09-05T01:31:08.874681
2018-01-23T12:38:10
2018-01-23T12:38:10
104,861,165
0
0
null
null
null
null
UTF-8
Python
false
false
1,613
py
import time from selenium.webdriver.common.action_chains import ActionChains from selenium import webdriver #登陆 driver = webdriver.Chrome() driver.get("http://172.16.29.37:8080/user/login") #测试网址 elem1 = driver.find_element_by_id("user_slug") elem1.send_keys("chrome") #用...
[ "Ghope.plus@gmail.com" ]
Ghope.plus@gmail.com
18f607375d344ca11cc2a0c33fc9166c84602bde
58f314bc2df12c3c3b1ce7eacd5baaf60193008b
/tests/song_test.py
de5dcf007fcd024d43318168e73a2645656fb53c
[]
no_license
portypy/Caraoke_bar_w2
e75fe57d357fe6bebf5b9b6372cbf0e6ec357796
3010052e1c371b345be31c7ce72ffdb48fc47658
refs/heads/main
2023-01-13T13:33:17.367773
2020-11-28T23:41:31
2020-11-28T23:41:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
import unittest from src.song import Song class TestSong(unittest.TestCase): def setUp(self): self.song_1 = Song("Gotta Go", "Agnostic Front", 3.2) self.song_2 = Song("On My Radio", "Selecter", 3.52) self.song_3 = Song("Divorce a I'ltalienne", "Mungo's Hifi", 3.46) def test_song...
[ "macdorphoto@yahoo.com" ]
macdorphoto@yahoo.com
5edaa1b154eb40102fe6ec6a4a37b893c4eab07f
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/hv572GaPtbqwhJpTb_2.py
8e0bb6a39e996aa650ed4adf5f67abcc31d4539a
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
2,831
py
""" In this challenge, you must think about words as elastics. What happens when do you tend an elastic applying a constant traction force at both ends? Every part (or letter, in this case) of the elastic will expand, with the minimum expansion at the ends, and the maximum expansion in the center. If the word has a...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
729ab8bbd28235101a138824f2811f233210925f
a4f6e1caef32ddfd45fdf5475fbec24020e8be19
/KNN from scratch for mushroom dataset.py
4451375f94947ed573902870c40da4a363849fcd
[]
no_license
rishabkr/KNN-classifier-from-scratch-for-Mushroom-Dataset
1c4ef8740ad63f7c5c8b0a7774478d15de654c6a
3fe49a331ac45346c719ff8ca433838fe3605b66
refs/heads/master
2020-12-29T16:11:21.315946
2020-02-06T10:41:59
2020-02-06T10:41:59
238,664,774
0
0
null
null
null
null
UTF-8
Python
false
false
6,587
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from pprint import pprint import random import math from collections import Counter class KNNClassifier: def __init__(self): pass def train_test_split(self, dataframe,test_size): dataframe_size=len(data...
[ "noreply@github.com" ]
rishabkr.noreply@github.com
6c166f5f43ac352167d81f6b03513dddb17c94c5
d8f78d99e742806c963981ed227174ce16533b70
/ABC051/c.py
44e516975f8b8ef61484ae59e992d94dfda17eeb
[]
no_license
pekopekojun/atcoder
28e3ad4e8a0741e31fbfa4ff6d6a29b964ef67c8
56bcad4855c11b12fcc8f11a65c33c501da3dff2
refs/heads/master
2023-03-04T00:44:15.742378
2021-02-12T14:53:06
2021-02-12T14:53:06
336,311,790
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
sx, sy, tx, ty = map(int, input().split()) dx = tx-sx dy = ty-sy print("U"*dy + "R"*dx, end="") print("D"*dy + "L"*dx, end="") print("L" + "U"*(dy+1) + "R"*(dx+1) + "D", end="") print("R" + "D"*(dy+1) + "L"*(dx+1) + "U", end="")
[ "jun805@gmail.com" ]
jun805@gmail.com
117b4771a177a59bd2de0e47c5d4fb55e40f5dcf
39373e3f2a4e1a70cdf6e5cbbe189c2748f2b8b5
/Project2A/wrapper.py
d8b77ad60b37346858e3d3be2269570fd9284aaa
[]
no_license
justkk/Penn-Computer-Vision
d00a7c3af2364643ac4a15f222a5f3656fdacf75
cb3305ec3a2cbed6f1aeadb534eb7ebea26c5472
refs/heads/main
2023-02-13T10:55:50.812795
2021-01-13T20:45:33
2021-01-13T20:45:33
314,481,282
0
0
null
null
null
null
UTF-8
Python
false
false
5,021
py
from morph_tri import * from click_correspondences import * import imageio sourceImage = np.array(Image.open("cat.jpeg")) destImage = np.array(Image.open("tiger.png")) #sourceImage = np.array(Image.open("leo.jpg")) #destImage = np.array(Image.open("sachin.png")) sourcePoints, destinationPoints = click_correspon...
[ "nikhilt@nikhils-MacBook-Pro.local" ]
nikhilt@nikhils-MacBook-Pro.local
1c37e0a39fb706b42f03597283cf1a50dd03b413
f9888153e33dc29324d868ca7f1f0ec14b6b4bd4
/aireal/roof/view_results.py
e0d9c783b3c96475a711cee90d1d2ea8e98a11d0
[]
no_license
gsvigruha/images
a029a51bf7bbcc5384ddb34c26e52eaf98261e04
6aac3deca36b09049f9f403ba438fdb7a98ee92e
refs/heads/master
2021-07-21T06:34:57.383519
2020-05-25T01:32:20
2020-05-25T01:32:20
173,651,473
0
0
null
2020-05-25T01:32:21
2019-03-04T01:18:23
Python
UTF-8
Python
false
false
3,163
py
import matplotlib.pyplot as plt import numpy as np import matplotlib.image as mpimg from matplotlib.pyplot import figure import tensorflow as tf from images.aireal.roof.image_loader import LABELS, TRAIN, BATCH_SIZE def feature_iter_1(test_file_list, model_file): sess = tf.Session('', tf.Graph()) with sess.graph...
[ "noreply@github.com" ]
gsvigruha.noreply@github.com
07c1baec5353d639e78ede2a77b169e7d80091d1
a5dd79505b3e9d0c089f623d479aac75da47a426
/Scatterplot Matrix.py
84372143a36c5f711f8b684da4d0ebe8cc459554
[]
no_license
BsRam07/Data-Visualization---Python
e0cbbaa32baeaea4697a9cfcf4393ece7a3c636c
d4978b7699589e54e4c8ca9147b2d4b979bad80e
refs/heads/master
2020-04-25T20:16:38.595310
2019-02-28T05:34:44
2019-02-28T05:34:44
173,047,053
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
import numpy as np import matplotlib.pyplot as plt import pandas as pd import scipy.stats as stats import seaborn as sns sns.set() df = sns.load_dataset("iris") sns.pairplot(df, hue="species", size=2.5) plt.show()
[ "noreply@github.com" ]
BsRam07.noreply@github.com
9d503b337aa4b2aae5d968b8480f250c62f28706
4ac006cf216a2aac21dfdbf66db51b195066676f
/Proj5/tracking_sp16/bustersAgents.py
3482936d7e35ce0949627de786d0accfea16849a
[]
no_license
Snedakerwalker1/cs188
af98c3549ee0dede3bc546f265f97966c65ac5cc
9b7662b03a0be57e1702d454472990ec0b4036fa
refs/heads/master
2020-06-12T02:44:06.673108
2019-07-23T19:21:17
2019-07-23T19:21:17
194,171,860
0
0
null
null
null
null
UTF-8
Python
false
false
6,441
py
# bustersAgents.py # ---------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkel...
[ "wsnedaker@berkeley.edu" ]
wsnedaker@berkeley.edu
72228f507a4ac8d98397a992ca802e652f3d5c8f
2207cf4fb992b0cb106e2daf5fc912f23d538d0d
/src/catalog/serializers.py
1e85a0316ce6f1e7fa4b866254126cb6dd9a095a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
litedesk/litedesk-webserver-provision
95bc75f61532c5f1c7cb21fb5372ff288999689e
1576b9d3e5e2e64d1136d276767c2710cfb1938f
refs/heads/master
2021-05-15T01:35:31.984067
2020-08-18T10:55:20
2020-08-18T10:55:20
25,595,412
1
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # 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/lice...
[ "raphael@lullis.net" ]
raphael@lullis.net
f382e321982d7046239348d2a2c1037f961777ea
012d619f174805e5aef31d3a51e5954542e5f270
/Dj030101/Dj030101/urls.py
81417811b7d92bc96bd871880e68821a0346eb75
[]
no_license
thunderdrum/self-service-supermarket
8174a591bb91f5e67b86a51af56784b458788cf1
6e98511e37f09547f7f625626abd11fdedc41ab9
refs/heads/master
2022-04-01T21:43:21.988989
2020-01-23T03:05:57
2020-01-23T03:05:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,598
py
""" Dj030101 URL Configuration The 'urlpatterns' list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') C...
[ "noreply@github.com" ]
thunderdrum.noreply@github.com
4f0706689cac0ecb6adf7fe4ca0138f3f97c9ef1
7a77660d3205640c049cd2802954faaa819ce5b3
/Visualize.py
e329f25aede26bc2afcd8f91e1d8ea46ddc593b3
[]
no_license
jagan-hazard/Convolutional-Neural-Network
b197c2e0277751a874a2bf00f752e5cd0e0faf31
7fb24b9a8578a69cbfa52f1a3cb896532265669b
refs/heads/master
2020-03-20T08:04:24.625616
2018-06-14T04:00:20
2018-06-14T04:00:20
137,298,241
0
0
null
null
null
null
UTF-8
Python
false
false
6,490
py
from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D from keras.layers import Activation, Dropout, Flatten, Dense from keras import backend as K from keras.models import model_from_json import numpy as np from keras.utils.np_ut...
[ "noreply@github.com" ]
jagan-hazard.noreply@github.com
807e0194c93653a7d59c4c00259d0f1ece84c914
43fd8d4a7395ec3f5ff85d06da045d8646775d51
/06 - Extração de Informação/main.py
dc5c5590d20b141da3d483c024cb6e566218a3fb
[]
no_license
odvieira/db201901
0725136b819b0515185bbb90511fb8a2ea07123f
c42a7971c5add37265fdb3a1192f3a4d821d9835
refs/heads/master
2020-05-14T11:17:47.500534
2019-05-16T02:14:18
2019-05-16T02:14:18
181,775,235
0
0
null
null
null
null
UTF-8
Python
false
false
4,857
py
#!/usr/bin/env python3 from psycopg2 import extras, connect from os import system from bs4 import BeautifulSoup import requests, xml.etree.cElementTree as ET import urllib.request, json, wikipedia if __name__ == "__main__": credentials = "dbname='1901EquipePGDR' user='1901EquipePGDR' host='200.134.10.32' password=...
[ "rpasserino75@gmail.com" ]
rpasserino75@gmail.com
78a5d26431e1c5228b1257e275fe51fbf8ab3863
09f49c5dae6a3abe0e8fc15437539f93dd3844fc
/common/vp_mail/publish_notes.py
a457bebf4a684419b1e93db8b223bf0679e9116b
[]
no_license
JAZimmermann/samples
aeacfdc8281862c299ec950a2621e57dadc3110a
969c90d764f1df266aeea7c47cac02ef93a3d43d
refs/heads/master
2021-01-11T08:07:21.672933
2016-09-22T05:03:57
2016-09-22T05:03:57
68,860,690
0
0
null
null
null
null
UTF-8
Python
false
false
3,507
py
# # Copyright (c) [2014] John Zimmermann # # $URL$ # $Date: 2014-09-04$ # $Revision: 1.0$ # $Author: johnz $ # class PublishNotes(object): ''' main class for gathering publish notes from user by providing a prompt dialog based on what application they are in, ie. maya or mobu ''' def __init__(...
[ "john.zimm.zimmermann@gmail.com" ]
john.zimm.zimmermann@gmail.com
bd5348b75265914180c074a798ffa40de4204954
126a8cc805589b9313e9a67b1f50eefb24b6370f
/arp_mon_win.py
2a19c4dcce8abe9d093b6e56d0cd45dd756f74a1
[]
no_license
stevery/coco
73bb3a8bc2e4ccfd1c924cb289fefeadf86720a5
9341f4d86faa6fd2abbbe346e4ca04ce2c973b55
refs/heads/master
2021-08-16T09:00:31.449415
2017-11-19T13:21:16
2017-11-19T13:21:16
110,894,608
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
#-*- encoding:utf8 -*- import subprocess import re from time import sleep while True: arp_r = subprocess.check_output(["arp","-a"], stderr=subprocess.STDOUT, shell=True) my_arp = {} a = arp_r.split('\r\n\r\n') for i in a: ...
[ "triptokyw@gmail.com" ]
triptokyw@gmail.com
424a153fb67403733012e88be8f95f8f6783f4bc
4872375eeb0b2a45c0d3046bbfb5cd2d202b2295
/quiz.py
e89862b18df06fdbf7fe361b76ea3a36a1613f18
[ "MIT" ]
permissive
ash018/discordQuizBot
ee3aae7171220f39bd9a0bb057c2fa5eab017dd5
b00441553bbbeeab2c4da0264eeed8480a33c3a1
refs/heads/master
2020-04-13T09:00:18.410702
2018-12-25T17:05:28
2018-12-25T17:05:28
163,098,967
0
1
null
null
null
null
UTF-8
Python
false
false
11,308
py
# -*- coding: utf-8 -*- """ Quiz / Question classes for quizbot. @author: drkatnz """ import asyncio import random import re import os #todo: probably need to remove punctuation from answers class Quiz: def __init__(self, client, win_limit=10, hint_time=30): #initialises the quiz self.__r...
[ "sadatakash018@gmail.com" ]
sadatakash018@gmail.com
79d8384fe316eec7a4be279f68c1b2184e764229
757b2b6bfadc89c13aff30575445dc210529a384
/src/optimize_nn.py
48415572591084666117a31a386dfe9e90c7967a
[ "BSD-3-Clause" ]
permissive
pgniewko/Protein-Secondary-Structure-Prediction
15d5b204787604f4a5dd0764d606a24649d5c9e2
5fdc58d7b9d59e314f873eb7784b16b5539d2df9
refs/heads/master
2018-09-08T00:28:08.313884
2018-06-04T21:30:55
2018-06-04T21:30:55
109,162,311
0
0
null
null
null
null
UTF-8
Python
false
false
2,595
py
#! /usr/bin/env python # BioE 134, Fall 2017 # Author: Pawel Gniewek (pawel.gniewek@berkeley.edu) # License: BSD # # Point to an input file (../data/db/aa_w5_a3.dat), and sec.str. classes file (../data/db/ss_a3.dat) # Usage: ./optimize_clf.py ../data/db/aa_w5_a3.dat ../data/db/ss_a3.dat from __future__ import print_fu...
[ "gniewko.pablo@gmail.com" ]
gniewko.pablo@gmail.com
36dc2128246ab9955f721cf3b4751c1493ded948
17c90beebbe2551255eacd009e0033f738d265f0
/python/02-Linux_loop_update/full-app-bootload.py
ac2b7454de4b926c7dc551cdd65f9435cda9c36a
[]
no_license
xiangliangliang/python
533e766da1551f37695b44df8bbbddd807ede63c
8519c53582ddb82ec106d96b2a47e61258498825
refs/heads/master
2020-04-17T20:41:27.536570
2019-02-12T07:45:49
2019-02-12T07:45:49
166,916,742
0
0
null
null
null
null
UTF-8
Python
false
false
7,401
py
''' 为确保程序运行,请执行以下操作 1. 使Linux的串口放在第一个tab 2. 使升级设备处于第二个tab 3. 使电源串口处于第三个tab ''' # $language = "python" # $interface = "1.0" import re import time import datetime import string import random filename = re.sub(r'[^0-9]', '_', str(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")), 0) file_path = crt.Dialog.FileOpe...
[ "284604666@qq.com" ]
284604666@qq.com
7d39d82e21a62f66317e371a926cb296d6850163
687684850a677f9cfd40077d036a9e25abb6ed51
/pms/core/migrations/0001_initial.py
4261d4b42f9d61542c04c42383f3c42fb9323791
[]
no_license
PhoenixCSCD/pms_backend
0f0889a70f58c477d5dc2ee8feec2c0d348e6276
bbf08354a0cc7d98f63408be460ae0522dedf96e
refs/heads/production
2022-12-11T01:08:41.065726
2020-07-23T10:25:01
2020-07-23T10:25:01
244,187,846
0
1
null
2022-12-08T10:57:17
2020-03-01T16:56:03
Python
UTF-8
Python
false
false
3,114
py
# Generated by Django 3.0.8 on 2020-07-18 10:37 from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Allergy'...
[ "developer.akabojohnkennedy@gmail.com" ]
developer.akabojohnkennedy@gmail.com
c100093dfec1709874cac7a3d2d395b9a4d1626c
b5bc88b6fc90a9910387ae32e4152859eae57116
/src/lib/trains/base_trainer.py
bcedf49fb5c5b7a1a918dc83bbaac8e7261c850c
[ "MIT" ]
permissive
Frankhe303/GGNet
f0344f005bbb9cfa869d62980751df8ad9789ba4
5fd113711960200929b979724f2d9b5647b4719e
refs/heads/main
2023-04-13T23:53:07.135492
2021-04-16T01:38:54
2021-04-16T01:38:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,008
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import time import torch from progress.bar import Bar from models.data_parallel import DataParallel from utils.utils import AverageMeter class ModleWithLoss(torch.nn.Module): def __init__(self, model, loss,...
[ "973162258@qq.com" ]
973162258@qq.com
d26c162667d757caa31ccc5aa285f4f67e0e43f7
597e9361ba5508e1252a595791c7739ab7b7bf6d
/venv/Scripts/pip-script.py
550cd4c7602fded3c3fff7c55bfebf6c8340020c
[]
no_license
Shivani-781/Sorting_Algorithms_Python_Implementation
ec1d2598322665f94a059a3ac8bc2074db814a56
ddaa2b47b6ed7fe9e65e259d47fa3a73d5f255ad
refs/heads/master
2022-12-06T14:41:42.282435
2020-08-29T18:58:34
2020-08-29T18:58:34
291,290,202
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
#!"C:\Users\Shivani Chauhan\PycharmProjects\Sorting_Algorithms_Python_Implementation\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.s...
[ "shivanichauhan781@gmail.com" ]
shivanichauhan781@gmail.com
327169a1cb6be4099ccb7f13fab70dfa92f4742e
7deda84f7a280f5a0ee69b98c6a6e7a2225dab24
/Receptionist/migrations/0027_package_manage_reception.py
45248c462110a952feffbb09a7008787a2c97129
[]
no_license
Cornex-Inc/Coffee
476e30f29412373fb847b2d518331e6c6b9fdbbf
fcd86f20152e2b0905f223ff0e40b1881db634cf
refs/heads/master
2023-01-13T01:56:52.755527
2020-06-08T02:59:18
2020-06-08T02:59:18
240,187,025
0
0
null
2023-01-05T23:58:52
2020-02-13T05:47:41
Python
UTF-8
Python
false
false
549
py
# Generated by Django 2.1.15 on 2020-05-19 15:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Receptionist', '0026_package_manage_grouping'), ] operations = [ migrations.AddField( model_na...
[ "khm4321@naver.com" ]
khm4321@naver.com
845f77bc8d39737647f4a55d183df4f8f7afdbf3
43aeee48c1f6fc468a43f9bb0d4edae8ee0dbee1
/LPTW-SRC/例3_21.py
8430bd36f542e524ac1f1798a936dc9eba351ed6
[]
no_license
wiky2/mytestproject
f694cf71dd3031e4597086f3bc90d246c4b26298
e7b79df6304476d76e87f9e8a262f304b30ca312
refs/heads/master
2021-09-07T20:54:19.569970
2018-02-28T23:39:00
2018-02-28T23:39:00
100,296,844
2
1
null
null
null
null
UTF-8
Python
false
false
1,333
py
#这个循环用来保证必须输入大于2的整数作为评委人数 while True: try: n = int(input('请输入评委人数:')) if n <= 2: print('评委人数太少,必须多于2个人。') else: #如果输入大于2的整数,就结束循环 break except: Pass #用来保存所有评委的打分 scores = [] for i in range(n): #这个while循环用来保证用户必须输入0到100之间的数字 ...
[ "jerry_136510@aliyun.com" ]
jerry_136510@aliyun.com
a734b3373cd26121facac575215b185ffb3f1f82
caa70852a42cc70ef81573539da1f3efedc9d0e5
/venv/bin/easy_install
94a82250d36e04e5e6e7dafdd4e3c20e0b4119cd
[]
no_license
nejelnejel/bubble_sort_2
62aa4977f606ae2d6055c4cad9853393d415c93a
7fa37e55aa1ce7dd9b422688ad6a3b2b87283ed3
refs/heads/master
2020-11-26T12:01:03.276878
2019-12-19T14:38:08
2019-12-19T14:38:08
229,065,696
0
0
null
null
null
null
UTF-8
Python
false
false
437
#!/home/rent/PycharmProjects/sphinx/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ...
[ "nejelnejel@gmail.com" ]
nejelnejel@gmail.com
fce8102b6fabca507bec27dbceb55dbf1eaf4c0c
87e80e3e91dbb23b857b8fd44427bb03e3a0be29
/API/decision.py
38eb0adc8f8a33d738917e1901d6ca2c0503017e
[ "Unlicense" ]
permissive
ClementRoyer/TwitchAFK-API
fc68da62bd6393d155a4ff6523f886636db0aec5
92164d776930bd6c8e371a5d2b8ef7fe07b76ea9
refs/heads/master
2023-01-22T09:00:07.838758
2020-12-07T22:01:59
2020-12-07T22:01:59
318,622,586
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
import time def betStrategy(driver, bet): output = { "choice": "", "amount": 0 } output['choice'] = "A" if bet.coteA > bet.coteB else "B" # Take the most advantageous odds output['amount'] = min(round(int("".join(bet.amount.split())) * 0.05), 250000) ...
[ "clement.royer@epitech.eu" ]
clement.royer@epitech.eu
8c9c989a540b08b69f3d5efe25cb428555c4f3ac
f756d72da9a7a8b05399d7982ad83ab71170e3ce
/test_scraping.py
04dcbb7f21c523a5a0aa983b920849402b7cdba3
[]
no_license
polmuz/GoGetWeb
c0fddda946d3950fc606af3b1bd0148f88589723
36a369c648e61c953437a2d7ee1a8017d7bb5636
refs/heads/master
2021-01-15T15:25:54.672987
2016-08-22T21:22:45
2016-08-22T21:22:45
63,362,626
1
0
null
null
null
null
UTF-8
Python
false
false
1,971
py
# -*- coding: utf-8 -*- import unittest from unittest.mock import patch, MagicMock from scraping import get_webpage_content, extract_xpaths, Not200Exception class TestGetWebpageContent(unittest.TestCase): @patch('scraping.requests.get') def test_base(self, requests_get_mock): expected_content = b'<...
[ "pablomouzo@gmail.com" ]
pablomouzo@gmail.com
8046f0cbdb65b170b5dabaff186ad81fb6a24843
f3a73a2db52b9ec1b052d5f8de362991a19af1ba
/singletone_decorator.py
031b40a63e1ebe570022ea0cac4e4b52af249363
[]
no_license
mikaevnikita/python
ffc9fe9a295f3291379482d08f72bac8fd3d98c1
ddd7a4f51ad1d1433b41c7e58db2227f41d19400
refs/heads/master
2021-09-02T02:27:26.029084
2017-12-29T18:39:40
2017-12-29T18:39:40
115,745,598
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
import functools def singleton(cls): instance = None @functools.wraps(cls) def inner(*args,**kwargs): nonlocal instance if instance is None: instance = cls(*args,**kwargs) return instance return inner @singleton class Noop: pass a=Noop() b=Noop() print(id(a)...
[ "n.v.mikaev@gmail.com" ]
n.v.mikaev@gmail.com
7bdb37872ffc8f66ece48618e51d91c6e015762c
d8e9a2dfedaace3b96a7a4c3d105c06950b52e3a
/profesores/admin.py
6a0b853bfda8230e3084aa45aac60fe562f2d11b
[]
no_license
HeribertoLara/DjangoTareaSem4
a55ee33427407564588a7933fd80ea1f2661859d
c3c0c50f8cf81c352603f803a727c2d201e90bd2
refs/heads/master
2023-01-20T03:28:14.173094
2020-12-02T05:05:10
2020-12-02T05:05:10
315,838,590
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
from django.contrib import admin from profesores.models import Profesor # Register your models here. admin.site.register(Profesor)
[ "ing.quimico.heriberto.lara@gmil.com" ]
ing.quimico.heriberto.lara@gmil.com
d50c94eacde9d6b5811b845d34524432308590f4
b7d4bd854e0052c6f7ee8b8a42fa1145de76a61f
/src/7_3/7_3_test.py
89c48b13edd8b0a319c02587782f62dc7ed53ce0
[]
no_license
WeslyG/labs
b22f61512293a2e00545b7ee02df1bf4a62961f1
976c06a3b2e10082638ae6b0cf55b8400fe2d4ab
refs/heads/master
2022-12-25T21:16:24.604494
2020-10-01T12:32:15
2020-10-01T12:32:15
297,427,991
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- from s7_3 import number_is_even def test_s7_3(): assert number_is_even(7) is False assert number_is_even(6) is True assert number_is_even(0) is True
[ "weslyg22@gmail.com" ]
weslyg22@gmail.com
b8992e4670a1ea151e7a9491438ccf75e9e869fb
accf5e4bb9b0d0b0fe2a1ef900fcb9c726f664ba
/Network/MixAttNet.py
c142ac0ad2bf20b933716f7501d4068ada17799e
[]
no_license
pdedumast/FetalCPSeg
43eab35dc3379e69818fa9e203f83442e4a4e8c6
713dc1b88ed42e4e5cdbc5b876449660e533cccb
refs/heads/master
2022-11-19T20:47:29.161663
2020-07-28T09:43:23
2020-07-28T09:43:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,306
py
import torch from torch import nn from torch.nn import functional as F def convolution_block(in_chan, out_chan, ksize=3, pad=1, stride=1, bias=False): """ Convolution Block Convolution + Normalization + NonLinear """ return nn.Sequential( nn.Conv3d(in_chan, out_chan, kernel_size=ksize, pad...
[ "noreply@github.com" ]
pdedumast.noreply@github.com
ee4433ee5b0534fc569bbd443da946bf6e41e51e
93857d07c3391a1a10843bc67bb0b7ae93edca97
/Mysql_CodeGen.py
92e33cfa3392dc71a9dcf7d6ed9db329f2df3c01
[]
no_license
xumingxsh/Mysql_CodeGen
dffd3ff59f9b35c616fd85ab6296134333eb7293
4d43ad50cd994df2ba478a0695cda690460381b6
refs/heads/master
2021-01-10T01:20:43.885279
2016-02-28T12:47:52
2016-02-28T12:47:52
52,719,962
3
1
null
null
null
null
UTF-8
Python
false
false
15,731
py
# 徐敏荣 # 2014-04-18 # 整理,重新编写 # 该代码主要实现从MySQL中读取数据库表结构,并自动生成某些有规律的代码 import MySQLdb from StringIO import StringIO from string import Template #表结构 class TableInfo: # 构造函数 def __init__(self): self.table_Name = "" # 数据表英文名称 self.table_Comment = "" # 数据表中文名称或相关注释 self.nam...
[ "xumingxsh21@126.com" ]
xumingxsh21@126.com
864bc49ad51f2d4f534f07456b571d961588a63d
766ada1da22829e7a0e56dfe56139d75c68c0d1d
/traffic_simulation.py
bd62b43bc09c26954ef9decc567c516c894cdf98
[]
no_license
grizax/traffic-simulation
5f31341490058eaefe5b5db636f4deeadb220381
425ef24fed0164ee61037cd9d3b207cb208d00bf
refs/heads/master
2021-01-18T03:31:40.834686
2015-02-02T13:40:02
2015-02-02T13:40:02
30,035,613
0
0
null
2015-01-29T18:52:01
2015-01-29T18:52:01
null
UTF-8
Python
false
false
1,836
py
"""TO DO: Still needs a lot of work with matplotlib, stats, reporting, and ipython notebook""" import numpy as np import matplotlib.pyplot as plt from traffic.simulation import Simulation from traffic.road import Road from traffic.car import Car def multiple_simulations(num_simulations=100): output_car_speeds =...
[ "ndbfoster@gmail.com" ]
ndbfoster@gmail.com
7a3484ca24eee71aa63e4e1eb0f4a392f1f4784a
41b4702e359e3352116eeecf2bdf59cb13c71cf2
/contextual_bcq/rand_param_envs/mujoco_py/mjlib.py
8f2cf8a780c82d64a893cfd22c85aaf7d6219ce8
[]
no_license
CaralHsi/Multi-Task-Batch-RL
b0aad53291c1713fd2d89fa4fff4a85c98427d4d
69d29164ab7d82ec5e06a929ed3b96462db21853
refs/heads/master
2022-12-22T19:23:45.341092
2020-10-01T00:05:36
2020-10-01T00:05:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,301
py
from ctypes import * import os from .util import * from .mjtypes import * from rand_param_envs.mujoco_py import config path_prefix = config.mjpro_path if sys.platform.startswith("darwin"): libfile = os.path.join(path_prefix, "bin/libmujoco131.dylib") elif sys.platform.startswith("linux"): libfile =...
[ "jil021@eng.ucsd.edu" ]
jil021@eng.ucsd.edu
2b4c7736ef6d059602290437ae4a47765822bc7a
c247035975b8ca12eff9cfe8bac7c57402d1e728
/Unit10/T10.7.py
f0b0092787214e70119d976390273dd4cd573d7e
[]
no_license
xlxwalex/pythonew
cf896707a72cbb7fa44c8fa9e504e400628e3ddd
ff3601641f695ce01888518b970eccc457b4a238
refs/heads/master
2021-01-22T21:48:47.038598
2017-03-21T15:53:47
2017-03-21T15:54:22
85,477,387
9
3
null
null
null
null
UTF-8
Python
false
false
443
py
#10.7 import requests import bs4 import time def baiduclock(): tim=0 agent={'User-agent':'Mozilla/5.0'} timer=time.clock() while time.clock() - timer <= 30: print(time.clock() - timer) httpbaidu=requests.get('http://www.baidu.com',headers=agent) if httpbaidu.status_c...
[ "xlxw@xlxw.org" ]
xlxw@xlxw.org
b7f12b68859daa4b1cac219a0c23a17281619f5b
6ebd192d228c04152ea914a3130d1e34226ac412
/tests/unit/generate/test_context.py
eb565ca18a0832a2a5d8b33495d7e1aba7d2833d
[ "MIT" ]
permissive
STAMP-project/camp
3acfa6746e30914e159735305328ef3ccc51eabe
e8652ddf3e2e84ffbf2b9dff3fb5ee678b209246
refs/heads/master
2022-12-23T09:35:43.045284
2021-11-18T15:56:05
2021-11-18T15:56:05
114,260,055
10
11
MIT
2022-12-16T02:41:51
2017-12-14T14:28:14
Python
UTF-8
Python
false
false
2,347
py
# # CAMP # # Copyright (C) 2017 -- 2019 SINTEF Digital # All rights reserved. # # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. # from unittest import TestCase from camp.entities.model import Model, Component, Service, Feature, Variable, Goals ...
[ "franck.chauvel@gmail.com" ]
franck.chauvel@gmail.com
c7e4005fc61db2b565fdd6d8e80b1c661ea470d3
94bd08e95ae0c31973f500a7bab3aa5378f7ec7b
/snippets/migrations/0003_auto_20190429_0033.py
8228906cde11f126db33ecf58304050ad10be0a8
[]
no_license
freddiemo/django_rest_framework_3_sample
eec2f3315e9c79ca3af6aa39423337606eb3aca8
ca299957f8a7e666c31d71be74028e18392f65dc
refs/heads/master
2020-05-17T03:14:45.963863
2019-04-29T17:23:27
2019-04-29T17:23:27
183,473,375
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
# Generated by Django 2.2 on 2019-04-29 00:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('snippets', '0002_auto_20190429_0026'), ] operations = [ migrations.AlterField( model_name='snippet', name='highlighted...
[ "freddiejmo@gmail.com" ]
freddiejmo@gmail.com
3d0f58b74138d3d783dd0a71510afd2354a9ac4e
243eddaee6dff4551da9c10f725d8828e13840ac
/get_premium/apps.py
d24dcc77204cd467ed804330c4f12a0a7f693080
[ "MIT" ]
permissive
BarunBlog/Link_People
46b0c2c141ae042b481893aee869977755790dc8
1ffd07bc5b31a715133c99efbbb478efe18d632b
refs/heads/master
2023-01-24T04:54:13.545951
2020-12-03T05:56:33
2020-12-03T05:56:33
304,888,418
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
from django.apps import AppConfig class GetPremiumConfig(AppConfig): name = 'get_premium'
[ "bhattacharjeebarun25@gmail.com" ]
bhattacharjeebarun25@gmail.com
bafe2f617364ca4a66f1e271cba1e72f7d29aa53
2e46b786bd17c27f794b56c505b774fadd1ee7d4
/vente.py
27bcfdf60f1a9ab04c3ac6e59c65e96026426985
[]
no_license
aniskchaou/PRODUCTION-ERP-MODULE
73c6193be5eade1beddafdc9204109ac654e88a7
f50f6f7193c3bd8ae8911dbe4e51579bfe77082f
refs/heads/master
2023-04-17T01:32:24.665057
2021-04-24T22:04:41
2021-04-24T22:04:41
351,488,344
0
0
null
null
null
null
UTF-8
Python
false
false
36,260
py
# -*- coding: utf-8 -*- import sys import openerp from openerp import models, fields, api, _ from openerp import tools from datetime import date from datetime import datetime from openerp.tools.safe_eval import safe_eval as eval from openerp.tools import DEFAULT_SERVER_DATE_FORMAT import re import base64 from openerp....
[ "kchaouanis26@gmail.com" ]
kchaouanis26@gmail.com
30c051b3af9691fb1d09fd55b0cfda9348103df1
c1d7cb2489d19fca3bcb1627c2be62745af9c075
/Section-4/Source Code/iterator_example.py
0b71e1f52c7984d5d05a5d3c6adc8b71f92e7fb7
[]
no_license
Yasser-Abbass/Python-From-Scratch
01c13726ff94fba8796b80eca5c4d02c93d4b658
4973535fa8252a4de0755290964f418e708b21fd
refs/heads/master
2022-12-11T10:05:27.826773
2020-09-10T21:09:55
2020-09-10T21:09:55
294,151,668
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
import sys class Fib: def __init__(self, num): self.num = num self.a = 0 self.b = 1 self.result = 0 def __iter__(self): return self def __next__(self): if self.a < self.num: self.result = self.a self.a, self.b = self.b, self.b + sel...
[ "mongo.yasso@gmail.com" ]
mongo.yasso@gmail.com
a1bc32ee0d27ba4faf285733b776292f4fc063d1
be3263f52e4c7b76d1d1d2afa81317967f8b4105
/coursea_course/mini-project_week-06.py
aff116685a5636f34a3c5d4f4513d5dcd15d9cbd
[]
no_license
eastmanjoe/python_bucket
b1724ba035928ec6dc5364db33f9c23ea85c5fbb
0df4e77e415716dec9d059c592b287024b2cdac5
refs/heads/master
2021-01-17T08:54:15.115953
2018-08-09T15:39:13
2018-08-09T15:39:13
5,634,366
0
1
null
null
null
null
UTF-8
Python
false
false
7,147
py
#!/usr/bin/env python # URL for assignment template # http://www.codeskulptor.org/#examples-blackjack_template.py # URL for completed assignment # http://www.codeskulptor.org/#user38_vITLjG598O_0.py # http://www.codeskulptor.org/#user38_vITLjG598O_1.py # http://www.codeskulptor.org/#user38_vITLjG598O_2.py # http://ww...
[ "eastman.joseph@gmail.com" ]
eastman.joseph@gmail.com
d8756586064d46abf0b01f2f255a4408170c98ca
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/galex_j19485-4225/sdB_GALEX_J19485-4225_lc.py
ad5e79f01dd4bec1f067eebd2a8c3dee9507a2f5
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[297.137792,-42.429325], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_GALEX_J19485-4225 /sdB_GALEX_J19485-4225_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
2e6274aeecb4abc551445e441ed62ced40c33285
6ae058253aeff9ee9d4a166bab1c6898fb2fa042
/hackerrank/artificial-intelligence/document-classification/document-classification.py
d58f437f054a7f3600a34b2252cff4f05a152261
[ "MIT" ]
permissive
gnuaha7/programming-problems
054136b840a8323ca6d5c20e579dc63e19543138
3ed43b306c19718f00bf77ed191e7a3f2ba8da57
refs/heads/master
2021-01-11T02:56:34.788550
2016-09-04T19:38:53
2016-09-04T19:38:53
70,878,741
0
0
null
2016-10-14T06:00:42
2016-10-14T06:00:42
null
UTF-8
Python
false
false
1,457
py
# https://www.hackerrank.com/challenges/document-classification import sys import numpy as np from sklearn.pipeline import Pipeline from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.linear_model import SGDClassifier from sklearn.cross_validation import cross_val_score def load_corpus(f, has_c...
[ "yasserglez@gmail.com" ]
yasserglez@gmail.com
8cafbf132ca8eb8b86bedf45f6b404078bcc3054
1f127d9c25b2a3ff842019fffeaad4e8ff861ca7
/Articles/models.py
83b8b3da0b6e63692281463036ccb144aa4d55c0
[ "MIT" ]
permissive
Hady-Eslam/Articles_Analyzing
b8caa49b5b21589e8ec5b101e5a52c92f747ff3e
885232db89cec88fc39e8260e7fde4241f4d7280
refs/heads/master
2021-07-09T01:43:18.097163
2020-07-21T09:42:26
2020-07-21T09:42:26
156,908,808
0
2
null
2020-07-21T09:42:28
2018-11-09T19:30:47
Python
UTF-8
Python
false
false
1,226
py
from django.db import models from Python import init class Posts(models.Model): User_Email = models.CharField(max_length=init.Email_Len) ArticleTitle = models.CharField(max_length=init.ArticleTitle_Len) Article = models.CharField(max_length=init.Article_Len) Tags = models.CharField(max_length=init.Art...
[ "abdoaslam000@gmail.com" ]
abdoaslam000@gmail.com
afa9a1d0944e4af29df98932dd9113870175e138
3ac0a169aa2a123e164f7434281bc9dd6373d341
/singleNumber.py
4a7b92101b0350685936c92368994f2cf80679bc
[]
no_license
sfeng77/myleetcode
02a028b5ca5a0354e99b8fb758883902a768f410
a2841fdb624548fdc6ef430e23ca46f3300e0558
refs/heads/master
2021-01-23T02:06:37.569936
2017-04-21T20:31:06
2017-04-21T20:31:06
85,967,955
1
0
null
null
null
null
UTF-8
Python
false
false
208
py
class Solution(object): def singleNumber(self, nums): """ :type nums: List[int] :rtype: int """ s = 0 for v in nums: s = s ^ v return s
[ "sfeng77@gmail.com" ]
sfeng77@gmail.com
36ff37b0f61328d72dfe6e5c252ff5a249ce364e
4c3d19edd4e7e6325fd131134a28f5e0e78e1221
/accounts/user/registration.py
510bfe1fe853619048311613240ddecd78d0acf9
[]
no_license
carpancan/producthunt
1e8e6e0793e24d049a5a95f84341fe0d977bbc79
ee51d0d6bf26f34dd4849c26603e9d0c43e45c54
refs/heads/master
2023-05-03T23:52:16.889611
2022-02-10T10:49:13
2022-02-10T10:49:13
234,498,693
0
0
null
2023-04-21T20:44:59
2020-01-17T07:51:30
HTML
UTF-8
Python
false
false
1,560
py
from django.contrib.auth.models import User from .exceptions import CustomExceptions class Register: __new_user_dto = None def create_user(self, new_user_dto): self.__initialize(new_user_dto) self.__check_if_user_exists() return self.__persist_user() def __initialize(self, new_us...
[ "carlos.paniagua@sngular.team" ]
carlos.paniagua@sngular.team
f0350d9b871c404aac008aac028f9754e35939df
cdf14be1c33ad4dad24dfc4823443caf629e8787
/reversi.py
fc9053bf0d31a6c6d2fd296fabaac28f20d53bb8
[]
no_license
fhalambek/reversi
541f63048d57e44bdf6510ca65184c889f3fcea4
47dad459b8bcd8fec62614865196a11a7e2d7e00
refs/heads/master
2021-09-07T15:06:00.695585
2018-02-24T15:49:01
2018-02-24T15:49:01
114,654,912
0
1
null
null
null
null
UTF-8
Python
false
false
35,116
py
from tkinter import * from time import sleep from threading import Thread from bot import easy, greedy, weighted from os import replace, name from _tkinter import TclError pilImported = False try: from PIL import Image, ImageTk pilImported = True except ImportError: try: try: ...
[ "noreply@github.com" ]
fhalambek.noreply@github.com
22aa0e448f5799c401421eb60b5b4237dab843a8
e655fafdf3a675d917135f333d6fa3d7fb9c59f6
/Exercícios/ex047.py
d29906501bb3ed21ba27de51cd130cdf17b1a1f1
[]
no_license
Sabrina-AP/python-curso_em_video
7b595242a174f10e7e903cb73c8ea395d01ba609
43fef2a0aa67d2a67181bc5b73fb3b5de163b1d9
refs/heads/main
2023-03-25T22:52:42.811127
2021-03-23T17:49:44
2021-03-23T17:49:44
350,805,210
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
#contagem de pares for i in range(1,51): if i%2==0: print(i, end=' ') print('Acabou')
[ "noreply@github.com" ]
Sabrina-AP.noreply@github.com
ecc65f736adcdf7ef2646a8f02c86e70de9ca226
1528b9eff25b03adf3c24229d08555aeaea5ac2b
/Client/Libraries/__init__.py
eb5d1888bc5f5b22e95fdccb22debe6f4fd1fcf0
[]
no_license
Erez-Atir/Kahoot
b0cb40c0fefa86af6668a00be48807314955aa05
7fe5ba5df7e1ce0a7d10a6e84049b94043e2d42b
refs/heads/master
2021-08-17T02:13:32.473433
2020-05-24T19:39:58
2020-05-24T19:39:58
184,925,432
0
2
null
null
null
null
UTF-8
Python
false
false
3,221
py
IP = None my_socket = None import os import sys sys.path.insert(0, os.getcwd()+'/files') sys.dont_write_bytecode = True import ServerDitection import socket import pygame import textbox import subprocess RED = (204, 0, 0) WHITE = (255, 255, 255) BLACK = (0, 0, 0) GREEN = (0, 153, 0) BLUE = (53, 119, 252) PURPLE = (17...
[ "50252440+Erez-Atir@users.noreply.github.com" ]
50252440+Erez-Atir@users.noreply.github.com
d8b576d9d8573f3e6f58e5e34ae445177ff8f207
62c9d736470c3f535de4fe5be56fea3334a081c4
/scripts/download-data.py
9ab361bf04e11aa1c721bea228c4e375dc378f4c
[]
no_license
abachman/interactive-spaces-1
646f002b8136d054224c555cfb96cfa64b61babf
494e8dd82dc3848ad01a583453bd4f94aaff4508
refs/heads/master
2022-03-17T06:31:46.245542
2019-11-20T16:19:08
2019-11-20T16:19:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,883
py
# download all data from the 4 MICAVIBE feeds import sys import os import re import time import json import re from io import StringIO if sys.version_info < (3, 0): print("make sure you're using python3 or python version 3.0 or higher") os.exit(1) import urllib.parse import http.client def parse_next_value(...
[ "adam.bachman@gmail.com" ]
adam.bachman@gmail.com
856b7d69a10ecf05d2a77cc576da385d6056ddd8
1ab2c3dbe3b8323c9167236160af263daca0ec5d
/maxmara_image_hashes.py
66371f9a6bec550085bf0e756cc82256f430e9eb
[ "MIT" ]
permissive
Ziyu-Chen/image_hashing
d2a79ff610bf5bdfb35a451a05d99bdf95bb64ec
d48443b59959f2f785b864908e9b0979de59fe7a
refs/heads/master
2022-11-30T01:04:41.453363
2020-07-30T01:55:01
2020-07-30T01:55:01
274,356,173
1
0
null
null
null
null
UTF-8
Python
false
false
1,107
py
import imagehash import pandas as pd import os from PIL import Image from collections import defaultdict from square_crop import square_crop directory_path = '/Users/Ziyu/OneDrive - Clarivate Analytics/Desktop/weekendmaxmara_images/' data_path = '/Users/Ziyu/OneDrive - Clarivate Analytics/Desktop/weekendmaxmara_images...
[ "zc839@nyu.edu" ]
zc839@nyu.edu
246673571092c9cb746b6d104d3951ebd7995526
d7aee9bee25dc3c1665fa5f0eb735d0ad3eb78f1
/tests/test_parser.py
cfa1428f879ce72c29e67b6aa61d0e75564c3354
[]
no_license
hariton27sy/exeparser
bd1572c45b2ea0a6c663c12a6bab843d3bd6064d
b5eb7e5bd13c43645db62be45f202a30dbb11ced
refs/heads/master
2022-12-23T11:56:58.437613
2022-12-14T19:34:01
2022-12-14T19:34:01
200,896,027
0
0
null
2020-02-07T18:21:07
2019-08-06T17:29:42
Python
UTF-8
Python
false
false
6,769
py
import os import sys import unittest PARENT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.path.pardir) sys.path.append(PARENT_DIR) import core.exefile as x def full_path(path): return os.path.join(PARENT_DIR, path) class TestOnFileQoobExe(unittest.TestCase): pat...
[ "hariton27sy@gmail.com" ]
hariton27sy@gmail.com
fca6a52051658560f6a522ad47c53141010c8e4c
1396656a60be72e0dbe42a70750a7b775bad40bc
/CodeWars/GreatestWarrior.py
9b9eb5a08f15cd46f085a42b4158a3a2d56bf188
[]
no_license
dianayuying/Python
f3b4bf9d2f9866869f811f9f327f1ccdc0de40a9
37d2e5b87261b4cc2d05d4e8aeacee2cea87cda2
refs/heads/master
2023-04-27T07:23:20.339945
2018-12-23T20:26:49
2018-12-23T20:26:49
162,921,513
0
0
null
null
null
null
UTF-8
Python
false
false
4,446
py
""" Create a class called Warrior which calculates and keeps track of their level and skills, and ranks them as the warrior they've proven to be. Business Rules: A warrior starts at level 1 and can progress all the way to 100. A warrior starts at rank "Pushover" and can progress all the way to "Greatest". ...
[ "diana.yuying@gmail.com" ]
diana.yuying@gmail.com
be016283897b8b97fcd923c3c66271b85639e383
10d98fecb882d4c84595364f715f4e8b8309a66f
/rl_metrics_aaai2021/utils.py
fdb1f66a5371b5960ba1746220fe5dec986ad621
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
afcarl/google-research
51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42
320a49f768cea27200044c0d12f394aa6c795feb
refs/heads/master
2021-12-02T18:36:03.760434
2021-09-30T20:59:01
2021-09-30T21:07:02
156,725,548
1
0
Apache-2.0
2018-11-08T15:13:53
2018-11-08T15:13:52
null
UTF-8
Python
false
false
7,577
py
# coding=utf-8 # Copyright 2021 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
dc2cf902fa9faa242b7a3024eb996183b816db91
e48bc8299aa342a74edf09945fac10f812130604
/www/transwarp/web.py
4e20b8e6d16fb71c05e55ca8baeab9c140d4ab96
[]
no_license
zhongsihang/blog-python-app
af4be1221baccf501e91e3dc7e39e3a0abdb2b21
bc5eb1bef4298ff4ceff7d3aafc4d235651a27ab
refs/heads/master
2021-01-21T01:34:58.196036
2015-09-18T06:22:36
2015-09-18T06:22:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
48,867
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 这是一个简单的, 轻量级的, WSGI兼容(Web Server Gateway Interface)的web 框架 WSGI概要: 工作方式: WSGI server -----> WSGI 处理函数 作用:将HTTP原始的请求、解析、响应 这些交给WSGI server 完成, 让我们专心用Python编写Web业务,也就是 WSGI 处理函数 所以WSGI 是HTTP的一种高级封装。 例子: def application(environ, sta...
[ "719118794@qq.com" ]
719118794@qq.com
da4534207fbc24e56d3c2408862c3063b04a07fc
c2d018005ea56960a23faf173e4999bf3802eff6
/todo_app/settings.py
32db07f5ce7985623784e775068493a9dc80417f
[]
no_license
AhmedMoustafaa/to-do-app
fb3a8c5188715559440b17649c0dba063f5cebd3
d9486f230dd93564b73a41e10f880718792aabd3
refs/heads/master
2023-08-12T02:31:40.391955
2020-06-07T16:13:31
2020-06-07T16:13:31
270,361,568
0
0
null
2021-09-22T19:14:31
2020-06-07T16:16:01
Python
UTF-8
Python
false
false
3,396
py
""" Django settings for todo_app project. Generated by 'django-admin startproject' using Django 3.0.7. 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 ...
[ "brian.laggy@gmail.com" ]
brian.laggy@gmail.com
6a6aa3aae9981033e00458a70b5c856684bf33a6
8276a999272873c655b3a7c2bed0f3fb50a9c029
/Google_Cloud_Vision_Cv2.py
99045e6e7dfef858380f5bf4a50e24a51556ea74
[]
no_license
varul29/Google_Cloud_Vision
589cce47e34df6eaffdd63607a4a46d57b815f28
1c0801fdc936d85caa197b6823aaba39dfcd57b8
refs/heads/master
2020-05-25T06:19:34.665203
2019-05-20T15:27:36
2019-05-20T15:27:36
187,666,048
0
0
null
null
null
null
UTF-8
Python
false
false
871
py
import io import os import cv2 from google.cloud import vision def non_ascii(text): return ''.join(i if ord(i)<128 and i.isalnum() else '' for i in text]).strip() os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'apikey.json' # The name of the image file to annotate (Change the line below 'image_path.jpg' ******...
[ "noreply@github.com" ]
varul29.noreply@github.com
2acbc2e004d4d067218de078794ec2dd281455fd
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/cosmos/azure-mgmt-cosmosdb/generated_samples/cosmos_db_sql_container_create_update.py
4eb9b7c581d3ad5045f9f14afe3e0ab5a7f5f6c1
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
3,434
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
b6a99fdefc842c281a110c3f4728fbd2907c0806
eb011bbc2e7f572d10b29c78f417645fc9eef247
/deepchem/models/torch_models/pagtn.py
340ac011ec73de75afa60a169fa6ce822d899dd0
[ "MIT" ]
permissive
tianqin91/deepchem
1cc81310101e5ac4e9886db6ad97820a54bba61f
9c36987f735af3ebf602247ddf06c575ede85d44
refs/heads/master
2021-08-02T07:55:41.828374
2021-07-29T19:02:47
2021-07-29T19:02:47
191,236,748
0
0
MIT
2019-06-10T19:57:40
2019-06-10T19:57:40
null
UTF-8
Python
false
false
10,834
py
""" DGL-based PAGTN for graph property prediction. """ import torch.nn as nn import torch.nn.functional as F from deepchem.models.losses import Loss, L2Loss, SparseSoftmaxCrossEntropy from deepchem.models.torch_models.torch_model import TorchModel class Pagtn(nn.Module): """Model for Graph Property Prediction T...
[ "mvenkataraman@ph.iitr.ac.in" ]
mvenkataraman@ph.iitr.ac.in
2db64ec71071efedc4af263b7ea7732384d88f4b
25795fef5bc22080645b8e549da924cb7025526f
/app/forms.py
4d2f3b6ae9d04ec86f7da110268f4c6cf9b3152d
[]
no_license
ryanermita/best-route
a0a68c4c9572ce73161109f198e301aaa307aab1
3480fd356e20d27cdd85397fea5960f4e69b4c44
refs/heads/master
2021-01-18T14:59:01.940788
2013-12-21T03:43:59
2013-12-21T03:43:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
from flask_wtf import Form from wtforms import TextField, TextAreaField from wtforms.validators import DataRequired class SearchForm(Form): departure_place = TextField('departure_place', validators = [DataRequired()]) destination_place = TextField('destination_place', validators = [DataRequired()]) class SignUpForm...
[ "ryanermita@gmail.com" ]
ryanermita@gmail.com
cccd15128c4434b0606787b763c34be908546eb4
fe34bc1f4177753b26cfe48d38f93739dc2439c6
/unpickler/_nbdev.py
3f0f417dd44f1cc6e01032b3226c18edc27f02ef
[ "Apache-2.0" ]
permissive
muellerzr/unpickler
0d9a4cc17cd8f4cf11d40775efa4624e866158cb
94c464abe8463f25f4b89d3770cfdfd347d87d83
refs/heads/master
2023-02-02T20:05:42.990577
2020-12-16T00:34:23
2020-12-16T00:34:23
321,793,188
3
1
null
null
null
null
UTF-8
Python
false
false
368
py
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"get_files": "00_core.ipynb", "UnpicklerModule": "00_core.ipynb"} modules = ["core.py"] doc_url = "https://muellerzr.github.io/unpickler/" git_url = "https://github.com/muellerzr/unpickler/tree/ma...
[ "muellerzr@gmail.com" ]
muellerzr@gmail.com
1247de660c728a5f32d9fabdfa9b10b2947e596d
3a9cee71d23cfa7176e29beb9a9e509674c0bfd9
/6.2.0_201312041840_apitraderapi_linux64/test3/test4/scanConf.py
ecb31285adb61571a54465ea5e8bb06730d53a71
[]
no_license
fuckfuckfuckfuck/download
4041fba8de20a267aa001e363a005098bb93fb0e
e67c22dab648f9bc1ebca444785401f63f0cc2dc
refs/heads/master
2021-01-10T11:11:10.708805
2015-12-05T13:18:52
2015-12-05T13:18:52
47,456,253
0
0
null
null
null
null
UTF-8
Python
false
false
1,178
py
import sys import re #~ config = { #~ 'user' : 'botel', #~ 'password': '12345678', #~ 'database' : 'mktinfo', #~ 'host' : 'rdsryfjb2vqrni2.mysql.rds.aliyuncs.com', #~ 'charset' : 'utf8', #~ 'raise_on_warnings' : True #~ } Handler = { 'user' : str, 'password' : str, 'database' : st...
[ "wchongyang@foxmail.com" ]
wchongyang@foxmail.com
b10a7d8f06eea9e1ba7d3bd0fad062389e44d262
096ecb1ae95b3bcfd002480415a04c5191e01419
/ttbc.py
3973b4f37e4719b025aea65d6b2b2d4d96188280
[ "Apache-2.0" ]
permissive
iamaris/pystock
7f3c955977c662e384f23f3113c0c5ac8fc3f4ff
864f8beba0cf50a7a4f52bf7c67e83fdfd774a9c
refs/heads/master
2021-01-25T07:08:14.604437
2015-09-07T17:17:48
2015-09-07T17:17:48
16,152,069
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
import urllib import pandas as pd import pandas.io.data as web #from datetime import datetime import matplotlib.pyplot as plt import pickle as pk from pandas.tseries.offsets import BDay # pd.datetime is an alias for datetime.datetime #today = pd.datetime.today() import time #time.sleep(5) # delays for 5 seconds #today...
[ "aris@cmu.edu" ]
aris@cmu.edu
6f87b92696de2420ba9b14956ac1d08db4e16a86
bc6c0cda914c23e80921793eb0ce71c45202ada4
/src/endoexport/export.py
66f3970d48311c18dc3f984c553dd2e423f77298
[ "MIT" ]
permissive
karlicoss/endoexport
a2221799113a12b400e298dea8d95559926de138
98c8805cbcc00187822737ef32c2e0434c4f450e
refs/heads/master
2023-04-04T09:56:57.716411
2023-03-15T02:19:15
2023-03-15T02:22:45
230,617,833
3
0
MIT
2023-03-15T02:22:46
2019-12-28T14:05:23
Python
UTF-8
Python
false
false
1,512
py
#!/usr/bin/env python3 import argparse import json from .exporthelpers.export_helper import Json import endoapi def get_json(**params) -> Json: endomondo = endoapi.endomondo.Endomondo(**params) maximum_workouts = None # None means all workouts = endomondo.get_workouts_raw(maximum_workouts) return w...
[ "karlicoss@gmail.com" ]
karlicoss@gmail.com
98c8776b814a794b9aa792a3f3fc1eb2fc895e1c
ce6c84c99fc6efa26faececb6aa637b15d417271
/SUB/lib/automl.py
a5095e2c0eba303d43d381f6a5cf4224d72f1715
[]
no_license
freekode1ko/DataScienceJourney
879568b084177e2518875b03c4bcec09178ecf3b
9eb9c63135b8682ee3cddf2500c388af989627ed
refs/heads/master
2020-04-20T22:27:24.910331
2019-02-04T20:03:20
2019-02-04T20:03:20
169,140,055
1
0
null
null
null
null
UTF-8
Python
false
false
2,032
py
import os import pandas as pd import numpy as np from lib.util import timeit, Config from lib.read import read_df from lib.preprocess import preprocess from lib.model import train, predict, validate from typing import Optional class AutoML: def __init__(self, model_dir: str): os.makedirs(model_dir, exist_...
[ "noreply@github.com" ]
freekode1ko.noreply@github.com