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
0b3c99017aee979e09fb11608f7ce572fb5f70bf
11d6372e55b116af8a8230dad6f21fcb16dc2804
/computador_disco.py
bad65e867878f55061b7760e22697eccf111ca76
[]
no_license
Diegocndd/cpu-emulator-python
ff2b42615cdf8c2e2118c667115d42cf4029d9b5
41fe2021f571a18ce2189c0f97599fff185247dc
refs/heads/main
2023-07-04T11:55:32.699923
2021-08-06T02:23:46
2021-08-06T02:23:46
387,007,842
0
0
null
2021-08-06T02:23:46
2021-07-17T18:05:06
Python
UTF-8
Python
false
false
335
py
import cpu as cpu import sys import memory as mem import clock as clk import disk disk.read(str(sys.argv[1])) print("Antes: ", mem.read_word(1)) print(f"X: {cpu.X}", f"Y: {cpu.Y}", f"K: {cpu.K}", f"H: {cpu.H}") clk.start([cpu]) print("Depois: ", mem.read_word(1)) print(f"X: {cpu.X}", f"Y: {cpu.Y}", f"K: {cpu.K}", ...
[ "diego.candido@dellead.com" ]
diego.candido@dellead.com
994a21e1b5351bb8803115122538763a18ca4061
8ce656578e04369cea75c81b529b977fb1d58d94
/cabinet/management/commands/install_agent_document_categories.py
f7066c4849307c4450974b965c055fa0181053d4
[]
no_license
JJvzd/django_exp
f9a08c40a6a7535777a8b5005daafe581d8fe1dc
b1df4681e67aad49a1ce6426682df66b81465cb6
refs/heads/master
2023-05-31T13:21:24.178394
2021-06-22T10:19:43
2021-06-22T10:19:43
379,227,324
0
0
null
null
null
null
UTF-8
Python
false
false
3,460
py
from django.core.management import BaseCommand from clients.models import AgentDocumentCategory class Command(BaseCommand): help = 'Ининцализация документов агента' def handle(self, *args, **options): data = [ { 'name': 'Согласие на обработку персональных данных.', ...
[ "javad@MacBook-Pro-Namig.local" ]
javad@MacBook-Pro-Namig.local
acfde62e3cb1d0f325a1e1501d00817bec7f9861
64ae5b7bbd0e0517385e440e49d55d5ee61567c7
/Task.py
ad1e10f6e2118e1c20bfce72aed8c1948aa0d2a2
[]
no_license
ZarkoHDS/MuhammadYusuf_ITP2017_FirstRepo
fbee43537e1ce1ccfc9f56401e9d2348e0414716
d2bed721a6c147df050fa6c26be4105825817f69
refs/heads/master
2021-06-30T02:41:00.095135
2017-09-19T07:24:44
2017-09-19T07:24:44
103,889,151
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
for i in range (2000, 3200): if i %7 == 0 and i %5 != 0: print(i,end=',')
[ "muhammad.andiyusuf@ymail.com" ]
muhammad.andiyusuf@ymail.com
878b3315928b447c6894221ee9b290c666777e9e
245921bfd96f6f8381a1fa420af82f129b3dd398
/scapy_fragment.py
cac92156584db978a3f31acab59f44ae16a2e359
[]
no_license
sqlfocus/scatter
e9086b7ca5f0473791aa27488bfb4f36d21ab341
b2d340d9c063b230b2530c2b25dccfafe1371d12
refs/heads/master
2021-06-11T13:25:35.909506
2021-05-11T03:13:23
2021-05-11T03:13:23
59,447,784
0
1
null
null
null
null
UTF-8
Python
false
false
372
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from scapy.all import * def cons_UDP(dip): payload = "A"*250+"B"*500 packet = IP(dst=dip, id=12345)/UDP(sport=1500, dport=1501)/payload frags = fragment(packet, fragsize = 500) for f in frags: send(f) def main(): cons_UDP("110.242.68.4"...
[ "songqing.li@chaitin.com" ]
songqing.li@chaitin.com
6920c283948aa00bf28f04344b538d2d47addbd3
8264174f7639b66b4010c3dba9a7af5f459ffa05
/scripts/rhn-channels.py
a054aad94591e2da7259040c0eaf14e90ee498e4
[]
no_license
skallesh/rhsm-qe
4e61aacdad4f24e2a0ebdcd97176cd18aa8c5c29
6feacaea70d26e37c78d11d247cc55c98e19548f
refs/heads/master
2020-04-05T23:03:06.904875
2018-07-17T06:53:39
2018-07-17T06:53:39
7,687,878
0
0
null
null
null
null
UTF-8
Python
false
false
3,963
py
#!/usr/bin/python # Authors jsherril and jsefler # Given a credentials and a hosted RHN server, this script is used to list the # RHN Classic channels available. # avoid: Unexpected error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579) # reference: https://dnaeon.github.io/disable-python-ssl...
[ "jsefler@redhat.com" ]
jsefler@redhat.com
29c8e5e95970068970f73c311abf72373b3481ac
f811244ce15308f2e2bc4509e0fe18025a06ff87
/tool/autoPlatform/tools/autoCode/clock_view.py
58cc503be1707ba0673bdaf9f013df7ef50fe615
[]
no_license
autoCore/autoTest
cb21118374d69897ee9a363921fce4ff230bfb4c
6b778aafca1fb170201813c4a1fda315fc6322ef
refs/heads/master
2023-06-12T04:51:22.266677
2021-07-01T06:42:03
2021-07-01T06:42:03
112,465,116
7
2
null
null
null
null
UTF-8
Python
false
false
23,428
py
import os import sys import xlrd import string import pygraphviz as pgv from clock_parse_excel import parse_excel_clock_source from clock_parse_excel import parse_excel_clock_factor from clock_parse_excel import parse_excel_clock_parent from clock_parse_excel import curr_is_number_clk from clock_parse_excel import ge...
[ "binwu@asrmicro.com" ]
binwu@asrmicro.com
f0b0e2f3c61424ca81104424a26529c51538723f
48ea874e34ef8baa3241730c9151f044c2ece80c
/sources/U-Net/evaluate.py
15364dbd1df6af28aec6622b34bcdc432bb686fb
[]
no_license
janotjir/car_detection_methods
7d61e9aee57d98efaf255fc177fb688ab087ac79
98dba3e80f2ea94e59ae5ba2d1b7d891dbf41a9e
refs/heads/master
2023-06-26T20:01:48.435438
2021-07-29T14:14:30
2021-07-29T14:14:30
371,655,265
0
0
null
null
null
null
UTF-8
Python
false
false
19,331
py
#!/usr/bin/env python import os import h5py import numpy as np import math import random import torch import timeit import argparse from unet_model import SmallerUnet from sklearn.cluster import DBSCAN import matplotlib.pyplot as plt parser = argparse.ArgumentParser() parser.add_argument('--criteria', type=str, defa...
[ "janotjir@fel.cvut.cz" ]
janotjir@fel.cvut.cz
957c6b22a1b93bf468f14cfdfef24e788494548b
6cd729fc0d6edf92dc8d95be17a3091bfd2036a3
/StockDaily.py
591f615d38eb8f1c94e7c52320d68034f28ea7f3
[]
no_license
ChrisChen0615/twStock
33bc1b368c44263c1f695f5e98814ef35bce9a9c
c413d4a8c61b2abdc37f95f03977bd88cce028dd
refs/heads/master
2020-03-23T14:40:01.517727
2019-11-25T14:21:43
2019-11-25T14:21:43
141,691,586
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
# 主程式 from package import StockMarketExport from package.ScrapyBuySell import TWSEBuySell, OTCBuySell import encodings #dateList = ['20191120','20191121'] dateList = ['20191125'] # 大盤excel #五大 十大留倉數值有問題 StockMarketExport.main(dateList) # 上市外資(含陸資)、投信買賣超前三十 twse = TWSEBuySell.TWSE(dateList) twse.Execute() # 上櫃外資(含陸資...
[ "chrisjoy1864@hotmail.com" ]
chrisjoy1864@hotmail.com
3e7b3c6a000b2b8476100bd740adde6d1b63a164
92bd4ce782aa38755d0f1ccd74873d6d0f30a406
/csc1002/groupProject/mazer.py
a3eff20beb9337bc70f09620a169df8395d245d8
[]
no_license
ZouCheng321/myPythonCode
031e1c73dd45990f66124721901837646a8ad50c
e1d169f2e3d57d2489e8cf063b33a064e4a7fb30
refs/heads/master
2020-05-08T23:04:52.612007
2016-05-16T08:26:46
2016-05-16T08:26:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,919
py
from tkinter import * import pickle import explorer # Import explorer as a module and call its functions later. import copy # Use these global variables to enable the pre-provided functions. '''Actually, you do not need to declare the global variables below here. You can either declare them in the function...
[ "interguijinjin@foxmail.com" ]
interguijinjin@foxmail.com
c714530d9d6a42c7483f7710ac4a0bb9657eab96
414b5a4b03b812e2cc57efe9fc3240950239c5c0
/models/mask_rcnn/visualize.py
ae2752a6a7376e52a406c185c3f080714f96d92d
[ "MIT" ]
permissive
sinianyutian/MicroscopyUNet
51713339f17d597d4f95ba6ccfe9e34be8c5e5a0
3988b3a68072973b7d065037539531b942af73bf
refs/heads/master
2020-03-08T15:15:55.116640
2018-04-05T09:37:51
2018-04-05T09:37:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,420
py
import os import random import itertools import colorsys import numpy as np from skimage.measure import find_contours from skimage import io import json import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.lines as lines from matplotlib.patches import Polygon import utils def random...
[ "branislav.hollander@ge.com" ]
branislav.hollander@ge.com
d1f9a4f51096ddd9ae18d5367d377658e2bb5622
11fe265badfae33041cf5fcdde1aa08aa1ab6839
/LeetCode/290.WordPattern/Solution.py
304580b9b2cf4a2bf6f2f11f799295df3b755fb2
[]
no_license
CharlotteKuang/algorithm
04344a0f3d2675625843d47fbf7ea8ef5621ccc8
e5750c2eee33fcc94d5be1643576ace541036bf5
refs/heads/master
2021-01-19T09:12:48.102258
2016-03-21T05:46:11
2016-03-21T05:46:11
33,219,348
1
1
null
null
null
null
UTF-8
Python
false
false
742
py
class Solution(object): def wordPattern(self, pattern, str): """ :type pattern: str :type str: str :rtype: bool """ strArr = str.split(' ') if len(strArr) != len(pattern): return False count = 0 strDict = {} for p in pattern: if not p in strDict: strDict[p] = strArr[count] else: if st...
[ "charlottekuang430@gmail.com" ]
charlottekuang430@gmail.com
55097a4ff7bd4105145fb4041032b57665fc7963
6cddb15e44abc520a783cff9c21ce6688ae1a3cd
/listaAcoesAlerta.py
6262cb4f977d09fdf7c3aca685614f431d1888c9
[]
no_license
dancxz/Alerta_Acoes
d1e7cbcbf1fedae9063da7c2da2e6722df74c98e
edf3d516a5f1b84b95be794fd2b45d5ee0c6e077
refs/heads/main
2023-06-22T14:42:56.935102
2021-07-14T02:46:40
2021-07-14T02:46:40
385,794,424
0
0
null
null
null
null
UTF-8
Python
false
false
3,715
py
#!/usr/bin/env python # coding: utf-8 #acoes monitoradas lista_extras = [ 'VALE3', 'ITSA4', 'ITUB3', 'PETR4', 'ABEV3', 'GOLL4', 'WEGE3', 'HAPV3', 'ENBR3', 'CIEL3', 'SBSP3', 'TCNO4', 'ELMD3', ] from yahooquery import Ticker import datetime as dt import pandas as p...
[ "danilocxz@gmail.com" ]
danilocxz@gmail.com
26392d59e85b7a374e3b13a9fecfd41ae2d140f3
e08d222e72b28b748cfbdf07f7594fb8bc19a6d1
/demo/select_image.py
bf6421c45b5fbe71c29296ba8b5916274b81b30e
[ "Apache-2.0" ]
permissive
GuoBo98/ShipDet
f247280c39db66bb344227a3bd0cb7bd2a30f626
2979c39c5a56be3b99ba77833cfe556a8a0fc97e
refs/heads/main
2023-09-03T04:13:39.561639
2021-11-20T11:55:45
2021-11-20T11:55:45
430,081,492
0
1
null
null
null
null
UTF-8
Python
false
false
7,493
py
from argparse import ArgumentParser import mmcv from mmdet.apis import inference_detector, init_detector, show_result_pyplot import os import xml.etree.ElementTree as ET import numpy as np from pktool.visualization import imshow_bboxes, imshow_rbboxes from pktool import mkdir_or_exist,mask2rbbox import cv2 def roRect...
[ "guo_bo@whu.edu.cn" ]
guo_bo@whu.edu.cn
1bc2c0b94bb1a8f4c77aa78525497befb94032cf
7a8314e823603e1b1347228fd55726752d54f828
/test.py
f338a0cbcfa2028e2cd9f6fe48f5e2fd3589775e
[]
no_license
Tornike-Skhulukhia/convert-standardize-and-add-logo-to-images
d4027121edbe7532795a003f1506f1fa749e54c3
de9880eb800701c1630beccd53fbeb5079cc9a8a
refs/heads/master
2020-04-15T13:12:17.748516
2019-01-08T18:17:33
2019-01-08T18:17:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
854
py
from image_resize_and_add_logo import help_ , logo_and_resize ##print(help_()) ''' logo_and_resize( imagesFolder, resultsFolder, final_image_dimensions, newExtension, file_position_percentage_logoCompareDimension_distanc...
[ "noreply@github.com" ]
Tornike-Skhulukhia.noreply@github.com
d7175a7a1cf7089b05aaa41b3d52e4512b0ea24e
158236ecbe8af381386e43257c0f0a91d3b5467b
/src/_function_.py
6dc2115a3ec34331d7fd22be05a51f052dbf4cab
[]
no_license
JiaoPengJob/PythonPro
78b257c60b5623b840f4d0f099e903c3fbbe68f3
f28263f1eace8da7f46ba517ab927dcffd569d95
refs/heads/master
2021-09-13T20:42:34.763261
2018-05-04T03:28:11
2018-05-04T03:28:11
113,396,911
0
0
null
null
null
null
UTF-8
Python
false
false
3,891
py
#!/usr/bin/python3 # 函数 # 组织好的,可重复使用的,用来实现单一,或相关功能的代码段 # 提高应用的模块性,和代码复用率 # 自己创建的函数,叫做用户自定义函数 # 定义一个函数 # 规则: # 函数代码块以def关键词开头,后接函数标识符名称和圆括号() # 任何传入参数和自变量必须放在圆括号中间,圆括号之间用于定义参数 # 函数的第一行语句可以选择性的使用文档字符串用于存放函数说明 # 函数内容以冒号起始,并且缩进 # return [表达式] 结束函数,选择性返回一个值给调用方,不带表达式的return相当于返回None # 格式如下: # def 函数名 (参数列表): # 函数体 #...
[ "jiaopengjob@outlook.com" ]
jiaopengjob@outlook.com
a496b1e0b00d1c23699ae2b2aaadb6822805ad85
1d7fb21c33eddf67ce759316c2f7dfbd88c9e595
/test/test_api.py
fcd970d75833f6a532f2d06e5e3e27a068ebf76e
[]
no_license
2Dews/spatialapichallenge
928f3a8604aa15145e2f17f4c8c0a0a18c02ea24
cd8fbae2e605c20f8d35282815ab1f980994b29e
refs/heads/master
2022-04-17T01:00:46.466190
2020-04-16T03:32:44
2020-04-16T03:32:44
255,794,218
0
0
null
null
null
null
UTF-8
Python
false
false
1,311
py
import pytest import json import os import sys import inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0,parentdir) from spatial_api import app @pytest.fixture def client(): with app.app.test_client() as client...
[ "gus.martinka@ihsmarkit.com" ]
gus.martinka@ihsmarkit.com
49d27d44eec101a0f24b2da02fbd8a0fb64df05e
0f964bccf0b45ec2209b7be28c34c5a96703bb99
/python_learning/jvm_learning/jvm_proxy.py
be9607011ec469df5fb2a5ab2588385b1f7aaf00
[ "Apache-2.0" ]
permissive
suncht/sun-python
1e071a625db3b1208c7103d824cc8278002cc0d7
b02cba75c142adc44438192577cae171cb4837d4
refs/heads/master
2020-03-19T06:37:36.788077
2018-09-06T05:03:11
2018-09-06T05:03:11
136,040,116
0
0
null
null
null
null
UTF-8
Python
false
false
2,303
py
import jpype class JvmProxy(object): def __init__(self, jvm_path, lib_path=None, ext_path=None): self.jvm_path = jvm_path self.lib_path = lib_path self.ext_path = ext_path self._is_jvm_ready = False def start_jvm(self): """ 启动JVM虚拟机 :return: """...
[ "sunchangtan@jd.com" ]
sunchangtan@jd.com
2f52202744bc1e92dfea3074ceb38d1bfac0f12e
996e2d2f87be682785d4d3e280bfc0d30b5a2e54
/constants.py
664bf1175575e349c49c9d4a72f18a01c458c011
[]
no_license
JamesMcGaa/lightshow2818
4bffe4ffb0005874d87d51178ffd7bcf7857eaf0
cdf70ea53ddb95a40c7d5c496359a15ad5f8ba72
refs/heads/master
2023-02-06T20:13:24.859073
2021-01-02T06:29:26
2021-01-02T06:29:26
322,919,582
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
from enum import Enum class Modes(Enum): STATIC = "STATIC" RAINBOW = "RAINBOW" @classmethod def is_mode(cls, value): return value in cls.__members__ class RedisKeys(Enum): POWER = "POWER" BRIGHTNESS = "BRIGHTNESS" MODE = "MODE" HEX = "HEX" class RedisBool(Enum): TRUE = "...
[ "jemcgaa@gmail.com" ]
jemcgaa@gmail.com
9631118403e2f17b00803c8d516ab5a97feef27d
4a00856f4edb5727b3a830b57c844baadd3b23bd
/web/web/urls.py
9bd382f105ee65efbb81cc04a1c60230386a10cd
[]
no_license
abrarhamzah/Hearty
83bfd45d5a1c875211fe2824d71394ce1f2d378c
8efd7ca2c8ac884c095acffbca2f10f8876b5ff0
refs/heads/master
2023-06-30T11:02:49.833695
2021-08-01T05:02:40
2021-08-01T05:02:40
340,002,652
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
"""web URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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') Class-based vie...
[ "tomorlando.02@gmail.com" ]
tomorlando.02@gmail.com
1796396ac4d583558f6a29ba34fabad9f7441db8
c2c07ad5c71d675d39b1ee81574216afc9c07b54
/libs/dill/tests/test_nested.py
90bb5376547a919f74e4ca0a24bd178aa91ef8f4
[ "BSD-3-Clause" ]
permissive
Bjornwolf/language-model
4da7238f93f735e192df8dbd7188369edae8c222
1f94f7d917ea2913e447d21ec9df37a5fa3c72b1
refs/heads/master
2021-01-17T13:30:37.973040
2016-07-18T16:50:03
2016-07-18T16:50:03
39,199,540
0
2
null
2015-10-09T21:59:10
2015-07-16T13:50:53
Python
UTF-8
Python
false
false
2,984
py
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2015 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE """ test dill's ability to hand...
[ "bjornwolf@migrant-fleet.home" ]
bjornwolf@migrant-fleet.home
93a14dcf2d770286384c2f9e5a5d7c53bc572dde
f6a6b3e623223922fc0188a500cb1d7d3222000d
/spot_electricity_data_logger.py
8095eee4c315fe0db007947f2782e9384d9c83fe
[]
no_license
MiesSuomesta/PowerStockAI
9d82c39837ee1e34586b0e3066ebca4347b0ea3e
13385fa160b5898ea7b40fbca1248dbbfc6cb675
refs/heads/main
2023-08-13T23:03:59.206819
2021-10-06T09:40:47
2021-10-06T09:40:47
414,151,780
0
0
null
null
null
null
UTF-8
Python
false
false
15,492
py
#!/usr/bin/env python3 import sys,os # Import library for fetching Elspot data import base64 import traceback import sys import pickle import random import os, json import time as Time from dateutil.relativedelta import * from dateutil.easter import * from dateutil.rrule import * from dateutil.parser ...
[ "lja@lja.fi" ]
lja@lja.fi
d60e472f2c0a6abc4f19eb90c7e3b6c0f3fdef2b
8dfe4b53fae92795405d789d52148d1291836afa
/python/python学习/day1/习题二-找出tmp目录下所有相同大小的文件.py
732d9fc54c4c063aaf8d66a4aec841a91b161712
[]
no_license
ymyjohnny/python
e07c54a88954e090cf3d30a4c6f6ac46353063fb
b483fd55e577d4dcceb5762bddf833df23874f3a
refs/heads/master
2021-01-10T01:10:19.038424
2019-07-02T02:40:23
2019-07-02T02:40:23
45,223,843
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
import os from os import path from os.path import join, getsize d_size ={} for root, dirs, files in os.walk('/tmp'): for file in files: # if '-' not in file: # continue # filenameall = os.path.join(dirs, file) filenameall = path.join(root,file) #print filenameall t...
[ "ymyjohnny@adsame.com" ]
ymyjohnny@adsame.com
d21dad6b2b6a152d53a06d50b67685c6736e54d5
4d3edc60fcc4636975466536aa5797c52254255b
/pertemuan02.py
b209849ef92ccb2bf81e9e454cccad4aa14b5ac1
[]
no_license
Grazer1823/amcc_dekstop_sesi_2
e27d43dcb58b426b5ef14a47e53cd6a58bebb23d
fce37cf84840be5d71d2c2a8405d53eaf73b2c9a
refs/heads/main
2023-03-22T13:57:21.653882
2021-03-17T12:07:47
2021-03-17T12:07:47
325,038,522
0
0
null
null
null
null
UTF-8
Python
false
false
943
py
#mencetak kata i love you '''jadi kali ini saya akan menunjukan operasi sebuah pemrograman''' #print("I love you") #kata_pertama = "hello world" #print(kata_pertama) #pesan = """halo semua perkenalkan namaku dimas asal sulawesi""" #print(pesan) angka_pertama = 53 angka_kedua = 4 # penjumlahan = angka_pertama + ang...
[ "dimassentosa77@gmail.com" ]
dimassentosa77@gmail.com
117e4a84741a16aa97c2439a4cb411ffa6ea84f1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p00007/s249774203.py
45118b4f2e83abf18eb480f4129f1763910d08c9
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
i = int(input()) x = 100000 for _ in range(i): x *= 1.05 x = int((x+999) / 1000) * 1000 print(x)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0dc1f5d525511a874d853584a0a73f9735f97a2b
cd9c11b31f432167f6d7e5e8c2982643e0b57253
/config.py
b504c4a3392b07d1e8d921d31e1591040d325eb4
[ "Apache-2.0" ]
permissive
boluo123456/python_onethingcloudApi
584ff58802e8cb1e1439dd84fd6670d7dfb0a6ec
b47729b7c811f43defec45eeae70c073284eac24
refs/heads/master
2020-05-21T05:34:07.668784
2019-03-13T01:41:26
2019-03-13T01:41:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
#coding=utf-8 # saving urls APP_VERSION="1.4.9" BASIC_ACCOUNT_URL = "https://account.onethingpcs.com/" LOGIN_URL = BASIC_ACCOUNT_URL+"user/login?appversion={0}".format(APP_VERSION) CHECK_SESSION_URL = BASIC_ACCOUNT_URL+"user/check-session?appversion={0}".format(APP_VERSION) ACCOUNT_INFO_URL = BASIC_ACCOUNT_URL + "wkb...
[ "k2yk@klog.io" ]
k2yk@klog.io
010fa572fce96bbea946684f5f4c6dd203f393d4
66a530b297725b1a2d1c95f95883145c04614ae1
/0x06-python-classes/4-square.py
b06dd0ffb43c9324bf62690a848170202420b3da
[]
no_license
Yagomfh/holbertonschool-higher_level_programming
4e6f28186eae18eaba60017fe49ac446a02cbdc5
1d15597a6040a8ee15b08447c478d0a2e79b5854
refs/heads/main
2023-04-23T18:23:28.096644
2021-05-18T08:12:27
2021-05-18T08:12:27
319,253,389
0
0
null
null
null
null
UTF-8
Python
false
false
1,031
py
#!/usr/bin/python3 """Define a class Square.""" class Square: """A class Square.""" def __init__(self, size=0): """Initialize a new Square. Args: size (int): The size of the new square. Raises: TypeError: if size is not an int ValueError: if size ...
[ "yagomfh@gmail.com" ]
yagomfh@gmail.com
ea97d358fc8c397c5368903bab9ea407f037eda0
24e96ab18708bae18bb7aace42b6d134ea83ec88
/src/encoder.py
a8722912bbc2ae09fa57845c5c568deb2838b47e
[]
no_license
timewait/cikm
618bf85cd8ec9967125a93666f7d1f569ee4bc44
cc8a1e2dc11804088ab02655e57b67f86520965a
refs/heads/master
2020-03-22T20:47:09.896756
2018-07-30T06:24:19
2018-07-30T06:24:19
140,630,672
0
0
null
null
null
null
UTF-8
Python
false
false
9,032
py
import sys import os import tensorflow as tf import numpy as np from abc import ABCMeta, abstractmethod import attention import ops __all__ = ['get_encoder_instance', 'TransformerEncoder', 'DANEncoder'] def get_encoder_instance(**kwargs): encoder_type = kwargs.get('encoder_type', 'dan') if encoder_type == 'd...
[ "zhudanxiang@baidu.com" ]
zhudanxiang@baidu.com
a81f0cb621315a1eaf98015acfff82b66a69484a
5880c8063140579af8b85b74b158666cdea2e4f0
/homework03_B05505035.py
acd4fc39d8b0a4ce9d3af359d9da297a7837c4a3
[]
no_license
wyueng/ESOE-CS101-2016
da00f1c325d937ec288bd721973e28b11da4f44f
af6b61f10b53adab212f6f681edcd2d4495a507a
refs/heads/master
2021-01-11T07:13:55.999037
2016-11-01T06:02:33
2016-11-01T06:02:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,469
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # 繳交日期:2016.10.17 # 作業內容: # 1. 請閱讀 Wikipedia 維基百科 IEEE754 條目 (https://zh.wikipedia.org/wiki/IEEE_754) # 2. 請試玩 http://armorgames.com/play/17826/logical-element # 3. 請利用以下空白範本設計一支程式。程式可輸入一段字串,並自動計算出字串中包括空白字元出現的機率。 # 並由高排到低。 #def charFreqLister(inputSTR): #resultLIST ...
[ "B05505035@ntu.edu.tw" ]
B05505035@ntu.edu.tw
97e01bb61de8905a359a7ca45b2434980d04d5c8
2261c0eef5522dc76903f19fd36a50d4a0cf28e9
/api_grabber/urls.py
906c7a07143d1f0e8fcd576610fd0dcd2dde4d79
[]
no_license
kanyczka/api_grabber
d8bdf8be0e7b776e4275050abd7fe2d587b92b4c
23cdec72b9ecc740010e72fbd1e56970ac16a555
refs/heads/master
2022-12-12T11:49:17.621646
2019-03-25T11:25:13
2019-03-25T11:25:13
176,955,874
0
0
null
2022-12-08T04:53:53
2019-03-21T13:58:24
Python
UTF-8
Python
false
false
450
py
from django.contrib import admin from django.urls import path from rest_framework.authtoken.views import obtain_auth_token from django.conf.urls import include from api import urls # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ path('ad...
[ "nyczka@free-dom.pl" ]
nyczka@free-dom.pl
b18236cb57a00898c5431242292ced8deffcd973
7bb747cb9a36b83fa1ba7e907f6198065f9bcab5
/models/GAN3D.py
785d3f7dd0b21e453601356a27467c3d221b18a4
[ "MIT" ]
permissive
stjordanis/3D-GAN-pytorch
87531716b1574798558f741fa84a80aeaacc7479
e3f640dbb8335cde239334b3b1ad143acd784c56
refs/heads/master
2022-04-17T12:52:03.358450
2020-04-15T16:48:25
2020-04-15T16:48:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,379
py
import torch import torch.nn as nn from torchsummary import summary """ Implementation based on original paper NeurIPS 2016 https://papers.nips.cc/paper/6096-learning-a-probabilistic-latent-space-of-object-shapes-via-3d-generative-adversarial-modeling.pdf """ class Discriminator(torch.nn.Module): def __init__(se...
[ "noreply@github.com" ]
stjordanis.noreply@github.com
987b6a34cfd7b708efe40ed991711ec750bf0dfb
98d0893df45637eaaa034c7b00e19ceae464699c
/lectur/lectur_app/migrations/0008_auto_20170316_1342.py
26c581398565441fd234f2ac2dcefd0e17c82d20
[]
no_license
Valentina0924/lectur
a3de7553901992a12f7fd9cca05fd231ab33a265
87f0e25d673a888d1818bd66f03c360dffb7096b
refs/heads/master
2021-01-18T13:12:30.057769
2017-05-19T19:17:50
2017-05-19T19:17:50
80,735,742
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-16 18:42 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('lectur_app', '0007_auto_20170307_1758'), ] operati...
[ "tina-h0924@hotmail.com" ]
tina-h0924@hotmail.com
120cf124e6d117ce2d26ce040bb53d39e05240cc
b1b18e07eb585493c55b0fca76f6449aa1268775
/project/cloud_storage/views.py
100ef810b7fd12e02a96432ae17dbed192d61279
[]
no_license
hsuanchi/django-upload-static-to-gcs
aec47f3f1a20ec2be12338fc221a1c3620633a20
3d722a38dfbe66291860e62baa8c31cb7b6d5d22
refs/heads/main
2023-03-16T14:33:16.913408
2021-03-11T04:20:11
2021-03-11T04:20:11
337,669,035
0
0
null
null
null
null
UTF-8
Python
false
false
1,592
py
from django.shortcuts import render, redirect # from django.views import View # from django.http.response import HttpResponse # from django.middleware.csrf import get_token # from .models import logo_upload_to # class UploadView(View): # def get(self, request): # html = """ # <form method...
[ "a0025071@gmail.com" ]
a0025071@gmail.com
65ffe02170315fff4575929135dceb5a6c748bb6
247576f5ccd92fb408250d6f40c026dca5124c41
/dashboard/migrations/0003_auto_20201122_1952.py
38e959dc4b5743b6aad153094bbfd95b649f323d
[]
no_license
iscobar456/pihub
c1ad785561f198275eea53859fb8f89507ba4a15
1e4a3011aeaa01fc7a6da5acf51934d98269deae
refs/heads/master
2023-07-04T21:45:30.534125
2021-08-08T22:45:47
2021-08-08T22:45:47
310,452,883
0
0
null
null
null
null
UTF-8
Python
false
false
1,259
py
# Generated by Django 3.1.3 on 2020-11-23 02:52 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('dashboard', '0002_auto_20201111_1300'), ] operations = [ migrations.RenameField( model_name='device...
[ "isaac@brightbridgeweb.com" ]
isaac@brightbridgeweb.com
64c7abbc4dfef98f200d2fe137d83314f9f076b4
1c17f54e069868f90f819f1fbd6e72b417ec53a4
/sw/pyBackend/splitFlapClockRadioBackend/weatherStation/sensorsWebRoutes.py
7b54041158554b462f4fd81644b7b4af11dee989
[ "BSD-2-Clause" ]
permissive
iz2k/splitFlapClockRadio
73d684fc010376f4f4fa7923fa0396924871c1ed
458b374bac77a30d4e6a97830d5e6dcef0f1b3f7
refs/heads/master
2023-02-28T20:16:43.514669
2021-02-09T09:12:37
2021-02-09T09:12:37
319,291,133
0
0
null
null
null
null
UTF-8
Python
false
false
1,424
py
from splitFlapClockRadioBackend.__main__ import App from splitFlapClockRadioBackend.tools.jsonTools import prettyJson from flask import request as flask_request def defineSensorsWebRoutes(app: App): @app.webserver.flaskApp.route('/rest/sensors/get-current', methods=['GET']) def getSensors(): return p...
[ "ibon@zalbide.com" ]
ibon@zalbide.com
3203f96749773440ba87ed366bd845ea5a43a2c9
f6080f777407734e4b42a0100df57f40f17f3ad2
/DSA 450 GFG/reverse_linked_list_iterative.py
791cbfa29840d79af71d950be8fd0124e0a84ec3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
MannyP31/CompetitiveProgrammingQuestionBank
abf136410a9a76b186995b0e851cb3869938b5f5
23fd547b06a65ae0f5246d2500c4c81fab1a92e0
refs/heads/master
2023-08-24T23:06:13.740397
2021-09-30T06:38:34
2021-09-30T06:38:34
358,646,838
2
0
MIT
2021-09-30T06:38:35
2021-04-16T15:43:10
C++
UTF-8
Python
false
false
960
py
#https://leetcode.com/problems/reverse-linked-list/ # Iterative method #Approach : # Store the head in a temp variable called current . # curr = head , prev = null # Now for a normal linked list , the current will point to the next node and so on till null # For reverse linked list, the current node should po...
[ "dsrao0712@gmail.com" ]
dsrao0712@gmail.com
59fe958c9b80b8f78b5cb7dcc8cebc8af54213a4
57503a4174d9f88a53c3e3e91f4f87ec164ec30e
/core/size.py
b46ba904e5ac808ca1025e0179130cdd1d78c3ca
[]
no_license
DemoniacDeath/pysdl2platformer
d9baedcb8246462f59acdaad5a5e2563a40d6ca3
ecc5927f21994add7fc226f7c5f692f14f1aedce
refs/heads/master
2021-10-21T13:05:51.603603
2021-10-21T07:47:24
2021-10-21T07:47:24
182,332,707
1
0
null
null
null
null
UTF-8
Python
false
false
394
py
from __future__ import annotations class Size(object): width: float height: float def __init__(self, width: float, height: float) -> None: self.width = width self.height = height def copy(self) -> Size: return Size(self.width, self.height) def __mul__(self, scalar: float...
[ "michael@mangoerp.eu" ]
michael@mangoerp.eu
2eb30638f97c1f5056b8e76007e4d8f67852b626
1cb4be7efa49b19fdee10fe9ad3a1132b2a809a9
/7.django/job/project/myApp1/apps.py
f6432fe644d481f291917b61dc7322d0aa7450d3
[]
no_license
sunwenbo/python
2920cea38f315e096ad1bb95c379f90347725f02
8c4ab33f523d95f7edecc53f6dc656fe828c4412
refs/heads/main
2023-04-28T15:10:13.332548
2023-04-14T17:06:01
2023-04-14T17:06:01
359,131,041
1
0
null
null
null
null
UTF-8
Python
false
false
92
py
from django.apps import AppConfig class Myapp1Config(AppConfig): name = 'myApp1'
[ "swb956721830@163.com" ]
swb956721830@163.com
b2ca7362efdc3819872f2a4aa4946b83d5cbe510
07ec6f517b8823054f21c4f29ade47f2265a826f
/src/collective/odtdiff/__init__.py
9aae8ad45f4ee3b6b07ce1d05804565daaf11b4c
[]
no_license
IMIO/collective.odtdiff
819ad4f1b6ec85fdffaf8da947df347549a98ec2
5eaec2bebc705f97ce3c617d01d19ae5cd2019b1
refs/heads/master
2021-01-10T17:52:41.747727
2015-06-05T10:07:56
2015-06-05T10:07:56
36,721,471
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
# -*- coding: utf-8 -*- """Init and utils.""" from zope.i18nmessageid import MessageFactory _ = MessageFactory('collective.odtdiff') def initialize(context): """Initializer called when used as a Zope 2 product."""
[ "franck.o.ngaha@gmail.com" ]
franck.o.ngaha@gmail.com
699ed680aab955a0a7c5a5a2af7bcf0d2834b447
11b22df6653594447a0cc7a2a6912f231b2a5cad
/automatic_receipt_generation/req_receipt/migrations/0002_auto_20190302_1359.py
91c5292e08882025223b738c63f3137227df7579
[]
no_license
ShreyansDubey/SIH-2019_Automated-Receipt-Generation
b4787b3a25ebda24256b4fe04eba9d5f0fa30820
9c8f097446e09c6c09279c0a53dbe222dcc655fd
refs/heads/master
2020-04-29T12:27:56.442909
2019-03-03T09:00:58
2019-03-03T09:00:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
# Generated by Django 2.1.7 on 2019-03-02 08:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('req_receipt', '0001_initial'), ] operations = [ migrations.AlterField( model_name='card_transactions', name='date', ...
[ "theshreyansdubey@gmail.com" ]
theshreyansdubey@gmail.com
d2397313c7dd09ab6c27b46394bc622eb1c07c3d
7ef41ea9e7df512cf7e45dc08de380ab79db212f
/Autonomous-navigation/find_point.py
390569d41105de28192f78156aa07a0508ac5664
[]
no_license
TsuriyaLevy/Lab
ca0397220192e70c5738ca40ede4198fa967ebdc
719011ea0fb7f7dc3f8227c329896559de6e33c8
refs/heads/master
2023-07-31T17:27:52.842184
2021-09-02T12:34:06
2021-09-02T12:34:06
386,257,418
1
0
null
null
null
null
UTF-8
Python
false
false
1,680
py
from math import sqrt from Point import Point def getOtherPointOnLine(slope, point, dist): if slope == 0: xValue = point.x + dist yValue = point.y else: dx = (dist / sqrt(1 + (slope * slope))) dy = slope * dx xValue = point.x + dx yValue = point.y + dy re...
[ "tsuriya.levy@gmail.com" ]
tsuriya.levy@gmail.com
87c096213d5c3f6d40f2a15bbacc68441e83e757
b5d3a5e38902783cce2d99d09119a69f23f10631
/02.py
cddc831c635e9522a25701dd4db9e37ca8fed090
[]
no_license
jeffersonchaves/estudo_dirigido
2eaa78f7ca70079e7bb93b9379cf6fe93510ec4d
e753f7389804f8c5c2341bde191f82222f63332e
refs/heads/master
2020-04-29T05:11:42.937271
2019-05-18T18:24:53
2019-05-18T18:24:53
175,873,525
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
''' Escreva um programa que leia um valor em metros e o exiba convertido em milímetros. ''' # valor_metros = int(input('digite um valor em metros')) valor_metros = 10 valor_milimetros = valor_metros * 1000 print('valor em metros: ', valor_metros) print('valor em milimetros: ', valor_milimetros)
[ "jeffersong.s@hotmail.com" ]
jeffersong.s@hotmail.com
bb0be0f85b7ed10e1bac38364bcabcd91fd399ee
85fb504c5c304d2ca6a753cf2159de3148d03de7
/Answer/0009.py
b493c834e6c4a9f216b84720661565e1b3f95307
[]
no_license
hxlnwpu/Python_Exercise
4e1d7c865804180c8f5730c91604bc7e063e20ac
961770192858183aae0e1de0c464c6e97d0d7b8e
refs/heads/master
2020-04-07T20:47:02.982505
2018-12-20T02:07:13
2018-12-20T02:07:13
158,702,992
1
0
null
null
null
null
UTF-8
Python
false
false
571
py
#coding=utf-8 import urllib.request,os from bs4 import BeautifulSoup headers = {'User_Agent': 'Mozilla/5.0 (X11; U; Linux i686) Gecko/20071127 Firefox/2.0.0.11'} ##request = urllib.request.Request("http://www.runoob.com/python3/python3-file-methods.html", headers=headers) #response = urllib.request.urlopen(request) ...
[ "yishengtuwei@foxmail.com" ]
yishengtuwei@foxmail.com
1da0dc29d12b1b3278132b7bf3354560b0e57ea6
f14e4f1d244c49409b13c9aa7b6b7dc250ff03c8
/msgr/utils/reflectivity_conversion.py
dae59d64f82a0a429a60d1a540b3fb067ec43b25
[ "MIT" ]
permissive
tsbiscaro/matchproj-python_DSA
5c6c573408c80c05605d9362b16b3393caafa54b
256bd68e370c89823bc7da06ff297e894c31d851
refs/heads/master
2020-04-17T05:14:24.946932
2019-01-17T17:55:33
2019-01-17T17:55:33
166,269,822
0
1
null
null
null
null
UTF-8
Python
false
false
6,129
py
import copy import numpy as np def _convert_reflectivity_from_ku(refp, zp, zbb, bbwidth, l_cband=1): """ Convert to S/C-band using method of Cao et al. (2013) Parameters ========== refp: Satellite reflectivity field. zp: Altitude. zbb: Bright band height. bbwid...
[ "tsbiscaro@gmail.com" ]
tsbiscaro@gmail.com
43fcd53f99709811d571f1b1a590bd4a55e1415d
9f9bcace19736bad8443c3f19e642b5da6437410
/preprocessing/contraction.py
30e64874c890fb816059f7cb8649f42da16ec16d
[]
no_license
13muskanp/Social-Media-Community-Clustering-Algo
173f8f4b8f73faf87516454c1383d7d581bb1758
c707be718688207db1d275f0ae3ec41faaebdde6
refs/heads/main
2023-01-02T08:20:09.125186
2020-10-28T11:54:21
2020-10-28T11:54:21
307,972,613
2
1
null
null
null
null
UTF-8
Python
false
false
468
py
import contractions #Todo add contraction extractor def contraction_handler(text, replacement=None): def cleaner(input_text): result = contractions.fix(input_text) result = result.replace("'s", '') return result return list(map(cleaner, text)) if type(text) is list else cleaner(text) ...
[ "noreply@github.com" ]
13muskanp.noreply@github.com
fc4b17d4598e8179a8697346ec85e1e5d284c26a
2b11484083ba398b04355f1868b26e2034eb6b0a
/03_return.py
becbfed77627017f1e04a5dd52aff7f531138576
[]
no_license
robertvari/python_alapok_211106_2
ac21d7f23d539959795a819caade1fa5410a4a22
f53cbc82c5af0caf3ab38770986307a72873c7ea
refs/heads/master
2023-09-05T05:00:45.093227
2021-11-21T17:12:40
2021-11-21T17:12:40
430,103,987
2
0
null
null
null
null
UTF-8
Python
false
false
377
py
def add_numbers(a, b): print(f"add_numbers: {a} + {b}") return a + b def multiply_numbers(a, b): print(f"multiply_numbers: {a} * {b}") return a * b def subdivide_numbers(a, b): print(f"subdivide_numbers: {a} / {b}") return a / b result = add_numbers(4, 10) result = multiply_numbers(result,...
[ "mail.pythonsuli@gmail.com" ]
mail.pythonsuli@gmail.com
b5d4fcade3add5ba746b35aeba281a3b19ebaa5c
29a20e9e196a72777611f80ed2858de518df590a
/scripts/rot_imu.py
a2283bfeef7d3817e99d2d30c2c138efb85229a4
[]
no_license
TXSTDroneResearch/roombaslave
41e4ba5070c2106ff9d5a244cb730eaeee474c34
fa0693b049eeda3ea9c3f1b98448878a93a466de
refs/heads/master
2021-05-11T07:28:42.024796
2018-01-28T18:44:54
2018-01-28T18:44:54
118,020,553
0
0
null
null
null
null
UTF-8
Python
false
false
2,947
py
# Add parent directory to PATH import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import create import imu import math import platform import serial import time if platform.system() == 'Linux': import pyudev def NormalizeAngle(a): if abs(a) > math.pi: # renormal...
[ "j_m591@txstate.edu" ]
j_m591@txstate.edu
70c4eea04d601a955c1ff3a6191d2d12a0b502de
0d0ae63ff4d0e16569576e42fa5a6f1c0d7e910e
/users/migrations/0015_auto_20181210_1406.py
ad2e08e553b7f111b6ec013d3d1774963a19051d
[]
no_license
thomasbunyan/matchmaking-site
433c8906737d98eca62d802f381e6921d7bfe853
2923c0b147795ae9836bec08f0f9257bce4d1476
refs/heads/master
2022-12-10T20:00:47.812625
2019-10-02T22:28:40
2019-10-02T22:28:40
212,444,673
0
0
null
2022-12-08T02:35:24
2019-10-02T21:27:47
JavaScript
UTF-8
Python
false
false
367
py
# Generated by Django 2.1 on 2018-12-10 14:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0014_auto_20181118_1458'), ] operations = [ migrations.AlterField( model_name='profile', name='dob', ...
[ "n.annalingam@se16.qmul.ac.uk" ]
n.annalingam@se16.qmul.ac.uk
58bb86d7ab808c16a7cb2587cd7a50d6d633f4d7
41f3a501e59f81cfc14ca5e85b0952b3b2b35ad8
/readme.py
4dad1f3e7e4212384ab538c5b149989b0cd5ab50
[]
no_license
revaludo/mrate
9b8141f338e01ae342040e7f4e482310be9080dc
f51ec22347222b17f65f571669fda2a93540adf0
refs/heads/main
2023-08-11T12:58:37.222283
2021-10-07T19:43:01
2021-10-07T19:43:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,245
py
# 参数注释 # 从原数据文件解析出来的各项列表 user_sequence = [] # array item_sequence = [] # array label_sequence = [] feature_sequence = [] timestamp_sequence = [] # array start_timestamp = None y_true_labels = [] user2id = {} item2id = {} item_timedifference_sequence = [] # item 本次交互与上次交互的时间差 # array scale item_sequence_id = [] # 列表 ...
[ "yu@YUdeMacBook-Pro.local" ]
yu@YUdeMacBook-Pro.local
f9df29f194cb3c85416e649ca29bba8a44430dd9
d2306aafd7fed8d8b6a37b684ca115ba2a66b41e
/phase1/tweets_gen.py
08de3a5cabc09c9597d1b42f85439b9f56ae3672
[]
no_license
agupta4/Inter-state-Policy-Affect
28501da9eb7d2b6216af22d633c64b50bbaef380
8438966c189fb6d4c4678a8f0e39afa0656fae73
refs/heads/master
2021-01-23T04:14:29.455866
2017-08-08T05:29:50
2017-08-08T05:29:50
86,179,154
0
0
null
null
null
null
UTF-8
Python
false
false
2,309
py
from twython import Twython, TwythonAuthError import sys import json import sys; sys.path.append('/Library/Python/2.7/site-packages/pattern') from pattern.en import sentiment, positive import goslate import re reload(sys) from dateutil.tz import * sys.setdefaultencoding("utf-8") myApi=Twython('Ic8lLpnaJKhrBuVmzT2hoQdG7...
[ "abhishekgupta@Abhisheks-MacBook-Pro.local" ]
abhishekgupta@Abhisheks-MacBook-Pro.local
125b0fb3e4af48e20e3f8383e2f0dfe78cb291fe
d57b51ec207002e333b8655a8f5832ed143aa28c
/.history/gos_20200614063006.py
3b1d50fca3f5888ff5d4a21fa47bff0e281d9930
[]
no_license
yevheniir/python_course_2020
b42766c4278a08b8b79fec77e036a1b987accf51
a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b
refs/heads/master
2022-11-15T07:13:24.193173
2020-07-11T15:43:26
2020-07-11T15:43:26
278,890,802
0
1
null
null
null
null
UTF-8
Python
false
false
8,556
py
# # Імпорт фажливих бібліотек # from BeautifulSoup import BeautifulSoup # import urllib2 # import re # # Створення функції пошуку силок # def getLinks(url): # # отримання та присвоєння контенту сторінки в змінну # html_page = urllib2.urlopen(url) # # Перетворення контенту в обєкт бібліотеки BeautifulSoup #...
[ "yevheniira@intelink-ua.com" ]
yevheniira@intelink-ua.com
7dc6f71ae62061d291de2556e2bf4e6ab21ddf12
32c1e2195337985c6599435c1bc203c08cab3926
/getdata.py
c937ee61d18d71da791c9e567f76e4836bfc4188
[]
no_license
leetsyplakov/YOUTUBE-ANALYTICS
22be46fccb7388823d9c3abdc58f8cdada98b3e4
965a2502945002fbd73b35e6266da8418ad26847
refs/heads/master
2022-07-09T12:37:33.466472
2020-05-17T13:25:14
2020-05-17T13:25:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,939
py
api_key = "AIzaSyBbghAhh2hBgqgJRb10k9HENFLWjCJeTzw" from apiclient.discovery import build import datetime import pandas as pd import numpy as np youtube = build('youtube', 'v3', developerKey=api_key) #Return Youtube channel ID q=input("Type your favor Youtube channel here: ") request = youtube.search().list(part='sn...
[ "58407956+trangthu17398@users.noreply.github.com" ]
58407956+trangthu17398@users.noreply.github.com
d1affa2604b16c60a9d03123b6ed82a292584cf8
8dcfab559361ee01ddd556efa1401ee63a2f9416
/out/production/test/main.py
0c5c8737d65974e5d7a07da59f8e358f6c79cff2
[]
no_license
ahmadrazakhawaja/cs50-finalproject
21ef18cb6f65b6cce71071fdfc77bb3df0dbd0b7
27428fba29f5c26d393b33896ba85473eb265484
refs/heads/master
2023-03-15T16:27:11.919706
2021-03-04T18:11:37
2021-03-04T18:11:37
265,838,873
1
0
null
null
null
null
UTF-8
Python
false
false
4,356
py
from tkinter import * import tkinter as tk import tkinter import aes import rsa ae=aes.encryption rs=rsa.rsa #/Users/ahmadrazakhawaja/Downloads/project test/test.txt def main(): top = tkinter.Tk() top.title("choose technique") top.geometry("400x500") top.configure(background="powder blue...
[ "ahmadrazakhawaja@gmail.com" ]
ahmadrazakhawaja@gmail.com
6c5b8ca76f2a7ba7a144d933a246622af83a7817
1a6f1fa9d1447f8e22b2b99f5e30fd2ee1f0d9ac
/knearest.py
ab8ec01d4358737bc3c6b70187101d74cb85adb2
[]
no_license
sashanksridhar/Content-Based-News-Recommendation-Engine-using-Hybrid-BiLSTM-ANN-Feature-Modelling
d7649107ea7cc35d82b8f3607a80d4f1c3d6c0bd
aa098a6918b74fed86a11be1ab80368a7d790283
refs/heads/main
2023-08-13T05:44:49.602153
2021-10-19T06:20:08
2021-10-19T06:20:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,044
py
import pandas as pd import numpy as np import csv from keras.preprocessing.text import Tokenizer from keras.preprocessing.sequence import pad_sequences from sklearn.decomposition import PCA from sklearn.feature_extraction.text import TfidfVectorizer from gensim.models import Word2Vec from sklearn.preprocessing ...
[ "noreply@github.com" ]
sashanksridhar.noreply@github.com
bf284714f69c8b16337bf57339cdee9043580021
471bb0d0b3b641435969b4bd09677c88b552d1a3
/main.py
edddb1678ac271a5b7c36ae560bbb2aeb40e9c45
[]
no_license
V0lT999/Test_cc
e747cafcb9de99ac7a567c9ba61284d82ad7f85a
fe1314bf10eda1ad4f251b9293f0221ddedb9096
refs/heads/master
2023-03-06T03:41:08.695145
2021-02-17T08:49:14
2021-02-17T08:49:14
339,660,211
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
import update import parse import json import time import logs interval = 30 logger = logs.get_logger("sleep") def working(): data = update.get() parse.parse_data(data=data) logger.info("WAITING...") time.sleep(interval) while(1): data = update.get() parse.parse_new_data(data=data...
[ "toropov29@rambler.ru" ]
toropov29@rambler.ru
06c45efbe18b822fa8d30305bf3275b8c87b3b59
4ade586eb178b3cfb80f4fcabef023b1f1001d0c
/tips/DFS/arc_031_2.py
0abc82e408dc433f1ca32f30a0ad15e637d377b9
[]
no_license
TakeruEndo/atcoder
e3c5ef8ca802aa4995c471deca7b25daf56a06ef
5c812377096ae255b2fa51b3a29c1b2ea686ad57
refs/heads/master
2022-06-02T08:05:55.003353
2020-05-02T08:59:32
2020-05-02T08:59:32
234,338,212
0
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
import sys sys.setrecursionlimit(1000000) # 4方向への移動bベクトル dx = [1, 0, -1, 0] dy = [0, 1, 0, -1] def dfs(h, w, type_): if type_ == 'first': pass else: d[h][w] = 1 global count count += 1 # 4方向を探索 for dire in range(4): nh = h + dy[dire] nw = w + dx[dire] #...
[ "sitentaduro1118@gmail.com" ]
sitentaduro1118@gmail.com
84d45943decadbb99a572309e5faf948fc7a7de5
d0c787cb0e25ae0c8c29807291caac37c008bcec
/revenue_model_function.py
0931091aa74c2328806a518191803e69935cf285
[]
no_license
JBPereira/RModel
29cee70b6e11e586f8f17feb01008d4160b1d052
24ec3f8434afa5aecb34ad3f1f1c3e2a4b1edd8e
refs/heads/master
2021-01-20T00:03:09.861832
2017-09-05T09:22:43
2017-09-05T09:22:43
83,793,296
0
0
null
null
null
null
UTF-8
Python
false
false
1,762
py
import scipy.special as sp import numpy as np import scipy.integrate as itg import matplotlib.pyplot as plt from spend_function import SpendFunction from time_function_expression import TimeFunction class RevenueModel(): def __init__(self, spend_pars, time_pars, revenue_max, window_time): self.spend_pars...
[ "joao.belo.pereira@greenhousegroup.com" ]
joao.belo.pereira@greenhousegroup.com
8be19b303f2600d214048ffceba55a71cc37a54f
874c2583c3a48f047f7265cc0f18a4157491f3ba
/parse.py
fb2e3262990e36dc2e06be1c8b37c77564aefcad
[ "MIT" ]
permissive
matthewashley1/Docker-Image-Versioning
6cf677bb031c2217246bba0ca84f471fef6de8ae
6517c5aae13962b8c5ab7cec097f4d117686af0d
refs/heads/master
2020-07-10T09:59:01.403480
2019-08-29T16:23:59
2019-08-29T16:23:59
204,236,557
0
0
null
null
null
null
UTF-8
Python
false
false
1,080
py
import json import os def load(): """ This method creates and loads data from a json file. :return: A new data structure populated with the json file data as a dictionary. """ data = [] filename = get_full_pathname() if os.path.exists(filename): with open(filename, "r") as file...
[ "matthewashley1@gmail.com" ]
matthewashley1@gmail.com
7f7d15ec8887b8cfea0264d5aca54410d1c70693
58ba076bd1fdbca4440f339741b53115fa5396ba
/calendar_app/planner/models.py
00cc162db73022027604a57969b9eff03e62a3e1
[]
no_license
richarddaly101/Calendar-Application
fabf2221ed890d1048be184378901d2c24d50da1
9b7175d94d75119453d7817dc1611587b005d3ef
refs/heads/master
2023-02-14T05:11:29.404334
2020-12-04T14:39:38
2020-12-04T14:39:38
318,543,001
0
0
null
null
null
null
UTF-8
Python
false
false
2,343
py
from django.db import models from datetime import date from calendar import HTMLCalendar # Create your models here. class Event(models.Model): day = models.DateField(u'Day of the event', help_text=u'Day of the event',blank=False) note = models.TextField(u'Textual Notes', help_text=u'Notes', blank=False) st...
[ "richard.daly@ucdconnect.ie" ]
richard.daly@ucdconnect.ie
a48e35fd45e5fc42a240ddeccef222ba7d60a982
c6e083f07a1cfe8be378ecd6311bf23765c7c47d
/modules/pytket-cirq/pytket/extensions/cirq/backends/cirq.py
c6c2d1300f9e2cb5cd0fabe3c777c325c71a44fd
[ "Apache-2.0" ]
permissive
ayazskhan/pytket-extensions
534512166d4bc0824b02ff5b34d2372ed466d365
677b1acc8dfc6274fd023b0d30d517457636cdbd
refs/heads/master
2023-03-12T18:12:51.580420
2021-03-02T14:20:55
2021-03-02T14:20:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,231
py
# Copyright 2020-2021 Cambridge Quantum Computing # # 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 a...
[ "alec.edgington@cambridgequantum.com" ]
alec.edgington@cambridgequantum.com
9836de2eba249a0fb2a7614d3f485c0a6e99921f
1716384ea5da9a4b058f0c110dc21d2a2243d4c1
/beginning-python-3ed-master/Chapter11/read_&_write.py
335c621cad5bba1eeb2a7222f98c73a8e60391b5
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
zhuxinkai/python3-book-practice
cf6c2b4abcec1c8bceb4841c63dbf98e8d0e78a3
a0d297df0755eaf239398f138c3b38746c32ac99
refs/heads/master
2022-11-30T19:18:30.331399
2020-08-06T02:03:56
2020-08-06T02:03:56
272,584,949
0
0
MIT
2020-06-19T05:48:52
2020-06-16T01:52:11
Python
UTF-8
Python
false
false
390
py
# encoding = utf-8 f= open('listing11-4.txt','w') f.write('Hello, ') # print(f.read()) io.UnsupportedOperation: not readable 如果文件没有关闭,那么不可对其进行读操作。 f.close() f = open('listing11-4.txt','r+') print(f.read(3)) # 'r+'和'w+'之间有个重要差别:后者截断文件,而前者不会这样做。 f2= open('listing11-5.txt','r') print(f2.read())
[ "zhuxinkai@126.com" ]
zhuxinkai@126.com
9c50b20d285e0147366392886411a09f58fd26a3
2c7dc8d7d5e3bc08487ade61717890d87e8d3da6
/theoretical_divergence_loss.py
4abe854c2eba5ed0611a632fff0b86f6f51fbee5
[]
no_license
Similarities/SHHG_denting_theory
ca74263d61e20c0771378f9a6f2a2bc753bb3d91
badbd15d06061645d1199f57d551ae76fa6ee046
refs/heads/master
2020-06-14T04:35:06.911398
2019-08-12T15:38:55
2019-08-12T15:38:55
194,901,973
0
0
null
null
null
null
UTF-8
Python
false
false
6,999
py
# -*- coding: utf-8 -*- """ Created on Wed Jun 5 13:33:12 2019 @author: similarity """ import numpy as np import matplotlib.pyplot as plt import math class full_HHG_beamsize: def __init__(self, Nmax, beam_diameter, focal_lenght, distance_source_grating, capturing_r_V, capturing_r_H, D0, w0): ...
[ "noreply@github.com" ]
Similarities.noreply@github.com
b31c92f6f572429aeea4c020e3003a173304d42f
cf3645e1bbfde328aec2175b3fa5d6eda6b5e2b1
/crawling_back/spiders/__init__.py
8c5f24e6fe7b0bc4dccd48b1c108c5ef422fcca0
[]
no_license
ShichaoMa/old-spider
f74f00d6a6c114aa6878662907c70ebe42f9ea09
cf030b655434a3adb6094302b1d2650f6521d1d3
refs/heads/master
2020-03-06T15:53:49.709223
2018-03-27T09:36:58
2018-03-27T09:36:58
126,963,707
2
0
null
null
null
null
UTF-8
Python
false
false
9,975
py
# -*- coding:utf-8 -*- # This package will contain the spiders of your Scrapy project # # Please refer to the documentation for information on how to create and manage # your spiders. import time from hashlib import sha1 from urllib.parse import urlparse from scrapy.spiders import Spider from scrapy import signals, Re...
[ "308299269@qq.com" ]
308299269@qq.com
211110972aec2f48bee5988c10954f69484af038
68ba417af33536b9463bb40926a932a8fb2c8773
/Lilacbot_main.py
330a4124569d2994d8a9cc98bcb46a44a077bea0
[]
no_license
Potturisarvani/ML2021-1
23b71336611c2eb5a6601269a979e5dbc55d3036
16b81b60839652d63fd33aff1b37620a0b9ec3a9
refs/heads/main
2022-12-31T23:21:28.709304
2020-10-18T08:07:56
2020-10-18T08:07:56
305,070,414
1
0
null
2020-10-18T09:56:21
2020-10-18T09:56:20
null
UTF-8
Python
false
false
2,665
py
""" This is the program of our chatbot. 1. The bot will welcome a person to a hotel and ask for his/her name. 2. It will provide the menu of recipes according to the time he arrived and takes his order. 3. It also provides the menu of beverages. 4. It calculates the bill and provides a link to pay. 5....
[ "noreply@github.com" ]
Potturisarvani.noreply@github.com
08347c6fde4445db3dfc84159a4d05c357a9e6e7
d10d3be5692a39383fdf4a1c26b98a366e89538f
/servidor-random-http.py
0b60b635b58fab8925e3e2c031116f217f761cc6
[]
no_license
rosu123/X-Serv-14.3-URLsAleatorias
a21164ecd46deebbf4c37b7e0f0bfb78a89f839d
c56ae6b19987c22ce61d6a166eb8242f13c198c9
refs/heads/master
2021-05-02T11:14:40.247170
2018-02-08T15:44:10
2018-02-08T15:44:10
120,773,284
0
0
null
2018-02-08T14:39:47
2018-02-08T14:39:47
null
UTF-8
Python
false
false
902
py
#!/usr/bin/python3 import socket import random mySocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) mySocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) mySocket.bind(('localhost', 1234)) mySocket.listen(5) try: while True: print('Waiting for connections') (recvSocket, address) ...
[ "rperela@alpha29.aulas.gsyc.urjc.es" ]
rperela@alpha29.aulas.gsyc.urjc.es
0374daeedb3bfc8b847986e80b51fdb487cd68c3
5027a0fd758a0753a0cb7e1c28cc54ee7be844ec
/Day 032 Send Emails/main.py
f9c8e41f1c92212c5972d56f37347b585525eb6e
[]
no_license
shauravmahmud/100DaysOfCode
915a07bd7b7cf276ae262ecb65b1cc4e4060b3e3
720080670e2fe34ffd747af874f7e5099ae0db94
refs/heads/main
2023-04-18T13:45:21.232858
2021-04-25T15:32:04
2021-04-25T15:32:04
391,855,759
1
0
null
2021-08-02T07:37:21
2021-08-02T07:37:21
null
UTF-8
Python
false
false
1,351
py
#To run and test the code you need to update 4 places: # 1. Change MY_EMAIL/MY_PASSWORD to your own details. # 2. Go to your email provider and make it allow less secure apps. # 3. Update the SMTP ADDRESS to match your email provider. # 4. Update birthdays.csv to contain today's month and day. # See the solution video...
[ "christophermayes@icloud.com" ]
christophermayes@icloud.com
c645f95d962ed1d60f69dc593ee465ee1f06fd31
a5af54e46fba4c2ff5a6c9fac80dbe824a97eefb
/authentication.py
f1284ded1f337361d4589b7556cd40047a47adec
[]
no_license
FaustGet/SEIKO-TelegramBot
28368b744387fc61ecbc0c56101fb7ce409844ac
b54fd51678c52312a999cacd026afaf3f672d2f5
refs/heads/main
2023-07-24T14:46:03.342636
2021-08-31T15:04:29
2021-08-31T15:04:29
399,818,619
0
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
from config import db from config import bot from dictionary import language def signin(login:str,pas:str,telegram_id:int,lang): try: user = db.users.find_one({"login":login,"pas":pas}) if user: db.auth_user.remove({"telegram_id":telegram_id}) db.auth_user.insert_one({ ...
[ "54880765+FaustGet@users.noreply.github.com" ]
54880765+FaustGet@users.noreply.github.com
a2aa5c67e118e896001d74d9486e184a5cd2a94e
b64c714a5f7a8eed2666c043f0043921e384687a
/aries_cloudagent/protocols/present_proof/v2_0/routes.py
3e1e980822cd49d9a4e85761496c3fbbe4e6d73f
[ "Apache-2.0", "LicenseRef-scancode-dco-1.1" ]
permissive
rbeltranmontijo/aries-python
299f17dbba653b32079d071e5255e166f3a3cc02
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
refs/heads/master
2023-06-02T14:42:52.968549
2021-06-11T18:28:10
2021-06-11T18:28:10
375,843,123
0
0
null
null
null
null
UTF-8
Python
false
false
34,905
py
"""Admin routes for presentations.""" import json from typing import Mapping from aiohttp import web from aiohttp_apispec import ( docs, match_info_schema, querystring_schema, request_schema, response_schema, ) from marshmallow import fields, validate, validates_schema, ValidationError from .......
[ "rjbeltran@buroidentidad.com" ]
rjbeltran@buroidentidad.com
5c3166a2cb214fb4f0585aaaa7674adf7d9c89d6
3e65c4a3781359e1e68870f6419bb580cec3d670
/tests/back_office/test_users.py
b0b7f925943f47d11b7fbc0697fd41b9fd3e74b5
[]
no_license
Maksim1988/test
deeff67fc3211c913d9be77008f38fe9e24a2a18
ea1fd32981fce2db2c8bb6ceeb477bc7561e58cd
refs/heads/master
2021-01-10T17:03:36.871180
2015-11-08T13:08:49
2015-11-08T13:08:49
45,779,091
0
0
null
null
null
null
UTF-8
Python
false
false
25,019
py
# -*- coding: utf-8 -*- # -------------------------------------------------------------------- # Tests . #-------------------------------------------------------------------- import datetime import math import time from ddt import ddt, data from support import service_log from support.utils.db import databas...
[ "m.senchuk@yandex.ru" ]
m.senchuk@yandex.ru
5b28988414edc5436853cde08d2063d1cfa4cda4
4a5543dd866e183da6e828514c0ccd9610627fbc
/app/helper/httper.py
332b035a20bc1b885e74a569aa046f26e1e2b7d9
[]
no_license
treeyh/kanchene
134e60573dbe9c9ba31b1f0ca0d6b056cc8746f3
f0b55fc99fac48b4ee718e27f406879c1e101df1
refs/heads/master
2021-01-01T18:55:02.201297
2012-02-13T07:27:41
2012-02-13T07:27:41
2,050,902
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
#-*- encoding: utf-8 -*- import urllib2 def get(url, params): try: print url % params c = urllib2.urlopen(url % params) j = c.read() return j except: print "http helper error!!!url:%s" % (url % params) return None
[ "yuhai717@163.com" ]
yuhai717@163.com
f74d4afd01551be2adcabdeb4fd7e396e3f8a9aa
122c0ce4b8709872f8ffa962708b26806a0b41ee
/PackEXEC/PackDATA/MonumentHistorique.py
35e6671b9b97db54bf8b1304f991c5305bd3d54a
[]
no_license
Sniper099/WorkTest
de1d6729a01890706053e7c8434aac34421c59c9
5377f5cc7d3ed89f597be9ea0e39b8a148656737
refs/heads/master
2022-05-30T12:04:15.027020
2020-04-22T23:15:50
2020-04-22T23:15:50
256,840,217
0
3
null
null
null
null
UTF-8
Python
false
false
1,427
py
from PackDATA.ZoneTouristique import ZoneTouristique class MonumentHistorique(ZoneTouristique): Mon=['Tour Hassan','Oudaya','Chellah'] MonII=['Ein Zarqa','Qasr Khalifi'] mon='' zone='' def __init__(self,zone,mon='Catrgorie Monument Historique'): ZoneTouristique.__init__(self,zone) s...
[ "nj.nava.99@gmail.com" ]
nj.nava.99@gmail.com
331cf82a4ab44589393e1d87e946cf35655fc6dc
b08f3ed26179842e70b45c7be878f59e3154d996
/training.py
e4ed1ebbd7253fc06305381912fdb80f2b7acc14
[ "MIT" ]
permissive
mkeyran/EmotionRecognizer
03613395d31b0e3392ffea5e8488249b4abb3596
6874c204f5910693c5014f3b8adffbe2c53619e9
refs/heads/master
2020-02-26T15:10:25.151286
2017-05-19T08:22:38
2017-05-19T08:22:38
83,579,691
0
0
null
null
null
null
UTF-8
Python
false
false
1,567
py
import nn_learn import pickle import base_model dat = pickle.load(open("data/TrainingData/pickled_generated_sets", 'rb')) pca_dat = pickle.load(open("data/TrainingData/pickled_generated_sets_pca", 'rb')) model = nn_learn.NeuralNetwork(nn_learn.neural_net9_pca_lr03) d = pca_dat model.train(d["train_data"], d["tr...
[ "m.keyran@gmail.com" ]
m.keyran@gmail.com
a31e42557032e63be2f3ab5ffe2f4f22e0ba940e
649fe279cf377a6a3a916d6040bc619b149b50ea
/smartva/rules/aids_child.py
548b99d90ebac7a3834bc2a167cde60ad00f0720
[ "MIT" ]
permissive
ihmeuw/SmartVA-Analyze
b290e38c175ed29e4fc60c6ba0cbb26f07c5c9b5
31403c34cb3b0660fb48bb08ebc8287d2169746e
refs/heads/main
2023-01-11T04:19:21.497021
2022-12-16T01:25:20
2022-12-16T01:25:20
159,388,083
8
12
MIT
2022-12-27T14:55:32
2018-11-27T19:28:26
Python
UTF-8
Python
false
false
270
py
from smartva.data.constants import * from smartva.utils.utils import value_from_row, int_or_float CAUSE_ID = 1 def logic_rule(row): value_of = value_from_row(row, int_or_float) hiv_positive = value_of(Child.HIV_POSITIVE_TEST) == YES return hiv_positive
[ "josephj7@uw.edu" ]
josephj7@uw.edu
57019afb46bd577ee42720933ca32164dc4b3028
516ad44c0ee4c6cb27f26a74921aa4aef9eba5d8
/jar/__init__.py
65e091400c3dc23ccc080c3b4659b1e50462ae23
[]
no_license
zw632948101/flowermonkey
a9e8f1c1807fec9d4656e821b796bd2e3a9064c6
c968d80153679999a618fd3c9accadf5c9e8f5fe
refs/heads/master
2023-05-23T11:12:45.266838
2021-06-18T03:13:13
2021-06-18T03:13:13
352,884,078
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
#! /usr/bin/env python # -*- coding: UTF-8 -*- """ @Time: 2020 2020/4/17 9:57 __author__: wei.zhang """
[ "wei.zhang@wroldfarm.com" ]
wei.zhang@wroldfarm.com
a237ffdfc315f2656b432bca3099be67d76c6fda
93b4a87ae0a732807343887399009a4db7861883
/A10/src/dataset/dataset.py
4bbec67490c9ab2a733a3f467cafca557ed56dfb
[]
no_license
sanjeev29/EVA
f53c9294dc3636c7cf4441417253bb2378b26aa3
0bc50249d26d69e177c5a3c1e658b143773d3a95
refs/heads/master
2022-06-18T09:14:33.844561
2020-05-10T17:48:25
2020-05-10T17:48:25
262,843,469
2
0
null
2020-05-10T17:49:31
2020-05-10T17:49:30
null
UTF-8
Python
false
false
696
py
# import src.dataset from torchvision import datasets class Dataset(object): def gettraindataset(self, train_transforms): return datasets.CIFAR10(root='data', train=True, download=True, transform=train_transforms) def gettestdataset(self, test_transforms): ...
[ "abhijitmali@hotmail.com" ]
abhijitmali@hotmail.com
250eb6f1c38eb603afdf31d61ab9fd54e58e0735
b186830ab8e74452cb2e8ff0188d0a8fa3d15b59
/centuryFromYear.py
af0cf1ae65729e260dae1d7df458c56d06e55dcd
[]
no_license
cafaray/atco.de-fights
e3a278bd51feb7bee05623eaf20d1ea4db535eb6
1304bcabf1f18202c14a20b38144854ef05bf776
refs/heads/master
2022-11-26T05:57:37.564504
2020-07-28T12:07:01
2020-07-28T12:07:01
124,416,047
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
def centuryFromYear(year): return year/100 + (1 if year%100>0 else 0)
[ "cafaray@gmail.com" ]
cafaray@gmail.com
2b5add77670bff92cc5f30109481e5b326f92ceb
c1f07dd0947ed5b02ca81c6880142ac48010b20d
/CodeJamRd1/Q2/names.py
9b8aa5515b7719c74070ad5ee144e9b2c8250dd2
[]
no_license
DarkPurple141/contests
295ae9c0260dd003f1fb2398874449e133de7257
2fbfd4d9d1d023628b4cff9b85f88ee0ff07e33e
refs/heads/master
2021-01-20T06:53:20.526302
2018-07-03T06:13:44
2018-07-03T06:13:44
83,878,959
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
#!/usr/bin/env python3 t = int(input().strip()) for i in range(t): result = "TRUE" pattern = input().strip() match = input().strip() pattern_len = len(pattern) match_len = len(match) for i,c in enumerate(pattern): if c == '*': # special case else: if ...
[ "alex.hinds141@gmail.com" ]
alex.hinds141@gmail.com
143f9a19b738c6c9975f8adf5c895748e2ab0282
4d063e7bec6226c34cab2233d6e3e84d146ffaa3
/fe/test/test_add_comment.py
382b72e109a592aff7df546ded3a8079c137633e
[]
no_license
bopopescu/dbfinal
9e3b4fd405fb6ec5b2b99d5151693b226d0799d8
02b17b3f5e492d6392077cddc2872f574c3fa833
refs/heads/master
2022-11-19T23:15:42.912480
2019-12-31T15:46:10
2019-12-31T15:46:10
281,665,426
0
0
null
2020-07-22T12:00:53
2020-07-22T12:00:52
null
UTF-8
Python
false
false
11,799
py
import pytest from fe.access.book import Book from fe.access.new_buyer import register_new_buyer from fe.access.new_function import * import uuid from fe.test.gen_book_data import GenBook import random class TestAddComment: @pytest.fixture(autouse=True) def pre_run_initialization(self): self.seller_id...
[ "xioccmo@outlook.com" ]
xioccmo@outlook.com
c06a54cdbd18d4f164aa4b5c6ab7c10ce9ab6c3c
2093256e74449195282d58d05e48cf53e4305d8d
/document-clustering.py
fd0dd7d4cb57af7a89a12ae5a0ef1be895118533
[]
no_license
harshild/document-clustering
b528f5c6165de70b4dca94e719dca662d8c97754
2ff601c2dd090f8b66ec288a0e00620a54445b51
refs/heads/master
2022-06-14T03:53:52.601967
2020-05-10T01:24:31
2020-05-10T01:24:31
262,679,336
0
0
null
null
null
null
UTF-8
Python
false
false
1,796
py
import os import re import html2text def get_tokens(file_data): token_dict = {} file_data = file_data.lower() file_data = re.sub("[^a-z]", " ", file_data) for token in file_data.split(" "): stripped_token = token.strip() if stripped_token != "": if token_dict.keys().__con...
[ "harshil.dhariwal@gmail.com" ]
harshil.dhariwal@gmail.com
eb8036ab41ef2226ee3eb1602766b3d800af45e9
434106d4c27972d33e77fc03ed84bfb279122834
/env/bin/flask
90c2c37cc4a81b7c3876b8b838c1108b9c5193f8
[]
no_license
ashamril/akuHero
480ec6d829cc618384d1707dbcb83e0e5f80e80e
3acc47ff26fc7c882e0a98a85179a478df9d1b26
refs/heads/main
2023-03-31T12:06:25.371150
2021-04-11T06:03:45
2021-04-11T06:03:45
352,275,974
0
1
null
null
null
null
UTF-8
Python
false
false
265
#!/home/ami/T430/GIT/github.com/ular_sawa_python/akuHero/env/bin/python # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ami@oc3460564501.ibm.com" ]
ami@oc3460564501.ibm.com
3e5c1be06240f63431fdf6dd297126f4c401cbd9
9d0b382c928675a977784b1c36dac5a9df0286fd
/libs/ppt/setup.py
b4e71ffc27c67f369ee8db50a9d620438c935f33
[]
no_license
jeremyh/dea-proto
6fb728ee8d57827e7e89289de55c4785daa773ac
ac291620ef715583ecab4d3b7385e4afa43bb149
refs/heads/master
2023-08-13T01:40:10.547930
2019-07-17T05:31:28
2019-07-17T06:05:06
197,325,268
0
0
null
2019-07-17T06:04:27
2019-07-17T06:04:26
null
UTF-8
Python
false
false
402
py
from setuptools import setup setup( name='odc_ppt', version='1', author='Open Data Cube', author_email='', maintainer='Open Data Cube', maintainer_email='', description='Various Parallel Processing Tools', long_description='', license='Apache License 2.0', tests_require=['py...
[ "kirill888@gmail.com" ]
kirill888@gmail.com
ec3c89592d4d8c69c233e4564f3b388d26f5e4f4
91fb65972d69ca25ddd892b9d5373919ee518ee7
/pibm-training/sample-programs/exception_002.py
74b1fd23e26fd08cf017cd245626f8fdde4a1499
[]
no_license
zeppertrek/my-python-sandpit
c36b78e7b3118133c215468e0a387a987d2e62a9
c04177b276e6f784f94d4db0481fcd2ee0048265
refs/heads/master
2022-12-12T00:27:37.338001
2020-11-08T08:56:33
2020-11-08T08:56:33
141,911,099
0
0
null
2022-12-08T04:09:28
2018-07-22T16:12:55
Python
UTF-8
Python
false
false
251
py
#exception_002.py while True: try: n = input("Please enter an integer: ") n = int(n) break except ValueError: print("No valid integer! Please try again ...") print ("Great, you successfully entered an integer!")
[ "zeppertrek@gmail.com" ]
zeppertrek@gmail.com
3f7a2ad4261693d4393884cb669254812f0cdd92
e27353229655dd605918f56424ab409210a5af4d
/ComputerVision/CV3/LucasKanade/LucasKanade_points_pyramids.py
c82b369ee3c5f9fa45aba3a90ee8044532e6cf2c
[]
no_license
Anastasiia-Khab/homeworks-ucu
b5d1aaa83230a0787f47b377dba78176c643cbb6
c1ef98c8cf235f60c185bcf2b387e07f1d058ed9
refs/heads/master
2020-05-24T00:51:13.487110
2019-08-09T14:07:26
2019-08-09T14:07:26
187,018,372
0
0
null
null
null
null
UTF-8
Python
false
false
2,988
py
import numpy as np import cv2 as cv import argparse import glob import time import re import os parser = argparse.ArgumentParser() parser.add_argument('--images_path', dest='images_path', type=str, help='path to image file') parser.add_argument('--roi_path', dest='roi_path', type=str, help='path to roi image') parser...
[ "anastasykhab@gmail.com" ]
anastasykhab@gmail.com
708ea2020f4815fbe87b1959cbb649477a0ad86b
b28c2e04e2a093a7e83b214c877ea30978ff862e
/twitter_clustering/fetch_tweets.py
52d24a15e40e4d372cfb9cb8f5584ff41e3151f6
[]
no_license
markmo/experiments
ec00dcb6219cd422873ae3a018fc2bc8cadedd5c
f7d3f25dfef2472ec1b5bed30be7b46daa448257
refs/heads/master
2020-05-31T17:55:21.537201
2011-04-12T20:53:41
2011-04-12T20:53:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
# -*- coding: utf-8 =*- import codecs # import json import sys import twitter HASHTAG = sys.argv[1] PAGES = int(sys.argv[2]) RPP = int(sys.argv[3]) # http://search.twitter.com/search.json?pages=15&rpp=100&q=%23webstock&show_user=true # Twitter will only return a max of approx. 1500 results (rpp * pages), # showing a...
[ "markmo@me.com" ]
markmo@me.com
6a7ef44290ceb77c01a0d5d0a5358ecc2f6c3be0
d72d22892e440c98dfe4b103661a9dd754dd15cd
/source code/detection/detection/detectron2/structures/image_list.py
2d89224b64402badf7f0b113188b5f653df912ac
[ "MIT" ]
permissive
Phoenix1153/20TeamA
2a03cb7b691d31247ba9dd597bce52337c341754
022cc6686776c1512273817150ed3d816eaf2b1d
refs/heads/master
2022-10-23T22:08:56.507298
2020-06-19T04:51:45
2020-06-19T04:51:45
258,429,156
2
2
MIT
2020-06-19T04:51:47
2020-04-24T06:43:54
Python
UTF-8
Python
false
false
4,718
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from __future__ import division from typing import Any, List, Sequence, Tuple, Union import torch from torch.nn import functional as F class ImageList(object): """ Structure that holds a list of images (of possibly varying sizes) as a...
[ "1739831468@qq.com" ]
1739831468@qq.com
45c65db5f997d0ced6e9c3850d92e721d3e851c1
d62046153368306699c5662f662e8bf27833cd24
/PV_monitor/DL_classifier.py
f7896f19679aa65b6c9d92416e55f1072690a646
[]
no_license
muhi-zatar/PV-monitor-API
e3412b6c93c8af1e1b2925eeae24ed443e8d3ab0
b695e1948d47bde1a722bd26e71cea43a1f5152c
refs/heads/master
2022-12-24T05:59:57.733494
2020-09-21T20:21:46
2020-09-21T20:21:46
294,723,354
0
0
null
2020-09-21T20:21:47
2020-09-11T14:52:28
Python
UTF-8
Python
false
false
1,411
py
import os import tensorflow as tf import keras import numpy as np import pandas as pd from keras.models import load_model from utils import normalize import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from config import config class DLClassifier(object): def __init__(self, mod...
[ "muhy.zater@mawdoo3.com" ]
muhy.zater@mawdoo3.com
a7f1040f4a7b00ea87b2e4980f83afe27c9a39e6
a1ff0bdf2b8f305de6c3b241a6290727575bc034
/core/plugins/visual.py
74bc254df78e1dbf94d9b3e8e1eb5ef8e4c8fe89
[]
no_license
JuneRen/SimilarityLearning
ed088855e34c8ff36cb471b840f23c810e0cd8ce
bed6d87a546020ccb668eb6d3365ff20145ef45d
refs/heads/master
2020-12-09T03:52:32.600336
2019-07-05T09:53:24
2019-07-05T09:53:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,002
py
import numpy as np from core.base import TestListener from distances import Distance import visual_utils class Visualizer(TestListener): def __init__(self, base_dir, loss_name, param_desc=None): super(Visualizer, self).__init__() self.base_dir = base_dir self.loss_name = loss_name ...
[ "coria@limsi.fr" ]
coria@limsi.fr
85c921d1054dafa72aae29012d12474d4c9e6d82
6d91eee84dfaf614befdd4bca68a9d2f3f00162e
/molecule/default/tests/test_default.py
b6de2769c489ad603aeb1a465ba3bf62bd2218de
[ "MIT" ]
permissive
bitirement/ansible-role-acme-certificate-cloudflare
d7a15f0ef19141b4b35864039eb92369f9e1832d
22caa90ae19f99886a78bc9de39ac8cebd5b0a67
refs/heads/master
2023-07-13T15:55:09.269563
2021-03-16T22:49:41
2021-03-16T22:49:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,647
py
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_chain(host): certdir = "/etc/letsencrypt/live" intcert = f"{certdir}/letsencrypt-stg-int-r3.pem" cacert = f"{certdir}/letse...
[ "teodoro.cook@gmail.com" ]
teodoro.cook@gmail.com
ce27f610b1f9156233d4b024e14ac4d729503599
1375f57f96c4021f8b362ad7fb693210be32eac9
/kubernetes/test/test_v1_replication_controller_status.py
b142b6da9d514589c5adfdf4056cc4689abbee8d
[ "Apache-2.0" ]
permissive
dawidfieluba/client-python
92d637354e2f2842f4c2408ed44d9d71d5572606
53e882c920d34fab84c76b9e38eecfed0d265da1
refs/heads/master
2021-12-23T20:13:26.751954
2017-10-06T22:29:14
2017-10-06T22:29:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
[ "mehdy@google.com" ]
mehdy@google.com
d62e67d7ecf4df1b5239fa356cc731938c32ca4e
817afac038f06e8bb2ede09e7bc18325e39aefa7
/graphing.py
09671ab88201134660e8d387c73dc8865f6fe0ab
[]
no_license
gavinwinter/heuslers
672cfa9a1edf23948b83b635520065703180a3f8
d3c850ba183a556c4039621becec80f12eb6ed98
refs/heads/master
2022-12-10T00:56:57.777315
2020-09-10T06:32:29
2020-09-10T06:32:29
280,015,802
0
0
null
null
null
null
UTF-8
Python
false
false
19,344
py
# -*- coding: utf-8 -*- """ Created on Tue Jul 23 19:21:09 2019 @author: Gavin Graphing density of states from vasprun using pymatgen. Graphing band structure from vasprun using pymatgen. Extract additional info. """ #----------------------------------------- #clear previous variables for name in dir():...
[ "noreply@github.com" ]
gavinwinter.noreply@github.com
71a3bd14e7095ed858fc0f5c4537109f5b7edef0
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/union/duration-decimal/Schema+Instance/NISTXML-SV-IV-union-duration-decimal-enumeration-4-4.py
31399b0d101328ef12787056cf9e2b96842cc399
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
616
py
from output.models.nist_data.union.duration_decimal.schema_instance.nistschema_sv_iv_union_duration_decimal_enumeration_4_xsd.nistschema_sv_iv_union_duration_decimal_enumeration_4 import NistschemaSvIvUnionDurationDecimalEnumeration4 from output.models.nist_data.union.duration_decimal.schema_instance.nistschema_sv_iv_u...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
5001f06eebe08374b409da37c1eccd39966af2d6
d5ab4822ac6ffacfb49f322ec5912a5ff287d7f2
/venv/bin/easy_install
6aaa6b6dc8303169eb7e0faa142d7927c79c01cf
[]
no_license
chenozer/ChenTest2
46b3baa2fed56d93e9b4c346f77ea9a278720658
6675e76da116b6d27ff3e1be404ac63ff2799d50
refs/heads/main
2023-03-20T11:08:54.434375
2021-03-09T16:16:50
2021-03-09T16:16:50
346,021,965
0
0
null
null
null
null
UTF-8
Python
false
false
269
#!/Users/chenoz/PycharmProjects/chenTest2/venv/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "chenoz@Chens-MacBook-Pro.local" ]
chenoz@Chens-MacBook-Pro.local
a1e262f7934b38ade828f927a4b574f324c49dee
c4c9ee9ac6eb38adb5bdf742b72c58896d723750
/scripts/init.py
f1954b9064f623ac514267ab4fb63ee8fc195547
[]
no_license
cnhuzi/swiper
e64a5ce30f590727ac50a83cdbcbb733e401ed38
da262f5b032ec867e1d3f5639a7efb6e1610b607
refs/heads/master
2022-10-28T06:02:57.559305
2020-06-11T08:55:32
2020-06-11T08:55:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,725
py
#!/usr/bin/env python import os import sys import random import datetime import django # 设置环境 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, BASE_DIR) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "swiper.settings") django.setup() from user.models import User from vip.m...
[ "noreply@github.com" ]
cnhuzi.noreply@github.com
a3dadafa193cac0f386251c46aa260b4df8713a3
c3a3354d0ba350347f0c3de06d4b1ac0503ad540
/actions/xmas.py
724ca1ba18a6deb22dafcdf40cef220f1aedfdb2
[]
no_license
dgomes/MELGA
50d88ba573e2693b6abf0da81990f7d1496c91bd
89cab1f6131b5e3ceb042efc34148976dccd347b
refs/heads/master
2021-01-17T04:39:42.438940
2017-12-27T16:24:23
2017-12-27T16:24:23
15,422,864
1
0
null
null
null
null
UTF-8
Python
false
false
1,573
py
#!/usr/bin/python # # simple script that monitors light and power to decide to turn on the lights in the xmas # # Andy Piper @andypiper http://andypiper.co.uk # import paho.mqtt.client as paho import os import time import socket #CONFIGURATION broker = "localhost" port = 1883 def lights(turn=False): on = "R0002B358...
[ "diogogomes@gmail.com" ]
diogogomes@gmail.com
fd0c5482e802fb87ed8a1a166e751ef5d07cc4f4
210d8b57fe53fc0145917832ffc25d2ad5b8bda1
/staircase.py
7f7ed69c88a7f3b122b7d7912e1dbfc39879b91f
[]
no_license
MainaPaula/Algorithms-Practice
253751f17ec30a24c561613b952b50c7c5d4a03e
e2a8eb9987d39bc112a26b85959593b29c340efb
refs/heads/main
2023-07-10T02:43:37.722855
2021-08-08T19:15:18
2021-08-08T19:15:18
392,416,483
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
#!/bin/python3 import math import os import random import re import sys # # Complete the 'staircase' function below. # # The function accepts INTEGER n as parameter. # def staircase(n): for i in range(1,n+1): print(' '*(n-i)+'#'*(i)) if __name__ == '__main__': n = int(input().strip()) staircase...
[ "noreply@github.com" ]
MainaPaula.noreply@github.com
68e42be72416ee4d82f9e07e280999b2ed0725fe
ee396e7387b0ee113310748efd4b3b34a581a2f3
/SGD프로젝트.py
be844d69d9de75261e25f45dfeb07c0a7b0b8c11
[]
no_license
dPwlsgks99/numeric
d5af5ff93a26eb283820c46e7a6b06a23308173c
089895ca7270a1e9306f751f3d8d76db57f11123
refs/heads/master
2023-09-04T15:13:41.135629
2021-11-22T07:28:37
2021-11-22T07:28:37
430,593,318
0
0
null
null
null
null
UTF-8
Python
false
false
8,607
py
# %% import warnings warnings.filterwarnings('ignore') %matplotlib inline import matplotlib import matplotlib.pyplot as plt plt.rc('font', family='malgun gothic') plt.rc('axes', unicode_minus=False) print(plt.rcParams['font.family']) # %% [markdown] # ### 확률적 경사 하강법(SGD) 동작 원리 # %% [markdown] # 1. class로 함수 생성 # 2. ...
[ "yejin8756@naver.com" ]
yejin8756@naver.com
6c07b1e048feb39fffb9b4ef056a27fbc153df6b
b897a559fcb875a8496c1444b2f704b1a7f42c51
/venv/bin/easy_install
8ffc03eae127685b218d4eb18965020ae911482f
[]
no_license
mikaliod/Hack112
3f2535b2b99e44163ca9285523ea64ad4836e1ed
3f9a69aaaffa5dbf861dc5deb1732feaa3244bad
refs/heads/master
2021-01-24T12:56:24.067370
2017-08-25T22:33:36
2017-08-25T22:33:36
55,277,793
0
0
null
null
null
null
UTF-8
Python
false
false
272
#!/Users/mikaliod/Desktop/Design/Hack112/venv/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "mikaliodong@gmail.com" ]
mikaliodong@gmail.com
f2f2341b156aee87b251c8e69a037bcec17fe382
a8062308fb3bf6c8952257504a50c3e97d801294
/problems/N1015_Smallest_Integer_Divisible_By_K.py
ecc44268c08d271cd52b6ffb21cb2292647e28db
[]
no_license
wan-catherine/Leetcode
650d697a873ad23c0b64d08ad525bf9fcdb62b1b
238995bd23c8a6c40c6035890e94baa2473d4bbc
refs/heads/master
2023-09-01T00:56:27.677230
2023-08-31T00:49:31
2023-08-31T00:49:31
143,770,000
5
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
class Solution(object): """ num = a*K + r ==> num%K == r%K num_1 = num*10 + 1 = 10*a*K + 10*r + 1 ==> num_1%K == (10*r + 1)%K so for all num, num%K == (10*(last r) + 1)%K r = num%K ==> r < K so the while at most run K times, then : 1. it find num which num%K == 0 2. there is a ...
[ "rarry2012@gmail.com" ]
rarry2012@gmail.com
9df1c852a8bc6e84f68ce40d11133309ae3de95a
d75cbad7a79e24b49f405c6529633ea65c9b286d
/basic_linear_regression.py
37b7c00364080d4167bba791a2f3655a849f9e08
[]
no_license
aj2622/ML_HW1
bc49e61781f108c66dfd598423915e27c72f7b3a
7497f8d71f6b731fc232058d6a0597af4884a53f
refs/heads/master
2020-04-22T08:49:52.188349
2017-10-31T14:23:02
2017-10-31T14:23:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,108
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt if __name__ == '__main__': test_data = pd.read_csv('data/4_test.csv') train_data = pd.read_csv('data/4_train.csv') train_t = np.array(train_data['t'].values) test_t = np.array(test_data['t'].values) train_x = np.array(train_dat...
[ "ya70201@gmail.com" ]
ya70201@gmail.com
d6f795bb266930944eaa382b7e90386d96c4e448
7025b14bc66f02791d89169257d650c200bd5094
/p2_continuous-control/model.py
81e55542c299a823c580bd9255356ebadd78bbb1
[ "MIT" ]
permissive
pabloppp/deep-reinforcement-learning
8e459b2c87d238953a733b4c2b328f0baed2a7e1
3e55829a803ddd094d52592a67398518e1d3544e
refs/heads/master
2020-06-30T19:11:23.468762
2019-11-16T19:29:10
2019-11-16T19:29:10
200,922,802
0
0
MIT
2019-08-06T20:50:50
2019-08-06T20:50:49
null
UTF-8
Python
false
false
2,576
py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F def hidden_init(layer): fan_in = layer.weight.data.size()[0] lim = 1. / np.sqrt(fan_in) return (-lim, lim) class Actor(nn.Module): """Actor (Policy) Model.""" def __init__(self, state_size, action_size, seed, f...
[ "pablo@pernias.com" ]
pablo@pernias.com
e63eccaad24009ddd38f03505ec41f1f927584f1
0b35a3c38d8eff33b59d287fab526a36e556a2fd
/assignment3/dataloaders_task4.py
37e226f2f40629122cee95057711851099d77e35
[]
no_license
kolbjornkelly/tdt4265-computer-vision-and-deep-learning
71d16845e7e728ea569e10c4b643e5245fb3cb10
c2aa7474855c97426c82a65578882a36a2778256
refs/heads/main
2023-04-14T06:06:19.329921
2021-04-12T14:11:30
2021-04-12T14:11:30
331,883,842
0
1
null
null
null
null
UTF-8
Python
false
false
3,596
py
from torchvision import transforms, datasets from torch.utils.data.sampler import SubsetRandomSampler import torch import typing import numpy as np np.random.seed(0) mean = (0.5, 0.5, 0.5) std = (.25, .25, .25) def load_cifar10(batch_size: int, validation_fraction: float = 0.1, trans_opt: str = '') -> typing.List[to...
[ "kolbjorn.kelly@gmail.com" ]
kolbjorn.kelly@gmail.com