blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
3cd3f7bd6dce506df96e8ca520071ed2b1cdcb02
ae6b1e0983357816733e3753ed658816eb39061d
/project/urls.py
fc646c24583ed176ef2c41dbea0f889dd509c1b4
[]
no_license
thedevsaddam/dj-project
2262ce2312826b9f6e3cd539fc3d60935434b2a0
ddb4ff86f76cbf634ab216014dc3733c171f1915
refs/heads/master
2020-04-06T07:06:21.989597
2016-09-14T18:28:59
2016-09-14T18:28:59
65,585,158
4
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
from django.contrib import admin from django.conf.urls import url, include from django.contrib.auth.models import User from rest_framework import routers, serializers, viewsets # Serializers define the API representation. class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Use...
[ "thedevsaddam@gmail.com" ]
thedevsaddam@gmail.com
9ee2cd7d084dc0e32bc6d712119679edb830780a
e7c4f2094da7239a5fad2e4b8f5a52e7ef474290
/sloth/gui/plot/stackview1D.py
965fc32cbcfd2662787fa50360bd1630a0500b9f
[ "BSD-3-Clause" ]
permissive
maurov/xraysloth
27728cff811460e70e04936d70664334f36a42d9
d0ff10530833fa8b0866f7303a6a8c99d5a9b208
refs/heads/master
2023-03-31T07:24:26.803914
2023-03-27T22:20:46
2023-03-27T22:20:46
23,457,349
6
3
BSD-3-Clause
2019-05-02T11:08:21
2014-08-29T08:13:34
Python
UTF-8
Python
false
false
6,846
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Viewer for a stack of 1D plots ============================== """ import numpy as np from silx.gui import qt from matplotlib.pyplot import cm from silx.gui.widgets.FrameBrowser import HorizontalSliderWithBrowser from sloth.gui.plot.plot1D import Plot1D __credits__ = [...
[ "mauro.rovezzi@gmail.com" ]
mauro.rovezzi@gmail.com
2a328dfdc1bda8f5f63a8bf8ac1b558e05fc28fa
463c7a43bef0d7bf5e87ec2f301d541608215356
/methods/density.py
d2f64873174e53bb0a58f0b6d4ee791f3d6a74a0
[]
no_license
RSIP4SH/PythonFramework
01344285318e6eae0321cb3d2a3082f810bfd0f5
0e5eab1f465f89379e1cca9604e5a8d3f78dcaac
refs/heads/master
2021-09-20T08:35:15.070133
2018-08-07T02:55:15
2018-08-07T02:55:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,917
py
from methods import method from utility import array_functions from configs.base_configs import MethodConfigs from results_class import results import scipy import sklearn import numpy as np from loss_functions import loss_function import statsmodels.api as sm from utility import array_functions class KDE(method.Meth...
[ "agress@ucdavis.edu" ]
agress@ucdavis.edu
3a1dd1561a71cc04502f4922a3693f05bb93758c
3ab994e70eddd11ba50c1f7d8cfd4c22fe17f1e6
/DQN entree image/deep_reinforcement_img_buffer.py
555c018aedd92baa21595d7e9006318847df6b5e
[]
no_license
JuliCou/Reinforcement_learning
6595e34237b30f3e306140a48eca8c6464df9d60
3d1768979c8cd775097bf878e605e158d733d79c
refs/heads/main
2023-04-02T13:07:55.530075
2021-04-12T17:26:05
2021-04-12T17:26:05
352,922,898
0
0
null
null
null
null
UTF-8
Python
false
false
11,992
py
import math import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torchvision.transforms as T import copy import random import imageio # Sauvegarde image numpy from PIL import Image import collections def generate_grille_jeu(taille_grille=4, nb_drag...
[ "julie.courgibet@cgi.com" ]
julie.courgibet@cgi.com
7ca2ee68e6fd0e5017398a30e23f37def6d5d4de
65a8ee4c587307e5ab47fabdd31d0467621e2f78
/models/province.py
088f241df7507a3b270a059ea11cd6264b01f309
[]
no_license
yndlsds/ynuweilan
4ae69f8bf95d40b8b233b56ec0b54bd9ab4df174
5158073a9301aaf54fb72add38f2fc9638f6257e
refs/heads/master
2016-09-06T18:31:54.622603
2014-03-26T06:05:45
2014-03-26T06:05:45
18,127,952
1
0
null
null
null
null
UTF-8
Python
false
false
349
py
from mysite import db class Province(db.Model): __tablename__ = "Province" id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(8), default="") pinyin = db.Column(db.String(8), default="") def __init__(self, *args, **kwargs): super(Province, self).__init__(*args, **kwargs) def __st...
[ "yndlsds@126.com" ]
yndlsds@126.com
ad60a308941a31bd7b29668a32b898e25a1161fc
250199cdee694b4e0f6d0f87335d791fe6f1e9c6
/Class_Demos/trips/apps/logreg/views.py
7e904551e08b4857a16caa21f18eaf741058178e
[]
no_license
makijurowski/dojo-week7
d23adf763f7f1bad7fc3c72eedfc4338f952f168
56a36e98f2e565071756513655d1b88581116c6e
refs/heads/master
2023-04-14T06:03:56.616197
2017-10-07T02:49:18
2017-10-07T02:49:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import HttpResponse, redirect, render from django.views import View # Create your views here. # def index(request): # response = "Placeholder to verify logreg creation." # return HttpResponse(response) class LandingView(Vie...
[ "makiroggers@gmail.com" ]
makiroggers@gmail.com
33027ad3fbaac7324f07bb19b17be288ebc90dd7
950c4953963316983624ad9164211e2d8fc90a57
/BinaryConvertor.py
a5ccf48237a929faa60af2acafcf47c4080d23f8
[]
no_license
jftcampbell1/PythonCode
a14c095ba8d9f4cbeea1a586e263b3f27df7b707
f0e695b1704cda93391f44e0b6164ed724104887
refs/heads/master
2020-04-19T18:37:05.217402
2019-01-30T15:42:33
2019-01-30T15:42:33
168,367,547
1
0
null
null
null
null
UTF-8
Python
false
false
564
py
#Binary Covertor bNumber = input("Please enter a binary number: ") while len(bNumber) != 8: bNumber = input("Please enter a binary number, this number must be 8 bits long: ") b1 = bNumber[0] b2 = bNumber[1] b3 = bNumber[2] b4 = bNumber[3] b5 = bNumber[4] b6 = bNumber[5] b7 = bNumber[6] b8 = bNumber[7...
[ "jamescampbell@Jamess-MacBook-Pro.local" ]
jamescampbell@Jamess-MacBook-Pro.local
be4e9e3a42b8c97562deeecd8c3b871fa6fb01c7
f124cb2443577778d8708993c984eafbd1ae3ec3
/saleor/account/migrations/0054_alter_user_language_code.py
c4843696a427a6c0f24f171c7feab251cf7eca57
[ "BSD-3-Clause" ]
permissive
quangtynu/saleor
ac467193a7779fed93c80251828ac85d92d71d83
5b0e5206c5fd30d81438b6489d0441df51038a85
refs/heads/master
2023-03-07T19:41:20.361624
2022-10-20T13:19:25
2022-10-20T13:19:25
245,860,106
1
0
BSD-3-Clause
2023-03-06T05:46:25
2020-03-08T17:44:18
Python
UTF-8
Python
false
false
40,337
py
# Generated by Django 3.2.6 on 2021-08-17 11:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("account", "0053_auto_20210719_1048"), ] operations = [ migrations.AlterField( model_name="user", name="language_code...
[ "noreply@github.com" ]
noreply@github.com
0a2c7d21835cec969faaa3feb05c6c726d848605
26365e45a64f7809f62be4981c9f77ff8796047f
/scripting/utils.py
f93a5db4993dc449aaef9a1eb143511564b0b578
[]
no_license
gabrielelanaro/scripting
42e79d77c9568e8b45144a7a02dbfe084cbb96b5
65c3a127611f15782e548189d1f29535e12da3bf
refs/heads/master
2021-01-15T22:29:22.475259
2013-05-24T17:45:11
2013-05-24T17:45:11
1,071,502
1
0
null
null
null
null
UTF-8
Python
false
false
136
py
"""Functions of generic utility """ def partition(alist, indices): return [alist[i:j] for i, j in zip([0]+indices, indices+[None])]
[ "gabriele.lanaro@gmail.com" ]
gabriele.lanaro@gmail.com
f04cfa1c8e45c8afac3256b904185d5a59c54180
f8e6234ff0b3a4f2a30ad8c6e09f7b6d40ba9f0e
/mcscf/mc_ao2mo.py
40301c13da0721d768b95a01fdf64d76bc6ecf8e
[ "BSD-2-Clause" ]
permissive
armunoz/pyscf
b358b90cfea46e4527eed997eaf509a11a282551
258167cabf2101148feadd3bc0da2dd2eccd725a
refs/heads/master
2020-06-26T10:08:25.454426
2017-07-12T15:05:21
2017-07-12T15:05:21
97,016,486
0
0
null
2017-07-12T14:19:35
2017-07-12T14:19:34
null
UTF-8
Python
false
false
14,827
py
#!/usr/bin/env python import sys import ctypes import time import tempfile from functools import reduce import numpy import h5py from pyscf import lib from pyscf.lib import logger from pyscf import ao2mo from pyscf.ao2mo import _ao2mo from pyscf.ao2mo import outcore # least memory requirements: # nmo ncore ncas ou...
[ "osirpt.sun@gmail.com" ]
osirpt.sun@gmail.com
4d42595a22f952ddfa1e6967602dbe48315a35cb
bf43cd7700d0d92163139c483faee0f5434e4bf1
/day13/solve_pt2.py
a6f039d316680521b13046b071776093af69a7b2
[ "ISC" ]
permissive
tmward/aoc2020
e3a61e1d3c7780126a52bb2de6d4a951ce4c5a64
6181054cbc5fefd7e286a5f2350ce1541d48ac9f
refs/heads/master
2023-02-02T16:47:33.858071
2020-12-19T19:09:47
2020-12-19T19:09:47
317,907,919
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
#!/usr/bin/env python3 from itertools import count import sys def get_input(filename): with open(filename, "r") as ifile: return [ int(t) if t != "x" else 1 for t in ifile.read().splitlines()[1].split(",") ] def solve(buses): n = 1 step = 1 for i, b in enumerate(buses): ...
[ "thomas@thomasward.com" ]
thomas@thomasward.com
d814ca9c6da927cb9c27703d69bf0cceb5742c21
e077589d9b137aa9b7cbdf3e50869c074a842dbc
/apps/front/decorators.py
94efc1107f7b8e3ec0ecc3efd5a30621cd8e0c33
[]
no_license
2228505521/zlbbs
a5059cae4737982a83c1eac89bc25590c92db849
220076ad331595437a0d8997e936ab5922d81333
refs/heads/master
2020-03-21T22:33:01.552443
2018-07-04T15:30:17
2018-07-04T15:30:17
139,133,495
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
from flask import session, redirect, url_for, g from functools import wraps import config def login_required(func): @wraps(func) def inner(*args, **kwargs): user_id = session.get(config.FRONT_USER_ID) if config.FRONT_USER_ID in session: return func(*args, **kwargs) else:...
[ "2228505521qq.com" ]
2228505521qq.com
2463293afc1d93b7f309b6a7e5570b015a89f48d
a602aefd8531cd14d889c195fcd509bda27e0950
/POO/association.py
139521e1c503ae846545030a3e7e02d7441382d6
[]
no_license
JeanAfonso/CursoUdemyPython
ed7967acf2fc534a5ce20ce541d452a052ac320a
99fd941c98c8185e9959eabfd6a7f6e796f6aeee
refs/heads/main
2023-08-02T13:06:46.787808
2021-09-19T04:18:33
2021-09-19T04:18:33
382,742,486
1
0
null
null
null
null
UTF-8
Python
false
false
265
py
from classesmodules import Writer from classesmodules import Pen from classesmodules import TypeWriter writer = Writer('joaozinho') pen = Pen('Bic') machine = TypeWriter() writer.tool = machine writer.tool.writing() del writer print(pen.brand) machine.writing()
[ "42818833+JeanAfonso@users.noreply.github.com" ]
42818833+JeanAfonso@users.noreply.github.com
0d17cb5e6e0e5521324e159484f2ba82a098d3e4
cf5cc32f4576b521c6f30b98fcaf4581941e3d42
/frjj/industry/indu.py
ec5990991b74be12224e1deb0d062d3dd1247e81
[]
no_license
ZhiweiGiHub/my_factors
e9ce0b264bfb448ef56d8dbaa0862997880b8ab4
00d37f1fc892071b4fa6822ff1182245c5fa823b
refs/heads/master
2020-07-13T08:53:49.258337
2019-08-29T01:07:05
2019-08-29T01:07:05
205,050,302
0
0
null
null
null
null
UTF-8
Python
false
false
11,671
py
import pandas as pd from tqdm import tqdm from api import get_data_crosssection_genaral, get_data_panel, get_tradingdays, get_data_crosssection import matplotlib.pyplot as plt import numpy as np import matplotlib.ticker as ticker banchmark = '000905.SH' index_for_simple_weight = '000905.SH' top_num = None begin_date =...
[ "1976349775@qq.com" ]
1976349775@qq.com
4c6e20d7f775e2a7e143468dbc96518a243c779d
bb5b2f2ddb59b3b7b55851f840fa5d76c921f505
/gitplay_site/urls.py
cf23b869fdb3f61e5ade4b3c335f90b2ca891ae8
[]
no_license
padrethecat/gitplay
9bdb79ad153e11bef30ff5069fa32af3bfc6085f
0f383678fbe9e66b5a5d8c4421032cc170b27a4c
refs/heads/master
2016-09-06T15:18:04.413935
2015-06-18T04:35:27
2015-06-18T04:35:27
37,637,260
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
"""gitplay_site URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
[ "bryanwh@a45e60c66237.ant.amazon.com" ]
bryanwh@a45e60c66237.ant.amazon.com
b7c6cb163f6f35915e4fd76d905f8bb4b2ff6646
23bdcb74f9c4d98ff790d140bea56fbb0fd7bbbd
/app/env/Lib/site-packages/sqlalchemy/dialects/mysql/base.py
2bba2f81a7249980748bccf376d1a90900ce35f0
[ "MIT" ]
permissive
OswaldoCaleone/transporte_uniescolar
85c680c062fa14d0bc90afa60f7434b059fdf245
1ef10869358457a6a9d0f04df891ce4eb0905887
refs/heads/main
2023-08-30T18:37:11.496451
2021-11-12T13:35:45
2021-11-12T13:35:45
429,673,776
1
0
MIT
2021-11-19T04:53:24
2021-11-19T04:53:24
null
UTF-8
Python
false
false
117,932
py
# mysql/base.py # Copyright (C) 2005-2021 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php r""" .. dialect:: mysql :name: MySQL / MariaDB :full_support: 5.6, 5.7, 8.0 ...
[ "92728746+alexpls2021@users.noreply.github.com" ]
92728746+alexpls2021@users.noreply.github.com
1d029126189b24c00d14fdff00f46f246760742a
0c6cdebed866334a0a5085f481c15d328c00a6e0
/run.py
f46b421c0f5f670dd82255c8447a25f420ca52d3
[]
no_license
CarolinaCobo/love-sandwiches
794985b98a4837e0e89b49cb0bafdbf9250fe90e
f70a0a7d79042266ec9e65b3ee8437dfb3279a97
refs/heads/main
2023-06-26T01:07:01.055762
2021-07-24T15:50:29
2021-07-24T15:50:29
388,381,687
1
0
null
null
null
null
UTF-8
Python
false
false
4,536
py
import gspread from google.oauth2.service_account import Credentials import json # Every Google account has as an IAM (Identity and Access Management) # configuration which specifies what the user has access to. # The SCOPE lists the APIs that the program should access in order to run. SCOPE = [ "https://www.goog...
[ "ccobo.dev@gmail.com" ]
ccobo.dev@gmail.com
9229b2f555f79cbed6c76a6d4cd3c57907fe831f
4e92106302c784431115cea8e822f56234e2684b
/lib/plot.py
5c515658ec0f0625310cab69f0e794fed096ddaf
[]
no_license
CardiacModelling/cside-2018
950a7cd92c791fd1840e38ce1726d1c13f68b267
d91df2bc71a6e2fb18e1d009a3f5722b1e0fc271
refs/heads/master
2020-04-15T17:09:13.118292
2019-03-12T11:51:01
2019-03-12T11:51:01
164,862,967
0
0
null
null
null
null
UTF-8
Python
false
false
14,223
py
# # Quick diagnostic plots. # # This file is part of PINTS. # Copyright (c) 2017-2018, University of Oxford. # For licensing information, see the LICENSE file distributed with the PINTS # software package. # from __future__ import absolute_import, division from __future__ import print_function, unicode_literals impo...
[ "chonloklei@gmail.com" ]
chonloklei@gmail.com
cbc3968f2cb0225fcf1812ccf11da14a2c4830b0
b49ff69cdabf0e2117934d3f785bfc444c2c4f47
/ppp.py
7aba8cde31925de77ddcee5df5c40669d56d26fc
[]
no_license
KristianOksavik/TKoT
e0744872eb4dcdbb04b2d19863b586356eb033fa
da07cd5ee776a8233f3209968ef5ea57f018c78f
refs/heads/master
2020-05-02T20:51:50.721832
2019-04-25T12:28:46
2019-04-25T12:28:46
178,203,943
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
#!/urs/bin/python3 # oppgave en (classes) class kjoretoy: navn = "" variant = "bil" farge = "" verdi = 100.000 def besrkivelse(self): beskrivelse_str = " %s er en %s %s verdt kr %.2f." % (self.navn, self.farge, self.variant, self.verdi) print (beskrivelse_str) bil1 = kjoretoy() b...
[ "danielolsen88@gmail.com" ]
danielolsen88@gmail.com
3bd3fca8d7656cbcc27d70129eef1ca5de15881c
bd0c4e28f2814ce93d6dbc6ee941a37894918225
/cnn_cleaner13400_3conv2d_2drop_flt3x3_AWS.py
f7083639546a2dc3485dd2486b37767a0b9c96b9
[]
no_license
gretchenriggs/AWS_repo
2011c30496fde25e3abbd800d2f0162d4abe0f42
f39605040b6446698478e74442e2d504f87fba12
refs/heads/master
2021-01-21T10:04:35.233870
2017-03-17T20:38:07
2017-03-17T20:38:07
83,360,408
0
0
null
null
null
null
UTF-8
Python
false
false
10,754
py
''' Running CNN to classify satellite images as containing only natural objects (0) or containing some man-made objects (1). Using Theano, with Tensorflow image_dim_ordering : (# images, # rows, # cols, # channels) (# images, 124, 124, 3) for the X_train images below ''' import cPickle import numpy as n...
[ "gretchen.m.riggs@gmail.com" ]
gretchen.m.riggs@gmail.com
6860caabac9b63fc7d3b36420c4d2b640cf5f8ce
5fd7f9c9b2f87f1a329958b934aa3ae309fdad40
/conin_market_0/coin.py
23b55b26a91fdaa61678c10813e97c8453153924
[]
no_license
gollumHome/coin_market
f598a2902afe7ec654ca709d2727507861f53cdf
c033dd2f0609505c5e34533e75f3df1b4c58032b
refs/heads/master
2020-03-15T12:48:09.016203
2018-05-05T02:23:28
2018-05-05T02:23:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,240
py
#! usr/bin/python # -*-coding:utf8-*- import requests from lxml import etree from email.header import Header from email.mime.text import MIMEText from email.utils import parseaddr, formataddr import smtplib from constant import coin_list from constant import coin_usdt from constant import smtp_server from constant ...
[ "1025951714@qq.com" ]
1025951714@qq.com
d26c542a54ba6d12dbca64aee5e633b40f76419d
7a13cbfdf7b703e86301ae93093de6c8dd5dbb13
/urls.py
15b2d5c185711deb830053e1be3b04b5930f33f7
[]
no_license
vaughns/pystar-work-myproject
8c4a633b4bf2c8a51b2f9ab887f4da7defc557f5
f6f460cba7cb2fa5d23c0d5b2529002c5df2eb07
refs/heads/master
2021-05-26T15:55:41.602454
2011-03-26T20:23:14
2011-03-26T20:23:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', (r'^$', 'polls.views.redirect_to_polls'), (r'^polls/$', 'polls.views.index'), (r'^polls/(\d+)/$', 'polls.views....
[ "vani.ramakrishnan@gmail.com" ]
vani.ramakrishnan@gmail.com
d3b980a8ca6ff1014d641b3e9d8eea210eb0de37
8528604d3231d86feada09465170220b892c1c35
/tests/components/weathering/test_exponential_weatherer.py
c8ed60574448adb93795c9f06ba6bbffcd34820d
[ "MIT" ]
permissive
ChristinaB/landlab
9780acbd5753741cd91c40dbc5d683b66f2481a6
82fd45d059dbe58728b074b024e46a1a10ce1e5c
refs/heads/master
2021-04-26T22:45:44.007416
2020-12-02T22:57:27
2020-12-02T22:57:27
124,138,852
0
1
MIT
2020-12-02T22:57:28
2018-03-06T21:08:56
Python
UTF-8
Python
false
false
494
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 1 14:02:18 2020 @author: gtucker """ from landlab import RasterModelGrid from landlab.components import ExponentialWeatherer def test_create_weatherer_and_change_rate(): grid = RasterModelGrid((3, 3), 1.0) grid.add_zeros("soil__depth", ...
[ "noreply@github.com" ]
noreply@github.com
3e17b5f9f01afa7784a6d968c6969279490e9932
776b78ab67e3db728999b45f93f3be70ef11b477
/Code/multivariate.py
e55e7cf9df662dddee3435bc4ac94a0cd324bd33
[]
no_license
bexshinderman/DSMI_Code
724b80eed29171cdd523de56ae43e5e52c7a74af
f488510cc9247a97208c902943da42894c699ec3
refs/heads/master
2021-03-29T15:13:35.295441
2020-06-11T06:55:10
2020-06-11T06:55:10
247,963,030
0
0
null
null
null
null
UTF-8
Python
false
false
5,425
py
# -*- coding: utf-8 -*- """ Created on Tue Mar 10 10:58:17 2020 @author: shind """ import numpy as np data = np.loadtxt("artifical_lin.txt") print(data) print("*********************") X = data[:, :-1] # select all the rows [:, in the data object and all the columns except the last one ,:-1 y = data[:, -1] # select al...
[ "bex@bex.com" ]
bex@bex.com
5f1902405557087febfe595ce242a323145b738e
ed74dbe0754094ef60f788185bd15c47d45f41eb
/python/genfold/alg1_2.py
0dfc2d8c1d33530841f8897fd9d222bb699a63b5
[]
no_license
AndrewDuncan/Doublecoset
e045cdff6744f79763eb80c0a50386bcd006d421
e29c9aaa483964ae469a0d4f6b3904d61e800dd2
refs/heads/master
2021-01-21T04:54:05.325858
2016-05-25T12:59:00
2016-05-25T12:59:00
2,112,734
2
1
null
null
null
null
UTF-8
Python
false
false
12,124
py
from graph_2 import * class element(object): #reduced word def __init__(self,word): self.word = word i=0 while i<len(self.word)-1: if (self.word[i]==self.word[i].lower() and self.word[i].upper()==self.word[i+1]) or (self.word[i]==self.word[i].upper() and self.word[i].lower()==self.word[i+1]): self.word...
[ "m.j.gough@newcastle.ac.uk" ]
m.j.gough@newcastle.ac.uk
9ebcfe440aadfcb8bf00181e22e0cfadd7c707ac
9b6a8923e783bd2641d7af3b118ff83f38c1de31
/review/list/list.py
db0572268d2cf805fbed1cf651fd1c590a2e4f44
[]
no_license
mbrsagor/PyLearn
1c625698802fc5325ea06b754dc9b80d716d9f31
94e68f10efd1f5b1a26d1fd965a29dbbe6c2253d
refs/heads/master
2023-02-25T05:50:23.530150
2021-01-31T19:09:01
2021-01-31T19:09:01
263,316,318
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
students = [ { "name": "Jacob Martin", "father name": "Ros Martin", "Address": "123 Hill Street", }, { "name": "Angela Stevens", "father name": "Robert Stevens", "Address": "3 Upper Street London", }, { "name": "Ricky Smart", "father name": "Wi...
[ "mbrsagor@gmail.com" ]
mbrsagor@gmail.com
4c4ac42971c3ea60c5afb109b6ebadd8078ea34b
9dd07ac7212123aa361a0aa323ae185e9c889a19
/main.py
730c28e7b35da234c6df5511330b2c7b2e2f27ba
[]
no_license
detectiveSnowball/WiresBot
2c948cf946775d0e7c110f41a8a290e750d57351
6eebac6f38c504970624bf1f407af5704a2572e0
refs/heads/master
2023-08-07T09:23:31.234613
2021-10-09T20:35:21
2021-10-09T20:35:21
395,163,820
0
0
null
2021-10-09T20:35:02
2021-08-12T01:49:10
Python
UTF-8
Python
false
false
993
py
import discord import os import time import pet client = discord.Client() @client.event async def on_ready(): print('We have logged in as {0.user}'.format(client)) @client.event async def on_message(message): if (message.author == client.user): return if "genshin" in message.content.lower() or "impact...
[ "detectiveboudreaux@gmail.com" ]
detectiveboudreaux@gmail.com
199de7e9f97a79772b2fbd93c9619b55d9fdb18a
930eb77f49c60c6be7f49243c14658f3d70a3532
/kNN.py
475ace4397aa7efcd122c44476a5874543c95f9c
[]
no_license
lonelam/LinearPy
f55489f66249c64f4fee2d582e4369e6782d02d7
642060510670a09b3b51e74111b121dfa7e8929b
refs/heads/master
2021-09-13T05:52:59.470923
2018-04-25T18:24:38
2018-04-25T18:24:38
116,158,755
0
0
null
null
null
null
UTF-8
Python
false
false
2,530
py
from numpy import * import operator def file2matrix(filename): fr = open(filename) arrayOfLines = fr.readlines() numberOfLines = len(arrayOfLines) returnMat = zeros((numberOfLines, 3)) classLabelVector = [] index = 0 for line in arrayOfLines: line = line.strip() listFromLine ...
[ "laizenan@gmail.com" ]
laizenan@gmail.com
281102498d3f93366cd287fa27c1077cd8c658ea
c19c1cbbb11739ab3d031cabdb417c9eed376d69
/authentication/views.py
9f58f2cdf93f0effbcaad2274cd7851ad2392515
[]
no_license
arevej/Notes
90bcfadb7e7a8d3346ae2613effe2d1dd7016206
e4f1acd078a96b0f6ef9adf0e59cb5ee6b216712
refs/heads/master
2021-06-17T08:13:57.993870
2017-05-19T10:17:20
2017-05-19T10:17:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,168
py
from django.views.decorators.csrf import csrf_exempt from django.shortcuts import render from django.http import HttpResponseRedirect, HttpResponse from django.urls import reverse from django.contrib.auth import login, authenticate from django.contrib.auth.models import User from .models import Note import json def i...
[ "tim@Tims-MacBook-Air.local" ]
tim@Tims-MacBook-Air.local
4971148ded922aab1c7bcceb73ea4136e79c4e7f
c7cb4e768cbb4110c1995234bae2967fb92b0bd3
/mySite/mySite/urls.py
52c38cceaf3621feb74b8355d96a957b9a943ae3
[]
no_license
backtobasic18/main_roni_site
d50f7418f8e6a48855746bb2229a840a2af7d7f8
06cabff9b960f762bb2ad64421cc8e2a3e5422a4
refs/heads/master
2020-07-06T13:44:34.805318
2016-09-10T17:34:16
2016-09-10T17:34:16
67,798,890
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
"""mySite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
[ "test@gmail.com" ]
test@gmail.com
0521bb9fbe44a99b36021750f89977a0fd640d1c
d1dbe180867997ba27a5bf8ddfbdb2b3e7aba577
/bot/cfg.py
7ea8d5020a491c312d712fd0f01b5fc3125c32c3
[ "MIT" ]
permissive
buffet-time/buffet_bot
c2661c77871b4def35333b586ff229b840b88bf6
5500bf0ce5a3e9f55081fc321e06acda58bfb080
refs/heads/master
2021-01-23T08:10:16.811961
2017-09-14T16:12:09
2017-09-14T16:12:09
86,480,309
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
# Config File HOST = "irc.twitch.tv" # irc server PORT = 6667 # irc port# NICK = "buffet_bot" # twitch name (lower case) PASS = "[REDACTED]" # OAuth Token CHAN = "#buffet_time" ...
[ "noreply@github.com" ]
noreply@github.com
f32bf145330eb4065328760c83b827d60333156b
07faadd987a5febb3c6e7180323c2b01e654f3c7
/experiments/heuristic/__init__.py
73467e2af94ea44712c1083f9c42270e4e9fe45a
[ "BSD-3-Clause" ]
permissive
TheoryInPractice/practical-oct
eda454d57e27274c857b874b5526ecf03bfef29e
e57119b26ca7e17d91f12a07cca55bf26e0b5aeb
refs/heads/master
2023-07-23T00:31:11.496517
2020-04-13T19:33:11
2020-04-13T19:33:11
130,571,253
5
0
BSD-3-Clause
2023-07-10T14:15:13
2018-04-22T13:44:23
Python
UTF-8
Python
false
false
815
py
"""Heuristic Experiment Module.""" from experiments import headers, RESULTS_DIR COMBINED_RESULTS_DATA_FILE = ( RESULTS_DIR / 'combined_heuristics_experiment_results.csv' ) CPLEX_RESULTS_DATA_FILE = RESULTS_DIR / 'cplex_experiment_results.csv' HEURISTICS_RESULTS_DATA_FILE = ( RESULTS_DIR / 'heuristics_experime...
[ "ewhorton@ncsu.edu" ]
ewhorton@ncsu.edu
3a4c7d1ca25812470d244b62c6ebb2d7a3675775
138701c41d979671f063a2896ba298b08c1a0b6a
/deprecated/common_utils/__init__.py
9944dc596f05601e7bdae437ead42bdf0cec374e
[ "MIT" ]
permissive
zhuchangzhan/SEAS
d6f6c4ecf8f9aaa8473112398f285a2ab864b3fd
d844ceecc54a475a5384925f45a2078eef3416ee
refs/heads/master
2023-08-18T20:39:15.884976
2020-09-07T01:21:42
2020-09-07T01:21:42
199,416,568
2
1
null
2023-07-06T21:45:17
2019-07-29T08:58:43
Python
UTF-8
Python
false
false
2,538
py
# # Copyright (C) 2017 - Massachusetts Institute of Technology (MIT) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. #...
[ "zzhan@mit.edu" ]
zzhan@mit.edu
544691d1ddac1a2ff9e0419bfc69e8b15f00a0b1
a8c0867109974ff7586597fe2c58521277ab9d4d
/LC648.py
e3823a187d57e17a47a6641bfc77b27bfb8ab450
[]
no_license
Qiao-Liang/LeetCode
1491b01d2ddf11495fbc23a65bb6ecb74ac1cee2
dbdb227e12f329e4ca064b338f1fbdca42f3a848
refs/heads/master
2023-05-06T15:00:58.939626
2021-04-21T06:30:33
2021-04-21T06:30:33
82,885,950
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
class Solution(object): def replaceWords(self, dict, sentence): """ :type dict: List[str] :type sentence: str :rtype: str """ sen_list = sentence.split(' ') for idx, word in enumerate(sen_list): min_root = word len_word = len(w...
[ "qiaoliang@Qiaos-MacBook-Pro.local" ]
qiaoliang@Qiaos-MacBook-Pro.local
c1763ba5175c207c332aa37cf46bb1aa24f588dd
a82aa8430e32eaf62df0f44b20afb0e7d50c3d7b
/ippon/group_phase/serializers.py
ed76683a6121808cf8e4196a5a8a7ebad298988f
[ "MIT" ]
permissive
morynicz/ippon_back
314daac99f79247b749dc46d59a645a6eb840263
dce901bfc649c6f8efbbf0907654e0860606b3e3
refs/heads/master
2022-12-20T23:33:10.898738
2021-10-17T09:25:39
2021-10-17T09:25:39
124,851,931
0
2
MIT
2022-12-08T12:37:26
2018-03-12T07:43:17
Python
UTF-8
Python
false
false
307
py
from rest_framework import serializers import ippon.models class GroupPhaseSerializer(serializers.ModelSerializer): class Meta: model = ippon.models.group_phase.GroupPhase fields = ( 'id', 'tournament', 'fight_length', 'name' )
[ "morynicz@gmail.com" ]
morynicz@gmail.com
d8219168fad609cda903bcbc9dddcdc5a8999cc5
a4cfc4814f97431e28728cfb1cf99f44046245d5
/dongguanspider/dongguanspider/settings.py
986d3f6fcbf1f6d0aed4e8a4150357a5c7945fa4
[]
no_license
junge2018/mygithub
d2832fdc6af699614c5160bead659df7c1f60171
c8aa2a533ecde09986dc3cef9fa33bfc124c9445
refs/heads/master
2020-03-25T06:39:16.427673
2018-10-15T02:50:55
2018-10-15T02:50:55
143,516,384
0
0
null
null
null
null
UTF-8
Python
false
false
3,427
py
# -*- coding: utf-8 -*- # Scrapy settings for dongguanspider project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/lates...
[ "970430670@qq.com" ]
970430670@qq.com
39a78544f35be6ef9bef4d434c0609cc0f0f6d53
5eb29ce7104e10a399d9afd7e253f029bf8bc0ff
/workflows/images-incremental-update/image_dl.py
642aff4941ac111e9fcba03ef642bc5941dbcc25
[ "BSD-2-Clause" ]
permissive
svebk/DeepSentiBank_memex
69789dc09316e97aad711edeb251837a60184e7e
4e69ce66e3a177817ff360ddc263f55c6e0b63f7
refs/heads/master
2021-01-18T18:55:10.870052
2017-10-19T22:51:29
2017-10-19T22:51:29
36,091,024
22
1
null
2017-02-09T20:31:20
2015-05-22T19:20:54
Python
UTF-8
Python
false
false
11,040
py
import requests imagedltimeout=3 class UnknownImageFormat(Exception): pass def get_image_size_and_format(input): # adapted from https://github.com/scardine/image_size """ Return (width, height, format) for a given img file content stream. No external dependencies except the struct modules from cor...
[ "svebor.karaman@gmail.com" ]
svebor.karaman@gmail.com
78228f1ddc1711827e6e3abf0f2b9539a2a9f985
b19546e74b12f4712bdc3647aeb3f125cca2884c
/forms.py
7400b5e6749ba19da64e745ceb29de50ae311504
[]
no_license
HelenOd1/project
8dcc7162709474e51a1f801bcf2832b4f976679d
242ab934400c9e94ff1c13e3c9da2b90835ebd5f
refs/heads/master
2021-07-11T07:17:18.691264
2020-02-18T12:41:44
2020-02-18T12:41:44
241,342,876
0
0
null
2021-03-20T02:55:13
2020-02-18T11:22:12
Python
UTF-8
Python
false
false
742
py
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import Datarequired, Length class PostForm(FlaskForm): first_name = StringField('First Name', validators = [ DataRequired(), Length(min=2, max=30) ] ) last_name = StringField('Firs...
[ "bob@email.com" ]
bob@email.com
d4093ac3dc928217c0b8f692d877775f3b31b7b1
b251f82ec35d30dcca8bc6d3f6bd59c61aea9576
/server/search.py
b1a6899cfa16771ed565b9500cda9582fc5b1961
[]
no_license
yupbank/buttong
85c9e993b7e89f010c4e4dbe6defe8b56ae7fffb
163be52221c305793cc64ffd4c548ce5af216543
refs/heads/master
2021-01-10T22:05:55.992440
2014-07-04T07:22:06
2014-07-04T07:22:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
727
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' seach.py Author: yupbank Email: yupbank@gmail.com Created on 2014-07-03 ''' from tornado import web from tornado import httpclient from settings import API_BASE, SUGGETION from util import ensure_tradition def suggestion(q, callback): q = ensure_tradition(q) ...
[ "yupbank@gmail.com" ]
yupbank@gmail.com
2b4b177013d39476805ddb88dcbd3416241fc203
b44efc71f4da37ea94f5891d63c115704a7ab59d
/landingpagewebsite/settings.py
f2f5fd80f3d5ff1bdd27f97d616cb8026145903c
[]
no_license
AddDon1337/django_training_website
10778c25324ff3135932417bd9ba9ca2cb3664c3
8cb9ab4c967eab25569db2a59dc6c21de74c7fe8
refs/heads/master
2023-06-17T14:15:32.649657
2021-07-14T09:37:50
2021-07-14T09:37:50
378,891,946
0
0
null
null
null
null
UTF-8
Python
false
false
3,593
py
""" Django settings for landingpagewebsite project. Generated by 'django-admin startproject' using Django 3.2.4. 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/ """ im...
[ "dmitriy.lekov@mail.ru" ]
dmitriy.lekov@mail.ru
c4194b35b0c4d19fbf61ada823bfe4a80aa83e71
40f4908483b98fc4f370ff4f2d520e1284d045b3
/phase02/immortals_repo/harness/pymmortals/generated/com/securboration/immortals/ontology/resources/memory/physicalmemoryresource.py
9be4f40b65705d8717bea20004f42fc927ec8dd1
[]
no_license
TF-185/bbn-immortals
7f70610bdbbcbf649f3d9021f087baaa76f0d8ca
e298540f7b5f201779213850291337a8bded66c7
refs/heads/master
2023-05-31T00:16:42.522840
2019-10-24T21:45:07
2019-10-24T21:45:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
from pymmortals.generated.com.securboration.immortals.ontology.property.property import Property from pymmortals.generated.com.securboration.immortals.ontology.resources.memory.memoryresource import MemoryResource from pymmortals.generated.com.securboration.immortals.ontology.resources.memory.memorytype import MemoryTy...
[ "awellman@bbn.com" ]
awellman@bbn.com
77d8f3cbc67a729af7ac8c58d8feb916d6d7aea6
9e2694b32f9010d1f6b6cfafae8cf254464fe5b0
/frospy/tests/todo/Su/plot_dQ_vs_cmt.py
6d42b268b76cad0305969268acf45fd1f9920a75
[]
no_license
sujania/frospy
32bcb89acbc5ae9a7bef676e546081c56f8cb147
3fce33d974d6412717d8ae1d1c27db9160e3930a
refs/heads/main
2023-02-20T18:03:54.850724
2021-01-22T13:36:17
2021-01-22T13:36:17
331,956,254
0
0
null
2021-01-22T13:36:26
2021-01-22T13:36:25
null
UTF-8
Python
false
false
3,881
py
# -*- coding: utf-8 -*- """ Created on Sun May 20 13:49:37 2018 @author: sujania """ import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm from mpl_toolkits.basemap import Basemap from mpl_toolkits.axes_grid...
[ "s.a.schneider@uu.nl" ]
s.a.schneider@uu.nl
ef00bb6c55f03705ce5ee9027d152a76d79f979d
4e7bff773d8d78377b112e16b561209dc2e74c9b
/server/lib/admin.py
1b1bc1d4393ddbd0932dde094265769cc628bd22
[]
no_license
irqize/flask-angular-forum
85997536025bac56c1c45eef93b648f52a6a3294
46960eb5bcef19e8106e398f5bb11d25c6a595a4
refs/heads/master
2022-12-08T16:45:06.812004
2020-08-28T23:06:17
2020-08-28T23:06:17
288,308,353
0
0
null
null
null
null
UTF-8
Python
false
false
2,842
py
from flask import jsonify, request, session from jsonschema import validate import json import time from werkzeug.security import generate_password_hash, check_password_hash from forum import app from lib.db import get_db def admin_json_required(func): def wrapper(*args, **kwargs): if 'name' not in sessio...
[ "irqize@gmail.com" ]
irqize@gmail.com
5ce3ab44c092203b24090566c9c958aa01d7048a
0ea78833e453d531db033bca00a082f2c61664e9
/apps/accounts/tasks.py
616d4d28365467fc78c2d86a82d0109676624f52
[ "MIT" ]
permissive
jimialex/django-wise-template-mysql
5ef7894abf915cd7a0338135db96cb454f4a26f3
78b7281ba5cdd1e89a165b217e1b200fdba0135b
refs/heads/main
2023-01-29T15:02:51.694866
2020-12-09T05:15:39
2020-12-09T05:15:39
319,849,022
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
# -*- coding: utf-8 -*- import time import logging from celery import shared_task from celery.utils.log import get_task_logger @shared_task def delay_task(): logger = get_task_logger(__name__) logger.setLevel(logging.DEBUG) time.sleep(20) logger.info('Delayed Task Finished!!!')
[ "jimialex06@gmail.com" ]
jimialex06@gmail.com
76c9d0acc8c5242eef7e1c34eb5c7b49b94cd992
4830a3d160a3cc8df039cbe0c37b4fb78e571af4
/mysiteEx101/manage.py
2ea3efdbbd4b921f775a11ad92402cb1ec0b1484
[]
no_license
xucongyong/django
e187832586ba79480d03a370b55df56a612da764
9a978170fafeb52463a172aae2eaba5bf3d54cc1
refs/heads/master
2023-06-22T08:40:17.539477
2017-03-02T05:20:44
2017-03-02T05:20:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysiteEx101.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "ironvanxv@gmail.com" ]
ironvanxv@gmail.com
bcf651fba22d01d60d0806cda33a3c99646e72ac
c1d1411edf0bf0bed56f4a59b96a0fff25a8661e
/Broadcast_send.py
0a5e03001d61afa34b1451cf9d0b8dd1be8b2603
[]
no_license
davidrotari19/FinalProject
79e00836c99c03476b9cee15c4688e6fd6bb5cf6
1b1942310db68a1c21fd83488845f4c321e6e883
refs/heads/main
2023-04-30T02:38:40.609018
2021-01-27T16:48:40
2021-01-27T16:48:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
import socket IP= "192.168.0.255" PORT = 5005 MESSAGE = "Thats just fucked up!" sock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM) sock.sendto( MESSAGE, (IP,PORT)) sock.close()
[ "noreply@github.com" ]
noreply@github.com
a8c5c7e3b1280c05481bf5cf00de1d61e37f5aa5
923d035a4762a19b30d5900db91143a83837ae70
/ichnaea/async/config.py
1fd35092f9eaed4de2aaf9188da99570999ed30d
[ "Apache-2.0" ]
permissive
voolitels/ichnaea
d5d5da34cb30b3e0c85675e32dab3972cc31d7b0
bd0350fcba9efb0bad3957309ed3a471ae07e41b
refs/heads/master
2021-01-17T14:21:16.056481
2015-11-10T16:38:22
2015-11-10T16:57:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,402
py
""" Contains celery specific one time configuration code. """ import os from kombu import Queue from kombu.serialization import register from ichnaea.async.schedule import CELERYBEAT_SCHEDULE from ichnaea.cache import configure_redis from ichnaea.config import read_config from ichnaea import internaljson from ichnae...
[ "hanno@hannosch.eu" ]
hanno@hannosch.eu
7a1a6ea1c3bb51d49b324dcf99ea502af272d5f1
60bd075b5591e9f6c61c087a665c01c9a5e78d40
/recruiterapp/models.py
37bad1857aacfac94bfa71328eb7bbe8d0159890
[]
no_license
ritesh90y/Job_Portal
110671ea6cb6d3aae74df2144b27028afd92f981
9f2d8a0ee20ed95def425b540589d184748aede8
refs/heads/master
2020-12-26T18:42:22.734483
2020-02-01T10:52:30
2020-02-01T10:52:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
from django.db import models from Jobapp.models import * from .choices import * from datetime import datetime from tinymce.models import HTMLField # Create your models here. class Vacancy(models.Model): user=models.ForeignKey(User,on_delete=models.CASCADE) company=models.CharField(max_length=100) jobcatego...
[ "karanjitrishav4@gmail.com" ]
karanjitrishav4@gmail.com
d1c4e9665883226b65b2e82e8acc7f7f56b247c5
1fc2765585128b31c5bb8df4d1742216fa6aaf24
/ssp.py
fa0fe65903b3b52fd854596229eeb65eda6580b5
[]
no_license
athelath/ssp
7ea0d44297517098b58de2f72e2d31898c6992c6
bc848ffc8d26d2c5a628413d665481cdb37b2b8a
refs/heads/master
2020-03-28T02:18:05.983919
2018-09-11T13:57:42
2018-09-11T13:57:42
147,560,985
0
0
null
null
null
null
UTF-8
Python
false
false
5,762
py
#!/usr/bin/python # -*- coding: utf-8 import MySQLdb from subprocess import Popen, PIPE import subprocess import httplib, urllib import json from termcolor import colored import string, os, sys, re try: import configparser except: from six.moves import configparser conf_file = "/etc/asterisk/extconfig.conf" rt...
[ "vitaliy.lamashevskiy.ltr@gmail.com" ]
vitaliy.lamashevskiy.ltr@gmail.com
cb1b99ef8d93b50f9e8a57564834306cb3c1da22
88aa532448cc7bd6db3c9e89b8d37618f39c9184
/pygameui/callback.py
2dd82dc2ae957987c7ff11b8da51fa50207827ea
[ "MIT" ]
permissive
jwayneroth/mpd-touch
4c245b68586352ae26091f2270509eacdd919be4
2e860c8d30c790bb6b07295eeb909d37ad88fcf3
refs/heads/master
2023-05-31T06:41:54.553175
2022-06-12T19:33:36
2022-06-12T19:33:36
60,374,409
7
0
null
null
null
null
UTF-8
Python
false
false
431
py
class Signal(object): "A simple signal - slot mechanism" # TODO use weak refs? really? def __init__(self): self.slots = [] def connect(self, slot): "slot: is a function / method" assert callable(slot) self.slots.append(slot) def __call__(self, *args, **kwargs): ...
[ "jwayneroth@gmail.com" ]
jwayneroth@gmail.com
c6d0485cc99fb6c0456f616883c72fb71f4f5926
7df827a137f3fbac295fd3b7d09cd54c6eb5c81c
/python_module/multiThread/mainMulti.py
7f44a8993fb592b008c8257d9eddcf7d13cdb7b8
[]
no_license
dawidbeno/memory_management
57304a5e95258223734249d329101ed9054553c0
07f430919263618e7e8b4759f3588e3451106d08
refs/heads/master
2021-01-22T18:50:54.167181
2019-09-30T16:51:55
2019-09-30T16:51:55
85,122,740
0
0
null
null
null
null
UTF-8
Python
false
false
8,008
py
# multiThread from PyQt4 import QtGui from PyQt4.QtCore import QThread, SIGNAL import sys import form import controller import time class View(QtGui.QMainWindow, form.Ui_Form): def __init__(self): super(self.__class__, self).__init__() self.setupUi(self) self.btnLoadLvl1.clicked.connect(s...
[ "dawid.beno@gmail.com" ]
dawid.beno@gmail.com
21628b37dfb94ee6579e7e07989522a480fe16e9
63b259f1bce1a06e3619861b23d234ad979d5b09
/quetzal/Dashboard.py
45355ded5fc5b413ff7f3d8eafff4f0fd5d215c3
[ "MIT" ]
permissive
maljovec/quetzal
12d2c363b2a44b624d07e0864ca37c98c3066ac2
507aec65077f9f07ed554bedb05cf269849ce966
refs/heads/master
2020-03-26T10:40:24.620137
2018-12-14T21:28:37
2018-12-14T21:28:37
144,810,374
0
0
null
null
null
null
UTF-8
Python
false
false
1,615
py
import json from flask import Flask from flask import render_template import webbrowser class Dashboard(object): """ A Dashboard class for visualizing multidimensional data using parallel coordinates in d3 """ def __init__(self, data=None, configuration=None, name=None, **kwargs): if data...
[ "maljovec002@gmail.com" ]
maljovec002@gmail.com
99aeccda9cabe52f63a6291377b378e10f4007e7
493e2e891f269a7edcf07f0b6f74846cd9ee3fbb
/tools/lightning_train_net.py
1a3ab2745ef6e75e457837582e84c7b10b0ed0a3
[ "Apache-2.0" ]
permissive
pankajkumar9797/d2go
699da502c9527e1e6061e4300b68fc7ed70a65db
23a644a1213ff19f32b3f106b271d41ff3148bd1
refs/heads/main
2023-06-07T18:28:03.431979
2021-06-28T15:48:20
2021-06-28T15:48:20
381,084,281
3
0
null
null
null
null
UTF-8
Python
false
false
7,287
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging import os from dataclasses import dataclass from typing import Any, Dict, List, Optional, Type import pytorch_lightning as pl # type: ignore from d2go.config import CfgNode, temp_defrost, auto_scale_world_si...
[ "pankajkumar9797@gmail.com" ]
pankajkumar9797@gmail.com
8841efec4e8475932943061b5b32ec3aa97783ca
1c7f0c62eeb393877d06e9a5076b41d90fa22f12
/python_workbook/0001.py
add0b87453cda55d1bb904d6e7236029349c87cd
[]
no_license
myhlcb/python_exercise
6f39c749af8fa3eb4963a6b6ed5cacc6e177a4b7
d19421e09de7640b57c1f9d1062393118a46d17c
refs/heads/master
2021-03-07T09:20:01.471768
2020-03-10T09:51:12
2020-03-10T09:51:12
246,256,975
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
# 做为 Apple Store App 独立开发者,你要搞限时促销,为你的应用生成激活码(或者优惠券),使用 Python 如何生成 200 个激活码(或者优惠券)? import string import random import os def getCoupon(): data = '' for i in range(200): i=i+1 data+='coupon no.'+str(i)+' '+''.join(random.sample(string.ascii_lowercase+string.digits,12))+'\n' return data path...
[ "1029785965@qq.com" ]
1029785965@qq.com
e416cacefa3c1d28641f2bf2e3cd0d28d8c0e1c9
ca51d1bf00d3326175d385e0f8e451d0d0bc0de2
/src/transformers/configuration_albert.py
c9dd6bbbbd0719c13234afd13237a7e63ed5908f
[ "Apache-2.0" ]
permissive
leodotnet/bert-ss
1db536c9114949e46663656b5bdbfe211b659a26
e3e216094b7303fdced0c9f6ec4494702ab96991
refs/heads/master
2021-02-15T13:35:39.202326
2020-03-04T13:15:17
2020-03-04T13:15:17
244,903,668
0
0
Apache-2.0
2020-03-12T18:29:56
2020-03-04T13:11:09
Python
UTF-8
Python
false
false
7,265
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
[ "lihao.leolee@gmail.com" ]
lihao.leolee@gmail.com
37f8d92e24b2223ab6dc273df38d3076171aa6f1
670ebb2dfbdce19389c78bdabdd8523a18eea678
/app.py
b279c2681a4f130c88f15e8cd85bb049bf585a34
[]
no_license
moemily123819/Belly-button-biodiversity-app
95bb250aa42f80dcf6396c87a19d594bccc7432c
ddb4d0e32852407dab5865936d2e94fb728331ee
refs/heads/master
2022-12-11T00:42:53.825212
2019-07-16T16:34:16
2019-07-16T16:34:16
197,174,270
0
0
null
null
null
null
UTF-8
Python
false
false
3,986
py
import os import pandas as pd import numpy as np import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine from flask import Flask, jsonify, render_template from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) ###############...
[ "moemily123819@gmail.com" ]
moemily123819@gmail.com
026d82102e954440bf345d67049c6ece4d6b3553
cf56d96afc89af644d6c40cae3299f10ac70fd51
/typeidea/blog/apis.py
6a1fd794b4047e90c758dd4dee5908bd5ddaa4ae
[]
no_license
NS2018/typeidea
e52238b4ae9e4c813360565af024bd5e78454f99
dd3344f861db606fc4ac61cdcc4ebc9a3d3a1fcd
refs/heads/master
2022-12-20T00:08:07.947043
2020-09-22T07:47:21
2020-09-22T07:47:21
293,702,893
0
0
null
null
null
null
UTF-8
Python
false
false
1,665
py
""" from rest_framework import generics from rest_framework.decorators import api_view from rest_framework.response import Response from .models import Post from .serializers import PostSerializer @api_view() def post_list(request): posts = Post.objects.filter(status=Post.STATUS_NORMAL) post_serializers = Post...
[ "“18737114330@163.com”" ]
“18737114330@163.com”
c0e2e9b1024557449c6caaf8a792a87679e308ef
2ff745b3083fed89deffa29221a2b3062d8c177d
/python-dsl-code/bake_kernel.py
8d74db466d4beb3af95e5f2e796525c7f2678ee4
[ "Apache-2.0" ]
permissive
artyompal/kaggle-abstract-reasoning
47bb24cf43b85af4987e843b476e5d8e48f45404
f5e9933c26c12270e5fcb0476696eea79bf981fc
refs/heads/master
2022-09-16T18:59:41.673852
2020-05-30T08:43:20
2020-05-30T08:45:28
267,439,383
11
0
null
null
null
null
UTF-8
Python
false
false
1,751
py
#!/usr/bin/python3.6 import base64 import gzip import os import sys from pathlib import Path from glob import glob def encode_file(path: str) -> str: compressed = gzip.compress(Path(path).read_bytes(), compresslevel=9) return base64.b64encode(compressed).decode('utf-8') if __name__ == '__main__': to_en...
[ "artyom@artyom" ]
artyom@artyom
670059a654f31135335adbe7093d1eb3225f839c
4d167b2d0e6c25e79b3c08f9383d32b82e914d46
/week2/textReader.py
cf792746cb6cd5e97a986dd8d196adec5ad29bd6
[]
no_license
eriixon/pythonBegins
f687fdd48c57e55895ec908df6d4ec550893be42
8254935d59bfa748cdd80feddb2f7acfb2765fc9
refs/heads/master
2021-01-01T18:57:01.513449
2017-11-30T00:56:40
2017-11-30T00:56:40
98,467,214
0
0
null
null
null
null
UTF-8
Python
false
false
837
py
import numpy as np import re from scipy import spatial text = '' lines_count = 0 with open ("text.txt", 'r') as f: text = f.readlines() lines_count = len(text) new_text = [] words = {} i=0 for line in text: line = line.lower() line = re.split('[^a-z]',line) line = list(filter(None, line)) ne...
[ "radkovsn@gmail.com" ]
radkovsn@gmail.com
8456beb0c77c5114ac1679b79bdcaea2a51b9cd8
c706ce7491a0848e816b6247ee367d5310d9eed8
/LifeGame/operation/StaticVar.py
a8a79163fdd66e17650ff4318c460dd3618d0b1b
[]
no_license
yushulinfeng/LifeGame
f211cb56c1a8a06dc559a672aaa094e20056786b
c340a6a3b9bd007d177bf7e3ee9b853a565417f7
refs/heads/master
2020-07-02T09:53:27.181126
2016-12-20T07:43:22
2016-12-20T07:43:22
69,333,468
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # 这个文档用于存储静态变量 notfinished = -2 draw = -1 prepare = 10 everyCalTurn = 5 size = 30 turnend = 30 null = 0 human = 1 humantobevirus = 3 humanminlive = 2 humanmaxlive = 5 humanminborn = 2 humanmaxborn = 3 virus = 2 virusminlive = 1 virusmaxlive = 6 v...
[ "china2012syl@163.com" ]
china2012syl@163.com
bad380548ed14d1a6f80a0365a8b665879bedd6f
ced259bfa61e7d637e53224a2b88d514a4b43cc2
/Class/range.py
1e1de5b0bf2f700dc8669e158632c5ac86caac85
[]
no_license
virani1993/Assignment
2e716628b385b207f7b11c61e3ccc2dbae915595
8284770a37baa31ab729504360f7fbde755049b8
refs/heads/master
2023-03-08T01:14:15.052666
2021-02-18T17:19:41
2021-02-18T17:19:41
329,701,729
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
List = [] a = int(input("Number :")) for i in range(0,a): b = int(input("Number :")) List.append(b) print(List)
[ "piyush0pv@gmail.com" ]
piyush0pv@gmail.com
86e955f4852f982d77e59aba8b9b5a448ca980be
2a24d860161eea9a5825b499258c5ab35cd84f60
/contact/models.py
05b604ac91543ec0a6d8d91e053d6a702280f26b
[]
no_license
irungumaina/django-wagtail-cms
527a319a5b18e33eaee6d53341249496f6647014
9fdc276b37d4d13980cef521826f6d91e1629f86
refs/heads/master
2022-05-27T09:48:02.606018
2019-09-23T13:32:00
2019-09-23T13:32:00
202,886,635
1
0
null
2022-04-22T22:06:14
2019-08-17T13:50:05
Python
UTF-8
Python
false
false
1,393
py
from django.db import models from modelcluster.fields import ParentalKey from wagtail.admin.edit_handlers import ( FieldPanel, FieldRowPanel, InlinePanel, MultiFieldPanel ) from wagtail.core.fields import RichTextField from wagtail.contrib.forms.models import AbstractFormField, AbstractEmailForm from ...
[ "kirathimo2010@gmail.com" ]
kirathimo2010@gmail.com
712595abb233c1b9403dbc62c3221745b91b68b3
6c4643ee81073b8fe90dbb90ace8515f27ee5d94
/tests/test_interp.py
e71cc10e79b10137946e98ce59bfbfd31d37bc78
[ "MIT" ]
permissive
hhu-stups/python_jvm
1c38ff8299057f4eefee66d627b9483c45bef80d
57b9e6cbdfae23c2aeac1383b04b2ab9424cea16
refs/heads/master
2021-01-19T09:09:16.934172
2015-08-30T11:48:23
2015-08-30T11:48:23
32,401,360
4
0
null
null
null
null
UTF-8
Python
false
false
54,666
py
# -*- coding: utf-8 -*- from classloader import encode_name, descriptor from interp import ClassLoader, Stack, Arrayref, make_String from javaclasses import JavaIoPrintStream #import interp #import java_threading import py, os, StringIO udir = py.path.local.make_numbered_dir(prefix='usession-', keep=3) #current_dir...
[ "John.Witulski@uni-duesseldorf.de" ]
John.Witulski@uni-duesseldorf.de
f78200e6f81943d3b92413741d69a34d640d1f5e
54925bbc302d5341d01d11d3898726b197e8a784
/report/strong_scaling/plotter_strong.py
3b170d81935ff9c6413b63b364dcfc9310338c1f
[]
no_license
sheroze1123/water
424312b77ec6f6dd3d29fc2c5751db16e6dabaa7
8428a960ba8022e0e32e8f4fb66a74023e46ff8a
refs/heads/master
2020-12-01T11:37:49.849877
2015-10-29T22:09:26
2015-10-29T22:09:26
43,750,903
0
0
null
2015-10-06T13:02:15
2015-10-06T13:02:14
null
UTF-8
Python
false
false
1,002
py
import csv import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib import rc import numpy as np import sys rc('font',**{'family':'serif','serif':['Palatino']}) rc('text', usetex=True) def get_last_row(csv_filename): with open(csv_filename,'rb') as f: reader = csv.reader(f) ...
[ "mss385@cornell.edu" ]
mss385@cornell.edu
2b86ef172ef88375f4c4e37f4a58e375d1650fd3
a976a3e5ffbc68e3f198194e42684ce6ef2d65bf
/Data_Analyst/Step_2_Intermediate_Python_and_Pandas/2_Data_Analysis_with_Pandas_Intermediate/3_Introduction_to_Pandas/8_Data_types/script.py
c9571b909c1219a0e1601b2acf526e9ec28fb622
[ "MIT" ]
permissive
siyuantoronto/Dataquest
58980d20cf9e6fdc13eb35968dd30effb5deb619
18a5ed8e361e8263af7e3a52cf04028f097a624e
refs/heads/master
2022-02-22T22:23:24.185280
2022-02-10T15:45:07
2022-02-10T15:45:07
183,970,155
0
0
null
2019-04-28T23:37:30
2019-04-28T23:37:29
null
UTF-8
Python
false
false
227
py
import pandas as pandas_Pandas_Module class Script: @staticmethod def main(): food_info = pandas_Pandas_Module.read_csv("../food_info.csv") hundredth_row = food_info.loc[99] print(str(hundredth_row)) Script.main()
[ "gitter@ls3d.de" ]
gitter@ls3d.de
4f613303615c55d2729147ae5cb8c6cd97c4ca83
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02383/s686099688.py
8350ca148ab207ab25ea1b72f0d85043ae5cfc38
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
dice = input().split() direction = list(input()) dice2 = [] for i in range(len(direction)): dice2 = dice if direction[i] == 'E': dice = [dice2[3],dice2[1],dice2[0],dice2[5],dice2[4],dice2[2]] elif direction[i] == 'N': dice = [dice2[1],dice2[5],dice2[2],dice2[3],dice2[0],dice2[4]] elif di...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6979557a264c91c1c6e5ee3ef5c87b6b45bed6cf
d77ee52c5ed31c906fd014294767db3865ea1ac1
/OnsiteContests/3/strong_password.py
47e14de8b5c55ee155dfa10c82334a4f855a12cb
[ "MIT" ]
permissive
koltpython/python-contests
df9ee36d1a7bbf8d32344c43e7d09d6478ca0560
2f8f51f39d7809dcadbcd6dd13a658faffcf902e
refs/heads/master
2020-04-25T17:42:34.928796
2019-03-20T17:28:51
2019-03-20T17:28:51
172,958,427
1
0
null
null
null
null
UTF-8
Python
false
false
1,158
py
#!/bin/python3 import math import os import random import re import sys numbers = "0123456789" lower_case = "abcdefghijklmnopqrstuvwxyz" upper_case = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" special_characters = "!@#$%^&*()-+" # Complete the minimumNumber function below. def minimumNumber(n, password): has_digit = False ...
[ "auysal16@ku.edu.tr" ]
auysal16@ku.edu.tr
1a15a77e37ce83123dd5fd180a50913623bcf0be
89ed806011362f09d115a0f83ff96a09ec2411d7
/tests/test_adapters.py
f12b7f299404c354193d7ae97013f2a83b57a0ca
[ "MIT" ]
permissive
Sraq-Zit/cloudflare-scrape
e4d51f3d38fee89c9db67fcb184a15f0319cb5d9
954670774887e028cf53f197b95db0d7076c6518
refs/heads/master
2022-11-18T03:21:35.226147
2020-07-05T23:29:04
2020-07-05T23:29:04
273,616,840
3
4
MIT
2020-06-20T01:25:59
2020-06-20T01:25:58
null
UTF-8
Python
false
false
1,430
py
# -*- coding: utf-8 -*- import ssl import sure # noqa import urllib3 from cfscrape import CloudflareAdapter class TestCloudflareAdapter: def test_create_adapter(self): adapter = CloudflareAdapter() adapter.should.be.a("requests.adapters.HTTPAdapter") adapter.close() def test_get_c...
[ "phitapig@gmail.com" ]
phitapig@gmail.com
d9e361b8b4602c4fc876a19fa99b58a00dd92860
d07432b9969c4bfa5b4e0d0d2ce7b74236d6a33d
/pygeodesy/gars.py
28c68e4904de16df15b071f6765348679771ba8a
[ "MIT" ]
permissive
cwilder23/PyGeodesy
aeb8301a7134bc5c19b35335ac1aff1fa0933e02
6e2f989fb9040c525040270b5834b259b0b4d0d9
refs/heads/master
2022-11-12T00:25:26.253946
2020-06-24T17:39:54
2020-06-24T17:39:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,312
py
# -*- coding: utf-8 -*- u'''Classes L{Garef} and L{GARSError} and several functions to encode, decode and inspect I{Global Area Reference System} (GARS) references. Transcribed from C++ class U{GARS <https://GeographicLib.SourceForge.io/html/classGeographicLib_1_1GARS.html>} by I{Charles Karney}. See also U{Global ...
[ "mrJean1@Gmail.com" ]
mrJean1@Gmail.com
e2e04294908887bd4d011cf9ed92d3da4a1df179
9114967f26a0091f08ae5598d802976ca5ed3e2b
/databricks_utils/aws.py
076f98a5b372cd243185554676b4b362ba0644dc
[ "Apache-2.0" ]
permissive
e2fyi/databricks-utils
5c48ff48357d9496795165ade5e3c36a4a7d6c5b
e3cfc91a70c75d9e08e80df473df302b3f4a5c2d
refs/heads/master
2020-03-21T17:12:14.191851
2018-07-03T07:22:56
2018-07-03T07:22:56
138,819,592
1
0
null
null
null
null
UTF-8
Python
false
false
5,389
py
""" Utility classes to interface with AWS for databricks notebooks. .. moduleauthor:: eterna2@hotmail.com """ import os class S3Bucket(object): """ Class to wrap around a S3 bucket and mount at databricks fs. """ dbutils = None def __init__(self, bucketname, aws_access_key, aws_secret_key, dbutils...
[ "eterna2@hotmail.com" ]
eterna2@hotmail.com
a778be45a738c428c09f03ec65096a832a8df811
b66c83dbdb1181d3274cfb309637c0bdf590553f
/build/extrinsic_Industrial/intelligent_actuator/robo_cylinder/catkin_generated/pkg.develspace.context.pc.py
50404616a97e27fc816577449f0fc4dc7749b87a
[]
no_license
Sinchiguano/repo_project
9079c80f6544cbe39902c68f61f421bd7cfd55e6
666da1d6d91704302b69ec9e0b0d30db3a709f30
refs/heads/master
2020-04-30T18:06:16.162025
2019-04-25T18:47:58
2019-04-25T18:47:58
177,000,277
0
1
null
null
null
null
UTF-8
Python
false
false
499
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/casch/yumi_depends_ws/devel/include".split(';') if "/home/casch/yumi_depends_ws/devel/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;rospy;std_msgs;message_runtime".replace(';', ' ') PKG...
[ "cesarsinchiguano@hotmail.es" ]
cesarsinchiguano@hotmail.es
a2c649431539213fa5e43c0386933739f79e2b91
6ede954089046c2562025c4fb2f8087a1c515375
/Covid/src/db/data.py
5e172a76b45627d8172b28c39d0b78065c7798c5
[]
no_license
J3T4R0/Covid-Scrapper
c788007e698d3f91e5efad523e57e8f383607df7
e68c6151b034317b5287ea059c9b0120c7cda2c1
refs/heads/master
2021-04-24T05:31:20.640430
2020-03-30T07:33:32
2020-03-30T07:33:32
250,085,300
0
1
null
2020-03-30T00:41:42
2020-03-25T20:33:31
JavaScript
UTF-8
Python
false
false
1,832
py
from pprint import pprint from pymongo import MongoClient import requests import time client = MongoClient('mongodb://localhost:27017/') def main(): get_mongo_doc('cases', 'customer.cases') get_mongo_doc('expectedCases', 'customer.expectedCases') get_mongo_doc('mediaReportings', 'mediaReportin...
[ "noreply@github.com" ]
noreply@github.com
330465e9c7046e35f6e9643ad0783b8b0f75b9e3
466912406272829982f75854cf0104c6ce8c9814
/data/nlp/task/tn.py
1f80c0f141aa16e10b8cdf4cd2f2570f501f9aef
[]
no_license
logonmy/Codes
9631fa103fc499663361fa7eeccd7cedb9bb08e4
92723efdeccfc193f9ee5d0ab77203c254f34bc2
refs/heads/master
2021-09-21T18:07:22.985184
2018-08-30T05:53:26
2018-08-30T05:53:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,710
py
# -*- coding: utf-8 -*- __author__ = 'victor' import os import sys reload(sys) sys.setdefaultencoding('utf-8') sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '..')) sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../util')) import db as dbcon from fundtag imp...
[ "hush_guo@163.com" ]
hush_guo@163.com
c4228442ea7bb005562f42293f54db22ffd4a496
85738a4cacd2a6d93c4487cf856c883c3d9d314a
/tests/web/settings.py
9a68dbff38a085e8bd59eb1e7053c05ef3ac066a
[ "Apache-2.0" ]
permissive
Kitware/tangelo
cc0cb1372bc5728e0585f739a9412a58a5069069
470034ee9b3d7a01becc1ce5fddc7adc1d5263ef
refs/heads/develop
2023-08-28T11:57:57.909917
2016-01-25T15:56:18
2016-01-25T15:56:18
6,885,877
40
21
Apache-2.0
2018-03-05T01:24:16
2012-11-27T15:38:26
JavaScript
UTF-8
Python
false
false
320
py
import cherrypy import tangelo # This service reports the value of cherrypy's thread pool setting def run(**kwargs): if kwargs.get('pool'): tangelo.util.set_server_setting('server.thread_pool', int(kwargs['pool'])) response = 'pool="%r"' % cherrypy.config.get('server.thread_pool') return response
[ "roni.choudhury@kitware.com" ]
roni.choudhury@kitware.com
6dcb30fec438ec2e9fff5f0b0626da1774055b61
653eaef652627b155569b5fe9ab9bb3607fc1e78
/alg/discriminative-jackknife/models/BNN.py
3a17799407f89d0061443791a187ff674aeeaeab
[ "BSD-3-Clause" ]
permissive
IlyaTrofimov/mlforhealthlabpub
11ab86a83bd2ffd2574364a956b322b0c62406ae
190cbad2faae9e559ffe7a68143df7f747d70adc
refs/heads/main
2023-04-16T03:58:38.423288
2021-04-21T10:22:43
2021-04-21T10:22:43
358,528,623
0
0
NOASSERTION
2021-04-16T08:25:26
2021-04-16T08:25:25
null
UTF-8
Python
false
false
1,534
py
import torch import torch.nn as nn class BNN(nn.Module): def __init__(self, *layers): super(BNN, self).__init__() self.layers, self.params = [], nn.ParameterList() for layer in layers: self.layers.append(layer) self.params.extend([*layer.parameters()]) # register...
[ "e.s.saveliev@gmail.com" ]
e.s.saveliev@gmail.com
718d0f430682a0b47ec3c0d95755ecd74fa8612a
7134e45563b2045837296cb5c4f1974a025e4f2b
/.history/MathmeticPracticeTimeLimit_20200411174234.py
16d18819de876f7987bf70910f5d9fe1a1e15342
[]
no_license
Nordenbox/Nordenbox_Python_Fundmental
dca175c471ac2c64453cc4bcf291dd0773be4add
9c79fd5d0dada580072b523d5aa1d72f996e3a22
refs/heads/master
2022-01-21T06:37:15.084437
2022-01-06T13:55:30
2022-01-06T13:55:30
240,154,945
0
0
null
null
null
null
UTF-8
Python
false
false
2,601
py
import random import time import os import subprocess def mode_choice(): print('请选用练习模式:\n1,选择练习题目数。\n') print('2, 选择练习时间') choice_num = int(input('您的选择: ')) if choice_num == 1: multipile_issues() else: multipile_time() def multipile_issues(): practicese_times = int(input('您要...
[ "nordenbox@gmail.com" ]
nordenbox@gmail.com
0de5b13218c3a51894c04721c9f9dd0bd80fb3c1
eb9ca15c9da35975cf3f203fc67472d73864cea9
/api/testapp/views.py
71e7f39f6c3a02ec2e0dff6edef2cf7515045b54
[]
no_license
tariqul87/gate-of-truth
67f9d5ca55a66a9207eb3e7ed5888e6058546a0b
270c9b6a6371b9fec57a971de584b73bbc4aeca6
refs/heads/master
2023-01-11T18:52:56.957662
2020-11-06T19:02:18
2020-11-06T19:02:18
301,211,027
0
0
null
2020-11-06T19:02:19
2020-10-04T19:33:00
JavaScript
UTF-8
Python
false
false
541
py
from django.shortcuts import render from rest_framework.authtoken.models import Token from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status class TestAPIView(APIView): def get(self, request, format=None): print('We took a hit!!!') to...
[ "tariqul.isha@gmail.com" ]
tariqul.isha@gmail.com
21220efe1d1d31ad7316402c1ff459e6d8c58e6e
368b556157c04aac2705d08a5a7e9d894a8f9410
/tickets/settings/tickets.py
405413a52ac0d306f4b917e53b5081f038cb3a2c
[]
no_license
drakeg/tickets
14f91487e29a6ea46277894c16d7a8660add646c
d8e1efdf1b8c2ce408fc29c63889cf3004be17fc
refs/heads/master
2023-08-09T12:41:00.688551
2023-01-24T23:39:05
2023-01-24T23:39:05
125,151,507
0
0
null
2023-07-25T21:07:49
2018-03-14T03:44:08
HTML
UTF-8
Python
false
false
248
py
""" Django Environments 0.3.0-alpha2 All settings here will override another ones """ import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) ENVIRONMENT_NAME = "Tickets" ENVIRONMENT_VERSION_CODE = ""
[ "greg@drakeweb.org" ]
greg@drakeweb.org
865ac22163c2707030533b413545131726723479
a4bb97b92edf149e0daa193e47922ec362f7f2a6
/feature_finder/planet.py
366f5c170cf646e706d7e45431b2b86e9f879728
[ "Apache-2.0" ]
permissive
planetlabs/feature_finder
034206ba676cc2251dd72de4b70aa94d3f16f473
86e7110fec43a80460ceef09965e3619430fbfc8
refs/heads/master
2016-09-09T23:49:36.288130
2014-11-07T22:54:40
2014-11-07T22:54:40
25,700,512
2
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
''' Copyright 2014, Planet Labs, 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 writing, softw...
[ "reiberkyle@gmail.com" ]
reiberkyle@gmail.com
c6f2008e87cb9a11cd7366979ea3851fa420c065
52d53fa337e3db4349b43f08961dc42cc2cc7624
/Visualisations/Utils/LedsOnOffCountExtractor.py
33fd11af602ed53d6f5053b5435606b229c3644c
[]
no_license
tomneutens/log_data_analysis
7f0a0e14230fe692091bad9508f1433322de8f19
6c7d4f8aba05975fdbd0597da60037eccc0fda22
refs/heads/master
2021-06-29T19:17:02.602250
2020-11-16T08:25:38
2020-11-16T08:25:38
178,832,512
0
1
null
null
null
null
UTF-8
Python
false
false
289
py
from Visualisations.Utils.MetaDataExtractor import MetaDataExtractor class LedsOnOffCountExtractor(MetaDataExtractor): def __init__(self): super().__init__() pass def extract(self, xmlString): return self.getBlockTypeCount(xmlString, 'dwenguino_on_off')
[ "tomneutens@gmail.com" ]
tomneutens@gmail.com
2340d4c9854fec7977e205ba86fa2509780728b3
1b720474da9efd83b729b28903709405a7155a04
/python/list-1/common_end.py
fb52d7f1cec5f6687c851322cc89e1bcf699a512
[]
no_license
mesolaries/codingbat
b1e738e3fd3073956bcc8856eda0369caed44bc2
2c741827a7551afc854eff2d9eb1ca52cf243368
refs/heads/master
2021-01-15T16:51:31.511496
2017-08-13T12:17:45
2017-08-13T12:17:45
99,728,408
1
0
null
null
null
null
UTF-8
Python
false
false
354
py
''' Given 2 arrays of ints, a and b, return True if they have the same first element or they have the same last element. Both arrays will be length 1 or more. ''' # common_end([1, 2, 3], [7, 3]) → True # common_end([1, 2, 3], [7, 3, 2]) → False # common_end([1, 2, 3], [1, 3]) → True def common_end(a, b): return a[0...
[ "noreply@github.com" ]
noreply@github.com
010427a5856703a295156243fe70f85976250e8c
2f17bb840634eab6f08a7bb488781f6951ce6b47
/AOJ_courses/ITP1_4_D.py
42e76330f54037ab4673edbc5a65b21db34f3da8
[]
no_license
NHRD/Atcoderpractice
3d5c1175e147a0bdbacf46f51b23db1a1b2dea22
958835069c84791afa36d119298b742d53e86ae0
refs/heads/master
2022-12-15T17:30:10.310049
2020-09-19T13:39:07
2020-09-19T13:39:07
279,771,996
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
n = int(input()) nums = list(map(int, input().split())) nums = sorted(nums) sumnum = sum(nums) print("{} {} {}" .format(nums[0], nums[len(nums)-1], sumnum))
[ "naohisa.harada@gmail.com" ]
naohisa.harada@gmail.com
5763ca493d0539aa217968e3b9c9a4581b80bb47
21307dc8a0dfb0c0d079762ec78cab37373e642b
/statusio/__init__.py
1f7b169bf300ee443da8840ac4a4861f7c867610
[]
no_license
cfrancocapo/statusio-python
2a9dabac2358519aafffe3fdb5adb698e5dfb3cd
c8143d5fd91cb03d8baab49089ccb01681861820
refs/heads/master
2021-01-01T22:32:27.758260
2018-11-28T20:05:16
2018-11-28T20:05:16
239,372,338
0
0
null
2020-02-09T20:50:54
2020-02-09T20:50:53
null
UTF-8
Python
false
false
288
py
#!/usr/bin/env python """A library that provides a Python interface to the Status.io API""" from __future__ import absolute_import __author__ = 'hello@status.io' __version__ = '0.8' import json # noqa from .api import Api # noqa
[ "joe@t3ch.com" ]
joe@t3ch.com
5ac5bd8c10ef9c4aa282171fa3b3d304ba459c14
0bf212091da81fdbca0ad4a49f1cb0fc31384b29
/grasp_recon/src/pyOpt_cost_function_collision.py
21d9d79a9660b6a78f64f85763821cb986f21863
[]
no_license
kanaek/GPIS-Grasp-DynObject-Reconstruction
b9d7b9b5375993b39bc6aa39d4f13115f41d2f9c
7c59502c5508c67eb0c0b964ab47e331fb7a4178
refs/heads/master
2020-04-08T13:45:35.643942
2018-11-27T23:29:12
2018-11-27T23:29:12
159,405,742
1
0
null
null
null
null
UTF-8
Python
false
false
5,066
py
#!/usr/bin/env python # This function wraps the cost function with pyOpt compatible objective function import numpy as np class CostFns: def __init__(self,immediate_cost,final_cost,grad,grad_final,robot_model,x_d,u0): self.eps=1e-15 self.delta_t=robot_model.delta_t self.cost=immediate_cost ...
[ "u1063462@utah.edu" ]
u1063462@utah.edu
d02dba956bc8728a171a9bd2b531dbfe02d74d53
ddc230d25a4f39550d3b77045d8c1f55a6bf2ef5
/exercise6.py
e61efca5fb055094765680efaa1effab3afeb6ae
[]
no_license
javalive09/learn-python-the-hard-way
18bf26fc07bf0224d7ad10441dbb539595a9422a
31cb38a646365027569b411ccba9e45490f7ad18
refs/heads/master
2021-05-08T18:17:54.395842
2018-01-30T09:31:53
2018-01-30T09:31:53
119,510,884
0
0
null
null
null
null
UTF-8
Python
false
false
834
py
# coding=utf-8 # 字符串和文本 x = "There are %d types of people." % 10 binary = "binary" do_not = "don't" y = "Those who know %s and those who %s." % (binary, do_not) print x print y print "I said: %r." % x print "I also said: '%s'." % y hilarious = False joke_evaluation = "Isn't that joke so funny?! %r" print joke_evalu...
[ "zhangrui24@baidu.com" ]
zhangrui24@baidu.com
59b111e7c48d6899e63795c608a24e3d51ca5fb3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02706/s901477236.py
e5cd388ef56bc4369f68551299e42a2e436c4640
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
#import numpy as np #import math #from decimal import * #from numba import njit #@njit def main(): N,M = map(int, input().split()) A = list(map(int, input().split())) s = sum(A) if s > N: print(-1) else: print(N-s) main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
80e9eeda1efc064f19b56be3222ec30e6dd1564d
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5744014401732608_1/Python/feigao/main.py
9d1ebc3970ed5aa77f1c7df72eca82287fe1e3c1
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
3,015
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys from functools import wraps, lru_cache def io_wrapper(func): @wraps(func) def _func(in_file=None, out_file=None, lines_per_case=1): in_buffers = [] if in_file is None: while True: try: ...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
e9880143e1cf66275f3cb00db8e80924fd0897d1
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_create_protocol_request.py
ad11aa561d4c11a287678808d35c64ee2c118655
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,463
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class KeystoneCreateProtocolRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dic...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
9c9b54ae3de56b5139d8df996f8853f77c45d8bd
f7200c1ac73f04e909b059ac8c91c671cef07b78
/tree/Reverselevel.py
c3d4b751de07c18bc65c65cd09f4ac7343f83056
[]
no_license
mkhanw01/DataStructure
bc64cbfbd6c3e1aa6e53750671446da22d266377
7210e2f23e3618cf57d58292c0f61ffd6b00c190
refs/heads/master
2021-01-20T19:27:14.601576
2016-08-08T06:37:36
2016-08-08T06:37:36
65,179,120
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
class Node: def __init__ (self,key): self.data=key self.left=None self.right=None def hieght(node): if node is None: return 0 else: lh=hieght(node.left) rh=hieght(node.right) if lh>rh: return lh+1 else: return rh+1 def g...
[ "mkhanw01@gmail.com" ]
mkhanw01@gmail.com
6f6e71ada7d0648a80e26f1ba5129ba140ff65e0
b11f4d0f4285e5990d56b4ec3745935ac01fd90a
/Applications/Core/exams.py
0b7d71b31f1639a18b4cafd2e1aef3a67074d6f5
[]
no_license
SrihariTheddu/school-administration-website
1d72d06115c77f4e67db96458b5522023766bc9e
f34e7b5158a6c43802c144292a2b9f472cea37bd
refs/heads/main
2023-07-25T08:54:17.960899
2021-09-08T07:24:25
2021-09-08T07:24:25
380,668,976
0
0
null
null
null
null
UTF-8
Python
false
false
957
py
from Applications.Examination.models import Question,CourseQuestions from DataProcessorSystem.FixturesInstallation.questions import QUESTIONS def ParseQuestions(course,QUESTIONS): this_questions = [] for index,question in enumerate(QUESTIONS): question['question_code']=course.course_code+str(course.standard....
[ "noreply@github.com" ]
noreply@github.com
9e8028eecbb81aba0197aa5be87be4035896e0f5
a7363c9b471ac33298ffc4399cfd4cff88d93068
/modules/helper.py
62cb76d178817f6b05c87b45ccd2138b764b2b31
[ "Apache-2.0" ]
permissive
blockpass-org/service-auth-example-python
81fd418030b5a0b462eea45e41bd4fa02830a835
dca07eba5ca92b01ac7deec4f3af21233f16d648
refs/heads/master
2020-03-18T02:44:34.985122
2018-06-08T12:17:32
2018-06-08T12:17:32
134,205,057
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
import json def read_json (path): rows = [] with open(path, 'rb') as filedata: rows = json.load(filedata) return rows def print_json (data): print json.dumps(data, indent=2) def write_json (data, filename): with open(filename, 'w') as outfile: json.dump(data, outfile, indent=2) def flatten (arr): ...
[ "tinnhlt@blockchainlabs.asia" ]
tinnhlt@blockchainlabs.asia
99d81d749eeb3c8cf378d891abfa8eb3dfabd43b
6c0cb75ae47c19110e3b9758c0f53c95ecb8357d
/pymdwizard/gui/Descriptor.py
158c45c11f9afdb43eadfd6ae6fcd222d93ee66f
[ "LicenseRef-scancode-warranty-disclaimer", "CC-BY-4.0" ]
permissive
mhannon-usgs/pymdwizard
e0f772fd195c590b1c693aa1be652eb926737570
c8ebf72c561bbedab972e304389958f2e4370350
refs/heads/master
2020-07-16T16:22:41.187835
2017-02-08T17:02:54
2017-02-08T17:02:54
73,944,035
0
0
null
2016-11-16T17:28:02
2016-11-16T17:28:02
null
UTF-8
Python
false
false
6,363
py
#!/usr/bin/env python # -*- coding: utf8 -*- """ License: Creative Commons Attribution 4.0 International (CC BY 4.0) http://creativecommons.org/licenses/by/4.0/ PURPOSE ------------------------------------------------------------------------------ Provide a pyqt widget for a Descriptor <...
[ "mhannon@usgs.gov" ]
mhannon@usgs.gov
7ac1f1e02d6fca1348af5cffc138f9aba464a34f
7512e51d6f56e738692db1b7d72fd8f7039ab0e0
/proj_agent_101/functionApproxAgent.py
218f7287e1da33f9f990d7fd3fb5fd7b917ca9df
[]
no_license
Ken4scholars/grid-world-reinforcement-learning
4acf12959235f05e95fb83e731a6d3e515907a1e
c3a07096df0db1e11482e2cb27df7f5d486ba2ce
refs/heads/master
2023-01-13T23:03:26.972568
2020-11-20T14:24:10
2020-11-20T14:24:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,914
py
import gym import gym_grid_driving import collections import numpy as np import random import math import os import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from gym_grid_driving.envs.grid_driving import LaneSpec try: # server-compatibl...
[ "kchinedu@mail.ru" ]
kchinedu@mail.ru
aae837f59af9f85121c650a148ad462e5d129e86
d8a92fcdc83063779a1e57746fe83bc2ef417e79
/python/TimeConvert.py
72e00f453b2a380e58fdd796f528191115802631
[]
no_license
solsteve/Europa-trncmp
caa3c17043e752a8adf23ae4fcdb4f499a1839c6
ab4f8f4de5d1c63fda0833c156da7acf30bccbd3
refs/heads/master
2021-02-13T09:00:19.394031
2020-06-15T19:30:12
2020-06-15T19:30:12
244,682,418
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
#!/usr/bin/python3 import numpy as np inFile = '' outyFile = ''
[ "stephen@soliday.com" ]
stephen@soliday.com
a91fed492e7ea829b15b61d9b085c6cd0457af50
379dbcfc3f4e41e64a38989359a2bf4874af89d8
/autokeras-1.0.14/autokeras/tuners/greedy.py
e84ba7a57fcec5147de0156717936d49a093bace
[ "Apache-2.0" ]
permissive
yy-iris/autokeras
86830cde539ec50103df461f3bf12b9779f34d95
4ac9355f44ef560bf8d4a86320e03cb3e9a77b02
refs/heads/master
2023-05-21T05:07:57.254564
2021-06-11T08:15:22
2021-06-11T08:15:22
375,951,679
0
0
null
null
null
null
UTF-8
Python
false
false
7,842
py
# Copyright 2020 The AutoKeras 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 or agreed to i...
[ "yy.iris@outlook.com" ]
yy.iris@outlook.com
6b59d1bac200837cf9ef6b6229235b3d975852e6
5a1c975df6d83e85fd66093caf1dc95330050046
/04. Add Rus data/proceed_ruslinks.py
dba6fb8ba65f46b40e7b8898b5e14947cfd9c722
[]
no_license
n0an/MyNamesEnvironment
cfc3468f520b8f30c93ed69fd016d818991b5b08
1f2f42083b408b43db48e86b6a52bc5a5ea458c8
refs/heads/master
2021-01-19T00:40:31.803131
2019-05-11T07:38:06
2019-05-11T07:38:06
87,197,466
3
0
null
null
null
null
UTF-8
Python
false
false
1,470
py
#!/usr/bin/python3 # coding: utf-8 import os import shutil import openpyxl import webbrowser import bs4 import requests os.chdir('!WORKFLOW') workbook = openpyxl.load_workbook('resulttableStage1.xlsx') sheet = workbook.get_sheet_by_name('sheet1') sourceSheet = workbook.get_sheet_by_name('sourcesheet') # +++++++++++...
[ "nantog@gmail.com" ]
nantog@gmail.com
ebf5a9196a6824deddd88d2ef1ea7e87b79f251b
e1425ebafec083e96cafb6fb24e120339b412333
/Link5/views.py
28c4d9d912a275e53709c1e4c647e9e4adbc5c9b
[]
no_license
sunvir72/EduWeb
825491a34e71cc63d478a66015f295651bb92a01
f02b5722e6f5f3318af8d84b860a89d057bc5258
refs/heads/master
2021-12-03T06:12:03.343047
2021-08-22T15:50:06
2021-08-22T15:50:06
235,432,186
0
0
null
null
null
null
UTF-8
Python
false
false
20,800
py
from django.shortcuts import render from django.shortcuts import HttpResponse,redirect from django.contrib.auth.models import User from django.contrib.auth import authenticate from Link2.models import saved_models,List import pandas as pd from django.core.files.base import ContentFile import pickle import os import dat...
[ "sunvirsingh72@gmail.com" ]
sunvirsingh72@gmail.com
999fdc61f6b4202e0965fa910b444732d4621b43
7c710d0c02e8c66c84493f38ad9b57c9cd62df6d
/Ch3-4-dividerdanger.py
e1ee216d8aee92eea9025e441e1af30ab87cf574
[]
no_license
OneForth/Learning-Python-Chapter-3
b1f488c3593069622ba0ee8956297b447fafc8fc
017657d4425679d99ad593f8e2ee143c5f6bc1b3
refs/heads/master
2020-04-21T04:23:17.665839
2019-02-06T18:20:44
2019-02-06T18:20:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
# Filename: Ch3-4-dividerdanger.py # Author: OneForth # Last Modified: Febuary 6, 2019 # Demonstrates the potential error of letting the use input zero as a divisor # Get two numbers from the user divided, divisor = eval(input("Please enter two number: ")) #Divids them then reports the results to the user p...
[ "noreply@github.com" ]
noreply@github.com
1248a9f99fc64024fc9b8cf760110b69f45b0851
199dbeb3fdf280f40016d054494cb131f040eb88
/fixture/contact.py
d620f04317be6e2d96dcd552a071199fe3a837d9
[ "Apache-2.0" ]
permissive
nataliamaslova/python_training
97495723ede1c52357b12f4398f5c537558f7bc3
9e831457291cfb1b25a4f8436ce13ad3314ab5b5
refs/heads/master
2021-05-07T04:08:09.811463
2018-01-09T12:37:38
2018-01-09T12:37:38
111,091,694
0
0
null
null
null
null
UTF-8
Python
false
false
8,881
py
from model.contact import Contact import re import selenium class ContactHelper: def __init__(self, app): self.app = app def open_contact_page(self): wd = self.app.wd if not (wd.current_url.endswith("/index.php") and len(wd.find_elements_by_name("selected[]")) > 0): wd.fin...
[ "maslova.nd@gmail.com" ]
maslova.nd@gmail.com
6fff662b7057c077bb1da9127f6f21b8d14c2b7b
37c1dcd23cd8bf7a169a9a2317418acc39ef6341
/Model/Alpha/model.py
de4eb8b691cafba32e95d39b0445cc067f0bb1cb
[]
no_license
zhang-yi-chi/AlphaZeroConnect4
049468d3884503046098417022264fcf70e25c5d
68e8c3c1936ff743fa4904c45dcc0d1e84dd0468
refs/heads/master
2020-03-11T12:38:05.912521
2018-04-18T14:40:44
2018-04-18T14:40:44
130,002,667
0
0
null
null
null
null
UTF-8
Python
false
false
2,740
py
import tensorflow as tf import numpy as np class PolicyValueNet(): def __init__(self): self.state = None self.valid_actions = None self.log_probs = None self.value = None self.build_model() def eval_probs(self, game): state = game.get_state()[np.newaxis, :] valid_actions = game.get_valid_actions() l...
[ "673865549@qq.com" ]
673865549@qq.com