blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
10320c2b5c5d228ae3ada19ae71d1c1b9d7fff71
77d7f2c1284b276c95ad31b15ac2bde077f1ceca
/fastreid/data/common.py
959fefb3f17b62bcdefa3071913ff3df58331735
[ "Apache-2.0" ]
permissive
Cris-zj/fast-reid
a53f19fefe149eec93d0f1b2a1d61136d9c9eaf6
db4b65444912cfd54675e6a52fa12e2d1321e971
refs/heads/master
2022-12-14T15:23:40.820118
2020-08-31T12:34:33
2020-08-31T12:34:33
291,639,026
2
0
Apache-2.0
2020-08-31T06:56:24
2020-08-31T06:56:23
null
UTF-8
Python
false
false
1,078
py
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ from torch.utils.data import Dataset from .data_utils import read_image class CommDataset(Dataset): """Image Person ReID Dataset""" def __init__(self, img_items, transform=None, relabel=True): self.img_items = img_ite...
[ "sherlockliao01@gmail.com" ]
sherlockliao01@gmail.com
8fe298aaf5cf8b93c96ab107fbe0f5771e3f5e25
b775940595617a13289ee7006cf837f8f3a34480
/examples/ppk_plot.py
24497e1d56f97c75755d7197f2dbe75215961c3c
[]
no_license
Nathan-Walk/manufacturing
5d2f58c2be45c9ccb2263bd750b6c18809fe76d4
2a22457ff9ef695da649a1e11d0cf7cb8ddde348
refs/heads/master
2023-03-08T19:48:15.613729
2021-02-26T01:05:46
2021-02-26T01:05:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
import logging import matplotlib.pyplot as plt from manufacturing import import_excel, ppk_plot logging.basicConfig(level=logging.INFO) data = import_excel('data/example_data_with_faults.xlsx', columnname='value (lcl=-7.4 ucl=7.4)', skiprows=3) ppk_plot(**data) plt.show()
[ "slightlynybbled@gmail.com" ]
slightlynybbled@gmail.com
6a785fc558dbcc8272ad715017bef5db57b4b310
4124770492faac81ab962641d88c0bbf54e14d15
/run_rnn_xz.py
a3ad8a679941b50e7043c8b0d0fd7e1f9216c66f
[ "MIT" ]
permissive
lr12/textcnnrnn
5c5f47b409fb1b402a8074b89178864da97a11b5
aa0560b89a82225e7b2dbbd8223acb1c5a18eec7
refs/heads/master
2020-05-05T07:23:49.221143
2019-06-24T11:51:52
2019-06-24T11:51:52
179,823,664
0
0
null
null
null
null
UTF-8
Python
false
false
7,165
py
# coding: utf-8 from __future__ import print_function import os import sys import time from datetime import timedelta import numpy as np import tensorflow as tf from sklearn import metrics from rnn_model import TRNNConfig, TextRNN from data.cnews_loader import read_vocab, read_category, batch_iter, process_file, bu...
[ "1533954499@qq.com" ]
1533954499@qq.com
c1dc9b8de82a537e52ed23b956fe00cfff4c98ee
2db67c3d6d4ec252f3e76ce6e92f258c4e1fbf73
/delfin/drivers/dell_emc/unity/unity.py
7652a09592639cd3844daf83fc8c520d00d832a2
[ "Apache-2.0" ]
permissive
jiangyutan/delfin
2b74ed2473f2e42f8cc1d185a8ac4c0835035bd0
d63b5f19efabc1c6ef94f0244e9f89c2ecceb7ed
refs/heads/v0.8.0-maint
2023-05-04T21:18:08.539343
2021-03-15T08:00:53
2021-03-15T08:00:53
286,358,774
0
0
Apache-2.0
2020-08-10T02:38:37
2020-08-10T02:38:36
null
UTF-8
Python
false
false
8,054
py
# Copyright 2020 The SODA 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 in wri...
[ "noreply@github.com" ]
jiangyutan.noreply@github.com
346f62a2096c1ecfa719e42210fc519957c983e5
1e5812e1839bbb67e2d284a96f3f5fa8360ceeca
/own/visualizer.py
fc7a7f32e4f27023554246dec93d3d62304926a5
[]
no_license
TSBB15-VT21-group-4/3d-reconstruction
aaf8498abdea6bb2b7b79181073b33bd0636c517
a36b331bb40fb19e9ae515807e705e76e70aef93
refs/heads/master
2023-07-03T16:55:08.330639
2021-08-06T09:50:00
2021-08-06T09:50:00
393,331,214
0
1
null
null
null
null
UTF-8
Python
false
false
7,323
py
#!/usr/bin/env python3 import numpy as np from matplotlib import pyplot as plt from external import lab3 import warnings class Visualizer(): """ Declares functions used for visualization. """ def __init__(self): pass def visualize_corresp(self, view_1, view_2, p_index): """ ...
[ "matvi959@student.liu.se" ]
matvi959@student.liu.se
add0c5f6565b30e25421cd87641a4403aaad57bc
840c7884fe10902f11bceb6e7ef78d8fc7f92818
/py_thread/fx_thread.py
042be7780b7f16f47789eaead8704478df9fc359
[]
no_license
johnnyem527/pyprac
07a7a6c2a52169be5424d65a5f91aad815a4d08a
5899c0c57a49121957f4fb9f56d47ee681dbe77b
refs/heads/master
2021-05-08T18:02:21.836654
2018-04-11T12:22:48
2018-04-11T12:22:48
119,498,838
1
0
null
null
null
null
UTF-8
Python
false
false
665
py
# 函数式使用线程 import threading tickets = 1000 lock = threading.Lock() def buy_ticket(tid): global lock global tickets while True: lock.acquire() if tickets != 0: print("线程" + tid + ":买到了第" + str(tickets) + "张票") tickets -= 1 print("还剩 :" + str(tickets) + "张票...
[ "12313024@qq.com" ]
12313024@qq.com
20c3c2ce5f8c8c1514529d8e50833e1553d9df21
c7ae47e0806c19cf3462c090fa9015f27a4d5e90
/blog/migrations/0001_initial.py
c1734eec62851501c157060e7ceefd67a563537d
[]
no_license
micahchuim/portfolio
a1bc1cb89dbe9650235dbafc5bafffa4e25fdc32
0e5458e59fb6dc47a1b6cbb4f5214271defc39ec
refs/heads/master
2023-01-10T03:14:46.642706
2020-11-16T03:04:14
2020-11-16T03:04:14
313,176,277
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
# Generated by Django 3.1.3 on 2020-11-13 07:52 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Blog', fields=[ ('id', models.AutoField(aut...
[ "micahnicole.chuim@sun-asterisk.com" ]
micahnicole.chuim@sun-asterisk.com
43161b15896e4902218ba23e07244705afec3bd9
b0bb0dcdf8228cbdd02e47a9e2097892f7dd0861
/bak/download.py
03f5f93a9a8b197c04727d19e700059556ff1ede
[]
no_license
scmsqhn/zipline_for_u
562de0d8ed638de431d207e6808db7e19fc168f7
369b17fd3142fcfb9ced7ce0b17a3a35a8af37d4
refs/heads/master
2021-01-20T06:51:09.012662
2017-05-02T14:54:38
2017-05-02T14:54:38
89,936,089
1
0
null
null
null
null
UTF-8
Python
false
false
5,161
py
# -*- coding: utf-8 -*- # @Author: yuqing5 # date: 20151023 import tushare as ts from sqlalchemy import create_engine import datetime import time import pandas as pd import os import cPickle from pandas import DataFrame import pandas.io.sql as SQL import sys sys.path.append('./utility/') from tool_decor...
[ "haining.qin@changhong.com" ]
haining.qin@changhong.com
bc026c4ed31e48c1c7c6a8dad59f6f27b760e5de
d44b5a657e7cd69c875b55dd5cddf21812e89095
/pixel_cnn/model/resnet.py
4c7abe39625aca83798614a9c570268916820747
[ "Apache-2.0" ]
permissive
nel215/chainer-pixel-cnn
ca8ae17fda998f7677dea785e53319b3fc646e76
94b064f9e66355d141ed5d6cce0c38492203715b
refs/heads/master
2020-04-02T02:11:29.546694
2018-10-21T12:10:43
2018-10-21T12:10:43
153,896,421
0
0
null
null
null
null
UTF-8
Python
false
false
774
py
from chainer import Chain from chainer import links as L from chainer import functions as F def concat_elu(x): return F.elu(F.concat([x, -x], 1)) class GatedResnet(Chain): def __init__(self, n_out, Conv2D): super(GatedResnet, self).__init__() with self.init_scope(): self.conv1 =...
[ "otomo.yuhei@gmail.com" ]
otomo.yuhei@gmail.com
3da20a20d29aa2f522c83f995e511782028cfdd3
c405becd9f1a66dc3675adb106db01a7aedec840
/sokoban.py
d327733d2888ea940d0e148d4f9ef6e8913deabd
[]
no_license
ssonkar/Sokoban-Solver
7897f115497cb05f11d1401c9232f8264daa59f8
31a001de38327e5764c941f1e729b888ee988364
refs/heads/master
2020-04-10T10:45:09.673727
2018-12-08T23:25:36
2018-12-08T23:25:36
160,974,810
1
1
null
null
null
null
UTF-8
Python
false
false
1,781
py
from board import Board #from boardastar import Boardastar import bfs import ucs import ass class Sokoban: ''' Sokoban game class ''' def new_board(self, filename): ''' Creates new board from file ''' e = [] # empty solution list b = Board(e) with open(filename, 'r') ...
[ "noreply@github.com" ]
ssonkar.noreply@github.com
e853707cdb0cd2cd268ce7a38fba29144661310f
fa6bc3c7733cb2728224b8ac71e04d3b4b50b184
/alerts/sponsors/support.py
413591435ccb4b2e87b2399feea4796d55a57b04
[ "Apache-2.0" ]
permissive
shanz/mirandum
5636fbe599a539bf262e8f3da6e0e4e83d39cc73
ce1d662a7cf64ed223d71fffed02acd3f9244e90
refs/heads/master
2021-01-21T03:09:14.287076
2016-04-30T06:39:47
2016-04-30T06:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,938
py
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "crschmidt@google.com" ]
crschmidt@google.com
c025936563a10774a9b3acd93602aa92bf3b75f8
2b7dccfa789bdeff28f306243f5ee04137e131be
/PythonAndCoding/tweettweet.py
ad177cc437e3640df20a5dee289e4f0e18627984
[]
no_license
animeshsrivastava246/PythonWork
d3a88a65bbf50da3ffb9912ab18dd0126e502c8e
3bdee1f06fd7faf92b02c37f3361e7e92011c57b
refs/heads/main
2023-07-13T12:17:05.083860
2021-08-16T11:30:42
2021-08-16T11:30:42
396,763,690
2
0
null
null
null
null
UTF-8
Python
false
false
642
py
import tweepy,time auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(auth) user=api.me() def limit_handler(cursor): try: while True: yield cursor.next() except tweepy.RateLimitError: tim...
[ "noreply@github.com" ]
animeshsrivastava246.noreply@github.com
db4aa44c038f542b1cfbd7f627f200451105a7f6
b6d40ed73a6c6923464759ad1a2350a27132b9a5
/observe/observe_ckpt.py
4ffc6000310dabe54da90cfd560d64bd92a1cc17
[ "MIT" ]
permissive
samirsahoo007/Audio-and-Speech-Processing
ccc83bc1f110d46ce73dfc83cce69bd55df5c6d8
e77df17a7f63a983c3757140c7a1e8c199cac614
refs/heads/master
2022-10-17T23:42:57.369971
2020-01-04T12:22:13
2020-01-04T12:22:13
231,758,271
4
0
MIT
2022-09-30T19:55:35
2020-01-04T12:20:46
Python
UTF-8
Python
false
false
142
py
import sys import torch from utils import timer from ipdb import set_trace ckpt_path = sys.argv[1] ckpt = torch.load(ckpt_path) set_trace()
[ "sameer_sahoo@apple.com" ]
sameer_sahoo@apple.com
9a2930492647fe490bf485ff55258371f5687191
3a63a9af2693b7d2f87a6d2db0585d8ce5480934
/vision-vgg_objects.py
3eb6277cd8e7d427d5a26d0fbd15066c271bf1e7
[]
no_license
andreeadeac22/HackCam2018
d167f71069c6fe529f1e88dd92e31794b64e6773
0bb529b0d0cc11583722107b7125eb0671ca149a
refs/heads/master
2021-05-09T09:45:34.945701
2018-01-30T00:21:57
2018-01-30T00:21:57
119,458,996
0
0
null
null
null
null
UTF-8
Python
false
false
863
py
import torch from torch.autograd import Variable as V import torchvision.models as models from torchvision.models.vgg import vgg16 from torchvision import transforms as trn from torch.nn import functional as F from PIL import Image def image_to_objects(img_name): model = vgg16(pretrained=True) model.eval() ...
[ "andreeadeac22@gmail.com" ]
andreeadeac22@gmail.com
d1362ba688ba94ce5fb4fef263f80e8985e67648
4fff1e1dd0218ff64f7d8221445ed4a6f6687f85
/web/migrations/0002_income.py
f925f2ad4b92efbdfe984ad40793edda1f2977f8
[]
no_license
fahim1377/bestoon
02e98f34afc79382ab6076cba07e008767e49d14
9d1c94b01ff03ea5e3e74728f3130b6554e644a9
refs/heads/master
2020-06-18T03:03:06.958510
2019-07-10T06:10:41
2019-07-10T06:10:41
195,384,567
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
# Generated by Django 2.2.3 on 2019-07-05 07:56 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('web', '0001_initial'), ...
[ "fahim.kammand2@gmail.com" ]
fahim.kammand2@gmail.com
dce072906381a649dc6463c6c5531217b5a67f44
6d7984b21819ffe0a9a969025af6a39eef7112dc
/tests/challenges/---test_multi_bracket_validation.py
885ccee02de743da8ca3d6f333ef4043fa96fa84
[ "MIT" ]
permissive
401-python-joseph-zabaleta/401-python-data-structures-and-algorithms
593d4e1fee7f363cbe5e51d8ee9825237d44e799
b11b5ef50f52e3d505474fe5fffe4357933da251
refs/heads/master
2022-11-04T21:23:56.211811
2020-07-25T22:19:09
2020-07-25T22:19:09
262,261,001
0
0
null
null
null
null
UTF-8
Python
false
false
1,330
py
import pytest from dsa.challenges.multi_bracket_validation.multi_bracket_validation import multi_bracket_validation def test_mbv_exists(): assert multi_bracket_validation('test') def test_mbv_one(): string = '{}' actual = multi_bracket_validation(string) expected = True assert actual == expected ...
[ "joseph.l.zabaleta@gmail.com" ]
joseph.l.zabaleta@gmail.com
cc35858bc95f4683d14d95919f9519628e61c9bc
79067556d586128deadc846098010059d20f60e2
/bikeshare.py
becb19cf9c26bfd2ec8cc95528a0b9e8cfc5025b
[]
no_license
mohamedkhnour/Explore-US-Bikeshare-Data
656fe2f1bf39e9ea1aceefbc2c792940c0a69b8d
87ca4bf6fba60cfbdf86653614ad85a00f40ffdb
refs/heads/main
2023-04-08T16:15:10.654637
2021-04-15T20:11:38
2021-04-15T20:11:38
358,376,362
1
0
null
null
null
null
UTF-8
Python
false
false
7,834
py
import time import pandas as pd import numpy as np CITY_DATA = { 'ch': 'chicago.csv', 'ny': 'new_york_city.csv', 'w': 'washington.csv' } def get_filters(): # TO DO: get user input for city (chicago, new york city, washington). HINT: Use a while loop to handle invalid inputs c...
[ "noreply@github.com" ]
mohamedkhnour.noreply@github.com
e6ffa0af18975bc4140bb2a0fd222509374d096d
174975248ffa04bb0339ace7475a791842e99ffb
/reverse_bits.py
141244053c843ee9fa1eb7c73d05ab32903b8c86
[]
no_license
KONAPAVANKUMAR/code-library
87a5525dcf71aaba47f233df17ad31227cb3c44b
6839ef596858515119a3c300b031a107c8d72292
refs/heads/main
2023-06-02T09:33:21.382512
2021-06-24T09:49:00
2021-06-24T09:49:00
378,131,322
0
0
null
2021-06-24T09:41:12
2021-06-18T11:39:22
Python
UTF-8
Python
false
false
415
py
def get_reverse_bit_string(number: int) -> str: bit_string = "" for _ in range(0, 32): bit_string += str(number % 2) number = number >> 1 return bit_string def reverse_bit(number): result = 0 for _ in range(1, 33): result = result << 1 end_bit = number % 2 n...
[ "pavankumarkona@PAVANs-MacBook-Pro.local" ]
pavankumarkona@PAVANs-MacBook-Pro.local
9d601337b6dc895c927f933e062c2575796415e6
2327d0bc2cc45a5504c39109846e0f4cba266606
/QID-1799-SFEtimegarch/SFEtimegarch.py
362457032fb2eddfb6adae28a3bbcca837f3cc90
[]
no_license
QuantLet/SFE
3d98a33cfcdc533210856c7618c32a78e111a6ce
d25a728a4371538eae982f44ea811b5b93328828
refs/heads/master
2022-06-15T13:35:17.387252
2022-06-08T01:22:00
2022-06-08T01:22:00
72,103,182
12
32
null
2022-01-30T18:58:21
2016-10-27T11:50:43
R
UTF-8
Python
false
false
702
py
import numpy as np import matplotlib.pyplot as plt # np.random.seed(1234) #omega = 0.1, alpha = 0.15, beta = 0.8 n=1000 # number of observations n1=100 # drop first observations alpha=(0.1,0.3) # GARCH (1,1) coefficients alpha0 and alpha1 beta=0.8 errors=np.random.normal(0,1,n+n1) t=np.zeros(...
[ "noreply@github.com" ]
QuantLet.noreply@github.com
f9375213f5507d9c9536460cb0a4616660787502
ee410de6809032624f3b52023ba6efcae89aa5da
/shortable/shortable.py
f95e80f9568050d626a4849b375079a70272c22c
[ "MIT" ]
permissive
webclinic017/shortable
cda32c4022a9ef1a92c085d7fe6cac948e140124
4ace06b484bd24a356300a9d15a02a902c853c63
refs/heads/master
2023-08-22T14:28:52.908734
2021-09-22T03:08:34
2021-09-22T03:08:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,041
py
#!/usr/bin/env python import json import logging import argparse import textwrap import alpaca_trade_api as alpaca from winotify import Notification #API = alpaca #BROKER = alpaca class Shortable(): def __init__(self): self.old_short_status = dict() self.new_short_status = dic...
[ "rgomezjnr@gmail.com" ]
rgomezjnr@gmail.com
3c5be25c7266dbe9dc31662fbd3a7bed4a410f80
7a161c0ee14aeb9252243cb49ed05398b691d9f3
/subset sum python problem.py
214bc3c9e77cde345530264c4838bb477e777e99
[]
no_license
pavleen14/DSA-Practice
0a71d34a24635a9dc6714db95e2d71010fb5a70e
b5637e7b8512aa1f93841f372c7505152a156a29
refs/heads/main
2023-09-02T21:37:27.413673
2021-11-01T06:39:56
2021-11-01T06:39:56
415,584,545
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
def subsetsum(sset, n, s): if s == 0: return True if n == 0: return False if sset[n - 1] > s: return subsetsum(sset, n - 1, s) return subsetsum(sset, n - 1, s) or subsetsum(sset, n - 1, s - sset[n - 1]) sset = [13, 34, 65, 12, 43, 1] s = 77 n = len(sset) if subsetsum(sset, n, ...
[ "iampiyushthakur007@gmail.com" ]
iampiyushthakur007@gmail.com
e3ad3b767fbd0d6d7edf4729792f6b837616eec6
fea389d72e4e458c183ca40ab695d46bc5da5015
/OMG/source/conf.py
5fa8d544b7b569b693f643fdf2e2ce745b869795
[]
no_license
zhangdaoxun/ON-MY-GENE
dfae4f3f135215edb65f79ac6b11f5c7b7405bab
674819e65894de4ed283649dd9fce66596b73831
refs/heads/master
2020-05-02T12:56:12.902829
2019-06-06T13:45:16
2019-06-06T13:45:16
177,971,218
0
0
null
null
null
null
UTF-8
Python
false
false
5,225
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/master/config # -- Path setup ----------------------------------------------------...
[ "noreply@github.com" ]
zhangdaoxun.noreply@github.com
388430234a19c8d3bb7df514027066b68cf8fc68
3507fdc5012e55f6a784d70a7ad6da11224e5bfe
/caesar_cipher.py
2fa71c8cece652f7e97971c772561d702a65ad0c
[]
no_license
jonasthiel/100-days-of-code-python
640be865bdba10cca17ba72c4923cf9961ed570c
94ad366d10ed862c6c699ae1f242bd462f2ba597
refs/heads/main
2023-04-03T11:53:16.993098
2021-04-09T14:20:41
2021-04-09T14:20:41
330,404,825
0
0
null
null
null
null
UTF-8
Python
false
false
1,924
py
from os import system alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] logo = """ ,adPPYba, ,adPPYYba, ,adPPYba, ,adPPYba, ,adPPYYba, 8b,dPPYba, a8" "" "" `Y8 a8P_____88 I8[ "" "" `Y8 88P' "Y8 8b ,a...
[ "41738638+jonasthiel@users.noreply.github.com" ]
41738638+jonasthiel@users.noreply.github.com
a52172f6e1c94d9bfe28ca0fbf6d6d6a3854c70e
cf522d29d40c2e8a780165cff7302922db5e82a4
/jscribe/conf/pythontagsettings.py
9a3ca51ddb06a20fab093fb298f24e97b90f094c
[ "BSD-3-Clause" ]
permissive
mindbrave/jscribe
3bd8eec23fd9ae839795d1b5fbf603e72fa90362
4d524a9f60b35fefbfe65c60717abcb8bce259c9
refs/heads/master
2020-05-24T15:45:13.177447
2014-01-31T00:45:49
2014-01-31T00:45:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,052
py
# -*- coding: utf-8 -*- #!/usr/bin/env python """* Builtin tag settings for python projects. You can use them in project by setting TAG_SETTINGS to `jscribe.conf.pythontagsettings`, but I admit you to create your own tag settings. @module jscribe.conf.jstagsettings """ TAG_SETTINGS = { "base": { "parent_t...
[ "rafalluzynski@prosaur.com" ]
rafalluzynski@prosaur.com
137ca2c75fc5842bf99e607647a8c60484deb686
0f734b40fa25bdcff0d19c016fc7dcf11122c47a
/chapter_4/buffet.py
65a46b00d3d129b9fff1b3d1bff7f70e11109530
[]
no_license
ICANDIGITAL/crash_course_python
f47a0ce366736da1880aec08291867f491ac8bd3
d1598b0397b4b2cdc7acccf0b9153fa2b96688c8
refs/heads/master
2023-06-08T17:37:50.566342
2023-05-26T15:09:52
2023-05-26T15:09:52
120,501,326
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
simple_foods = ('fries', 'pizza', 'cake', 'pasta', 'mashed potatos') for food in simple_foods: print(food) simple_foods = ('candy','fries', 'pizza', 'cake', 'pasta', 'mashed potatos') for food in simple_foods: print(food)
[ "Christopher.Leader@Bison.Howard.Edu" ]
Christopher.Leader@Bison.Howard.Edu
835e19c6b6158e1f8e9361ee8be1dee8469c39e7
fc9774c15df5e3fda88fe82fd0c37f4ceabfcaa6
/XGBoost/XGBoost.py
71d6ac5568c8149baa01b952d036d5548a4fa254
[]
no_license
jacobkuriala/moviemania
600ff5cce5d383b459fa5dc1be2ea51289860acd
e17468732d5f5ce8d3c3cc6fb8c26c93e7291d71
refs/heads/master
2021-07-25T11:21:16.462369
2017-11-07T18:56:48
2017-11-07T18:56:48
109,197,864
0
0
null
null
null
null
UTF-8
Python
false
false
2,248
py
# importing libraries import numpy as np import matplotlib as plt import pandas as pd # importing the dataset dataset = pd.read_excel('Training Sheet.xlsx') # X starts from production_year and omits total X = dataset.iloc[:, 3:-2].values # delete the board_rating_reason as it creates too many categories X = np.delet...
[ "jacobkuriala@gmail.com" ]
jacobkuriala@gmail.com
de8d14698ac3155b4d8131221fd5a3ef273e0fbe
09608017cf183f96b4c6d942fef10b18c020f774
/scripts/kdtree_old.py
ab32c9ae41f1219c630d98a1f1a6fa65a5c86a03
[]
no_license
AmandaDoyle/BigDataTaxiFinalProject
fa2f173855b81fb1d82865e2a3b5021ba69a0f31
41101f5b8c380e81f7600f42a226d5c30ab10b52
refs/heads/master
2016-09-06T10:22:22.527352
2015-05-08T16:40:37
2015-05-08T16:40:37
33,154,325
1
0
null
null
null
null
UTF-8
Python
false
false
2,077
py
#!/usr/bin/python import sys import os import json import csv from scipy import spatial master = {} def loadRoadNetwork(fileLocation): f = open(fileLocation) reader = csv.reader(f, delimiter= ',') list_of_intersections = [] for l in reader: try: point = [float(l[1]), floa...
[ "ajkrukowski@Andreas-MBP.home" ]
ajkrukowski@Andreas-MBP.home
0d59d8d0b71b7c382e97d7b56015fbfbbafc69d8
0227dab8e222d908d02d54ad13ec88b7f1f9ac1f
/AUTOMATAPROYECT-master/Front.py
2d287391253e9ad5e29a2cb2152e4ae740d4d192
[]
no_license
OrlandoMR/Automatas
8c3a3e1fc3f45f6239a24ab2b03a5102b18a1a32
a1213bf3ca6b7803d0aa82ce52947a86d31e0eca
refs/heads/master
2021-10-25T10:01:25.564466
2019-04-03T19:47:59
2019-04-03T19:47:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
from tkinter import * import os #Interfaz gŕafica #root widget root = Tk() root.title("Titulo de la historia") root.resizable(False,False) root.configure(bg="black") #FirstFrame Creation myFrame = Frame(root,width=500, height=400) myFrame.pack() myFrame.config(width="650", height="350") myFrame.config(bd= 8,bg = "...
[ "noreply@github.com" ]
OrlandoMR.noreply@github.com
39802ef9bbb151ce9bc58a14a2eb6a04f2102cd3
89186f602196897d7fcbf4d1546b01316685e69a
/algorithem/expression_add_operation.py
386afe36c79030b8e768d03586049b6eb8237522
[]
no_license
xxpasswd/algorithms-and-data-structure
dfc25d0d4ac25ef7b138f6b1ad725c0832a0c2ee
1868e660fcee4017307c335df105e5d3028f4166
refs/heads/master
2022-01-18T12:58:00.042361
2019-07-17T08:13:19
2019-07-17T08:13:19
110,533,692
1
1
null
null
null
null
UTF-8
Python
false
false
1,334
py
''' 给定一组数字,给这组数字中,添加+,-,*,使最后表达式的结果等于特定值 解决思路: 使用递归遍历所有的情况 ''' def expression_add_operators(nums,target): out = [] helper(nums,target,0,0,0,'',out) return out def helper(nums,target,pos,pre,pre_num,path,out): ''' nums:候选数字 target:目标值 pos:下一个数字开始的索引 pre:前一次计算的值 pre_num:前一个数字 pa...
[ "1490621113@qq.com" ]
1490621113@qq.com
6bc8e6bda70fb29b075f4f3c8c40b9a6b2656fcf
9c6e63eb1796bbf4c37d93fca941fb67b4cd4741
/trunk/scarlett/app.py
7f7179015d2a9cefbdbe4557f2fd080029521298
[]
no_license
BGCX261/zizw-svn-to-git
ffc6636d8e0d91b24f124ba3d16c61af10d7441c
c8d068af7a36396ce707dc035b15330c77b02f2a
refs/heads/master
2016-09-05T13:11:22.053860
2015-08-25T15:51:45
2015-08-25T15:51:45
41,585,036
0
0
null
null
null
null
UTF-8
Python
false
false
4,466
py
import logging import webob import wsgiref.handlers import simplejson.encoder import simplejson.decoder from google.appengine.ext import db from google.appengine.api import users from scarlett import model from scarlett import utils jsonEncoder = simplejson.encoder.JSONEncoder() jsonDecoder = simplejson.d...
[ "you@example.com" ]
you@example.com
6779cf42ff406a6d5f99b51f95a9019573da268c
a79772a6da4b00c13ff36d2dd57a50ec6cc3cb08
/store/store/urls.py
5cf02fa9d72c1fb1efd93b07cc438e2bd85e8bef
[]
no_license
palzuncoff/CornelStore
edd9d5042446aed045ff0127daca934d92b1a904
63e221ee51d97f448ab69e58978caee1dbd25e11
refs/heads/master
2020-07-07T01:53:12.375940
2016-09-06T08:34:55
2016-09-06T08:34:55
67,118,732
0
0
null
null
null
null
UTF-8
Python
false
false
868
py
"""store URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/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-based...
[ "palzuncoff@yahoo.com" ]
palzuncoff@yahoo.com
f293b8d004bc0d456cf629a869be1a28ca086346
831a728160e36c452dfe2d84f4d610a13063bbbf
/venv/bin/easy_install-3.7
06a018f9d6f908ae8e2ac22c43b4bb37cb0f641e
[]
no_license
wrongserenity/economi
9102ac2a23e64b6170c48b983b58c0ce9096f19d
b6df63e28f19f2f88d78c6a80620f2f8b6327695
refs/heads/master
2022-11-03T23:32:31.663204
2022-10-29T12:00:20
2022-10-29T12:00:20
153,648,229
1
0
null
2018-12-13T19:16:35
2018-10-18T15:40:51
Python
UTF-8
Python
false
false
435
7
#!/home/nick/proj/economi/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar...
[ "e_n_k@list.ru" ]
e_n_k@list.ru
70425764af9a4af7b00d9a87514deba1e28c8fda
722af8e6fa81960a6119c2e45ba6795771bad595
/agents/migrations/0043_veri.py
a9fbb71d81b2b140fcb68e8c4a02de3f0a744641
[]
no_license
witty-technologies-empowerment/pmc
85d21fa3c360d40adeec7ca93792b5bc68c258e5
201bee60197240eec911637e136cf14bc5814eec
refs/heads/master
2023-05-27T12:37:48.894933
2021-06-13T04:34:57
2021-06-13T04:34:57
376,439,472
0
0
null
null
null
null
UTF-8
Python
false
false
790
py
# Generated by Django 2.2.6 on 2020-02-04 15:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('agents', '0042_auto_20191022_0303'), ] operations = [ migrations.CreateModel( name='Veri', fields=[ ...
[ "www.spbiology@gmail.com" ]
www.spbiology@gmail.com
d7f8ed59ac3b21468f0ededb25e03a9e01e8d86f
760707dab4c6496bc578dc84a58ec7b84058ab78
/manage.py
4a533795180784eaa422ace96a07f199fa8783c0
[]
no_license
gflexx/zoohubmall
e0b947ec459f4b5e44db1216da256561f5678021
1eb6ec228d55c8caefd4f03f601729f295aae41d
refs/heads/main
2023-04-14T06:34:43.756173
2021-04-20T08:35:07
2021-04-20T08:35:07
358,905,388
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'zoohubmall.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
[ "glennenri24@gmail.com" ]
glennenri24@gmail.com
30cad6e1da61289d5c07870ba55492bb0edeb0f9
8aa78783dbb8c5a91b81b41d37ecf8bbd0804354
/bld/blenderbpy/2.79/scripts/addons/ant_landscape/__init__.py
0e10b8b407ffddcd4714e750e538acd39ac60319
[]
no_license
priyesh16/food
e08c0307c7feba27285724e9766fb0f33223fb14
18ae58d7f796309e54b76db9a3757207f288b0aa
refs/heads/master
2021-01-09T11:26:22.489059
2020-03-10T23:17:56
2020-03-10T23:17:56
242,281,395
0
0
null
null
null
null
UTF-8
Python
false
false
32,182
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ "priyesh16@gmail.com" ]
priyesh16@gmail.com
a8e4ef9b084180f0b52f64f6f6095abcc3c4c3d1
05fdaa1d1762399ce4d2fe04c3427e5ecf0e6588
/ch10.statement/demo.py
55af869bfb1b0c80af45197a337a3ced4edb0fd0
[]
no_license
redice/learning
598398802779a5f0e5b9ab2f47667f87d8850d55
1240bb6b8d709055236f3d9eb0ad247d1aa182aa
refs/heads/master
2020-06-02T15:18:14.418812
2013-01-05T10:16:46
2013-01-05T10:16:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,674
py
import os,sys class MyDemo: def callWhile(self): while True: reply = input('Enter text:') if reply == 'stop': break elif not reply.isdigit(): print('Bad!' * 8) else: print(int(reply) ** 2) print('Bye') def callTryExcept(self): while True: reply = i...
[ "redice.chang@gmail.com" ]
redice.chang@gmail.com
7bdc11d833a29499705912fbb4eccbaa8d5f88ac
9c26ada7c171936d736b5a90a95e1a1d0258a7b5
/bot/commands/help.py
67ecd73044cbb93c9b726c248de4fc17bc22903d
[ "CC0-1.0", "GPL-1.0-or-later", "MIT" ]
permissive
vampboy1234/PomoBot
cc076d23724e1042a6a3a041d23bc22c71c9328c
5df0cfeda80f2aac2e921073a28b7dbef33f4859
refs/heads/master
2022-06-02T19:40:35.425774
2020-04-20T14:07:31
2020-04-20T14:07:31
257,314,721
0
0
MIT
2020-04-20T14:56:25
2020-04-20T14:56:24
null
UTF-8
Python
false
false
5,837
py
import discord from cmdClient import cmd from utils.lib import prop_tabulate from utils import interactive # noqa # Set the command groups to appear in the help help_groups = [ ("Timer", "*View and interact with the guild group timers.*"), ("Registry", "*Timer leaderboard and session history.*"), ("Con...
[ "cona@thewisewolf.dev" ]
cona@thewisewolf.dev
4eb51b17bb570e99d31b10c14927845d7a16bff8
48a22539cc273ebb1d4575ecc40566337a2c1c53
/tests/functions/test_train_model.py
6580cbd7f6aa173c717f65c26155f19e736a7976
[ "BSD-3-Clause" ]
permissive
ChenchenFat/LIBiFBTSVM
50d88f4d2f8133672fe6831422f1e4bc0b0b798a
b1f8c346cdd79a6057a664255daabe2aa9c50ad7
refs/heads/master
2023-08-20T18:58:55.117122
2021-10-26T19:59:08
2021-10-26T19:59:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
import numpy as np import pytest from libifbtsvm.functions import train_model from libifbtsvm.models.ifbtsvm import Hyperparameters def test_train_model(): H_p = np.ones((5, 5)) H_n = np.ones((5, 5)) CCx = np.ones((5, 1)) C = 2 _mock_params = Hyperparameters() _mock_params.max_iter = 1 ...
[ "ritchie.karl@gmail.com" ]
ritchie.karl@gmail.com
04080caf6c97351c69962daea7956dae2c3f7675
c5c09eb267adca77a0e4cc0fc07f31564353f23d
/heterozygosity/effective_n_alleles.py
964aba8d88bc5d8db30ceabfa12648d3ca272b0e
[]
no_license
redcurry/sgv_scripts
da31d85554bdf705d35fa53c1b444128fbdd1ccd
bed81a70b4c2902b49a439a2451a1303c4feaf93
refs/heads/master
2020-12-24T13:45:05.457886
2013-01-23T09:14:40
2013-01-23T09:14:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,080
py
# Outputs the effective number of allele at every locus of the given population from __future__ import division import sys def calc_allele_freqs(pop, locus): allele_freqs = {} for inst in alphabet: allele_freqs[inst] = 0 for genotype in pop: inst = genotype[locus] allele_freqs[inst] += 1 # C...
[ "carlosja@msu.edu" ]
carlosja@msu.edu
6b89a26de0e8969a9ee0367e605d705f6c3df52f
c96199d8b0502fb590094d99b58df4aecadff932
/src/rysia/utils/monitor.py
773b97c1268666dc368fdb06535b3070eb4775a2
[ "Apache-2.0" ]
permissive
vdeuschle/rysia
1f8c6e8e6305d7c444107bbe5045f05f7e90ca22
c8c5adc2c770424b3a328a936f23a80a38c9f0f2
refs/heads/master
2020-06-26T01:37:59.823644
2019-08-25T23:12:30
2019-09-08T16:53:12
199,485,229
2
0
null
null
null
null
UTF-8
Python
false
false
5,647
py
# Copyright 2018 Vincent Deuschle. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license" file accompanyin...
[ "deuscv@amazon.com" ]
deuscv@amazon.com
ad890fdf5086260c3c073c0dee7db830b7db3d9a
d33bd7e0c2cd91226d3dc7c3d927a52b8dbc05fd
/tiny_data/lip3x3_tiny/utils.py
a5f41725c9023fb3c1334631a8da4d29a58eb2e8
[ "Apache-2.0" ]
permissive
gamedx/tiny_lips
80d7963abd9b8455aedcc342562f7ff55f6c501b
c15e1d152369ea69715313f6b6802ed05eab2b65
refs/heads/master
2020-06-29T17:59:25.717198
2019-08-05T07:57:03
2019-08-05T07:57:03
200,585,475
0
0
null
null
null
null
UTF-8
Python
false
false
3,914
py
import os import scipy import numpy as np import tensorflow as tf os.environ["CUDA_VISIBLE_DEVICES"]="0" os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' def load_mnist(batch_size, is_training=True): path = os.path.join('data', 'mnist') if is_training: fd = open(os.path.join(path, 'train-images-i...
[ "noreply@github.com" ]
gamedx.noreply@github.com
43a37eb509684f7705f8cb48e4017f6a8127ebdf
5d79a0f01ad7fa0ff0c745aa534b9c17e2af7f60
/src/authentication/mailchimp/http.py
07ea72e13336f8b7630c8caacab4b2a82be79aaa
[ "MIT" ]
permissive
pykulytsky/freelance-service
ade7b009aa183ce198277bec1178dcf15dadd3e3
0f6e36093128ae3e63bd7dcf21959882eae7e683
refs/heads/master
2023-07-03T16:58:07.838904
2021-04-01T20:20:21
2021-04-01T20:20:21
329,963,217
0
1
MIT
2021-08-02T07:40:11
2021-01-15T16:21:17
Python
UTF-8
Python
false
false
1,936
py
from typing import Optional from urllib.parse import urljoin import requests from django.conf import settings from requests.auth import HTTPBasicAuth class MailchimpHTTPException(BaseException): pass class MailChimpWrongResponse(MailchimpHTTPException): pass class MailChimpNotFound(Mailch...
[ "pykulytsky@gmail.com" ]
pykulytsky@gmail.com
b27fe17a593da8baccb2ea99aa6446531120b19a
040ada107d1eab018dcfd464d9b7b2ee554fc801
/5. Exceptions & Files/BookTitles.py
f7fe5a7d0d595df07334e437c6c763e70eeb17de
[]
no_license
RiKjess/SololearnPY
2e3248d08bd84c3dd2843d41329958c5ee233d8c
22c5af5f33b129658760d2f0edac02855d788d1b
refs/heads/master
2023-08-14T14:11:42.900865
2021-09-27T08:10:48
2021-09-27T08:10:48
410,799,336
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
""" Book Titles You have been asked to make a special book categorization program, which assigns each book a special code based on its title. The code is equal to the first letter of the book, followed by the number of characters in the title. For example, for the book "Harry Potter", the code would be: H12, as it co...
[ "rikjessus@gmail.com" ]
rikjessus@gmail.com
9e4ad41b6887c4346466c3663aea990a64d2eca2
b0938f37ccaa7bdc363ef2bce03c172e521682d4
/Test_PR_curve.py
7ed9a83eaf41a0e65f3e9393f9d6679ae6b762a3
[]
no_license
neuhzhj2012/python-scripts
1c40ae8c2a1c75398723ee62c62ebc1f48b7136b
75050c0fa73e619f8823046d380cb15ba121d62b
refs/heads/master
2021-06-12T20:17:03.258332
2021-04-14T09:50:57
2021-04-14T09:50:57
180,062,098
2
1
null
null
null
null
UTF-8
Python
false
false
3,189
py
#encoding: utf-8 ''' 类别的准确率和召回率曲线 文件内容 name label score ''' import argparse import numpy as np from sklearn.metrics import precision_recall_curve from sklearn.metrics import average_precision_score import matplotlib.pyplot as plt def draw(y_true, y_scores): ''' :param y_true: N*classes,N表示样本数,classes表示类别数,每行数...
[ "huangzhongjie@soulapp.cn" ]
huangzhongjie@soulapp.cn
4eaeed1619b3dcb639ee308019b90729a7124038
bfc1b107b2ce8c664b17be7d96b93bf69aaa8665
/lab_10_zadania/07.py
aea5b665b965041edf2d9d5e29141733e6f9acc7
[]
no_license
bulwan/wizualizacja_danych
db16c97da765646a71a8a794030f8014022cbc19
e305914105f42d22d42deb4e10a09b181534254f
refs/heads/main
2023-05-01T07:16:23.954859
2021-05-26T11:59:18
2021-05-26T11:59:18
346,389,677
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt plik = pd.ExcelFile('imiona.xlsx') imiona = pd.read_excel(plik,'Arkusz1') kobiet=imiona[(imiona.Plec=='K')] chlopcy=imiona[(imiona.Plec=='M')] wynik_dziewczynki = kobiet.groupby(['Rok']).sum() wynik_chlopcy = chlopcy.groupby(['Rok']).sum...
[ "noreply@github.com" ]
bulwan.noreply@github.com
8a346a070eb4fa6939626f69eac6f9953b60dce0
5f792140b853f40e3c7be559c2a412d7b8296c96
/2015/day1/day1.py
11aaf8407b8800fe4172610f6f795fd3122349e8
[ "Unlicense" ]
permissive
winny-/aoc
9d53666faf341f1cc2016a3d21e93d7f4064a72b
f986cacf14d81d220030bca94e99ec8179861e1b
refs/heads/master
2022-12-05T00:19:47.570034
2022-12-04T09:55:11
2022-12-04T09:55:11
225,185,486
7
0
null
null
null
null
UTF-8
Python
false
false
210
py
import sys MAP = { '(': 1, ')': -1, } def calculate_floor(s): return sum(MAP.get(c, 0) for c in s) def main(): print(calculate_floor(sys.stdin.read())) if __name__ == '__main__': main()
[ "winston@ml1.net" ]
winston@ml1.net
104d203a342e3451de87019b3f772f1417367208
980a90caca1524f717c1d27aa489a094334614da
/2019-01 code.py
11f18521ae9460f1053fdcca78f049acf28d236f
[]
no_license
tagoria/AdventOfCode2019
00fa03fa558f17a2bd3bb8650dcedff346902c01
41124e4f9604999ca6fa57bf2cc91ebc5e448e05
refs/heads/master
2023-04-10T01:17:00.152895
2021-04-17T11:26:57
2021-04-17T11:26:57
358,859,396
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
import string import fileinput import os import sys def part1() : currentFile = __file__ spacePosition = currentFile.find(" ") inputPath = currentFile[0:spacePosition] + " input.txt" fuelNeeded = 0 with open(inputPath, "r") as puzzleInput: for line in puzzleInput: massNeeded = ...
[ "vlivl@hotmail.fr" ]
vlivl@hotmail.fr
def97356d610be85276a7f7aff23c352f8e67a64
a37046fd0a42329967b735119e4fe16401b7e7fc
/nailezhuang/milk/MilkCommon.py
cb64759c37d2f15ad0bbf17b05aa1d75bd2fdad7
[]
no_license
dengruquan/nailezhuang
06aad63fdd83bd48c26c1aadaa52b5306a5a3fae
c799a92359724459583a389a31c52f75a45229b7
refs/heads/master
2021-05-07T06:59:21.738914
2017-11-27T02:51:54
2017-11-27T02:51:54
111,784,595
2
0
null
2017-11-27T03:25:05
2017-11-23T08:41:46
Python
UTF-8
Python
false
false
6,474
py
#-*- coding:utf8 -*- import datetime import sqlite3 from .models import FoodType, VIPInfo time_format = "%Y-%m-%d %H:%M:%S" statype_dict = {0:"每次喝奶数量", 1: "总共喝奶数量"} dbname = "db.sqlite3" sel_sql = "select foodname, sum(foodcnt), sum(foodmoney) from milk_foodrecord as fr join milk_foodtype as ft where fr.foodtype_id = ...
[ "2335161881@qq.com" ]
2335161881@qq.com
2e0aeb4b8cd540d392f6e5256c8fc9f78b3b1f04
0144353f5d129c0d95f96c717c9aee71d26ca153
/app_mysql.py
3e5c0f5eea15619e2f75aef0c838311ca947c354
[]
no_license
rafat2427/IDP
4b44239f3cb6b52d11baf47c97b49aa38ec7e5b5
16c02be0244cbf32e7d94363e3af40d3c447311d
refs/heads/main
2023-02-16T17:53:11.009820
2021-01-20T20:04:10
2021-01-20T20:04:10
331,417,628
0
0
null
null
null
null
UTF-8
Python
false
false
3,252
py
from flask import Flask, render_template, url_for, request, redirect from flask_mysqldb import MySQL import pandas as pd import numpy as np import os.path # import yaml app = Flask(__name__) # Configure db # db = yaml.load(open('db.yaml')) # app.config['MYSQL_HOST'] = db['mysql_host'] # app.config['MYSQ...
[ "noreply@github.com" ]
rafat2427.noreply@github.com
5ec94889a27094587c60ea1c2c2cce07b38e8860
0f43b7cfd605ee6be9ea563023835e0b4aa37226
/survey-env/bin/pip3.7
3c23b1d64f8241cd424519d772222c119e0fe202
[]
no_license
filipvandyck/survey_proj
b7ab78b41645db9cc45f9d52fb61b1aee046a76e
198cb412553cb2e352d65cc5df831017211f785e
refs/heads/master
2023-01-11T17:33:00.435334
2020-10-25T19:46:32
2020-10-25T19:46:32
262,762,370
0
0
null
null
null
null
UTF-8
Python
false
false
260
7
#!/home/filip/Python/survey_proj/survey-env/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from pip._internal.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "earthstrikesback@gmail.com" ]
earthstrikesback@gmail.com
d1b3168fa1a02ae0a1f8d21fb8cfd7e4a2da5d51
bbdf70d28a5df9e337522ecdfcf04a470f6d2675
/01_LED_Blink.py
8a6e0ded30d32b0c27944a9fd0000ad9790ae8cf
[]
no_license
ankurm97/blink-py
376c7e8eec38fe5cac5454802563966e8778b451
75bd31cbb0ad933a6790a7dc4fcfbe79ed6042a3
refs/heads/master
2022-11-14T11:52:04.585283
2020-07-08T07:38:21
2020-07-08T07:38:21
278,022,134
1
0
null
null
null
null
UTF-8
Python
false
false
327
py
# sudo apt-get install python3-rpi.gpio import RPi.GPIO as GPIO from time import sleep GPIO.setwarnings(False) # Ignore Warnings GPIO.setmode(GPIO.BOARD) # Use Physical Pin Numbering GPIO.setup(8, GPIO.OUT, initial=GPIO.LOW) while True: GPIO.output(8, GPIO.HIGH) sleep(1) GPIO.output(8, GPIO.LOW) sl...
[ "noreply@github.com" ]
ankurm97.noreply@github.com
9943c20ed3a8ba5c8ddafb0759bb6a02bc89fb81
504d9b35e2265e2463a82511fd567d4c553c7a04
/libvirt_qemu_map
5c6013a3ba553b9ad149e9513a228a8bffc2df5b
[]
no_license
qiankehan/libvirt_qemu_api_map
36a87bff5eb4dfafd98933ca6f143d1f67b4c1e7
c73a3c78d075bff84b449c14ec8759ce4b3f0dd3
refs/heads/master
2020-06-14T11:50:06.592783
2019-07-03T07:10:49
2019-07-03T07:10:49
194,997,268
0
0
null
null
null
null
UTF-8
Python
false
false
4,558
#!/usr/bin/python3 import subprocess as sp import argparse import os import sys import csv import tempfile def rm_empty_str(objs): return {i for i in objs if i != ''} class LibvirtQemu: def __init__(self, src, mode): if mode not in {'qmp', 'ga'}: raise TypeError('mode should be "qmp" or "...
[ "hhan@redhat.com" ]
hhan@redhat.com
ceb0c0134cb3480fdab988077750fcef69ee298d
f8ea3582884df87172cb747e424ebd0c20223614
/(sandbox,tobemerged)/setup.py
bfdf53b7357b1a52aaad77a7986bc61cc1b5ddd9
[ "MIT" ]
permissive
karimbahgat/PythonGis
94f52f800a769ee54b12c7277604ead011465321
fb99148a15bcbe0438ddca67b484a15076bd961a
refs/heads/master
2023-04-12T15:59:08.522464
2022-09-09T22:48:32
2022-09-09T22:48:32
47,153,255
5
1
null
null
null
null
UTF-8
Python
false
false
1,260
py
############ ### allow building the exe by simply running this script import sys sys.argv.append("py2exe") ############ ### imports from distutils.core import setup import py2exe ########### ### options WINDOWS = [{"script": "guitester.py", "icon_resources": [(1,"pythongis/app/logo.ico")] }] OPTIONS = {"s...
[ "Karim.bahgat.norway@gmail.com" ]
Karim.bahgat.norway@gmail.com
c7040497fddc70804c791aa8caffd6ee49621d0d
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_2/hbbirf001/question3.py
86f1543deb5d0d08303893c1de5d53fe0d63e38e
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
import math pi =2 denom = math.sqrt(2) while denom != 2: pi = pi*2/denom denom = math.sqrt(2+denom) print('Approximation of pi:',round(pi,3),sep=' ') radius = eval(input('Enter the radius:\n')) area = pi*radius**2 print('Area:', round(area,3))
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
ad232b4ee33908d60b0a9a445eccd44352cff4f9
4d4ef69dc8a0237973dde5ce0768cf21f043f717
/Download image automatically.py
674716ea927e334672127be0abeb83a8f0c5c51f
[]
no_license
zh-cse18/Selenium_Webdriver_Operation
b3b02adb4762e5b2c61e05d9211e3d90725fae42
dd001057d84aae0fbaed062fea4725e0e3bea2cc
refs/heads/master
2023-07-20T08:13:07.690387
2023-07-10T09:59:59
2023-07-10T09:59:59
230,744,441
4
0
null
null
null
null
UTF-8
Python
false
false
2,463
py
import os import json import requests # to sent GET requests from bs4 import BeautifulSoup # to parse HTML # user can input a topic and a number # download first n images from google image search GOOGLE_IMAGE = \ 'https://www.google.com/search?site=&tbm=isch&source=hp&biw=1873&bih=990&' # The User-A...
[ "noreply@github.com" ]
zh-cse18.noreply@github.com
cbd2dcecce030b1b1ca054de015715d1db5327d7
79eec9f4b1dac6c085dd3783854b98d0c6c9769c
/dataset_tools/xml_writer_complementary.py
6985d879017031359f32e16a00c3f5dc5402cd55
[ "MIT" ]
permissive
hangwudy/Mask_RCNN
c9b5efa0307a73dd5178988981f67762eab5ae36
8b5d896076b994e2f9136054114c551a8cb3119f
refs/heads/master
2020-04-03T11:42:41.924893
2019-08-06T16:53:42
2019-08-06T16:53:42
142,773,778
0
0
null
null
null
null
UTF-8
Python
false
false
5,283
py
# coding: utf-8 # created by Hang Wu on 2018.10.07 # feedback: h.wu@tum.de from lxml.etree import Element, SubElement, tostring import pprint from xml.dom.minidom import parseString import cv2 from numpy import random import os # Eigen import image_overlay import load_image import generate_dict def...
[ "hang.wu@yahoo.com" ]
hang.wu@yahoo.com
e51e15c2b6fcf05be02199a5d7b23019c613d8c6
52f2581585f5529b53d352ea4e0e1db986a17f7f
/AutoTest/public/Login_c.py
022bab2c565f3cc0020da9f3c9dbb8e06837704e
[]
no_license
BaoYong-1/PyTesting1
253fda9d95435244ff79e37b16a62ba215637d3f
9a8c4c02b3f592e48d93f98038be7e7f1bd63def
refs/heads/master
2020-03-19T11:23:03.106788
2018-08-31T07:30:54
2018-08-31T07:30:54
136,452,033
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
# coding=utf-8 import time from selenium.webdriver.support import expected_conditions as EC from selenium import webdriver from GetVerifyCode import get_code import os os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8' # 设置中文 def is_element_visible(self, element): driver = self.driver try: the_e...
[ "534138762@qq.com" ]
534138762@qq.com
14e9d08e4c3d5917584fcfa34b8694b98266d25e
5fbdb2fdf9544739ea5f4b72b835cb201b73ab39
/app/main/views.py
a40898b4cf27fc1ecfd8df435912b4a2f64c2c68
[]
no_license
nakuls003/flasky-app
add3bebe46c79ddc7d59b5b45a10c7ade444db5d
97fd011dacf898070f2da597bb92577c476ac136
refs/heads/master
2020-04-14T01:27:19.513032
2019-01-01T06:26:00
2019-01-01T06:26:00
163,560,634
0
0
null
null
null
null
UTF-8
Python
false
false
11,237
py
from flask import render_template, flash, redirect, url_for, request, current_app, abort, make_response from . import main from flask_login import login_required, current_user from ..decorators import admin_required from ..models import User, Role, Permission, Post, Comment from .forms import EditProfileForm, EditProfi...
[ "nakuls003@gmail.com" ]
nakuls003@gmail.com
049898e55896a5847ebcd12bfad533a56380fa13
63393a9f049587cc6825ddc905aa07244926e874
/main.py
7879ba20d5951ca35fbedc07e2c76ad674ff6777
[]
no_license
sbzhu/designpattern
fa62e9e3321048ee220f1ee9c63af9f1bdd89d77
aeafb2850923a7f1ed31957130fe7857e0fc5b19
refs/heads/master
2020-12-25T04:08:39.039958
2016-04-23T07:48:24
2016-04-23T07:48:24
56,907,165
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
#!/usr/bin/env python if __name__ == '__main__': # op = raw_input('Operator : ') # op1 = input('a : ') # op2 = input('b : ') try: print 'Hello' except: print 'Wrong expression'
[ "sbzhu@ipp.cas.cn" ]
sbzhu@ipp.cas.cn
6b95c17b989818943a654bbc1f3ab4b6f493aa2e
899bb004ecc5df96b36d95e11705b9bb8d4f48a3
/balloonproptest.py
793a394296014d1d9031e01802bfe8cca34044e5
[]
no_license
CamronAlexanderHirst/drifter-project
a09aaa49579c5be7a9ab2868688df2ce142b8f3f
2e266067863538627b0c5d5f5a87e09b5fedf562
refs/heads/master
2021-06-30T23:51:52.786046
2020-10-21T18:42:07
2020-10-21T18:42:07
174,581,113
0
0
null
2019-05-01T22:52:54
2019-03-08T17:33:20
Python
UTF-8
Python
false
false
1,900
py
#!/usr/bin/env python3 '''Used to test out balloon prop Author: Alex Hirst ''' from src import wind_field from src import gen_random_field from src import visualizer import clear_folder import numpy as np import time as t import random random.seed(11) # Generate a nxm field n = 10 # cell height of field (y) m = 15 ...
[ "camron.hirst@colorado.edu" ]
camron.hirst@colorado.edu
57e50197193509c44c617169693c5d944c8f76f3
393ccacef32461f5d7f4b21419a7c695df9c62a7
/lpo/sp/fmail/fmail.admin/datas/postcodes/81.cgi
713794904723a1b6c22d73975a7aabfd7c129bf5
[]
no_license
emoshu-yuta-okuma/nakagawa-dent-hp
ebc6c66efc624a256f0d7e30c2e26b9aae162cd7
e83e8c7060881b7267f90ca3f2c599d614a219a1
refs/heads/master
2023-01-14T12:39:19.874341
2020-11-12T06:33:00
2020-11-12T06:33:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
160,735
cgi
40131,813,8130000,フクオカケン,フクオカシヒガシク,イカニケイサイガナイバアイ,福岡県,福岡市東区,以下に掲載がない場合,0,0,0,0,0,0 40131,813,8130025,フクオカケン,フクオカシヒガシク,アオバ,福岡県,福岡市東区,青葉,0,0,1,0,0,0 40131,81103,8110322,フクオカケン,フクオカシヒガシク,オオタケ,福岡県,福岡市東区,大岳,0,0,1,0,0,0 40131,812,8120052,フクオカケン,フクオカシヒガシク,カイヅカダンチ,福岡県,福岡市東区,貝塚団地,0,0,0,0,0,0 40131,813,8130011,フクオカケン,フクオ...
[ "y.dream.nest@icloud.com" ]
y.dream.nest@icloud.com
e21b32b6008b4c1156c4093df442d9254ff1ec55
5020abc0f35d0da7b7ba43e50bc017c4d5ca9bcd
/learn-from-liao/task_master.py
30f9999589add76043fac223ce7318310f50f740
[]
no_license
chick-tiger/python-module-learning
7795291ec8a11b6a149191f97b4d7856609665a7
80d560bd22c7e85b2a2502113515f21a17512a3c
refs/heads/master
2021-07-14T21:56:04.306101
2017-10-20T09:40:53
2017-10-20T09:40:53
104,312,051
0
1
null
null
null
null
UTF-8
Python
false
false
715
py
import random, time, queue from multiprocessing.managers import BaseManager task_queue = queue.Queue() result_queue = queue.Queue() class QueueManager(BaseManager): pass QueueManager.register('get_task_queue', callable=lambda:task_queue) QueueManager.register('get_result_queue', callable=lambda:result_queue) ma...
[ "cjliu@blizzard.com" ]
cjliu@blizzard.com
ad8780f4445385ddc1e4194084b8981b92085a96
fc557b9e46ee32e08860c58b29139ea377d62a16
/robot_controller.py
a3529bb9dbc39c2451c4cb6e3ec4d18305d7407e
[]
no_license
CharmFlex-98/Quadruped_robot
91e3fdb837b44377640c99d4883759530d9437cd
ebe56e83a8a07b4a74f84e4f95e3fe852be9114e
refs/heads/main
2023-07-08T23:15:22.685269
2021-08-20T02:48:22
2021-08-20T02:48:22
398,134,223
1
0
null
null
null
null
UTF-8
Python
false
false
7,643
py
from __future__ import division import time import Adafruit_PCA9685 import pygame import numpy as np from inverse_kinematics import * from math import * class robot: def __init__(self, width=640, height=480): self.pwm = Adafruit_PCA9685.PCA9685() self.pwm.set_pwm_freq(60) self.direction={1...
[ "noreply@github.com" ]
CharmFlex-98.noreply@github.com
7c2820d6f5a8d4bf54d25dcbf7735c173f8122c3
e303bf4fb1d1c6ba482788a142ce3f3f5ced9702
/python_5_lesson_hw.py
4aeb536f640a8ff6c3b54d8dc601096e06b21f0f
[]
no_license
isthatjoke/projects
0d109c7f25aefb1c8e0c9d513807510ea51f5b8c
fa51cec43d6fd7b39ae9dbf4e40eca1033770782
refs/heads/master
2021-01-05T23:15:27.650953
2020-12-01T16:12:00
2020-12-01T16:12:00
241,164,290
1
0
null
2020-12-01T16:12:01
2020-02-17T17:12:37
Python
UTF-8
Python
false
false
6,927
py
# 1. Создать программно файл в текстовом формате, записать в него построчно данные, # вводимые пользователем. Об окончании ввода данных свидетельствует пустая строка. while True: user_input = input("enter your text ") if user_input == "": break my_file = open("new_file.txt", "a", encoding="utf-8")...
[ "noreply@github.com" ]
isthatjoke.noreply@github.com
d09f267b12df0380d0b55ee7ff1d47fd0d49c160
ed5b7eab164bf434e500e38a946fc902ee7eac47
/nlp_pytorch/chapter8/main.py
1ea8ba0c5f33c97ac1a6d2881e8883968b48c07c
[]
no_license
happybear1234/machine-learning
54269397cb02932368dbfcebb1fdf6cb2829d9e0
675ff6753771e2167c2a5179b1ffe49a918e478d
refs/heads/master
2022-02-27T21:45:50.401754
2019-07-15T09:21:04
2019-07-15T09:21:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,207
py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: main Description : Author : haxu date: 2019/4/14 ------------------------------------------------- Change Activity: 2019/4/14: ------------------------------------------------- "...
[ "noreply@github.com" ]
happybear1234.noreply@github.com
6635fd14f1af6c49980003fc31b60603e13ea0a4
3cb8220aaf53ab07fddd3706af4524d94f5eeaad
/userproj/users/urls.py
ded0461b2885c25d46c0241e5458865911412a57
[]
no_license
guguponce/userproject
5741092923d1558ad93cc16813640d5e4db117bd
7596192bd96dbd76587493d354015d7c620c7944
refs/heads/main
2023-03-30T21:19:17.709465
2021-04-07T10:33:34
2021-04-07T10:33:34
355,480,457
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
from django.conf.urls import url from users import views app_name = 'users' urlpatterns = [ url(r'^$', views.users, name='users'), # url(r'^forms/',views.formulario, name='forms') ]
[ "guguponce91@gmail.com" ]
guguponce91@gmail.com
d519581682c5b4acb68ab1878e3cda3a7b8c4ddd
5e2655fb23e558c54695dea5c9456b5552570947
/localdev/seed/management/commands/seed_data.py
f42ad2be00ea5d9f4f5111900de0d82b66bf4e16
[ "BSD-3-Clause" ]
permissive
mitodl/bootcamp-ecommerce
992cb23243462d82c75cfae6c115a27728491219
339c67b84b661a37ffe32580da72383d95666c5c
refs/heads/master
2023-08-31T10:45:57.827990
2023-07-25T13:55:32
2023-07-25T13:55:32
82,849,185
6
3
BSD-3-Clause
2023-08-24T20:25:47
2017-02-22T20:27:24
Python
UTF-8
Python
false
false
709
py
"""Management command to create or update seed data""" from django.core.management.base import BaseCommand from localdev.seed.api import create_seed_data from localdev.seed.utils import get_raw_seed_data_from_file class Command(BaseCommand): """Creates or updates seed data based on a raw seed data file""" h...
[ "noreply@github.com" ]
mitodl.noreply@github.com
70deb99eb2fe58fe8366b806aeff04fe4948a09f
86019cfe5500aa3bd93c6cf393d6de197ff824ef
/Sai_Vinay.py
d7ac0dd4e0e205ff28f7ab792672dd6e19c8c491
[]
no_license
rohithavarada/Member-Submissions
8039de18ca8e1ae5fb3800935c6c6beca504154f
9784d76654eb6192c36dd89035c4d9a629e1d27b
refs/heads/master
2020-03-27T16:10:25.438340
2018-08-30T14:54:53
2018-08-30T14:54:53
146,763,830
0
0
null
2018-08-30T14:42:16
2018-08-30T14:42:16
null
UTF-8
Python
false
false
89
py
# This is for testing printf("Hello World"); import string print(string.ascii_lowercase)
[ "noreply@github.com" ]
rohithavarada.noreply@github.com
67e3cc9231dfce6022f55788dfa686fe85569fad
cb013bac45f2e191a1fe6fbe1a4d5bb69651fbe9
/week03/classContent/thread/p10_timer.py
65d98a0ecc181a4f7b45d897b63c0ac8970d0eed
[]
no_license
hjzheng/Python001-class01
a4529f775c1de0fe2ab6a6bc865328c1b9216df7
a261a5bf4ca475bd20637a5377366eab409f5499
refs/heads/master
2022-11-19T11:09:59.347491
2020-07-13T09:51:25
2020-07-13T09:51:25
274,433,709
1
0
null
2020-06-23T14:53:44
2020-06-23T14:53:44
null
UTF-8
Python
false
false
170
py
# 定时器: 指定n秒后执行 from threading import Timer def hello(): print("hello, world") t = Timer(1, hello) # 表示1秒后执行hello函数 t.start()
[ "hjzheng@yuansuan.cn" ]
hjzheng@yuansuan.cn
8e590b6e190dead90a8370392f6dac800e826486
0a848b5b2ea31a7e2e997f27b13f363530df78d1
/backend/cart/migrations/0009_auto_20210928_1845.py
2b07b02da6e2d6fba28a5e641d9d8b827230cdee
[]
no_license
PhanVanThanh-hub/React-Django-Ecommerce
a88e4c0747a9a3d6179d45c60641595221fe701c
00946075486495676595fe0a17dcdd0799756d4b
refs/heads/main
2023-08-13T19:24:40.492000
2021-09-30T13:05:03
2021-09-30T13:05:03
412,066,886
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
# Generated by Django 3.2.6 on 2021-09-28 11:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cart', '0008_alter_orderitem_date_added'), ] operations = [ migrations.AlterField( model_name='order', ...
[ "thanhphan1230@gmail.com" ]
thanhphan1230@gmail.com
22256ba682801c86d92e53c516104a2ac18db1fd
b27b26462524984951bfbab9250abd145ecfd4c8
/Demoing/stage_two/bloomingtonnormal/craigslist_sample/craigslist_sample/spiders/craigslist_spider.py
9ccd525099e5b2802a2344337a1293d1d28242f0
[]
no_license
afcarl/fastTraffickingGrab
cb813d066f1f69f359598e0b55e632dafd273c89
9ff274cb7c9b6c7b60d1436c209b2bfc5907267d
refs/heads/master
2020-03-26T06:21:21.404931
2014-08-16T12:38:29
2014-08-16T12:38:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,042
py
from scrapy.contrib.spiders import CrawlSpider, Rule from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.selector import HtmlXPathSelector from craigslist_sample.items import CraigslistSampleItem class CraigslistSpider(CrawlSpider): name = "craigslist" allowed_domains = ["craigslist....
[ "ericschles@gmail.com" ]
ericschles@gmail.com
8d1e0879923a18a294c104bbdfeb17dc5fd8e53f
ed63c99ccb0beebcfe9bff2ef68e9c86877fa7d8
/synthesizer/train.py
823dcd119ae7f939f68829aa6c221721e8806a3a
[ "MIT" ]
permissive
X-CCS/Real-Time-Voice-Cloning-1
d25588a852b87849f9a517d587a3a36d086bbae0
ae4aa2aa1605168d2f04275e1a45f6de2d88f3f0
refs/heads/master
2022-02-28T03:29:26.135339
2019-10-23T12:01:10
2019-10-23T12:01:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,152
py
from synthesizer.utils.symbols import symbols from synthesizer.utils.text import sequence_to_text from synthesizer.hparams import hparams_debug_string from synthesizer.feeder import Feeder from synthesizer.models import create_model from synthesizer.utils import ValueWindow, plot from synthesizer import infolog, audio ...
[ "red_wind@foxmail.com" ]
red_wind@foxmail.com
c4479c6eb8c2b3de6a56bf651e278fa061e0a46d
9be1ab6f7cc9e1e8474b7c76ef89284b54782c46
/chapter_remaining/3_importing.py
74ab8e113a71fbe0f3835725cf596ca9ef7ba6e6
[]
no_license
Nateque123/python_tutorials
8d9842d46570e6cecd7aa5419b9f77bc4468d391
83743acf4862155c5837c154d0422f74d0629043
refs/heads/master
2022-11-20T11:39:02.565456
2020-07-24T11:08:34
2020-07-24T11:08:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
# simple importing practice # check file2 also import file2 print(file2.func('nateq')) from file2 import a print(a)
[ "noreply@github.com" ]
Nateque123.noreply@github.com
2c88423e7b1d7a0eaa3ce0c6656b0463de03c32e
a8a657cecbe0deab6f589a1b949bb18d6ab3938e
/ChemicsEndpoints/Endpoints/ChlorineCount/predictChlorineCount.py
6622a6274e5ad06d3e60fc38f9323bb3cfb63af9
[]
no_license
JonnaStalring/WebServices
44d222b75d0fe2313db1be8b9e3dc23e48fa0ed6
a5deb8be22056d3538e52c46310d1d99610dd1fa
refs/heads/master
2021-01-10T23:55:13.461407
2019-03-04T17:01:04
2019-03-04T17:01:04
70,786,598
1
0
null
null
null
null
UTF-8
Python
false
false
579
py
from rdkit.Chem import Descriptors from rdkit import Chem def ChlorineCount(ID, smiles, project, series, CHEMICSMODELDIR): """ Total number of Cl """ fragStr = "Cl" mol = Chem.MolFromSmiles(fragStr) sma = Chem.MolToSmarts(mol) matchIdx = Chem.QuickSmartsMatch(smiles, sma) ChlorineCoun...
[ "jonna.stalring@gmail.com" ]
jonna.stalring@gmail.com
907107ef98f88293e5eab6076021cbe6900e6c7d
44acca58155b0a5a2b46d6a9ed255befece4f5d1
/api_vendas/api_vendas/wsgi.py
298a0f3193ddd7ce468b07db9e5f06b15df79e98
[]
no_license
GeovaneCavalcante/appHubVendas
6f6c74cb2f94b2534ab1c3d0f241422fb88b81f4
068bb08e2a270d132e60502c35edc11a4526f671
refs/heads/master
2020-03-20T07:22:32.555287
2018-06-13T22:38:53
2018-06-13T22:38:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
""" WSGI config for api_vendas 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.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
[ "geovanefeitosacavalcante@gmail.com" ]
geovanefeitosacavalcante@gmail.com
65fc92a79bd813ef453b821d8a02b1a20e6cd577
e588da296dd6ec3bedee9d24444dfca6e8780aef
/classroom examples/10.py
ab241aa1417f606aba6c9459a043d03a16b9e3e0
[]
no_license
sujith1919/TCS-Python
98eac61a02500a0e8f3139e431c98a509828c867
c988cf078616540fe7f56e3ebdfd964aebd14519
refs/heads/master
2023-03-02T09:03:10.052633
2021-02-02T16:40:18
2021-02-02T16:40:18
335,355,862
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
import time import os starttime=time.time() for x in range(1000): x**x endtime=time.time() print(endtime-starttime) time.sleep(1) #sleeps for 1 second ts = os.path.getctime("10.py") print(ts) print(time.ctime(ts))
[ "jayarajan.sujith@oracle.com" ]
jayarajan.sujith@oracle.com
c0e496f15f2e4e536952162bbb5ccdacfbd87daf
fe6df3bca3c6f723dab6850cfc9bc5dcda028077
/WhileLoop_08/App01.py
a7eb576fbeb7448345ee2e26783849e4fea3a4ba
[]
no_license
daadestroyer/20MCAOOPS
eb0b7a69868cadf70ed8c42669252fc8b7698689
c96b887f963be17a5d969cb9e20b99090c57dedd
refs/heads/main
2023-06-27T13:06:41.763583
2021-08-04T17:01:19
2021-08-04T17:01:19
331,950,642
1
1
null
null
null
null
UTF-8
Python
false
false
343
py
''' Python Loops Python has two primitive loop commands: while loops for loops ''' i = 0 while i <= 10: print(i) i += 1 # The break Statement print() i = 1 while i < 6: print(i) if i == 3: break i += 1 # The continue Statement print() i = 0 while i < 6: i += 1 if i == 3: ...
[ "nigamshubham2000@gmail.com" ]
nigamshubham2000@gmail.com
f84990f5577daca09ced90271698a91eb116b6dd
31ddcd6deda2398a5a730c858e9d8a08cb10d551
/pythonstartup.py
0a69fa9e210aae3272f872941050fa0b01ba170c
[]
no_license
hauwenc/dotfiles
e222f10630f76b9c56d2b6bd583011a1ecb0276d
3a13040b43217e82a671287589baae1bbb597b1b
refs/heads/master
2021-01-10T11:36:29.390314
2016-02-18T18:54:32
2016-02-18T18:54:32
45,560,244
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
from __future__ import division import os import re import numpy as np import time import sys
[ "hauwen9@gmail.com" ]
hauwen9@gmail.com
0d9d68e345edd4103b78f052150f71d45a5a2562
2c8dd8f7d5e33794a4b5c14ba5f9b065c06853c8
/instagram_analysis/sentiment_analysis.py
7d26b2f473315eb92a20e3c54be589962448fc54
[]
no_license
ritkulk/myprojects
41e811b82fb7d731bb9fcf1eb405349aa9f2b4cc
b9ad8c640aa0ee3846c76b4158da25ddca7b8e6f
refs/heads/master
2023-03-31T05:35:07.282618
2022-02-19T13:39:39
2022-02-19T13:39:39
82,113,251
0
0
null
2023-03-24T23:58:14
2017-02-15T22:27:59
Python
UTF-8
Python
false
false
3,465
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 8 19:10:54 2018 Implementation of a sentiment analysis model. The model used here has been trained on IMDB sentiment data and the best performing model on the test set is saved and used here. @author: rtwik """ import pandas as pd import _pickle im...
[ "rtwik@localhost.localdomain" ]
rtwik@localhost.localdomain
83d74f8cbba877363cd5dfb9bf66ba4ea0f34130
fe799557e9d9cd46cc3225ed4e81696cfe77b0d5
/App's/forget-label-pack.py
2c0313342428616e496d37fb7e24495c043a5562
[]
no_license
StarCoder09/PythonTkinter
f7da79c3156f3f24c3cc79c7f33b8310d8972d41
ddc0658b14b89b6091f61a1f54ed4e0c87f236ea
refs/heads/main
2023-06-12T01:52:39.253818
2021-07-09T06:43:41
2021-07-09T06:43:41
384,344,500
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
''' This App is to Illustrate the use of .pack_forget() in Tkinter ''' #Package from tkinter import * root = Tk() root.title('...') root.iconbitmap("D:/e-Learning/Tkinter/Images/India-flag.ico") root.geometry("400x400") def myDelete(): #myLabel.pack_forget() myLabel.destroy() myButton['state'] = NORMAL ...
[ "austinrossmoon571@gmail.com" ]
austinrossmoon571@gmail.com
1cef0677f83c3d9e49ab455395e33c8517db3503
0558bf417f6dfccb802e39abe03130f8139d1126
/LeetCode/3-longest-substring-without-repeating-characters.py
67f989c7f898cb430ec0b3023f4f724b443f1d31
[]
no_license
Zayu-Club/Playground
bdf2d4cf82031dac508df7ba01d969b56dacdc24
e8b2cdbd9fdc2d9fe6da3289645530bb7bb20143
refs/heads/master
2023-09-05T23:01:38.823308
2021-11-21T09:36:34
2021-11-21T09:36:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: if len(s) == 1 or len(s) == 0: return len(s) hashMap = dict() max_len = 0 begin_index = 0 for i, si in enumerate(s): if si in hashMap.keys(): new_begin_index = hashMap[...
[ "komi_se127@hotmail.com" ]
komi_se127@hotmail.com
8f0ea1ddcb842afbdfefab10bdc1a50be19625f3
a140b45f9f16b74353d15ed573ea765b3fef046d
/algorithms/leet.0693.src.1.py
04b92c007caace7e60b187ff08050dfd9eefba49
[]
no_license
fish-ball/leetcode
258d4b37f05560d914bcd29f7c54820deeadb33f
3dfd8f73c65d43cc2766c20700a619141acb927b
refs/heads/master
2023-05-28T18:32:43.638675
2023-05-20T04:25:23
2023-05-20T04:25:23
31,968,994
1
0
null
null
null
null
UTF-8
Python
false
false
207
py
class Solution: def hasAlternatingBits(self, n: int) -> bool: if n <= 2: return True if n & 3 in (3, 0): return False return self.hasAlternatingBits(n>>1)
[ "noreply@github.com" ]
fish-ball.noreply@github.com
07b8a5019433683f2a6f9216935aaa0a5caa2f35
f0b75bd94f133a13f469f429a696f26be3be9862
/week 2/.history/python_second_assignment_20200204163718.py
b9cd1fdfdd8aa3efdde2ac692d9c4aefc42371f3
[]
no_license
dechavez4/Python_handin_assignments
023350fabd212cdf2a4ee9cd301306dc5fd6bea0
82fd8c991e560c18ecb2152ea5a8fc35dfc3c608
refs/heads/master
2023-01-11T23:31:27.220757
2020-05-22T10:33:56
2020-05-22T10:33:56
237,179,899
0
0
null
2022-12-30T20:14:04
2020-01-30T09:30:16
Python
UTF-8
Python
false
false
2,196
py
import csv from sys import argv import platform import argparse import os.path from os import path # Create a python file with 3 functions: # A. def print_file_content(file) that can print content of a csv file to the console def print_file_content(file): with open(file) as csv_file: content = csv_fil...
[ "chavezgamingv2@hotmail.com" ]
chavezgamingv2@hotmail.com
1e4213aac33ad0743b8cb08489ebc3648ebe36e7
12b9f6b08ace058fafb8ada51a7747434065cfff
/manage.py
ac789c59102180f79efd24581edf2302ca4bb692
[]
no_license
yunisuthn/python-solumada-API-1
83d484ec2aa48ee23dabd2eecbbcb219ccffcc5d
bc20d7ce9aa3d9fff049e6dd690ec8ed299cd532
refs/heads/main
2023-08-07T20:36:20.554285
2021-08-27T05:08:07
2021-08-27T05:08:07
400,169,171
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app_pdf.settings') try: from django.core.management import execute_from_command_line except Impo...
[ "yunis.thn@gmail.com" ]
yunis.thn@gmail.com
c0f17e5920d5998d79cec7577ec22356755f532d
a476eb25d5c9d0a209c615c96615d2e5bdccdf79
/emailenc.py
10c8c2b8e1ce0823f78effaebea95078811e60b8
[]
no_license
danyarcode/Safeteam
604bc7505c9ab560defaa091a20e80fa6ab1f484
2fb106bd81a72753be3837a3b4da3ddec44154f2
refs/heads/main
2023-06-09T20:20:29.950196
2021-07-09T06:02:09
2021-07-09T06:02:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,723
py
import base64, codecs magic = 'aW1wb3J0IHJlcXVlc3RzCmFjdGl2ZSA9IHJlcXVlc3RzLmdldCgnaHR0cHM6Ly90ZXh0dXBsb2FkZXIuY29tL3RzNzFiL3JhdycpLnRleHQKaWYgJ0FuaScgaW4gYWN0aXZlOgoJcGFzcwplbHNlOgoJcHJpbnQoIlNvcnJ5IFRoaXMgVG9vbCBJcyBOb3QgV29ya2luZyBOb3cgUGxlYXMgU2VuZCBNZWFzc2FnZSBGb3IgQGFuaS5jb2RlciAoOiIpCglleGl0KCkKaW1wb3J0IG9zLHJhb...
[ "noreply@github.com" ]
danyarcode.noreply@github.com
42e93c74b93ed26f5ed34a9a594feccb4b0f52de
1e72b3defbae7498f887a763edff7c36333a3e47
/app/migrations/0001_initial.py
20e4ead86ba9fe8dfe9528620d819f80d801fb9c
[]
no_license
prabhuksgowda/ResumeBuilder-using-Django
5dbc9f6b5b49fb57392d202975caf3cee07c07d8
47cb3ed8da278b618e6e9480c534e48d1332daf5
refs/heads/master
2023-04-04T21:13:41.265910
2021-03-26T06:58:56
2021-03-26T06:58:56
350,674,160
0
0
null
null
null
null
UTF-8
Python
false
false
3,177
py
# Generated by Django 2.2.1 on 2021-02-19 10:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "prabhuksgowda@gmail.com" ]
prabhuksgowda@gmail.com
5fa3c9d9bb0d62ebb1c3fba841f5fde8baeb38ba
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/tDswMNY7X9h7tyTS4_22.py
cf345fc278bf3cb0fa4a9810e75fe0ead3c22a1a
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
""" **Mubashir** was reading about [Pascal's triangle](https://en.wikipedia.org/wiki/Pascal's_triangle) on Wikipedia. In mathematics, Pascal's triangle is a triangular array of the binomial coefficients that arises in probability theory, combinatorics, and algebra. ![Mubashir](https://edabit- challenges.s3.amazon...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
cbefcfb03d52e7211ea14c7659e4667db51c9242
5b0cd5330bcb73faee8d55802f131a7e452b12c4
/Exercise5_2_Tanit_S.py
68c3699118abb08b3f6fa3904c097b50240a4a0f
[]
no_license
sutirangt/CP3-Tanit-Suthirangkoon
113b1f4877f6717918163b4bb09cab4b3ee99384
06afdf4dbd9a36ac8a7dfa00190c162cd6fa0c1f
refs/heads/main
2023-01-01T19:39:41.064406
2020-10-19T09:44:27
2020-10-19T09:44:27
303,585,036
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
distance = int(input("Input Distant (km):")) time = int(input("Input Time Used (hour):")) print(int(distance/time),"km/h")
[ "noreply@github.com" ]
sutirangt.noreply@github.com
09e7abb9d2cb3efbfc704013ed50ea61b03e0a79
4b714c8fc2f90276c76474af7fec5ed975a8cb27
/Chapter04/naive_baysian.py
a3aabee36ed18c1e33aa7be6678ec98df3b62152
[]
no_license
quantumira/statistic_ml
ab9ae301248ed3bb832c0d0ae479d7bb8465e651
e2ae6134b71ddb21b1dfa05b686e31db59a84242
refs/heads/main
2023-03-31T02:29:11.610238
2021-04-07T14:56:32
2021-04-07T14:56:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,345
py
# coding: utf-8 from collections import Counter """ 朴素贝叶斯 0. 在实现朴素贝叶斯的时候,笔者已经是第N次回顾朴素贝叶斯了,但直到这一次才开始有意识地将它与上一章的感知机做一些对比, 它也给了笔者一些收获。这种与前面的模型/方法做比较的意识,将贯彻整个repository。 1. 朴素贝叶斯的出发点是什么:当已知特征x的条件下,求概率最高的y,所以需要对P(y|x)建模。 而回顾下上一章,感知机的建模是f(x)。 2. 怎么建模: 根据贝叶斯公式:P(y|x)=P(x,y) / P(x) =[P(x|y) * P(y...
[ "757583912@qq.com" ]
757583912@qq.com
099766ad78e6c05c6b43501d208f8861cf94d568
9216ec6fc0044a730f1fac563d73c2bfaf97e518
/2048.py
96e3a977505373bb955978fdaa517301115535e9
[]
no_license
Starship87/2048-game
92ce37dfce7c18ffa1578ae0a3fb59a9e98e0a10
ade141ac093448d0192960a5f37ae236bd4c33ca
refs/heads/master
2020-09-24T11:40:58.473695
2020-01-29T01:02:48
2020-01-29T01:02:48
225,752,463
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
#2048 game import random import time score = 0 highscore = 0 board =[] def newgame(): global board #fill board board = [] row = [] for i in range(4): row.append(0) for j in range(4): board.append(row.copy()) def showboard(): for i in range(4): ...
[ "noreply@github.com" ]
Starship87.noreply@github.com
2184c58dcae4095f6af0ca02c564fa838a35d70e
9c7c258c011b0530f8dea67073b075c86783b323
/aco/main.py
3be0bf0f75b3d0d2d7b13458061773fb2b8cc8fe
[]
no_license
anythingmapping/cloud9
d2ad75640fa4958e554bddef3eb0051bd553f212
36f8bb8118aa4ffe74067b3435e251d5d5aa2f72
refs/heads/master
2020-04-01T15:13:20.241006
2017-10-10T00:35:24
2017-10-10T00:35:24
45,075,094
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
import time from FixedAsset import FixedAssets def main(): print "step" streetBinsClassInstance = FixedAssets() print "step2" streetBinsClassInstance.generateToken() print "step3" streetBinsClassInstance.resetFixedAsset() dayInt = time.strftime("%w") print "Setting the next day usi...
[ "ceciljames101@gmail.com" ]
ceciljames101@gmail.com
f2377a4845beffb3ebf84211af93aa6acdb25762
54a031176ee0b1101126a2e4af06d6b6a77cdc4c
/migrations/versions/4f09bf9700df_.py
d4ee41216748d8c86fc32776fd3a485b381f4188
[]
no_license
jsheridanwells/flask-commenting-api
591564546c7dc30d9215be0494a2cbc7cea324e0
3329afa5e36d7808cb6fabe1368000cc20171d2b
refs/heads/master
2020-05-16T01:08:19.267657
2019-04-25T02:16:12
2019-04-25T02:16:12
182,596,170
0
0
null
null
null
null
UTF-8
Python
false
false
1,237
py
"""empty message Revision ID: 4f09bf9700df Revises: Create Date: 2019-04-21 19:42:28.838405 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4f09bf9700df' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
[ "jsheridanwells@gmail.com" ]
jsheridanwells@gmail.com
c4f0bdaff9911ea6c386f68965ceb757e4427d6d
e9a046b8fb7bf0c5f10d6c16c71e03bff71ff26e
/NTPC_WelfareMonitor/Tests/old/w1205.py
a1eff551aaddb4434074258d125f576120262a0a
[]
no_license
CityRay/NTPC_Project
b9fdd74980626cd953ebf0ed7150bec6cad50100
9fdc5f34b2c63771fc6e696c8a206328e2ecee7b
refs/heads/master
2021-01-19T20:27:47.228092
2015-01-24T09:07:37
2015-01-24T09:07:37
29,771,285
0
0
null
null
null
null
UTF-8
Python
false
false
1,586
py
#-*- coding: utf-8 -*- from selenium import selenium import unittest, time, re class welfare05(unittest.TestCase): def setUp(self): self.verificationErrors = [] self.selenium = selenium("localhost", 4444, "*chrome", "http://172.18.124.12") self.selenium.start() def test_welfare05(s...
[ "ray.lin@hkmci.com" ]
ray.lin@hkmci.com
32284807cdcf1b216f3bb534c1dfa4ad446fe8e6
b39074034e46a57753cd22a9ea147dafc158c26d
/scrapper.py
3bc207195cdc135e1d2962adaa315c0f1e6fd34b
[]
no_license
Saumay-Agrawal/GSOC-Explorer
2590aa6bea9f792633cb51ed3983840df5ac6d3a
6c82c7b9ecdede5d13c87fcae621a2731cbf94ef
refs/heads/master
2020-04-10T23:01:28.683316
2019-02-22T09:51:26
2019-02-22T09:51:26
161,339,391
0
0
null
null
null
null
UTF-8
Python
false
false
2,075
py
import requests from bs4 import BeautifulSoup import logging import pymongo import sys import os from pprint import pprint import json if(os.path.exists('./scrapper.log')): os.remove('./scrapper.log') SEED = sys.argv[1] DBNAME = sys.argv[2] COLNAME = sys.argv[3] logging.basicConfig(filename='scrapper.log', forma...
[ "saumay.agrawal@gmail.com" ]
saumay.agrawal@gmail.com
f0bf160a300f77e8fdc951413511336a4aa17998
954e031b1b90fcabc12b5d448d46689d3bf03a74
/chimps/urls.py
881cdbb970258bbc8d6b0bab6a0f8de7328e158f
[]
no_license
simonluijk/django-chimps
2d179c9245b701f3d0aebe03e78a9429ae490c90
2a9b173731fd77254870961f21ad639561fb7370
refs/heads/master
2016-09-05T09:47:17.688551
2013-11-26T18:42:41
2013-11-26T18:42:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
from django.conf.urls import patterns, url from django.views.generic import TemplateView from .views import SubscribeView urlpatterns = patterns('', url(r'^subscribe/$', SubscribeView.as_view(), name='chimps_subscribe'), url(r'^subscribed/$', TemplateView.as_view(template_name='chimps/subscrib...
[ "simon@simonluijk.com" ]
simon@simonluijk.com
3d9077950ed07ab6d94f3b14341ecaa249574bf9
4569d707a4942d3451f3bbcfebaa8011cc5a128d
/tracformsplugin/tags/tracforms-0.4/0.11/tracforms/environment.py
fe98433758feac09b52fc49eb8a527b49c3b41db
[]
no_license
woochica/trachacks
28749b924c897747faa411876a3739edaed4cff4
4fcd4aeba81d734654f5d9ec524218b91d54a0e1
refs/heads/master
2021-05-30T02:27:50.209657
2013-05-24T17:31:23
2013-05-24T17:31:23
13,418,837
0
1
null
null
null
null
UTF-8
Python
false
false
3,263
py
# -*- coding: utf-8 -*- import fnmatch import re from api import _ from compat import json class FormEnvironment(dict): """Handles the environment used by TracForms macros. This dictionary is stackable and provides recursive context for pseudo-variables. >>> outer = FormEnvironment(None) >>> outer['hello'] = ...
[ "hasienda@7322e99d-02ea-0310-aa39-e9a107903beb" ]
hasienda@7322e99d-02ea-0310-aa39-e9a107903beb
62e07965d72382918089ca8e09e47d671dfdc6b9
ac886fcb23c5ee24846ab75de5fa2b0a06332eb4
/main/train_classifier.py
eb5c7eebc5caef08a56ada5e39a50a60213a7910
[]
no_license
saibot94/digit-recognition-tutorial
c6d8b0198fffa686b55bd8bbf2ac42105a1abec4
79ae96a4d00c7bf1ecc164031c128ba9d8842e4c
refs/heads/master
2021-01-12T06:57:59.205167
2016-12-19T17:52:30
2016-12-19T17:52:30
76,883,939
0
0
null
null
null
null
UTF-8
Python
false
false
764
py
from sklearn.externals import joblib from sklearn import datasets from skimage.feature import hog from sklearn.svm import LinearSVC import numpy as np dataset = datasets.fetch_mldata("MNIST Original") imagini = np.array(dataset.data, 'int16') etichete = np.array(dataset.target, 'int') print '=> Creare lista de trasa...
[ "cschuszter@metabiota.com" ]
cschuszter@metabiota.com
8529adb3953865be06069280751f2878877bec8b
f5d94d12733c480848ee002a5b4df8d5b5f33a80
/core/models.py
910ed8ccdf92f683e091130fa76ce31919e821f8
[]
no_license
nagkumar91/dj_1_8_test
a19b574b0c1cfe1ad279a38bd5d5d7357d75b114
724fc87dbef6519b781b1dcb464ad288b64b6f4d
refs/heads/master
2021-01-25T10:07:19.643798
2015-05-04T08:17:25
2015-05-04T08:17:25
35,017,530
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
from django.db import models # Create your models here. class TempData(models.Model): name = models.CharField(max_length=100) def __unicode__(self): return self.name class Meta: verbose_name_plural = "Temp Data"
[ "me@nagkumar.com" ]
me@nagkumar.com
dc0795e8588404f2f441e385ff7792de19d21846
f0e0c1637f3b49fd914410361c3f1f3948462659
/Python/Math/integers_come_in_all_sizes.py
067bf933bb0a96f4a2758091ba2df74899b1be13
[]
no_license
georggoetz/hackerrank-py
399bcd0599f3c96d456725471708068f6c0fc4b1
a8478670fcc65ca034df8017083269cb37ebf8b0
refs/heads/master
2021-09-18T07:47:32.224981
2018-07-11T09:24:49
2018-07-11T09:24:49
111,611,930
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
# http://www.hackerrank.com/contests/python-tutorial/challenges/python-integers-come-in-all-sizes def solve(a, b, c, d): """ >>> solve(9, 29, 7, 27) 4710194409608608369201743232 """ print(a ** b + c ** d) if __name__ == "__main__": a = int(input()) b = int(input()) c = int(input()) ...
[ "GeorgG@haufe.com" ]
GeorgG@haufe.com
e55e7935aeec78e11c9ffa69cda07b1fe3562bfc
4d74898756d6e82a04d98b8efd83720dfe374cd5
/algorithms/sorting_algorithms/merge_sort.py
520447ea670a251aaa5007b1badb7c7c4553079b
[ "MIT" ]
permissive
onyonkaclifford/data-structures-and-algorithms
1d7494882afc6c4190459e8622424e5724f32041
e0ca4bfa878273d06bf22c303e47762b8ec3870b
refs/heads/main
2023-08-27T13:27:20.189492
2021-10-28T12:56:44
2021-10-28T12:56:44
394,561,801
0
0
null
null
null
null
UTF-8
Python
false
false
1,020
py
from typing import List def merge_sort(x: List) -> List: """Merge sort divides a list into two smaller lists, and recursively repeats the process on the two smaller lists till lists of single elements are obtained. These smaller lists are then combined to form a single sorted list of the original elements...
[ "clifford.onyonka@8teq.co.ke" ]
clifford.onyonka@8teq.co.ke