blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
cc3f3c2352289d73e494b36f97e557535e657bed
c8bf3e2b94fe9a296e688cbb419563e0fa77c9c3
/test_video.py
5aefa09fb132c217bc47f87f01f18b8c6a0c5315
[]
no_license
josefmtd/test-cv
306884b4c185db6dbf02a683ccd0866c053f402a
ee40195bff27be068e58bccfa5ae0f60d9b6db68
refs/heads/master
2020-03-20T09:34:30.164397
2018-06-15T03:57:20
2018-06-15T03:57:20
137,341,314
0
0
null
null
null
null
UTF-8
Python
false
false
821
py
# import the necessary packages from picamera.array import PiRGBArray from picamera import PiCamera import time import cv2 # initialize the camera and grab a reference to the raw camera capture camera = PiCamera() camera.resolution = (640,480) camera.framerate = 32 rawCapture = PiRGBArray(camera, size=(640, 480)) # ...
[ "josstemat@gmail.com" ]
josstemat@gmail.com
c868dac673e8b151e58bccdabedd5a1e9275f883
115098a64947ccb9310e1f4d8bd44f9ca3eb6821
/wp.py
551dde359ea9fc48469d61fa1158ef01fe0eaee2
[ "MIT" ]
permissive
wakanapo/wpsearch
73264b34fedaf104d90e59d5187e8ac6a79ffccf
bbf480f02ac4ae0a7a489e9d216c149c3c375dc6
refs/heads/master
2020-03-07T13:06:24.376364
2018-03-29T23:47:21
2018-03-29T23:47:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,493
py
import sqlite3 import sys import json class Document(): """Abstract class representing a document. """ def id(self): """Returns the id for the Document. Should be unique within the Collection. """ raise NotImplementedError() def text(self): """Returns the text for ...
[ "keishi.hattori@gmail.com" ]
keishi.hattori@gmail.com
24ec79d14b8a83f2c499760bc56922b02185906e
43f299b826dc0289108e3852f3c8d92ba47677b4
/coursera_download_files.py
fb6a14746a13590d6abff3a7b396f612b4d70dc2
[]
no_license
bertothunder/tools
daaeeeb2243ea0819c8f5b1d9ce622564a15f239
207b37edf4a0d9d953f36e248591ea889c8fcd46
refs/heads/master
2021-01-01T06:54:24.191178
2014-11-27T18:02:23
2014-11-27T18:02:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,997
py
#! /usr/bin/env python2.7 'Download all the class files to a local directory' import os, re, dumbdbm, time, gzip, cStringIO, threading, sys, argparse from collections import namedtuple from multiprocessing.pool import ThreadPool as Pool from pprint import pprint # Web scrapping modules import mechanize, cookielib ...
[ "acurrope@cisco.com" ]
acurrope@cisco.com
6f37e652c5ee9b68c1579f12e147989fb8c2cbd4
c8fab9ceda9a5882584d9944a91c84a1828e1d8b
/code/35.数组中的逆序对.py
4396b2143041b5024aa2e6b5cae176862168b323
[]
no_license
Confucius-hui/Sword-to-office
7683bdb3037b711181e78aec5a16c9dbfa1c34d9
0a018c77e7faa89ad3f1daa87cee31d2b539e082
refs/heads/master
2020-04-08T07:58:10.713008
2019-06-20T08:38:03
2019-06-20T08:38:03
159,159,191
0
0
null
null
null
null
UTF-8
Python
false
false
1,555
py
''' 在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。 输入一个数组,求出这个数组中的逆序对的总数P。 并将P对1000000007取模的结果输出。 即输出P%1000000007 ''' # -*- coding:utf-8 -*- class Solution: def InversePairs1(self, data): length = len(data) count = 0 for i in range(length): for j in range(i+1,length): i...
[ "1034243218@qq.com" ]
1034243218@qq.com
25e72161c8d4276d21d755c960750c74d408ce34
8f75dae40363144b7ea0eccb1b2fab804ee60711
/tests/integration/goldens/credentials/samples/generated_samples/iamcredentials_v1_generated_iam_credentials_sign_blob_async.py
fffa6de4bc73a43e8c4de2347fdbc936e2ed972e
[ "Apache-2.0" ]
permissive
software-dov/gapic-generator-python
a2298c13b02bff87888c2949f4909880c3fa2408
304b30d3b4ec9ccb730251154b10896146a52900
refs/heads/master
2022-06-04T00:14:28.559534
2022-02-28T18:13:26
2022-02-28T18:13:26
191,990,527
0
1
Apache-2.0
2022-01-27T19:35:04
2019-06-14T18:41:06
Python
UTF-8
Python
false
false
1,491
py
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
software-dov.noreply@github.com
4ce90ed6b7934f21c3463432f8284e1baa696b8f
cc1b87f9368e96e9b3ecfd5e0822d0037e60ac69
/dashboard/dashboard/deprecate_tests_test.py
63b49de8e073633803e4351d0465573bfede7986
[ "BSD-3-Clause" ]
permissive
CTJyeh/catapult
bd710fb413b9058a7eae6073fe97a502546bbefe
c98b1ee7e410b2fb2f7dc9e2eb01804cf7c94fcb
refs/heads/master
2020-08-19T21:57:40.981513
2019-10-17T09:51:09
2019-10-17T18:30:16
215,957,813
1
0
BSD-3-Clause
2019-10-18T06:41:19
2019-10-18T06:41:17
null
UTF-8
Python
false
false
9,522
py
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function from __future__ import division from __future__ import absolute_import import datetime import mock import unittest im...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
33f06e48105dd16509b58527c0eed07ca7ed05a6
bc441bb06b8948288f110af63feda4e798f30225
/cmdb_sdk/model/notify/subscriber_pb2.pyi
f37ead231f841e671f9d1f218fbe6e05d86a7244
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
2,884
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from cmdb_sdk.model.notify.subscribe_info_pb2 import ( SubscribeInfo as cmdb_sdk___model___notify___subscribe_info_pb2___SubscribeInfo, ) from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) ...
[ "service@easyops.cn" ]
service@easyops.cn
9090363a9ae18d37db75ef5f9cfa91a9746969d5
054b2c78cf70a81823da522f1bb5889f42787365
/mudao/ui/__init__.py
78dc516a1d30d973d1d13ab0207c9f1ca480fe43
[]
no_license
musum/mudao
9537ca1f6262b1271f9c4f6a247e00549762d254
fbf8c507aa6e1755ac4126d7e4d75ace99b97fd4
refs/heads/master
2020-03-26T16:27:59.967129
2018-11-11T10:40:46
2018-11-11T10:40:46
145,103,715
0
1
null
null
null
null
UTF-8
Python
false
false
115
py
from mudao.ui.uiFile import FilePannel from mudao.ui.uiCmd import CmdPannel from mudao.ui.uiMain import MainWindow
[ "test@test.com" ]
test@test.com
14759c80b4c7aa5733b45151693919130262ebcd
25ba2f7256c15ed23c129837380f340ad56a932e
/limacharlie/Spout.py
75852122d299f39e84f6d61556da862e9d22b141
[ "Apache-2.0" ]
permissive
macdaliot/python-limacharlie
c60d4b5d7a7a8985bc67208b88b5fa0748866fd3
dc8011418f09d3acc0ebce5ea3afb98e4b7f600f
refs/heads/master
2021-06-17T08:27:28.358390
2018-11-25T15:09:33
2018-11-25T15:09:33
161,183,497
0
0
Apache-2.0
2021-02-09T18:28:39
2018-12-10T14:00:08
Python
UTF-8
Python
false
false
10,197
py
from gevent import monkey; monkey.patch_all() from gevent.queue import Queue import gevent.pool import sys import json import requests import os import traceback import uuid import time from .utils import * _CLOUD_KEEP_ALIVES = 60 _TIMEOUT_SEC = ( _CLOUD_KEEP_ALIVES * 2 ) + 1 class Spout( object ): '''Listener o...
[ "maxime@refractionpoint.com" ]
maxime@refractionpoint.com
89fdc67025f1d1105bd747a337937acde1171361
e9d25b27509087df06acb685fe08a335fb72113b
/project_stock/project_stock/migrations/0006_auto_20160511_1246.py
7c576a85e507cfa8dec282f8817ba396e01ba9e6
[]
no_license
cenh/ProjectStockSD
32cfa4d9ee6b8b81a0faaac47a1fc545476f92c0
7611c6a9152a9a8d0dc237eb12bf604fdd718c2f
refs/heads/master
2020-05-20T06:03:50.960284
2016-06-15T10:23:52
2016-06-15T10:23:52
51,740,226
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-05-11 10:46 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('project_stock', '0005_project_end_date'), ] operations = [ migrations.AlterF...
[ "ninjalf2@gmail.com" ]
ninjalf2@gmail.com
65a76d10ad4faa3451c1076b45faf88e43b89b85
9bce32b47bd2f5d676e2c880febc31e0cd2ebada
/core/__init__.py
0ec37ce465b51e237c214b819e8afab3d0832ce2
[]
no_license
ranxiao/Predictive-Performance-Eval-Toolbox
fa4a29cac6a5fe870d427c3a137e1eee6ccc6bc7
e97280c51b13f0d8a2c82ec393a73f64433d1674
refs/heads/main
2023-05-30T14:46:51.043669
2021-06-24T20:05:41
2021-06-24T20:05:41
314,012,246
1
1
null
null
null
null
UTF-8
Python
false
false
36
py
from .processors import Process, run
[ "noreply@github.com" ]
ranxiao.noreply@github.com
dbf025d7bcfc7df0a48718eccc0b0cb14810a02c
c2f35e5d3cfbbb73188a0cd6c43d161738e63bd1
/12-Django框架学习/bj18/test2/booktest/admin.py
e10072641c8350576c99bd572fcb82581b21d2f6
[]
no_license
yangh-zzf-itcast/Python_heima_Study
2a7cd0d801d9d6f49548905d373bb409efc4b559
7d753c1cdd5c46a0e78032e12b1d2f5d9be0bf68
refs/heads/master
2020-04-30T06:59:04.000451
2019-04-19T12:15:30
2019-04-19T12:15:30
176,670,172
1
0
null
null
null
null
UTF-8
Python
false
false
188
py
from django.contrib import admin from booktest.models import BookInfo, HeroInfo # Register your models here. # 注册模型类 admin.site.register(BookInfo) admin.site.register(HeroInfo)
[ "2459846416@qq.com" ]
2459846416@qq.com
c181290b15d6ff56e69337cc726815e6b271b393
2bcbf097c6f99a2ea30269bcab2420e9c7f08b67
/homeassistant/components/wallbox/const.py
62c9b2f6efdc0323ce964f2ff95c285d9867164d
[ "Apache-2.0" ]
permissive
yozik04/core
fe8fe96ac91ff18f2631ea40786e3b413dee839d
3374005b336284730209c571240039683cf662bf
refs/heads/dev
2023-03-06T02:28:28.520609
2021-10-30T17:18:39
2021-10-30T17:18:39
245,432,602
0
0
Apache-2.0
2023-02-22T06:16:08
2020-03-06T13:54:31
Python
UTF-8
Python
false
false
3,655
py
"""Constants for the Wallbox integration.""" from homeassistant.const import ( CONF_DEVICE_CLASS, CONF_ICON, CONF_NAME, CONF_UNIT_OF_MEASUREMENT, DEVICE_CLASS_BATTERY, DEVICE_CLASS_CURRENT, DEVICE_CLASS_ENERGY, DEVICE_CLASS_POWER, ELECTRIC_CURRENT_AMPERE, ENERGY_KILO_WATT_HOUR, ...
[ "noreply@github.com" ]
yozik04.noreply@github.com
2390b2d58a1a06651ea1b46e681dc0a4a1d5453d
1317129f0bc7d5c87aadba09b9ebe3e2c9613357
/modelling.py
679190f47d1c2b235df89a292fa6d22598f6a6b5
[]
no_license
aaqib-ali/Income_prediction
9dcecfcf73ff3b3a6c9608d573663ba7b8ff4f16
f420ead78b7684e723f7801d6c7f47c1bae1aaa7
refs/heads/main
2023-04-09T20:27:12.999711
2021-04-16T09:02:28
2021-04-16T09:02:28
346,493,822
0
0
null
null
null
null
UTF-8
Python
false
false
4,089
py
import time import os import pandas as pd from collections import Counter import seaborn as sns import utils.helper_exploration as exploration from sklearn.preprocessing import OneHotEncoder, StandardScaler from sklearn.compose import make_column_transformer, ColumnTransformer from sklearn.pipeline import Pipeline from...
[ "aaqib_ali90@protonmail.com" ]
aaqib_ali90@protonmail.com
9e69c2013364f4ed257b3f46392ed2611a7163b4
c44e28b14de66ca7a995c361ddec7add6c0c4775
/back/celery_local.py
e934b6bdc24a0488ec8abbd0571cf6b56813a9fa
[]
no_license
WnP/taiga-stack
27791318c87ba9cc7482542a2a1efa6c93c86112
c68cb634d1d2af64bf8e0ca084a0b7a94986e75f
refs/heads/master
2020-03-31T18:05:42.306457
2018-10-16T17:51:07
2018-10-16T17:51:07
152,445,933
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
from .celery import * # noqa # To use celery in memory # task_always_eager = True broker_url = "amqp://taiga:secret@tasks.rabbitmq:5672/celery" result_backend = 'redis://tasks.redis:6379/0'
[ "steevechailloux@gmail.com" ]
steevechailloux@gmail.com
bf068617a07cc247a0e776ea487f6d60f4cbd555
c36f43dc25cd7f2b52aa606f57bc9d690c248242
/Python Data Visualisation/solutions/case_studies/case_study_d_flytipping.py
84018bb1f60c90f74485d7dca81fab9fdfa71250
[]
no_license
rachelchalmersCDDO/hello-git
53a400f64ba49c84aca7afe0f4af9901effd753a
0f72eceed31f503cea526785e8716321a7f31e78
refs/heads/main
2023-04-27T04:37:45.071999
2021-05-11T11:48:59
2021-05-11T11:48:59
366,358,490
0
0
null
2021-05-11T11:48:59
2021-05-11T11:31:10
Jupyter Notebook
UTF-8
Python
false
false
2,630
py
figure, axes = plt.subplots(figsize = (8,4)) # Set up our figure and axis axes.axis("off") # Removes the axis from the figure # Create the header - This is easiest to create as a new table with 1 row and position above our existing table. header = plt.table(cellText=[["Number of fly-tipping incidents by waste type"]]...
[ "rachel.chalmers@digital.cabinet-office.gov.uk" ]
rachel.chalmers@digital.cabinet-office.gov.uk
aa2c753332ce7bf08b7e2a7efc44efcee9ed5542
b10917820bac7e879c6e4b4a480d42e816675542
/ID3_Decision Tree Algorithm.py
564ee6850ac92bad323dd5f4c5c650e854cb00ab
[]
no_license
ronypy/ID3-Decision-Tree-algorithm
8c753a3a6028dc7e29c70f77de7beae780b6a696
f3ec2d34901297333125b0a15ce00b687e7776d3
refs/heads/master
2020-08-22T11:32:16.506272
2019-10-20T15:46:30
2019-10-20T15:46:30
216,385,156
0
0
null
null
null
null
UTF-8
Python
false
false
6,450
py
import csv import math # from operator import add ''' readAllSamples is a user defined function. It is used to read all the sample of CSV file. It takes filename as an argument as well as test row count to make a test set from the file. This function returns a train set and a test set. ''' def readAllSamp...
[ "noreply@github.com" ]
ronypy.noreply@github.com
8eb3b583ba00c21e0e51f30d62670c1da9f518e3
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/87/usersdata/171/57992/submittedfiles/contido.py
9b0e89a4443abb2d93f0a13c24567c49b26e2254
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
# -*- coding: utf-8 -*- def quantidade(lista,lista2): cont=0 for i in range(0,len(lista),1): if lista[i]==lista2[i]: cont=cont+1 return(cont) n=int(input('digite o numero de elemento:')) lista1=[] for i in range(1,n+1,1): cont=0 valor1=int(input('digite o numero á ser colocado na...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
bd690590a1b4049110cba3759fc56053d302b5d2
92fa526d5ca2e31f5908f17bb95c529b09ac9995
/old/models/socket-t/client.py
6edd2d446253a63ab16744b1bcd6f1ff4ca2109d
[]
no_license
KevinLongkk/IFit
55e1f7f872dbdd28e23066c9b96465315061ca2a
438fbdbd63d7cf4059038623e2739fc0a860c26b
refs/heads/master
2020-03-21T02:08:49.538064
2018-06-20T04:53:56
2018-06-20T04:53:56
137,982,728
0
0
null
null
null
null
UTF-8
Python
false
false
4,067
py
########################################################################### #*- -*# #*- coding : UTF-8 -*# #*- function : as a client to send and receiver file -*# #*- connectHost : 192.168.1.8 -*# #*- connectPort : 4518 -*# #*- author : pwn_w -*# #*- -*# ###################...
[ "1247594945@qq.com" ]
1247594945@qq.com
2f83c5cac7624e5304cf2aa0459939e100999280
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_085/ch2_2020_07_09_22_36_13_402167.py
c82e823dcb2277b1070d6ac039df23e7849b4131
[]
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
49
py
def calcula_velocidade_media(d,t): return d/t
[ "you@example.com" ]
you@example.com
72e9740d464cc851759637f97394bbe32c8a4474
c4cd9e23563072e810e90ada59904dc5247c92fb
/p_library/admin.py
d38deca44f1a68b27d9e4c4fdedeb749b5eb41c0
[]
no_license
riderufa/GGilmanovD411
130524818c6036fd9d5d29726e5dcabb8d68e2b6
59f05fec1b8dad5a6014e12f3f8c323ddb9143ed
refs/heads/master
2020-09-29T02:50:42.918242
2019-12-10T10:00:11
2019-12-10T10:00:11
226,932,203
0
0
null
null
null
null
UTF-8
Python
false
false
845
py
from django.contrib import admin from p_library.models import Book, Author, Publishing @admin.register(Book) class BookAdmin(admin.ModelAdmin): # @staticmethod # def author_full_name(obj): # return obj.author.full_name # author_full_name.admin_order_field = 'publishing' list_display = ('tit...
[ "noreply@github.com" ]
riderufa.noreply@github.com
35169d9ca2b214f9e10d0d57ba79f111fb07bed2
630ed534a7859ff79dee2f4c797a410952470551
/input_analyser.py
b7d90ad3d64af94b058ebe0b6fd3cc5a85b588d3
[]
no_license
shubh3695/Python-Question-Set-Generator
c98bd1bc52405f2df163f89254ca94c72d63033e
609a2617cddf1e66da9646a1841de22b12e1de0d
refs/heads/master
2020-06-23T07:01:58.731368
2019-07-24T04:16:21
2019-07-24T04:16:21
198,550,083
0
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
from json import load from models import Question, QuestionSet, Requirements, LoadedModel ########################## # Generic Input Mapper from JSon to RequiredModel ########################## class InputHandler: def __init__(self): with open('input4.json') as json_file: self.data = load(js...
[ "shubh3695@gmail.com" ]
shubh3695@gmail.com
72ed7287238b03b37d9fa4ab713ae57f4e995441
85e907873cb4ed2e663427b4d37c85661dc4ad2c
/listita/wsgi.py
6df54f098d7ba9cfee913cc7e207dec931908b63
[]
no_license
gabrieltron/lista
4f6c7e620a7325462ca16a8f7102449a7827face
c56186533cb6b58a8e3702108b10d5e554dbf417
refs/heads/master
2021-07-13T22:31:51.392260
2017-10-19T21:39:47
2017-10-19T21:39:47
104,925,635
1
0
null
null
null
null
UTF-8
Python
false
false
392
py
""" WSGI config for listita 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_SETT...
[ "joao_trombeta@hotmail.com" ]
joao_trombeta@hotmail.com
8afef6f24d1c969ecf405eacaf0d931750e41313
aa1d9d60de89f92351cf37d9e1f4df04cd9b0449
/gcp/pubsub_client.py
a7e143bc87ecbc11f493f8042faa6d0a344fe6a0
[]
no_license
zhoufengzd/python
7ca0de97fa0050f4984d866c87ea0f3069ad3cfa
036e2e17fde91c5ef46b22af00fc73e41bf75428
refs/heads/master
2022-10-13T23:10:10.538705
2022-09-25T03:51:26
2022-09-25T03:51:26
209,899,423
0
0
null
null
null
null
UTF-8
Python
false
false
3,376
py
#!/usr/bin/env python ## utility to write / read messages with pubsub import argparse import os from google.cloud import pubsub_v1 as pubsub class PubSubClient: def __init__(self, gcp_project_id): self.gcp_project_id = gcp_project_id self.reader = pubsub.SubscriberClient() self.writer = ...
[ "feng.zhou@clearlabs.com" ]
feng.zhou@clearlabs.com
3fe33e070c2c0d75811a238d675bdd0dfbcf1773
dc84012d21ce76dc5300659d7fd6d711bd1534eb
/tests/transports_test.py
7973552568555e934c847d2b745a83738228197a
[ "ISC" ]
permissive
jia3857/py-restclient
64d7f885c76fe0a901fd26f0a33306a9dcd71e85
e44c4041b439bba31f4738974229d5f09e86f2ba
refs/heads/master
2021-08-22T21:01:33.350528
2017-12-01T05:08:19
2017-12-01T08:29:18
112,697,315
0
0
null
2017-12-01T05:06:45
2017-12-01T05:06:45
null
UTF-8
Python
false
false
6,935
py
# -*- coding: utf-8 - # # Copyright (c) 2008 (c) Benoit Chesneau <benoitc@e-engura.com> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE...
[ "yjaaidi@gmail.com" ]
yjaaidi@gmail.com
744d50f28a2c94ad5282605b6d3bb4517f7916ea
0466559817d3a1be9409da2c83db99c4db3bacfe
/hubcheck/conf/config.py
b68b5bd69b995419b02cbc759340b2a456a15ce1
[ "MIT" ]
permissive
ken2190/hubcheck
955cf9b75a1ee77e28256dfd3a780cfbc17de961
2ff506eb56ba00f035300862f8848e4168452a17
refs/heads/master
2023-03-20T15:17:12.949715
2015-09-29T16:11:18
2015-09-29T16:11:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
import os from pkg_resources import resource_filename class Config(object): data_dir = resource_filename('hubcheck','data') profiles_dir = resource_filename('hubcheck','profiles') # user configuration variables screenshot_dir = None video_dir = None config_filename = None tdfname = '' ...
[ "telldsk@gmail.com" ]
telldsk@gmail.com
c4b1887ea606f6c95c6222db1351a682d8dad691
59eecdf59d632d21b94adcad01b5af1fc1f9ed72
/utils/balon_al_arco.py
d8d9fe8e0655b292fffe0aed8810a046c7938a99
[]
no_license
AnthonyCAS/vsss2015_Strategy
8caa668191651cee757a84cac47fa0ce509d9200
48ff71218dc55136369a9d24f7f510b675b80e77
refs/heads/master
2020-04-12T08:07:02.468659
2016-10-02T23:04:23
2016-10-02T23:04:23
42,489,287
0
0
null
null
null
null
UTF-8
Python
false
false
2,733
py
import sys import pygame from vsss.serializer import VsssSerializerSimulator, VsssSerializerReal from vsss.strategy import TeamStrategyBase from vsss.data import VsssOutData from vsss.controller import Controller from vsss.position import RobotPosition, Position from vsss.trajectory import TrajectorySCurve from vsss.vi...
[ "jose@amigocloud.com" ]
jose@amigocloud.com
8bcc7d5dab776217c266b88d9884fc3a7e5a583d
1bcb966740f47c0edc23e9b05afec55f2bcae36a
/app/game/appinterface/packageInfo.py
92697a828967b4ecf9a95dbc7d38fdf70e8c3d66
[]
no_license
East196/diabloworld
0d2e9dbf650aa86fcc7b9fc1ef49912e79adb954
d7a83a21287ed66aea690ecb6b73588569478be6
refs/heads/master
2021-05-09T12:15:31.640065
2018-02-04T15:16:54
2018-02-04T15:16:54
119,007,609
3
2
null
null
null
null
UTF-8
Python
false
false
2,226
py
#coding:utf8 ''' Created on 2011-4-13 @author: sean_lan ''' from app.game.core.PlayersManager import PlayersManager def getItemsInEquipSlotNew(dynamicId,characterId): '''获取角色的装备栏信息 @param dynamicId: int 客户端的id @param characterId: int 角色的id ''' player = PlayersManager().getPlayerByID(characterI...
[ "2901180515@qq.com" ]
2901180515@qq.com
5c45c17aefbe4fca29f0d7af21bc35890672183a
71d7c7c7abb33f3a0b36e401cbb546b1f7135fb8
/myproject/myproject/blacklist/models.py
582409b8bfd2bcb320763bab6cdb4c797e868931
[]
no_license
Naveen-yelamakuru/News_website
4de542b16f447294b755b380fa8f4ec027773541
05884b9a7bbaa1af1fa9c0c3a9796736fbf4bf4d
refs/heads/master
2023-04-01T06:59:26.384010
2021-04-07T06:27:28
2021-04-07T06:27:28
355,433,032
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
from __future__ import unicode_literals from django.db import models # Create your models here. class BlackList(models.Model): ip = models.CharField(max_length=10) date = models.CharField(max_length=12,default="-") def __str__(self): return self.ip
[ "yelamakurunaveen12@gmail.com" ]
yelamakurunaveen12@gmail.com
e273b347e2345994f64bb95af98c82b139510d43
97099104ac872920fd32b7149bcb3f785ce7da15
/src/data_ingestion.py
f8c7583b9e1fa8f645eac37d7f4d65250013cebf
[]
no_license
aj-1000/data-team-coding-exercise
a78c8ea8263bb48ba838d05eccc3e2328083ca69
3d2311c2e42690aa235d8ae3e766a1e8f2722fca
refs/heads/master
2023-08-19T09:25:17.839061
2021-09-27T17:20:20
2021-09-27T17:20:20
406,456,544
0
0
null
null
null
null
UTF-8
Python
false
false
1,570
py
import pandas as pd import pandera as pa import numpy as np from fastlogging import LogInit logger = LogInit(pathName='logs/data_ingestion.log') def check_dataframe_schema(df: pd.DataFrame, schema: pa.DataFrameSchema) -> None: """A function to assert that the dataframe has the types expected in the schema""...
[ "adafejaja@gmail.com" ]
adafejaja@gmail.com
da7a4c4583429538ef54bd4b92b0617d73b31115
785e3597b632b7f504572730779eaf92eaa5e5fa
/SSAFYcrawl_TEST.py
2f64f65b3da29def4053915bced78037a1313cb5
[]
no_license
zzangkkmin/AlgorithmPracticeZone
7fd4f2986a98c93b0e0cf5e40b30283c2a338d49
a1ee937379d8c78d24fffd98cdadd781710d7680
refs/heads/master
2020-04-22T19:00:13.436309
2019-11-25T07:41:03
2019-11-25T07:41:03
170,594,816
0
0
null
null
null
null
UTF-8
Python
false
false
2,551
py
#use pip # pip install bs4 --user # pip install lxml --user # pip install requests --user from bs4 import BeautifulSoup as bs import requests form_url ="https://edu.ssafy.com/comm/login/SecurityLoginForm.do" form_header = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/ap...
[ "zzangkkmin@naver.com" ]
zzangkkmin@naver.com
bb6a13c53d923939882c90a3722dcb0ee6f65008
ecee6e84ba18100b621c7e06f493ae48e44a34fe
/build/navigation/nav_core/catkin_generated/pkg.installspace.context.pc.py
7154b8261ec9e1dfe4b7533a24c5c418fed5f7a6
[]
no_license
theleastinterestingcoder/Thesis
6d59e06b16cbe1588a6454689248c88867de2094
3f6945f03a58f0eff105fe879401a7f1df6f0166
refs/heads/master
2016-09-05T15:30:26.501946
2015-05-11T14:34:15
2015-05-11T14:34:15
31,631,628
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/alfred/quan_ws/install/include".split(';') if "/home/alfred/quan_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "std_msgs;geometry_msgs;tf;costmap_2d".replace(';', ' ') PKG_CONFIG_LIB...
[ "quanzhou64@gmail.com" ]
quanzhou64@gmail.com
1adb61062d3e07b521e6e4b41ec14ddca7000d72
458d136f89388f3b6a98559f01addda5db3cf400
/common/tablib/tablib.py
c6f82696d5b8c15a7242af0ff3817edeb55d88b6
[]
no_license
secretleojoy/hack4tech-h
35626f11f655392cbc71208a63e8999f121dafbb
8c46f80e0c71d0e6bff939780e5b1ad202fafb99
refs/heads/main
2023-06-17T08:19:20.411688
2021-06-06T12:45:41
2021-06-06T12:45:41
385,784,799
0
0
null
2021-07-14T01:58:08
2021-07-14T01:58:08
null
UTF-8
Python
false
false
10,261
py
from collections import OrderedDict from .format import registry class Row: """Internal Row object. Mainly used for filtering.""" __slots__ = ['_row', 'tags'] def __init__(self, row=None, tags=None): if tags is None: tags = list() if row is None: row = list() ...
[ "vhhareesh947@gmail.com" ]
vhhareesh947@gmail.com
aa893d19b93fa4e46eae5303e87793c9a2afed4f
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/1093.py
fa244fab36bc58d7529d2c7242771c1da73f5714
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
def isPalindrome(num): if num - int(num) != 0: return False num = str(int(num)) l = len(num) for i in xrange(l): if num[i] != num[l-i-1]: return False return True def allFairAndSquare(a, b): rtn = [] for i in xrange(a, b+1): if isPalindrome(i...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
e5c59a146854f20e9180454a28c88279d02c0350
dabddb39b88cee43b4b6ad5a38aa54b0d31ada21
/main.py
871a48e563d743446ef20ed1b5522181d72f0298
[]
no_license
hcw-00/Inference_simple
f1bc8b34a39208159b6c47f84d65e3439256cbc6
ce4d901931bffad3d81e7540024904dcd339ddaf
refs/heads/master
2022-11-20T19:06:09.782513
2020-07-23T04:49:18
2020-07-23T04:49:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
import argparse import os import tensorflow as tf tf.set_random_seed(20) from model import infer def get_params(): parser = argparse.ArgumentParser(description='') parser.add_argument('--dataset_dir', dest='dataset_dir', default='dataset', help='path of the dataset') parser.add_argument('--batch_size', de...
[ "21908600@ncbnet.co.kr" ]
21908600@ncbnet.co.kr
9a9e8b7d9284574442ab7b8a10207055a4e065fd
fa07f9ff0c833746a4195a9092f5831e1126b684
/03逻辑回归/tool/Read_Minist_Tool.py
20e00b911aaddbd62cbe3738177e435b941c794e
[]
no_license
shiqiuwang/ML_basic_model
76c3b755dda772031bfba22860ee61bb2ea286fc
b6d7350332f3ef32ccc5dc69f81b629c5bcdd349
refs/heads/master
2023-03-23T10:23:08.130357
2021-03-20T16:43:30
2021-03-20T16:43:30
348,405,661
0
0
null
null
null
null
UTF-8
Python
false
false
6,341
py
# coding=utf-8 import numpy as np import struct import matplotlib.pyplot as plt # 训练集文件 train_images_idx3_ubyte_file = 'data/minist/train-images.idx3-ubyte' # 训练集标签文件 train_labels_idx1_ubyte_file = 'data/minist/train-labels.idx1-ubyte' # 测试集文件 test_images_idx3_ubyte_file = 'data/minist/t10k-images.idx3-ubyte' # 测试集标签...
[ "2714049089@qq.com" ]
2714049089@qq.com
4531bc24b5d028b9ae04e0702a12afe5f44ac009
5079ba8f44eb52f96da6063ea88477c765b5a82e
/exceptions/customexceptions.py
f79dfdc25fbae94743d98cec4edf60cffc206339
[]
no_license
navdeep710/imapfilesync
e5747e724b26eaefa692be3d8f43a971a114e329
86056986b75d7ca13ab89b630cf844fb9bef52c0
refs/heads/master
2022-12-09T20:50:32.240855
2018-09-13T07:12:26
2018-09-13T07:12:26
146,305,090
0
0
null
2022-12-08T02:47:41
2018-08-27T13:57:58
Python
UTF-8
Python
false
false
82
py
class Queuenotfound(Exception): pass class Emailnotfound(Exception): pass
[ "navdeep.bits@gmail.com" ]
navdeep.bits@gmail.com
06b102050b963026c4e5184c89d73ea7e22da896
4cc16cdcee820f258fcdb7550b853949fc59de46
/mobject/vectorized_mobject.py
615e24502c0de9496acb4dcc415c9e2f3a81e407
[]
no_license
eitanas/manim
c710802ef301b11d0ac6549bb58e04fcc59cc16d
825ff127a517f35041b2def6efe29a8d6358cd4c
refs/heads/master
2021-01-22T16:26:09.805304
2016-08-15T22:07:28
2016-08-15T22:07:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,000
py
import re from .mobject import Mobject from helpers import * class VMobject(Mobject): CONFIG = { "fill_color" : None, "fill_opacity" : 0.0, "stroke_color" : None, #Indicates that it will not be displayed, but #that it should count in parent mobject's path ...
[ "grantsanderson7@gmail.com" ]
grantsanderson7@gmail.com
9390d1ba58dfdb8793881a2da5c58a7d8c865296
c5aa4c8c482925448634cf202140eb32e32500bb
/flash guided non-flash image denoising/code/DN_train_npy.py
d40a2e9b6a78f37809e8c538894edc2dfd239a74
[]
no_license
JingyiXu404/CU-Net-plus
e2c2636e71ec2ab8064ae6880f4afd89fa157542
aaf7e3eba938ec00297962cbd1c4d62fdb4b37c1
refs/heads/main
2023-08-14T07:37:45.991839
2021-09-20T03:09:16
2021-09-20T03:09:16
370,957,706
4
0
null
null
null
null
UTF-8
Python
false
false
1,480
py
import torch.utils.data as data from glob import glob import matplotlib.pyplot as plt from torchvision import transforms #import cv2 from PIL import Image import random import os import numpy as np import torch class cudataset(data.Dataset): def __init__(self,target_name,guide_name,label_name): ...
[ "noreply@github.com" ]
JingyiXu404.noreply@github.com
7e6b235d3a48117b856cbec0dd3b7ae0d244ff98
d5bf16ecfba523d15eb2fc467c85c639a511a555
/createRenderFilesForDepths.py
0944bcffba98560958361d2a9ace8b8c0c6a2487
[]
no_license
chenkeshuai/TransparentShapeDatasetCreation
b5bbedcff5eb2bd8c25d51c40c756b252033a862
9c1ca853e02cec26ce1ca86b7a73deeff24625d9
refs/heads/master
2022-11-21T22:24:20.674760
2020-07-14T04:08:33
2020-07-14T04:08:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,681
py
import os.path as osp import numpy as np import glob import xml.etree.ElementTree as et from xml.dom import minidom import argparse def addShape(root, name ): shape = et.SubElement(root, 'shape' ) shape.set('id', '{0}_object'.format(name) ) shape.set('type', 'obj' ) stringF = et.SubElement(shape, 'str...
[ "zhl378@eng.ucsd.edu" ]
zhl378@eng.ucsd.edu
c12227791c9532c511adc49b611291c60354dc51
948d84d2e3fc04e353a11384d8570308174242f5
/5-Pythonda Koşul İfadeleri/if-else-demo-2.py
ee6cf34554eeaa7723e51f9eedd857630f2067ee
[]
no_license
omerfarukcelenk/PythonMaster
a0084a800b8a41cd2ad538a7ca3687c26dc679ec
0db8f8b0ea2e1c2d810c542068cfcf1a3615f581
refs/heads/main
2023-04-16T17:42:05.501904
2021-04-26T21:19:27
2021-04-26T21:19:27
361,896,109
3
0
null
null
null
null
UTF-8
Python
false
false
3,485
py
''' 1- Girilen bir sayının 0-100 arasında olup olmadığını kontrol ediniz. sayi = float(input('sayı: ')) if (sayi > 0) and (sayi<=100): print('sayı 0-100 arasında.') else: print('sayı 0-100 arasında değildir.') ''' ''' 2- Girilen bir sayının pozitif çift sayı olup olmadığını kontrol ediniz. sayi = int(input...
[ "omerfar0133@gmail.com" ]
omerfar0133@gmail.com
10e46eb0dc43fc62e6216ee6b9a96cbf96e67b7a
4b7d1f2da5da0a9f03a58f59161f7eec12fc2f60
/q6_find_ascii_char.py
a33f048db5d620b42000c0d23556cea45fc92322
[]
no_license
leeliren/practical_1
6b4d6e89c8520ce75e2af879dbe655da3f70f6c1
ed33f677af1c2316bdb52f0d56f449b401c765e9
refs/heads/master
2021-01-10T08:37:01.411830
2016-02-26T04:15:19
2016-02-26T04:15:19
51,885,013
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
# q6_find_ascii_char.py # program that display acsii character # input acsii character acsii = input("enter acsii value: ") # conver acsii value to character character = chr(int(acsii)) # output character print(character)
[ "ncs3101sta@N3101SMCS5863.SCHOOLS.MOE.EDU.SG" ]
ncs3101sta@N3101SMCS5863.SCHOOLS.MOE.EDU.SG
6dff353a0bd671343ab8740d4532e77f168e7ee7
c55a5a5f4b6acdb78a1c5e3cd722ecf5c4bb9257
/CodeForces And Random Practice Problems/Pangarm.py
ea10d32e2d1ea0d6686cdb5d127a2eae6066d936
[]
no_license
NazmulHayat/Competitive-Programming
9aeba8c12e31b1c240710dea3314a674062ae584
1aa432b81b1dd223d5414d40ad5a2807899a536f
refs/heads/master
2023-04-09T07:46:09.969017
2021-03-30T04:54:29
2021-03-30T04:54:29
289,615,276
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
lst = [] i = int(input()) s = input() if(i<26): print("NO") else: s = s.lower() mylist = s.split() mylist = print(mylist) if(len(mylist) == 26): print("YES") else: print("NO")
[ "hayatnazmul@gmail.com" ]
hayatnazmul@gmail.com
e5ba62b5f8329a38c865fda67e7a23bb28064ad6
b0232c7856879f720ca9f64ca4df5096a0c34356
/factoryTests.py
774a67c13adc3b380ca174425d61317a4dd5a8f9
[]
no_license
extramask93/CEVA_code_gen
2d7d614741edfe68fd9a29f4ae6960ae15985ebf
e2630c096840605d7f986c1db863ea3d213eb6a6
refs/heads/master
2020-03-23T15:05:22.158796
2018-09-06T16:10:57
2018-09-06T16:10:57
141,721,652
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
import pytest from decoder import TokenFactory, RegularRegister, VectorRegister, RegularImmediateToken, MultiTokenVPU, ModuRegister def test_factorytest(): a= TokenFactory("rA.ui") assert isinstance(a,RegularRegister) a = TokenFactory("vrB1.s16") assert isinstance(a, VectorRegister) a = TokenFactory...
[ "jozwiak.damian02@gmail.com" ]
jozwiak.damian02@gmail.com
8785bfa65e79ad99e0867513d746ace94f2107d6
43d33fe29c2d75b4612d01e804ff9aa96683e592
/day3/part2.py
bef750872601af0ccf84e0c5a5ebbc32c1b9b250
[ "Unlicense" ]
permissive
fvdnabee/aoc20
b2a7d0950086e3ab61821f23de6c3055cb0cafde
e4c9d31aaead998bad9f0a53612ab731b66933da
refs/heads/main
2023-02-05T16:01:15.342636
2020-12-25T13:27:49
2020-12-25T13:27:49
318,639,117
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
with open('input') as fp: grid = [line[:-1] for line in fp] grid_width = len(grid[-1]) slopes = [(1, 1), (3, 1), (5, 1), (7, 1), (1, 2)] slopes_trees = [] slopes_trees_multiplied = 1 for r, l in slopes: n_trees = 0 x, y = (0, 0) while y < len(grid): if grid[y][x % grid_width] == '#': ...
[ "floris@vdna.be" ]
floris@vdna.be
f6c5e331691fb14a8ca15b8f18c3deaa42168845
55813c77666d798e806a280f3305c6e6c6531df9
/desktop/main.py
91963db43d6eb5d80423c2217ecd5e533ef0aba5
[]
no_license
cwwang2/EmbeddedProto_Example_STM32_UART
d80ec11ecc81bd8f6e938e71c49f566067bb805d
d63952eb5aad5b15f9922aa5b6be8f695cdf0a62
refs/heads/master
2023-03-25T03:34:22.560786
2021-03-23T13:10:15
2021-03-23T13:10:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,840
py
# # Copyright (C) 2020 Embedded AMS B.V. - All Rights Reserved # # This file is part of Embedded Proto. # # Embedded Proto is open source 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, version 3 of the license. # # E...
[ "Bart@EmbeddedAMS.nl" ]
Bart@EmbeddedAMS.nl
51d2268bc441dc7e0809af59b51d58def2641769
5f10ca2439551040b0af336fd7e07dcc935fc77d
/Binary tree/二叉树性质相关题目/求每层的宽度.py
dcef6bda78001250e1f9f1a433d3a54382bd13b5
[]
no_license
catdog001/leetcode2.0
2715797a303907188943bf735320e976d574f11f
d7c96cd9a1baa543f9dab28750be96c3ac4dc731
refs/heads/master
2021-06-02T10:33:41.552786
2020-04-08T04:18:04
2020-04-08T04:18:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,494
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2020/2/13 13:06 # @Author : LI Dongdong # @FileName: 求每层的宽度.py '''''' ''' 题目分析 1.要求:求每层中,左边第一个到右边第一个的宽度 2.理解: 3.类型: 4.确认输入输出及边界条件: 4.方法及方法分析: time complexity order: space complexity order: ''' ''' 思路:bfs + [node, index] 方法: deque record node and index (2* i...
[ "lidongdongbuaa@gmail.com" ]
lidongdongbuaa@gmail.com
1f9b7ac363f4e5ba9f5d25efa087f724e9cfa14e
67254af1798c9715e55a0a1457ddf4520210d22f
/2021届秋招/leetcode/链表/k个一组实现链表.py
7ef2beb9af6cec115525bf45301eee097da38c4c
[]
no_license
Aries5522/daily
0a3160494263871c361c1efa07e47899a7f2b4f7
d31a2c92e62b1699cda2ffa39395df5b372445b8
refs/heads/master
2021-08-10T11:49:17.954283
2020-09-07T15:39:41
2020-09-07T15:39:41
217,962,036
4
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
class ListNode: def __init__(self, x): self.val = x self.next = None def list2Node(nums): root = cur = ListNode(None) for i in nums: node = ListNode(i) cur.next = node cur = cur.next return root.next def print_(head): res = [] while head: res.appe...
[ "Aries5522" ]
Aries5522
f1df3479147b367dfc6cc0d007b4386d3a0e7fa8
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_authorization_py3.py
b4bb3df4dd52a8366e8cb7b9b1d60fa77e023bf0
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
2,559
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "noreply@github.com" ]
xiafu-msft.noreply@github.com
6512252e8f437e9237f39ae69a605cf3e891bd9e
713720fdc5ead7c8a13476da847e335202d6df03
/scripts/sorno_realdate.py
8136704bbfee2e999e640ae3742c2b921d9bf7fc
[ "Apache-2.0" ]
permissive
hermantai/sorno-py-scripts
26f72ce4f4711e2b3ee57f60c30ee1d9c314304d
6d1ccaba3c7a259a3bbbe13b39c3abfc951789f8
refs/heads/master
2022-04-30T13:02:20.037450
2022-04-22T03:29:30
2022-04-22T03:30:57
16,879,067
0
0
null
null
null
null
UTF-8
Python
false
false
2,684
py
#!/usr/bin/env python """sorno_realdate.py prints the human readable date for timestamps Example: $ sorno_realdate.py 1455223642 1455223642000 1455223642000000 1455223642000000000 1455223642: 2016-02-11 12:47:22-0800 PST in s 1455223642000: 2016-02-11 12:47:22-0800 PST in ms 1455223642000000: 2016-02-...
[ "htaihm@gmail.com" ]
htaihm@gmail.com
bd6fe3a09008d2af126731dc0dce5e67b38920d3
5b89963fedfd6caed58c9f08085abf4ccdf07d3e
/MLP_from_scratch/prediction.py
94b73fb7cba56a80fad395c0709ac38ad0f6b9c0
[ "MIT" ]
permissive
THINK989/Neural-Network-from-Scratch
0c0158e6327b6c95c66313fba5a4d83188904f93
cf410d45c4306b835b354bb19fb3051575d486fc
refs/heads/master
2020-07-06T10:57:09.591170
2020-05-01T15:29:35
2020-05-01T15:29:35
202,993,986
3
0
null
null
null
null
UTF-8
Python
false
false
910
py
import numpy as np from propagation import * def predict(X, y, parameters): """ This function is used to predict the results of a n-layer neural network. Arguments: X -- data set of examples you would like to label parameters -- parameters of the trained model Returns: p -- pred...
[ "noreply@github.com" ]
THINK989.noreply@github.com
83a53505bd883a0049978dbdc0ef84340b64458c
ea1e0d6d8a7bd97d7b179f4e7857149012466ecc
/fiches/views.py
56ad0e8013f4ed8ddb5ced7d18aa14a6d05e15e4
[]
no_license
eloigrau/templatedjango
97575b5a098ec24a25b67a9f86a918d70f9e45a4
12a1768e92c43469d0127e7202af83e1d4a04321
refs/heads/master
2022-12-11T11:48:33.579366
2021-03-28T19:30:47
2021-03-28T19:30:47
237,098,214
0
0
null
2022-12-08T01:23:31
2020-01-29T22:51:54
JavaScript
UTF-8
Python
false
false
9,795
py
# -*- coding: utf-8 -*- from django.shortcuts import render, redirect, get_object_or_404, HttpResponseRedirect from django.urls import reverse_lazy from .models import Fiche, CommentaireFiche, Choix, Atelier from .forms import FicheForm, CommentaireFicheForm, FicheChangeForm, AtelierForm, AtelierChangeForm from django....
[ "marchelibre@gmx.fr" ]
marchelibre@gmx.fr
3c60cb7e069f959fd27d7c4354d02b1fad18bef8
b31674c022fd03aee6b0d3f2c1a3b4c901b26c42
/Scripts/environment.py
5ca5b935c43c919822881bec6de9d7bb57e9aa77
[]
no_license
sdfgeoff/geodesic-chess
d033512ecd4b90428901a6d287de3f477862927d
ddba711af70bb8f443b98c2a1822f8e5c87638b2
refs/heads/master
2021-01-13T05:12:52.109560
2017-05-15T03:39:06
2017-05-15T03:39:06
81,260,952
2
1
null
null
null
null
UTF-8
Python
false
false
1,265
py
import bge def test(cont): '''This is used to test the enviroment class from Camera.blend. It checks to see if the game object exists, and if it does not, runs the environment''' # When you create a game, it puts itself in the global dictionary if 'GAME' not in bge.logic.globalDict: # Make this...
[ "sdfgeoff@gmail.com" ]
sdfgeoff@gmail.com
1d67381581a090003013177bdf95c0a14cd224f9
c7a8be023b072f8a9eab0404556e37ba4ba8857e
/My_Django_Stuff/myDjangoEnv/lib/python3.6/_weakrefset.py
e4ebae2415877da84a02d1bd8072301185336225
[]
no_license
jbastawrose120/DjangoTutorial
efdbe6c83b7b6ba9024866aee11f5a0e66708f21
20a03fb98da26adfc2559cd95598a305b275540b
refs/heads/master
2020-04-30T05:06:11.414533
2019-05-24T02:14:07
2019-05-24T02:14:07
176,622,100
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
F:/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_weakrefset.py
[ "jbastawrose120@gmail.com" ]
jbastawrose120@gmail.com
e7a9f35ebb77c9eba8512429cdbcd7299268d354
954e077df69e90f3f3742276d0644485514b2de5
/PyBank/main.py
42053b8d79d5dd2d5b3cba5f207f27bc76e916a8
[]
no_license
Vilma0228/python-challenge
d5cce1bbfcacfacd80daaf39067882c540d51c8b
4fddf4f507d5c314f328b2f839c7f4e611dd2a04
refs/heads/master
2020-03-14T15:08:12.242787
2018-05-05T23:31:10
2018-05-05T23:31:10
131,669,444
0
0
null
null
null
null
UTF-8
Python
false
false
1,374
py
import os import csv #Files to load PyBankpath = "budget_data_1.csv" #Read the csv and convert to dictionaries with open (PyBankpath) as revenue_data: reader = csv.reader(revenue_data) #Use the next to skip first title row next (reader) revenue = [] date = [] rev_change = [] #Loop to ge...
[ "vilma0228@gmail.com" ]
vilma0228@gmail.com
20c78b60b815c01583da61d8d071a7b4e1735589
dbf8768bb3818b4003f2e34ff561afb235a3734a
/Python/Templates/Django/ProjectTemplates/Python/Web/PollsDjango/app-admin.py
898eb59ef40b51c7c1a179375f53430f2d5f5b8c
[ "Apache-2.0" ]
permissive
wjk/PTVS
bf3880198ba35ae34b12872a86fe2b03d2a82180
184b6711a8700a7f9d78f6d6ac3b225f81a8b8b8
refs/heads/master
2020-12-14T16:11:40.486645
2020-01-17T20:45:15
2020-01-17T20:45:15
234,801,602
1
0
Apache-2.0
2020-01-18T21:41:27
2020-01-18T21:41:26
null
UTF-8
Python
false
false
669
py
""" Customizations for the Django administration interface. """ from django.contrib import admin from app.models import Choice, Poll class ChoiceInline(admin.TabularInline): """Choice objects can be edited inline in the Poll editor.""" model = Choice extra = 3 class PollAdmin(admin.ModelAdmin): """De...
[ "steve.dower@microsoft.com" ]
steve.dower@microsoft.com
b7f93333d8f7f87274baefcfac762f864f7617c2
f385e93fb799629318b6f5bbae1a3b29d62d8359
/database/citations/asuncion2012a.py
ea381f3189a4abf25a7944dc6845c8cf0f359501
[]
no_license
JoaoFelipe/ipaw-index
bf113649de497d2008922eb80f8ea3bf2cd6aba5
f8fe329f0c35b11c84bd76e7b7da7a465d380a02
refs/heads/master
2020-03-17T19:51:13.892958
2018-05-18T00:54:08
2018-05-18T00:54:08
133,880,857
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
# coding: utf-8 from snowballing.models import * from snowballing import dbindex dbindex.last_citation_file = dbindex.this_file(__file__) from ..work.y2012 import asuncion2012a from ..work.y2016 import reddish2016a DB(Citation( reddish2016a, asuncion2012a, ref="", contexts=[ ], ))
[ "joaofelipenp@gmail.com" ]
joaofelipenp@gmail.com
c5af1b1c066c1a49573ef543d9894567d5909df2
9e482a31dd8c1661ad1953d7fbd24a532306f58c
/Plays/Play10/medium_batch_normalization.py
2d0166d6dce71a2e1ec99d39a56e366341b49c99
[]
no_license
margaridav27/feup-fpro
49a66f6643c83adb948ff110f522948f43508519
e805e08d0fdd273db272300e3e9676c585030f23
refs/heads/master
2023-01-23T01:16:11.534704
2020-11-25T10:48:00
2020-11-25T10:48:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,115
py
# -*- coding: utf-8 -*- """ Created on Wed Dec 4 10:14:35 2019 @author: Margarida Viera """ #solution using generator def batch_norm(alist, batch_size): while len(alist) > 0: batch = [] l = alist.copy() if len(alist) < batch_size: batch_size = len(alist) ...
[ "up201907907@fe.up.pt" ]
up201907907@fe.up.pt
46fb50be72246b32790681ebd25f5daffa7354ac
649c17052feedff130bcb3283a0c3ae9a66c9669
/tests/test_iris_tree.py
7b2465ee3b96607988029ee2984062e31bae0e2f
[ "MIT" ]
permissive
drevilslab/pykitml
abb04d4aaafe3712ec24e9a9e38ed0b65c4cbb8d
1c3e50cebcdb6c4da63979ef9a812b44d23a4857
refs/heads/master
2023-01-16T03:29:14.762110
2020-11-02T11:03:55
2020-11-02T11:03:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,771
py
from pykitml.testing import pktest_graph, pktest_nograph @pktest_graph def test_iris_tree(): import numpy as np import pykitml as pk from pykitml.datasets import iris # Load iris data set inputs_train, outputs_train, inputs_test, outputs_test = iris.load() # Create model tree_iris_classif...
[ "vishnu.vish.shankar@gmail.com" ]
vishnu.vish.shankar@gmail.com
762c929c9132c0c6dcb7e70375cba733b0af371f
8e408d2efa879cc60bf2898e6705c91aae303097
/class10/timeseries.py
51c23d6a5dde47115a376edef7c5d4738769c4df
[]
no_license
mschachter/ml-biophysics-2014
ea1f05a68657f7a163511f3e16be835b94e530c3
d120e2acb76734655b5a4dc48b4cb36620b8dad8
refs/heads/master
2020-05-30T14:04:37.931556
2014-11-06T18:48:11
2014-11-06T18:48:11
24,829,676
2
0
null
null
null
null
UTF-8
Python
false
false
7,778
py
import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import Ridge def generate_sine_wave(freqs=[1.0, 2.0, 5.0], duration=5.0, sample_rate=1e3, plot=True): #generate vector that represents time num_samps = int(duration*sample_rate) t = np.arange(num_samps) / sample_rate #gener...
[ "mike.schachter@gmail.com" ]
mike.schachter@gmail.com
79800f0401cbb5ee3dfdafd55b2f0532cd565719
ab37cdd76b8d4da54ff1ce30b0fa2e3dfadd207f
/1001-1099/1008/1008.py
e2d869f2abde08e4f8eb119987332f9815576b5f
[]
no_license
hay86/timus
b163d94052d3dedd51c82f5c10874402f805c6e1
0d06073228c23538ca785938c862d2b5e08bda63
refs/heads/master
2023-03-08T06:34:28.707612
2021-02-20T14:38:48
2021-02-20T14:38:48
100,444,783
0
2
null
null
null
null
UTF-8
Python
false
false
1,553
py
import sys img = [[False for i in range(12)] for j in range(12)] def one(): for i in range(n): x, y = [int(j) for j in sys.stdin.readline().split()] img[x][y] = True if i == 0: x0, y0 = x, y v = [[False for i in range(12)] for j in range(12)] q = [(x0, y0)] v[x0][y0] = True print '%d %d' % (x0, y0) ...
[ "xukaifeng1986@gmail.com" ]
xukaifeng1986@gmail.com
81a081122381d85928f0ad8fb3aab7f699135e78
aca971629c16f16a4b0360669579d0751fd5da67
/src/indelPlot.py
f896ef722c39a732f5391609743e33d9627abe56
[ "MIT" ]
permissive
ngannguyen/referenceViz
43769ded8cb3c77445391e26233352a61ed72744
6990a00739a712ccd1371e996229882252fa8f91
refs/heads/master
2021-01-01T06:26:33.975514
2012-03-22T21:34:54
2012-03-22T21:34:54
1,750,339
1
0
null
null
null
null
UTF-8
Python
false
false
7,150
py
#!/usr/bin/env python """ Create Snp plots nknguyen at soe dot ucsc dot edu Jun 15 2011 """ import os, sys from optparse import OptionParser import xml.etree.ElementTree as ET #from numpy import * import libPlotting as libplot import matplotlib.pyplot as pyplot import matplotlib.pylab as pylab from matplotlib.ticker ...
[ "nknguyen@soe.ucsc.edu" ]
nknguyen@soe.ucsc.edu
d82ed1cfeb3e9cf9432826e65574bb198fceddb4
01dad4d1d2ffaf2fa070e99fe828d42f59a9f9d1
/src/pycrop2ml_ui/packages/SQ_Energy_Balance/src/openalea/Penman.py
ab023da150792ac8a482b0e9d2ed39cd94ea4ed8
[ "MIT", "BSD-3-Clause" ]
permissive
AgriculturalModelExchangeInitiative/Pycrop2ml_ui
5e210facf9689348bb57c16060967118b7c5f49a
3d5d2b87a74f0be306056b71808286922fef2945
refs/heads/master
2023-06-24T13:52:39.933728
2023-06-17T00:17:26
2023-06-17T00:17:26
193,912,881
0
4
MIT
2023-02-25T13:26:57
2019-06-26T13:44:34
Jupyter Notebook
UTF-8
Python
false
false
6,614
py
# coding: utf8 import numpy from math import * def model_penman(evapoTranspirationPriestlyTaylor = 449.367, hslope = 0.584, VPDair = 2.19, psychrometricConstant = 0.66, Alpha = 1.5, lambdaV = 2.454, rhoDensityAir = 1.225, specificHeatCapacityAir = 0.00101,...
[ "ahmedmidingoyi@yahoo.fr" ]
ahmedmidingoyi@yahoo.fr
3eaa626d2ccbdec574056baced33f7ac3935a0e0
23acbd859a6f4ffa0296d092331a8ca83b79c543
/users/migrations/0005_auto_20200830_1602.py
c0f1b48a2c2bd2a89dfc5a4ba28ca991d551e438
[]
no_license
Timothy-Parteka/INVENTORY-MANAGEMENT-SYSTEM
0c0986174f8d7457103b83d9fe2b35b354bf30a5
bcd056c14b350e04abe0c82fd68f8789400ce45f
refs/heads/master
2023-02-12T18:22:20.120662
2021-01-13T13:40:15
2021-01-13T13:40:15
276,723,723
0
0
null
null
null
null
UTF-8
Python
false
false
1,794
py
# Generated by Django 3.0.8 on 2020-08-30 13:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20200701_0421'), ] operations = [ migrations.CreateModel( name='Department',...
[ "timothymweshen@gmail.com" ]
timothymweshen@gmail.com
c509a489439ea63675a461d4649b190defd866ce
66cc457d251021dae6d875dbef97d2d2402ba619
/main/urls.py
b663ff5e0f6ae78f2125722f54cce3c2f55a9d33
[]
no_license
Jayapraveen/Simple-chatbot
eb3f40316b3c67bc4f682b2793689233840dd809
a5117d5ed37b94d438ece5524d5934d400181847
refs/heads/master
2020-07-25T14:17:27.002689
2019-09-13T18:08:05
2019-09-13T18:08:05
208,320,220
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
from django.conf.urls import include,url from django.contrib import admin from chatterbot.ext.django_chatterbot import urls as chatterbot_urls from main import views from main.views import ChatterBotApiView from django.views.decorators.csrf import csrf_exempt app_name = 'main' urlpatterns = [ url(r'^admin/', admin...
[ "jayapraveen.ar.2015.cse@rajalakshmi.edu.in" ]
jayapraveen.ar.2015.cse@rajalakshmi.edu.in
b79cd911e54384cd26db6f16bcb60444a2e2f53c
dcbe98b20d12de456afdf1a0d7eafea03b347254
/src/ast/ast_node.py
bc7ef5cf60cc6fe132964c1c25981810cdd51ce1
[]
no_license
hborkows/TKOM
6c8cc257700b729f38ff9b4b8b3ebf90322096a5
115e45d620629177968a4cdd707b00d8a148e547
refs/heads/master
2020-09-27T09:51:54.716090
2020-01-19T20:18:06
2020-01-19T20:18:06
226,489,493
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
from typing import List, Optional class ASTNode(object): def get_representation(self) -> str: pass def get_children(self) -> Optional[List]: pass
[ "hubert.borkowski@hotmail.com" ]
hubert.borkowski@hotmail.com
1d8418fc6edd086d8a53c8ff9b3b5c18aeddbd9d
b1249f4bae1106570601870d9e50f946fb1600f2
/0x01-python-if_else_loops_functions/0-positive_or_negative.py
a1fc89629667083b123b47fc3ece65490acb4010
[]
no_license
Eltotino/holbertonschool-higher_level_programming
275a1661589666194ffc3666bb9af8c1ec314983
5972c0d86f6a03f41861b35716276d79e1ccfe8b
refs/heads/main
2023-06-22T23:36:54.168404
2021-07-12T15:42:14
2021-07-12T15:42:14
259,333,569
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
#!/usr/bin/python3 import random number = random.randint(-10, 10) if (number < 0): print("{} is negative".format(number)) elif (number == 0): print("{} is zero".format(number)) else: print("{} is positive".format(number))
[ "totojaber1@gmail.com" ]
totojaber1@gmail.com
5ef60668d91237a987d9c330447fbc97da91786a
65f1cccaa0df91fff1bd8786a0a5f305c145a21a
/even.py
4af272baffb3dd775c5b3df6ca41b368d9312468
[]
no_license
sandeepny441/tom_git
16239bd71851f248104e5785acb0a84b3b9ed0cc
56e4327676b08de0d9880ff5a392080792bdcbeb
refs/heads/master
2023-05-31T14:59:53.260479
2021-06-27T20:44:24
2021-06-27T20:44:24
348,614,790
0
0
null
2021-06-27T20:44:24
2021-03-17T07:17:28
HTML
UTF-8
Python
false
false
112
py
def is_even(given_num): if given_num % 2 == 0: return 'even' return 'Odd' print(is_even(100))
[ "sandeepny441@gmail.com" ]
sandeepny441@gmail.com
7a460b0c00e51c1c350cb5355df2ed784d08ca50
5a5b1cf029ef50c8f960cf283f7474046c5eebe8
/static/datatool/split.py
157985d42f365857e70387b5cc0737c9c01b72c4
[]
no_license
chenjuntao/gisdemo
e337f6949c0eabe68f58d3011894551ac801edfd
75a7b9a0e19d75ebf14a243ceb69d058def76106
refs/heads/master
2020-12-28T13:43:11.617876
2020-02-05T03:10:48
2020-02-05T03:10:48
238,354,596
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
# coding:utf-8 import csv import os dir = './csv/in' page = 30000 print('打开要写入的文件...') f = csv.reader(open('./csv/allin.csv', 'r', encoding='UTF-8')) num = page count = 0 f3 = None writer = None csvHeader = [] # 表头 for i in f: if len(csvHeader)==0: csvHeader = i if num < page: writer.writ...
[ "cjt@snp.net" ]
cjt@snp.net
07fd478a0c99e3470575c12f1bb74ad945580d0c
e9a083fb04bf9061a2c49871cfbec9b37ff8f71b
/docs/source/conf.py
c609679b4ac4c8100904a33ce92c16726bc46c12
[]
no_license
olaurino/rama
7f86223d66f42c639672da6b8979eacaf56b28ed
2c88ca2263ccbf6d0737fea0ac5dc0341d71c53a
refs/heads/master
2021-01-25T14:49:32.330753
2018-06-04T14:25:27
2018-06-04T14:25:27
123,731,355
0
2
null
2018-05-08T13:25:28
2018-03-03T21:05:53
Python
UTF-8
Python
false
false
5,608
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
[ "olaurino@cfa.harvard.edu" ]
olaurino@cfa.harvard.edu
2b64d7c87cb71a336307dcbab4db4d5d324b4e43
95f1541cac9e356b108fd4a7698dccd469f3996e
/backend/app/misc/tasks.py
1b2ff7d1a667b0fef02eb0b51a72ae62a22e53c2
[]
no_license
ramonsaraiva/multiplicae
f98c29e57cf53e358540fd590d55472311d9c382
29054abc83bad2309ab66698d7f3f3bbd683d570
refs/heads/master
2023-08-15T00:07:51.203417
2020-02-19T02:57:24
2020-02-19T02:57:24
238,992,039
2
1
null
2021-09-22T18:35:52
2020-02-07T18:00:24
JavaScript
UTF-8
Python
false
false
114
py
import dramatiq @dramatiq.actor( queue_name='default', max_retries=1, ) def healthcheck(): return 0
[ "ramonsaraiva@gmail.com" ]
ramonsaraiva@gmail.com
844e243a462d989d07a4e429980a714f3f1d65f9
22f3a291ea76f63905fe781b4d5c94c1791ddb4c
/workflow/deploy/tensorflow-serving/src/app/entrypoint.py
30549ff4564d901677cc0ebeb53277c300972cdb
[ "MIT" ]
permissive
bgulla/jetson
529920442ca4ecfc4c49045510ff8f37515ea248
e037a99c9ca29e6c9331babcacbc0d530c8ec762
refs/heads/master
2020-06-25T01:01:46.044669
2019-07-25T13:12:39
2019-07-25T13:12:39
199,147,932
1
1
MIT
2019-07-27T10:37:51
2019-07-27T10:04:15
Python
UTF-8
Python
false
false
1,716
py
import os import signal import subprocess # Making sure to use virtual environment libraries activate_this = "/home/ubuntu/tensorflow/bin/activate_this.py" exec(open(activate_this).read(), dict(__file__=activate_this)) # Change directory to app os.chdir("/app") tf_server = "" api_server = "" s try: tf_server = su...
[ "helmuthva@googlemail.com" ]
helmuthva@googlemail.com
5ff636a6548041d3e2e3d0bf15865a94696a1f08
99364458e4fe84fc006fd90b7924915e23d2406f
/risk_assess/uncertain_agent/test_python_cpp_interface.py
2636ca4ccddb59383a5ae78441da7716962fe570
[]
no_license
yangkaia123/risk_assess
27cf4991f0901960dc74983fe76d735054f6bcc1
8da6a2d7e4332ebc7ee8d73202c56688167daedb
refs/heads/master
2023-05-15T09:04:52.220295
2020-07-12T20:23:38
2020-07-12T20:23:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,702
py
import ctypes from ctypes import cdll class AMS(ctypes.Structure): _fields_ = [('E_x', ctypes.c_double), ('E_y', ctypes.c_double), ('E_xy', ctypes.c_double), ('E2_x', ctypes.c_double), ('E2_y', ctypes.c_double), ('E_xvs', ctypes.c_doub...
[ "allenw@mit.edu" ]
allenw@mit.edu
55a5c60123c11c03dbae53d05a091e926626cf67
4807c5ce0bcbb7f3c678f21a0e02f586ef1862e2
/grainburn/grainburn.py
913730da3de86f1db42d47328385357b2e9aa961
[]
no_license
JacobRoth/JacobRothSketchbook
91ecb74ac993304b2959448f71da61920c0b1d60
c36c130dfc64a946adbdf88a2cb0b687de359e53
refs/heads/master
2021-03-12T23:15:17.217630
2014-04-01T20:24:56
2014-04-01T20:24:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,785
py
import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np import random import math def convertDown(image): rows,columns,_ = image.shape bufferedImage=np.eye(rows,columns) for row in range(0,rows-1): for column in range(0,columns-1): if image[row][column].all()...
[ "rothj1459@gmail.com" ]
rothj1459@gmail.com
9b28a494fb6b543207c34e1d6e2846be94ab030c
fea5ab6175de05ede2808e26b72cb6de6ae52aba
/poker/validators/royal_flush_validator.py
f8f72202575e6b874cbe185d50f5c12738c1a85e
[]
no_license
phamin2001/Texas-Hold-em-Poker
7fc71d285307a96b1e1577889c3c996b503d81e2
2299a25c2725b430c43e59879e903a656c8fca19
refs/heads/master
2022-11-12T14:02:42.491005
2020-07-07T06:18:04
2020-07-07T06:18:04
271,067,496
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
from poker.validators import StraightFlushValidator class RoyalFlushValidator(StraightFlushValidator): def __init__(self, cards): self.cards = cards self.name = "Royal Flush" def is_valid(self): straight_flush_validator = StraightFlushValidator(cards=self.cards) if straight_fl...
[ "amin.pahlavani@gmail.com" ]
amin.pahlavani@gmail.com
8ed992846cecdd828e575dfa6c66da38336b9797
acf7457d3a799cb9bff12686d2d616688bcd4b5b
/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_family.py
630d0965793bea6d3cb6b80383b246586092f423
[ "MIT" ]
permissive
plotly/plotly.py
f4f61639f08160f16195efc95b5901dc5a937346
975a704074f01c078e0fdfa32bdf17130bf89e69
refs/heads/master
2023-09-06T06:15:08.340035
2023-08-24T12:28:14
2023-08-24T12:28:14
14,579,099
14,751
2,989
MIT
2023-09-08T19:55:32
2013-11-21T05:53:08
Python
UTF-8
Python
false
false
554
py
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="family", parent_name="scatter.legendgrouptitle.font", **kwargs, ): super(FamilyValidator, self).__init__( plotly_name=pl...
[ "nicolas@plot.ly" ]
nicolas@plot.ly
5299ea0fe7a31a54d5deabcb2c8a6f8591fb6325
09c9600eccc223db658cf3ae4f5292333f22e3e7
/orange_manage/apps.py
22b81363b9618573a1a15de6cad9de58f8099247
[]
no_license
sy159/order_background_management
d19bfd209475731dce24b6a26f824fe0ab43fb37
0f419376ed90aca85ef1f517927c7a2b1fc8e2b6
refs/heads/master
2022-03-08T17:48:10.000382
2019-11-27T12:16:57
2019-11-27T12:16:57
149,939,020
1
0
null
null
null
null
UTF-8
Python
false
false
99
py
from django.apps import AppConfig class OrangeMangeConfig(AppConfig): name = 'orange_manage'
[ "snow@cqgynet.com" ]
snow@cqgynet.com
0284b2f0d100aa1fb76d5248cd791f88aa401612
8052c4237d2ef6da92c386d3199937b26a47cc46
/ckuser/migrations/0021_auto_20190608_1148.py
607f18e7ce94a45bdeffbf2cde0440119f75d74d
[]
no_license
prateekagarwal721/ck_backedn
58f1039902bfb87b930986069c393c11ebef7c80
70e9449171153d5c7850999d25b4e5562c64d8f0
refs/heads/master
2020-06-01T00:16:25.144131
2019-09-12T16:43:17
2019-09-12T16:43:17
190,553,412
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('ckuser', '0020_auto_20190608_1147'), ] operations = [ migrations.Alter...
[ "prateek.agarwal@sporthood.in" ]
prateek.agarwal@sporthood.in
4cf602dd90dff5469578d17432152af4c4ed5a52
b5758fdb0b0f757b045ae091e85007366a2b78ab
/opcua2mqtt.py
5d66c60a3718e2e716e428e61bbe5ad012aff823
[ "Apache-2.0" ]
permissive
tyrbonit/opcua2cloud
f5903e984ba325268fdf4ecd277b5f3677474818
32e1e745e4939f8d4fd51892d9a51230ffdfc198
refs/heads/master
2021-01-02T20:48:58.109135
2019-01-10T23:36:41
2019-01-10T23:36:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,930
py
import sys #sys.path.insert(0, "..") import time from opcua import Client #import context # Ensures paho is in PYTHONPATH import paho.mqtt.publish as publish import awsiot import redis MQTT_MODE = 'simple' # simple,simplewithpass,awsiot AWSIOT_AK = 'test' AWSIOT_SK = 'test' HOST = '127.0.0.1' SAVE_TO_REDIS_EN = Fals...
[ "aixi.wang@hotmail.com" ]
aixi.wang@hotmail.com
12c48d5ff16675e2a8f6a2d902504de1ea724719
3540272eb4522c637fb293a924a6ad8d7b365718
/tribune/news/models.py
33b78f25b5e2b10758918424db9589c053a886ce
[]
no_license
nevooronni/tribune
b0e80a4613758690702fa88eb99f44f4e8e66a30
7218d3514277ce408128b4e8c66da5639cf7dec4
refs/heads/master
2021-08-14T16:55:46.280863
2017-11-16T08:41:18
2017-11-16T08:41:18
110,561,868
0
1
null
null
null
null
UTF-8
Python
false
false
2,167
py
from django.db import models#import models class configured to allow us to communicate with the db import datetime as dt class Editor(models.Model):#created editor class inherits from model class first_name = models.CharField(max_length = 30)#charfield is the sql equivalent to varchar a string field for small to l...
[ "nevooronni@gmail.com" ]
nevooronni@gmail.com
d2303e3bc513f042b2df38e56dd4badb36243be0
80d32b5911a1d9527c357d02690ba47cb362aca7
/app/routes.py
a3f5b1f4632c0330de02a3c0da70813d268b46c7
[]
no_license
Shikhar-SRJ/flaskapp_CI_CD
0a12a4f11b10cef6dc630714b279a88c2f065f42
225a399b2ec98848cc8ff5ac11d5d0e5e2fc7b37
refs/heads/main
2023-08-23T17:18:50.183350
2021-10-25T05:54:37
2021-10-25T05:54:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,137
py
from app import app, db from flask import render_template, flash, url_for, redirect, request from app.forms import LoginForm, RegistrationForm, EditProfileForm, EmptyForm, PostForm, ResetPasswordRequestForm, ResetPasswordForm from flask_login import login_user, current_user, logout_user, login_required from app.models ...
[ "ptksuraj@gmail.com" ]
ptksuraj@gmail.com
36e2367cd04b5957640725d4b5e176a6e2d4a2ec
60391b28bd2b11d7c905e8fc20ec049eb05e8f92
/lib/tests.py
fc271cced34e21d28d15cdfb68d1c0b783ea417d
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
serl/topoblocktest
d2adc8c886f4f637da7377c2c2ea2cce35e8b497
32870f863e128414b0f0f9b786815f38c35d7c73
refs/heads/master
2022-07-01T12:23:10.327429
2019-11-02T14:51:32
2019-11-02T14:51:32
58,321,253
0
0
MIT
2022-06-20T08:20:52
2016-05-08T16:34:10
Python
UTF-8
Python
false
false
9,666
py
import textwrap from .bash import CommandBlock def begin(): script = CommandBlock() script += '#!/bin/bash' script += 'umask 0000' # as the script will be run as root, this ensures that after you can play around as normal user ;) script += '' return script def counter_increment(**settings): ...
[ "livi@i3s.unice.fr" ]
livi@i3s.unice.fr
ea29d994f42ebba9d6dc03fdd1e97c8201db4622
5eacabadc016ff67b913d66b88a5002865ff71e4
/tests/archives/cvt_archive_test.py
db2b4925c8ccd9d5d0cde2a569dc41f08278a6a3
[ "MIT" ]
permissive
Nikitaskla/pyribs
8e3d0ac580130c5389826f7c518591842accaa15
ef289a930e7a8a51286cf657f7e4b29551277350
refs/heads/master
2023-07-03T16:59:55.656682
2021-08-01T09:39:51
2021-08-01T09:39:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,825
py
"""Tests for the CVTArhive.""" import unittest import numpy as np import pytest from ribs.archives import AddStatus, CVTArchive from .conftest import get_archive_data # pylint: disable = redefined-outer-name @pytest.fixture def data(use_kd_tree): """Data for CVT Archive tests.""" return (get_archive_data(...
[ "noreply@github.com" ]
Nikitaskla.noreply@github.com
902d047c818eadc130281316b90cfde772634bd0
6b1aaded6a6d7ad8133eb93f5570d087b9ecefc0
/57.py
a778a4be509d89c1f7027528296bead44d2f43f7
[]
no_license
huangyingw/Leetcode-Python
53a772e1ecf298c829c0f058faa54c420420b002
9513e215d40145a5f2f40095b459693c79c4b560
refs/heads/master
2021-07-16T10:10:02.457765
2020-07-01T05:35:21
2020-07-01T05:35:21
192,150,219
1
0
null
null
null
null
UTF-8
Python
false
false
813
py
# Definition for an interval. # class Interval: # def __init__(self, s=0, e=0): # self.start = s # self.end = e class Solution: def insert(self, intervals, newInterval): """ :type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval] ...
[ "tiant@qualtrics.com" ]
tiant@qualtrics.com
50d9115c118e9ba2d5ebc6b7d58c98818ecd010c
bd4734d50501e145bc850426c8ed595d1be862fb
/7Kyu - Growth of a Populationdef nb_year-p0- percent- aug- p- count - 0 while-p0-p- p0 - p0 - p0-percent/7Kyu - Growth of a Population.py
1259b444757fdd602a08df17a598257ae2dcc7d2
[]
no_license
OrdinaryCoder00/CODE-WARS-PROBLEMS-SOLUTIONS
f61ff9e5268305519ffeed4964589289f4148cfd
5711114ddcc6a5f22f143d431b2b2e4e4e8ac9fb
refs/heads/master
2021-10-23T09:09:45.670850
2019-03-16T13:24:17
2019-03-16T13:24:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
def nb_year(p0, percent, aug, p): count = 0 while(p0<p): p0 = p0 + p0*(percent/100) + aug count = count + 1 return count
[ "noreply@github.com" ]
OrdinaryCoder00.noreply@github.com
be90578add9db3c84ccf82cfd059d0f9b9a205d0
c697fa30fbcb3af706318be11dd0445c817c0b68
/ACM ICPC Team.py
f21a0fc3b918845a587892df9deb17682cb4a0f9
[]
no_license
VishalDeoPrasad/HackerRank-Python
59df8ccd128d602dd0b28a4abf017608b1496486
7090634e806a88b7934e16a628a1edd97ba85a28
refs/heads/master
2023-05-01T00:33:56.371330
2023-04-28T10:06:10
2023-04-28T10:06:10
160,024,108
3
0
null
null
null
null
UTF-8
Python
false
false
734
py
def normalize_string(topic): new_topic = [] for i in range(len(topic)): temp_lst = [] for j in range(len(topic[0])): if topic[i][j] == '1': temp_lst.append(j+1) new_topic.append(temp_lst) temp_lst = [] return new_topic def ac...
[ "vishaldeoprasad@yahoo.com" ]
vishaldeoprasad@yahoo.com
2c0897784bb77d41c6320fddcb72b830ce8528cb
53d23ecc25f53323e3cc2a22d2dc5fe6d9ffae57
/electrum/plugins/gpg_integration/__init__.py
258671bccf6d879b16f55cc1a1bc85ab1592361a
[ "MIT" ]
permissive
asfin/electrum
b10df9f7a51d9515d6a0ec03f7a4d2fdd7331f37
9abf5cda9b2906a0575b3629bccc4b1ceed8df49
refs/heads/master
2021-01-13T06:54:03.918146
2018-04-24T10:14:20
2018-09-07T14:57:00
34,674,696
2
2
null
2017-02-14T08:03:09
2015-04-27T15:27:36
Python
UTF-8
Python
false
false
250
py
from electrum.i18n import _ fullname = _('GPG integration') description = ''.join([ _('Allows to use your bitcoin private keys as familiar GPG keys'), '<br>', _('Open plugin window from main menu Tools->GPG tools') ]) available_for = ['qt']
[ "asfins@gmail.com" ]
asfins@gmail.com
0b65a0a577f66a922a2ce3ea908ed06aa11bc88f
95a064d1cb2d9e7f4f4bbfa4eb0713e28b0a440f
/RPC/Rpc_Server.py
71251b18db5154acd823602a17f10f8397416125
[]
no_license
gopiprasanthpotipireddy/Python-RabbitMQ
89302dc6b6cdaf27a44b792fda967d87894d55b0
f2f3a9bb3c9d0cc0a5566a1fd94409fff3a6bbe6
refs/heads/master
2021-01-06T13:30:24.478384
2020-02-20T08:08:11
2020-02-20T08:08:11
241,343,309
1
0
null
null
null
null
UTF-8
Python
false
false
915
py
import pika connection = pika.BlockingConnection( pika.ConnectionParameters(host='localhost')) channel = connection.channel() channel.queue_declare(queue='rpc_queue') def fib(n): if n == 0: return 0 elif n == 1: return 1 else: return fib(n - 1) + fib(n - 2) def on_request(ch...
[ "gopiprasanthp@virtusa.com" ]
gopiprasanthp@virtusa.com
bd788fa1d51cbbadecdea78fe391360278fae038
d420f185ad12f0c963b0863a3ecaabbf5331527a
/HW5/reciprocal.py
8f0529ed8228699bc12c8d3653d33a9aba73b557
[ "MIT" ]
permissive
amitpatra/ISYE-6669-Deterministic-Optimization
b8357272a87a39554fe28e4074ccd60274cfa99a
0d6eefaa34f3e8e909f4109504fc3e2212d8725f
refs/heads/main
2023-03-21T04:54:32.678888
2020-12-20T19:47:08
2020-12-20T19:47:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,486
py
# Implement the Linear Reciprocal Maximization problem import gurobipy as gp import numpy as np from gurobipy import * id = 903515184 # Invoke Gurobi to solve the SOCP def solve_socp(id, m=400, n=50): gm = gp.Model("reciprocal") A, b = get_data(id, m, n) # print(A.shape, b.shape) # (400, 50...
[ "noreply@github.com" ]
amitpatra.noreply@github.com
bfe91353f94b7324769a5908cb44a049673dd6e2
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/287/85098/submittedfiles/testes.py
890ae53b050f276e8465ffbca31d1de6d83407c7
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
# -*- coding: utf-8 -*- from minha_bib import* print(multiplicacao(2,3))
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
67752a7742ec7157fc73cc678de0694074b589de
9567b87d380540ca9c92de5fda66981029b831d9
/Yaml Converter/MakeROSMap.py
241629d9bb44cef6f4ab2c9ca656b8b7279d43e9
[]
no_license
Dhaour9x/cSLAM
782d97fcc5b03aa878604f9dab9caced2fc1873e
78cf2a2847e02430f13cec924175a6d08c9aa32b
refs/heads/master
2022-10-29T14:59:24.337726
2020-06-13T19:03:27
2020-06-13T19:03:27
272,068,722
3
0
null
null
null
null
UTF-8
Python
false
false
4,189
py
import math import os.path import cv2 # # This is a start for the map program # import pywt.tests.data.generate_matlab_data #import pywt prompt = '> ' print("What is the name of your floor plan you want to convert to a ROS map:") #file_name = eval(input(prompt)) file_name = input(prompt) print("You will need to ch...
[ "riadh.dhaoui@rub.de" ]
riadh.dhaoui@rub.de
57b906c83a2d61619b54bb2afe90bb43616f21ce
4111ca5a73a22174f189361bef654c3f91c3b7ed
/Lintcode/Ladder_47_BigData/128. Hash Function.py
6d7607ff24020011e66b6d9c8c4b6774644f2261
[ "MIT" ]
permissive
ctc316/algorithm-python
58b541b654509ecf4e9eb8deebfcbdf785699cc4
ac4580d55e05e93e407c6156c9bb801808027d60
refs/heads/master
2020-03-16T06:09:50.130146
2019-08-02T02:50:49
2019-08-02T02:50:49
132,548,222
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
class Solution: """ @param key: A string you should hash @param HASH_SIZE: An integer @return: An integer """ def hashCode(self, key, HASH_SIZE): code = 0 for ch in key: code = (code * 33 + ord(ch)) % HASH_SIZE return code
[ "mike.tc.chen101@gmail.com" ]
mike.tc.chen101@gmail.com
e7f5a53908b335955397208487dc62f8fbd7f14e
5ccd5739764468538a1b52cc43dfbc800e480a82
/Common_Word_Forms_1.py
cab16cb1a347b78118153858f693b6896ea3446a
[]
no_license
dhmo1900/Python-Base-Word-Form-Finder
5cad5913bcb54b488625e6a11f0f8c644dd103cb
8441b37472d3fdab495517af973785559d682626
refs/heads/master
2022-11-18T06:16:49.000407
2020-07-10T02:15:42
2020-07-10T02:15:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
from urllib import request from bs4 import BeautifulSoup import nltk import distance import pprint pp = pprint.PrettyPrinter(indent=2) def contiguous_string_matches(main_s, s_compare): if len(main_s) < len(s_compare): main_s, s_compare = s_compare, main_s for i in range(len(s_compare)): if s...
[ "thom.ives@gmail.com" ]
thom.ives@gmail.com
3f7c1ecec5f580016a5068bd48f1de2040b2bf6b
0a801544da5ad2f1969348512f7def8fa9176c7d
/backend/simplicite_23801/urls.py
25d91cd59bdf8a1ad01544b6a94abcbe42abf6ab
[]
no_license
crowdbotics-apps/simplicite-23801
75477b76531c2c53992f74183e9e2e80aefd22e4
e6a6f569c61449e50988201cf58cc5203d23e039
refs/heads/master
2023-02-11T12:27:04.807579
2021-01-13T03:01:57
2021-01-13T03:01:57
329,176,579
0
0
null
null
null
null
UTF-8
Python
false
false
2,668
py
"""simplicite_23801 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
5732900ceff22c44e5544b54d08656cd21a9af39
a80e0ad5821b4d83164f16c0f04a0559cba4c3e8
/papadimitriou/papadimitriou.py
cf902885d165167418c2414ae66c2029031d3867
[]
no_license
vnck/2SATSolver
e5645e22f4cef5a1da058ef659e6cc2e333eda0f
a7a29e01f2adc050819bb141e4c13924baa7b4fb
refs/heads/master
2020-04-01T04:51:02.144623
2018-10-31T08:17:55
2018-10-31T08:17:55
152,879,312
0
0
null
null
null
null
UTF-8
Python
false
false
2,358
py
import random import os import fileinput import math import time clauses = [] variables = [] def papadimitriou(fileName): text = open(fileName).read() lines = text.split("\n") lines = [line.strip().split(" ") for line in lines] varSize = int(lines[2][3]) clauses = [[int(line[0]),int(line[1])] for ...
[ "noreply@github.com" ]
vnck.noreply@github.com
3f64960bfcafeb82116b2ca0f42b1115cc47d3b8
974e81ec41f32900f3bd633f251227ed352edd79
/examples/01-simple.py
18a9cd86210e21059edda91d9e801f77f44de2b6
[ "MIT" ]
permissive
defcon201/wikipedia_ql
a3321f8bc43308b92fadfe40c1913d7644e8c666
5bae4ed8d1fbf9ba9c818d02a4a0905a97f31cd9
refs/heads/main
2023-08-25T22:33:12.148362
2021-10-13T19:26:03
2021-10-13T19:26:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# Simple fetching of just a few properties from one pages from pprint import pprint from wikipedia_ql import media_wiki wikipedia = media_wiki.Wikipedia(cache_folder='tmp/cache') pprint(wikipedia.query(r''' from "Pink Floyd" { section[heading="Discography"] >> li { a as "title"; t...
[ "zverok.offline@gmail.com" ]
zverok.offline@gmail.com
df437ae369a37495789bc3dcddaf0479010d41ea
728416d6e4dba67a0a85276f76bd59d3e857a284
/project/urls.py
0786cd4530e24ae874365301c1e96fa0b4aa8a99
[]
no_license
samilani/avacado
c80a4c21480d86b1c6cde05245464ed077d90221
c08e41f851e6e575775ef52750089013f386cd1a
refs/heads/master
2020-06-06T16:26:11.183489
2013-11-12T12:35:16
2013-11-12T12:35:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
from django.conf.urls import patterns, url from project import views urlpatterns = patterns('', url(r'^$', views.index, name='index'))
[ "milani.ahmad@gmail.com" ]
milani.ahmad@gmail.com
0bdd466da74a7ca034ecd75ac4369832698933fc
cf582a6c4a45db58666dc2de66cfb7cdc50151e4
/account/authentication.py
704682ce691f91ac4cdf86b326a676cce94b66c9
[]
no_license
NankuF/bookmarks
361def76d0d3ad42ff0103371a576f4cd4bddaaf
88cd24cc6909211b3bfc90960891965c2e4e5605
refs/heads/master
2023-08-20T06:57:01.098014
2021-10-24T10:55:08
2021-10-24T10:55:08
413,335,312
2
0
null
2021-10-08T06:01:39
2021-10-04T08:24:05
Python
UTF-8
Python
false
false
1,450
py
from django.contrib.auth.models import User class EmailAuthBackend(object): """Выполняет аутентификацию пользователя по email Идентификационные данные сначала будут проверены ModelBackend ( см. в settings.py). Если этот бэкэнд не вернет объект пользователя, Django попробует аутентифи- циро...
[ "71669154+NankuF@users.noreply.github.com" ]
71669154+NankuF@users.noreply.github.com
0aa438918ed4b7436f3f4cf20ae451e99c599526
676edefaffabb933fe9336cf6c23aa049b6962b4
/mysite/cats/models.py
b74bb144c9ec6ebc480b5adf2e2c672e4cc65abd
[]
no_license
danielbaraniak/zadania-rekrutacyjne
917b2785e0d8e867e66ebe610f4deb4f147f8984
fba379c4688275f0328012cffef525bfb1e93848
refs/heads/main
2023-08-25T14:37:02.430574
2021-10-25T00:50:34
2021-10-25T00:50:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,367
py
from django.contrib.auth.models import User from django.db import models class Cat(models.Model): user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True) name = models.CharField(max_length=50) color = models.CharField(max_length=20) is_male = models.BooleanField() def get_prays_numbe...
[ "daniel@example.pl" ]
daniel@example.pl
c826ef5b94146713cbfb40ea8d2456a72ea50850
11137bde91389c04a95df6f6fdaf64f7f49f5f80
/introduction_MIT/16_2图表会骗人.py
582608abe22748eee617a7fb4bb7c90df1af46fb
[]
no_license
starschen/learning
cf3c5a76c867567bce73e9cacb2cf0979ba053d9
34decb8f9990117a5f40b8db6dba076a7f115671
refs/heads/master
2020-04-06T07:02:56.444233
2016-08-24T08:11:49
2016-08-24T08:11:49
39,417,895
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
#encoding:utf8 #16_2图表会骗人.py #绘制房价 import pylab def plotHousing(impression): '''假设impression是一个字符串,必须是‘flat’, ‘volatile’或者是‘fair’ 生成房价随时间变化的图表''' f=open('midWestHousingPrices.txt','r') #文件的每一行是年季度价格 #数据来自美国中部区域 labels,prices=([],[]) for line in f: year,quarter,price=line.split(' '...
[ "stars_chenjiao@163.com" ]
stars_chenjiao@163.com