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
27ea18a5756b03152493d5b0994a5db4e48e30db
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03227/s470552278.py
434e9ba40f42f909254017bbb3c840bf9b0c6468
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
49
py
n = raw_input() print n if len(n)==2 else n[::-1]
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
13d3ada859155e463b0435b8a5cce6dec4bf7413
b922213b085f6946839bb67d42a76dfbdc1f73e8
/module/XBPM_Query.py
2fa03da235545f3fa5a550cac8764a5c078d77d7
[]
no_license
Yu-Zheng/NSRRC-LINE-Chatbot-Template
d34a9a66277b3a8707a1c4ec427bdf730082ebce
51c2408193e75d9eebf04db0b2484b70dec7da1f
refs/heads/master
2020-04-17T21:34:25.980381
2019-01-22T08:32:08
2019-01-22T08:32:08
166,956,277
1
0
null
null
null
null
UTF-8
Python
false
false
2,420
py
from epics import caget def XBPM_Status(FE_number): try: if FE_number =="05": XBPM_1X=caget('FE-DI-XBPM-051:signals:sa.X')/1000 XBPM_1Y=caget('FE-DI-XBPM-051:signals:sa.Y')/1000 XBPM_2X=caget('FE-DI-XBPM-052:signals:sa.X')/1000 XBPM_2Y=caget('FE-DI-XBPM-052:s...
[ "lin.yz@nsrrc.org.tw" ]
lin.yz@nsrrc.org.tw
28224815fb499ec53db781bcb0dee2f91be8ff9a
4bc00484a4d8e1790f2efe9a90248468fe9ffa48
/3.py
93071bbcf365879562957bc16c1e7b39078c1623
[]
no_license
lsy512/python_exercise
797a9e3eeb96402a600132d88a6f0f387946e9dd
3fd5c233585ee3109972e0ce879b22dc58d05ca6
refs/heads/master
2021-08-28T15:35:49.865771
2017-12-12T16:50:01
2017-12-12T16:50:01
110,863,978
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
print 'Hello Python world!\n' print '*' * 10 for i in range(5): print '* *' print '*' * 10 print '*\n' * 6
[ "ls12@lsy512.HOST" ]
ls12@lsy512.HOST
c036b7721af2bf6f79ba842ed6fe820549220497
663e7fb7125a0b4caabbf13ad3050f14076fee8d
/project3/command_reminder/command_reminder/urls.py
b831c4648fa4fbea4ddd6c9fda8c16cca503b4ce
[]
no_license
djp21/web_desktop
0aa3c1384b6cb4bd3ab00fc55e5c3a903ca02a47
77074cd2e88db266834344d80f2d4c4c433f004f
refs/heads/master
2022-11-19T17:44:03.016339
2020-07-08T13:14:32
2020-07-08T13:14:32
278,067,242
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
"""command_reminder URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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...
[ "daphnejoan21@gmail.com" ]
daphnejoan21@gmail.com
5490b375dcf12fe850a9a31b095d68b1388bd03e
036876f40c4da57fd600250561160ca5e6be2263
/7_추상_데이터_타입/4_queue_from_two_stacks.py
f86890b7165c41e41d75dbcef8a45906b9cb937e
[]
no_license
yonghee555/Python-Study
feccbab38105846bee7e143408234ed2ee719413
6e2ad33f6a4db3328bd5f717813e8cdbb2d3aa6c
refs/heads/main
2023-07-22T03:17:50.091140
2021-08-13T14:48:24
2021-08-13T14:48:24
314,240,013
0
0
null
null
null
null
UTF-8
Python
false
false
1,532
py
class Queue(object): def __init__(self): self.in_stack = [] self.out_stack = [] def _transfer(self): while(self.in_stack): self.out_stack.append(self.in_stack.pop()) def enqueue(self, item): return self.in_stack.append(item) def dequeue(self): if no...
[ "yhlee2514@daum.net" ]
yhlee2514@daum.net
1e96507dae057ddf6c7da82b6d321afb5554140d
e2b1008be564227f4c87e23c66d7981dfcd61024
/src/modules/pipe09_Hierarchical_Cluster.py
d1f1476f15546bdcf468da294127442864734c7f
[]
no_license
codeaudit/mia
39092664f66d10d017ce41f17a67d115109297af
2b82f9708f828faa2d5bf3a218b06a1db66599cc
refs/heads/master
2021-01-22T23:10:35.574187
2015-12-11T18:22:32
2015-12-11T18:22:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,115
py
#-*- coding: utf-8 -*- ''' Created 08/08/2012 Updated 01/09/2014 Updated 11/10/2015 - get_params() @author: Damian Kao @url: http://blog.nextgenetics.net/?e=44 ''' import FileDialog from scipy.cluster.hierarchy import linkage from scipy.cluster.hierarchy import dendrogram import classes.BarGraphic as graphPac import...
[ "flalix@gmail.com" ]
flalix@gmail.com
94039fd9178ad4160ba0efb6f0dda17c0fde9816
8926a97e04be31c62a28ee9031520ca785f2947b
/flask/member_test/app3.py
1879796d52c5957ea5c6d9b35167283e4c2e6a95
[]
no_license
ragu6963/kfq_pyhton
3d651357242892713f36ac12e31f7b586d6e7422
bdad24e7620e8102902e2f0a71c8486fb0ad86c9
refs/heads/master
2022-11-26T16:02:49.838263
2020-07-31T00:40:59
2020-07-31T00:40:59
276,516,045
0
0
null
null
null
null
UTF-8
Python
false
false
4,306
py
from flask import Flask, request, render_template, redirect, url_for, jsonify, json import pymysql, os, cx_Oracle from flask_sqlalchemy import SQLAlchemy from json import JSONEncoder app = Flask(__name__) app.config["SQLALCHEMY_DATABASE_URI"] = "oracle://hr:hr@127.0.0.1:1521/xe" # app.config['SQLALCHEMY_DATABASE_URI'...
[ "bhj1684@naver.com" ]
bhj1684@naver.com
6d3a4a146ddc89f0e0c9dd1362b0945b5dffba41
1d2b1e1d2573f15ec964235fed2b76b3436735f1
/agents/simple_agent.py
bf55f079a456dee0c413eb243fb2731d5c19713f
[]
no_license
hellovertex/hanabi
8e7eeefd27b8237f0b393eb9690920b64755dcaa
e8aefac46a5814296a5499b99d1c07bf5a6e9964
refs/heads/master
2023-01-07T04:40:38.671048
2020-09-24T11:37:22
2020-09-24T11:37:22
184,106,764
2
1
null
2022-11-21T21:54:50
2019-04-29T16:33:17
Python
UTF-8
Python
false
false
2,783
py
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
[ "sascha.lange@campus.tu-berlin.de" ]
sascha.lange@campus.tu-berlin.de
9054097f669f4130575ff2a2f5cb764eee1fbe3c
8923028a025d1869dc30507c6de88b75a6bb4ce7
/undefined/category/models.py
762df603a0c20f3e4076aef95e25267f5adabdd4
[]
no_license
GuGu-market/backend
33567933281f471781b62c7136ce0bbf84bfa076
76a8de45269478da30f2c0ef13de0b5d6096bd56
refs/heads/master
2022-11-18T23:33:42.310557
2020-07-19T14:11:29
2020-07-19T14:11:29
280,068,397
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
from django.db import models # Create your models here. class Category(models.Model): category_name = models.CharField(max_length=15) category_image = models.CharField(max_length=500) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now_add=True) class Me...
[ "caruen@hanmail.net" ]
caruen@hanmail.net
f50a2c13091de7e6652bd032364405a6cb81e40a
f08336ac8b6f8040f6b2d85d0619d1a9923c9bdf
/148-sortList.py
deaa09cb9bde869ffaac11cb72d4a48498d2f6ed
[]
no_license
MarshalLeeeeee/myLeetCodes
fafadcc35eef44f431a008c1be42b1188e7dd852
80e78b153ad2bdfb52070ba75b166a4237847d75
refs/heads/master
2020-04-08T16:07:47.943755
2019-02-21T01:43:16
2019-02-21T01:43:16
159,505,231
0
0
null
null
null
null
UTF-8
Python
false
false
1,383
py
''' 148. Sort List Sort a linked list in O(n log n) time using constant space complexity. Example 1: Input: 4->2->1->3 Output: 1->2->3->4 Example 2: Input: -1->5->3->4->0 Output: -1->0->3->4->5 ''' # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next...
[ "marshallee413lmc@sina.com" ]
marshallee413lmc@sina.com
5eccc52f48c73a6631455d9c91a854f095aa432a
4dd8416c2a6cf08dd3fa3d197d895f2852106097
/语法基础/04.元组、函数-上/10-带有返回值的函数.py
a682be7ad48a46c456cf674dbd5b700daeff7694
[]
no_license
lanboys/HelloPython
19a74ad416ddadf7ed487023527e08ad9fcecb87
d411ee29781a9cf00470d05d1be61da8f2081080
refs/heads/master
2020-04-07T19:40:17.381564
2018-11-23T10:43:00
2018-11-23T10:43:00
158,657,533
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
def get_wendu(a): wendu = 22 print("当前的室温是:%d" % wendu) return wendu def get_wendu_huashi(wendu): print("------4------") wendu = wendu + 3 print("------5------") print("当前的温度(华氏)是:%d" % wendu) print("------6------") print("------1------") result = get_wendu(1000000) print("------2---...
[ "lan_bing2013@163.com" ]
lan_bing2013@163.com
59bd29fb6eb52de6fe04df9967256812d218e790
4e60e8a46354bef6e851e77d8df4964d35f5e53f
/share/create_db/__init__.py
89e75b0e45db463c422c246e51d237b4f3e7984d
[]
no_license
cq146637/DockerManagerPlatform
cbae4154ad66eac01772ddd902d7f70b62a2d856
9c509fb8dca6633ed3afdc92d4e6491b5d13e322
refs/heads/master
2021-04-09T13:58:14.117752
2018-03-19T13:41:04
2018-03-19T13:41:04
125,712,276
0
0
null
null
null
null
UTF-8
Python
false
false
44
py
# -*- coding: utf-8 -*- __author__ = 'CQ'
[ "1016025625@qq.com" ]
1016025625@qq.com
68ef26fd2826b2c8882df530e003ddcc3a9a97f9
b8337bfa265096bce556091b1ea9bca193d28220
/subcmds/push.py
5f7625da5b88d1c735faa91a388ec102f16db50f
[ "Apache-2.0" ]
permissive
GatorQue/git-repo-flow
2d058031fe2aedec0bf60ca6365ed7cc4f5a6932
12e960cd04ca482b57d9af9b04c577bd2af2f654
refs/heads/stable
2022-11-08T08:54:43.694308
2022-10-30T22:39:17
2022-10-30T22:39:17
50,465,445
6
3
Apache-2.0
2022-10-30T22:39:18
2016-01-26T22:57:50
Python
UTF-8
Python
false
false
3,111
py
# # Copyright (C) 2016 Pieter Smith # # 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 w...
[ "pieter.smith@philips.com" ]
pieter.smith@philips.com
155b6c2895b77c52ac63f156b1d146aefdae42d1
73fc3c4d600f8ae939b3079a4704a7892cffa476
/arrays/searching in rotated and sorted array.py
87e20ef6ed23e1247c75085ef08f0cf1d16991c9
[]
no_license
Nirmaljeet/Learn_DS_Algorithms_in_Python_from_scratch
2b53a38de03a5e00ee839b7af1cef167c3d530a5
9e5c46be2fb9ae6e2c298421e223a358c6d6a71d
refs/heads/master
2022-12-09T06:56:37.659535
2020-09-03T11:53:36
2020-09-03T11:53:36
257,008,122
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
def search(arr, l, h, key): mid = (l+h) // 2 if arr[mid] == key: return mid if arr[l] <= arr[mid]: if key >= arr[l] and key <= arr[mid]: return search(arr, l, mid-1, key) return search(arr, mid+1, h, key) if key <= arr[mid] and key >= arr[h]: retur...
[ "500060993@stu.upes.ac.in" ]
500060993@stu.upes.ac.in
0cbd6afbf693325fa1f70ccc30cf449820a3b5b3
9e37ba1d4869b7a10abc168daa040604812af745
/covid/urls.py
745ea037d500e45aa27b0ccce264e24133792533
[]
no_license
ryandingle/cavid19-tracker
3141a860061b4fb288c1cba83e5909ce24b1a819
50e5fdce8ca7caff2a59cda8197e45c00b3aed9e
refs/heads/master
2022-12-10T15:50:20.057972
2020-09-09T09:18:45
2020-09-09T09:18:45
294,062,881
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
from django.urls import path from . import views app_name = 'covid' urlpatterns = [ path('', views.V1.as_view()), path('download', views.V2.as_view(), name='download'), ]
[ "ryandingle09@gmail.com" ]
ryandingle09@gmail.com
b40d364523a6a0d9a5830630e0d64197363cab87
95884a6b32f6831e68c95d7785bc968a56877121
/cifar_imagenet/models/cifar/momentumnet_restart_lookahead_vel_learned_scalar_clip_mom.py
ba44f69eff7577785b303b3c9d7d192514916fc3
[ "MIT", "Apache-2.0" ]
permissive
minhtannguyen/RAdam
d89c4c6ce1ce0dd95b0be3aa2c20e70ea62da8b0
44f403288df375bae0785cc82dd8c888eaaaa441
refs/heads/master
2020-08-09T07:53:50.601789
2020-02-17T06:17:05
2020-02-17T06:17:05
214,041,479
0
0
Apache-2.0
2019-10-09T23:11:14
2019-10-09T23:11:14
null
UTF-8
Python
false
false
7,243
py
# -*- coding: utf-8 -*- """ momentum net """ import torch import torch.nn as nn import math from torch.nn.parameter import Parameter __all__ = ['momentumnet_restart_lookahead_vel_learned_scalar_clip_mom'] def conv3x3(in_planes, out_planes, stride=1): "3x3 convolution with padding" return nn.Conv2d(in_planes,...
[ "mn15@rice.edu" ]
mn15@rice.edu
cbf8a72e10d75d3f99ce287afab796c2b39ef168
feaabe4e8dbbc68839c9bae0ff8a33786c67628d
/src/utils/configs/fusion_id9_2gpu_semi_3x.py
4643b4f0f033c20121af090e94c8b8dc2ad5d519
[]
no_license
Chrisfsj2051/Multi-Modal-Tagging
4f759fffe81708317129f518e99360e61d11f81d
2415bb7ae3bd773924e18be6d76f835292b39f21
refs/heads/main
2023-06-12T03:01:38.357269
2021-07-08T01:36:42
2021-07-08T01:36:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
_base_ = 'fusion_id9_2gpu_semi_2x.py' train_total_iters = 30000 lr_config = dict(policy='step', warmup='linear', warmup_iters=500, warmup_ratio=0.001, step=[train_total_iters // 3, 2 * train_total_iters // 3]) runner = dict(type='IterBasedRunner', max...
[ "34179691+Chrisfsj2051@users.noreply.github.com" ]
34179691+Chrisfsj2051@users.noreply.github.com
a3fd18ab13fe4890d0bf3a2a23362acda1da3b1f
7e03d0a4bfa010360f86c02d39b82fd63a14aac8
/Marshal/main.py
596bbbb976e41cfa4b61e2a3b8a9ffc1bf050b1a
[]
no_license
brumazzi/Python2.x-Exemples
765e30d225998c5a163b09d2f8eea8b4fa098b14
73581c862fbfcc448b9756e18019e234dbc9b95c
refs/heads/master
2021-06-12T17:43:16.184080
2021-02-10T18:05:53
2021-02-10T18:05:53
60,136,657
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import marshal as ms lista = [1,8,3,'texto'] msg = ms.dumps(lista) print msg msg = ms.loads(msg) print msg
[ "brumazzi_daniel@yahoo.com.br" ]
brumazzi_daniel@yahoo.com.br
3841955c6fdc812fb485883ea962413bbf824c21
2a679c523fe3b32860e5c06e6a5b80dbf9991c04
/ECDH.py
737223ddad3f223914231bcfcc92c42deaf33bdc
[]
no_license
jmacenka/python-unordered_scripts
09c3a8bc6dfa97cc801fccc57a9df2a58916f58f
46dc0de93113f839ae9ccf29d2459cf233253091
refs/heads/master
2020-03-22T19:31:38.999040
2018-07-12T13:56:25
2018-07-12T13:56:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,087
py
import hashlib Pcurve = 2**256 - 2**32 - 2**9 - 2**8 - 2**7 - 2**6 - 2**4 - 1 N = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCEAF48A03BBFD25E8CD0364141 Acurve = 0; Bcurve = 7 Gx = 55066263022277343669578718895168534326250603453777594175500187360389116729240 Gy = 326705100207588169780830851305070431844712733806592432...
[ "noreply@github.com" ]
jmacenka.noreply@github.com
24aeb181fe8842ceab8dcbdae1e7eae470e32e96
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/2091.py
2be5159255a480621d5ba476c77387286fc6d261
[]
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
935
py
def get_values(f,line): choices = []; for i in range(0,4): if i+1 == line: choices.extend(f.readline().split()) else: f.readline() return choices if __name__ == "__main__": with open('problem.txt','r') as f: trials = int(f.readline()) for i in ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
dce59121fba5ccf5e8c8796047c5b2c77fd6f8d2
a11d61a72206fc50a976092bb466609d6bab35ed
/example5.py
06b4ccb84b5c345b5c3bfca18b7cd95a84475c8b
[ "MIT" ]
permissive
Man1ish/derivativeinpython
0c32636073428a3f0637d9a308433cae2d74988a
fc20b0110f9bb8b825cb3a38e991a8713972b8c6
refs/heads/master
2021-04-10T11:08:33.976557
2020-03-21T09:03:33
2020-03-21T09:03:33
248,931,356
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
# Example 5: Using the definition, find the derivative of the simplest quadratic function import sympy as sp x = sp.symbols('x') f = x ** 2 der = sp.diff(f,x) print(der) # output :2x
[ "manpandey321@gmail.com" ]
manpandey321@gmail.com
b643e592a963c16bf141ce455f1e68dbe8dff664
ac8a817a86bd23cd8f941ec9a6a485828a3d97b3
/train.py
3c82abe73a7ae494615ebf0527e17f5b42c9c7c8
[]
permissive
diamondgloves/im2latex
0df317384c29df50834132cb6fbb1f75431cdc2d
8ef3378cb289846a5d85ce60785e11c6c5291700
refs/heads/master
2021-12-14T01:44:06.339995
2021-12-05T10:21:55
2021-12-05T10:21:55
231,594,988
1
0
Apache-2.0
2020-01-03T13:30:46
2020-01-03T13:30:45
null
UTF-8
Python
false
false
2,451
py
import click from model.utils.data_generator import DataGenerator from model.img2seq import Img2SeqModel from model.utils.lr_schedule import LRSchedule from model.utils.general import Config from model.utils.text import Vocab from model.utils.image import greyscale @click.command() @click.option('--data', default="...
[ "343600153@qq.com" ]
343600153@qq.com
15d9a96411a5590bb63bb613b31cffc9f05c7078
07c6950a3d68657a8816ba0506fd01305f34aa28
/Week_4/week_four_class_notes.py
31b70e419f9964df91b7e9645fb710e253d999f0
[]
no_license
stone-braker/scriptingWorksets
4c71ee86a4fdc96de0de968c5f040bb4f51ca510
f1538014567b063bf4624ada910f78b98cc171c0
refs/heads/master
2020-09-11T09:03:41.124340
2019-11-27T08:25:19
2019-11-27T08:25:19
222,014,813
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
def sumOfDigits(cardNumber): rev_list = reverse_order(cardNumber) new_str = "" for x in rev_list: indeX = rev_list.index(x) print(indeX) if indeX % 1 == 0: int_x = int(x) new_string += # then add it to string not list # new_li...
[ "noreply@github.com" ]
stone-braker.noreply@github.com
c266b3398768426498c471fe608f96eaed0fc57a
1162c4afffa9cabf1066070b05c144cf093410f7
/backend/config.py
4245114b6aeda7fff927b000ca2f59b12f49cac1
[]
no_license
jakearmendariz/cruzhacks2020
db18246a6c41ee2d7eca88dc662551942f704eee
576dd5ca6cfe91ea42470807f53a974bc5a407b7
refs/heads/master
2020-12-11T21:09:00.775054
2020-03-24T18:55:21
2020-03-24T18:55:21
233,959,668
2
0
null
null
null
null
UTF-8
Python
false
false
194
py
# file for storing our config settings MONGO_URI = "mongodb+srv://readAndWrite:uJkfM1V7bi3xT13k@cluster0-ksxj2.gcp.mongodb.net/CharityDB?retryWrites=true&w=majority" MONGO_DBNAME = 'CharityDB'
[ "sadschmi@ucsc.edu" ]
sadschmi@ucsc.edu
223346ee2a61a34b5ec530473b238cfae1d67fe7
a38117c71f1256175c81d7eb14b1dec073c61331
/pythonwork/dict.py
9a0c22702818bf831534d87e3a338f077e75e2eb
[]
no_license
mps-jenkins/API
6fc51c3d3cc2d1bf5338b4341d85fdbdfda5c19e
00d612304a0e4ed244dfb00d40e1358dd5848c5f
refs/heads/master
2020-05-20T23:28:34.337178
2019-07-08T05:20:32
2019-07-08T05:20:32
185,800,024
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
import re dict = {} list1 = [] def counting(text): count = 0 for letter in text: #print(letter) if letter in dict: dict[letter] += 1 else: dict[letter] = 1 list1 = list(dict.keys()) list1.sort() #print(list1) for letter in list1: if n...
[ "mps-jenkins@test.com" ]
mps-jenkins@test.com
2390f76f7b3aef733c743e79e179ecdeeb752821
db04519f8c941cda2bd826c2d87b8635eade0117
/chap5/global.py
8881a226a1727df18b87128e9ce1ef1a03282960
[]
no_license
tom--bo/perfect_python
414099fd7a0bdcab5d2a0a065a33c6e40ba382a0
f90e8414869d12a3a4ed4facd43b7f97566e72d3
refs/heads/master
2021-01-10T02:44:39.281717
2015-06-20T00:13:32
2015-06-20T00:13:32
36,939,303
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
var1 = 'グローバル' def spam(): #var1 = 'ローカルで代入' global var1 var1 = 'ローカルからglobalを変更' var2 = 'ローカル' return (var1, var2) if __name__ == '__main__': ret = spam() # print(var1) print(ret)
[ "otsuka.t.2013@gmail.com" ]
otsuka.t.2013@gmail.com
7f7624aeebbcea875a7a0678ee7625b0a527be23
9addcb2eaf6b465845c509fd1f34245a1f4e482a
/jobplus/decorators.py
253a90eb7d91b6a01dd7e29fa2d7e1aeaa29e3b5
[]
no_license
xglvdai/jobplus18-1
d2bfa0f71ab96b403ddd438caf282c1e108e2999
93baeb68582522f1753281f42df52de0f3801f35
refs/heads/master
2022-09-10T21:36:12.472957
2020-06-02T09:17:56
2020-06-02T09:17:56
265,989,403
0
0
null
2020-05-22T01:24:57
2020-05-22T01:24:57
null
UTF-8
Python
false
false
564
py
from flask import abort from flask_login import current_user from functools import wraps from .models import User def role_required(role): def decorator(func): @wraps(func) def wrapper(*args, **kwrargs): if not current_user.is_authenticated or current_user.role < role: a...
[ "564188950@qq.com" ]
564188950@qq.com
7912a0f0e4eb725cfd2d8a2e26b19ba48eb36d0b
661741c14f20713607c6ce22fa13756dc88e2f12
/evaluate.py
4f64d9383e647562b8679a9461ce452944c57d08
[]
no_license
ChantalMP/A-Comprehensive-Benchmark-for-Defenses-Against-Black-Box-Adversarial-Attacks
61dd2ee8479e3df8a30ac2c04df49f1597218162
91aa7991a2c6bc5e8e027b4edb3682914a72c19c
refs/heads/master
2022-11-28T14:27:50.302644
2020-02-26T09:39:29
2020-02-26T09:39:29
214,792,084
1
0
null
2022-11-21T21:15:44
2019-10-13T09:20:01
Python
UTF-8
Python
false
false
5,104
py
from classifiers.mymodel import MyModel from attack.foolbox_boundary_attack import run_attack from utils.attack_testdata_loader import get_attack_testset from utils.modelWrapper import ModelWrapper from foolbox.attacks import BoundaryAttack, BoundaryAttackPlusPlus from utils.image_utils import plot_result from utils.co...
[ "chantal.pellegrini@tum.de" ]
chantal.pellegrini@tum.de
627023dff02f8904a68d2e185eab89f227b2b83d
0f03a32c18350dae7980587a141dd3ee6daa0005
/csvtojson/src/main/resources/csvToJson.py
443c2f7099094be61c3e917de5021bfb11924ebd
[]
no_license
ReddyRohan/MuleSteve
0dbe196f9c007db08de711c1e511f47439b33ab2
6dea1792141151a010229bffc8cae13d711def96
refs/heads/master
2016-08-12T14:03:33.378968
2016-02-04T16:52:55
2016-02-04T16:52:55
51,090,901
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
import json import csv a= """column1;column2;column3;column4;column5 abc;def;dghi;jkl;mno pqr;stu;vwx;;""" #get rows of the csv file rows=a.splitlines() #get the headers from the csv file fieldnames=rows[0].split(';') #Delete the rows containing headers rows.pop(0) #read CSV and convert csv to Json reader = csv.Di...
[ "rohan.reddyin@gmail.com" ]
rohan.reddyin@gmail.com
c9ec4c1a18887780a64d795b647178b06293b2c4
5c941453d3ebef544a21e85222ff362275a17eb8
/twitter_bot.py
b560f3f4c5cfc482631f9bf42ca334167038dfc7
[]
no_license
SooGood888/Twitter_bot
2e872ce2e5643f80c22df991847b02edbf8a9b9e
721d13562c8d0d9ea22c9818d1319c970e74f286
refs/heads/main
2023-05-21T04:57:29.458745
2021-06-09T13:25:13
2021-06-09T13:25:13
371,226,903
1
0
null
null
null
null
UTF-8
Python
false
false
1,488
py
# pip install selenium, pyautogui, opencv, pillow # seleniumを動かすには、webdriverが必要。https://github.com/mozilla/geckodriver/releases #からダウンロードして、exeファイルを任意のフォルダに保存。右フォルダにPATHを通す。 #あと、Firefoxをインストールしておく必要あり。 import os import time import pyautogui from selenium.webdriver import Firefox #ブラウザの起動 driver = Firefox()...
[ "noreply@github.com" ]
SooGood888.noreply@github.com
fddd88e6d5df361afe252585abfa25f97496a3f7
efd818a7651c20fc7999a6a41728ace8f81a4896
/register/migrations/0001_initial.py
09a38c1b9eaef632386ef250c24f72c104419f90
[ "MIT" ]
permissive
yashiki-takajin/sfa-next
dd65c13d68122595f242140239bf977970aad744
049058a37b9ee45b58be5f4393a0b3191362043c
refs/heads/main
2023-04-16T15:43:08.790520
2021-04-21T09:57:35
2021-04-21T09:57:35
358,530,169
0
0
null
null
null
null
UTF-8
Python
false
false
4,862
py
# Generated by Django 2.0.2 on 2018-11-05 15:46 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import register.models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ...
[ "ms.yashiki@creerbateau.com" ]
ms.yashiki@creerbateau.com
d5a8d2365d35856d0646f1ff1609b05d58d5be42
836111ab99c44675a8d1f585100053e1e79e1d93
/tests/system/test_base.py
416c0964f9143b403edc157f319e0b14255f1510
[ "Apache-2.0" ]
permissive
michael1589/recordbeat
8ef6629e559920eb245bf982d1591f899f3131fb
ba9e35696bcbaf77246052c324c2701e89a2d6d8
refs/heads/master
2020-07-11T02:48:21.320743
2019-08-26T09:17:24
2019-08-26T09:17:24
204,430,209
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
from recordbeat import BaseTest import os class Test(BaseTest): def test_base(self): """ Basic test with exiting Recordbeat normally """ self.render_config_template( path=os.path.abspath(self.working_dir) + "/log/*" ) recordbeat_proc = self.start_beat...
[ "liuzuchong@icsoc.net" ]
liuzuchong@icsoc.net
815d0ff01fcabf11a984f1f67ea03376a58ef481
2308bb5c1f93dfb3d546ae27742bceba69060c40
/web_flask/8-cities_by_states.py
162ff67b6463698a54fa2aa481c8c3e0899665b1
[ "LicenseRef-scancode-public-domain" ]
permissive
FreeJules/Web_Framework_AirBnB
2e73f3d4fe29a8d9fad4bbce8122d1a9590b8e6e
71832869d150083b2b4f250a0237f076c16b4d4f
refs/heads/master
2021-06-26T19:52:46.188007
2017-09-15T12:31:06
2017-09-15T12:31:06
103,736,843
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
#!/usr/bin/python3 from models import storage from flask import Flask from flask import render_template app = Flask(__name__) app.url_map.strict_slashes = False @app.teardown_appcontext def teardown_db(exception): """calls close method of storage""" storage.close() @app.route('/cities_by_states') def cities...
[ "lee.julija@gmail.com" ]
lee.julija@gmail.com
53ace3b60db8c9a22aa93f538e2f61cbf99e3c07
ca9db058f59c5dc742082cd108505be6fce04f04
/project/application.py
995dc399987bbe3557a505d9f95693497505bc30
[]
no_license
zmytryc/youtubegeosearch
ae29d94abbcfbf74cc77f2d8e48b9995d25a630d
6b6ea197fd5a138b03585b4136743ee0e21abf59
refs/heads/master
2021-10-01T18:51:06.314551
2018-11-28T12:57:21
2018-11-28T12:57:21
115,494,182
0
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
import os import re from flask import Flask, jsonify, render_template, request, url_for, json from flask_jsglue import JSGlue from helpers import youtubesearch # configure application app = Flask(__name__) JSGlue(app) # ensure responses aren't cached if app.config["DEBUG"]: @app.after_request def after_requ...
[ "zmytryc@ukr.net" ]
zmytryc@ukr.net
4b1ebf1835bb7aef79e1980e4bebf0724bc2a664
b8ce3789c44bea523e1531d2ec6c8ee7e8855d83
/change_detection_pytorch/stanet/model.py
07d8a7e75842ba790274f886790703dc05e2dd93
[ "MIT" ]
permissive
YangPanHZAU/change_detection.pytorch
47898236c20586f3bd2cba39e24a0bed6c71fd53
7221a9304a1202c52fd8b798780614af28aa38d8
refs/heads/main
2023-09-06T05:47:14.446874
2021-11-25T09:08:05
2021-11-25T09:08:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,916
py
import torch from typing import Optional from torch.nn import functional as F from ..encoders import get_encoder from .decoder import STANetDecoder from ..base import SegmentationHead class STANet(torch.nn.Module): """ Args: encoder_name: Name of the classification model that will be used as an encode...
[ "913896141@qq.com" ]
913896141@qq.com
b74102cf22e7a28f20c16800aba96074db765c05
0fb3f3ef4f7c0401db58808636a760963008fb33
/Google Speech to Text/audiofile.py
057d91cba4ea27910c41c0431f550f678121b9d4
[]
no_license
oakhtar147/natural-language-processing
a21c7d0c262559103544ef7e5ff8277944a2a726
4ea8cb75e0419ab6b4cadf77fe24ff37df9fd6ad
refs/heads/master
2023-05-09T17:28:40.140940
2021-06-07T17:32:59
2021-06-07T17:32:59
312,867,437
0
0
null
null
null
null
UTF-8
Python
false
false
1,247
py
import wave import contextlib from pydub import AudioSegment import os import PyWave as pw import warnings warnings.filterwarnings('ignore') DIR = r"C:\Users\Dell\Desktop\speech" class AudioFile: def __init__(self, path_to_file): self.path_to_file = path_to_file def stereo_to_mono(self): wf ...
[ "osamaakhtar15@gmail.com" ]
osamaakhtar15@gmail.com
066f467af220cf2210d237b5be14036c9a366795
c4ee4a9d28425aa334038ad174c7b1d757ff45db
/py/survey_backdeck/SurveyBackdeckDB.py
425ea9aadef024c30c34e6d6199380a96c70f5d1
[ "MIT" ]
permissive
nwfsc-fram/pyFieldSoftware
32b3b9deb06dba4a168083a77336613704c7c262
477ba162b66ede2263693cda8c5a51d27eaa3b89
refs/heads/master
2023-08-03T07:38:24.117376
2021-10-20T22:49:51
2021-10-20T22:49:51
221,750,910
1
1
MIT
2023-07-20T13:13:25
2019-11-14T17:23:47
Python
UTF-8
Python
false
false
1,155
py
__author__ = 'Todd.Hay' # ------------------------------------------------------------------------------- # Name: TrawlBackdeckDB.py # Purpose: Provides connection to the trawl_backdeck.db SQLite database # Author: Todd.Hay # Email: Todd.Hay@noaa.gov # # Created: Jan 08, 2016 # License: M...
[ "will.smith@noaa.gov" ]
will.smith@noaa.gov
89bb0587757a6aed99336fb24ec99c4a1cbfe575
8d2a785ffc06ec46a546cdf50af41054a382f05a
/classes/day02/class/3.pass语句.py
f2defecd7c5467b8ae56a75acfff0e26254f3c38
[]
no_license
Pigcanflysohigh/Py27
4be0d9ad93f5d695c48fd89157952230ec4d111a
2f6568fce2a6f09c73cdc08342a8b05645c87736
refs/heads/master
2020-06-18T08:09:08.217036
2019-11-20T16:14:05
2019-11-20T16:14:05
196,225,940
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
if 1==2: ... # 什么也不做,只是占个地方,表示我是明白python的语法规则的 n = 0 while n<6: pass
[ "729167925@qq.com" ]
729167925@qq.com
56cb0a401e086cffa893b8b4dcd75edf07ca9e4c
dacf092e82b5cc841554178e5117c38fd0b28827
/day24_program4/server_start.py
80694736d2929c195b9ccc3caf71539ee8767758
[]
no_license
RainMoun/python_programming_camp
f9bbee707e7468a7b5d6633c2364f5dd75abc8a4
f8e06cdd2e6174bd6986d1097cb580a6a3b7201f
refs/heads/master
2020-04-15T11:27:09.680587
2019-04-06T02:21:14
2019-04-06T02:21:14
164,630,838
4
1
null
null
null
null
UTF-8
Python
false
false
1,604
py
import socket import os from conf import setting from interface import common_interface from db import models, db_handler import logging.config def upload_file(): # 接收文件 file_path = os.path.join(BASE_DIR, 'db', 'file_upload') if not os.path.exists(file_path): os.makedirs(file_path) path = os.path...
[ "775653143@qq.com" ]
775653143@qq.com
50a805dc8a946792bd4c670cf4d42f3317b82c4d
5925c0fc934760f1726818a18d6098499dcfb981
/GAN_upscale_28x28/GAN_upscale_28x28.py
0c4f60692043ba8d1aaf07a121723c78c1911750
[ "MIT" ]
permissive
PsycheShaman/Keras-GAN
64b4b20471f4b185580860f28caa9320ed615a51
9a1f2576af8f67fad7845421ea5feb53012c1c9f
refs/heads/master
2020-06-17T11:03:23.993616
2019-09-14T08:04:25
2019-09-14T08:04:25
195,858,154
2
0
MIT
2019-09-14T08:04:26
2019-07-08T17:33:39
Python
UTF-8
Python
false
false
6,859
py
# -*- coding: utf-8 -*- """ Created on Wed Sep 11 12:14:02 2019 @author: gerhard """ from __future__ import print_function, division from keras.datasets import mnist from keras.layers import Input, Dense, Reshape, Flatten, Dropout from keras.layers import BatchNormalization, Activation, ZeroPadding2D fro...
[ "christiaan.viljoen@cern.ch" ]
christiaan.viljoen@cern.ch
732e5989b03e6ac0ba0c7a3273baa3636f04fcc3
ac13c0de8d821b2d2dc58486b84899976729724d
/primechecker.py
5977fd2b2f4306969d2edaf47dd5167f321a93d9
[]
no_license
momopranto/project_euler
3e6362cd5aae4677ef3de4686ad986827edd8e30
916426bc263bee5e1dd6a47be21d834819820e87
refs/heads/master
2016-09-16T11:52:34.206057
2015-09-13T21:17:53
2015-09-13T21:17:53
42,413,193
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
import math def is_prime(n): if n % 2 == 0 and n > 2: return False for i in range(3, int(math.sqrt(n)) + 1, 2): if n % i == 0: return False return True x = raw_input("Enter a number to check if it is prime \n") print is_prime(x)
[ "johncena.alamin@gmail.com" ]
johncena.alamin@gmail.com
c006c011444f682f8e1c58a8416788ccf0c19eee
63ebdcdd975d76bdcb55f20c4db458fb1bec3092
/bitbox/lib/blitter/scripts/sprite_encode2.py
4f31467ef8efcefed0f6a8935a6f946312f1da79
[]
no_license
gameblabla/bitbox-alterego-gcw0
3729e4542e16b4abc7c7fa4b46fb093ad7949922
6b5489aa290b01aeef3736a1152a602007476029
refs/heads/master
2021-01-19T00:50:56.619666
2017-04-04T16:51:28
2017-04-04T16:51:28
87,211,572
2
0
null
null
null
null
UTF-8
Python
false
false
9,321
py
#! /usr/bin/python2 from itertools import groupby import sys, struct, os from PIL import Image # using the PIL library, maybe you'll need to install it. python should come with t. # 16 bits format : nb skip1:7, RLE:1, eol:1, nb blit1:7 # encode simply as palette merge + trous # TODO : multiframe, several frame spr...
[ "gameblabla@openmailbox.org" ]
gameblabla@openmailbox.org
44ecf2daa56228971637548596c441a0552a2c35
88fadf1a81c10240e3355bce67b470e6888b3080
/EXT_SERVER/test_main.py
a884d8d54a0d4e0d351d49e641807d2f477db38f
[]
no_license
khy4701/PythonTest
ba23dfd2b77fe00800845c7f7d324ed5fe07d093
ae30041b1c91022ccd0aee81b32f5d978afb53c5
refs/heads/master
2021-05-08T17:28:09.542194
2018-01-30T03:09:56
2018-01-30T03:09:56
119,473,248
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
from flask import Flask from flask_restful import Api from ServiceClass import Departments_Meta #Create a engine for connecting to SQLite3. app = Flask(__name__) api = Api(app) #api.add_resource(Departments_Meta, '/departments/<string:department_name>/<int:abc>') api.add_resource(Departments_Meta, '/depa...
[ "e2e@localhost.localdomain" ]
e2e@localhost.localdomain
babc9118bdcf7d2c25b4dc9e551d807e63b0a18f
6b6c00e637e4659e4c960ff5dc48c8b25f09c543
/myihome/web_html.py
86d5f26bfaab5886725ef16013e4324d6595659e
[]
no_license
too-hoo/myiHome
881d24f7835a1d6f95fea8cc97d68194d078d451
54c57755f5c9a700330cb38a47fe88e4f9f7ab3a
refs/heads/master
2020-07-13T11:26:53.915246
2019-09-04T11:43:01
2019-09-04T11:43:01
205,073,018
9
6
null
null
null
null
UTF-8
Python
false
false
1,638
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # 静态文件加载的显示文件 from flask import Blueprint, current_app, make_response from flask_wtf import csrf # 引入CSRF防御 # 提供静态文件的蓝图 html = Blueprint("web_html", __name__) # 127.0.0.1:5000/() # 127.0.0.1:5000/(index.html) # 127.0.0.1:5000/(register.html) # 127.0.0.1:5000/(favico.ico...
[ "13414851554@163.com" ]
13414851554@163.com
e0e2a52c3f51e155e15a246020e053b44f99966e
ec3e832f3ac44efca57869336f485924e5dda862
/onthisday/urls.py
07a0082537be53c57d37ef9a38ee72d1128dcf7c
[]
no_license
harvard-lil/thinkingcap
1409d852bfbd93d9ebc5676ac0909cb8370a48af
3bbc1e2415fc93714898affdffde0c80f530ca97
refs/heads/master
2021-01-22T17:22:28.712570
2017-12-19T02:42:34
2017-12-19T02:42:34
100,726,963
1
2
null
2017-12-19T02:42:35
2017-08-18T15:42:26
Python
UTF-8
Python
false
false
757
py
"""thinkingcap URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
[ "anastasia.aizman@gmail.com" ]
anastasia.aizman@gmail.com
baac1a629e7de1c2defc44e786ef103e0acb461c
7e8d50833762f3eb6a0bc7f7e3d3a24c7e6fda19
/src/pyscript/Q_learning/gym-kenage/gym_kenage/__init__.py
138558b0e4df4dd62909c16d975327864e30d0ac
[]
no_license
Aries1A/kenagerobo
58d2e75dd6572745046efd10b214e18f0d20f42f
617c042dc3d2696e1f24ff8d3db296918dcbb4c7
refs/heads/master
2020-08-22T04:59:24.600584
2019-12-06T18:22:23
2019-12-06T18:22:23
216,322,371
0
0
null
2019-12-06T18:22:24
2019-10-20T07:13:41
Jupyter Notebook
UTF-8
Python
false
false
113
py
from gym.envs.registration import register register( id='kenage-v0', entry_point='gym_kenage.envs:KenageEnv', )
[ "kaiso.mar26.littleswitch@gmail.com" ]
kaiso.mar26.littleswitch@gmail.com
16da2cbf7b87db6103fa3137d33a13a40ba2afa5
d264c38d2b7a91098ffd2935961b2297b245b020
/cron/setwatermark.py
52db4da3b6c8a79135ec444f7585a8ec7bdd9b85
[]
no_license
durm/aksvrnru
367d7633453a1947c596aea3230156eb5d48e5ee
8ac364795ab31f84c1e6e241bdea624a36197369
refs/heads/master
2021-01-10T21:42:26.241084
2015-04-21T15:14:33
2015-04-21T15:14:33
23,011,837
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
#-*- coding: utf-8 -*- import os, time, sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "aksvrnru.settings") from django.conf import settings from aksvrnru.utils import add_watermark fpath = sys.argv[1] if os.path.exists(fpath): add_watermark(fpath, settings.WATERMARK)
[ "durm.icecoffee@gmail.com" ]
durm.icecoffee@gmail.com
43ac56c73e4f34fab8eb30c53bb912cf0413c224
9bba29dd48e1edcd42becdf34fda265fde7570b3
/HR/Mat_fundamentals/max_withdraws.py
b1d998bdc0e6ab465364a03e61d4950206ddfa63
[]
no_license
maltesh/practice
7945d8f6cb74e92b51432617aabb56204c10f991
922bc4d4075a5aaa8b2c6f40545578f36f46c398
refs/heads/master
2023-07-30T01:08:08.473457
2023-07-09T12:26:45
2023-07-09T12:26:45
58,482,938
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
#https://www.hackerrank.com/challenges/maximum-draws?h_r=next-challenge&h_v=zen import sys import sys for line in sys.stdin.readlines()[1:]: print int(line)+1
[ "malatesh.mylarappachar@philips.com" ]
malatesh.mylarappachar@philips.com
cfe59ff5a54944d27e16b6052faadb365a8fcf0f
973d64c074ffda22eec7f191963037d484426c93
/lib/basicTransform.py
4809175481f0462597589ca9483a802499d994aa
[]
no_license
4xpl0r3r/Maltego-TransformR
7bd35e379fe652180a92f42fa97b40569f0dd25c
310af140d9a2016d707398bfc2f73b24ce158c7f
refs/heads/master
2023-07-31T14:19:06.217347
2021-09-11T03:31:30
2021-09-11T03:31:30
397,311,285
0
0
null
null
null
null
UTF-8
Python
false
false
938
py
from lib import csvIO from lib.objectFactory import ObjectFactory class BasicTransform: entities=[] links=[] objectFactory=None inputFiles = None outputFile = None transformConfig = None def __init__(self,inputFiles,outputFile,transformConfig): print('[*] Initializing Transform')...
[ "kanowillz@gmail.com" ]
kanowillz@gmail.com
667126335d017e1ff1e6261de7d42831d6d38615
d4c5986ad77426d955b6f1a6d9be182cfab3a5ec
/insercion.py
9a0d653b37fd67fca82f2d14c874aee62266aeb6
[]
no_license
JuanL-Code/python_3
ca113f3add2486a6ed663a8ee44e579a93d3578a
520557f7b35bc354dd88357e4ef087ef2ef7f0fa
refs/heads/main
2023-03-27T12:51:12.802810
2021-03-19T02:33:11
2021-03-19T02:33:11
331,846,377
0
0
null
null
null
null
UTF-8
Python
false
false
527
py
import random def ordenamiento_insercion(lista): n = len(lista) for i in range(1, n): valor_actual = i for j in range(i, 0, -1): if valor_actual < lista[j]: lista[j], lista[j + 1] = lista[j + 1], lista[j-1] return lista if __name__ == '__main__': ...
[ "noreply@github.com" ]
JuanL-Code.noreply@github.com
9a4c7bd0dc795de08ef23d2bd66f09a6eb5f8051
4ace0870ca82afae03985beaad0e7a24377b414c
/snare/core/operation.py
688955d4a7a2fa57945ab6e7075e6042e5804954
[ "MIT" ]
permissive
DK56/snare
6f7b50ab3b9c0b23bc2f3b5f8325589dd777238f
46f1d5af1c144cdc9b8be6e57bfe9e740221dae6
refs/heads/master
2023-04-08T02:35:07.884117
2020-03-06T12:14:47
2020-03-06T12:14:47
211,815,979
0
0
MIT
2023-03-24T22:24:03
2019-09-30T08:45:44
Python
UTF-8
Python
false
false
9,586
py
import numpy as np import math import copy from ..wrappers import WeightsProvider, Group from tensorflow.python.keras import backend as K class Operation(WeightsProvider): def __init__(self, weights_provider): self.weights_provider = weights_provider def get(self): return self.weights_provid...
[ "tobias.viehmann@mail.de" ]
tobias.viehmann@mail.de
7eab37da59212eb54be6555921c7e1de10ec5e35
ea0d5cc7ed49ea61545a2325ce5025db6fac91db
/posts/views.py
0080afe93f4a42b9c68008a28557a3613471fe49
[]
no_license
zer0ttl/django-message-board-app
57e0fe4b70b9f2a6230d2e64a6d361148d1c824b
5994f3729f90cab20419f7a51cafb70a9b5b1bd5
refs/heads/master
2020-05-03T20:50:28.982307
2019-04-01T07:58:20
2019-04-01T07:58:20
178,812,030
0
1
null
null
null
null
UTF-8
Python
false
false
252
py
from django.views.generic import ListView from django.shortcuts import render from .models import Post # Create your views here. class HomePageView(ListView): model = Post template_name = 'home.html' context_object_name = 'all_posts_list'
[ "sudheer.shirsath+zerottl.com" ]
sudheer.shirsath+zerottl.com
328588836d307293f0d666768429a1b18e4e1007
3a1c5ae00324fc26728ad9549cd4cf710a6dfcca
/trackmeapp/serializers.py
ecb9872ce6f7e0f07739fb553cc72ca93c734d99
[]
no_license
EnockOMONDI/TRACK-ME
c39b3f6ed04957a011c96735526475dae596941c
aff6704f2ce1645a6b7f044a52abf0769de7d604
refs/heads/master
2021-06-24T22:26:49.841861
2019-06-24T07:19:22
2019-06-24T07:19:22
193,167,979
0
0
null
2021-06-10T21:37:58
2019-06-21T22:46:08
Python
UTF-8
Python
false
false
309
py
from rest_framework import serializers from trackmeapp.models import Task # transforming objects to JSON and vice versa class TaskSerializer(serializers.ModelSerializer): class Meta: model = Task fields = ('item_id', 'title', 'description', 'created_at', 'comp_date', 'status')
[ "enockomondike@gmail.com" ]
enockomondike@gmail.com
af43c669459f8dd1c60ac2dae04418f9744f6a29
44a7b4879c1da661cc2e8aa51c7fcc24cfb0fd3b
/tests/psu/psu_version_test.py
b3942b4c3523ed8b6ec2b0b234eb1705e2bb042b
[ "MIT" ]
permissive
seoss/scs_core
21cd235c9630c68f651b9a8c88120ab98fe5f513
a813f85f86b6973fa77722a7d61cc93762ceba09
refs/heads/master
2021-08-08T08:09:56.905078
2020-04-16T19:46:52
2020-04-16T19:46:52
156,239,538
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
#!/usr/bin/env python3 """ Created on 13 Nov 2017 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ import json from scs_core.data.json import JSONify from scs_core.psu.psu_version import PSUVersion # ---------------------------------------------------------------------------------------------------...
[ "bruno.beloff@southcoastscience.com" ]
bruno.beloff@southcoastscience.com
0085c6cb9a123ccabfdf39b59ffea34d56255b69
cab7d583b24b27964d607761b22b4ac9c1ee3694
/27_exception.py
3ccfb4e9c3417ee383ae1d5087365c87f176c583
[]
no_license
prafful/python_jan_2020
9a4e25dc71b55cd900f5f6990489c1443a7ded06
122aa65c98ab12ca4416f24c500a444d742e18b9
refs/heads/master
2020-12-08T12:05:27.918050
2020-01-31T07:31:03
2020-01-31T07:31:03
232,977,308
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
""" try: execute code block 1 except expression as identifier: execute if code block 1 get error else: execute if code bloack 1 is success! """ try: fh = open("check.txt", "w") print(fh.write("Hello from Exception!")) except BaseException as exception: print("Error while working with file: ", e...
[ "prraful@gmail.com" ]
prraful@gmail.com
1852a6f04efd2e58b4849af81462264ed56fb27c
30126b67203a026f86c77d3a91a6d755eee7fbea
/lib/sites/siteFile_COLW4.py
58ebc289f13965e4e343e0d7891b7e5636620598
[]
no_license
NWS-NRC/CCOOP-XBee
5fc0f2a9e79f0bd6ab9a57f35d1e8c39933543bf
3a8c3d5bf0d23042c6249228a60538908fea391e
refs/heads/master
2023-03-03T15:32:53.493213
2021-02-15T12:22:41
2021-02-15T12:22:41
278,868,715
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
import time import sys class pubTopic: #-----topics SUB_TOPIC = "NWS/ALL/ALL/COOP/ALL/COMMAND" COMMAND_TOPIC = "NWS/CRH/UNR/COOP/COLW4/COMMAND" TEMP_PUB_TOPIC = "NWS/CRH/UNR/COOP/COLW4/TEMP" PRECIP_PUB_TOPIC = "NWS/CRH/UNR/COOP/COLW4/PRECIP" DAILY_PUB_TOPIC = "NWS/CRH/UNR/COOP/COLW4/DAILY" ...
[ "noreply@github.com" ]
NWS-NRC.noreply@github.com
764e69de63f66f28c1c4b8cba0cf2cb7e716b0e3
d20f406bd076ac4ec94dd0eae0dcec0fd551e90b
/main.py
3f54c808c0bae506d51a399715f9a025bd618d03
[]
no_license
utsavdarlami/NepalLicensePlateRecognition
7e0b413b671e05e3ae142b001ee1579655f311c6
afbbe8a95c14f93deaac9c9e5b8d595067fb7110
refs/heads/master
2023-01-24T10:29:44.442014
2020-12-02T15:13:42
2020-12-02T15:13:42
225,912,533
2
0
null
null
null
null
UTF-8
Python
false
false
7,842
py
""" Usage: python main.py --img imgPath //for image python main.py --video videoPath //for video """ import tensorflow as tf # Darkflow from darkflow.net.build import TFNet import os import numpy as np import matplotlib.pyplot as plt import pandas as pd import cv2 import sys from datetime imp...
[ "j.babin411@gmail.com" ]
j.babin411@gmail.com
e2c680856a32945f8d634761009a24feeff11bd2
88c4811d895959b56242ed39b09ec0ae6b345984
/flaskblog2/posts/forms.py
ea03da410f9df8f86cfa92469f5d7d179697f9fb
[]
no_license
Barnez299/flaskblog2
a078e01817c233ba0626aee28022f4c0b4a8ba52
a9c0c87f1c9923acf0a7d808821ef2edc4a3023f
refs/heads/main
2023-02-17T10:39:05.924860
2021-01-19T11:55:00
2021-01-19T11:55:00
326,720,350
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, TextAreaField from wtforms.validators import DataRequired class PostForm(FlaskForm): title = StringField(label='Title', validators=[DataRequired()]) content = TextAreaField(label='Content', validators=[DataRequired()]) submit ...
[ "barnez29@gmail.com" ]
barnez29@gmail.com
3206f80ebb7cd794ba25b8f13f14e0c5a68d2477
6f8c5d58ccd771d1ba92dc053b54caa44be9515c
/inst_fluid_en/models.py
7fba96ece1c1d3dfd9ed2d96070362bda8abf302
[ "MIT" ]
permissive
manumunoz/8004
b6f32cf446a3d0d66988d34a03a252ba4d885da1
06b5a5a8cdea53294ff85c4bedb6be163d2da25a
refs/heads/master
2020-03-24T22:24:37.155460
2019-03-28T07:02:18
2019-03-28T07:02:18
143,083,725
0
0
NOASSERTION
2018-12-07T15:17:27
2018-08-01T00:29:45
HTML
UTF-8
Python
false
false
4,478
py
from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import itertools author = 'Manu Munoz' doc = """ Identity Switch - Networks: Instructions FLUID """ class Constants(BaseConstants): #------------------------------------------ ...
[ "manumunozh@gmail.com" ]
manumunozh@gmail.com
4835bc6e70d40dff4467464c94615a922a6eeb0d
82ef9a0dd1618a28770597227acfc0150b948af2
/wearnow/tex/plug/_plugin.py
dd765acd80043d80efc8cafe2aca871e1af2e00f
[]
no_license
bmcage/wearnow
ef32a7848472e79e56763b38551835aa97864b21
c8dfa75e1ea32b0c021d71c4f366ab47104c207e
refs/heads/master
2021-01-16T00:27:59.597812
2016-01-19T11:55:03
2016-01-19T11:55:03
37,195,574
0
0
null
null
null
null
UTF-8
Python
false
false
2,318
py
# # WearNow - a GTK+/GNOME based program # # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2009 Benny Malengier # # 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 versi...
[ "benny.malengier@gmail.com" ]
benny.malengier@gmail.com
125486c5294f6b5bdc3af4c93f6f66479361f318
2760494bc6ea8628a2c401bd4b55dd8cc5536a97
/2020/06/06.py
6b4323e3a71ee712d7c10d1b10fb97be10a4f3b6
[]
no_license
lysrt/aoc
e38bb3db9d14b410549b2a1b24337b9e608940e2
2e7578f458721206e798793fbc9cf74701ae0033
refs/heads/master
2023-02-02T16:39:34.349900
2020-12-19T13:33:53
2020-12-19T13:33:53
116,025,669
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
from functools import reduce class Group(): def __init__(self, raw): self.persons = [set(x) for x in raw.split("\n")] def get_answers_count(self, aggregation): return len(reduce(aggregation, self.persons)) with open('input', 'r') as f: groups = [Group(x) for x in f.read().split("\n\n")] ...
[ "lucas.sartore@gmail.com" ]
lucas.sartore@gmail.com
35d145eae9baf5f65b192fdad8fad0e7408f07eb
9eff544e604f9cff4384d4154204ab3276a56a23
/mpsci/distributions/gumbel_max.py
c6080c33985af06b004adc47893c0f19297ed96c
[ "BSD-2-Clause" ]
permissive
WarrenWeckesser/mpsci
844d22b0230bc8fb5bf2122e7705c6fd1f0744d9
cd4626ee34680627abd820d9a80860b45de1e637
refs/heads/main
2023-08-31T11:01:11.412556
2023-08-25T20:30:43
2023-08-25T20:30:43
159,705,639
8
0
null
null
null
null
UTF-8
Python
false
false
7,575
py
""" Gumbel probability distribution (for maxima) -------------------------------------------- This is the same distribution as: * `scipy.stats.gumbel_r`; * NumPy's `numpy.random.Generator.gumbel`; * the Gumbel distribution discussed in the wikipedia article "Gumbel distribtion" (https://en.wikipedia.org/wiki/Gumbel...
[ "warren.weckesser@gmail.com" ]
warren.weckesser@gmail.com
b1a13e75d1f8817d3f898b6dddb043fc3a5e5ef4
61b8693ad9ee9cf563ec83c9d6d35ea0f5f14221
/python/thomas_theis_einstieg_in_python/7.1.6_spiel_zeit.py
d619ed19ceb3c6ead2e74e3552e9c4dfb64332db
[]
no_license
erolneuhauss/studies
9fd7bf56cf686ee0f5d1d23436cd1add0e3bc4e2
aa6aafbb32c6a9de3a0a0073ad1493fcbee6552c
refs/heads/master
2023-06-11T05:44:44.450137
2022-10-31T15:05:26
2022-11-03T11:01:21
82,448,245
1
0
null
2023-02-08T01:14:47
2017-02-19T09:28:35
Jupyter Notebook
UTF-8
Python
false
false
908
py
#!/usr/bin/python # Modul import importieren import random,time # initialisieren random.seed() # Anzahl richtiger Ergebnisse richtig = 0 startzeit = time.time() # Schleife mit "anzahl" Aufgaben print "Start des Rechenspiels:",\ time.strftime("%d.%m.%Y %H:%M:%S") print for aufgabe in range(5): # Aufgabe mit ...
[ "eneuhauss@Corinnas-iMac.fritz.box" ]
eneuhauss@Corinnas-iMac.fritz.box
d820bb3d8f45cad1fd542c191c3dbdfccf9d1299
5a8c988bd0b0b5685c43de2aed6c1906890a07b7
/crudappl/models.py
f594eacc41a7b801210805c40148f2d0feaa6ca5
[]
no_license
Sreelakshmi-Unnikrishnan/crud_app
dd34c3374afc93be7303aa706c54d4a9d8ae5e29
000ed9e8a95613a59313df4e614634a280fb0690
refs/heads/main
2023-08-22T21:37:48.453515
2021-10-16T07:30:38
2021-10-16T07:30:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
from django.db import models # Create your models here. class users(models.Model): first_name=models.CharField(max_length=30) last_name=models.CharField(max_length=30) email_id=models.CharField(max_length=30) password=models.CharField(max_length=30) user_name=models.CharField(max_length=30)
[ "sreelakshmialeesha@gmail.com" ]
sreelakshmialeesha@gmail.com
389d80a51e57aab9b9e90dd9cf236befa5c6cd93
457c673c8c8d704ec150322e4eeee2fde4f827ca
/Python Fundamentals - January 2020/Functions/03_Repeat_string.py
e36aa36cc0812058b32ec3f857f6917eeb7e1787
[]
no_license
xMrShadyx/SoftUni
13c08d56108bf8b1ff56d17bb2a4b804381e0d4e
ce4adcd6e8425134d138fd8f4b6101d4eb1c520b
refs/heads/master
2023-08-02T03:10:16.205251
2021-06-20T05:52:15
2021-06-20T05:52:15
276,562,926
5
1
null
2021-09-22T19:35:25
2020-07-02T06:07:35
Python
UTF-8
Python
false
false
94
py
def repeat(s, rep): return s * rep s = input() rep = int(input()) print(repeat(s, rep))
[ "daredevil91138@gmail.com" ]
daredevil91138@gmail.com
a2b7c653fd891ea1e97531e4a84ddaa5ccce602b
d9a7800e5dc3d79c038e81c396e9ddb277b64b17
/gpflow/expectations/quadratures.py
7e716c0c926d0fb86c43ab8fe2411148a2655bd2
[ "Apache-2.0" ]
permissive
elvijs/GPflow
9274804a8096c2da5274c977c2bdccb121b2ef7e
056e59f2c5aa2b5021de9b7b91ce1cee2ea0bb92
refs/heads/develop
2020-05-03T16:58:00.187709
2020-02-06T17:06:04
2020-02-06T17:06:04
178,735,650
0
0
Apache-2.0
2020-02-07T18:15:20
2019-03-31T19:58:37
Python
UTF-8
Python
false
false
5,127
py
import numpy as np import tensorflow as tf from .. import kernels from .. import mean_functions as mfn from ..covariances import Kuf from ..inducing_variables import InducingVariables from ..probability_distributions import DiagonalGaussian, Gaussian, MarkovGaussian from ..quadrature import mvnquad from . import dispa...
[ "art.art.v@gmail.com" ]
art.art.v@gmail.com
2844fd4dfc902e122c8fdfa03d6d205b5459185f
3a64b795d236ce888364977fc0a7555e9b1edc78
/pi/artnet.py
c56990f14fff7489822e45b0c388b014f691aeb9
[]
no_license
woodward54/lightcaster
5e880144d55ed30cf6aca8cf66b43b45299ea891
f47af6778b0d5ecb2c609b396e8512fa67be10d4
refs/heads/master
2022-07-06T07:57:05.622083
2020-05-13T17:20:20
2020-05-13T17:20:20
263,695,057
0
0
null
null
null
null
UTF-8
Python
false
false
3,421
py
#!/usr/bin/env python3 # NeoPixel library strandtest example # Author: Tony DiCola (tony@tonydicola.com) # # Direct port of the Arduino NeoPixel library strandtest example. Showcases # various animations on a strip of NeoPixels. import time,socket,sys from neopixel import * import argparse # LED strip configuration:...
[ "root@INSTARPi.home" ]
root@INSTARPi.home
98e7a95ea82b26272885ee73662f48e35c6a707d
87152c554687b972b1c951bd93ae27603d66d801
/94.py
b000d3874d0fcec6dd6e0d7f5a0e027f04ea881e
[]
no_license
logeswari-j/python
a983cfcd1b7791f827e3aa47e711fd358b41a49a
6e965a60468bfab28bd81ce898978af3fbf191a1
refs/heads/master
2020-06-07T14:27:02.918526
2019-08-03T04:54:44
2019-08-03T04:54:44
193,041,241
0
2
null
null
null
null
UTF-8
Python
false
false
192
py
hh3,pp=input().strip().split() pp=int(pp) h=0 while h<len(hh3)-1 and pp: if(hh3[h]>hh3[h+1]): pp-=1 hh3=hh3[:h]+hh3[h+1:] if(h!=0): h-=1 else: h+=1 lk=hh3[:len(hh3)-pp] print(lk)
[ "noreply@github.com" ]
logeswari-j.noreply@github.com
6def3fc6f810fa8c0be9d90523ed85167895b9a9
36b331a9cc7dc5e0b74c0c3c7a98aa87653c55a7
/Main.py
50104cb2b16850318e7016a1379c37e246b36945
[]
no_license
Lazar-source/MEMS-projektmunka
53497488cd02a768c7fa477a155086c6b6333ee7
0c3dd02711fa2e06e3a8e4c95fe1df6143a9d988
refs/heads/master
2020-08-29T14:01:25.470322
2020-01-15T09:42:10
2020-01-15T09:42:10
218,054,244
0
0
null
null
null
null
UTF-8
Python
false
false
3,360
py
from sense_hat import SenseHat import insertdatabase import globals import Gyroscope import Arrows import sys import tweepy from ISStreamer.Streamer import Streamer sense=SenseHat() sense.set_imu_config(False,False,True) logger= Streamer(bucket_name="Sense Hat Sensor Data", access_key="ist_QsJ_mdh5bnHzduJDFhorX59W811C6...
[ "talazar3@gmail.com" ]
talazar3@gmail.com
9bf4b4bfca39743b3d62904cf92db88751a9a4c1
d20e8b55ed5db7222fc2552f7527744000596a17
/contrib/bitrpc/bitrpc.py
00e78ddc4da53d68a65b31059bbac96d92bcebf6
[ "MIT" ]
permissive
doceer/fundin
352dcb6d440776091bc654aefab2a8c98a33061b
11105b8e74f294562c94b06400693bc6e186b971
refs/heads/master
2020-04-05T18:18:34.200577
2018-11-06T04:43:16
2018-11-06T04:43:16
157,096,227
0
0
MIT
2018-11-11T16:04:29
2018-11-11T16:04:29
null
UTF-8
Python
false
false
9,663
py
from jsonrpc import ServiceProxy import sys import string import getpass # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:7077") e...
[ "43293249+fundin@users.noreply.github.com" ]
43293249+fundin@users.noreply.github.com
14ec5db1f7857cc5deafd345308627f2ac36c34f
9dd5e3efed36ba551acc6f329618c4561130d8ac
/photosorter.py
c1c11bcf6f2983eca31baa6a8ba63d0588829ddb
[ "MIT" ]
permissive
0W3N/eve-course
ed6c0b67fc74800c19f79e6cf348a65cc85c166e
0699aa6fb514fa5b45f05bc612a422dd8d3a2632
refs/heads/master
2020-03-13T10:59:35.494160
2018-04-29T04:46:57
2018-04-29T04:46:57
131,093,564
0
0
null
null
null
null
UTF-8
Python
false
false
1,027
py
from PIL import Image import dhash import pybktree import os def filecleanup(scrpth): imagedict = {} tree = pybktree.BKTree(pybktree.hamming_distance) for ff in os.listdir(scrpth): #print(os.path.join(scrpth,ff)) filename = os.path.join(scrpth,ff) if filename[-3:] == "jpg": ...
[ "owenmerrick@hotmail.com" ]
owenmerrick@hotmail.com
4fab3fbb759c5158c14ade7f81434ccb24339085
eeeffe693078a77f84ec7821081182e6b12043c9
/narendra/settings.py
159af370051040c80f2c00db9cd921f1901a7574
[]
no_license
Narendra-Rathore/narendra
e05328178e1e475481d76a56460d824053f0c501
6a46b9f5d0ae3146c8f81ab7b630bc485afa4e7c
refs/heads/main
2023-03-03T13:21:42.356874
2021-02-10T10:20:28
2021-02-10T10:20:28
337,432,098
0
0
null
null
null
null
UTF-8
Python
false
false
3,329
py
""" Django settings for narendra project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathli...
[ "npsdudsi007@gmail.com" ]
npsdudsi007@gmail.com
b1a7b240bbf7f17341177d6f03acfd50f21dbac8
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/arc094/B/4253154.py
6d7383b45734c25c5fe494a308375919ce98d92e
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
502
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import math def solve(a, b): a, b = min(a, b), max(a, b) if a == b: return 2 * a - 2 c = int(math.sqrt(a * b)) + 2 while True: if c * c < a * b: if c * (c + 1) >= a * b: return 2 * c - 2 ...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
711d20148707a29c563aab2785e74a754b4ec6c2
acd1120e5a476130793adaae120aaa85a686d4cd
/api_edu/api_edu/apps/course/migrations/0002_course_course_video.py
a3a29ed3482e72c03afa18bea3b79e6e91668684
[]
no_license
Zhangzhenyu-Anyuer/webproject
6ba19a0ff37a8b8c75919fa3a570f7610d884ddb
48b6eb956b1e4e0af2887cba108dbea48bfafecf
refs/heads/master
2023-02-03T00:54:03.210282
2020-12-21T10:36:30
2020-12-21T10:36:30
323,305,298
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
# Generated by Django 2.0.6 on 2020-11-10 12:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course', '0001_initial'), ] operations = [ migrations.AddField( model_name='course', name='course_video', ...
[ "aaazzzppppo@163.com" ]
aaazzzppppo@163.com
6d9aa23aac7fc83f966804c5d25d3a1d9096f76b
81f9d88a560edb2b92997855c6445628cf0e6eaa
/homura/__init__.py
53bd57eca602723adbb53d18674e93be0451c1cd
[ "Apache-2.0" ]
permissive
haiyan-he/homura
e1de6e0162a0a3d5c2f2ce142f551562dc30f4c3
2b98d4e0071b926233869e5396a02e70638d19f7
refs/heads/master
2023-02-06T18:25:15.557698
2020-10-01T07:54:23
2020-10-01T07:54:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
from .register import Registry from .utils import TensorDataClass, TensorTuple, distributed_print, enable_accimage, get_args, get_environ, \ get_git_hash, get_global_rank, get_local_rank, get_num_nodes, get_world_size, if_is_master, init_distributed, \ is_accimage_available, is_distributed, is_distributed_avail...
[ "hataya@keio.jp" ]
hataya@keio.jp
bd80ae0e6566b794e9582c482160a6d7e6a338b3
92002647998beb70f0be2f400af23d010082e230
/main.py
9128c39b80ad666e50570a68e30c005e0e97baad
[]
no_license
davguest/computer_vision_3
52f54bd735cdbaa333d93de6a39349864abccc2e
974b28d9495c90139b0089f03b491663c1534ab8
refs/heads/master
2021-08-30T01:02:47.615349
2017-12-15T13:01:38
2017-12-15T13:01:38
113,990,517
0
0
null
2017-12-12T12:57:34
2017-12-12T12:57:34
null
UTF-8
Python
false
false
1,342
py
import numpy as np import matplotlib as mp import sklearn as sk from sklearn.cluster import KMeans import cv2 import glob from PIL import Image from sklearn import preprocessing k = 8 n = 4 number_of_clusters = 8 x_linear_regression = [] y_linear_regression = [] # the big big loop #for filename in glob.glob('testing...
[ "yustiks@gmail.com" ]
yustiks@gmail.com
10682582ea1863fd922d5da0927d22778286f60e
38c35956be6343855914b1c58b8fbd2e40c6e615
/Grafos/2131.py
2dd6d299343e38504e64253ea933e1dd5ba17cd3
[]
no_license
LucasBarbosaRocha/URI
b43e4f4a6b3beed935f24839001bea354411c4bd
2c9bcc13300a9f6243242e483c8f9ec3296a88ad
refs/heads/master
2020-06-25T05:06:51.297824
2019-08-22T04:50:11
2019-08-22T04:50:11
199,210,037
0
0
null
null
null
null
UTF-8
Python
false
false
1,953
py
# -*- coding: utf-8 -*- # Funcao que cria um grafo def cria_grafo(lista_de_vs, lista_de_arestas): grafo = {} for v in lista_de_vs: grafo[v] = [] for aresta in lista_de_arestas: grafo[aresta[0]].append(aresta[1]) return grafo # Busca em profundidade personalizada def dfs_iterative(grafo...
[ "lucas.lb.rocha@gmail.com" ]
lucas.lb.rocha@gmail.com
9a4a7ce6a670e6dfb5a8c9baa17ddc0a3582041a
57c00ba0521cc0be6b36bb82e1a2729a10e90c3f
/constant/tweet_message.py
181be3726bf9d1763160b308618cebb357a4bb3a
[ "Apache-2.0" ]
permissive
balemessenger/twitter_bale_bot
1eeade6654162cefa6d2ce1898e4586643946dcb
f00f954a348c723bcf11ccca20a45d5f4f9ee69c
refs/heads/master
2020-06-20T17:06:42.181715
2019-05-13T18:20:09
2019-05-13T18:20:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,720
py
import datetime import persian as persian from constant.message import ReadyText from main_config import BotConfig from khayyam3 import * # def make_tweet_message(user_name, text, profile_image_url, favorite_count, retweet_count): # message = TextMessage( # ReadyText.tweet_message.format(text, user_name,...
[ "dr.enyacc@gmail.com" ]
dr.enyacc@gmail.com
4dd6abce27312bede65ef9f29a7d675967b34fe5
0f799b88204d002d655f48894a3095bf006f9d1f
/chapter12/file_pickle.py
282b759494246bb4280bf6f94244a262ea552c48
[]
no_license
liuyuzhou/pythonsourcecode
4008b4adf0342e61a1b6c03f12ab55ad04252e7e
476c75ff6b83953565175a66e21cad3139f06ad2
refs/heads/master
2020-05-16T01:39:20.518816
2019-04-22T02:48:49
2019-04-22T02:48:49
182,607,905
2
1
null
null
null
null
UTF-8
Python
false
false
74
py
import pickle d = dict(name='xiao zhi', num=1002) print(pickle.dumps(d))
[ "liuyuzhou@banggood.com" ]
liuyuzhou@banggood.com
69910e59f102ba32155314739d6b79edc1ef6e2f
b2aaa6491f43587a1be4a187d90f35bbd98b40fd
/ip.py
8a740593da60789e74977ceb7ba139007d109ec2
[]
no_license
burlakaann/Web-Applications
0beccd242877c66a94607d9531ca5c4d15f8a478
ad6f584f3094802a10460882aef5c904af76661c
refs/heads/master
2020-08-26T14:55:12.591464
2019-10-23T13:06:23
2019-10-23T13:06:23
217,046,887
0
0
null
null
null
null
UTF-8
Python
false
false
783
py
import socket ''' try: socket.inet_aton('127.0.0.1') except socket.error: print('niepoprawny ip') host = socket.gethostbyaddr('127.0.0.1') print(host) ''' ''' TCP_IP = 'google.com' TCP_PORT = 8080 try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) res = s.connect_ex((TCP_IP, TCP_PORT)) if ...
[ "annaburlaka2016@gmail.com" ]
annaburlaka2016@gmail.com
049e4a9ab11ab90ed899286b280e96eef25db4de
cadd27a5c72644fe87940e156e4f40f1131b9a57
/udemy/_internal.py
0cc13463a4fdad5b5c127e648080b4c565dc88a2
[ "MIT" ]
permissive
mrbrazzi/udemy-dl
1ef576800bd01ed2724911144a1fd8bad70b18f9
0f0a3ff00167b3b4614d5afc0d4dc6461e46be97
refs/heads/master
2022-11-13T17:41:38.170496
2020-07-01T18:17:24
2020-07-01T18:17:24
274,795,490
1
0
MIT
2020-06-25T00:16:33
2020-06-25T00:16:32
null
UTF-8
Python
false
false
6,961
py
#!/usr/bin/python # -*- coding: utf-8 -*- """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2020 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Soft...
[ "r0oth3x49@gmail.com" ]
r0oth3x49@gmail.com
3962f0dfe398f256afad9af62257fa997b33b941
4ec99265f150cd836b5131d2ef8852f6eee7d7df
/service/server/views.py
30b519e726b1c72162928fa7b0761c00e442d1de
[]
no_license
RabbitScorpion/pacs-tutorial
bc75c03d850cbe1fe247c8341fea6be4f0246e31
fb95e166a4c37606978893c50629701538c00ca9
refs/heads/master
2023-03-16T07:52:49.541549
2020-08-07T16:17:56
2020-08-07T16:17:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,894
py
from django.shortcuts import render from django.http import FileResponse from server import models import json import uuid from django.core import serializers from django.core.serializers.json import DjangoJSONEncoder # Create your views here. def read0(request): file = open('./testdcm/ImageFileName0080.dcm', 'rb')...
[ "1336700531@qq.com" ]
1336700531@qq.com
4937dc1421edfb4d04c5fe8aa2cc6b2d141e6ac8
f50b7f18de9531a2fd4f716761c2aeac46d85993
/Graven/Game/projectile.py
10bfdad8ca3f3317da2bfe6aa8e0af902738892c
[]
no_license
novenopatch/Youtube_formation
991171198940715725c3e9076648120b6145852a
81228baad47c0dcd65790ef47ecb9543ac55fa53
refs/heads/master
2023-07-05T16:53:30.851717
2021-08-19T11:47:19
2021-08-19T11:47:19
400,950,017
1
0
null
null
null
null
UTF-8
Python
false
false
325
py
import pygame class Projectile(pygame.sprite.Sprite): def __init__(self, player): super().__init__() self.velocity = 5 self.image = pygame.image.load("assets/projectile.png") self.image = pygame.transform.scale(self.image, (50,50)) self.rect = self.image.get_rect() ...
[ "homawoojoseph@gmail.com" ]
homawoojoseph@gmail.com
d943c91cab88a3b86bdd8960634c7db6251aac8e
d5e28d1c6d1db6dd2fed762e95e15e471578ca26
/funciones_2.py
f23bc9147e01240db754944f29121dd843991a8b
[]
no_license
keilacenal18/Maraton-UNDAV-python-
05c3c54f7f4329397bba03f8db87730952a5b066
755bf316135eb729cfe895645fc1e52beabec307
refs/heads/master
2020-03-25T18:37:14.996038
2018-08-08T18:09:29
2018-08-08T18:09:29
144,040,710
0
0
null
null
null
null
ISO-8859-1
Python
false
false
1,627
py
# -*- coding: cp1252 -*- from funciones_3 import convert_seg_hms, convert_hms_seg def calc_marca (h_lar,m_lar,s_lar,h_lleg,m_lleg,s_lleg): '''toma por parametro los valores ingresados en la funcion principal, invoca a la funcion del modulo Echegaray y realiza la resta entre los dos horarios para luego devol...
[ "38932958+keila1088@users.noreply.github.com" ]
38932958+keila1088@users.noreply.github.com
92b1ccac2bd3b68d0b912e8b0108da4b9e39b639
ad7fafe71647269b63268d8ba43e007c12761e87
/day-1-to-10/d4/treasure-map.py
00123a17e0831287b43bab256dc6ff36e27b02d2
[]
no_license
un-ro/python-100-days
cd6753ea9158bbceccf0fe2a3ca4e798fd226103
75f818fd4105ed2a0f65525e4f2f45cec29c2bca
refs/heads/main
2023-09-01T09:54:13.252111
2021-11-21T08:03:17
2021-11-21T08:03:17
425,699,171
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
# Day 4 Exercise: Treasure Map row1 = ["⬜️", "⬜️", "⬜️"] row2 = ["⬜️", "⬜️", "⬜️"] row3 = ["⬜️", "⬜️", "⬜️"] map = [row1, row2, row3] print(f"{row1}\n{row2}\n{row3}") position = input("Where do you want to put the treasure ?") col = int(position[0])-1 row = int(position[1])-1 map[row][col] = "💎" print(f"{row1}\n{...
[ "20809454+un-ro@users.noreply.github.com" ]
20809454+un-ro@users.noreply.github.com
63a81ae4e923ce800616af2fae0237f6c5fd8ed4
e0f469a686dd6a82ff1e1b492152ba28d1d7a759
/tests/test_grid.py
b5f261aabd4f5ac31fc39719b40e9c0574e763b4
[ "MIT" ]
permissive
agentultra/Horton
6bfc8ba2bd87bf287ae493064a83ad9461442f13
69d90f6bd18593f30cf497964201a3ad239a0f30
refs/heads/master
2018-12-29T02:11:07.689115
2014-01-17T03:49:21
2014-01-17T03:49:21
4,150,628
0
1
null
2013-08-18T14:59:16
2012-04-26T18:13:52
Python
UTF-8
Python
false
false
5,575
py
import unittest import weakref from horton import grid class TestGridSliceProxy(unittest.TestCase): def setUp(self): self.g = grid.Grid(5, 5) self.proxy = grid.GridSliceProxy(self.g, slice(1, 1), slice(3, 3)) def test_getitem(self): self.g[3, 3] = 1 self.assertEqual(self.pro...
[ "james@agentultra.com" ]
james@agentultra.com
9d441ee6318b2553430e476e4c3127a09500df46
401f1e80c367f1e909986a60e0fbe087ab82c700
/event_log_filter.py
acf90f659e1a73092e71c9c34219b730a943e887
[]
no_license
karuppaiya/process_mining-
ab1ba43de6ea0adaf533fea52f7768814f0ec46f
52ce1eba8c5dc2f373b6df000c61e9c29a85d90d
refs/heads/main
2023-06-05T11:23:45.241201
2021-07-01T14:40:38
2021-07-01T14:40:38
316,505,805
0
0
null
null
null
null
UTF-8
Python
false
false
2,086
py
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd # In[2]: df = pd.read_csv("trace.csv") # In[3]: df.columns # In[4]: df.shape # In[35]: len(df['concept:name'].unique()) # In[27]: first_last_event = [] for i in df['case:concept:name'].unique(): sub = df[df['case:concept:name'...
[ "noreply@github.com" ]
karuppaiya.noreply@github.com
41b5440e07e8716b838f36fcbe7349b339868d83
c6ddc6e07d691333ac7de36f9dfc9b0f1ddd7a66
/CS1/Hw1_divsub/div.py
b4c10498bb9e9e0103db9eaef9226d7b86f7ee6e
[]
no_license
janat-t/titech_comp
c239d2badb135138f794cc1db41a39b2a48a0f3a
df0882d33b826fa3d5d5bb71454c30600e9cf5f6
refs/heads/master
2023-02-17T01:49:45.408051
2021-01-13T12:01:10
2021-01-13T12:01:10
230,982,010
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
x = int(input("?x = ")) # user input y = int(input("?y = ")) # user input quotient = 0 # quotient remainder = x # remainder while remainder >= y: quotient += 1 remainder -= y print("x div y =", quotient) print("x mod y =", remainder)
[ "janat.taerakul@gmail.com" ]
janat.taerakul@gmail.com
4fcfa6677e4bbb3ad6648913c19083caf294f174
276ae1fa90ac2f11be7cbffe7f787b0810c38429
/flipsale/products/utils.py
d423fece6000b880038b5262849e7f6710848338
[]
no_license
sneha-lohana/django-project
15524470b08a21a4747e92334cd5d392f87eeef5
7df857fe8903b305ac28dfb25df6a5ad90f1425c
refs/heads/master
2020-11-27T16:37:42.297896
2020-02-18T06:16:13
2020-02-18T06:16:13
229,531,497
1
0
null
null
null
null
UTF-8
Python
false
false
1,316
py
import random, string from django.utils.text import slugify def random_string_generator(size=10, chars=string.ascii_lowercase + string.digits): return ''.join(random.choice(chars) for _ in range(size)) #code comp # s = "" # for i in range(size): # s = s+random.choice(chars) # return s def ...
[ "sneha.lohana16@gmail.com" ]
sneha.lohana16@gmail.com
9c2f9431c2f0534b5102ff353a164ddd36f192cd
cc5bdc851cc48050c869fced9373d8d5ff2af375
/env/bin/blackd
27925768ed945efeec7806234c78399a017c656a
[ "BSD-3-Clause" ]
permissive
vivekgupta1mg/miniprojectapp
fa6e4b8fd4565529b0c693a15abda5e5ce346dc4
2584a1696cc847767998c4fb5cf3413b006d6f67
refs/heads/master
2023-08-24T12:57:51.653656
2021-10-12T16:15:25
2021-10-12T16:15:25
416,296,679
0
0
null
null
null
null
UTF-8
Python
false
false
252
#!/Users/vivek/Desktop/sanic_3/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from blackd import patched_main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(patched_main())
[ "cons-vivek.gupta@1mg.com" ]
cons-vivek.gupta@1mg.com
c6797b273d4f47176fbabce82051b22717ecd28e
b61d5815a060dad9de0e4597f3a858359cf6b666
/venv/bin/dotenv
93a75e4a6f2953ec049124bd2dce3d41a97e8d5e
[]
no_license
thomasjpagonis/flask
5c47201a046b8a58ddf908985191451b65214cbd
041e0e78e9ce1ea37c0c3713b90490d786541cce
refs/heads/master
2022-11-23T12:00:45.466406
2020-07-28T21:54:34
2020-07-28T21:54:34
280,446,001
0
0
null
null
null
null
UTF-8
Python
false
false
239
#!/home/pi/Documents/microblog/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from dotenv.cli import cli if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(cli())
[ "thomasjpagonis@gmail.com" ]
thomasjpagonis@gmail.com
3b29475196e55b01c9672bfe50448f45d59c16f9
9ffd8754679f363f7c03fa2873dfd3b1f5af41a7
/UserRegistration/admin.py
90d6d157eb401162e4d94faa6e1e2727258d82ca
[]
no_license
cmrajib/django_fashion_ecommerce
54848c7f3f1ede349bad77533647cd161d86c413
141e87ad77f4a4503e487de8ad360789a9e272f4
refs/heads/main
2023-02-21T12:31:07.457942
2021-01-19T17:58:31
2021-01-19T17:58:31
331,065,005
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
from django.contrib import admin # Register your models here. from UserRegistration.models import User, Coupon class UserAdmin(admin.ModelAdmin): list_display = ('email', 'full_name') list_display_links = ('email', 'full_name') # list_filter = ('user__email','full_name','city') # list_editable = ('i...
[ "cmrajib@gmail.com" ]
cmrajib@gmail.com
f02baa1a15a4adfaff7695ebfebc0b1f113161d6
28093e725d3723af6567e641f6f5b8c236e5c7b9
/getscore.py
18f560dab82d9bb9e365f83592f7f8aae2b4ef7d
[]
no_license
uhgg459/shortcontentsentment
65d5ca82d5fd1b8f0d5b7af2d7c04b964757afe6
a87b800d6666c3ff79d6d8b494b037fcce290fb8
refs/heads/master
2021-07-22T15:43:58.312126
2017-11-07T04:14:24
2017-11-07T04:14:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,816
py
import copy import pandas as pd df_testrain=pd.read_csv('getmodel1.csv',encoding="gbk") df_train = pd.read_excel('泰一指尚训练集.xlsx') #要评的文件 df_testrain = pd.read_excel('***.xlsx') # a) 情感匹配正确数量:tp # b) 情感匹配错误数量:fp # c) 情感匹配漏判数量:fn1 # d) 情感匹配多判数量:fn2 tp,fp,fn1,fn2=0,0,0,0 for i in range(0,df_train.shape[0]): theme=d...
[ "751761610@qq.com" ]
751761610@qq.com
0ca34fab292798a669c8de348004e6a44c9e7507
2172fdab53b2a0b79f75ba0cd57f32be8984f28e
/docs/conf.py
41f86a2505b84b4719e39051a48d9c2305e3953d
[ "BSD-2-Clause" ]
permissive
ckot/python-news
9bb9a80a452bd8ef8c673f265fcc3cb21b5c947f
0c7c2ec420208fe2f835955d3ce73faec4844931
refs/heads/master
2020-04-07T19:28:22.016310
2018-11-22T06:28:41
2018-11-22T06:28:41
158,649,252
0
0
null
null
null
null
UTF-8
Python
false
false
1,354
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', 'sphinx.ext.ifconfig', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx.ext...
[ "ssilliman@pitt.edu" ]
ssilliman@pitt.edu
707325ccfbf17f557db71e91864a6c41af9291f1
fbd0d0bd05c1709cd698cc98b58e9347132bed7c
/tests/conftest.py
d7e2e9192a6137e32fa4b47378ddeb888c856007
[]
no_license
StanfordSocialNeuroscienceLab/communities-ema-feedback
0d01d1eac151158b20c3a505ffe13231144f5775
5408848e11956a11ba0aa03bffb258c9f3092e2c
refs/heads/master
2022-05-01T06:13:20.182496
2019-12-07T22:25:11
2019-12-07T22:25:11
223,049,350
0
0
null
2022-04-22T22:45:16
2019-11-20T23:50:57
HTML
UTF-8
Python
false
false
1,468
py
import os import tempfile import pytest from feedback import create_app from feedback.db import get_db from feedback.db import init_db # read in SQL for populating test data with open(os.path.join(os.path.dirname(__file__), "data.sql"), "rb") as f: _data_sql = f.read().decode("utf8") @pytest.fixture def app():...
[ "everett.wetchler@gmail.com" ]
everett.wetchler@gmail.com
984013456f56ade2cc7f39f24b3237704702d1fe
96b4408dc8943b34521f3ab1959aacb23616fa8e
/adjust_results4_isadog.py
d04393a5386aadf9dea6104e0710bd840558260e
[]
no_license
c-mcdonnell/Dog-Breed-Classifier
50caa265aea7c34a703ec762d130bb820033fda5
8ce7c55d24a78cd0e81c9a8f4c9917e5e2e60b51
refs/heads/master
2022-12-18T22:50:18.178749
2020-09-19T15:02:47
2020-09-19T15:02:47
283,799,374
0
0
null
null
null
null
UTF-8
Python
false
false
5,016
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # */AIPND-revision/intropyproject-classify-pet-images/adjust_results4_isadog.py # # PROGRAMMER: Cassidy M # DATE CREATED: 19 July 2020 # REVISED DATE: # PURPOSE: C...
[ "cmcd724@gmail.com" ]
cmcd724@gmail.com
b5aa8a920de266e4b7fb60ea573ed638ecf93516
ab4f74d127bfc89813ee359bb9c779eca5426ddc
/script/label_image.runfiles/org_tensorflow/tensorflow/python/ops/spectral_ops.py
101e33656cb9435c28ff2b5093959cbdf275dfad
[ "MIT" ]
permissive
harshit-jain-git/ImageNET
cdfd5a340b62862ad8d1cc3b9a0f30cccc481744
1cd4c2b70917e4709ce75422c0205fe3735a1b01
refs/heads/master
2022-12-11T12:47:46.795376
2017-12-19T05:47:26
2017-12-19T05:47:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
/home/co/Documents/ImageClassifier/tensorflow/tensorflow/python/ops/spectral_ops.py
[ "harshitjain1371999@gmail.com" ]
harshitjain1371999@gmail.com
fa00dc55b7191039833d1a3dea845bcd117e6125
55e9f3b00fc2e488597bab5225ed321c86efbd4b
/sdk/yapily/configuration.py
e060bb0c81cb4f122ad71cd083264392d20f804d
[ "MIT" ]
permissive
bs-yapily/yapily-sdk-python
ad9d04c28f3d744830734c3444c1cef8215206fd
0bba45e351b674eb655425a51190f539c4e9896f
refs/heads/master
2020-08-26T17:18:53.156429
2019-10-22T11:01:16
2019-10-22T11:01:16
217,085,936
0
0
null
null
null
null
UTF-8
Python
false
false
8,451
py
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 OpenAPI spec version: 0.0.155 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __fu...
[ "systems@yapily.com" ]
systems@yapily.com
621d2aad3eb42bb8dbd059d46d0a17ff7f170215
a8f6a8afd6b3609a947cafad5988d025454b4f9c
/datesFromLogs_Test.py
c15388862c6f16360d4caae0cd5764dee4ff4481
[]
no_license
andreodendaal/100DaysOfCode
aede59a6e1f3f3ada30a1a534548939a7b9b375f
282bf21c2d75fcd562ae935fa23e41a7c4c0cb45
refs/heads/master
2020-03-20T17:21:44.649611
2019-02-27T17:22:56
2019-02-27T17:22:56
137,557,756
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
import unittest from datesFromLogs_d2 import datetime, timedelta from datesFromLogs_d2 import loglines, convert_to_datetime, time_between_shutdowns class TestDatesFromLogs(unittest.TestCase): def test_convert_to_datetime(self): line1 = 'ERROR 2014-07-03T23:24:31 supybot Invalid user dictionary file' ...
[ "aodendaal.direct@gmail.com" ]
aodendaal.direct@gmail.com
4049996983313e176aa4972cf259096df6168fe7
eee6dd18897d3118f41cb5e6f93f830e06fbfe2f
/venv/lib/python3.6/site-packages/scipy/sparse/spfuncs.py
a5aeb7d325475944cf4927075b955f7bbfa4a436
[]
no_license
georgeosodo/ml
2148ecd192ce3d9750951715c9f2bfe041df056a
48fba92263e9295e9e14697ec00dca35c94d0af0
refs/heads/master
2020-03-14T11:39:58.475364
2018-04-30T13:13:01
2018-04-30T13:13:01
131,595,044
0
0
null
null
null
null
UTF-8
Python
false
false
2,759
py
""" Functions that operate on sparse matrices """ __all__ = ['count_blocks','estimate_blocksize'] from .csr import isspmatrix_csr, csr_matrix from .csc import isspmatrix_csc from ._sparsetools import csr_count_blocks def extract_diagonal(A): raise NotImplementedError('use .diagonal() instead') #def extract_d...
[ "georgeosodo2010@gmail.com" ]
georgeosodo2010@gmail.com