blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
8c1a596f8ba65d65f9c4899ecd364bcdf3594c90
cbdd3a43a5c2939b4f823ea76eb9d1a2268048d8
/script6.py
130ec2091a1e2796c41e7170041dc3973786dbc7
[]
no_license
wtyhome/Python-Learning_Examples
a27718cb6defd2ddd454eab64701e5a2435cc217
f9b1578c314d4e3777751e07d696a97b26c6d903
refs/heads/master
2021-09-01T02:05:03.995507
2017-12-24T09:58:06
2017-12-24T09:58:06
111,981,861
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
def f(n): if (n <= 2): return 1 else: return f(n-1)+f(n-2) while (1): inp=input("Please input a integer: ") print(f(int(inp)))
[ "noreply@github.com" ]
noreply@github.com
c28c2671476fb15d870a763e1519e8780cb8bfe6
1948ee12b320691f0f72890db5b1c06421a26dd9
/rpcClient.py
ad0ae678845aff6199adbd024ef248d381309d39
[]
no_license
iaalm/ERNN
bb210c4c5ce74164160cabe573857750d6d05510
e413e6db839f1d0ec2f6ee56581356339d6c629f
refs/heads/master
2021-07-16T19:36:34.070610
2018-05-23T02:30:47
2018-05-23T02:30:47
86,991,255
1
0
null
null
null
null
UTF-8
Python
false
false
2,268
py
#! /usr/bin/python3 import os import json import argparse import xmlrpc.client parser = argparse.ArgumentParser() parser.add_argument("--url", default='http://10.60.150.247:8080', help="model dirs") parser.add_argument('--gpuid', default=0, help="gpuid") args = parser.parse_ar...
[ "iaalmsimon@gmail.com" ]
iaalmsimon@gmail.com
e861e6f38778b3cb1012c01744ac21982d20005e
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/third_party/catapult/third_party/gsutil/gslib/tests/test_resumable_streaming.py
51df48bbcc78d88ac397d4f63362591402c5b98d
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
Python
false
false
12,093
py
# -*- coding: utf-8 -*- # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
[ "enrico.weigelt@gr13.net" ]
enrico.weigelt@gr13.net
ff57c1b5699b0b44e79c3333e9abf9901b9959d6
713477bb8aa751bf686580b23433be854fb62fbb
/tornado_chat/urls.py
10779b8ceaa925b96c8352b13fc39d01320c87da
[]
no_license
SamuelMartens/tornado_chat
25a2fbe4fc84ba414de6adf8c432134201008ae6
d0c778a040ceb87e067a19fed8115c14fadf4b48
refs/heads/master
2021-01-01T20:35:53.785288
2016-12-23T01:49:13
2016-12-23T01:49:13
38,119,708
1
2
null
null
null
null
UTF-8
Python
false
false
491
py
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf.urls.static import static from django.contrib.staticfiles.urls import staticfiles_urlpatterns urlpatterns = patterns('', url(r'^messages/', include('privatemessages.urls')), url(r'^admin/', include(admin.sit...
[ "samuelmartens1993@gmail.com" ]
samuelmartens1993@gmail.com
7424ae8760e5af74ad03fa3cfef712ef7a6b3fd9
32ba9f1c35ae916d33b121daeeea8e1910a447d7
/tools/autoRivet.py
38e77ea55cc2928a7a2be0a6c84e7583fedcd208
[ "MIT" ]
permissive
rituparna/glTools
8b02fa2751e1b997f7a202c7df8a3dd3d3032722
c512a96c20ba7a4ee93a123690b626bb408a8fcd
refs/heads/master
2020-03-19T19:23:47.684580
2018-06-10T23:53:58
2018-06-10T23:53:58
136,853,456
0
0
null
2018-06-10T23:46:54
2018-06-10T23:46:53
null
UTF-8
Python
false
false
9,798
py
import maya.cmds as mc import maya.OpenMaya as OpenMaya import glTools.utils.base import glTools.utils.component import glTools.utils.mesh import glTools.utils.stringUtils import glTools.utils.surface def autoRivet(createRivetTransform=True,suffix='rvt'): ''' ''' # Get User Selection sel = mc.ls(sl=1) # Check S...
[ "grant@bungnoid.com" ]
grant@bungnoid.com
d9f4e1dbccdff6ef654c8b6565d4707c7371f01e
b86eadecf9291fd0daf98f5742103e35e3689302
/examples/noisychannel/rerank.py
13036926e0d99518dabd36fa91e8b8f7de4b1140
[ "MIT" ]
permissive
fe1ixxu/fairseq-for-en-ar
1aaf47137b21caf17dac347c894c8a4f698a4d0b
9477ffa2ac3a4fda99c596a4741f394e77aff9ab
refs/heads/master
2023-07-05T03:33:08.358307
2020-12-09T17:04:41
2020-12-09T17:04:41
313,188,203
0
1
MIT
2021-01-06T21:08:16
2020-11-16T04:09:47
Python
UTF-8
Python
false
false
14,069
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math from multiprocessing import Pool import numpy as np from fairseq import options from fairseq.data import dictionary from fairseq....
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
54addb95c6462365f87d2f1983a65aaf4653ee16
c9d99f8a8e2f41bba4605c6564329eaa35d93857
/day1/lingxing.py
264fb96a8b237e131033f33e2c319af4d61d427e
[]
no_license
rhflocef521/myproject
c86be05b5029ffe9e8a11ae660a3205253a51449
996ddee17b86f8378a4ebeb4ca14c13f66e3900f
refs/heads/master
2020-04-29T06:52:50.709035
2019-03-16T06:11:51
2019-03-16T06:11:51
175,928,043
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
if __name__ == '__main__': h=int(input("请输入行数:")) n9=range(1,2*h) for i in n9[0:h]: for j in n9[0:h-i]: print(" ",end="") for j in n9[0:2*i-1]: print("*",end="") print() for i in n9[0:h-1]: for j in n9[0:i]: print(" ",end="") fo...
[ "997828925@qq.com" ]
997828925@qq.com
1e35a3a9015a41b2e9efe5869fe8c89e96675507
c5b9f0fabffb6b2d13c6e350c8187a922709ac60
/devel/.private/pal_interaction_msgs/lib/python2.7/dist-packages/pal_interaction_msgs/msg/_AudioPlayActionFeedback.py
a169c9fb26b06ceeec9384b82fc172628fb734df
[]
no_license
MohamedEhabHafez/Sorting_Aruco_Markers
cae079fdce4a14561f5e092051771d299b06e789
0f820921c9f42b39867565441ed6ea108663ef6c
refs/heads/master
2020-12-09T02:43:00.731223
2020-01-15T17:31:29
2020-01-15T17:31:29
233,154,293
0
0
null
2020-10-13T18:46:44
2020-01-11T00:41:38
Makefile
UTF-8
Python
false
false
12,092
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from pal_interaction_msgs/AudioPlayActionFeedback.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import pal_interaction_msgs.msg import genpy import actionlib_msgs.msg im...
[ "mohamed@radiirobotics.com" ]
mohamed@radiirobotics.com
19c8b2f32b652f4db16b8edc0ecdc3cdbd64a368
404943d3a02d4e6331a739b0cbdc58fd2f72f080
/hgntransformers/modeling_tf_auto.py
6712e5dcda8bb454cff73e5da37a0c797a46d683
[]
no_license
enterpriseih/sentgraph
d62319d4cfc1d787b947c118586f99f49cf8d271
32ba2c94d8a2736881327037ce33801ed157bf47
refs/heads/main
2023-08-19T02:58:12.095142
2021-05-28T17:34:05
2021-05-28T17:34:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
58,498
py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # 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...
[ "guangtao.wang@jd.com" ]
guangtao.wang@jd.com
2519156c6da4180c2448a0637cbcdaea6a256529
fd2931f5e1721f469d5113f7b70ec721f3288503
/my_house_settings.py
6ac57f9b524ecbffef04039eafd214a1ad8aa474
[ "MIT" ]
permissive
RasPiPkr/myHome
fbfb79b291e2e41ca0500d43117ae4942ca5cb6b
213a09946a20c27743fa4c8fc90acb128911ab0c
refs/heads/main
2023-02-05T21:54:21.907145
2020-12-21T19:36:56
2020-12-21T19:36:56
313,453,355
2
0
null
null
null
null
UTF-8
Python
false
false
2,672
py
# Settings for my Heating & Security Control # GPIO pins used on Raspberry Pi relayPins = [18, 23, 24, 22, 6, 13, 19, 26] pirPins = [21, 20, 16, 12] # CCTV variables user = '' # In the string put your user name for your cctv system passwd = '' # In the string put your password for you cctv system camIP = '' # In the ...
[ "noreply@github.com" ]
noreply@github.com
a519ec832241bd1385af8e97a2212ce45f79158a
255b559089b5ee50b396505ae3caf443a6e1a82d
/rest_api.py
dad455f932fbcfd1de4bfa7e68f4ff62c2ae7b1b
[]
no_license
rdorame/ParcialLabWeb2
18176bc6f9c36bb344851585e362b3ab62c4b16c
5f4f47f76523fee75962d8260a63bcd5337402c0
refs/heads/master
2021-01-23T01:02:18.575549
2017-04-01T12:48:24
2017-04-01T12:48:24
85,868,661
0
0
null
null
null
null
UTF-8
Python
false
false
29,892
py
import endpoints from google.appengine.ext import ndb from google.appengine.api import app_identity from protorpc import remote import jwt import time from CustomExceptions import NotFoundException from messages import EmailPasswordMessage, TokenMessage, CodeMessage, Token, TokenKey, MessageNone from messages import...
[ "a00397978@gmail.com" ]
a00397978@gmail.com
cce41f4aca21801834da31dc392b6b100c9a480b
3fc5b3783f0cfe5f4a13959ccef2b5ad916ecaae
/CRN_Pascal_Pretrain/utils/params.py
f8e914e232a9481f89b62f22f3836b8d2c51ca09
[]
no_license
feinanshan/Motion-Guided-CRN
4ba0f4cc06ced6b6968f24aa5e71912560612fef
69c705ee3e1008ca373854172234ac765af7cfe9
refs/heads/master
2021-04-12T11:08:16.236573
2020-03-24T02:58:38
2020-03-24T02:58:38
126,672,764
32
2
null
null
null
null
UTF-8
Python
false
false
1,576
py
import ConfigParser import numpy as np from ast import literal_eval class Params(object): def __init__(self,config_file='./config.ini',for_test=False): parser = ConfigParser.ConfigParser() parser.read(config_file) self.gpu_nums = 1 # model self.network = parser.get("model", "network") self.backbone = p...
[ "pinghu@bu.edu" ]
pinghu@bu.edu
a665f4e9d1535345865d92f2914bbc0053c2cfc2
fda6735097ae1d0ef548b5789eb22398ce550d5e
/Learn_TensorFlow_2.py
f595a1b68655adc5a4da3c720109fe8d26270516
[]
no_license
ll2088/zyy_ML-DL
fa618d7eba4ca4753f450b0d70bc2178b9c6e5fc
5f96bb89433d62657806b7c8182cb1f80b02f772
refs/heads/master
2020-04-26T18:20:38.385870
2017-07-14T10:03:13
2017-07-14T10:03:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,002
py
# author zyyFTD # Github: https://github.com/YuyangZhangFTD/zyy_ML-DL """ this code is for python3 """ import tensorflow as tf # import tensorflow c = tf.constant(1.5) # creat a constant x = tf.Variable(1.0, name="x") # creat a variable add_op = tf.add(x, c) # creat a...
[ "noreply@github.com" ]
noreply@github.com
50ed3cd85600e58486c075ad4959cb463d45996b
57bb0379d20ffdc5fd9f4ca5b71246c1d7efdf5e
/models.py
2140a5545279cd51f447c5684b94e0a4c9e60ba2
[ "Apache-2.0" ]
permissive
albertounivr/deep-spatial-join
f042ec1b9abe625cc8abf8d52fa37877f328f442
fd773054324e8a70a640811371d8f8268b720258
refs/heads/main
2023-02-22T13:20:41.165410
2021-01-23T20:39:47
2021-01-23T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,661
py
from keras.models import Sequential, load_model from keras.layers.normalization import BatchNormalization from keras.layers.convolutional import Conv2D from keras.layers.convolutional import MaxPooling2D from keras.layers.core import Activation from keras.layers.core import Dropout from keras.layers.core import Dense f...
[ "tvu032@ucr.edu" ]
tvu032@ucr.edu
6d90a0ac27da6ecb3acd52f2b6882b65fcd0ebfe
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_whiles.py
bad0312c2f1f431ec0236df694d9d915d4795784
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
#calss header class _WHILES(): def __init__(self,): self.name = "WHILES" self.definitions = while self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['while']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
412c804b61fcad10d8f77cc05838e2bcba100656
3808e4f5c40e71d1e2e559014eaab50a8f4113cd
/api/models.py
bfda4c13d07a292f3ed5d5be09eebe50ebfcb565
[]
no_license
Sam17SJ/apiDjango
8488c77aad9211278d1af3c345b8087b373ba386
5c921d0c2b3df6a81b4f08f6a0872475fc4c1e6f
refs/heads/master
2021-04-29T18:02:05.344677
2018-02-15T21:33:23
2018-02-15T21:33:23
121,684,984
0
0
null
null
null
null
UTF-8
Python
false
false
2,905
py
from django.db import models from django.contrib.auth.models import User # para la aplicacion de cuentas from django.conf import settings from django.db.models.signals import post_save from django.dispatch import receiver from rest_framework.authtoken.models import Token from django.contrib.postgres.fields impor...
[ "samuel.jaimez17@gmail.com" ]
samuel.jaimez17@gmail.com
758eb2b29442850b638c5036cabcffb5d46abe6c
0a78bfd9f0c6390cf86c39a03010000afc9864eb
/feapp/data/__all_models.py
24ed4ed84216e6ece3aa4ab2b75bc263e891dbe3
[]
no_license
BlueRaccoonTech/glaceon-live
b1601a647adf96e7bdd2b0f66ced70a5b3ac96ea
78d7ccebdfbbaefc10a7f8cfdbcd2bbed0266ec8
refs/heads/master
2023-06-30T22:12:45.625830
2021-08-07T18:33:34
2021-08-07T18:33:34
262,346,822
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
# Add all your SQLAlchemy models here. # This allows us to import just this file when # we need to preload the models and ensure they # are all loaded. # noinspection PyUnresolvedReferences import feapp.data.users # noinspection PyUnresolvedReferences import feapp.data.userData # noinspection PyUnresolvedReferences im...
[ "admin@frinkel.tech" ]
admin@frinkel.tech
b8101c53003873718f0b8e17c85360c68a645746
f817ce9e7a52caf0363e8dfb8c47d2700fa627e2
/PythonApplication1/module3.py
b3a965bc2fa848d6561f47361bec26e78a3d6b90
[]
no_license
myweblab/python-playground
86ce204b03b512fdc8ba37acc648d79c2e0341c0
7281eaa230e823154c9b7967b6f075c8c9ecef62
refs/heads/master
2021-07-10T23:06:30.860366
2020-07-25T16:27:53
2020-07-25T16:27:53
179,026,780
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
from threading import Thread import time def timer(name,delay,repeat): print("timer : " + name + " Started") while repeat > 0: time.sleep(delay) print(name+ " : " + str(time.ctime())) repeat=-1 print("Timer {0} Completed".format(name)) t1 = Thread(target=timer, args=("Timer1",10,100...
[ "myweblab.net@gmail.com" ]
myweblab.net@gmail.com
38e1ac549e2c738598e7f8b8a5db19f186b0d74b
fb124e51024917d6479fa626d9607ff10f7a3aba
/storm-control/storm_control/hal4000/qtWidgets/qtRecordButton.py
8a9355923cc8f4b86fc922976debc0cd0dfdcb7d
[ "MIT" ]
permissive
BehnamAbaie/storm-control
054bd7bbd903ed9635e4d1121c30544f58473c4f
0c686321142eccad62ce3365eae22c3b69229b0d
refs/heads/main
2023-06-18T08:04:01.108874
2021-07-14T00:51:15
2021-07-14T00:51:15
342,049,487
0
0
null
null
null
null
UTF-8
Python
false
false
1,391
py
#!/usr/bin/env python """ QPushButton specialized to be a record button. Hazen 4/17 """ from PyQt5 import QtWidgets import storm_control.hal4000.film.filmRequest as filmRequest import storm_control.hal4000.halLib.halMessage as halMessage class QtRecordButton(QtWidgets.QPushButton): def __init__...
[ "noreply@github.com" ]
noreply@github.com
8c95e3772bbb9784cb8138d5752fbd7bbd395038
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_017/ch16_2020_10_05_20_15_18_245128.py
d2bd590ba92f6842d0715be3eeff220f31237ae8
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
x= float((input("Qual o valor da conta? ")) valor =(1-0.01)*x print("Valor da conta com 10%: R$ {0: .2f}".format(valor))
[ "you@example.com" ]
you@example.com
7b92ab44783deefca94f9bbd15a2e1ab10d82f64
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/network/v20201101/private_dns_zone_group.py
78e2a5b2cd6fea5f4afb1338719284a7a073f414
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,488
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
noreply@github.com
35b4d4fbde92b3460aca90708c121ce65a8d17d9
30d46864106e1d1b4e88c3552a29da8f2b8d48d3
/otv/Transfert_Donnees/Params/Mensuel.py
6ff49df5107b7132126d23b07b6aeff30d5f4054
[]
no_license
nantodevison/otv
c69491f1ea68e537e9eabe1da6cec9dc8b5e35b6
e591644d6c83945a8550bdc52292c67be9495e92
refs/heads/master
2023-05-12T01:54:54.528087
2023-04-26T12:24:55
2023-04-26T12:24:55
168,543,113
0
0
null
null
null
null
UTF-8
Python
false
false
993
py
# -*- coding: utf-8 -*- ''' Created on 18 nov. 2021 @author: martin.schoreisz ''' dico_mois={'janv':[1,'Janv','Janvier', 'janu'], 'fevr':[2,'Fév','Février','févr','Fevrier', 'febr'], 'mars':[3,'Mars','Mars', 'marc'], 'avri':[4,'Avril','Avril', 'apri' ], 'mai':[5,'Mai','Mai', 'may'], 'juin':[6,'Juin','Juin', ...
[ "martin.schoreisz@cerema.fr" ]
martin.schoreisz@cerema.fr
f8dd78549cbe1632023d0aaa45a680d04ff64af2
34a4231a53f25cf4ac760569a2e3287d822dc312
/example/example_24.py
aa70721470842fe967b2e1aa262c677cb204c861
[]
no_license
galaxy-tek/python_study
22f74110e557a86da1e5e2cfc3914710c5b56eed
75cb14d588cab7a50744dbc19a7d93ae4b628ffe
refs/heads/master
2022-04-17T20:45:19.437550
2020-04-07T14:32:16
2020-04-07T14:32:16
104,577,457
0
0
null
null
null
null
UTF-8
Python
false
false
7
py
## ##
[ "haikunxu@126.com" ]
haikunxu@126.com
5a62c1a7a86c023c06ef0508c2747dd67883cf13
167cc4c25f570d285b54302d65252cb278b234c8
/project_0/KNN_code1.py
fd63bd12a43583d91e133f3668fd4cf8f73a5788
[]
no_license
divanshu79/k-nearest-neighbor
011106b0d91d14ff6b64ad1faa07603fa5e9719f
9289f109aaec95ada6a426c0652f99000b031368
refs/heads/master
2021-05-12T18:43:45.066714
2018-01-11T08:45:08
2018-01-11T08:45:08
117,072,858
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
import numpy as np from sklearn import preprocessing, cross_validation, neighbors import pandas as pd import pickle # accuracy = [] df = pd.read_csv('breast-cancer-dataseta.txt') df.replace('?', -99999, inplace=True) df.drop(['id'],1,inplace=True) x = np.array(df.drop(['class'],1)) y = np.array(df['class']) ...
[ "noreply@github.com" ]
noreply@github.com
91b0f84bf061aa67f635b39ccd699dddb0873f50
f20e87f2256203075a74fab01abfbb54e259d4b9
/93-Arithmetic expressions.py
f08c8e9b8b15d318e542c98473837f2e8ed60f8e
[]
no_license
ekolik/-Python-Project_Euler
8873b5268af067dee697d83ad0db3669b318a83a
97df0443b3eeee5bcb385e495f2dc8fc1bf62691
refs/heads/master
2020-04-10T03:56:09.038426
2016-07-15T22:56:11
2016-07-15T22:56:11
30,852,067
0
0
null
null
null
null
UTF-8
Python
false
false
1,557
py
from operator import add, sub, mul, truediv from itertools import permutations, product, combinations mx = 0 for digitset in combinations(range(1, 10), 4): res = set() for item in permutations(digitset): for oper in list(product([add, sub, mul, truediv], repeat=3)): cand = oper[1](oper[0]...
[ "kolikova@gmail.com" ]
kolikova@gmail.com
b528ff65f964dac95f78ba32df4088d8dc634103
0c358afdb06667607fb93a5b1c022328d6704b69
/Lab2/main.py
12daf2296b633bba67fa45950ac914387754fa5f
[]
no_license
i1red/db-5th-sem
b5ca0095d037da15c1919ec2abb534268ad06760
817a4b1323b56b7a6a69bc1380d4d6e5257f8f9f
refs/heads/master
2023-01-29T00:53:24.642769
2020-12-15T10:22:53
2020-12-15T10:22:53
300,396,714
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
py
from fastapi import FastAPI import models import schemas from router_utils import create_router, create_one_to_one_router, create_one_to_many_router, create_many_to_many_router app = FastAPI(title='Combat Sports API') app.include_router( create_router( 'promotions', models.Promotion, schemas.PromotionIn,...
[ "ivankras67@gmail.com" ]
ivankras67@gmail.com
559a5b83c5f1a5efa4675793fbc5f8a9f6a17a33
5b51418652ffad300585463941b4ea15775daf69
/SimpleWay/Levels_Setup.py
59657ceb8eac0edd0752daea06701ba911412fe0
[]
no_license
bguernouti/LevelSystem
b7194a93674cb2858ad413d69afd97c8ac177d19
2db75c6b985f197f0525b5f222f14beacd3fdf13
refs/heads/master
2020-12-23T09:17:31.798737
2020-02-02T11:54:09
2020-02-02T11:54:09
237,108,837
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
class Level_List: _Levels = { 1: 1000, 2: 1500, 3: 2000, 4: 2500, 5: 3000, 6: 3500, 7: 4000, 8: 4500, 9: 5000, 10: 6000, }
[ "bguernouti@gmail.com" ]
bguernouti@gmail.com
def1d4490f9cf636707e654d2f964e7e91d57510
78a6163d421d95b5c07bf6d3ee979122cc97e809
/config-tool-ice/ytproperty.py
b514cfb71a24614b28490474faed067f1a7ffcdf
[]
no_license
yuanyaru/configTool
dc65f4abb527188f8231b09dedda300fd17c16ed
ba6293de1d2a02e9a25dc8d308061566c85066ae
refs/heads/master
2020-07-02T16:57:03.529746
2019-08-19T08:09:36
2019-08-19T08:09:36
201,596,495
0
0
null
null
null
null
UTF-8
Python
false
false
2,310
py
#!/usr/bin/python # -*- coding:utf-8 -*- from flask import Blueprint, request from iceCon import ice_con import json import Ice Ice.loadSlice("./ice-sqlite.ice") import YTArea yt_blu = Blueprint('yt', __name__) # 查找(遥调属性) @yt_blu.route('/yt_data', methods=['POST']) def get_yt_property_send(): stationId = request...
[ "398916756@qq.com" ]
398916756@qq.com
403ad416790d1ee65ab89443ebe669baefcb06c0
73c1734a5bab096ef348601beececea5adc8c5f5
/test1.py
a67bfbedade63a30c6010f0f071d765d81ba94b0
[]
no_license
WellingtonAmorim/testsondagem
ce362fb35caef452840be83dd0c21cceb8f382e4
0a348dbc47831f11cdad1b113f02a2b31572b224
refs/heads/main
2023-07-16T09:50:45.637522
2021-09-02T19:01:48
2021-09-02T19:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
import requests from concurrent.futures import ThreadPoolExecutor, as_completed import time url_list = [ "https://via.placeholder.com/400", "https://via.placeholder.com/410", "https://via.placeholder.com/420", "https://via.placeholder.com/430", "https://via.placeholder.com/440", "http...
[ "noreply@github.com" ]
noreply@github.com
4631da8d5d4d98a49d4adf28bf4567c9c0bd866f
1ddc74d79b2b62cbf910d2206963b778a15797c7
/binary_search.py
0edef03874c0fe91e3e3e3b794b46a94b0cfc8f1
[]
no_license
ckz8780/python_algorithms
dbe064754a3610a641aea45e4006b36bb86e6c35
4551a179a32c41af28120efb3569799d349a7130
refs/heads/main
2023-02-07T07:54:45.751612
2020-12-31T23:44:17
2020-12-31T23:44:17
325,882,473
1
0
null
null
null
null
UTF-8
Python
false
false
1,098
py
data = [2, 3, 5, 7, 9, 12, 15, 17, 18, 20, 23, 25, 28, 30, 33, 34, 35, 37] target = 25 # Linear Search def linear_search(data, target): for i in range(len(data)): if data[i] == target: return True return False print(linear_search(data, target)) # Iterative Binary Search # To use binary search, list ...
[ "ckz878@gmail.com" ]
ckz878@gmail.com
06b826743e84279007efad50a2f248c317022896
3ac278b2d0e469e6e8d61da963782bccfd3a51b6
/build/mav_state_machine_msgs/catkin_generated/generate_cached_setup.py
09307dfe4ae74f29af5a2c2dd7fea57c4ae24c8b
[]
no_license
erl-ethz/haptic_ws
a08971c8f99a1aa5f574d9d898c189a9726a9ab6
8f02d35a52c08f5729ae7a489dee9e3f2bd6f110
refs/heads/master
2023-02-19T02:50:12.377601
2021-01-12T15:51:12
2021-01-12T15:51:12
325,560,695
0
0
null
null
null
null
UTF-8
Python
false
false
1,350
py
# -*- coding: utf-8 -*- from __future__ import print_function import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys.path.insert(0, ...
[ "emanuele.aucone95@gmail.com" ]
emanuele.aucone95@gmail.com
45865e541a768afcf6947a0829b5e3b49e84c55a
bb3b31c8fd3c3e74376f05094f9436f18e4d31d0
/src/main/c++/examples/pybullet/examples/humanoidMotionCapture.py
c823dc1de774670077c9a0e52b27d8904237b6ac
[ "MIT", "Zlib" ]
permissive
yildiz-online/component-native-bullet
af1e08f27744287ebe5494fc58b873832a6fcc9c
1ed2bf7a01b888622b7bea323e239e3dcd8ba634
refs/heads/develop
2021-01-21T03:34:34.490565
2020-05-02T14:43:03
2020-05-02T14:43:03
101,897,097
0
0
MIT
2020-05-02T14:43:04
2017-08-30T15:17:50
C++
UTF-8
Python
false
false
8,638
py
import pybullet as p import json p.connect(p.GUI) #p.configureDebugVisualizer(p.COV_ENABLE_Y_AXIS_UP , 1) import pybullet_data useMotionCapture=True useMotionCaptureReset=not useMotionCapture p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.setPhysicsEngineParameter(numSolverIterations=200) #path = pybull...
[ "vandenborre.gregory@hotmail.fr" ]
vandenborre.gregory@hotmail.fr
50faeae0894485df5c3a03fa5afe161265b94cc9
33fea8d6ca343044796366d9e489b2eed9b1b70d
/Homework/a3/utils/parser_utils.py
22f7f7035f3260553b2f48d2d221e751dfafc3af
[ "MIT" ]
permissive
LFhase/Learning_CS224N
25b347c2c93f7d02e802ee8fde093b57245b3e1a
21af6dd4f7b9dcb3f34aac9c2cebf4a02a17176f
refs/heads/master
2021-01-16T02:18:54.949755
2020-09-23T02:55:46
2020-09-23T02:55:46
242,939,774
6
1
null
null
null
null
UTF-8
Python
false
false
15,808
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ CS224N 2018-19: Homework 3 parser_utils.py: Utilities for training the dependency parser. Sahil Chopra <schopra8@stanford.edu> """ import time import os import logging from collections import Counter from .general_utils import get_minibatches from parser_transitions i...
[ "rimemosa@163.com" ]
rimemosa@163.com
bf06e74cf8597dd2a18aa2da1089aceb7d28c43d
4a91c38d50d9c8ba5ff2c1adcc3a611611788733
/data_analysis_forThesis.py
f1cdbcfc58e344275bc9ee8c97ce9d72c51949ae
[]
no_license
heewonpark/DataAnalysis
944d33b61532ae37d19ec31bed9140397014cd51
9b0dfb1d58b135f03bc8f2e6d8d5bd6952479e98
refs/heads/master
2021-01-21T12:06:56.475481
2016-03-19T06:31:33
2016-03-19T06:31:33
28,217,704
1
0
null
null
null
null
UTF-8
Python
false
false
11,193
py
#! /usr/bin/python # coding: UTF-8 ############################################## # This file is written by Park # Edited in 2015.03.23 ############################################### import stfio import numpy as np import matplotlib.pyplot as plt import math import os.path #import seaborn as sns from SpikeDetector i...
[ "park.brainlab@gmail.com" ]
park.brainlab@gmail.com
9eb2a02715208ed6e0124decfad21ddb2fc33527
401aa55f4db07846bc567af007df3a9e9c197353
/main.py
3beca79208cea2db4f1d542b4c715b7322c9e94e
[]
no_license
hachibeeDI/learn-deeplearning
9adf4872a16cacd098ad80ed157740ed4c4a54a7
683ad03c05efed5e06aa968056cfb703264ecbc7
refs/heads/master
2021-04-09T10:20:27.167866
2018-03-31T12:58:10
2018-03-31T12:58:10
125,313,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,731
py
import numpy as np from matplotlib import pylab as plt from src import exp class Chap_3_3: def confirm_sigmoid(): x = np.array([-1.0, 1.0, 2.0]) y = exp.sigmoid(x) plt.plot(x,y) plt.ylim(-0.1, 1.1) plt.show() def confirm_exp_3_9(): """ p60-p61 ...
[ "8hachibee125@gmail.com" ]
8hachibee125@gmail.com
9cde44866d0e5b7b3b6c3c540e755ecc32f55691
002c182e171ffa52d28bef8ebc9622cd252201c0
/counter.py
820815cf39ba3eb61da5522409189b7ad2b55991
[]
no_license
pinkcoderunicorn/Mean-Median-and-Mode
865b012f3adfcea765e530d4cc618f04c71b13b0
8e9541c5be80a5f3e09c56eeef4bc85ae584adda
refs/heads/main
2023-07-09T14:42:02.017397
2021-08-22T05:20:01
2021-08-22T05:20:01
398,720,559
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
from collections import Counter new_data = "whitehatjr" data = Counter(new_data) print(data) new_list = data.items() print(new_list) value = data.values() print(value)
[ "noreply@github.com" ]
noreply@github.com
6cdb12e87e1c58c080e8da087c4144b04d09ebfb
d469ad948b8d0f199fc1bbdb625678d68c87b919
/exp/nb_copernicusActivations.py
999afdc8d7be242ad6bf479f1030fcb00bd6d643
[ "Apache-2.0" ]
permissive
dmbernaal/copernicus
4723b07b074e58dea294b5192d43ba111ac4f2f0
4e4b9692418bf6575f69a5b6de7228765266d14e
refs/heads/master
2020-12-12T00:29:33.356928
2020-01-15T04:19:56
2020-01-15T04:19:56
233,995,659
0
0
null
2020-01-15T04:19:57
2020-01-15T04:06:59
Jupyter Notebook
UTF-8
Python
false
false
1,970
py
################################################# ### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### ################################################# # file to edit: dev_nb/copernicusActivations_001.ipynb import torch import math import torch.nn.functional as F import torch.nn as nn # mish activation class Mish(nn.M...
[ "dmbernaal@gmail.com" ]
dmbernaal@gmail.com
d7e63dc0aa5732d688a925eb77b33fd1951f4883
51981912bbe59bc2179aceae00d0a5d99ef2f9e7
/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/config.gypi
7f6004f3e577c1b395938a61022aecdd8cb62b4b
[ "MIT", "Apache-2.0" ]
permissive
bmdFalmouth/GTVServer
65b61da4e547f08fb435ada0a1f4a6fd0f50a32d
9bf96039b8c8a4ef202861d0dac127895c498553
refs/heads/master
2022-06-28T08:54:57.867608
2013-08-03T21:18:09
2013-08-03T21:18:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,986
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "clang": 0, "gcc_version": 42, "host_arch": "x64", "node_install_npm": ...
[ "brian.mcdonald1980@googlemail.com" ]
brian.mcdonald1980@googlemail.com
7eb8c4d235c5035ab3546fcd9eb03f4ca97c8e1a
b59b658f5e73883dd7bb096bb27ecb90df9ff499
/breakthrough/migrations/0005_databank_q_class.py
4250aefdf991454a9ff178de99d2ed5215fa593f
[]
no_license
Liewithen/Ape-Evolution
f7864b9295c2ab34425eb07b1a02ae25b8f95c9a
f2518999a157266d3dfb28baae25ea5167dfb6c1
refs/heads/master
2021-01-10T22:18:15.796754
2016-10-16T02:12:34
2016-10-16T02:12:34
70,323,923
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-09-27 09:50 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('breakthrough', '0004_auto_20160927_0840'), ] operations = [ migrations.AddFiel...
[ "jyyt528@gmail.com" ]
jyyt528@gmail.com
2f460c436140054e616edf206a5e6d9025614efd
cc394dac9219889d6dd59583d1a70e4ca58a47a4
/P7_E_2.py
bfdbb0774480ea47e7a1afd18bd727e9e1f46f94
[ "Giftware" ]
permissive
animformed/problem-sets-mit-ocw-6
de8462fb32d34f9d57dcef6e00ed53be1749e265
a51ff7e59a4e6ffa924db59a482a43e413644ce0
refs/heads/master
2021-01-22T07:32:57.873780
2014-10-22T01:02:33
2014-10-22T01:02:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
class MyError(Exception): pass def oops(): raise MyError('spam') #raise IndexError def run(): try: oops() except MyError as X: print 'oops caught!', X.__class__, X.args[0] except IndexError: import sys print 'IndexError caught', sys.exc_info()[:2] ...
[ "hbhattacharya@Himanishs-MacBook-Pro.local" ]
hbhattacharya@Himanishs-MacBook-Pro.local
98d3a767fabe37017451aec5edb5bf275ae80812
d1e8ac79c69b2c909ec739d841ae3fbb44539ad2
/assignment5_2.py
ab5d38db4202c91fb49637b2620f55a359508e3d
[]
no_license
Kyaw-Wonna-MM/assignment
6791f9a34ade12c70a3fbf03a8e9777a9d7b6115
8c7422b682021fb925c88a82b7cfbce388bd8ade
refs/heads/main
2023-02-03T13:19:13.321508
2020-12-16T18:39:11
2020-12-16T18:39:11
322,058,631
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
num = 0 tot = 0.0 while True: sval = input("enter a number: ") if sval == "done": break try: fval = float(sval) except: print("Invaild input") continue num = num + 1 #counter tot = tot + fval #sum all input print(tot,num,tot/num)
[ "kyaw.wonna3991@gmail.com" ]
kyaw.wonna3991@gmail.com
b9187104c05e26111ccbd49ca1e9b63f852fcce0
05b7a0b91f5edcf33e945d4cdc78c7dfe9d669da
/pybotfinal.py
eb14e74f941462ce0da48a51691ba86c622bcef9
[]
no_license
sindhurao385/IRC-bot-
b1f2d8ed513694f4a5b053218a60eda59433b6cb
b21f8ba60294b89789ee130033d0165d840b68b1
refs/heads/main
2023-07-18T22:05:06.268907
2021-08-31T15:35:02
2021-08-31T15:35:02
401,755,295
0
0
null
null
null
null
UTF-8
Python
false
false
4,627
py
#!/usr/bin/python3 import socket import random import sys sys.path.insert(0,"\HOME\Desktop") import dictionary from dictionary import motivational,literature,philosophical,jokes socket.getaddrinfo("182.73.209.206",6665) ircsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server = "chat.freenode.net...
[ "noreply@github.com" ]
noreply@github.com
47a4d611b83645f007dccbfdc22cb318abe48b66
78d7436e51d2b00e56b6d7234d5e7861b5431256
/3. Testing/CLAHE/clahe_test.py
80fe7258767363c79db2673c974ea270dd87d767
[]
no_license
sakthi-s/face-replacement-in-videos
7005943168a46febcc7a6ecfcf2e719517f9c2af
29a21b38197843bff338ec5d0b47b74cfcbd2cc3
refs/heads/master
2021-09-09T12:02:28.378885
2018-03-15T20:49:00
2018-03-15T20:49:00
78,509,906
5
0
null
null
null
null
UTF-8
Python
false
false
298
py
import numpy as np import cv2 img = cv2.imread('clahe.png',0) # create a CLAHE object (Arguments are optional). clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8)) cl1 = clahe.apply(img) cv2.imwrite('clahe_2.jpg',cl1) cv2.imshow('img',cl1) cv2.waitKey(0) cv2.destroyAllWindows
[ "noreply@github.com" ]
noreply@github.com
60aef547dda585aef44dcb5bcecd830a2b57519a
33fad70445b90dabc830f5c6a985a5c1522b7fe2
/shop/migrations/0011_auto_20191107_1833.py
77c65431b76bdb39406b877da81e299474bd2a8f
[]
no_license
Wald-K/sandbox
1b6521ee37179346ca13a348bfd4a1ba90da19e4
586a2570cd66b5008b308f3f2877970dfb7729a9
refs/heads/master
2022-12-11T18:18:17.997607
2022-12-07T18:15:43
2022-12-07T18:15:43
220,682,137
0
0
null
2022-11-22T04:38:37
2019-11-09T18:00:35
Python
UTF-8
Python
false
false
516
py
# Generated by Django 2.2.6 on 2019-11-07 18:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0010_auto_20191105_2209'), ] operations = [ migrations.RemoveField( model_name='category', name='products', ...
[ "1000druid@gmail.com" ]
1000druid@gmail.com
15e410315b08eaceeeb76925ab14d2131bde401e
ac3339c95afe9066d66ff009fb1b7c3fde927ee6
/Python/06_Django/02_Django/01_Dojo_Signal/dojo_signal/wsgi.py
d8263ab40949c7611d6eebfc0cb2c8f0b0f6bd6d
[]
no_license
aakasht05/DojoAssignments
5d5013700528084fd17f93ebaea55d20aeea2d9d
227f6deb62e75e07243ec9058d8557973b03840e
refs/heads/master
2021-05-03T15:46:39.527638
2018-04-13T05:59:38
2018-04-13T05:59:38
120,479,335
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
""" WSGI config for dojo_signal project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
[ "aakasht05@gmail.com" ]
aakasht05@gmail.com
4094d98bff825c29fbd92b7598849c23d0da9c4e
6c14b4d76dc8efa925ef55273b1f7c4b8ba7d2d1
/couchbase_smoke_test.py
d6e8851ab7335eaaa588e6cac6599439e3a5dc47
[]
no_license
sjdillon/couchbase_smoke_test1
23cb6c4dad7d3a9b81098ba54890e2c8ef5ae0d5
73fc2db0d8b2c415d8237d14bc146809796a28bd
refs/heads/master
2021-01-17T07:29:18.060220
2017-03-02T20:57:06
2017-03-02T20:57:06
83,723,785
0
0
null
null
null
null
UTF-8
Python
false
false
1,564
py
#!python #==========================================================================# # sjdillon # 1. quick smoke test to confirm nodes, buckets, credentials are correct # sets, gets, deletes keys against nodes in cluster, output exec time # stores cluster nodes in pickled json file #==================================...
[ "noreply@github.com" ]
noreply@github.com
f4de029c363753117ec6770d310257147ba9c193
75f0e04c6330950a9bd225fd8b62fdc9fb0021b8
/11.containerWithMostWater.py
da22be17ee8650062f7a31f774ab9d4f19f52b10
[]
no_license
Minzhe/LeetCode
f07bc1edce77cee778d7dc3c4a379921747637a5
e5cb0212cb83daac829456c14aec557e26eea68c
refs/heads/master
2020-05-04T11:25:07.084483
2020-03-09T02:10:17
2020-03-09T02:10:17
179,107,420
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
class Solution: def maxArea(self, height) -> int: i, j = 0, len(height)-1 area = (j-i)*min(height[i], height[j]) while i < j: area = max(area, (j-i)*min(height[i], height[j])) if height[i] < height[j]: i += 1 else: j -= 1 ...
[ "zenroute.mzhang@gmail.com" ]
zenroute.mzhang@gmail.com
9f831a525ca6b399a262076018968a9ab96e7468
93d2dc4c33e3fdb06a42166c0a85108ad8285971
/JOB_SEARCH.py
6e3272ada19b83b2d9aec20a5a9a6bf451b63c04
[]
no_license
Vikendra447/New-Repo
492693e36fbc93b4e4a7499412514624b9e470b7
b29c97fd7bdfafc33def0f3828203663c6b23c45
refs/heads/master
2020-07-29T15:47:40.053946
2020-04-04T10:29:36
2020-04-04T10:29:36
209,867,493
0
0
null
null
null
null
UTF-8
Python
false
false
7,926
py
from tkinter import * root=Tk() root.title('PYTHON PROJECT') var2 = StringVar() var2.set(" ") var1 = StringVar() var1.set(" ") Label(root,text=' J O B S E A R C H', font=('Helvetica',25),fg='black',relief=SUNKEN,bg='green').grid() Label(root,text='Student_Name', font=('Helvetica',15),fg='red').grid(ro...
[ "noreply@github.com" ]
noreply@github.com
abb2b363698247fe9e19e20fb4089a7c72b88b3d
0a6d0ea3a60ece86ec477e490605b063b2e8c060
/dlYouTubeFromLocalHtml.py
25c916d53da6626d1b89c0beac233c646349dff5
[]
no_license
alclass/bin
bdbe063d629c05e17f64dc27f71211e5881e1f3b
b4c5642c8d5843846d529630f8d93a7103676539
refs/heads/master
2023-07-24T11:36:50.009838
2023-07-09T20:26:42
2023-07-09T20:26:42
17,493,545
0
0
null
null
null
null
UTF-8
Python
false
false
1,301
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ''' import os, re, sys urlBase = 'www.youtube.com/watch?v=%s' commBase = 'youtube-dl "%s"' def getLocalHtmlFileFromSysArg(): htmlFilename = sys.argv[1] if os.path.isfile(htmlFilename): return htmlFilename print 'file', htmlFilename, 'is not here on local fo...
[ "livrosetc@yahoo.com.br" ]
livrosetc@yahoo.com.br
b62f2225a75e511adb64b907b5738e5bc64be07d
dcebb803285499f880e82c2aede20d1c109bb781
/openai/baselines/baselines/deepq/experiments/test_cloud.py
4ebfbd38ef4fc06e26dab0f9a300b80e92abe15a
[ "MIT", "BSD-3-Clause" ]
permissive
johndpope/ETHZDeepReinforcementLearning
1216f5e259f606e3c9228e7850e718cdccd6a280
e1ae22159753724290f20068214bb3d94fcb7be4
refs/heads/master
2020-03-22T02:27:54.928283
2017-11-22T23:22:53
2017-11-22T23:22:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,784
py
import gym from baselines import deepq from baselines.common.atari_wrappers_deprecated import wrap_dqn, ScaledFloatFrame from cloud_environment import CloudEnvironment import numpy as np import collections import os import csv import pandas as pd #Logging def logger_callback(locals,globals): done = locals[...
[ "habichta@ethz.ch" ]
habichta@ethz.ch
170937f98cbb80d0f021d4d3abe42bffac2d8cd2
25c82a44aa025944f441cce1d7001dbec326561b
/DataProcessingPipeline/prefit_raw_data_baselines.py
0feab2ae1684ee6464fb9e538fab0209afcce280
[]
no_license
thogge/RAMPS
4eabfe022c873ebfad828f9336dc41d464eb7ebf
8718191fd1f1f8770804847b19fa017b347da213
refs/heads/master
2021-12-28T03:41:15.744828
2021-11-11T21:51:42
2021-11-11T21:51:42
71,209,158
0
0
null
null
null
null
UTF-8
Python
false
false
6,467
py
""" prefit_raw_data_baselines.py Remove zeroth order baseline from raw data. This avoids poorly combined spectra in overlap region of combined data cubes if the baselines are unstable in the individual observations. Can optionally run this process in parallel. Example: python prefit_raw_data_baselines.py ...
[ "thogge@bu.edu" ]
thogge@bu.edu
e5831f21a2a52efc8089670d9e6429ba6eeb6897
bc5355f9385b891304e619a7e04d64c4a25e732c
/python/rlimit/Subprocess.py
4459ef398eeb6ea89429cf5e66ff17af174ed3ed
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
perror/librlimit
758c0a5db0d820b1099931679133dc73fa862f81
3bc3088d5f1044f0dfd18e6d25d235e511f719da
refs/heads/master
2021-01-02T23:06:38.758866
2012-07-02T14:28:35
2012-07-02T14:28:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,332
py
''' Subprocess is a Python class to control and profile processes in a convenient and flexible manner. It is primarily designed for black-box testing over untrusted code in an educational context. It is also fully based on the C library librlimit. ''' try: from ctypes import * except ImportError as err: raise ...
[ "emmanuel.fleury@labri.fr" ]
emmanuel.fleury@labri.fr
ce87752de022016b146ac72edb19df40cb67fffe
9d2b3f427d9ae37f195120246c243ac5eff2e2f9
/test/box_memcached/binary-get.test
c63eaaa72e009dfb8609daed2deb0fd465f6976d
[ "BSD-2-Clause" ]
permissive
zcoder/tarantool
12e64c670ce34524cd5b56a9cc9ee0703bc7c94e
74253ce7369e5571646ce47b47f72412c5de6cad
refs/heads/master
2020-12-24T21:37:00.570745
2011-12-25T19:22:04
2011-12-25T19:22:04
3,051,029
0
1
null
null
null
null
UTF-8
Python
false
false
441
test
# encoding: tarantool blobs_list = [ "mooo\0", "mumble\0\0\0\0\r\rblarg", "\0", "\r" ] for i in range(len(blobs_list)): key = "foo_%d" % i blob = blobs_list[i] blob_len = len(blob) print "len is %d" % blob_len exec memcached "set %s 0 0 %d\r\n%s\r\n" % (key, blob_len, blob) exec memcached "get...
[ "konstantin.shulgin@gmail.com" ]
konstantin.shulgin@gmail.com
1cdf3137fe48ac43bc88dc2e6ac2e9c61263ca45
7c7236aa95ebebe241f04b98d55f3033b19dadc2
/locomotivelist/locomotivelist/settings.py
e41c705b2a66d10fc03ced8af8349dda3a0be106
[]
no_license
taisuo/cms
57d792bb47d85bf6a4a39558a1bc34457a355c26
dd8baa834d6426a2ce7406ea0b74eab252ef7789
refs/heads/master
2020-08-03T13:49:44.754754
2019-10-08T04:00:21
2019-10-08T04:00:21
211,765,786
0
0
null
null
null
null
UTF-8
Python
false
false
3,160
py
""" Django settings for locomotivelist project. Generated by 'django-admin startproject' using Django 2.2.1. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
[ "3148378928@qq.com" ]
3148378928@qq.com
fbe4dadc65e9001e0e915766959cfef2e6a1bd71
d824c0fdc3249c191aa4fba9ef4d750e3a2262a3
/plot_normal.py
7b6b1992e472d330520533e2af2b0720e078b5c3
[]
no_license
PanYicheng/nest_bpstdp
877d0b98f2353ddbf2453bdfcb3a403efa07fda2
c74d0312ef2bc106eba41d4e7f2f84a334fc9db6
refs/heads/master
2020-03-30T19:58:20.080885
2018-10-04T12:27:18
2018-10-04T12:38:47
151,567,825
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
import math import pylab as pl import numpy as np def gd(x,m,s): left=1/(math.sqrt(2*math.pi)*s) right=math.exp(-math.pow(x-m,2)/(2*math.pow(s,2))) return left*right def showfigure(): x=np.arange(-200,200,1) y=[] for i in x: y.append(gd(i,100.0,50.0)) pl.plot(x,y) pl.xlim(-200,20...
[ "1316699379@qq.com" ]
1316699379@qq.com
f9431e18242fc2153449ebaaa99257659244f53a
5d14ae10f438f0bb463473d98a7d8af4990c7e5f
/TU05 If Statements.py
e57ea692c7016e2819eb8aac302cfd43adb06ae7
[]
no_license
TigerAng0/Python-Challanges
9a0e48dfb00d7046b24e4c84aac885015e9fe571
d2a6748cdcde430b928f577b0d89388884122a41
refs/heads/master
2021-01-12T16:08:54.381000
2016-11-09T13:48:57
2016-11-09T13:48:57
71,951,344
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
awnser=input("Is it raining today (y/n)-->").upper() if awnser in ["Y","YES"]: print("Play some computer games.") else: print("Play some football or computer games if you're lazy.")
[ "noreply@github.com" ]
noreply@github.com
a30678f2abf733db6f5910c618047274cdc34669
e75c7be93388cd7b03310c046d70d680d20fcbf8
/tweets/management/commands/benchmark.py
75a8d5f667192b5f739a086c612a3e93af4a5499
[]
no_license
mikeln/twissandra
3086239c16999f77cab90e0c88718ba8e41860a5
68b7f0e429531fc480d045264a0be2ea501ae456
refs/heads/master
2020-04-05T06:18:43.150942
2016-12-05T22:35:59
2016-12-05T22:35:59
30,832,868
0
0
null
2015-02-15T16:18:31
2015-02-15T16:18:30
Python
UTF-8
Python
false
false
1,641
py
import datetime import random import string import time import uuid import cass from django.core.management.base import BaseCommand # # based on fake_data.py # class Command(BaseCommand): def handle(self, *args, **options): # Oldest account is 10 years origin = int( time.time() + ...
[ "github@mikelnelson.net" ]
github@mikelnelson.net
25da2e7dec7936944258fe5be4d9694ca7b50b71
ddddd14f7f21c4b1e3a922d9489e918542323284
/gallery/file_modules/gif.py
4ceed7f3cb0772e67d3a7e74def407b5eef454c1
[ "MIT" ]
permissive
sgreene570/gallery
72e0bc4fcd165243f4774e49e07050f6eb804a32
19e521d7100efc6f7e6565444219ef2a9e2aa842
refs/heads/develop
2021-01-01T16:07:35.824634
2017-07-11T04:42:50
2017-07-11T18:25:05
89,010,522
0
0
null
2017-04-21T18:01:56
2017-04-21T18:01:56
null
UTF-8
Python
false
false
343
py
import os import piexif from wand.image import Image from wand.color import Color from gallery.file_modules import FileModule from gallery.util import hash_file class GIFFile(FileModule): def __init__(self, file_path): FileModule.__init__(self, file_path) self.mime_type = "image/gif" sel...
[ "liammiddlebrook@gmail.com" ]
liammiddlebrook@gmail.com
8d3e3eae1a75074cc9ea1fc0e5c67acf8a69c01a
0a047a804d3808d32e812ed5127e6c1b3fdf1c06
/Pytorch/MNIST_DCGAN.py
07504a665f7cec03fab7cab5ca9791ce3f6cfd54
[]
no_license
leejeyeol/LJY_Machine_Learning
17fccb609b772e37924d1102e25c2246f34086f6
456fe6e5cf5b054cf2bb7cd9d6cca7f031dcd033
refs/heads/master
2021-06-08T20:33:43.686471
2020-05-05T14:12:07
2020-05-05T14:12:07
89,432,146
4
1
null
2018-06-26T01:34:17
2017-04-26T03:09:52
Python
UTF-8
Python
false
false
5,646
py
import torch.nn as nn import torch.utils.data import torchvision.datasets as dset import torchvision.transforms as transforms import matplotlib.pyplot as plt import numpy as np import torchvision.utils as vutils import torch.optim as optim device = torch.device("cuda:0") criterion = nn.BCELoss() epochs = 5 batch_size ...
[ "egg5562@naver.com" ]
egg5562@naver.com
965326fd49974bd5a96390ae1e08da6e071e0ecd
838fd8d80508d61a77b04ec98b69fe39ae5bbec1
/usermanagement/forms.py
5afa8233d7353ecbe7aa6f4590733d32c12bc09c
[]
no_license
billgsm/agenda
8dfee6a86557bfc3cdef33155cf72d4075b0aef4
6f6d565562ec7690ee20e9ff62e4185b23416f78
refs/heads/master
2021-05-26T14:36:16.308763
2013-12-12T15:57:57
2013-12-12T15:57:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
935
py
from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm #from django.contrib.auth.hashers import MAXIMUM_PASSWORD_LENGTH from django import forms from django.utils.translation import ugettext, ugettext_lazy as _ class UserCreateForm(UserCreationForm): #email = forms.EmailFi...
[ "ga_bilou@hotmail.com" ]
ga_bilou@hotmail.com
304a1cd3b71b376d3f7964d58d6d894df67b469c
bd802f8f34489a092550d749ea4444c6052d9875
/python/other/Recommender_spark_1.py
fb3b66aefa4be06ee3929a9ab86dc2377af3aa6d
[]
no_license
amirnasri/Spark_movie_recommender
610e4291aefad9081d48b6ec37b3e5d42ac50981
bcb48c8d0f4783c7b85bbec199feff0763c2c764
refs/heads/master
2021-06-24T16:25:16.471139
2018-08-09T05:00:16
2018-08-09T05:00:16
101,361,446
0
1
null
2020-07-23T14:57:02
2017-08-25T03:18:34
Jupyter Notebook
UTF-8
Python
false
false
4,648
py
import pandas as pd import numpy as np from pyspark import SparkConf, SparkContext from pyspark.sql import SparkSession import os from pyspark.mllib.recommendation import ALS, MatrixFactorizationModel, Rating from scipy.sparse import csr_matrix from sklearn.preprocessing import normalize import pickle import sys ratin...
[ "amnasri@gmail.com" ]
amnasri@gmail.com
7398929e6c6e4e9ba906b903cebc809dfcf312e9
3a6aa0296a0258000f91f9c096fe21612eb17cc6
/src/initialization/httpexception_processor.py
d627f3d81dbe960f16d45c7c45a72f9faaa3ace4
[]
no_license
chiwah-keen/flask-demo-pro
a20c8c271e39dd44136b0f10e861b2a34dccfbf4
f9cfc56f352c1e0c89c7fa75e6394880d476958f
refs/heads/master
2021-01-05T11:11:11.201817
2020-02-17T02:36:44
2020-02-17T02:36:44
241,004,424
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
#! /usr/bin/env python # -*- coding:utf-8 -*- """ Created on 2020年02月07日 @author: jianzhihua """ from flask_app import main_app from initialization.logger_processsor import logger import utils.custom_response as ucr @main_app.errorhandler(404) def S404Handle(error): """ @attention: 404服务器警告异常 """ ...
[ "jianzhihua@datagrand.com" ]
jianzhihua@datagrand.com
7734a21170fb4559398072c9c7cc5a5b15ae2302
e5ff7b465ad359685dc0ff4d4cf8026922810f4b
/poscar_to_cif.py
efcf1d53aa2e0d91dca6ae4a95b152c5b7bd3f85
[ "MIT" ]
permissive
runxin123/mg_intermetallic_ml
dee5082485873a4ea016255e8eee4eee38bff417
9ce496144123442a06c154496fe8695629d5effe
refs/heads/main
2023-04-28T13:32:23.383737
2021-05-24T03:47:47
2021-05-24T03:47:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
from pymatgen.io.cif import CifWriter from pymatgen.core.structure import Structure import os structs = [i for i in os.listdir() if i[:6] == 'POSCAR'] for s in structs: CifWriter(Structure.from_file(s)).write_file(f'{s}.cif') os.remove(s)
[ "noreply@github.com" ]
noreply@github.com
31a865b320a6c846e8c56d539938bb9983d0761e
32deed55475741abffcecb982f98474a6541aa29
/RI/lib/custom_analyzer.py
c85362ff6f19bf3ea0d2c1d63985677a8c360ddd
[]
no_license
vlad-doru/master
e18275cd5cc3e54f40bb330340c6c790ce3ebd00
09574cfe25ec5245205aaeeedca0c1d9eab8e13c
refs/heads/master
2021-01-17T09:39:49.539382
2016-05-07T12:28:28
2016-05-07T12:28:28
25,204,913
0
0
null
null
null
null
UTF-8
Python
false
false
1,387
py
import lucene import textract from lucene.collections import * from org.tartarus.snowball.ext import RomanianStemmer from org.apache.pylucene.analysis import PythonAnalyzer from org.apache.lucene.analysis.core import LowerCaseTokenizer, StopFilter, StopAnalyzer from org.apache.lucene.analysis.standard import StandardTo...
[ "vlad.doru@gmail.com" ]
vlad.doru@gmail.com
250c04aa763f71681cae0386ca25309d7883ce8c
1946d8d6e26b3d6b2573718d77875a554619c05a
/config/settings/environments/production.py
6de418bddc21e06fbdeebf1e2485769b09b6d4b5
[]
no_license
hound672/django-blank
f850079a15d21c415fc5120a51daebb0d4d6c297
8784db1f4ef1d85f78734b32e465805cf04f50f8
refs/heads/master
2022-06-15T21:39:23.516875
2019-06-22T15:33:18
2019-06-22T15:33:18
193,249,674
0
0
null
2022-05-25T02:50:45
2019-06-22T15:32:25
Python
UTF-8
Python
false
false
245
py
# -*- coding: utf-8 -*- """ settings/prod ~~~~~~~~~~~~~~~ Настройки для продакшн сервера """ # noinspection PyUnresolvedReferences from config.settings.components.common import * ALLOWED_HOSTS = ['']
[ "hound672@gmail.com" ]
hound672@gmail.com
e0e8d831007d77131f6d88f8e73286c498bce730
186b7e8d1a07d2b5eb4c93f11279c59422485327
/src/common/urls.py
6c90d9eecacf74f2257984652d4f935ff44f3f4f
[]
no_license
nevtum/hivemind
c47080adcbcb7a7df8a9965aea084294fcfecfe9
04c0aa06a8a00b98ccb631a6eeaaa1371b0af8dc
refs/heads/master
2020-04-11T10:25:49.874601
2018-12-14T00:45:03
2018-12-14T00:45:03
161,714,394
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
from django.conf.urls import include, url from django.contrib.auth.decorators import login_required as auth from .views import CreateProjectView, EditProjectView, ProjectListView urlpatterns = [ url(r'^projects/$', auth(ProjectListView.as_view()), name='projects'), url(r'^projects/new/$', auth(CreateProjectVi...
[ "nt.devs@gmail.com" ]
nt.devs@gmail.com
c49a46ac2549ed50a593ddc7f2d560176aae8fc4
f24e91b1a9565b0d71a7e2dfffb49efbd759f5f1
/yare-rl/train.py
282f25fb4189e37e291e78a84a5457ecc20be63f
[ "MIT" ]
permissive
dpmaloney/yare-rl
aeb99a85635210b83b36ef8a99dcbe2c2f32ddf5
be16b3868957f7998baa4f0f568e6478787985e0
refs/heads/main
2023-07-11T08:39:23.629595
2021-08-20T04:14:46
2021-08-20T04:14:46
398,152,132
0
0
MIT
2021-08-20T04:14:32
2021-08-20T04:14:31
null
UTF-8
Python
false
false
1,136
py
import argparse import gym from pettingzoo.butterfly import knights_archers_zombies_v7 from env import YareEnv from policies import RandomPolicy def random_baseline(env: gym.Env) -> None: policy = RandomPolicy(env.action_spaces) while True: observations = env.reset() max_steps: int = 1000 ...
[ "t-gleroy@microsoft.com" ]
t-gleroy@microsoft.com
a7fbdb3937b39dc612763e233578b4e0abfbbeb1
8c1392b2ec81abcfbb18b922c7010089b973f160
/5.9.py
2f882431b9fb4341e3dd16ae02bea2d43b967148
[]
no_license
bmk316/daniel_liang_python_solutions
f714b9d32a57fc9157b1954d2c608952a169c399
02b4879caa137d3dcb33be517e4ad513398df49e
refs/heads/main
2023-03-07T13:47:20.205978
2021-02-17T23:20:37
2021-02-17T23:20:37
339,880,244
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#Financial application : compute future tuition tuition = 10000 rate = 0.05 four_years = 0.0 for i in range(14): tuition += tuition * 0.05 if i == 9: print(f"Tuition in 10 years is: {tuition :,.2f}") if i == 10 or i == 11 or i == 12 or i == 13: four_years += tuition pri...
[ "noreply@github.com" ]
noreply@github.com
f129481598f87ce5d355abcd28ab70d637b00f93
0d935bbb55e54e95c15bc76dc1c2333296537c3b
/platocdp/devoops/setuphandlers.py
fd18e5a3b072b9f0f241e556277351a6959ceaeb
[]
no_license
koslab/platocdp.devoops
1c312ceeb9f684f0a22cc1568afcaf15f2a144e7
4bcdf1b5dbce4cda2d2ed4963b7100daa4f89321
refs/heads/master
2016-08-04T23:52:13.234017
2015-07-02T17:04:54
2015-07-02T17:04:54
34,948,874
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
from collective.grok import gs from platocdp.devoops import MessageFactory as _ @gs.importstep( name=u'platocdp.devoops', title=_('platocdp.devoops import handler'), description=_('')) def setupVarious(context): if context.readDataFile('platocdp.devoops.marker.txt') is None: return portal ...
[ "izhar@kagesenshi.org" ]
izhar@kagesenshi.org
521d709c5b4a1384fc725ce63d6172eec2fead78
55647a80c8b412af9df0ba3f50595cc2f29c25e6
/res/scripts/common/Lib/distutils/tests/test_build_ext.py
1d8d27db4f7a5dadb809a807760ccda505ba62bf
[]
no_license
cnsuhao/WOT-0.9.17-CT
0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb
d1f932d8cabaf8aa21708622e87f83c8d24d6451
refs/heads/master
2021-06-08T18:11:07.039293
2016-11-19T19:12:37
2016-11-19T19:12:37
null
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
16,296
py
# 2016.11.19 19:58:33 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/distutils/tests/test_build_ext.py import sys import os from StringIO import StringIO import textwrap from distutils.core import Extension, Distribution from distutils.command.build_ext import build_ext from distutils import syscon...
[ "info@webium.sk" ]
info@webium.sk
72c8d67aaedfd2efae3a52f2fef35b40c901f3fc
6cbb6f523070dfe1acd40ac5c1c576e157ac715b
/tests/app/cli/test_main.py
a0d3b9bd342f81dcd6d4e10cfd4b11720b16a34a
[ "MIT" ]
permissive
ymoch/preacher
1607350c6b2ba50bb0e0d9ec3322e69f9ce2cb5b
ceeb048c6ed120102d9cdd6829ee2b05ad977c83
refs/heads/master
2023-02-22T21:00:06.791304
2022-06-14T17:21:34
2022-06-14T17:21:34
174,710,438
3
2
MIT
2023-02-16T05:56:52
2019-03-09T15:21:20
Python
UTF-8
Python
false
false
5,976
py
import os from tempfile import TemporaryDirectory from click.testing import CliRunner from pytest import fixture, mark from preacher.app.cli.executor import PROCESS_POOL_FACTORY, THREAD_POOL_FACTORY from preacher.app.cli.main import main from preacher.core.status import Status PKG = "preacher.app.cli.main" @fixtur...
[ "ymoch.dev@gmail.com" ]
ymoch.dev@gmail.com
8a5ec785654093e76f90567eca5c8d6e49cdd8ae
c36f4bd95c7a0706129ac1ed6e1e29f3f13c12b9
/m8/p2/assignment2.py
e5dc42dedc79539058c35a7c30e4dcabc145dd5f
[]
no_license
prathyushab14/cssp1__assignments
7fdfe121a48a483942d8b13f0996aeeae18ed9c7
c0f64d61092fc42dc598fbe966923e4e88af0f93
refs/heads/master
2020-03-25T01:57:02.643731
2018-08-26T14:32:14
2018-08-26T14:32:14
143,266,313
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
'''Sum of digits using recursion.''' def sumofdigits(n_1): ''' n is positive Integer returns: a positive integer, the sum of digits of n. ''' if n_1 == 0: return 0 return n_1%10+sumofdigits(n_1//10) def main(): '''Main Function.''' a_1 = input() print(sumofdigits(int(a_1))) i...
[ "prathyushabathula14@msitprogram.net" ]
prathyushabathula14@msitprogram.net
d131d6d74796cfc319b71c0faeada452be95ec4b
293045cb32c999d66ee54ce43c42b64036f611b8
/sqlPiuTabelle2.py
aeff2e67c58ce88ee7fd128a7b111a622e18548b
[]
no_license
Paopand1/sql
976d91872e0ab7af9412c19ebe31a74200bdddba
1cad0fa703165922724e5871dab37fc1b476275b
refs/heads/master
2021-01-17T17:49:08.422810
2016-06-12T13:43:42
2016-06-12T13:43:42
60,872,425
0
0
null
null
null
null
UTF-8
Python
false
false
921
py
import sqlite3 with sqlite3.connect("new.db") as connection: c = connection.cursor() c.execute("""CREATE TABLE regions (city TEXT, region TEXT) """) # (again, copy and paste the values if you'd like) cities = [ ('New York City', 'Northeast'), ('San Francisco', 'West'), ('Chicago', 'Midwest')...
[ "pandini.paolo@icloud.com" ]
pandini.paolo@icloud.com
b81780f815a096f18a8bb8bc8a7f9835d836f10d
03790bec5f643c9880e5a0f10583f3d29af9548a
/common/asserts.py
bcf1b47fca91bd3b7a867f30c574a3eb2b1d37b6
[]
no_license
cidisk/backup
6c6dfe3c6ef2a7c50909e2017777141e2c007b4d
1e8ae84c5f3122cf3db3d091e84ca2faa7f59a4b
HEAD
2016-09-09T20:04:12.925024
2015-01-08T13:01:48
2015-01-08T13:01:48
18,168,846
0
0
null
null
null
null
GB18030
Python
false
false
7,777
py
# -*- coding: GB18030 -*- ''' Created on Feb 20, 2014 @author: wangdongsheng<wangdongsheng@baidu.com> ''' import os, sys from common import checker from common.loger import loger import string class AssertException(Exception): pass def assert_equal(lhs, rhs, errmsg=None): ''' @summary: 断言lhs和rhs相等 ...
[ "cidisk@163.com" ]
cidisk@163.com
d5689aaad3864c1d6af8cbaefddf6f80de9d4add
a88658ea37744a3f3c7f34f9df4689523e81f9e3
/scripts/unittest/script/03-grayscale_to_rgb.py
693f9b22edd90ab3e8c671a86a178c7f4bb421e5
[ "MIT" ]
permissive
luuvt/openmv
ad7d559cf0a0ba3d1e3d1163ae0105c3d8efe29b
1608a2a2f46220c0219abca1982dab80154fc21a
refs/heads/master
2020-03-28T16:07:13.552279
2018-09-10T23:08:10
2018-09-10T23:08:10
148,661,405
1
0
MIT
2018-09-13T15:48:26
2018-09-13T15:48:25
null
UTF-8
Python
false
false
155
py
def unittest(data_path, temp_path): import image rgb = image.grayscale_to_rgb(182) return (rgb[0] == 182 and rgb[1] == 182 and rgb[2] == 182)
[ "i.abdalkader@gmail.com" ]
i.abdalkader@gmail.com
772ce7249aec7511d2d8a3e2e0ac39863bdcb480
b96ed10d6247e22d4fa1d28bc3314bc319d3109c
/LessonSample/DjangoSample/ch06/exam_01.py
e1b350a860c6888c9645a01777fefae1a2354c9b
[]
no_license
13555785106/PythonPPT-01
ac1b22b9b1851f2b3ea6e4ab0a100e5f6896ee8c
40e5883f248cb342f3a7fc7ad12ba02ebde4c619
refs/heads/master
2020-04-26T16:49:59.675964
2019-03-04T07:16:21
2019-03-04T07:16:21
157,095,747
4
0
null
null
null
null
UTF-8
Python
false
false
764
py
# -*- coding: utf-8 -*- import os import django os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DjangoSample.settings") django.setup() from django.contrib.auth import authenticate from django.contrib.auth.models import * # user = User.objects.create_user(username='u001',password='abc') # User.objects.filter(usernam...
[ "312655424@qq.com" ]
312655424@qq.com
44ea730cf6616f7dc520d0befa3eb35596d36ff7
9dc6f8d91dc56523b9688990d4ae413b0bcbd4e1
/examples/fci/35-transition_density_matrix.py
1dec4c94ae95abb94a55cc40801196ec362f3b78
[ "Apache-2.0" ]
permissive
sunqm/pyscf
566bc2447d8072cff442d143891c12e6414de01c
dd179a802f0a35e72d8522503172f16977c8d974
refs/heads/master
2023-08-15T18:09:58.195953
2023-03-27T21:02:03
2023-03-27T21:02:03
159,149,096
80
26
Apache-2.0
2022-02-05T00:19:24
2018-11-26T10:10:23
Python
UTF-8
Python
false
false
2,826
py
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' Transition density matrix between singlet and triplet states ''' import numpy as np from pyscf import gto from pyscf import fci from pyscf.fci import cistring # <T|i_alpha^+ j_beta|S> def make_rdm1_t2s(bra, ket, norb, nelec_ket): neleca, n...
[ "fishjojo@users.noreply.github.com" ]
fishjojo@users.noreply.github.com
0b2f7992f8b45d0cbfb11ef4e07be25834ca842a
5c931367136a99ae809bdc8beefc8ff82c1053a3
/OOP_python/train.py
2fdb7d0bde05376e740ca4c262d00215915fcd4a
[]
no_license
TanyaDinesh00/FaceRecognitionAttendance
7bd8696d310ff3d7c9fc3c48efecb88238728e8e
a030cc15cc88431c4eb62486d723c7df136e3c18
refs/heads/master
2021-04-20T15:58:36.702259
2020-03-24T13:21:51
2020-03-24T13:21:51
249,697,145
3
1
null
null
null
null
UTF-8
Python
false
false
3,924
py
import csv import tkinter as tk from tkinter import * from tkinter import messagebox import cv2 window = tk.Tk() window.title("OOP Project") window.geometry('800x500') C = Canvas(window, bg="blue", height=250, width=300) filename = PhotoImage(file=".\\Jagged2.png") background_label = Label(window, image=filename) bac...
[ "noreply@github.com" ]
noreply@github.com
1317e97cefcf2b877ccf8c52c3a3d26dfea585f6
d016a5c398ebc57813f0108ada85c294ff0433b4
/cart/migrations/0006_auto_20201218_1344.py
239a5a39b2960b9c890135dc997a9645e64ae426
[]
no_license
DelroyBrown28/GalleryWithCustomAdmin
c8dd4f0ca6c30665654ef056f906cc847f048938
09b40cbdc86bd71ec5377856bce9d06a763583b3
refs/heads/main
2023-04-13T05:44:59.860350
2021-04-29T13:40:36
2021-04-29T13:40:36
362,829,797
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
# Generated by Django 3.1.4 on 2020-12-18 13:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cart', '0005_auto_20201216_1624'), ] operations = [ migrations.AlterField( model_name='product', name='image', ...
[ "delroybrown.db@gmail.com" ]
delroybrown.db@gmail.com
f78a99da60f05521a62d7ab4bd26c2d4aad51c6d
a275600c0c95662ba191ed9290c8bb73e755b8d5
/ReviewBotSpreadsheet.py
c6920341d8bb8dc1222b1b1431e40189dcadfffd
[]
no_license
ALProjects/UofTReviewBot
449474d395a30cc45f1ae975ef66e332759794a5
5d24155e784b3974b178ee2469f6f8e03211afbc
refs/heads/master
2021-01-11T19:53:40.633744
2017-10-18T17:48:15
2017-10-18T17:48:15
79,419,789
0
0
null
null
null
null
UTF-8
Python
false
false
1,556
py
import gspread from oauth2client.service_account import ServiceAccountCredentials # use creds to create a client to interact with the Google Drive API scope = ['https://spreadsheets.google.com/feeds'] creds = ServiceAccountCredentials.from_json_keyfile_name('client_secret.json', scope) client = gspread.authorize(cred...
[ "Aaron@Macbook.hitronhub.home" ]
Aaron@Macbook.hitronhub.home
c13c436e4d7f18b5c491d3dd6c011384b7749b93
85c82274a3888fa61795bb0600ab96eaf7665b6a
/meet9_22_April_2021/D_BSTPostOrder.py
4bc9fc77678fc38762f711d242a06f7f8c3333f1
[]
no_license
refeed/StrukturDataA
8e5a214569f41b19c05842d003ede5941800482a
4d3b77bbd28158f1f1e64a49b8e90da731859407
refs/heads/master
2023-06-03T08:22:12.442536
2021-07-01T03:24:29
2021-07-01T03:24:29
360,478,966
0
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
''' Soal 1 Batas Run-time: 1 detik / test-case Batas Memori: 32 MB DESKRIPSI SOAL Diberikan n buah bilangan bulat, a1, a2, ..., an. Kemudian dibentuk binary search tree dari barisan tersebut. Tugas Anda ialah mengoutputkan secara postorder. PETUNJUK MASUKAN Input terdiri atas 2 baris. Baris pertama berisi sebuah bi...
[ "rafidteam@gmail.com" ]
rafidteam@gmail.com
ef82d4c4ffde8688092fa0cea993d71cf5e89ca5
6f90ed39c673c0553b4173ca1c8dd17fa5994ccf
/ELECTRONIC_STATION/FindSequence.py
d95575bb0045350c087da09e67389e2fec323894
[ "MIT" ]
permissive
jemg2030/Retos-Python-CheckIO
390f9a846c79f0ab7d94641d16ab8bfa23fb33fb
ce52aa1fd718d5cabdd4592469148b9b52483ced
refs/heads/master
2023-08-31T17:45:23.216699
2023-08-29T23:33:40
2023-08-29T23:33:40
144,081,187
0
0
MIT
2023-03-05T05:38:43
2018-08-09T00:21:39
Python
UTF-8
Python
false
false
9,541
py
''' “There’s nothing here...” sighed Nikola. “You’re kidding right? All treasure is buried treasure! It wouldn’t be treasure otherwise!” Said Sofia. “Here, take these.” She produced three shovels from a backpack that seemed to appear out of thin air. “Where did you get-” “Don’t ask questions. Just dig!” She hopped ...
[ "jmeneses@agrosan.com.co" ]
jmeneses@agrosan.com.co
324ad24308b072d1d069e4afa0d0f06ec7efcb81
6f0517136962ad238963a597bc123994b4ac7201
/backend/settings.py
8a08765d2465bdb9080af2971b5d001cb939f3dd
[]
no_license
Astig-1982/proshop-2-backend
8862869cfc4c93a645bcf04c8e5ac30c49db9682
caa0e25e90072d358e44e6a92bd87b9709a9c69c
refs/heads/master
2023-07-11T17:17:06.794880
2021-08-16T19:00:13
2021-08-16T19:00:13
394,761,502
0
0
null
null
null
null
UTF-8
Python
false
false
4,647
py
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib...
[ "astigmandalian@Astigs-MacBook-Air.local" ]
astigmandalian@Astigs-MacBook-Air.local
597a43642a545ace37f7aad5480f7d6e091eb42e
027f32756152679568fd564bb10499a75c5b7b79
/tarea2/resta.py
965c9f43910a7108099379c8293bf5dac121404a
[]
no_license
jorszs/C-S
1172c66f23b76178244291cf20e075207fdfc111
a203db1a86bb0f311811d8a4ddc321411b889685
refs/heads/master
2021-01-01T08:55:10.334855
2020-04-28T05:56:07
2020-04-28T05:56:07
239,205,591
0
0
null
null
null
null
UTF-8
Python
false
false
336
py
import zmq context = zmq.Context() socket = context.socket(zmq.REP) socket.bind("tcp://*:8002") #message = socket.recv() message = socket.recv() message_str = message.decode('utf-8') l = message_str.split(",") #print (type(l)) respuesta = int(l[1]) - int(l[2]) print (respuesta) respuesta = str(respuesta) socket.send_s...
[ "jorge7@utp.edu.co" ]
jorge7@utp.edu.co
d3463fba4186d6fce95381fe6cfbbe8a5d410588
c2f508483835e652148899044a360f96fcd98633
/AirBnb_Price/__init__.py
0b101f128a3f05b67deffb05d585427b912bd837
[]
no_license
elfranco91/AirBnb_Price
57c0b782b34697b4d2510a3cab5dd5f06b5fb418
72849360dc3a12a34b9a81bf3ebaf034b97f6b1e
refs/heads/master
2022-09-02T07:55:07.202331
2020-05-23T12:39:31
2020-05-23T12:39:31
266,333,743
0
0
null
null
null
null
UTF-8
Python
false
false
26
py
__author__ = 'Al_Cummins'
[ "alancummins91@gmail.com" ]
alancummins91@gmail.com
c2126d552a9bc32f04d2c9ab7ca9429208c3ecf5
edfc90cafb2f815c3d37a572b2e38dcb936fa35b
/windowKeyPress/xdisplay.py
b9323a894a106d7246548ac9c8c5d690102db618
[]
no_license
kshen91/pyScripts
5f28c3bee5651b584c827dfdc266b5a2ab745282
e9fd3f4fb589b8fd378f6cf6bdbd1f968a459805
refs/heads/master
2020-04-22T13:36:54.672744
2020-01-11T06:08:47
2020-01-11T06:08:47
170,415,246
0
0
null
null
null
null
UTF-8
Python
false
false
5,816
py
# -*- coding: utf-8 -*- # Author: cylisery@outlook.com from copy import copy from Xlib import X, display from Xlib import __version__ as XlibVer from Xlib.ext.record import AllClients from Xlib.protocol.rq import EventField from .xwindow import XWindow from .logconfig import ConfigureLog log = ConfigureLog(__name__)...
[ "noreply@github.com" ]
noreply@github.com
38797c10553c5cd6815abf1b84e21bbdf83c0be8
b2b9cd537c4c6a216d9b1ee32008cc8e98552405
/Comprehensive_practice/金融/Tushare.py
5c0b234909a129dce381f835e310a44257a731cd
[]
no_license
liyanfeng0127/python2_bdrw
ce982813645294b884d73cd2bbc4de5a33fa2cd5
52eba0d67d30ed5ce23e01dde69db35a8ed65787
refs/heads/master
2021-05-08T06:50:53.916210
2017-10-12T10:41:05
2017-10-12T10:41:05
106,676,637
1
0
null
null
null
null
UTF-8
Python
false
false
482
py
import tushare as ts from sqlalchemy import create_engine engine = create_engine("mysql://root:1234@localhost/scraping?charset=utf8") print ts.get_stock_basics() df1 = ts.get_stock_basics() df1.to_sql('news_data',engine,if_exists='append') print df1 print ts.get_tick_data('600019',date = '2016-12-16') df2 = ts.get_ti...
[ "yanfeng.li@lejent.com" ]
yanfeng.li@lejent.com
178549f90a46caef4444354bee8c1e88ed2a48cb
1c8fbee29a3e7596a0c7bd0b73396801c8f22965
/day11.py
edffadb38cdd0c1ee39b64eda5f9f9c095ebe4cd
[]
no_license
yschua/aoc2019
9c9b8e913a0195b819d6ba284d81b69605c8eb72
dd2d13b7443e49a1d820e3585d6a452bd3b5bf5f
refs/heads/master
2020-09-26T19:19:07.392045
2019-12-24T14:45:20
2019-12-24T14:45:20
226,322,623
0
0
null
null
null
null
UTF-8
Python
false
false
3,349
py
import sys class IntcodeComputer: def __init__(self, program): self.m = dict(zip(range(len(program)), program)) self.i = 0 self.end = False self.output = [] self.relBase = 0 # self.run(inp) def idx(self, n): mode = self.paramModes[-n] if n <= len(self.paramModes) else 0 ...
[ "4900895+yschua@users.noreply.github.com" ]
4900895+yschua@users.noreply.github.com
2640a496fbbbfc84cdd75e34d8405c76172e6374
12beef17dc4820db0cb15858db316654ff3d847e
/src/models/clientes/views.py
b92451274f073278291d1d89ef9ccedb0a6aa871
[]
no_license
arlincdt/proyectofinal-eyap
356ee5969d908d38e5575ee950daa9b25ded9048
df6115c5ec0f0501313e6366b7f331b66e58329b
refs/heads/master
2020-03-12T17:54:18.240682
2018-04-23T23:03:40
2018-04-23T23:03:40
130,747,938
0
0
null
null
null
null
UTF-8
Python
false
false
1,750
py
from flask import Blueprint, request, session, url_for, render_template from werkzeug.utils import redirect from src.models.clientes.cliente import Cliente from src.models.promotores.promotor import Promotor from src.models.fechas.fecha import Fecha from src.models.inversiones.inversion import Inversion from src.models...
[ "carola9686@hotmail.com" ]
carola9686@hotmail.com
4d45d2e69c0f3a32153cb25061b933bb185d2166
53c48bda124090ad855e62d5ad58e70ac08aba97
/manage.py
faf7daab8b7c89c6ca9eee045f96269809429d14
[ "BSD-2-Clause-Views" ]
permissive
ivanalejandro0/django-products-crud
290369b3e7b89e71457447cc4d55904639dad3b8
cce0bc5a5048bacf2ea5d5d83fdf01e5a1eba3ab
refs/heads/master
2021-01-19T11:22:14.298832
2013-04-01T22:59:58
2013-04-01T22:59:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_products_crud.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "ivanalejandro0@gmail.com" ]
ivanalejandro0@gmail.com
146d54b62a28cf1b24b9aa9c7bab66ab4e33d32a
3e4fec214d82b5547df9ff94e163beb9369547f4
/src/analog_in.py
a694d25c0f58a5fe6cbfed47d7abc6ea4be19130
[]
no_license
physikier/magnetometer
582caf47d3869340cd18a0aaa2d171e37591c79a
e9e6bd314d48b4b40ac5a2145b821305dec2d05e
refs/heads/master
2021-01-21T14:44:11.460815
2016-04-30T21:15:02
2016-04-30T21:15:02
59,505,445
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
import hardware.nidaq import numpy as np import matplotlib.pylab as plt freq=100e3 N=10000 ai_measurement = hardware.nidaq.AITask('/Dev2/ai0', N, freq, read_timeout=1.0, range=(-10, 10)) ai_measurement.Start() x=np.linspace(0.,1./freq*N,N) y1,y2,y3 = ai_measurement.Read() import matplotlib.pyplot as pyplot plt...
[ "phy76371@stud.uni-stuttgart.de" ]
phy76371@stud.uni-stuttgart.de
e460a548878e52c16c7ce3e5951320f921419a3f
ad6133a14250c895b8222c894e1048681150e15a
/venv/bin/sqlformat
69b388d630a24f98018be87c05b3dafbb441863b
[]
no_license
hangockhue/healthybackend
aba1aace4b9ebb2bb126bb89ab85c83fe0d363d0
dd7ad4114f3f6c3f82c1ae249c5a798646a8bb3e
refs/heads/main
2023-07-04T04:54:41.250502
2021-08-15T04:03:00
2021-08-15T04:03:00
396,208,581
0
0
null
null
null
null
UTF-8
Python
false
false
264
#!/Users/hangockhue/Desktop/Project/healthybackend/venv/bin/python # -*- coding: utf-8 -*- import re import sys from sqlparse.__main__ import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "hangockhue@Has-MacBook-Pro.local" ]
hangockhue@Has-MacBook-Pro.local
2b366ea58327bfd99677e527493481876123fc92
7b61f50bde439f21057a9ef81f6d79b5142d12b7
/rename.py
e8a3e05781ce91a74745b04557b9989a22ca7c52
[]
no_license
BlakeERichey/CNN
2cc95828d8936c49af57c738b2f4ad707d6ffa76
1bd53bcecfa5726a32851534e64176de99fed514
refs/heads/master
2020-09-10T20:03:40.097169
2019-12-29T02:30:26
2019-12-29T02:30:26
221,821,996
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
#renames all files in a directory sequentially import os from os import listdir from os.path import isfile, join root = './healthy_corn' images = listdir(root) for i, image in enumerate(images): os.corn_env(f'{root}/{image}', f'{root}/hc_{i}.jpg')
[ "blake.e.richey@gmail.com" ]
blake.e.richey@gmail.com
8d9c008de26fd93ab4672533b1239457eaa8dbb5
ae29d4dab4f10c7ccd5b106544e00fb1a11de82b
/Python/320/assignment 08/users.py
d00132a89f099d90f4a60a987f57872fd8943679
[]
no_license
djgordon-maker/Portfolio
9ab2d4c8b8eaf72f27c8aae20e3a900209f4360d
9d336a29a2349b1c2f89fec93bafd4e27b20a8d9
refs/heads/main
2023-04-22T05:59:35.022742
2021-05-16T23:08:49
2021-05-16T23:08:49
367,220,031
0
0
null
null
null
null
UTF-8
Python
false
false
2,874
py
''' Methods to access user information for the social network project ''' import logging from functools import partial from peewee import IntegrityError from socialnetwork_model import user_table as table from socialnetwork_model import status_table logger = logging.getLogger('main.users') keys = ('user_id', 'user_em...
[ "dragongordon@gmail.com" ]
dragongordon@gmail.com
2420bf8c3d936774c07e187dce907a62f2186a17
d1aa6e7d5631d7806531660febbd1f856eaeece7
/python/paddle/distributed/fleet/utils/fs.py
7ea639d70e641e550910ec3f8740a11a51a623bd
[ "Apache-2.0" ]
permissive
gongweibao/Paddle
510cd4bc0ef89bc6ccee7b6b8eca52c00e014b77
60f9c60cd8196c66c391d79c35d341e9072f8838
refs/heads/develop
2023-03-13T17:43:35.675875
2022-09-20T08:46:15
2022-09-20T08:46:15
82,279,237
3
2
Apache-2.0
2021-05-26T06:17:43
2017-02-17T09:16:16
Python
UTF-8
Python
false
false
46,491
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
noreply@github.com
e15d35e8e6957d5fc37271c0440d3b5e2eeb58c7
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/pj5yRacNC8huzhy85_6.py
1c295171c1a8bc2b686e83e74d269d75cd0a86f4
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
76
py
def shhh(txt): return "\""+txt.capitalize()+"\""+', whispered Edabit.'
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
7c26ba48a445a3be021bb7879617d75244d366bf
d8c5f1d5f5b7d222834d233db26d8b03e37bdfa3
/clients/kratos/python/test/test_submit_self_service_registration_flow_with_password_method_body.py
f66db886c346ff8c345df7d0e38ed686861526e2
[ "Apache-2.0" ]
permissive
kolotaev/sdk
31a9585720c3649b8830cf054fc7e404abe8e588
0dda1becd70be8d7b9d678321ebe780c1ba00485
refs/heads/master
2023-07-09T21:36:44.459798
2021-08-17T09:05:22
2021-08-17T09:05:22
397,220,777
0
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
[ "3372410+aeneasr@users.noreply.github.com" ]
3372410+aeneasr@users.noreply.github.com
c05000978353355f219b6a9327f6d1fc60eb72d1
dc4c96b7b986f7d1f451b6af8381fe94d787cc48
/Nishida/WBAI_open_code/lstm/lstm.py
a9353c2af4301f1335174b43b0cf17171cecfcf9
[ "Apache-2.0" ]
permissive
wbap/Hackathon2015
3aacf2addab6dd0c08a6f7c7d6776468d886a0cc
62eb973623ac316199ebf83de30151944f38a750
refs/heads/master
2016-09-06T04:37:48.108544
2016-01-22T11:59:51
2016-01-22T11:59:51
42,838,895
6
9
null
2016-01-22T11:59:53
2015-09-21T02:15:48
Python
UTF-8
Python
false
false
1,640
py
#coding:utf-8 import numpy as np from chainer import Variable, FunctionSet import chainer.functions as F class LSTM(FunctionSet): def __init__(self,f_n_units, n_units): super(LSTM, self).__init__( l1_x = F.Linear(f_n_units, 4*n_units), l1_h = F.Linear(n_units, 4*n_units), ...
[ "takaya@takayatamaki-no-MacBook-Pro.local" ]
takaya@takayatamaki-no-MacBook-Pro.local
aeb95cdd28029f048b32223a7ae7d673d281359d
9e56256fddab7825573af0635f26b45855e2a2ee
/prostate_split_A1.py
3e0e26353689db9596c5ed2608c9c92c24a2f2ef
[]
no_license
liq07lzucn/Scripts-RayStation-4.7.2
257a8163ee96aac4260a5d2de049ba02331d1a1a
eabc6a737dc62212d07fcf8517c341ff0c9dbdf5
refs/heads/master
2021-08-31T09:13:25.640927
2017-12-20T21:51:10
2017-12-20T21:51:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
# -*- coding: utf-8 -*- """ .. note:: LA VERSION LA PLUS À JOUR DE CE DOCUMENT SE TROUVE DANS DRUPAL: `Planification des prostates vmat`_ .. _`Planification des prostates vmat`: http://drupal.radonc.hmr/content/planification-des-prostates-vmat-0 Ce script à comme but de convertir un plan A1 de prostate VMAT standar...
[ "noreply@github.com" ]
noreply@github.com
53fb143eff98e78c0a1780dd917372fec933c0db
76f55428277f1a951f648b202d5c6757bf9c446a
/youtube/get_video_thumb.py
129240511f24bbbf347a717ed73d4899f4c87727
[]
no_license
zdenekhynek/browser_snapshots
5003378e01d73dbb877771097ad5ddb0a9aec997
b63937032a0620f47b1f49fdd8e87ffd3a45a2d2
refs/heads/master
2023-01-30T14:10:48.321789
2018-12-02T22:39:32
2018-12-02T23:19:21
113,761,833
0
0
null
2023-01-12T23:55:40
2017-12-10T15:39:13
Python
UTF-8
Python
false
false
173
py
from youtube.get_id_from_url import get_id_from_url def get_video_thumb(url): video_id = get_id_from_url(url) return 'https://img.youtube.com/vi/%s/0.jpg' % (video_id)
[ "zdenek@signal-noise.co.uk" ]
zdenek@signal-noise.co.uk