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
4efa4f577a65b005da3b33e71203cf0431e9f05f
caa95ce8dbc1f48cfa0f605226688239359ded33
/examples/continuous/CMCEditted_SmartStart_DDPG_Baselines_experimenter.py
b32e2e6b82358dee0314a43a966d67433e0dbe61
[]
no_license
darren-huang/SmartStartContinuous
6ae9c9240a6a8686295689e553ff5e1cfe0c11c7
07b80e01a5a4590ee2fd88a344cd89be8688ca3d
refs/heads/master
2020-03-26T12:10:47.623766
2018-08-25T23:14:46
2018-08-25T23:14:46
144,879,450
2
0
null
2018-08-25T22:37:59
2018-08-15T16:53:22
Python
UTF-8
Python
false
false
13,083
py
import gym import random from environments.continuous_mountain_car_editted import Continuous_MountainCarEnv_Editted from smartstart.RLAgents.DDPG_Baselines_agent import DDPG_Baselines_agent from smartstart.smartexploration.smartexplorationcontinuous import SmartStartContinuous from smartstart.reinforcementLearningCore...
[ "darren.y.huang@berkeley.edu" ]
darren.y.huang@berkeley.edu
7fabf8240dcacb728f45fa30c16f1d86b565d56c
07cbae096598c6bd3c18626b0525960d6641bff5
/kafka/producer.py
eaa130093bc195a04848b2ce63185c8510d450c6
[]
no_license
wangshoujunnew/tensorflow_learn
337852be27350d45346d982f20ad48430c3836cf
cf4b627a39b2cf9a8d79cedf3825aa3cfef5d1e2
refs/heads/master
2020-04-08T16:09:01.818340
2018-12-24T02:22:18
2018-12-24T02:22:18
159,506,289
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
#encoding=utf-8 from kafka import KafkaClient, KafkaProducer, KafkaConsumer # 给kafka集群发送数据,生产者 cluster_host = '172.31.11.221:9092,172.31.11.222:9092,172.31.11.223:9092' topic = 'test_topic' group_id = 'test-python-test_topic' producter = KafkaProducer(bootstrap_servers=cluster_host) producter.send(topic=topic, value='...
[ "noreply@github.com" ]
wangshoujunnew.noreply@github.com
12889c1e3f168a30b0fa49c05210b3d362812643
eaf976115834853cc1372ac5501978899381a24d
/rich/measure.py
35af5a0b0736c4330aeb0630415cd82ad8492b6e
[ "MIT" ]
permissive
JettChenT/rich
01812de0822ba9d1847198bf564d2a4a121a092a
bd98aafb68273847e01b32a38f11461e59f472e4
refs/heads/master
2022-12-07T18:49:24.610192
2020-08-24T11:31:14
2020-08-24T11:31:14
285,136,370
0
0
MIT
2020-08-24T11:31:15
2020-08-05T00:40:26
null
UTF-8
Python
false
false
3,884
py
from operator import itemgetter from typing import Iterable, NamedTuple, TYPE_CHECKING from . import errors from .protocol import is_renderable if TYPE_CHECKING: from .console import Console, RenderableType class Measurement(NamedTuple): """Stores the minimum and maximum widths (in characters) required to r...
[ "willmcgugan@gmail.com" ]
willmcgugan@gmail.com
a1cf71010db2976eef6025ea85ec14e2a6a9ce8b
b721a2744096c5cc44d22eb303e0fc288c8c3679
/account/urls.py
0dc7c8d992b8d387fc203ea80c1fbfd0d8617ae2
[]
no_license
Rasel120/Python-blog-project
91cacdb12834bbcfea2b9b3a64153952d94d5d04
20e1561d06eb9ab6144bb50101b061acf9680914
refs/heads/main
2023-06-05T08:22:25.509881
2021-06-17T09:21:04
2021-06-17T09:21:04
375,974,709
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
from django.urls import path from .import views urlpatterns = [ path('', views.authlogin, name='login'), path('logout/', views.authlogout, name='logsout'), path('register/', views.authregister, name='registration'), path('forgot/', views.authforgot, name='forgotpass'), path('profile/', views.auth...
[ "raselhossain120@gmail.com" ]
raselhossain120@gmail.com
beeeb4805e5fc65df1730bbc7329a1679c1c8d3f
b78798473c39a4348a4bd4dfb94a00427f03e57a
/portfolio/urls.py
223830f008a714f02a7e7d75e30ecd4089c0299f
[]
no_license
Limenation/portfolio
bd466cca2fa313b08fe4965ae36e5caf417664e0
a42cd4a09b1d5b7650826afae11d590e5f5f87bd
refs/heads/master
2020-07-03T07:25:01.635322
2019-08-13T07:01:50
2019-08-13T07:01:50
201,836,870
0
0
null
null
null
null
UTF-8
Python
false
false
1,031
py
"""portfolio URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/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-bas...
[ "1448918377@qq.com" ]
1448918377@qq.com
03fa372373be0909afbda2455c14a4b31e28297a
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/densitymapbox/_text.py
d6acb8ce9d54edebc2f8c5d7d89393b3ac169a33
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
444
py
import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="text", parent_name="densitymapbox", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, a...
[ "noreply@github.com" ]
hugovk.noreply@github.com
4163953d53f7282f91a3283b78bcd99bd93f92e4
d1df2f274304101ea8ebcf083f54433b70b8756d
/ch1/types.py
e85000f0736c8d84920e877578ca920372867bdd
[]
no_license
baykier/deep-leaning-from-scratch
76f737335f96b0a045320f9e52a0b46f2ac3a1f8
e315ee29c0a74e8f40c11f372fafb59debfce044
refs/heads/master
2020-05-19T16:29:36.872167
2019-05-10T08:18:41
2019-05-10T08:18:41
185,110,317
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
# coding: utf-8 # int num = 10 print(type(num)) # float float_num = 10.3 print(type(float_num)) # str str_var = ' this is a str' str_var2 = "this is anothor str" print(type(str_var), type(str_var2)) # bool true_var = True print(type(true_var)) # list list_var = [1, 23, '444'] print(type(list_var)) # li...
[ "1035666345@qq.com" ]
1035666345@qq.com
4589e114dd1b638453c2633b3541962c9d1cc69b
b1977f6e68564dd02a41631d51653db90b174185
/Gupta.py
d6d0086ad074d1e537ee9f1584a5309379b35425
[]
no_license
eliwchen/ISZPVRPTW
c9593c9219f02af5d4463c28ada93bfe044ee473
33335d2750239f1297a8f8672e4aafcf5f2e568a
refs/heads/master
2021-07-15T03:31:14.919998
2021-06-17T13:23:20
2021-06-17T13:23:20
249,741,672
2
1
null
null
null
null
UTF-8
Python
false
false
1,401
py
# -*- coding:utf-8 -*- import numpy as np import time from tool import makespan_value class Gupta: def cals(self, data): s = np.zeros([2, data.shape[1]]) s[0] = data[0] for j in range(data.shape[1]): temp = [] c = 1 if data[-1, j] > data[1, ...
[ "noreply@github.com" ]
eliwchen.noreply@github.com
1d094e0d228f9630176cdaa4cf7b1db608649010
60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24
/IronPythonStubs/release/stubs.min/System/Diagnostics/__init___parts/CorrelationManager.py
e850a4823b372a076124dfa139e458c43873f4ed
[ "MIT" ]
permissive
shnlmn/Rhino-Grasshopper-Scripts
a9411098c5d1bbc55feb782def565d535b27b709
0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823
refs/heads/master
2020-04-10T18:59:43.518140
2020-04-08T02:49:07
2020-04-08T02:49:07
161,219,695
11
2
null
null
null
null
UTF-8
Python
false
false
1,080
py
class CorrelationManager(object): """ Correlates traces that are part of a logical transaction. """ def StartLogicalOperation(self,operationId=None): """ StartLogicalOperation(self: CorrelationManager) Starts a logical operation on a thread. StartLogicalOperation(self: CorrelationManager,operationId: objec...
[ "magnetscoil@gmail.com" ]
magnetscoil@gmail.com
e5a727919954194e5eb42a5a0667882dba607a25
d01823353eb061355068bac9964bb9747495dee5
/liblearn/loss/lossbase_.py
8129ee80387cf6c0d59810be1ab64eb45d058764
[]
no_license
fulQuan/ift6266h15
57eb97e6054cb5bc1936382defdf11c5955cd19e
3e2780963f061484c938090419001149fff04182
refs/heads/master
2021-01-18T18:20:18.411096
2015-04-17T19:32:10
2015-04-17T19:32:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
# -*- coding: utf-8 -*- """ Created on Tue Feb 24 15:01:11 2015 @author: francis """ class lossbase(object): pass
[ "francisquintallauzon@gmail.com" ]
francisquintallauzon@gmail.com
a5ba66337b1d2cdf5e0bedf267c86604f72d7545
471477500808e6d7195b33852113e454bbad0e48
/Wiki/GoogleRedirect.py
23e8dadd04a265fdd532075e94639e7b435cb0c3
[ "MIT" ]
permissive
RogerNi/2019_AAU_Web-NLP_Utils-Ex
0bd35b1a5febf24b62b04819b05a10cb8e194dcb
0b727647e09b5cded97b0625b535fa7a35fe807c
refs/heads/master
2020-06-03T00:25:19.958238
2019-06-11T15:04:07
2019-06-11T15:04:07
191,360,193
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
''' @Author: NI Roger @LastEditors: NI Roger @LastEditTime: 2019-06-11 12:42:30 @Description: Using Google searching result to redirect Wikipedia page ''' from requests_html import HTMLSession session = HTMLSession() def getWikiKeyWordFromGoogle(entry): '''Return Wiki Keyword from Google Searching re...
[ "noreply@github.com" ]
RogerNi.noreply@github.com
a4c25541c52d27a7bce05e9b2d6e2660b94be563
c1cadf7816acbe2c629dfdf5bfe8f35fa14bfd57
/engish/readanno/Utils/Utils.py
3b883c76d63bb3a1a20536146fea5532e30b561e
[]
no_license
luochengleo/timeperception
39c5eb0b0cedf16a02867e6a67e2befc4a118c71
6c27ceb51e219d9f18898918d4f3158c94836ff4
refs/heads/master
2021-01-21T04:46:45.315679
2016-07-21T14:34:04
2016-07-21T14:34:04
43,635,809
0
1
null
null
null
null
UTF-8
Python
false
false
1,491
py
__author__ = 'luocheng' def str2numseq(s,splitter): return [int(item) for item in s.strip().split(splitter)] def numseq2str(numseq,splitter): return [splitter.join([str(item) for item in numseq])] from django.db import transaction, models import re from readanno.models import * patterns = {key: re.compil...
[ "luochengleo@gmail.com" ]
luochengleo@gmail.com
9b46ba4719d7f278f861f5db639e3faead3a4cb5
de5be7e4d9e20bbfda3ce8697afc3433a3ccf55d
/python_tutorial/excercise_3/looping_in_list.py
55baa5d9ed37a214eb2ca2ffb7502363bf5236cd
[]
no_license
poojataksande9211/python_data
42a88e0a0395f383d4375000a3d01b894bd38e62
64c952d622abfa77f2fdfd737c210014fce153c5
refs/heads/main
2023-04-16T10:24:27.213764
2021-04-27T16:34:32
2021-04-27T16:34:32
360,673,774
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
#looping in list fruits=["anar","banana","apple","kiwi","orange","papaya","pinaple"] # for i in fruits: # print(i) #.................................................. i=0 while i<len(fruits): print(fruits[i]) i=i+1
[ "amitganvir6@gmail.com" ]
amitganvir6@gmail.com
2814486884b96d9ebaf788e56bff7cd00778b883
0f38731054bb79200959725f8ee0ba74291c6e47
/profile_url_scraper.py
f0b8f104a545aa1066849429be52d659dac9a1c0
[]
no_license
Project-Based-Learning-IT/linkedin-scraper
f34e378466fa6f29ed8d363fcf714ecd09f78cde
67ded49501c9c0aa58cf79b9fd7d5a46d5f0190a
refs/heads/main
2023-07-18T18:17:09.105435
2021-09-15T17:26:24
2021-09-15T17:26:24
405,339,543
1
1
null
null
null
null
UTF-8
Python
false
false
1,056
py
from selenium import webdriver from parsel import Selector import csv urlArray = [] chromedriver = '/home/sid/Downloads/chromedriver_linux64/chromedriver' _DRIVER_CHROME = webdriver.Chrome(chromedriver) _DRIVER_CHROME.get('https://www.linkedin.com/uas/login') elementID = _DRIVER_CHROME.find_element_by_id('username'...
[ "realsiddheshko@gmail.com" ]
realsiddheshko@gmail.com
779eada9da3ae4912ac01d4f8d5d8b1879026927
9ef2a6ead84931997ae925140f010d0ec4f81f3b
/mysite/mysite/settings.py
08fb602c0eae4cb43f996fa67d460a3831a99bc7
[ "MIT" ]
permissive
dalonlobo/Django11Polls
fbfed91b601c5ce33a150ae4b5f6103273c737ca
89e93dcec61274a46bbec10a872234512b113158
refs/heads/master
2021-01-02T09:18:59.251668
2017-09-05T14:58:06
2017-09-05T14:58:06
99,192,235
0
0
null
null
null
null
UTF-8
Python
false
false
3,161
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
[ "dalonlobo@gmail.com" ]
dalonlobo@gmail.com
c88e25a8187fa6eeb3b35e16b4b5ad0563ff166a
b6f4e527154b82f4e3fa48f06ca53fc15bf08283
/Day06/function6.py
9ad8987713d947369211aa8882890d4323c7d7f1
[]
no_license
Light-City/Python-100-Days
74118e36c658db6c897f847e7e554311af036b9d
1fe049a1fe1e64082752d2d32cb75c1a4349cded
refs/heads/master
2020-03-18T12:44:53.191512
2018-05-24T09:49:22
2018-05-24T09:49:22
134,741,794
3
1
null
2018-05-24T16:29:02
2018-05-24T16:29:02
null
UTF-8
Python
false
false
346
py
""" 作用域问题 Version: 0.1 Author: 骆昊 Date: 2018-03-05 """ # 局部作用域 def foo1(): a = 5 foo1() # print(a) # NameError # 全局作用域 b = 10 def foo2(): print(b) foo2() def foo3(): b = 100 # 局部变量 print(b) foo3() print(b) def foo4(): global b b = 200 # 全局变量 print(b) foo4() print(b)
[ "jackfrued@126.com" ]
jackfrued@126.com
f2219cf699a60372c8109d14de0b1a2190cfe346
b7b8a8e1d41159a636a0e243056941bdf57856b5
/fianl exam/main.py
82352cb2a0b905f0b9013c1b6c8ac399cf277ef8
[]
no_license
fjucs/107-VideoProcessing
0afc97a958e12f38637d0f2cc7cc9a4f9586ca65
364904da89009ea0107e64a1611f67cfe4eddaa3
refs/heads/master
2020-09-06T00:01:55.233541
2019-11-07T14:13:46
2019-11-07T14:13:46
220,251,680
0
0
null
null
null
null
UTF-8
Python
false
false
2,149
py
import cv2 import numpy as np import pygame from color_manip import * from bar import * from utils import * cap = cv2.VideoCapture(0) pygame.init() pygame.display.set_caption(u"clown") screen = pygame.display.set_mode((800, 600)) clock = pygame.time.Clock() class Clown: def __init__(self, x, y, img): s...
[ "a82611141@gmail.com" ]
a82611141@gmail.com
820ba9667ca39c6dfe6a225fce1cd4ebbbf82bbb
41935d3be8b0f8722133d5b21470feddcb9793b5
/PythonWS-S14/begin.py
17b0de8b09ddcc3e357ba4437a53f6d1187fcde5
[]
no_license
ga98442w/mypydevrepoongit
118c797f8193ca51e14a3f258ea70568f6480ef4
cf238295750ed27ff4f46f0c27e18951d48b6987
refs/heads/master
2021-01-04T22:32:35.366768
2015-02-06T21:10:55
2015-02-06T21:10:55
30,433,462
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
__author__ = 'GilbertAlipui' # Prompt the user to enter a radius radius = eval(input("Enter a value for radius: ")) #Compute area area = radius * radius * 3.14159 #Display results print("The area for the circle of radius ", radius, "is ", area)
[ "98ab50f1@opayq.com" ]
98ab50f1@opayq.com
6b1f08084a9b1cbda2335c4a9356745284920465
7442a9088d41bbb900e767b7eb6d85ac6a300df0
/Controlador/app.py
550cdfd9e1a81f2e369ff26bb61138c0e6a5dde2
[]
no_license
AdrianGOT/InstantSecurity
aa3bc544b2b9680469cef188bec556e47dc37e26
00e4ddc56e66fe6d2cef525ecd2639cb81f4a87a
refs/heads/main
2023-01-22T10:03:51.731279
2020-12-02T15:49:42
2020-12-02T15:49:42
317,891,786
0
0
null
null
null
null
UTF-8
Python
false
false
6,488
py
from flask import Flask, render_template, redirect from flask import jsonify, request, url_for from flask import session import requests import random import json app = Flask(__name__) url_cliente = 'http://127.0.0.1:5001/clientes/' url_producto = 'http://127.0.0.1:5002/producto/' url_factura = 'http:...
[ "noreply@github.com" ]
AdrianGOT.noreply@github.com
3dd66015f4809417e4adb64f640b1c8d56acb3e0
b5522ba428e1faa2e6661ac2a7051e76673e71b2
/P0/Task3.py
c11e00a8198d703d7c4401532277e195767b5bcc
[]
no_license
jeyansaran620/DSA_Udacity
6fdf535425e32dd5792ba7c1d90be899acebde23
cd59411b5de62c5764a7d82d2673524e30d783c9
refs/heads/master
2022-07-13T22:26:44.579387
2020-05-13T15:19:31
2020-05-13T15:19:31
263,665,703
0
0
null
null
null
null
UTF-8
Python
false
false
2,568
py
""" Read file into texts and calls. It's ok if you don't understand how to read files. """ import csv codes=set() total_calls=0 bang_calls=0 with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) for call in calls: call1=call[0].split(")") if call1[0][0]=='(': ...
[ "noreply@github.com" ]
jeyansaran620.noreply@github.com
087879df2af5993db7367abe2d8b8e60ad037c0b
bb7d0ec68afabd53f81b9e6f8823bc65566778d9
/stdplugins/squ.py
5549e5c1211cd2ce35d92f22a86d5a72ef36a7da
[ "Apache-2.0" ]
permissive
IshwaranRudhara/PepeBot
b992cd7233ff5ef42c9ef124c1fa8c0c42147369
5c0bd4c19e076bee73cf62a4dc804681045754d3
refs/heads/master
2021-05-20T08:37:05.954697
2020-06-19T10:23:30
2020-06-19T10:23:30
252,200,694
2
3
Apache-2.0
2020-04-30T08:36:54
2020-04-01T14:36:26
Python
UTF-8
Python
false
false
3,367
py
# BY @STARKTM1 from telethon import events import asyncio @borg.on(events.NewMessage(pattern=r"\.squ", outgoing=True)) async def _(event): if event.fwd_from: return await event.edit("╔═══════════════════╗ \n \n╚═══════════════════╝") await asyncio.sleep(1) await event.edit("╔═══════════════...
[ "55076817+prono69@users.noreply.github.com" ]
55076817+prono69@users.noreply.github.com
9e18921acde56458b273c44ee0e1f1783c047e29
04eb04b945713d067d5f1bf5643e0e25ffbe876a
/target/dist/cs3280_project5-1.0.dev0/setup.py
984726c899b521091737fb4a8a6c500f9de1fce9
[]
no_license
twhaley1/cs3280_project5
a9748415d40d81b8def01048569c16bf23bc4022
b521cd0312ce24e6e3aaa67c2e1031a5a9c22c49
refs/heads/master
2020-09-15T13:20:04.863652
2019-11-23T00:10:36
2019-11-23T00:10:36
223,457,062
0
0
null
null
null
null
UTF-8
Python
false
false
1,415
py
#!/usr/bin/env python from setuptools import setup from setuptools.command.install import install as _install class install(_install): def pre_install_script(self): pass def post_install_script(self): pass def run(self): self.pre_install_script() _install.run(self) ...
[ "twhaley1@my.westga.edu" ]
twhaley1@my.westga.edu
946b2f7c4dda23e138459b3f7d75952d0601e0a9
085a41aa8cf80c3c64783b15459fb37f5d067aac
/cups.py
a59a14d4509cbdb9c57a99fcfa22ab01c47c892d
[]
no_license
CamilleSalvinien/OpenKattis
25155e352d689387fe63f2352181805e0d07309b
d8c4b0898022d664039fc8135141ffc40c5fe95b
refs/heads/main
2023-04-30T16:00:33.571115
2021-05-09T18:20:33
2021-05-09T18:20:33
327,402,396
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
n = int(input()) cups = {} for i in range (n): a, b = input().split() if a.isnumeric(): number = int(int(a)/2) color = b else: number = int(b) color = a cups[color]=number for w in sorted(cups, key=cups.get, reverse=False): print(w)
[ "noreply@github.com" ]
CamilleSalvinien.noreply@github.com
25f57380ce9bc585649b6037352bcbc1e84ee69a
65f78f7d50b2cbce8be821db26cd3b49e7861f08
/backend/location/vector.py
f11fff67a074483f9c7e7adef13070eb1997d58a
[]
no_license
adamallaf/FriendLocation
c3f194de632d4695d5981e6cee3893856af47a09
4095e66fe62af13bba588f04d79627cd10f9efc0
refs/heads/master
2021-03-12T19:09:39.110438
2017-08-11T11:33:43
2017-08-11T11:33:43
91,455,444
1
0
null
2017-05-16T12:24:15
2017-05-16T12:24:15
null
UTF-8
Python
false
false
1,326
py
class Vector: # a vector consists of two points def __init__(self, point1, point2): self.p1 = point1 self.p2 = point2 # checks if two numbers have different signs @staticmethod def _diff_sign(a,b): return ((a > 0) and (b < 0) or ((a <0) and (b >0))) # equation in gener...
[ "adam.allaf@gigaset.com" ]
adam.allaf@gigaset.com
5fbae611d9c4fdb92550ad1b70f2539ba8a9cfda
9fbe2b3a0c992f4348c480b0c06a131cb42847f3
/深度学习与TensorFlow入门实战-源码和PPT/lesson13-前向传播(张量)-实战/forward.py
3e0b0d6a62c22bff758b2b6690162c11903ba91e
[]
no_license
SunYanCN/TensorFlow
60efc11c69a40986a56c5847ea9e1572f947157a
5b8800d6ff1aca4a0f05c251a0f81bb2b8755b57
refs/heads/master
2020-06-02T00:11:45.159401
2019-06-05T15:51:41
2019-06-05T15:51:41
190,974,442
2
2
null
2019-06-09T06:58:09
2019-06-09T06:58:09
null
UTF-8
Python
false
false
2,457
py
import os import tensorflow as tf from tensorflow.python.keras import datasets os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # x: [60k, 28, 28], # y: [60k] (x, y), _ = datasets.mnist.load_data() # x: [0~255] => [0~1.] x = tf.convert_to_tensor(x, dtype=tf.float32) / 255. y = tf.convert_to_tensor(y, dtype=tf.int32) print(...
[ "li1191863273@hotmail.com" ]
li1191863273@hotmail.com
fdcbb54e8a2910def38de933332d9505ff1eb7d0
8e47f970e089e33f75e4cbaad087c68daf1bf955
/example2/9.ciclos.py
7434f59aa9d347b63daef4336b5396b1906472d5
[]
no_license
jjmirandaa86/learn_Python
a53800278954246b5490a2c9980ef3ce33b5009d
5ab6557373c3b367c5abdc80eb2b6ad62bb1bdd8
refs/heads/master
2023-04-07T20:32:00.139129
2021-04-03T12:23:27
2021-04-03T12:23:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
#While variable = 0 while variable < 10: variable += 1 print(variable) if variable == 5: print("llego al 5") continue if variable == 8: print("llego al 8 y terminara") break else: print("termino")
[ "jefferson_miranda@hotmail.es" ]
jefferson_miranda@hotmail.es
baaba701cc5aefbc2ff2786e1a8ca4520c39bbca
d83339f639c678f2ccc601d4b6a4b738cf7c55bc
/regex/regular_expression.py
aa4e79b41932c16e81fd2a8fe7e25179e6e8c1d3
[]
no_license
evgeniikotliarov/python_example
fd734ec3252cef4ae51a43f73d5432336c35391a
65cd59eebfc78ee4cd5a3eb64c99137502a582d0
refs/heads/master
2021-01-19T14:40:45.601630
2017-06-20T06:23:38
2017-06-20T06:23:38
88,182,904
1
0
null
null
null
null
UTF-8
Python
false
false
2,165
py
import re # # input_filename = "../regex/text.txt" # result_file = "../regex/results.txt" # # inputfile = open(input_filename, mode='r', encoding='UTF8') # resultfile = open(result_file, mode='w', encoding='UTF8') # mytext = inputfile.read() # inputfile.close() lookfor = {'\d':"[0-5]"} for k, v in lookfor.items(): ...
[ "kotlyarov.ev@gmail.com" ]
kotlyarov.ev@gmail.com
e8d8ce3147bbcc2b2b76f268cde4eeba8e7dce9e
a6d9feb6c532471ec6968b19c6147c7c7143cdca
/Sentiment Analysis/NLTK_Intro.py
d1d58c9cc82175e4971fa221639f037ca24d7204
[]
no_license
brandontip/algoTradeUdemy
983bd976b5c8687c54469fc929ecf8da3c61f7f0
7dfc8283a0b64ca0cf469b9ecce685b8282d2179
refs/heads/master
2022-12-22T19:28:29.799099
2020-09-28T05:54:51
2020-09-28T05:54:51
277,447,531
1
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
# -*- coding: utf-8 -*- """ Created on Fri Jul 17 16:41:34 2020 @author: Bran """ import nltk # run this to download necessary files #nltk.download() #nltk.download('punkt') from nltk.tokenize import word_tokenize #from nltk.stem import WordNetLemmatizer from nltk.stem import PorterStemmer text = "If you set your ...
[ "54258128+brandontip@users.noreply.github.com" ]
54258128+brandontip@users.noreply.github.com
d8f070143e2464ad9f56813856e939e75527d0b5
6fca61fe5c317cefdd95aa5fa507177d4a9c1160
/dictionarynumbers.py
740c3a9b2f8139152b8008159b01a38c271c88c3
[]
no_license
Shadyaobuya/100daysofCodepython
4ed5df1cf3fbfbc6b754665d5028f6719c548278
8f4beaad5a541feced11b905f05e8f354a6a5579
refs/heads/master
2023-04-15T08:13:42.425950
2021-04-27T05:02:04
2021-04-27T05:02:04
350,864,077
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
numbers=input("Enter any number from 0-10 to see how it's read in Swahili: ") conversion={ "1":"Moja", "2":"Mbili", "3":"Tatu", "4":"Nne", "5":"Tano", "6":"Sita", "7":"Saba", "8":"Name", "9":"Tisa", "10":"Kumi", "0":"Sufuri" } for number in numbers: print(conversion.get(n...
[ "shadyaobuyagard@gmail.com" ]
shadyaobuyagard@gmail.com
1024d2e59aa23e5ba8c257b5bebb70e45f4ca0b6
16609d71ee627729af9d14ca73e606fcaed7d165
/invenio_previewer/api.py
5fa0b6e1640307175a1935491c382843cd1faf72
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
inveniosoftware/invenio-previewer
39214993c82c176b44b9ef712c5dfe9bfdb9e8b8
d8582637e34cccd44054be1f28aaeb236d7d9c80
refs/heads/master
2023-08-24T19:32:43.096635
2023-08-17T14:53:19
2023-08-17T15:33:54
40,646,712
5
60
MIT
2023-09-13T15:32:40
2015-08-13T08:09:01
JavaScript
UTF-8
Python
false
false
1,754
py
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2019 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """File reader utility.""" from __future__ import absolute_import, print_function f...
[ "lars.holm.nielsen@cern.ch" ]
lars.holm.nielsen@cern.ch
37f06f5f1ab8d42558fc8283d5595e8c109a3a78
62a4afb5ccc6c391ebe36032a83ec6fb8b3b48ac
/greatest num.py
1fd8ee7b39c5c9e2f3c2713daee0445a07493672
[]
no_license
Pavila98/python
d42ef282a7b37aee1a592969ade12b8c4bdcc93d
06c8fe373cf4269849e5f93d76cdcf5fdd54c5fc
refs/heads/master
2020-03-10T00:42:15.302513
2018-05-01T04:39:41
2018-05-01T04:39:41
129,088,468
0
1
null
null
null
null
UTF-8
Python
false
false
241
py
num1=input("enter a number") num2=input("enter a number") num3=input("enter a number") if (num1>num2 and num1>num3): print("num1 is greater") elif(num2>num1 and num2>num3): print("num2 is greater") else: print("num3 is greater")
[ "noreply@github.com" ]
Pavila98.noreply@github.com
2c3c6083c292e6a8e74d423af6ccf461c5805058
1cd9fb9466b0225575575091545cd9188fec539c
/tensorflow_probability/python/distributions/probit_bernoulli_test.py
fc7cbe257d528bbae156d92d904c2f9c046a71e1
[ "Apache-2.0" ]
permissive
ibozkurt79/probability
16f4fa9b773486a5f21617be3a4163079ac3aa61
2522dec61de0584a9d51850ccc2b7a13857b562c
refs/heads/master
2020-08-31T12:45:34.262934
2019-10-30T23:43:15
2019-10-30T23:44:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,055
py
# Copyright 2018 The TensorFlow Probability 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 applicable law o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
9fcf128a1978a85ebd97a6e38aa48846a658c2f6
215fc7c88d816e93199167823a97530e777f9466
/core/migrations/0003_url_redirect_count.py
224d7d7bbe8f7e4d46ffd2c5ed3eabea2654ce65
[]
no_license
lliricheskiuu/orm_auth_urlShortener
957d39e395097626701e3b604931cffb53d0acf0
8cbe711af4c215e8cd9b34bd0a2fceaf07f81d28
refs/heads/master
2023-07-10T01:27:40.051582
2021-08-15T11:19:47
2021-08-15T11:19:47
394,743,094
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
# Generated by Django 3.2.3 on 2021-08-15 10:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0002_alter_url_key'), ] operations = [ migrations.AddField( model_name='url', name='redirect_count', ...
[ "kzarrr4@gmail.com" ]
kzarrr4@gmail.com
9705c634ccb676f51e5e6f5c9b8aa64820268883
abfdac5a34895cb747995e21542556a96fb55bd1
/tree.py
7c14531fda378468753c7155b4b2fb451fab5d81
[]
no_license
KatherineCG/Algorithm
74db0ba7eef0c1fb38eaea13722e126d1bd93ec7
697f5524d18eabe7566a81c6f35e3320469a55f2
refs/heads/master
2020-03-26T19:57:27.000672
2018-08-19T11:08:13
2018-08-19T11:08:13
145,295,654
0
0
null
null
null
null
UTF-8
Python
false
false
3,820
py
import Queue class TreeNode: def __init__(self, data): self.val = data self.left = None self.right = None class BinaryTree: def PreOrder(self, tree, res): if not tree: return [] res.append(tree.val) self.PreOrder(tree.left, res) sel...
[ "noreply@github.com" ]
KatherineCG.noreply@github.com
f22aa844e4a1abb8405742a55991017dd9c5e6e3
8f54f227e28d7c0c1a11af0c9d0ec09cf679dc3c
/김노은/[List] 1244.py
6b903c08cc5788a47ef5b9dbad60a45ff05807e5
[]
no_license
bellaria19/2020-Spring-Jookgorithm
0325e58f1cf6b46a0a1b441ce75d37424924b6f8
5044acfd78b86728769f94a03806ef94ceb1a920
refs/heads/master
2022-12-04T09:51:58.815174
2020-08-25T11:45:55
2020-08-25T11:45:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
930
py
import sys switch_num = int(input()) switch_status = [0] + list(map(int, sys.stdin.readline().split())) student_numum = int(input()) student_info = [list(map(int, sys.stdin.readline().split())) for i in range(student_numum)] for info in student_info: if info[0] == 1: for i in range(1, switch_num//info[1]...
[ "noelleland@naver.com" ]
noelleland@naver.com
9ce91c8561fffd158ba88da040dd06fd990376b3
8c0640716b86f759478b0b83e3973707d763b887
/lib/scan.py
1b58a1762041653d4e2fc7f72783d6ec309a4f22
[]
no_license
Kevin-sa/SSRF_ex
6583f84788a93763189b8f91e55ac2064018fb39
7bae64aeba95dd4a5d1aec5ece7209a4c80af0bd
refs/heads/master
2020-03-15T16:53:33.926289
2018-07-04T16:12:43
2018-07-04T16:12:43
132,245,489
7
1
null
null
null
null
UTF-8
Python
false
false
5,551
py
#encoding : utf-8 from lib.common import get_requests import time,requests, hashlib, threading,queue from lib.config import logging, out_put #scan open ports #22 port ssh-sevice, 80 port http-server, 445 port smtp-server, 3306 port-server, 6379 port redis-server, 7001 port weblogic-console, 8080 port tomcat\jobss-ser...
[ "kevinsa@gmail.com" ]
kevinsa@gmail.com
80e43533a78587cad0cea97fc52d873dd7b725b2
d51b719092f3baee00771785fda848f6a4f31c53
/cyber/api/views/DebateViewSet.py
dc8bb2647a0ff2c13316223a7d0ac9d77b998a27
[]
no_license
Ang98/cyberdemo
0bca22924e969c18925edfe97926357b09f06ad8
81041d9e263a87ae7c3dfdb6a0a7418021b7e86a
refs/heads/master
2023-07-31T07:30:25.558851
2020-05-05T03:54:04
2020-05-05T03:54:04
237,125,073
0
0
null
2021-09-22T18:48:09
2020-01-30T02:33:20
Python
UTF-8
Python
false
false
572
py
from django.shortcuts import render # CYBER from rest_framework import viewsets from rest_framework.permissions import IsAuthenticated from ..serializer.DebateSerializer import * from ..models.Debate import * class DebateViewSet(viewsets.ModelViewSet): serializer_class = DebateSerializer permission_cl...
[ "angelcayatopa98@gmail.com" ]
angelcayatopa98@gmail.com
bb7b405aa848fd021f45afb15843edddd21c69dd
c4cc9a7406ebf2e46535cd29080f302cf2f6c01d
/scanner.py
ff0b2f00a377539720a6b863681ce00eddce60c7
[ "MIT" ]
permissive
OscarEReyes/Modding-Tool
64660aa0348072ae97b01bab3828b65cd9e72645
2edcb6d3423f22b8720d5cb135043d72af31c44f
refs/heads/master
2021-01-17T14:17:11.181533
2016-12-20T00:45:34
2016-12-20T00:45:34
51,173,694
0
1
null
null
null
null
UTF-8
Python
false
false
3,291
py
from softwareModClasses import Feature from Categories import Categories line_tags = [ 'Name', 'Description', 'Unlock', 'NameGenerator', 'Popularity', 'TimeScale', 'Retention', 'Iterative' ] def scan(tree, c_combo_box, f_combo_box): """ * Parameter: tree (etree ...
[ "noreply@github.com" ]
OscarEReyes.noreply@github.com
9c2ffe8c7c3cb51ce4ce7379e0b0eda58bc2928a
fae9e054b1232b72ccc2a36d9f13184ed54fe06a
/PayController/wechatAppletOrderPay.py
58835f8c4883f7dfb16fa3b37e849b758d51978a
[]
no_license
Ronald122013/API_test
66f719f0c75c93b69dfe5f3ae7951838e93fd120
898b5afdcda7fb211bb58e922e82a6c20bb43299
refs/heads/master
2022-11-25T06:23:47.185645
2020-07-30T05:38:41
2020-07-30T05:38:41
283,679,438
1
0
null
null
null
null
UTF-8
Python
false
false
1,946
py
#小程序调用支付 #!usr/bin/env python # -*- coding:utf-8 -*- import logging logging.basicConfig(level=logging.DEBUG,format=' %(asctime)s - %(levelname)s- %(message)s') # logging. disable(logging.CRITICAL) # 禁用日志 logging.debug('>>>>>>Start of program<<<<<<') import unittest import json import requests from assertpy import ...
[ "18529533960@163.com" ]
18529533960@163.com
5902145d39bd706e85af337bfb580ade6d6c4b63
990c11e2caed3b3f797bcc40e1e5f2ebf1da6d99
/9_Iterator_mode/coroutine_prac.py
d4eb481d8f52fcf1ebb50971bc7e99a92b71d71d
[]
no_license
KindleHsieh/OOP_book_practice
72c1cc0c8558ac6f3bf149b39a15ee0a7c13dd1f
a3c6db3f403be6943469c3eed40d868009ff5f96
refs/heads/main
2023-09-04T00:36:31.644596
2021-11-01T23:17:12
2021-11-01T23:17:12
407,589,515
0
0
null
null
null
null
UTF-8
Python
false
false
1,864
py
# -*- coding: utf-8 -*- # author: Kindle Hsieh time: 2021/10/21 def tally(): score = 0 while True: increase = yield score score += increase # Create teams. white_sox = tally() blue_jay = tally() # initial game. next(white_sox) next(blue_jay) # Add score. white_sox.send(1) blue_jay.send(3) ...
[ "mom1puppy@gmail.com" ]
mom1puppy@gmail.com
67f96bfcb80546fa39f2adb18c8ce52b22aee45a
7673aefcb43950a281085501dccc2a25e6fbda3a
/websocket_example.py
8cce9c67a4ab9686936214b27e0d085e2cc39758
[]
no_license
xikouxi/okex-hc
31a6d63a974bdac81b63f77946cf100a1b0dedeb
e435652ffa97ae607eaf60f1b5d74371d2d69872
refs/heads/master
2023-04-16T13:16:50.583924
2021-04-25T10:23:19
2021-04-25T10:23:19
361,396,425
0
0
null
null
null
null
UTF-8
Python
false
false
18,261
py
import asyncio import websockets import json import requests import dateutil.parser as dp import hmac import base64 import zlib import datetime def get_timestamp(): now = datetime.datetime.now() t = now.isoformat("T", "milliseconds") return t + "Z" def get_server_time(): url = "https://www.okex.win/...
[ "wanghaohao@hkincus.com" ]
wanghaohao@hkincus.com
be3437aa9fa367b840821d66be4aed2a3752a683
c77704211d7c0534d760e0245f3b27c1a6b34153
/Scripts/taxaID.py
98fb28cd500b21cb7a3b5bf2dc0488ae5b440ace
[ "Apache-2.0" ]
permissive
Junyu25/PCAS
400ca22828d64a50e8705c363b6aba41214c9842
436c6405563a1cd486ab06d3a13a29dc07235dd3
refs/heads/master
2020-12-23T11:29:04.601293
2020-09-25T11:03:08
2020-09-25T11:03:08
237,137,039
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
# -*- coding: utf-8 -*- """ Created on Thu Sep 19 15:23:47 2019 #Extract the ID and taxa information from the original full align fasta file. #Usage: #python taxaID.py file.fasta #Input file: full align fasta file e.g. SILVA_132_LSURef_tax_silva_trunc.fasta #Output file: file.fasta.csv which contains the ID and tax...
[ "chenjunyu2016@email.szu.edu.cn" ]
chenjunyu2016@email.szu.edu.cn
71479ef289bc7903e1075aa7f29f77eaf6cb43c8
0a691220c5e2c2a9b99d20b2ac62baa1a1f95ca3
/djangoimposter/users/migrations/0002_auto_20201207_2230.py
14cd67ebb2b2aee631a51bbacc92ec18d56df661
[]
no_license
beasyx0/djangoimposter
a1fc945e09148a8cf2ae41d3f96f4c4565a5b94d
b7e06dfe972306179d42b6595e64a461979d32b1
refs/heads/main
2023-02-27T10:49:48.087627
2021-02-08T18:54:27
2021-02-08T18:54:27
334,469,294
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
# Generated by Django 3.0.11 on 2020-12-08 03:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='name', field=...
[ "b_easyx@protonmail.com" ]
b_easyx@protonmail.com
68135f8b97c4ebc7b5ebc08b53c005435de072a0
ff68cb9fac6f942c571013cedd3cbc45bf79e081
/Mooc-Exercise/HannoTower.py
ba672729dd87018726edd3e4b5e0357f413bf80c
[]
no_license
MiniFullC/PythonCode
1459f7251326938c4c51f322980e375cb9aed4d5
e17d8fb399748adee0cc786d87142a6f33feaa74
refs/heads/master
2020-03-21T15:44:29.208565
2018-07-23T06:32:17
2018-07-23T06:32:17
138,729,885
4
0
null
null
null
null
UTF-8
Python
false
false
319
py
count = 0 def hanoi(n, src, dst, mid): global count if n == 1: print("{}:{}->{}".format(1, src,dst)) count += 1 else: hanoi(n-1, src, mid, dst) print("{}:{}->{}".format(n, src, dst)) count += 1 hanoi(n-1, mid, dst, src) hanoi(3, "A", "C", "B") print(count)
[ "1414273510@qq.com" ]
1414273510@qq.com
d7bef716820e0bde57cdc9f38137cd3b8605c116
93527a65b070e6ede1f482edd707ff86547ff67f
/URIonlinejudge/1036 - Bhaskara's Formula.py
84722cb22aae01097a1dcc991ba054a3414b0096
[ "MIT" ]
permissive
MahmudX/Algorithms
9f32d26aaf3a469bafc9bb192aeb6e30d99643d7
df498929b5d3fc0f0d558b3369c2aa9804c292f1
refs/heads/master
2021-03-13T23:58:52.275060
2020-03-28T22:02:19
2020-03-28T22:02:19
246,722,181
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
import math as math inp = list(map(float, input().split())) A = inp[0] B = inp[1] C = inp[2] D = ((B**2) - 4 * A*C) if A == 0 or D <= 0: print("Impossivel calcular") else: D = math.sqrt(D) E = (2 * A) R1 = (-B + D) / E R2 = (-B - D) / E print("R1 = %.5f" % R1) print("R2 = %.5f"...
[ "noreply@github.com" ]
MahmudX.noreply@github.com
ccfa1b8dd0406647d78867773c7b33c3b179aee3
bc178ffc6636d543002032e8e47590de85b4ddb4
/app/models.py
15f3a0e95b2d3152735c25d32f1e85b9629969ac
[]
no_license
Dave0921/logsBackend
df2593c28fecd48aa6359c7a145b44b507e7a1e4
2117da2ef61978ebca6a50363a5db5aa93237ed9
refs/heads/master
2022-04-19T02:13:52.042892
2020-04-14T05:23:51
2020-04-14T05:23:51
255,504,961
0
0
null
null
null
null
UTF-8
Python
false
false
1,060
py
from . import db ### Models class Action(db.Model): __tablename__ = 'action' id = db.Column(db.Integer, primary_key=True) logType = db.Column(db.String(20), nullable=False) userId = db.Column(db.Integer, db.ForeignKey("user.id"), nullable=False) user = db.relationship("User", backref=db.backref("...
[ "sdave0921@gmail.com" ]
sdave0921@gmail.com
c4d54fb98b26af71e58379df29a737a65da6cdca
1834fe8dd2636d4fab7c162300399229d7c6e7db
/fsplit/tar.py
0c786d5e2ada823411b0d8c1799227e3d36f042d
[ "MIT" ]
permissive
leosartaj/fsplit
780acdfbaf9df657e504bfec5a9f10f2b9e59d54
c2a4c09153c10550f13f8bf0fc3db20c9d7afb0b
refs/heads/master
2022-10-21T07:09:38.436902
2022-08-25T11:02:13
2022-08-25T11:02:13
28,518,946
1
4
MIT
2022-10-15T20:29:21
2014-12-26T19:10:37
Python
UTF-8
Python
false
false
2,118
py
#!/usr/bin/env python2 ## # fsplit # https://github.com/leosartaj/fsplit.git # # Copyright (c) 2014 Sartaj Singh # Licensed under the MIT license. ## """ Tar related functionality """ import tarfile, os import oswrapper as osw import exce def isTar(fName): """ checks whether a file is a tarfile or not "...
[ "singhsartaj94@gmail.com" ]
singhsartaj94@gmail.com
a8f097242b7e1cefbd268bbfd9ecabca3d892e23
ccca5cf1e544cd30eaabe54d3a53b875538f873e
/rob_onboarding/stores/__init__.py
310ab6a6616036e2ec38e0b558514bca34673151
[]
no_license
rh-glob/rob_onboarding
4b4edcbd5acabf9984f5c958fabf1942c21013da
78a7a91f5686288227bf542d757e4a3d8aebcfae
refs/heads/master
2020-08-30T22:16:44.900882
2019-11-05T16:45:18
2019-11-05T16:45:18
218,504,825
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
from rob_onboarding.stores.order_event_store import OrderEventStore # noqa from rob_onboarding.stores.order_store import OrderStore # noqa from rob_onboarding.stores.pizza_store import PizzaStore # noqa from rob_onboarding.stores.topping_store import ToppingStore # noqa
[ "rob.hand@globality.com" ]
rob.hand@globality.com
74d686d79d4895d92e74380c3d87714c7ee5db10
aa773f14572b99c1da25bd02d25308314d401aee
/coincap_ticker_specific.py
b8aa4a054f0be2916d009b2f5d9f8576585bbdde
[]
no_license
mrzacsmith/coinmarketcap
b99094a892c2450d50141a2f3f02a570a83d0cca
59dda6d9dda350c14de3c01e97c76edffa99aa94
refs/heads/master
2020-04-08T20:54:36.009459
2018-11-30T00:27:13
2018-11-30T00:27:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,381
py
import json import requests convert = 'USD' listings_url = 'https://api.coinmarketcap.com/v2/listings/' url_end = '?structure=array&convert=' + convert request = requests.get(listings_url) results = request.json() # print(json.dumps(results, sort_keys=True, indent=4)) data = results['data'] ticker_url_pairs = {} ...
[ "zrs3141592@gmail.com" ]
zrs3141592@gmail.com
e301f382000c5f9365d80c0fbe4735d1bb96b5ea
7ced16cc717dce6f7356499c4e160e56c735e111
/code/src/add_method.py
b7fcf2f45ae437036a5763499979e4d710e255dd
[]
no_license
Sofiaxue/Chinese_electronic_medical_record_NER
6d963098e7ca9e1fcff9862305eedd996fee090e
cdb8a389b15e59e937bd3dc9e086883ee751602a
refs/heads/master
2021-10-08T14:21:00.904835
2018-12-13T06:12:17
2018-12-13T06:12:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,288
py
# coding:utf-8 import sys import os import codecs import imp #datadir = "./data" def ReadFile(file): f = open(file,'r') lines = f.readlines() f.close() return [line.rstrip('\r\n') for line in lines] def ReadFileUTF8(file): f = codecs.open(file,'r', 'utf8') lines = f.readlines() f.cl...
[ "17633700633@163.com" ]
17633700633@163.com
f61a39d8625dcea53b66e2920dc1e1861875ce5f
309d17b81cea038713ba67bee72a41d2df4d6869
/Python/Python A.prasert/args.py
ec3d35542045871f9be09f04a40f8b53c06d08bc
[]
no_license
Bongkot-Kladklaen/Programming_tutorial_code
ac07e39da2bce396e670611884436b360536cdc5
cda7508c15c3e3d179c64b9aac163b6173ef3519
refs/heads/master
2023-06-20T13:14:17.077809
2021-07-18T04:41:04
2021-07-18T04:41:04
387,081,622
0
0
null
null
null
null
UTF-8
Python
false
false
313
py
# print(3,5,10) # print(3,10) # print(2, 'two',1) def avg(*args): total = 0 for i in args: total += i return total / len(args) def print_bullet(*items, bullet="\u2022"): for e in items: print("{} {}".format(bullet, e)) # print(avg(2,3,5,6)) print_bullet('lily','rose','jasmine')
[ "bongkot.klad@gmail.com" ]
bongkot.klad@gmail.com
35e94527390de65d607e55d930d377b659e81384
9cc41b6848e1bb7d3a62c3d4775f2b7512ef29c4
/DjangoPractical/chapter8/bookmark/models.py
227d51e407b304d58a495aff4c9c5c0f1bddf96a
[]
no_license
Hyeon-Goo/python-web-programming-practice-part
5b49ef2ebd1804243ab06ca27322997016823778
84c1d25cbc727a427266e44c7ea1487ab48b61a0
refs/heads/master
2023-04-26T01:16:10.839256
2021-05-14T05:06:58
2021-05-14T05:06:58
360,438,286
0
0
null
2021-05-10T12:23:42
2021-04-22T07:58:37
Python
UTF-8
Python
false
false
250
py
from django.db import models # Create your models here. class Bookmark(models.Model): title = models.CharField('TITLE', max_length=100, blank=True) url = models.URLField('URL', unique=True) def __str__(self): return self.title
[ "wizardhk@naver.com" ]
wizardhk@naver.com
0cff46c8ae1951bd02beb0ad049bd94fca416dce
d06eac41b0920d1c50cacd8e99513a4b233ebc68
/cap8/ex175_recursive_decimal_to_binary.py
fcd3cfa4e73e14a7b523be4d4efca0b01b90fe5a
[]
no_license
RobRoger97/test_tomorrowdevs
81cff72e4e7aafafa32a3de8b84868add3946d58
2691174740fe7c647396c536c472db608605b727
refs/heads/main
2023-01-13T23:44:40.964483
2020-11-15T20:05:34
2020-11-15T20:05:34
304,426,984
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
#define a recursive function to convert a non-negative #integer entered by the user from decimal to binary. def decimal_to_binary(lis,n): if n==1: return 1 elif n==0: return 0 else: c=n%2 q=n//2 lis=str(c) return lis + str(decimal_to_binary(lis,q)) #define the...
[ "RobertaRuggiero_97@hotmail.it" ]
RobertaRuggiero_97@hotmail.it
2732c7bbb0a9870594da2add13048f64309ad5c0
940d7b93fb27e8eead9b6e52bc5c7444666744dd
/python/src/Lib/test/test_transformer.py
909cda51837cad3bbf574a62593bb8211bb6c47d
[ "Apache-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "Python-2.0", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-python-cwi" ]
permissive
pilotx45/sl4a
d446531d310cc17d93f24aab7271a0813e8f628d
150e3e46b5103a9b9a391034ef3fbc5bd5160d0f
refs/heads/master
2022-03-24T19:48:30.340479
2022-03-08T16:23:58
2022-03-08T16:23:58
277,016,574
1
0
Apache-2.0
2022-03-08T16:23:59
2020-07-04T01:25:36
null
UTF-8
Python
false
false
1,028
py
import unittest from test import test_support from compiler import transformer, ast from compiler import compile class Tests(unittest.TestCase): def testMultipleLHS(self): """ Test multiple targets on the left hand side. """ snippets = ['a, b = 1, 2', '(a, b) = 1, 2', ...
[ "damonkohler@gmail.com" ]
damonkohler@gmail.com
7180a6535820ae9ce9bfd769a1e6a1813a6dc687
6e22c9bc6dd2bb442345a1c6759249fc3211322b
/venv/lib/python3.8/site-packages/django/core/management/commands/inspectdb.py
4fdcf74a72de1b4733c36b48ec765e3a3d63afdd
[]
no_license
Sankalpa830/NHPE
b4ba283f602b15a2ae53afaeb06ed11354879f76
ac2615f218d35bd0d8a24b06abb37ef77d321a72
refs/heads/main
2023-07-14T20:58:14.639187
2021-09-01T08:03:27
2021-09-01T08:03:27
401,979,352
0
0
null
null
null
null
UTF-8
Python
false
false
13,985
py
import keyword import re from django.core.management.base import BaseCommand, CommandError from django.db import DEFAULT_DB_ALIAS, connections from django.db.models.constants import LOOKUP_SEP class Command(BaseCommand): help = "Introspects the database tables in the given database and outputs a Django ...
[ "88698739+Sankalpa830@users.noreply.github.com" ]
88698739+Sankalpa830@users.noreply.github.com
d8ebe9f96b8861612109f607cda8efcac6488540
6f9cb82b54a537e8d328c91527f14e9b1a77a0a2
/pg_xlsx_pg/xlsx2db.py
3daeed8aaf85eb4cb81e5b0e4a6fc97d7a4a5532
[]
no_license
godsfear/py
c22f93581a900436fe7ce08829af14822dd228a4
b0510a729342953181df2bc69f2da5d2cca959bf
refs/heads/master
2020-05-27T19:52:50.119385
2019-10-17T09:25:06
2019-10-17T09:25:06
188,767,580
0
0
null
null
null
null
UTF-8
Python
false
false
2,537
py
#!/python from openpyxl import load_workbook import sys import os import json import re import time import progressbar import glob from db_api import * if __name__ == '__main__': fname = 'xlsx2db.json' if len(sys.argv) > 1 and not ((sys.argv[1] == "") or (sys.argv[1] is None)): fname = sys.argv[1] ...
[ "44734149+godsfear@users.noreply.github.com" ]
44734149+godsfear@users.noreply.github.com
e5486b8d06884487a9f8627990bbdd51bc3ce273
86813bf514f3e0257f92207f40a68443f08ee44b
/1047 删除字符串中的所有相邻重复项/1047 删除字符串中的所有相邻重复项.py
bf028b0fd7a93d4a5ee6c4ef9b7c9d614fc710aa
[]
no_license
Aurora-yuan/Leetcode_Python3
4ce56679b48862c87addc8cd870cdd525c9d926c
720bb530850febc2aa67a56a7a0b3a85ab37f415
refs/heads/master
2021-07-12T13:23:19.399155
2020-10-21T03:14:36
2020-10-21T03:14:36
212,998,500
4
1
null
null
null
null
UTF-8
Python
false
false
2,116
py
#label: stack difficulty: easy """ 思路一: 直接循环,空间复杂度低,但时间复杂度高 """ class Solution(object): def removeDuplicates(self, S): """ :type S: str :rtype: str """ flag = 1 while 1: original_l = len(S) i = 0 while i < len(S) - 1: ...
[ "noreply@github.com" ]
Aurora-yuan.noreply@github.com
cb2a744a2359e92619b1478436292d694371171c
7df76ba9ce259073358b8a6478bb641ea6e50509
/src/code/attacks/evasion.py
30f16677e2b8ab4cf8bc3bcdbf1d524ffe57ea44
[]
no_license
SONG-WONHO/attack_correlation2
ed261daef89fbe3c211a714948dadc6aeadaf682
142e229fa28880ca8391749dcc6ed2491fe0ce96
refs/heads/master
2023-07-06T00:41:54.786069
2021-08-12T10:43:49
2021-08-12T10:43:49
389,508,920
0
0
null
null
null
null
UTF-8
Python
false
false
30,237
py
import torch import numpy as np import warnings from tqdm import tqdm import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F warnings.filterwarnings("ignore") def clip_eta(eta, norm, eps): """ PyTorch implementation of the clip_eta in utils_tf. :param eta: Tensor ...
[ "win778500@gmail.com" ]
win778500@gmail.com
a638cb48c3c3ae642ae77d0ee9745db81883ee2a
fcd4443abbf2638e1c13362f58b10a347a959af8
/trials/3pc.py
f706d3cdd9b982e766283c9ec548e5a23dfe8b93
[]
no_license
Shariar076/atomic-commit
952ec46f1b81b727015401b6b13455b151ca4fbc
55e2bb5361a28f346e6ecac21c47bc3647afd371
refs/heads/master
2023-08-19T23:03:03.087909
2021-10-06T11:28:34
2021-10-06T11:28:34
356,931,998
0
0
null
null
null
null
UTF-8
Python
false
false
879
py
from server import Server from client import Client import sys, getopt from threading import Thread from time import sleep def get_host_port(argv): host = None port = None try: opts, args = getopt.getopt(argv, "h:p:", ["host=", "port="]) except getopt.GetoptError: print('test.py -h <ho...
[ "shariar.kabir@cellosco.pe" ]
shariar.kabir@cellosco.pe
833e7120f03a37b0a7cc7b01c1f37f7b23e29be5
299d0b949676470f542cd2d0ad7383a5ede00c30
/Networks/qnetwork.py
f7e7d45bac1a006de4ba52294592d55dfefec15a
[]
no_license
Morgan-Griffiths/Udacity_Navigation
0987787d7f44cd76609b16f085a5168a35082599
a871b48111b5416aa3d7246d7db696d39ce5fcf0
refs/heads/master
2023-08-24T03:55:19.114784
2022-01-24T20:47:28
2022-01-24T20:47:28
188,105,824
0
0
null
2023-07-22T06:27:25
2019-05-22T20:03:30
Jupyter Notebook
UTF-8
Python
false
false
612
py
import torch import torch.nn as nn import torch.nn.functional as F """ QNetwork for function aproximation. """ class QNetwork(nn.Module): def __init__(self,action_space,state_space,seed): super(QNetwork,self).__init__() self.action_space = action_space self.state_space = state_space ...
[ "C5ipo7i@gmail.com" ]
C5ipo7i@gmail.com
b3bca2fa7b1096d2eb77d7ed7e62e9fa12f6c42b
426b91ccc883a56db3d87520956153392739674e
/CART.py
9d22f9c02927b8c4d64e1bdc702bfb1e5e450062
[]
no_license
HuixiangWen/region-
1be5497cd3899ef6bedbd6dba43f4ff3c694a556
ba7d56744b8116a2896dc99d2aac4d6f51e01598
refs/heads/master
2020-04-10T21:47:20.879134
2018-12-11T09:26:18
2018-12-11T09:26:18
161,306,555
0
0
null
null
null
null
UTF-8
Python
false
false
2,300
py
from sklearn.externals import joblib from sklearn.tree import DecisionTreeClassifier import pandas as pd from sklearn.metrics import make_scorer, accuracy_score from sklearn.model_selection import GridSearchCV, KFold, train_test_split import os path = "./newdata" list1 = os.listdir(path) print(list1) list1 = ["0.csv"]...
[ "jswenhuixiang@163.com" ]
jswenhuixiang@163.com
872b16bed9932977abd190f8dc1a4240c3c9334b
bd58aa45e6feb0916f18997535c29150a85a081d
/experinmenting/3sectors_temp/agg_results.py
47dcfdec55091d276531bcd92f6b20e57040c90a
[]
no_license
johnsonice/ABM_MacroEconomy
58f3edb2207a69b88beab741fdfad6c238c1f19b
8065dc4f2caa77f7a877cf684221386e198632bc
refs/heads/main
2023-08-21T21:04:18.934370
2021-11-03T05:31:44
2021-11-03T05:31:44
383,259,063
1
0
null
null
null
null
UTF-8
Python
false
false
5,320
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Sep 20 14:52:41 2021 @author: chengyu """ import pandas as pd import ast from utils import get_current_res_folder from config import simulation_parameters import os import matplotlib.pyplot as plt #%% def convert_dict_columns(df,colum_name): if ...
[ "huangchengyu16@gmail.com" ]
huangchengyu16@gmail.com
b9de5a803a149b52dbecfe06e0ea5968797d4cb1
8d21ccde698901503f7f07f9b26f912c4c8d08d3
/ex01/wsgi.py
afea0f3f7341528697685f0a5b4ce8af0eaae6ba
[]
no_license
wonginx/django_ex01
c41b3b40da07a7a54feb62a9989aa4668562a5d9
13258575d3285e9568992a6651c3d98e95d853fb
refs/heads/master
2023-08-20T23:06:30.800227
2021-10-06T08:45:58
2021-10-06T08:45:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
""" WSGI config for ex01 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS...
[ "nngg375@naver.com" ]
nngg375@naver.com
1afda8ddb48c047d6ef756e490ec117335c07cc2
5e3ebc83bc3fe2f85c34563689b82b1fc8b93a04
/google/ads/googleads/v5/services/services/payments_account_service/client.py
846d30511be6ebd57110fc5b9a0bdc3ea6980507
[ "Apache-2.0" ]
permissive
pdsing/google-ads-python
0ce70227cd6bb13a25cd13de0ca05c2636279ecd
ee2c059498d5679a0d1d9011f3795324439fad7c
refs/heads/master
2023-05-04T18:39:57.412453
2021-05-21T16:38:17
2021-05-21T16:38:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,552
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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 o...
[ "noreply@github.com" ]
pdsing.noreply@github.com
71bfd6033266f0ff9ba160f37173c98c2ac26562
6a990a3d549ca3d1c607b60b13b10f14c0e15787
/game/douniu/mode/douniu_room.py
b2df67f7bd92383dec3420b6d88d711e47d3f06f
[]
no_license
qianyc1020/server
217a766f7df5a0acfb983d3fc48317a932fe092e
3c897e5d6ee453d0a2f3b371b5eda5af954b8d1a
refs/heads/master
2020-06-10T08:55:31.996449
2019-06-24T06:26:43
2019-06-24T06:26:43
193,626,075
1
0
null
2019-06-25T03:12:39
2019-06-25T03:12:37
null
UTF-8
Python
false
false
8,883
py
# coding=utf-8 import threading import random import core.globalvar as gl from game.douniu.command.game import roomover_cmd, gamestart_cmd, gameover_cmd, dealcard_cmd from game.douniu.mode.game_status import GameStatus from game.douniu.timeout import operation_timeout from mode.game.room import Room from protocol.bas...
[ "pengyi9627@gmail.com" ]
pengyi9627@gmail.com
f225dd25a52b2e3e872805bebfc869deb6403608
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/3307.py
0b45963022441cf19c13a42c6bfcac2c7069bca0
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
T = int(input()) for case in range(T): N = input() R = "0" for digit in range(len(N),0,-1): for n in range(9,int(R[-1])-1,-1): R = R[0:len(N)-digit] + digit*str(n) if(int(R) <= int(N)): break; R = R.strip('0') print("Case #{}: {}".format(case+1,...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
205196db7584b5071414be641278ef9edd2597c2
2859496fcd4dd1e9c94f903ab31069c40eca469c
/guardians_of_children/migrations/0005_auto_20211003_0646.py
2394944fa0c0b524bad3c7116cc5904313144a73
[]
no_license
Seoha-Yoon/ai_guardians_backend
8910384f8fa24d06827da78a5d038415491acecc
79d7fea57801a3bb58f21842918b2e498c53c6ad
refs/heads/main
2023-08-19T11:42:33.108165
2021-10-04T12:21:30
2021-10-04T12:21:30
412,526,300
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
# Generated by Django 2.2.5 on 2021-10-03 06:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('guardians_of_children', '0004_auto_20211003_0642'), ] operations = [ migrations.RenameField( model_name='videos', old_name='...
[ "seohayn127@gmail.com" ]
seohayn127@gmail.com
f4db245ed76e913ad2797cc535061d803a260f34
a2f22c92a047cb2840e9273b06aeaf26fbe06129
/user.globalmilestone.org/interface/standard/migrations/0007_remove_student_grade_level.py
733d4c956ac2a0836cc7a3b0e5ceb63cd6f4e304
[]
no_license
sashaberger31/BishopsHCS
4ab53bbe7dea781e1dd4efe0bf40ffa12ab0eadb
f5dee997b2a72f4513286fff0c45f6faf798f2f4
refs/heads/master
2023-01-07T22:22:15.560469
2020-09-03T06:08:40
2020-09-03T06:08:40
292,396,305
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
# Generated by Django 3.1 on 2020-08-12 17:26 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('standard', '0006_auto_20200812_1723'), ] operations = [ migrations.RemoveField( model_name='student', name='grade_level', ...
[ "sasha@globalmilestone.org" ]
sasha@globalmilestone.org
cfba3bc559cc82b538914a447694d7373ad555d6
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/sklearn/preprocessing/tests/test_function_transformer.py
86f0f1155f93774d77023cae05380cc15dba50b1
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:8dd493e6459816a7ce3af5334d0d4d42b0b6cfbbf9a6650d4e6b945651ce74da size 5431
[ "yamprakash130@gmail.com" ]
yamprakash130@gmail.com
627080aae5a63a549c017d35ab18c5c6c6ae77a0
28328e0efe3c801ecc4e785d85d471089b366839
/examples/pub_sub_receive.py
426af39d332c87152e54fbaa5ecadc6ae0048f4c
[ "MIT" ]
permissive
leviethung2103/imagezmq_replicate
0010446d027ac08aa0399049f9f2f9022fe72780
7fc60788fc2b024ea86dedea63fd9962f5af4516
refs/heads/master
2022-11-22T06:09:19.498457
2020-07-25T23:20:56
2020-07-25T23:20:56
282,538,914
1
0
null
null
null
null
UTF-8
Python
false
false
2,792
py
"""pub_sub_receive.py -- receive OpenCV stream using PUB SUB.""" import sys import socket import traceback import cv2 from imutils.video import VideoStream import imagezmq import threading import numpy as np from time import sleep # Helper class implementing an IO deamon thread class VideoStreamSubscriber: def ...
[ "hunglv@greenglobal.vn" ]
hunglv@greenglobal.vn
936a02e2e528ae1b24dfc6b747fe4f5e89fed379
6c57b1694817d1710335429c12c2d9774ff446e3
/2017-08-06/AS-DA-DB_case07/generated_files/LEMS_c302_C2_AS_DA_DB_nrn.py
95fa1c511d60824f5db04a48a7fc9228e17b2f13
[]
no_license
lungd/openworm-experiments
cd3875e8071c35eacb919c318344bac56d0fe379
065f481fbb445ef12b8ab2110f501686d26c213c
refs/heads/master
2021-01-01T04:41:38.397726
2017-09-12T13:55:40
2017-09-12T13:55:40
97,220,679
1
1
null
2017-09-01T17:10:28
2017-07-14T10:07:56
Python
UTF-8
Python
false
false
749,109
py
''' Neuron simulator export for: Components: Leak (Type: ionChannelPassive: conductance=1.0E-11 (SI conductance)) k_fast (Type: ionChannelHH: conductance=1.0E-11 (SI conductance)) k_slow (Type: ionChannelHH: conductance=1.0E-11 (SI conductance)) ca_boyle (Type: ionChannelHH: conductance=1.0E-11 (SI...
[ "lungdm@gmail.com" ]
lungdm@gmail.com
84ba2de82f514a80b6a661f51dd0f753082f6e2d
29bcaf4d6d5e96fd4a85da3b0b3e813f92a84b77
/examples/pytorch/pagerank.py
1b66242c9121e643699df8ae610951ddd7e67483
[ "Apache-2.0" ]
permissive
hetong007/dgl
844e48421fe899b1f36d40095cf54809b1724a26
11e910b6f88ec10c7549493dab9e2b218e988e97
refs/heads/master
2022-04-30T23:16:19.354461
2022-03-31T11:22:21
2022-03-31T11:22:21
228,311,655
1
0
Apache-2.0
2020-08-05T09:40:28
2019-12-16T05:45:10
Python
UTF-8
Python
false
false
598
py
import networkx as nx import torch import dgl import dgl.function as fn N = 100 g = nx.erdos_renyi_graph(N, 0.05) g = dgl.DGLGraph(g) DAMP = 0.85 K = 10 def compute_pagerank(g): g.ndata['pv'] = torch.ones(N) / N degrees = g.out_degrees(g.nodes()).type(torch.float32) for k in range(K): g.ndata['pv...
[ "noreply@github.com" ]
hetong007.noreply@github.com
e3db28496321a7da1e62e32c2629cb74391a33b1
8a1519c2604e81eb3a4e2dc5829863f246218ea7
/SmartHouseController/Smart House controller.py
7860f563c574b51cb39c99dfcf20290ee7360006
[]
no_license
ryanongra/SNCA_Projects
d032f3d6a90468a44e27a9ea4d347e4f0bde1971
a36460f3684151dca61e70cd275f311e73f63898
refs/heads/main
2023-07-11T19:38:56.949275
2021-08-12T11:28:35
2021-08-12T11:28:35
395,290,106
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
from microbit import * import radio radio.on() while True: if accelerometer.current_gesture() == "up": radio.send("Come in") sleep(1) elif accelerometer.current_gesture() == "shake": radio.send("Access denied") sleep(1) elif accelerometer.current_gesture() == "f...
[ "noreply@github.com" ]
ryanongra.noreply@github.com
53a4c73643999112ef04e0602c63db6523b5ae48
d1593aefbf9560af6cca9a82f59302a84c5052fa
/migrations/versions/898c591f6665_creates_the_foreign_key_to_the_user_.py
cef423bed8c392cbf14408650c7392e06eb0cb24
[]
no_license
jod35/car-parking
71ec9d91163658489d3277023c71c91237343c07
9448ae3660de1b4104ec34f19c4a2f25b022f7d6
refs/heads/master
2020-11-25T16:38:31.666940
2019-12-18T05:44:41
2019-12-18T05:44:41
228,759,269
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
"""creates the foreign key to the user table Revision ID: 898c591f6665 Revises: ce5ec4406cd4 Create Date: 2019-12-17 00:23:15.563670 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '898c591f6665' down_revision = 'ce5ec4406cd4' branch_labels = None depends_on = ...
[ "jodestrevin@gmail.com" ]
jodestrevin@gmail.com
a0ed4c078248390ebb22ef20c22100702dd2e33d
cd8e37979ad3d38b7a3726d2f7084cb30538a5dd
/setup.py
0bee80254fe71f8a601845b316ce06387873c25a
[ "MIT" ]
permissive
lejar/Bard-s-Tale-IV-Code-Wheel
e6ab14b0b682da0aa5f100382a2bcc5f72382eda
67c4e27736f5d48bf1059cf4dd3ee488bfdd5130
refs/heads/master
2020-03-29T11:45:29.026217
2018-09-22T11:48:19
2018-09-22T11:48:19
149,869,105
8
0
null
null
null
null
UTF-8
Python
false
false
2,348
py
import os import subprocess import shutil from pathlib import Path from setuptools import setup, find_packages, command from setuptools.command.build_py import build_py from distutils.command.build import build as _build from distutils.command.clean import clean as _clean from distutils.command.install import install ...
[ "github@pezley.net" ]
github@pezley.net
6579713cbee5298c4a87a717e50c2083d458a81b
1a5b990b87f86d23a636ce439d26a14d9664829b
/test_spider.py
930536f2d095edc88367616569534b59c283836f
[]
no_license
btlishang/test
8be5875839ace07dfd0b3c4d949ab4acf5b06879
b56cc2a9d2946df63cd54a55b8edc5773cf47087
refs/heads/master
2022-12-22T10:37:01.219807
2019-01-23T07:41:23
2019-01-23T07:41:23
159,899,607
0
0
null
2022-12-08T01:19:32
2018-12-01T02:06:20
Python
UTF-8
Python
false
false
5,605
py
#-*- coding:utf-8 _*- # # File Name: test_spider # Author : lishang # date: 2018/11/25 import requests,time,mysql,re from pyquery import PyQuery as pq from requests.exceptions import ConnectionError,ReadTimeout headers = { "Host": "www.csh.edu.cn", # "user-agent": "Mozilla/5...
[ "542880395@qq.com" ]
542880395@qq.com
7f6eb17b83d7f12b037cca2162485483f884b4d1
cbad8ab4208ed31a904028ba0f190ddb89b2b667
/chapter02/NumPy_and_SciPy.py
fffa49c7bd7e235f6f81d1171aa19fc1c245556b
[]
no_license
ZhaoHuiXin/Fluent-Python
a4a2de649505437f77b2024ac61c48d56cc1cc0b
691b3a90e73061ad4f07ce0dd775b08a8779c7ec
refs/heads/master
2020-03-17T08:40:06.614237
2018-06-12T01:13:41
2018-06-12T01:13:41
133,446,109
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
# -*- coding=utf-8 -*- # # Copyright @ 2018 HuiXin Zhao """导入精度和性能都比较高的计时器(Python 3.3 及更新的版本中都有这个库)""" from time import perf_counter as pc import numpy t0 = pc() a = numpy.arange(12) print(a, type(a)) print(a.shape) a.shape = 3, 4 print(a) print(a[2]) print(a[2][1]) print(a[:, 1]) print(a.transpose()) print(pc()-t0)
[ "zhaohuixin@autoforce.net" ]
zhaohuixin@autoforce.net
fd69576b11ab5fcb0aa9abb70ebe2732844c00f8
51b907f1b20065b51b0a621bfb26b0d2f00e708f
/lib/python3.7/__future__.py
eac425093bd5116b3bcc5c3f7aafb8be151e4676
[]
no_license
Atuahene3/house-deal
f4c807023029e3a3fe1527e287cf4d75db9fb0ca
177a5931018131504ea337b27597b18c39407441
refs/heads/master
2022-10-12T05:27:45.696243
2019-09-04T15:17:00
2019-09-04T15:17:00
206,359,713
0
0
null
2022-09-30T18:42:22
2019-09-04T16:05:23
Python
UTF-8
Python
false
false
54
py
/Users/theoatadu/anaconda3/lib/python3.7/__future__.py
[ "theoatadu@Theophiluss-MacBook-Pro.local" ]
theoatadu@Theophiluss-MacBook-Pro.local
09190a89d9de114658ef9dc548c9bdce2cbb9738
8f62c24d6e3cd085af54ba0c63c4ce8e6d5752d3
/pythonpath/mytools_Mri/ui/dialogs.py
138039ee0154b7325fed171787d80fd0cc425c84
[ "Apache-2.0" ]
permissive
Nienzu/MRI
fc7f7b3879691ec97dac3d62c5afc3420af015cc
0298496aaa25f792de9b9f040597f4dd4d6800e6
refs/heads/master
2020-07-23T04:13:54.806967
2018-12-25T15:25:06
2018-12-25T15:25:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
26,480
py
# Copyright 2011 Tsutomu Uchino # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
[ "hanya.runo@gmail.com" ]
hanya.runo@gmail.com
b67006d27c7752ea7c5a81f9de01ca5b928ca312
53134f27ca66d042da306781f5dbc7db1d5ec6fe
/apps/users/admin.py
97a3c2fe893cbf3fd5b6afac55565fd460de3b12
[]
no_license
OrlandoGareca/django_rest_blog
9acf116d6bca942222b1e6ad1b6d5026210d59c9
27fa784023172bfbca6fbc5d80c3c4f4e710f73f
refs/heads/main
2023-02-28T11:12:35.013283
2021-02-03T13:17:38
2021-02-03T13:17:38
335,623,322
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
from django.contrib import admin # Register your models here. # from django_rest_blog.apps.users.models import User from apps.users.models import User admin.site.register(User)
[ "orlando.dilmar.gareca.pena@gmail.com" ]
orlando.dilmar.gareca.pena@gmail.com
1b9422493fed54a03dc6c88cbbc755440cca619d
9aaee5f65c8dd9d18b1cc549740f4e6be295f091
/basic_analysis/read_gnom_pr.py
b53ae2787ced078b0fda87e2d0b345b5df14ec70
[]
no_license
ssongna/sastbx_module_sastbx
285074d6f07c9d440bd750889322746d14448328
aa5cc2f59a4179db761125fb01fe7aaeda7d5dd0
refs/heads/master
2021-08-17T09:01:18.796977
2017-11-21T01:25:50
2017-11-21T01:25:50
111,428,819
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
from scitbx.array_family import flex import sys def read_pr_from_gnom(filename): r= flex.double() pr= flex.double() error= flex.double() file=open(filename, 'r') pr_start = False for line in file: keys = line.split('\n')[0].split() if(len(keys) == 3): if(not pr_start): if(keys[0] == ...
[ "15298375979@126.com" ]
15298375979@126.com
b50d050dac270613e73ee112cfc10ed92724aa6e
d7be5ab6abbb79daef279974c0b3bf5e3de5515f
/venv/Scripts/pip-script.py
a21825c3c907375802dfa79ea818aada622bf889
[]
no_license
Swingyboy/PlatformTests
f4ee77515c323dbc32307585db01649e9396481b
4128bef83e64841d8e98d0ffcddca2195405b843
refs/heads/master
2022-03-05T18:26:15.407792
2019-11-14T13:26:49
2019-11-14T13:26:49
183,031,822
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
#!E:\work\auto_tests\PlatformTests\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) s...
[ "kedonosec@gmail.com" ]
kedonosec@gmail.com
2052bc6a6757a5b1615d290435939055ffefea57
c956c89a021a7507cfd52b60f6ac5b5c3b8c886e
/tersa/productos/models.py
ddfdaf907ed0f8a38fc7c11d564bf32bd5b58018
[]
no_license
cgallego08/tersa2019
6478fcbd47807ddd1c7058ff6de53fd8634abb2a
c6c1c8e6626bb248bae3443a3a3429a3e813cc1c
refs/heads/master
2020-08-07T16:00:38.776145
2019-10-08T00:58:39
2019-10-08T00:58:39
213,516,898
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
from django.db import models from categorias.models import Categoria, Bodega # Create your models here. class Producto(models.Model): nombre_producto = models.CharField(max_length=250) categoria = models.ForeignKey(Categoria, on_delete=models.CASCADE) Bodega = models.ForeignKey(Bodega, on_delete=models.CA...
[ "55272028+cgallego08@users.noreply.github.com" ]
55272028+cgallego08@users.noreply.github.com
8dcbac18b80912d2eb5772c8182408c63abd2c73
434cfbd78ba08861bb40aa8290442556243bdbcc
/youtube_dl_gui/SignalHandler.py
f5211639e087497b3f395aaa04dfc3a9aae00361
[ "Unlicense" ]
permissive
hotice/youtube-dl-gui
a18e80788eb769adb5cb2d8007e65d04f78eca5b
46a7983f0a729cf7ea2138c39f3163abe71c0509
refs/heads/master
2021-01-15T14:32:11.948468
2014-03-24T21:15:18
2014-03-24T21:15:18
18,078,947
1
0
null
null
null
null
UTF-8
Python
false
false
2,898
py
#! /usr/bin/env python class DownloadHandler(): def __init__(self, ListCtrl): self.ListCtrl = ListCtrl self.finished = False self.close = False self.handlers = [] def _has_closed(self): return self.close def _has_finished(self): return self.finished def handle(self, msg): ...
[ "ytubedlg@gmail.com" ]
ytubedlg@gmail.com
573e3dd3b178f91dba7132715f6a34622c436e4e
972a694174dfbd25dbf27d8aa98d272625c2400f
/external/AnniesLasso/sandbox-scripts/plot_label_recovery.py
1313fcf1b91da476022e3379017fc0afce6ac37b
[ "MIT", "BSD-3-Clause" ]
permissive
sdss/apogee
d3344021ac66f91e4259dd1fcf160ee7657740ec
e134409dc14b20f69e68a0d4d34b2c1b5056a901
refs/heads/master
2021-08-06T18:44:13.668542
2021-06-11T13:00:51
2021-06-11T13:00:51
127,458,050
5
5
BSD-3-Clause
2018-09-20T22:18:47
2018-03-30T18:02:58
IDL
UTF-8
Python
false
false
4,970
py
""" Plot the label recovery for the validation set as a function of S/N. """ import numpy as np from matplotlib.ticker import MaxNLocator from six.moves import cPickle as pickle from collections import Counter, OrderedDict models = { "model1": "gridsearch-2.0-3.0-s2-heuristically-set.model.individual_visits" } ...
[ "holtz@nmsu.edu" ]
holtz@nmsu.edu
1e328158a74ff438282aeaa61b0fc8b109732a80
b61e64d8715eebaafcc2c5187568eca2ffe9eeb9
/bson/objectid.py
75b5a3f266db93f7059fc65e4fe17ea3c3d72817
[]
no_license
pawel344/nosql
ea2954dcbd56e4222dbfff2a2c60badfe0ac826b
8e0a155fca8395617a499a5307c94eb633ff383e
refs/heads/master
2021-01-22T09:04:02.981146
2012-05-16T23:02:34
2012-05-16T23:02:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,836
py
# Copyright 2009-2012 10gen, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "notroot@ubuntu.(none)" ]
notroot@ubuntu.(none)
e451a171b6bdbc9987bf3c451b834584db2663b4
6d3f739586564d4b3ecd8afe8270ce3c213362af
/unet_train.py
d8568fe3393472579395bc3e495dc598ecd3c076
[]
no_license
shantanu778/Image_Segmantation_Tensorflow_Unet_landcover_AI
672b35a137b0ffce1deb7e14725f52346dcf5be9
b5f744af21a2130a8d45a967a19dfbcc56bd7cc5
refs/heads/main
2023-04-20T17:56:16.635249
2021-05-20T09:16:32
2021-05-20T09:16:32
369,143,081
2
0
null
null
null
null
UTF-8
Python
false
false
5,308
py
import tensorflow as tf import os import numpy as np import glob from tqdm import tqdm import cv2 from matplotlib import pyplot as plt from preprocess import data_loading ## Plot Mask Histogram ## Number of Class 3 ''' img = cv2.imread('masks/M-33-20-D-d-3-3.tif',cv2.IMREAD_COLOR) img_arr = np.array(img) np.unique...
[ "shantunath778@gmail.com" ]
shantunath778@gmail.com
d8ee10cbc40b90df55996475316537ec7e192c61
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/infra/rtpathtospaccgrp.py
eef4e3bb87ae031c1d22f63484adf1bc4d67f73b
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
4,746
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
caad58faa73eecb141cdfe7e2295c03ac8db6083
427eefd3d18d4323ac2e3920aabc50d7346b7c11
/reading.py
f7b67bdddb023032fa6d9f934129b0e3478374df
[]
no_license
jvparidon/tamil-test-suite
b9f0f53002793103a4e6e2686dff8547df0ba94d
74bd6b45555ad35aa9c3969e65185de5a1407ebb
refs/heads/master
2021-07-02T17:44:00.313961
2020-09-01T16:52:31
2020-09-01T16:52:31
155,201,570
0
0
null
null
null
null
UTF-8
Python
false
false
1,619
py
import audio from psychopy import prefs prefs.general['audioLib'] = ['pygame'] from psychopy import core, visual from test_tools import get_pp_info, pause # experiment routines for presenting word reading stimuli and recording spoken responses class Experiment(object): def __init__(self, mode, pp_info, fps=60.0...
[ "jvparidon@gmail.com" ]
jvparidon@gmail.com
b7c1d90ded90c00f06a5b584532562d4652f4c1e
d98d2f725cb425eb38de6a34a7ba601b84fcad44
/MediaPrep1.py
35d8199d4543d6fcc55c4e4fdc5d817082fd8c6a
[]
no_license
Naturalenemy07/Opentrons
438f624001b759dcdc43793342e3e996e1625a9b
3470dc46e3c970a696d4397ce3613527618ba972
refs/heads/master
2020-04-07T01:12:27.519214
2020-01-20T03:55:08
2020-01-20T03:55:08
157,934,798
0
0
null
null
null
null
UTF-8
Python
false
false
4,442
py
"""This protocol is for prepping different media conditions in a plate (Duetz or otherwise). It relies on a list from the Opentrons Protocol Settings protocol to determine the type of media and what wells to add it to.""" from opentrons import robot, containers, instruments class MediaPrepSettings: def _...
[ "noreply@github.com" ]
Naturalenemy07.noreply@github.com
595e5bca39ed448a4b056fa662028de4209da8f1
aa6667f476b2c6f9c79d49acffc3f6c0f9b69597
/setup.py
3089700fb7316e15568bf9f812cf712bff36472d
[ "WTFPL" ]
permissive
jziemer1996/BanDiTS
212f84c4ddc616b4cbd44f2429745e6ac4dfe040
f6a2b2fda4363f83de18059366381c4fbe7f1e5b
refs/heads/master
2021-06-13T23:20:12.412149
2020-05-11T14:27:07
2020-05-11T14:27:07
254,461,079
0
0
WTFPL
2020-04-09T19:31:06
2020-04-09T19:31:06
null
UTF-8
Python
false
false
1,308
py
from setuptools import setup, find_packages import os import sys directory = os.path.abspath(os.path.dirname(__file__)) if sys.version_info >= (3, 0): with open(os.path.join(directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() else: with open(os.path.join(directory, 'README.md')...
[ "marlinmueller.mm@gmail.com" ]
marlinmueller.mm@gmail.com
f73f3efc3938ee3cf1a170decf4ffb381517ee34
97d1fe99690ea7e02d2ba0e1750b27c5123ecbcc
/tuxradar/mousegame/ball1.py
501c737b038d3065d11dda7e65a8ae4e72627561
[]
no_license
AdmiralAsshat/learn_python
3c7f9ac7518b9da1e6d6bdc5dcf6bc4bdb813d67
89fd515855b5dd487e45d0970f1790cde1e88657
refs/heads/master
2021-01-19T10:02:22.650283
2016-10-29T18:46:03
2016-10-29T18:46:03
13,074,466
7
0
null
null
null
null
UTF-8
Python
false
false
906
py
from pygame import * # Why this instead of just import pygame? ballpic = image.load('ball.png') done = False ballx = 0 # ball_x would be easier to read bally = 0 ballxmove = 1 # velocity ballymove = 1 init() screen = display.set_mode((640,480)) # Is there an autodetect native resolution function? display.set_cap...
[ "asshatadmiral@gmail.com" ]
asshatadmiral@gmail.com
a26b89cd6a7378808cf4517d87628ab0508d4c0b
7db3d7f745693479238f6d3af98cb970408bfcca
/src/python/pants/engine/internals/options_parsing_test.py
047964d04683963d0024b7e1c2edf0c7aee882ca
[ "Apache-2.0" ]
permissive
silverguo/pants
3b75bc0e736f2de5b41c2ddb8ba21f0d7cc314da
141510d03fbf2b7e1a0b54f66b54088697f6fa51
refs/heads/master
2022-05-24T13:57:02.596103
2020-04-23T02:39:59
2020-04-23T02:39:59
257,949,101
0
0
Apache-2.0
2020-04-22T15:54:24
2020-04-22T15:54:24
null
UTF-8
Python
false
false
2,716
py
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.engine.selectors import Params from pants.init.options_initializer import BuildConfigInitializer from pants.option.options_bootstrapper import OptionsBootstrapper from pants.opt...
[ "noreply@github.com" ]
silverguo.noreply@github.com
50ddaaeab08af012481289d7553d0e3129d36c18
0f9a97d48a9f0179bcf1e3d80c08340096eb561e
/ДЗ-5. Функции и рекурсия/K. Возведение в степень.py
b21cb2ad4fda6a241147eb326ed1dbb62d7ade51
[]
no_license
dmitryokh/python
96d8ec8c3f2d3428b90d510a1003aecf102b13d0
8efe761412779bed9a7516832d3152843088fa43
refs/heads/master
2020-04-24T03:08:42.865813
2019-02-20T11:41:52
2019-02-20T11:41:52
171,661,235
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
def power(a, n): if n == 0: return("1") elif n == 1: return(a) else: return(power(a, n - 1) * a) a = float(input()) n = int(input()) print(power(a, n))
[ "noreply@github.com" ]
dmitryokh.noreply@github.com
d17c784e4f5fe6bed513799634a673e566433300
7c3ba04f7a7894d95da7ef0affc57e609ca03459
/differentModels/train4.py
57f5451f13bb596efbbaab4aa44fd2e488751e37
[]
no_license
muellerelias/nnpostprocessing
cc49adbbc17cdb15e5923e485823687c6f3e3a77
f4686cd205c95da232f9711dea69d250efe20ac9
refs/heads/master
2023-01-28T09:56:53.692428
2020-12-15T08:31:23
2020-12-15T08:31:23
272,470,116
0
0
null
null
null
null
UTF-8
Python
false
false
6,193
py
# go to parent directory import sys sys.path.append('..') import argparse import json import os from datetime import datetime import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from tensorflow.keras import utils from tensorflow.keras.layers import (Activation, Concatenate, Dense, Embedding, ...
[ "elias@mumail.de" ]
elias@mumail.de
295b40469d0181e648db1e4009021cac508e9f74
bf2553af41f11067751000f4e504399cce5c4e49
/Prediction of Wastewater Treatment Plant Performances by Artificial Intelligence/Asya/ultrafiltrasyon/forxgboost.py
4d0ae375c5449b2facac0236eb71af17ac28fd9e
[]
no_license
emrecemaksu/Python
ae6d27bd934b050c962527310a6be13bdec462ff
07091f100293999f9669120ba5bf28ea2f8dff2d
refs/heads/master
2020-06-19T14:57:11.121356
2019-07-13T18:20:31
2019-07-13T18:20:31
196,753,154
0
0
null
null
null
null
UTF-8
Python
false
false
3,044
py
# -*- coding: utf-8 -*- """ Created on Thu Feb 20 21:13:46 2019 @author: emrecemaksu """ import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.preprocessing import Imputer from sklearn.model_selection import train_test_split from sklearn import ensemble from xgboost.sklearn import XGBReg...
[ "emrecemaksu@hotmail.com" ]
emrecemaksu@hotmail.com
1a83cc3491267b032c141421d5d9bb8d0fc1472a
c702d957c9bb1655ffab7da46c54fc3d0c1c21a8
/flask/citation_venn.py
2bba0088e32f1622be58f24ad0ba7b251a79a9c6
[]
no_license
julianpistorius/Webdev-for-bioNLP-lit-tool
87af23f5657b58a4e914057f1e5bbfe3b8ab2159
3a1646314c21a0b749437fa08fd63ff50f330e0c
refs/heads/master
2021-01-25T09:44:54.349659
2017-06-06T19:01:22
2017-06-06T19:01:22
93,875,232
1
0
null
2017-06-09T16:00:34
2017-06-09T16:00:34
null
UTF-8
Python
false
false
3,357
py
from database_management import db_citation_titles, db_citation_pmc_ids from itertools import combinations from collections import defaultdict #pmid_list = ['18269575'] #pmid_list = ['18269575', '18952863'] def make_venn(pmid_list): i = 0 i_count = [] all_pmcids = [] #[pmc1, pmc2, ... pmc-n] pmc_id_...
[ "hclent1@gmail.com" ]
hclent1@gmail.com
91d36c7e5037514ae3939fb1980f2e0cd06f21b7
90656f5ce4efdf07ea0a61ad425673887e517371
/ch8/message.py
fec37600c7f48a2cda8521e610a80c72b491bfe9
[]
no_license
fjluartes/pcc
bec2e15e8b70aaee11f562cdf78c39e3a9844269
cda4510937f5772d3a0a0b51609ab9554206aa06
refs/heads/master
2021-06-04T14:37:03.953253
2020-05-03T13:09:10
2020-05-03T13:09:10
144,001,097
1
0
null
null
null
null
UTF-8
Python
false
false
184
py
#!/usr/bin/env python # message.py: Exercise 8-1 # 22 Aug 2018 | fjgl def display_message(): """Display a message""" print("I'm learning about functions.") display_message()
[ "fjluartes@gmail.com" ]
fjluartes@gmail.com
22dd5027964a66ca1a9bb0aa89892e6a475aa7d9
f67fe1dfb0c02cab1e61db17bbec9948ac907a6c
/torch_utils.py
7cf684213d67772c20a361b184633efaac7e8d5f
[ "Apache-2.0" ]
permissive
terrifyzhao/torch_utils
c404435896ae9aed23c50d55d13339343114f909
5a62cc1e97435db02c0441f9f95d69d6f5db9e15
refs/heads/master
2022-11-27T10:15:36.738686
2020-08-06T01:43:39
2020-08-06T01:43:39
285,166,603
0
0
null
null
null
null
UTF-8
Python
false
false
7,759
py
import torch import time import numpy as np import six class TrainHandler: def __init__(self, train_loader, valid_loader, model, criterion, optimizer, model_path, batch_size=32, ...
[ "zjiuzhou@gmail.com" ]
zjiuzhou@gmail.com
67c1f43f556c5731c6222cc2ab1ca7d5cf18afd8
685e4b07ee6458a9eb5be4cc213c940050c7af0b
/Kg Convert.py
8d50a92cf1ff4e88af1bb874b6836aa8543bfe84
[]
no_license
FatematuzZohura/Python
574343ef46651ac6478e50966d7c04eb0811935f
36e1abe6cb701ac38a3504d02cf8564ba0916426
refs/heads/main
2023-08-17T05:41:00.459969
2021-10-05T04:35:58
2021-10-05T04:35:58
410,034,302
0
0
null
null
null
null
UTF-8
Python
false
false
1,493
py
from tkinter import * # Create a GUI window window = Tk() window.title("Converter app") # Function to convert weight # given in kg to grams, pounds # and ounces def from_kg(): # convert kg to gram gram = float(e2_value.get()) * 1000 # convert kg to pound pound = float(e2_value.get()...
[ "noreply@github.com" ]
FatematuzZohura.noreply@github.com