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
0b65a0a577f66a922a2ce3ea908ed06aa11bc88f
95a064d1cb2d9e7f4f4bbfa4eb0713e28b0a440f
/RPC/Rpc_Server.py
71251b18db5154acd823602a17f10f8397416125
[]
no_license
gopiprasanthpotipireddy/Python-RabbitMQ
89302dc6b6cdaf27a44b792fda967d87894d55b0
f2f3a9bb3c9d0cc0a5566a1fd94409fff3a6bbe6
refs/heads/master
2021-01-06T13:30:24.478384
2020-02-20T08:08:11
2020-02-20T08:08:11
241,343,309
1
0
null
null
null
null
UTF-8
Python
false
false
915
py
import pika connection = pika.BlockingConnection( pika.ConnectionParameters(host='localhost')) channel = connection.channel() channel.queue_declare(queue='rpc_queue') def fib(n): if n == 0: return 0 elif n == 1: return 1 else: return fib(n - 1) + fib(n - 2) def on_request(ch...
[ "gopiprasanthp@virtusa.com" ]
gopiprasanthp@virtusa.com
ea29d994f42ebba9d6dc03fdd1e97c8201db4622
5eacabadc016ff67b913d66b88a5002865ff71e4
/tests/archives/cvt_archive_test.py
db2b4925c8ccd9d5d0cde2a569dc41f08278a6a3
[ "MIT" ]
permissive
Nikitaskla/pyribs
8e3d0ac580130c5389826f7c518591842accaa15
ef289a930e7a8a51286cf657f7e4b29551277350
refs/heads/master
2023-07-03T16:59:55.656682
2021-08-01T09:39:51
2021-08-01T09:39:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,825
py
"""Tests for the CVTArhive.""" import unittest import numpy as np import pytest from ribs.archives import AddStatus, CVTArchive from .conftest import get_archive_data # pylint: disable = redefined-outer-name @pytest.fixture def data(use_kd_tree): """Data for CVT Archive tests.""" return (get_archive_data(...
[ "noreply@github.com" ]
Nikitaskla.noreply@github.com
67752a7742ec7157fc73cc678de0694074b589de
9567b87d380540ca9c92de5fda66981029b831d9
/Yaml Converter/MakeROSMap.py
241629d9bb44cef6f4ab2c9ca656b8b7279d43e9
[]
no_license
Dhaour9x/cSLAM
782d97fcc5b03aa878604f9dab9caced2fc1873e
78cf2a2847e02430f13cec924175a6d08c9aa32b
refs/heads/master
2022-10-29T14:59:24.337726
2020-06-13T19:03:27
2020-06-13T19:03:27
272,068,722
3
0
null
null
null
null
UTF-8
Python
false
false
4,189
py
import math import os.path import cv2 # # This is a start for the map program # import pywt.tests.data.generate_matlab_data #import pywt prompt = '> ' print("What is the name of your floor plan you want to convert to a ROS map:") #file_name = eval(input(prompt)) file_name = input(prompt) print("You will need to ch...
[ "riadh.dhaoui@rub.de" ]
riadh.dhaoui@rub.de
2b64d7c87cb71a336307dcbab4db4d5d324b4e43
95f1541cac9e356b108fd4a7698dccd469f3996e
/backend/app/misc/tasks.py
1b2ff7d1a667b0fef02eb0b51a72ae62a22e53c2
[]
no_license
ramonsaraiva/multiplicae
f98c29e57cf53e358540fd590d55472311d9c382
29054abc83bad2309ab66698d7f3f3bbd683d570
refs/heads/master
2023-08-15T00:07:51.203417
2020-02-19T02:57:24
2020-02-19T02:57:24
238,992,039
2
1
null
2021-09-22T18:35:52
2020-02-07T18:00:24
JavaScript
UTF-8
Python
false
false
114
py
import dramatiq @dramatiq.actor( queue_name='default', max_retries=1, ) def healthcheck(): return 0
[ "ramonsaraiva@gmail.com" ]
ramonsaraiva@gmail.com
12c48d5ff16675e2a8f6a2d902504de1ea724719
3540272eb4522c637fb293a924a6ad8d7b365718
/tribune/news/models.py
33b78f25b5e2b10758918424db9589c053a886ce
[]
no_license
nevooronni/tribune
b0e80a4613758690702fa88eb99f44f4e8e66a30
7218d3514277ce408128b4e8c66da5639cf7dec4
refs/heads/master
2021-08-14T16:55:46.280863
2017-11-16T08:41:18
2017-11-16T08:41:18
110,561,868
0
1
null
null
null
null
UTF-8
Python
false
false
2,167
py
from django.db import models#import models class configured to allow us to communicate with the db import datetime as dt class Editor(models.Model):#created editor class inherits from model class first_name = models.CharField(max_length = 30)#charfield is the sql equivalent to varchar a string field for small to l...
[ "nevooronni@gmail.com" ]
nevooronni@gmail.com
5299ea0fe7a31a54d5deabcb2c8a6f8591fb6325
09c9600eccc223db658cf3ae4f5292333f22e3e7
/orange_manage/apps.py
22b81363b9618573a1a15de6cad9de58f8099247
[]
no_license
sy159/order_background_management
d19bfd209475731dce24b6a26f824fe0ab43fb37
0f419376ed90aca85ef1f517927c7a2b1fc8e2b6
refs/heads/master
2022-03-08T17:48:10.000382
2019-11-27T12:16:57
2019-11-27T12:16:57
149,939,020
1
0
null
null
null
null
UTF-8
Python
false
false
99
py
from django.apps import AppConfig class OrangeMangeConfig(AppConfig): name = 'orange_manage'
[ "snow@cqgynet.com" ]
snow@cqgynet.com
0284b2f0d100aa1fb76d5248cd791f88aa401612
8052c4237d2ef6da92c386d3199937b26a47cc46
/ckuser/migrations/0021_auto_20190608_1148.py
607f18e7ce94a45bdeffbf2cde0440119f75d74d
[]
no_license
prateekagarwal721/ck_backedn
58f1039902bfb87b930986069c393c11ebef7c80
70e9449171153d5c7850999d25b4e5562c64d8f0
refs/heads/master
2020-06-01T00:16:25.144131
2019-09-12T16:43:17
2019-09-12T16:43:17
190,553,412
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('ckuser', '0020_auto_20190608_1147'), ] operations = [ migrations.Alter...
[ "prateek.agarwal@sporthood.in" ]
prateek.agarwal@sporthood.in
e7f5a53908b335955397208487dc62f8fbd7f14e
5ccd5739764468538a1b52cc43dfbc800e480a82
/Common_Word_Forms_1.py
cab16cb1a347b78118153858f693b6896ea3446a
[]
no_license
dhmo1900/Python-Base-Word-Form-Finder
5cad5913bcb54b488625e6a11f0f8c644dd103cb
8441b37472d3fdab495517af973785559d682626
refs/heads/master
2022-11-18T06:16:49.000407
2020-07-10T02:15:42
2020-07-10T02:15:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
from urllib import request from bs4 import BeautifulSoup import nltk import distance import pprint pp = pprint.PrettyPrinter(indent=2) def contiguous_string_matches(main_s, s_compare): if len(main_s) < len(s_compare): main_s, s_compare = s_compare, main_s for i in range(len(s_compare)): if s...
[ "thom.ives@gmail.com" ]
thom.ives@gmail.com
9b28a494fb6b543207c34e1d6e2846be94ab030c
fea5ab6175de05ede2808e26b72cb6de6ae52aba
/poker/validators/royal_flush_validator.py
f8f72202575e6b874cbe185d50f5c12738c1a85e
[]
no_license
phamin2001/Texas-Hold-em-Poker
7fc71d285307a96b1e1577889c3c996b503d81e2
2299a25c2725b430c43e59879e903a656c8fca19
refs/heads/master
2022-11-12T14:02:42.491005
2020-07-07T06:18:04
2020-07-07T06:18:04
271,067,496
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
from poker.validators import StraightFlushValidator class RoyalFlushValidator(StraightFlushValidator): def __init__(self, cards): self.cards = cards self.name = "Royal Flush" def is_valid(self): straight_flush_validator = StraightFlushValidator(cards=self.cards) if straight_fl...
[ "amin.pahlavani@gmail.com" ]
amin.pahlavani@gmail.com
55a5c60123c11c03dbae53d05a091e926626cf67
4807c5ce0bcbb7f3c678f21a0e02f586ef1862e2
/grainburn/grainburn.py
913730da3de86f1db42d47328385357b2e9aa961
[]
no_license
JacobRoth/JacobRothSketchbook
91ecb74ac993304b2959448f71da61920c0b1d60
c36c130dfc64a946adbdf88a2cb0b687de359e53
refs/heads/master
2021-03-12T23:15:17.217630
2014-04-01T20:24:56
2014-04-01T20:24:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,785
py
import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np import random import math def convertDown(image): rows,columns,_ = image.shape bufferedImage=np.eye(rows,columns) for row in range(0,rows-1): for column in range(0,columns-1): if image[row][column].all()...
[ "rothj1459@gmail.com" ]
rothj1459@gmail.com
bfe91353f94b7324769a5908cb44a049673dd6e2
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/287/85098/submittedfiles/testes.py
890ae53b050f276e8465ffbca31d1de6d83407c7
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
# -*- coding: utf-8 -*- from minha_bib import* print(multiplicacao(2,3))
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
5732900ceff22c44e5544b54d08656cd21a9af39
a80e0ad5821b4d83164f16c0f04a0559cba4c3e8
/papadimitriou/papadimitriou.py
cf902885d165167418c2414ae66c2029031d3867
[]
no_license
vnck/2SATSolver
e5645e22f4cef5a1da058ef659e6cc2e333eda0f
a7a29e01f2adc050819bb141e4c13924baa7b4fb
refs/heads/master
2020-04-01T04:51:02.144623
2018-10-31T08:17:55
2018-10-31T08:17:55
152,879,312
0
0
null
null
null
null
UTF-8
Python
false
false
2,358
py
import random import os import fileinput import math import time clauses = [] variables = [] def papadimitriou(fileName): text = open(fileName).read() lines = text.split("\n") lines = [line.strip().split(" ") for line in lines] varSize = int(lines[2][3]) clauses = [[int(line[0]),int(line[1])] for ...
[ "noreply@github.com" ]
vnck.noreply@github.com
50d9115c118e9ba2d5ebc6b7d58c98818ecd010c
bd4734d50501e145bc850426c8ed595d1be862fb
/7Kyu - Growth of a Populationdef nb_year-p0- percent- aug- p- count - 0 while-p0-p- p0 - p0 - p0-percent/7Kyu - Growth of a Population.py
1259b444757fdd602a08df17a598257ae2dcc7d2
[]
no_license
OrdinaryCoder00/CODE-WARS-PROBLEMS-SOLUTIONS
f61ff9e5268305519ffeed4964589289f4148cfd
5711114ddcc6a5f22f143d431b2b2e4e4e8ac9fb
refs/heads/master
2021-10-23T09:09:45.670850
2019-03-16T13:24:17
2019-03-16T13:24:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
def nb_year(p0, percent, aug, p): count = 0 while(p0<p): p0 = p0 + p0*(percent/100) + aug count = count + 1 return count
[ "noreply@github.com" ]
OrdinaryCoder00.noreply@github.com
902d047c818eadc130281316b90cfde772634bd0
6b1aaded6a6d7ad8133eb93f5570d087b9ecefc0
/57.py
a778a4be509d89c1f7027528296bead44d2f43f7
[]
no_license
huangyingw/Leetcode-Python
53a772e1ecf298c829c0f058faa54c420420b002
9513e215d40145a5f2f40095b459693c79c4b560
refs/heads/master
2021-07-16T10:10:02.457765
2020-07-01T05:35:21
2020-07-01T05:35:21
192,150,219
1
0
null
null
null
null
UTF-8
Python
false
false
813
py
# Definition for an interval. # class Interval: # def __init__(self, s=0, e=0): # self.start = s # self.end = e class Solution: def insert(self, intervals, newInterval): """ :type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval] ...
[ "tiant@qualtrics.com" ]
tiant@qualtrics.com
d2303e3bc513f042b2df38e56dd4badb36243be0
80d32b5911a1d9527c357d02690ba47cb362aca7
/app/routes.py
a3f5b1f4632c0330de02a3c0da70813d268b46c7
[]
no_license
Shikhar-SRJ/flaskapp_CI_CD
0a12a4f11b10cef6dc630714b279a88c2f065f42
225a399b2ec98848cc8ff5ac11d5d0e5e2fc7b37
refs/heads/main
2023-08-23T17:18:50.183350
2021-10-25T05:54:37
2021-10-25T05:54:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,137
py
from app import app, db from flask import render_template, flash, url_for, redirect, request from app.forms import LoginForm, RegistrationForm, EditProfileForm, EmptyForm, PostForm, ResetPasswordRequestForm, ResetPasswordForm from flask_login import login_user, current_user, logout_user, login_required from app.models ...
[ "ptksuraj@gmail.com" ]
ptksuraj@gmail.com
3f7c1ecec5f580016a5068bd48f1de2040b2bf6b
0a801544da5ad2f1969348512f7def8fa9176c7d
/backend/simplicite_23801/urls.py
25d91cd59bdf8a1ad01544b6a94abcbe42abf6ab
[]
no_license
crowdbotics-apps/simplicite-23801
75477b76531c2c53992f74183e9e2e80aefd22e4
e6a6f569c61449e50988201cf58cc5203d23e039
refs/heads/master
2023-02-11T12:27:04.807579
2021-01-13T03:01:57
2021-01-13T03:01:57
329,176,579
0
0
null
null
null
null
UTF-8
Python
false
false
2,668
py
"""simplicite_23801 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
5ff636a6548041d3e2e3d0bf15865a94696a1f08
99364458e4fe84fc006fd90b7924915e23d2406f
/risk_assess/uncertain_agent/test_python_cpp_interface.py
2636ca4ccddb59383a5ae78441da7716962fe570
[]
no_license
yangkaia123/risk_assess
27cf4991f0901960dc74983fe76d735054f6bcc1
8da6a2d7e4332ebc7ee8d73202c56688167daedb
refs/heads/master
2023-05-15T09:04:52.220295
2020-07-12T20:23:38
2020-07-12T20:23:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,702
py
import ctypes from ctypes import cdll class AMS(ctypes.Structure): _fields_ = [('E_x', ctypes.c_double), ('E_y', ctypes.c_double), ('E_xy', ctypes.c_double), ('E2_x', ctypes.c_double), ('E2_y', ctypes.c_double), ('E_xvs', ctypes.c_doub...
[ "allenw@mit.edu" ]
allenw@mit.edu
57b906c83a2d61619b54bb2afe90bb43616f21ce
4111ca5a73a22174f189361bef654c3f91c3b7ed
/Lintcode/Ladder_47_BigData/128. Hash Function.py
6d7607ff24020011e66b6d9c8c4b6774644f2261
[ "MIT" ]
permissive
ctc316/algorithm-python
58b541b654509ecf4e9eb8deebfcbdf785699cc4
ac4580d55e05e93e407c6156c9bb801808027d60
refs/heads/master
2020-03-16T06:09:50.130146
2019-08-02T02:50:49
2019-08-02T02:50:49
132,548,222
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
class Solution: """ @param key: A string you should hash @param HASH_SIZE: An integer @return: An integer """ def hashCode(self, key, HASH_SIZE): code = 0 for ch in key: code = (code * 33 + ord(ch)) % HASH_SIZE return code
[ "mike.tc.chen101@gmail.com" ]
mike.tc.chen101@gmail.com
3f64960bfcafeb82116b2ca0f42b1115cc47d3b8
974e81ec41f32900f3bd633f251227ed352edd79
/examples/01-simple.py
18a9cd86210e21059edda91d9e801f77f44de2b6
[ "MIT" ]
permissive
defcon201/wikipedia_ql
a3321f8bc43308b92fadfe40c1913d7644e8c666
5bae4ed8d1fbf9ba9c818d02a4a0905a97f31cd9
refs/heads/main
2023-08-25T22:33:12.148362
2021-10-13T19:26:03
2021-10-13T19:26:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# Simple fetching of just a few properties from one pages from pprint import pprint from wikipedia_ql import media_wiki wikipedia = media_wiki.Wikipedia(cache_folder='tmp/cache') pprint(wikipedia.query(r''' from "Pink Floyd" { section[heading="Discography"] >> li { a as "title"; t...
[ "zverok.offline@gmail.com" ]
zverok.offline@gmail.com
2c0897784bb77d41c6320fddcb72b830ce8528cb
53d23ecc25f53323e3cc2a22d2dc5fe6d9ffae57
/electrum/plugins/gpg_integration/__init__.py
258671bccf6d879b16f55cc1a1bc85ab1592361a
[ "MIT" ]
permissive
asfin/electrum
b10df9f7a51d9515d6a0ec03f7a4d2fdd7331f37
9abf5cda9b2906a0575b3629bccc4b1ceed8df49
refs/heads/master
2021-01-13T06:54:03.918146
2018-04-24T10:14:20
2018-09-07T14:57:00
34,674,696
2
2
null
2017-02-14T08:03:09
2015-04-27T15:27:36
Python
UTF-8
Python
false
false
250
py
from electrum.i18n import _ fullname = _('GPG integration') description = ''.join([ _('Allows to use your bitcoin private keys as familiar GPG keys'), '<br>', _('Open plugin window from main menu Tools->GPG tools') ]) available_for = ['qt']
[ "asfins@gmail.com" ]
asfins@gmail.com
be90578add9db3c84ccf82cfd059d0f9b9a205d0
c697fa30fbcb3af706318be11dd0445c817c0b68
/ACM ICPC Team.py
f21a0fc3b918845a587892df9deb17682cb4a0f9
[]
no_license
VishalDeoPrasad/HackerRank-Python
59df8ccd128d602dd0b28a4abf017608b1496486
7090634e806a88b7934e16a628a1edd97ba85a28
refs/heads/master
2023-05-01T00:33:56.371330
2023-04-28T10:06:10
2023-04-28T10:06:10
160,024,108
3
0
null
null
null
null
UTF-8
Python
false
false
734
py
def normalize_string(topic): new_topic = [] for i in range(len(topic)): temp_lst = [] for j in range(len(topic[0])): if topic[i][j] == '1': temp_lst.append(j+1) new_topic.append(temp_lst) temp_lst = [] return new_topic def ac...
[ "vishaldeoprasad@yahoo.com" ]
vishaldeoprasad@yahoo.com
df437ae369a37495789bc3dcddaf0479010d41ea
728416d6e4dba67a0a85276f76bd59d3e857a284
/project/urls.py
0786cd4530e24ae874365301c1e96fa0b4aa8a99
[]
no_license
samilani/avacado
c80a4c21480d86b1c6cde05245464ed077d90221
c08e41f851e6e575775ef52750089013f386cd1a
refs/heads/master
2020-06-06T16:26:11.183489
2013-11-12T12:35:16
2013-11-12T12:35:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
from django.conf.urls import patterns, url from project import views urlpatterns = patterns('', url(r'^$', views.index, name='index'))
[ "milani.ahmad@gmail.com" ]
milani.ahmad@gmail.com
0bdd466da74a7ca034ecd75ac4369832698933fc
cf582a6c4a45db58666dc2de66cfb7cdc50151e4
/account/authentication.py
704682ce691f91ac4cdf86b326a676cce94b66c9
[]
no_license
NankuF/bookmarks
361def76d0d3ad42ff0103371a576f4cd4bddaaf
88cd24cc6909211b3bfc90960891965c2e4e5605
refs/heads/master
2023-08-20T06:57:01.098014
2021-10-24T10:55:08
2021-10-24T10:55:08
413,335,312
2
0
null
2021-10-08T06:01:39
2021-10-04T08:24:05
Python
UTF-8
Python
false
false
1,450
py
from django.contrib.auth.models import User class EmailAuthBackend(object): """Выполняет аутентификацию пользователя по email Идентификационные данные сначала будут проверены ModelBackend ( см. в settings.py). Если этот бэкэнд не вернет объект пользователя, Django попробует аутентифи- циро...
[ "71669154+NankuF@users.noreply.github.com" ]
71669154+NankuF@users.noreply.github.com
bd788fa1d51cbbadecdea78fe391360278fae038
d420f185ad12f0c963b0863a3ecaabbf5331527a
/HW5/reciprocal.py
8f0529ed8228699bc12c8d3653d33a9aba73b557
[ "MIT" ]
permissive
amitpatra/ISYE-6669-Deterministic-Optimization
b8357272a87a39554fe28e4074ccd60274cfa99a
0d6eefaa34f3e8e909f4109504fc3e2212d8725f
refs/heads/main
2023-03-21T04:54:32.678888
2020-12-20T19:47:08
2020-12-20T19:47:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,486
py
# Implement the Linear Reciprocal Maximization problem import gurobipy as gp import numpy as np from gurobipy import * id = 903515184 # Invoke Gurobi to solve the SOCP def solve_socp(id, m=400, n=50): gm = gp.Model("reciprocal") A, b = get_data(id, m, n) # print(A.shape, b.shape) # (400, 50...
[ "noreply@github.com" ]
amitpatra.noreply@github.com
4d909ba4892e6c9c564466ba0ea7fe903b3857ab
8bc7ba8eb10e30b38f2bcf00971bfe540c9d26b7
/paxes_cinder/k2aclient/v1/virtualswitch_manager.py
6d956eb5bdf9ebcdab6aba2f1378e4c6151dbbdc
[ "Apache-2.0" ]
permissive
windskyer/k_cinder
f8f003b2d1f9ca55c423ea0356f35a97b5294f69
000ee539ee4842a158071d26ee99d12c7c0a87da
refs/heads/master
2021-01-10T02:19:51.072078
2015-12-08T15:24:33
2015-12-08T15:24:33
47,629,931
0
0
null
null
null
null
UTF-8
Python
false
false
1,938
py
# # # ================================================================= # ================================================================= """VirtualSwitch interface.""" from paxes_cinder.k2aclient import base from paxes_cinder.k2aclient.v1 import k2uom class VirtualSwitchManager(base.ManagerWithFind): """Mana...
[ "leidong@localhost" ]
leidong@localhost
0509f599fc55aff09422b32059466ba37f55ba10
4b7deb5769a689a333efe7b3a32a6a0ac69d67bc
/windows/samples/python/sample_open3d_pclviewer.py
bb7249a9ea684bcdb953b157657f6deb39961a14
[]
no_license
ZC1231/SDK
cadc4b884b2f05fbd0d4b72448ea60e76c00fbae
13bc36b5ce8a76a30ad4d469a00e8df75203abfb
refs/heads/master
2022-11-29T06:12:49.086402
2020-08-11T12:38:33
2020-08-11T12:38:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,071
py
import sys, os import numpy as np import time import open3d as o3d import dmcam # -- init the lib with default log file dmcam.init(None) # -- init with specified log file # dmcam.init("test.log") # -- set debug level dmcam.log_cfg(dmcam.LOG_LEVEL_INFO, dmcam.LOG_LEVEL_DEBUG, dmcam.LOG_LEVEL_NONE) # -...
[ "U1@ip-192-168-254-95.cn-northwest-1.compute.internal" ]
U1@ip-192-168-254-95.cn-northwest-1.compute.internal
e463337960661352eec76273356b1323176686ca
04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29
/170/Solution.py
1ece9965f93617191e3d6e484aeefd64c54f0c67
[]
no_license
zhangruochi/leetcode
6f739fde222c298bae1c68236d980bd29c33b1c6
cefa2f08667de4d2973274de3ff29a31a7d25eda
refs/heads/master
2022-07-16T23:40:20.458105
2022-06-02T18:25:35
2022-06-02T18:25:35
78,989,941
14
6
null
null
null
null
UTF-8
Python
false
false
2,272
py
""" Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure. find - Find if there exists any pair of numbers which sum is equal to the value. Example 1: add(1); add(3); add(5); find(4) -> true find(7) -> false Example 2: add(3...
[ "zrc720@gmail.com" ]
zrc720@gmail.com
aaa856e1b4ceb5000f6ed483577d1b5f78a93e9b
0ddcf5569f3214583ceb8ce65734d087bfe6e26f
/main.py
3dcd6c61f282de0d01112405ddb4c6b2c9cc6a6e
[]
no_license
kubawirus/pythonCanteraTrial
ad8ebab2173e3761ee77afcef5864cc73d35b600
f9455a312c0deb52f6fa189532c6a497fc4fb2e5
refs/heads/master
2023-05-01T05:12:27.325423
2021-05-11T12:24:44
2021-05-11T12:24:44
364,248,420
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
import cantera as ct import numpy as np
[ "k.wieremiejczuk@gmail.com" ]
k.wieremiejczuk@gmail.com
c826ef5b94146713cbfb40ea8d2456a72ea50850
11137bde91389c04a95df6f6fdaf64f7f49f5f80
/introduction_MIT/16_2图表会骗人.py
582608abe22748eee617a7fb4bb7c90df1af46fb
[]
no_license
starschen/learning
cf3c5a76c867567bce73e9cacb2cf0979ba053d9
34decb8f9990117a5f40b8db6dba076a7f115671
refs/heads/master
2020-04-06T07:02:56.444233
2016-08-24T08:11:49
2016-08-24T08:11:49
39,417,895
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
#encoding:utf8 #16_2图表会骗人.py #绘制房价 import pylab def plotHousing(impression): '''假设impression是一个字符串,必须是‘flat’, ‘volatile’或者是‘fair’ 生成房价随时间变化的图表''' f=open('midWestHousingPrices.txt','r') #文件的每一行是年季度价格 #数据来自美国中部区域 labels,prices=([],[]) for line in f: year,quarter,price=line.split(' '...
[ "stars_chenjiao@163.com" ]
stars_chenjiao@163.com
0aa438918ed4b7436f3f4cf20ae451e99c599526
676edefaffabb933fe9336cf6c23aa049b6962b4
/mysite/cats/models.py
b74bb144c9ec6ebc480b5adf2e2c672e4cc65abd
[]
no_license
danielbaraniak/zadania-rekrutacyjne
917b2785e0d8e867e66ebe610f4deb4f147f8984
fba379c4688275f0328012cffef525bfb1e93848
refs/heads/main
2023-08-25T14:37:02.430574
2021-10-25T00:50:34
2021-10-25T00:50:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,367
py
from django.contrib.auth.models import User from django.db import models class Cat(models.Model): user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True) name = models.CharField(max_length=50) color = models.CharField(max_length=20) is_male = models.BooleanField() def get_prays_numbe...
[ "daniel@example.pl" ]
daniel@example.pl
5f844ff0add74663d1b5f8196c9802f858ac8f5b
ea384acfec1ae21bc8583258ecaa187ded4b22d6
/data/base/prototypes/entity/miningDrills.py
9f855b6f52051c33e371df5debe3a40a633cb7d9
[ "MIT" ]
permissive
cmk1988/Jactorio
da03e97d0fa8bfbf9428e45aa2e4772c0ea9542b
4056b4c16614d566ec8d90b250621e03645bf4d2
refs/heads/master
2023-03-28T03:05:24.337666
2021-03-13T20:31:30
2021-03-13T20:31:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
import jactorioData as j def addSprite(spritePath): return (j.Sprite() .load(spritePath) .frames(8) .sets(8) ) def createDrill(name, icon, spriteN, spriteE, spriteS, spriteW): (j.MiningDrill(name) .rotatable(True) .pickupTime(0.1) ...
[ "jaihysc@gmail.com" ]
jaihysc@gmail.com
c886c20cf7de550debdfb0a88d9edcbafb45a992
0726db2d56b29f02a884885718deeddbf86df628
/lienp/visualize.py
af217e55f8ec1524e381eb022bcd47bbb2f01101
[]
no_license
makora9143/EquivCNP
515dfd95557d8d3a21d3fc0f295ce885a9deb913
a78dea12ab672e796c86427823c9f1b2fdd8df8d
refs/heads/master
2023-03-17T04:34:26.320055
2021-03-05T18:02:18
2021-03-05T18:02:18
254,292,834
5
0
null
null
null
null
UTF-8
Python
false
false
4,239
py
import io import PIL.Image import matplotlib.pyplot as plt import torch from torchvision.transforms import ToTensor, ToPILImage from torchvision.utils import make_grid def mnist_plot_function(target_x, target_y, context_x, context_y): img = torch.zeros((28, 28, 3)) img[:, :, 2] = torch.ones((28, 28)) i...
[ "makoto.kawano@gmail.com" ]
makoto.kawano@gmail.com
fcb2435eb093fb368a090ef2efed05fd1120970b
2e83b09448d2756ac0c8f77568086763391a43c8
/trackback.py
6014ed7933bc4f0d5720fe1f24124721456b4d4e
[]
no_license
raghvendra98/Computer-vision-OpenCV
f298cee5600bff7abfdaf9cc69ae1793affeb923
084b8f4061b3871a2103680af73301629f18df32
refs/heads/master
2023-02-17T01:45:53.735727
2021-01-16T13:42:31
2021-01-16T13:42:31
320,251,637
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
import numpy as np import cv2 as cv def nothing(x): print(x) # Create a black image, a window cv.namedWindow('image') cv.createTrackbar('CP', 'image', 10, 400, nothing) switch = 'color/gray' cv.createTrackbar(switch, 'image', 0, 1, nothing) while(1): img = cv.imread('trex.png') pos = cv.getTrackbarPos(...
[ "50679225+raghvendra98@users.noreply.github.com" ]
50679225+raghvendra98@users.noreply.github.com
d155707dd0625574b9dc3d610d97d6cc26fbfe3f
8c2d17c1dd5409d63bde7907cdee4adaf4e9443a
/day_3.py
81eac927ebee6866133652e83eeba8b84259704f
[]
no_license
kmb5/AdventOfCode2019
f4099686028f7ddd5895918c9c55a7080936cc8c
f10dce035d6134800b4c83e07e1aa2a40061f49e
refs/heads/master
2020-12-01T21:19:46.357511
2019-12-30T09:41:20
2019-12-30T09:41:20
230,774,194
0
0
null
null
null
null
UTF-8
Python
false
false
2,653
py
#import pygame #from pygame.locals import QUIT from PIL import Image, ImageDraw def main(): filename = 'inputs/day_3_input.txt' with open(filename) as f: puzzle_input = f.read().splitlines() solution_part_1 = part_1(puzzle_input) print(f'Part 1 solution: {solution_part_1}') ...
[ "noreply@github.com" ]
kmb5.noreply@github.com
1b2a6c3181548e466eacfa3b040cbc883242e73b
35f1a21affd266e0069bfc5a1c83218847f13802
/pastie-5073437.py
9cc5c027ce00562a66e8461c02cfa8768964c92c
[]
no_license
KarenWest/pythonClassProjects
ff1e1116788174a2affaa96bfcb0e97df3ee92da
5aa496a71d36ffb9892ee6e377bd9f5d0d8e03a0
refs/heads/master
2016-09-16T15:20:26.882688
2014-02-21T20:07:57
2014-02-21T20:07:57
17,055,355
1
1
null
null
null
null
UTF-8
Python
false
false
772
py
#balance = 5000 #annualInterestRate = 0.18 #monthlyPaymentRate = 0.02 months = range(1, 13) # 1, 2, ... , 11, 12 owe = balance # It made sense to me to call this total amount oweing totalPaid = 0 for month in months: minPay = owe * monthlyPaymentRate # calculate our minimum payment interest = (owe - minPay) *...
[ "KarenWest15@gmail.com" ]
KarenWest15@gmail.com
d906c6552a6f100ecb942e4634c4b7e28aa9643d
e5cf384933ccc0b54edfc1e775e56586bc100f74
/pixiv_downloader/pixiv_downloader.py
1f858e4e6da6edd7f92feb021b5f5213814f07ce
[]
no_license
Einsbon/DeepLearning-with-Pixiv
bda902c07a955fe3bff081fb10986ca7e2fdaad0
642aadc892766623a5f861ab448975f36deab8ce
refs/heads/master
2020-03-28T14:30:19.162858
2018-09-12T18:48:56
2018-09-12T18:48:56
148,493,338
0
0
null
null
null
null
UTF-8
Python
false
false
5,885
py
from selenium import webdriver from bs4 import BeautifulSoup import time import urllib.request import urllib import getpass import os import shutil phantompath = r'C:\Users\Einsbon\Documents\Python_Projects\python_window\crawler\pixiv_low_quality_image_crawler\phantomjs.exe' chromepath = 'C:\\Users\\Einsbon\...
[ "noreply@github.com" ]
Einsbon.noreply@github.com
51bacc265849e99d5638fe2aa84fb25204c57781
a0dda8be5892a390836e19bf04ea1d098e92cf58
/叶常春视频例题/chap05/5-2-9-生词清单.py
6c9697103cde9015e7e96499929c29627c18643d
[]
no_license
wmm98/homework1
d9eb67c7491affd8c7e77458ceadaf0357ea5e6b
cd1f7f78e8dbd03ad72c7a0fdc4a8dc8404f5fe2
refs/heads/master
2020-04-14T19:22:21.733111
2019-01-08T14:09:58
2019-01-08T14:09:58
164,055,018
1
0
null
null
null
null
UTF-8
Python
false
false
307
py
# 例5-2-9 生词清单 new_words = [] for i in range(1, 101): word = input("输入生词:") if word == "*": break # break语句的作用是跳出循环,执行循环后面的语句。 if word not in new_words: new_words.append(word) print("生词清单:", new_words)
[ "792545884@qq.com" ]
792545884@qq.com
a4e7a4cadea98270cebf7bd8ab170c2f030ac42c
f0ec40da9043db89265b2f90f7c77f896b9344aa
/instaclone/migrations/0004_auto_20170724_0943.py
8a0c180cc08c42cdb1e0a091134b137a40d1d4c7
[]
no_license
shivajaat/InstaClone
9c5547837ec639195a93f316dcd82703d2e0b621
c0cabe48abde151920c5a480738523acee819a84
refs/heads/master
2021-01-02T08:35:36.497159
2017-08-01T17:16:11
2017-08-01T17:16:11
99,025,465
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-24 04:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('instaclone', '0003_auto_20170724_0940'), ] operations = [ migrations.AlterF...
[ "shivajaat21@gmail.com" ]
shivajaat21@gmail.com
b6accd03937aff683e9c67bcc79daa3e0d5517c3
5f80ca7e63eef57c044d937d60a6e3d6e8f138cc
/b2week4.py
adebb2539d6fac6ce435a543badb661b745bb0e4
[]
no_license
sjerkovic/Bioinformatics-specialization
49125231650a2db1423f3f2ef49130e99b754bd6
1d599934675c8663a61fdedd8944aea0e2cd8ea6
refs/heads/main
2023-04-15T20:31:33.249693
2021-05-02T22:11:42
2021-05-02T22:11:42
363,510,584
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
def spectral_convolution(spectrum): spectrum_int = sorted([int(v) for v in spectrum.split()]) convolution = [] for i in spectrum_int: for j in spectrum_int: a = i-j if a>0: convolution.append(a) return convolution
[ "noreply@github.com" ]
sjerkovic.noreply@github.com
323801345ddf65b4f2d46b72eae6c8c91ab6e767
11147666888ce8a0d6bd540b1d1d4bf7a788f4bb
/server/botserver.py
84f5477d38903f2a824ba9d8243e8d3f9b0b299b
[ "MIT" ]
permissive
Kileak/Kileak-Slack-Base-Bot
4ef4312955db30e54dd36e2f50e279c33af7fce2
5a1c14b96383f4d5bbbde87670d4f080530c4fdf
refs/heads/master
2021-01-20T08:24:33.079050
2017-09-07T12:20:43
2017-09-07T12:20:43
101,556,351
0
0
null
null
null
null
UTF-8
Python
false
false
5,200
py
import json import threading import time from slackclient import SlackClient from handlers.handler_factory import * from handlers import * from util.loghandler import * from bottypes.invalid_console_command import * class BotServer(threading.Thread): # global lock for locking global data in bot server threa...
[ "razor99@gmx.de" ]
razor99@gmx.de
d4e630393d97b23b24b61c540310af9eced66716
4d4fcde3efaa334f7aa56beabd2aa26fbcc43650
/server/src/uds/core/managers/userservice/comms.py
e2b06381d46b8a78ab640c8bf0c609b7fff00dda
[]
no_license
xezpeleta/openuds
a8b11cb34eb0ef7bb2da80f67586a81b2de229ef
840a7a02bd7c9894e8863a8a50874cdfdbf30fcd
refs/heads/master
2023-08-21T17:55:48.914631
2021-10-06T10:39:06
2021-10-06T10:39:06
414,489,331
1
0
null
null
null
null
UTF-8
Python
false
false
7,264
py
# -*- coding: utf-8 -*- # # Copyright (c) 2019-2021 Virtual Cable S.L.U. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright not...
[ "dkmaster@dkmon.com" ]
dkmaster@dkmon.com
abb8d377bfc14fc3f720ebee1401edf33b988493
e0ea106f98cf3bff4a9473d4b225f56da60314d6
/percy/__init__.py
a1e13d8a562a1a9380d0e06e996b210fa34e65a9
[ "MIT" ]
permissive
getsentry/python-percy-client
e80dbf257a168cd08ed2af4cf0fbcc80f20ddaac
c3a80ed567ad40b2f1eaaea76f0886aa6f0367eb
refs/heads/master
2023-08-05T23:24:46.855782
2017-07-14T00:45:20
2017-07-14T00:45:20
97,176,225
1
2
MIT
2020-10-27T22:44:01
2017-07-14T00:32:31
Python
UTF-8
Python
false
false
285
py
# -*- coding: utf-8 -*- __author__ = 'Perceptual Inc.' __email__ = 'team@percy.io' __version__ = '1.0.1' from percy.client import * from percy.config import * from percy.environment import * from percy.resource import * from percy.resource_loader import * from percy.runner import *
[ "mike@fotinakis.com" ]
mike@fotinakis.com
0e185c34961eff4289c4c9d576294c3a43be2ae6
4dd9a94828221013244d56443ce988b49c749523
/neural_net.py
589a7d86c407d6c653e2bd7c4fd28d4e7a919928
[]
no_license
dhorrall/deep_learning_foundations
e452084d91c684ebc9d54de452041ecff2704733
714457299508bf9b7a5b3b18dd260c842c432cfe
refs/heads/master
2021-01-09T06:16:20.121329
2017-06-06T14:27:49
2017-06-06T14:27:49
80,946,135
0
0
null
null
null
null
UTF-8
Python
false
false
3,106
py
''' Created on Jan 29, 2017 @author: derekh1 ''' from numpy import exp, array, random, dot class NeuralNetwork(): def __init__(self): # Seed the random number generator, so it generates the same numbers # every time the program runs. random.seed(1) # We model a single neuron, wit...
[ "derekh1@oc7043351046.ibm.com" ]
derekh1@oc7043351046.ibm.com
54256fc282316da722359a762ee5dc1ab76d62a0
09c4fef0e8941a40b5cdd1b1f689031361852727
/csvwriter.py
d1aef78e356fdc96b6f3a281462513cd9776bdd1
[]
no_license
jw910731/NTNU_TextProcessing_Final
c109fa3d1c391638817902c2fb5073e9063ad1a8
3ce60778b4868251e9de4e2a980b3f118a9c0352
refs/heads/main
2023-02-12T20:06:20.516885
2021-01-12T07:31:01
2021-01-12T07:31:01
307,621,039
0
0
null
null
null
null
UTF-8
Python
false
false
114
py
import pandas as pd def csvwrite(DICT): pd.DataFrame(DICT).to_csv('output.csv', header=True,encoding='utf-8')
[ "adam20001002@gmail.com" ]
adam20001002@gmail.com
8d44b23e3c33f8af0e8609deae0bf22a79867a27
20d87b9d0bac919a7fd9c07af940b5813784b1f6
/flask_sqlite_sqlalchemy/app.py
8d3f610ac364d8124add2dd5a33a4f9698ada2e7
[]
no_license
anacarolinacv/api-python-flask-example
679e26bc5a43e64aab2457b95ba1013bad951056
96438e369084af6e8f6bcd02f437e331b6b67abe
refs/heads/main
2023-06-20T00:01:56.811601
2021-07-15T01:15:49
2021-07-15T01:15:49
386,044,169
2
0
null
null
null
null
UTF-8
Python
false
false
331
py
from flask import jsonify from marshmallow import ValidationError from na import ma from db import db from server.instance import server api = server.api app = server.app @app.before_first_request def create_tables(): db.create_all() if __name__ == '__main__': db.init_app(app) ma.init_app(app) se...
[ "ana.vasconcelos@ccc.ufcg.edu.br" ]
ana.vasconcelos@ccc.ufcg.edu.br
082b2931c6c4dbd7173131856b1c308a119963b8
18740007244035abf66efb0c4c37eca457806cce
/infrastructure/cloudformation/troposphere/storage.py
5ce481321753c61486729cc7dacb45fbe8b5d2a6
[]
no_license
khueue/khueue-diary
7773b34fc0214cdd04133cd8cb38ec5e8096318c
90de164b997ebde328d4f116b94f588a3c394cec
refs/heads/master
2020-04-07T02:28:26.654045
2019-01-22T12:37:23
2019-01-22T12:37:23
157,977,843
0
0
null
null
null
null
UTF-8
Python
false
false
2,135
py
import troposphere import troposphere.cloudfront import troposphere.s3 import awacs import awacs.s3 CONFIG = { 'app_bucket': { 'name': 'khueue-diary-app', }, 'pipeline_bucket': { 'name': 'khueue-diary-pipeline', 'object_lifetime_days': 30, }, 'log_bucket': { 'name': 'khueue-diary-logs', 'object_lifetim...
[ "khueue@gmail.com" ]
khueue@gmail.com
927c002da1456a2be2e42271cff26c52213d5fc3
85c594b9f5af241d25a4957ba57c65cc1b473008
/pywrap/setup.py
43dced996b3fb659e394fca25776f618590906ed
[]
no_license
jeffli678/autoit
84dca4a78b892a0ab8a7b00c3682481c70d667d3
a0e57b382abe3d4caed9d2371672fd003bed4c61
refs/heads/master
2021-05-27T10:58:32.741270
2012-10-10T16:55:30
2012-10-10T16:55:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
from distutils.core import setup, Extension import platform osname = platform.system() if osname == "Windows": shared_libs = [] else: shared_libs = [] module = Extension('pyautoit', sources = ['pyautoit.cpp'], libraries = shared_libs, library_dirs = [], extra_objects = ["../build/lib/libautoit.a"], ) se...
[ "analyst004@gmail.com" ]
analyst004@gmail.com
a1b2a9fb37f905611061cfcd13a857ef8d26ffe9
e068f64dfbcc00ae4c84db0432b9fbcc8d2df0c7
/orchestra/google/marketing_platform/utils/schema/erf/TargetUnion.py
6f7fed3d24853e27ba56bee71d7ecb070e656b11
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
trakken/orchestra
947d58bbe9a645c3554c295dd4512e86b67641a5
4803530a7df9c685893aca87250e3f736de23bc8
refs/heads/master
2022-12-09T04:05:50.871943
2020-03-02T16:09:49
2020-03-02T16:09:49
295,346,069
0
0
Apache-2.0
2020-09-14T08:01:09
2020-09-14T08:01:08
null
UTF-8
Python
false
false
1,201
py
########################################################################### # # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/...
[ "kingsleykelly@google.com" ]
kingsleykelly@google.com
d547c8a2ec1e142851a69e65f88b8dd40d883aaf
5bf143f904a19a8ff94cf4a7ef8da8da25de3458
/analyze_sentiment.py
8d744c14a23fb55013f1cb8285781cf4c8a71f11
[]
no_license
kurobeko1259/multsum
7d51a181e43ae8ce28aab7af6e8dee9a48d276ad
cfd4fe98c8371578c804ec85197a75a59fa92869
refs/heads/master
2020-04-06T23:00:45.765070
2018-11-21T06:34:18
2018-11-21T06:34:18
157,854,903
0
0
null
null
null
null
UTF-8
Python
false
false
2,649
py
#!/usr/bin/python # -*- coding: utf-8 -*- import os, sys, re, math, numpy from sets import Set f = open(os.path.dirname(__file__)+"/emotion_words_positive.txt") #positive_emotions = Set(f.readlines()) positive_emotions = set() for pos in f.readlines(): #print pos positive_emotions.add(pos.replace("\n", "")) f = o...
[ "[s.u.zzz1259@icloud.com]" ]
[s.u.zzz1259@icloud.com]
075026177bd5d8967534c7183b390a63941c8beb
f4205df28c7b9817acd03aa78c24adcc501a65b8
/run.py
766037e23811d8ad0a4f210904cad02d954fcc1e
[ "MIT" ]
permissive
chelseaayoo/Password-manager
d8133f6827b30aa919f2cd179ffd5c0ecfb3ae23
e7abe7c334427e40e78515066845e8cf742b367d
refs/heads/master
2023-08-28T09:45:20.495179
2021-10-26T06:15:49
2021-10-26T06:15:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,661
py
#!/usr/bin/env python3.8 #!/usr/bin/env python3.6 from credential import Credential from user import User def create_credential(login_username,password): ''' Function to create a new credential ''' new_credential = Credential(login_username,password) return new_credential def save_credentials(creden...
[ "chelsea.ayoo@student.moringaschool.com" ]
chelsea.ayoo@student.moringaschool.com
6abcb0d176f43e109d8555a90281fa679fce1a72
64ac3af07036f240bc333f58f9ff9924d6fea06a
/modelrerank/src/main.py
4502decd697e2341bdca9cb97474a8a809929668
[ "Apache-2.0" ]
permissive
stevencdang/AutoML-DS-Components
b9e12011fd958f4734f323f4882806e8be4b64f2
b0490262d3db5307c37f82c92e25cd938dd3a242
refs/heads/master
2023-01-10T13:06:27.167187
2019-03-28T18:11:40
2019-03-28T18:11:40
175,680,072
0
0
Apache-2.0
2023-01-04T23:30:19
2019-03-14T18:42:27
Python
UTF-8
Python
false
false
2,992
py
# Author: Steven C. Dang # Main script for importing provided D3M dataset schemas for operation on datasets import logging import os.path as path import sys import json import pprint import argparse import csv import pandas as pd # Workflow component specific imports from ls_utilities.ls_logging import setup_loggin...
[ "stevencdang@gmail.com" ]
stevencdang@gmail.com
9782fd2180f9d64e673c362aad00d0e19916f9e3
dcdde01af29567eba920ffcf340605251aa726be
/flask/flsk.py
7964838ff06455a8dc7653023413917e3b9739b6
[]
no_license
MeherMS/python
b9f3d77ef97a72f4e68deb77f767fa45f7160a43
66296d552755a11600a8fba4d241efa13e0f3b50
refs/heads/main
2023-03-25T11:07:41.007216
2021-03-27T23:40:59
2021-03-27T23:40:59
352,113,082
1
0
null
null
null
null
UTF-8
Python
false
false
855
py
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd from flask import Flask, jsonify, request import pickle import json # load model model = pickle.load(open('model.pkl','rb')) data = {'Pclass': 3 , 'Age': 2 , 'SibSp': 1 , 'Fare': 50} data = json.dumps(data) # app app = Flask(__name...
[ "noreply@github.com" ]
MeherMS.noreply@github.com
d019acbd04f6f92c44b1c6b5ef4f6c1d988e6d74
c50c22c8f814c8d9b697337891904aa0be0edf56
/shortest_string.py
b26e0a4d78a888e7c2d4a6252bf9b0d4e510728a
[]
no_license
mhiloca/Codewars
a6dc6e8ea5e5c1e97fb4a3d01a059b3120b556b7
3155e4b20fbd96c8e7fbe6564014a136d095c079
refs/heads/master
2020-07-11T12:41:19.997254
2019-11-01T12:44:38
2019-11-01T12:44:38
204,541,593
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
""" Simple, given a string of words, return the length of the shortest word(s). String will never be empty and you do not need to account for different data types. """ def find_short(s): return min(len(x) for x in s)
[ "mhiloca@gmail.com" ]
mhiloca@gmail.com
cffd64491c65e0ffc66d3cb53f6958c2596eb53b
7bdb103ab024adf67fdd209af6377e86659656dc
/pydicom/errors.py
8872313e29db0a934a18f8302a83025a4f3b3365
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
glemaitre/pydicom
b58b71f3a0082595a4d62586be21b574c63a76f9
d88f78e90a8df1cc314858049edaa403be3f5526
refs/heads/master
2020-02-26T14:13:25.970610
2017-07-31T22:35:55
2017-08-01T12:41:22
58,641,730
0
0
NOASSERTION
2023-04-29T22:22:23
2016-05-12T12:59:33
Python
UTF-8
Python
false
false
876
py
# errors.py """Module for pydicom exception classes""" # # Copyright (c) 2013 Darcy Mason # This file is part of pydicom, released under a modified MIT license. # See the file LICENSE included with this distribution, also # available at https://github.com/pydicom/pydicom # class InvalidDicomError(Exception): ...
[ "darcymason@gmail.com" ]
darcymason@gmail.com
8cea560fba02030a0a26133fc24eb1c13946c0a5
ae6177cf2ebe87c3749f03e0ffaade2dac8b8688
/AulasPython/Parte1/Semana4/decrescente.py
275cbedae0412d30178947b70b66b0b611437eff
[]
no_license
jmarq76/Learning_Programming
8a7c598a733c1ba9983103e4aa284bed80ffabbe
bf15d351e239529645fb74a355e296d085683921
refs/heads/master
2022-11-17T23:03:32.236684
2020-07-07T12:05:56
2020-07-07T12:05:56
277,804,012
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
decrescente = True anterior = int(input("Digite o primeiro número da sequência: ")) valor = 1 while valor != 0 and decrescente: valor = int(input("Digite o próximo da sequência: ")) if valor > anterior: decrescente = False anterior = valor if decrescente: print("A sequência está em orde...
[ "58978254+jmarq76@users.noreply.github.com" ]
58978254+jmarq76@users.noreply.github.com
7afc571991601facfe9836680cdc867c586faa8b
ae3b0909aa4b9f96c17385c1c2e62721817121fe
/policy/task_decomposition_all_without_task.py
580d0829db47525b4d360c18566c1892655c7fe7
[]
no_license
saki-37/StarCraft
9f58912f8006e60559d174fdb046c7fc16c15728
a915116526478a00690393554f7ddf11b5acda5e
refs/heads/master
2023-07-13T08:17:26.665932
2021-08-19T02:32:16
2021-08-19T02:32:16
398,439,928
1
0
null
null
null
null
UTF-8
Python
false
false
16,091
py
'''不传0。没有task score。按列求和选择最优动作。 ''' import torch import os from network.task_rnn_all import TaskRNNAll, TaskRNNAllwoTask from network.task_decomposition_all import TaskDecompositionAll import torch.nn.functional as F import time class TDAll: def __init__(self, args): self.n_actions = args.n_actions ...
[ "852488062@qq.com" ]
852488062@qq.com
d4ec50f6dfaad60ee5b78a209f3dfea8cc4a1456
eabe353d086aacfe2953eaf5ec8cf71668ae1448
/backend/card/migrations/0001_initial.py
3dbd597c01a62d3b027b59fd1094d179e39c1c4d
[]
no_license
epc91/oblique-strategies
d5961e7b0ac92b3338cc6bddf213673d2779661a
de9ac2b1a75b44944534750178641ae1b34604a0
refs/heads/main
2023-07-10T11:30:05.971381
2021-08-24T23:16:38
2021-08-24T23:16:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
# Generated by Django 3.2.6 on 2021-08-14 01:17 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Card', fields=[ ('id', models.BigAutoField(...
[ "eduardopeschke@gmail.com" ]
eduardopeschke@gmail.com
40cf04c7d362189c7309e4ba6a220708a877cf9a
a4e2bd84a06e41a446b521a4a16ecf85e8aee76a
/locate_chromedriver.py
968593b2dcbe3e79d6acfe7d62da1c0bde8ea2ec
[]
no_license
526avijitgupta/Bookaway-testing
273715bb07ab2b5216e4231b1ca63024846c0953
cb3babd4b60de2e5b1e931fc63880987385ad052
refs/heads/master
2021-01-22T09:04:12.689869
2014-10-31T13:35:52
2014-10-31T13:35:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
#!/usr/bin/python # Filename: local_settings.py import os print "Locating chromedriver on your machine.." chromedriver = os.popen("find / -name 'chromedriver' -not -name '*.*' 2>/dev/null").read() chromedriver = str(chromedriver.split("\n")[0]) if(chromedriver): print ("chromedriver found! Executing Script..") else: ...
[ "526avijitgupta@gmail.com" ]
526avijitgupta@gmail.com
a7e699f06dbaa2415ab8f0ce348214b552cfc045
2c5302a8f6962c2de4849c0a49271033ca4fbfbd
/Day-30/Day_30_VishwaPatel.py
24b68063b1058a4c94682b5d6b1d95b172b53b5a
[]
no_license
136tejas/30DayOfPython
4db35033e413b9ec7dc6c0c0871d12b6a1e39555
20df271cd8ed3170aad2ee359a6a28f9f682a5b5
refs/heads/main
2023-08-11T10:51:39.357383
2021-10-04T07:34:44
2021-10-04T07:34:44
379,897,363
0
0
null
2021-06-24T11:10:35
2021-06-24T11:10:35
null
UTF-8
Python
false
false
445
py
import numpy as np m = int(input('Enter rows')) n = int(input('Enter columns')) l = [] b = [] for i in range(m): l = [] for j in range(n): e = int(input('Enter element: ')) l.append(e) b.append(l) print("Original matrix") print(np.matrix(b)) for i in range(m): for j in range(n): ...
[ "noreply@github.com" ]
136tejas.noreply@github.com
d005e74749c88692012dd32e899d20852ffbc130
c223e858c9ebf1b734221e4db4b3d594993a5536
/thespian/system/timing.py
ec5f22afa79083a0f4d2f9c23f08117403194959
[ "MIT" ]
permissive
jfasenfest/Thespian
17f9738aff648328a40f94d3225427d82fe27e39
5979a2c9791b774fb620253bb62253c95cf7d4b5
refs/heads/master
2020-12-26T00:27:09.446001
2016-11-28T21:48:20
2016-11-28T21:48:20
48,067,029
0
0
null
2016-11-21T23:17:52
2015-12-15T20:24:12
Python
UTF-8
Python
false
false
6,566
py
from datetime import datetime, timedelta ### ### Time Management ### def timePeriodSeconds(basis, other=None): if isinstance(basis, datetime): if isinstance(other, datetime): return timePeriodSeconds(other - basis) if isinstance(basis, timedelta): try: return basis.tot...
[ "kquick@godaddy.com" ]
kquick@godaddy.com
d78e4bb780d288b7d29be51d0fba08d43575ed04
e0e60b1efc1d91e39dfba9b612d82cf32b5efcda
/mysite/Grade_A/models.py
4be9ab3e9110a63784716f2acd792856cbe9f654
[]
no_license
Apaisley/Grade-A
f187b76c1a74a3edca35712dd361f6c49d60fbe6
d750372c7e0e6c31efb1eb2699b84f7c56df3887
refs/heads/master
2021-09-23T03:54:51.311184
2020-03-12T00:56:45
2020-03-12T00:56:45
238,564,849
0
0
null
2021-09-22T19:40:01
2020-02-05T22:54:50
Python
UTF-8
Python
false
false
5,374
py
from django.db import models from taggit.managers import TaggableManager from django.utils.datetime_safe import datetime from django.dispatch import receiver from django.db.models.signals import post_save import numpy as np from django.contrib.auth.models import User # Create your models here. #////////////////////-...
[ "apaisley2017@gmail.com" ]
apaisley2017@gmail.com
ee3ca22e9c0f5e05bbf59b552966f070d8a674d9
8613ec7f381a6683ae24b54fb2fb2ac24556ad0b
/20~29/ABC021/honest.py
9c7f3d43c9ab13670129a435bb52b6b7b42038ab
[]
no_license
Forest-Y/AtCoder
787aa3c7dc4d999a71661465349428ba60eb2f16
f97209da3743026920fb4a89fc0e4d42b3d5e277
refs/heads/master
2023-08-25T13:31:46.062197
2021-10-29T12:54:24
2021-10-29T12:54:24
301,642,072
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
n = int(input()) a, b = map(int, input().split()) m = int(input()) x, y = [0] * m, [0] * m data = [[] for _ in range(n)] for i in range(m): x, y = map(int, input().split()) data[x - 1].append(y - 1) data[y - 1].append(x - 1) dist = [[-1] * n for i in range(n)] dist[a - 1][b - 1] = 0
[ "yuuya15009@gmail.com" ]
yuuya15009@gmail.com
0c2357d7adb5b24a1223a63d777fbf1484ae81ab
6bcb73fc72587d24927eb9f1450ba3e676c421cf
/setup.py
9d6ec105a703c31f0bd3be9f32394427a8abd00f
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SorchaYang/Scopy
ed26cb9026de898e89e1d39bb7a8af2d041a34a9
897f9f0f41a90e0cff1e2fd28a7e82cfac051306
refs/heads/master
2022-06-09T19:14:14.962262
2020-05-07T10:16:07
2020-05-07T10:16:07
262,022,320
4
0
MIT
2020-05-07T10:40:58
2020-05-07T10:40:58
null
UTF-8
Python
false
false
1,702
py
# -*- coding: utf-8 -*- """ Created on Fri Mar 15 13:21:07 2019 @Author: Zhi-Jiang Yang, Dong-Sheng Cao @Institution: CBDD Group, Xiangya School of Pharmaceutical Science, CSU, China @Homepage: http://www.scbdd.com @Mail: yzjkid9@gmail.com; oriental-cds@163.com @Blog: https://blog.moyule.me I love my senpai forerver!...
[ "yzjkid9@gmail.com" ]
yzjkid9@gmail.com
07774d6b330c67e1c6a3bd8784a7181f14658bae
329e8d1ac5b2d38fef727921fdcebc9435dc8842
/sysdetails.py
419b8d78f0c693d716f6e4f0dec0d2d730574463
[ "MIT" ]
permissive
ChankitSaini/DaisyX-Extra
082a9a008df458bd3aeb765c068055598bea5978
e1cafbbb4f5a7845ffd70e16e4395e7e797b2cf7
refs/heads/main
2023-04-24T02:25:15.715245
2021-05-14T05:18:19
2021-05-14T05:18:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,673
py
import platform import sys from datetime import datetime import psutil from telethon import __version__ from DaisyX.utils import admin_cmd, sudo_cmd from DaisyX import ALIVE_NAME # ================= CONSTANT ================= DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else bot.me.first_name # =======================...
[ "noreply@github.com" ]
ChankitSaini.noreply@github.com
ea6f324c9eaa7e365c7e8d1385843b1e0080dd62
5f0ce32209a69ca934174631df447b8d4d13caaa
/bibliotecaMath.py
408d5eaecc1fb58bbb5282697c3d4545a2ba33a6
[]
no_license
arthurcardosof/praticando-python
8fea1da81ab09402d35db9f8cebfeaae664e90bb
f3c997e1963ddf1caad0396a6ec52803dc309583
refs/heads/master
2020-12-21T07:48:17.650179
2020-01-26T19:26:00
2020-01-26T19:26:00
236,363,509
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
''' Exercicio: Crie uma função para verificar se uma palavra é palíndrome. Retorna true se for uma palavra palíndrome, e false se não for. Exemplos de palavras palindromes: ovo, arara 'arara' -> [0], [1], [2] ''' def palindrome(palavra): return palavra == palavra[::-1] print(palindrome('arara')) print(palindrome('m...
[ "panchobauer@gmail.com" ]
panchobauer@gmail.com
c5d4d2f46c24a51bf6824c2c8735e80bc1f67f80
3f4464c932403615c1fbbaf82eaec096426b1ef5
/StartOutPy4/CH6 Files and Exceptions/write_sales.py
ecb7c7a8611babac6e9db4c42a7bbdc92ed31f8e
[]
no_license
arcstarusa/prime
99af6e3fed275982bf11ada7bf1297294d527e91
5f1102aa7b6eaba18f97eb388525d48ab4cac563
refs/heads/master
2020-03-22T14:07:08.079963
2019-05-09T11:45:21
2019-05-09T11:45:21
140,154,408
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
# This program prompts the user for sales amounts # and writes those amounts to the sales.txt file. 6-8 def main(): # Get the numbers of days. num_days = int(input('For how many days do ' + 'you have sales? ')) # Open a nuew file named sales.txt. sales_file = open('sales.txt', 'w') # Get the amoun...
[ "40938410+edwardigarashi@users.noreply.github.com" ]
40938410+edwardigarashi@users.noreply.github.com
c7a1545c04ec79435caf4f721bcbd105da6ab6dc
18e6cf3e0f748b55738d927c9ea0b0dda71dd60c
/modelo mvc/main.py
fa3118ceea937e8e73a8b6cd0e7db5ad20be8448
[]
no_license
Adjailson/AulasETE
d0d94697d2c74afb4b38c176d34d6264e2e12ff3
0a223e41e8680a7eddac6443a4d9c21ab5d808b9
refs/heads/main
2023-09-04T18:52:38.252095
2021-11-23T14:48:22
2021-11-23T14:48:22
399,248,907
5
1
null
null
null
null
UTF-8
Python
false
false
48
py
from view.telaView import TelaView TelaView()
[ "noreply@github.com" ]
Adjailson.noreply@github.com
62a6d539be9bbfbbbbed23228177058ae2f177d0
189d590adf09e309862e5f3aef1012c8a6e0b337
/userbot/plugin/rename.py
d34526cdf9e8f7d497224a26489c06d9e3e5c380
[ "MIT" ]
permissive
LegitWoLf/BlackShadowBot
dbabec745ccbb6dac5615dfaa5dd8a24849c9c4b
be3e3e5f390141944ce2f412274cbb0e1463c493
refs/heads/master
2022-07-02T21:30:25.346111
2020-05-15T11:50:04
2020-05-15T11:50:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,728
py
"""Rename Telegram Files Syntax: .rename file.name .rnupload file.name .rnstreamupload file.name By @Ck_ATR""" import aiohttp import asyncio from datetime import datetime from hachoir.metadata import extractMetadata from hachoir.parser import createParser import json import os import requests import subprocess from tel...
[ "noreply@github.com" ]
LegitWoLf.noreply@github.com
4bbad83e050e46e0bd882f7147d3faa597ef6614
26d6c34df00a229dc85ad7326de6cb5672be7acc
/msgraph-cli-extensions/beta/files_beta/setup.py
917c1b376b39507335d14d388323f62f011a8a2c
[ "MIT" ]
permissive
BrianTJackett/msgraph-cli
87f92471f68f85e44872939d876b9ff5f0ae6b2c
78a4b1c73a23b85c070fed2fbca93758733f620e
refs/heads/main
2023-06-23T21:31:53.306655
2021-07-09T07:58:56
2021-07-09T07:58:56
386,993,555
0
0
NOASSERTION
2021-07-17T16:56:05
2021-07-17T16:56:05
null
UTF-8
Python
false
false
1,858
py
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
[ "japhethobalak@gmail.com" ]
japhethobalak@gmail.com
62604aec9fec8d853af4fd5bdc81a077ae397e7c
4e567fc53288f53cdcfa37c0f5490a29cf4bc0cd
/projects-inventory/inventory/inventorya.py
dc89e6b234d8d28aaf3a41b5b98a5039f3ac59d3
[]
no_license
sidarmawan/ansible_training
3e4bba3bde4557a23c92735314f09328319463c9
77d3acb3430143458de07ca2b8257f3a2637f59b
refs/heads/master
2022-04-08T06:01:31.043044
2020-01-16T09:56:41
2020-01-16T09:56:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
103
py
htttps://materials.example.com/labs/projects-inventory/inventorya.py: Unsupported scheme ‘htttps’.
[ "student@workstation.lab.example.com" ]
student@workstation.lab.example.com
08b555c7ec6ff9ee16e439791eb8fbf841af3b69
8d74ac2b0acad1a10bc916d8566181ac801c7597
/articles/migrations/0007_auto_20210305_2120.py
4b9e92250ae194fa86adcf0379f40449a515f1d4
[]
no_license
PatrickBoynton/news-app
e459b08f651258388d0d20074d94a685ad57d44f
125464d4ff89d7a2297536e39ba4dd770e5089fa
refs/heads/main
2023-08-22T00:17:30.512303
2021-09-24T05:19:32
2021-09-24T05:19:32
343,518,497
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
# Generated by Django 3.1.7 on 2021-03-05 21:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0006_auto_20210305_0416'), ] operations = [ migrations.AlterField( model_name='article', name='article_s...
[ "jpboynton3@gmail.com" ]
jpboynton3@gmail.com
ba928fba58eaca0bce8982e702f44206ea394ad4
631d667ad3f5ef759923e63644e82af5e6bdebf6
/Cryptology/Cyphers/Cyphers/CypherGeneration/Bifid/BifidUtil.py
7f6969a258ced04ba6d69ce894d5b5c5178752f2
[]
no_license
frankbryce/First
e808537593f96fb693e65bb909cd1a84dc2fa76e
a69ccb715a65d7647272402790674336e72431f0
refs/heads/master
2020-12-28T23:34:58.777395
2014-05-15T00:15:52
2014-05-15T00:15:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,195
py
import StrUtil as s alphabet = 'ABCDEFGHIKLMNOPQRSTUVWXYZ' # intentionally missing 'j' Table = [] Result = [] def SetKey(keyword): global Table keyword = jtoi(s.StripStr(keyword)) keyalph = s.GenerateKeyedAlphabet(keyword,alphabet) Table = [keyalph[i:i+5] for i in xrange(0, len(keyalph), 5)] retur...
[ "jonnyjack7@gmail.com" ]
jonnyjack7@gmail.com
db7d00585385b6589b6b11d0e3b16814d349cc17
a61ebd1507eeaa334aff44800b022ef0a258752a
/Code/CodeChef/remainder.py
37c511c002d48cc5390d47f937a2ec559c35e257
[ "MIT" ]
permissive
Jimut123/competitive_programming
14ce0ab65414e6086763519f95487cddc91205a9
b4cdebaceee719c1a256921829ebafda11c515f5
refs/heads/master
2023-03-05T15:42:57.194176
2022-04-08T08:53:26
2022-04-08T08:53:26
156,541,142
1
0
null
2019-05-29T17:10:28
2018-11-07T12:09:55
C++
UTF-8
Python
false
false
152
py
#jimutbahanpal@yahoo.com t = int(input()) l = [] for i in range(t): m,n = map(int,input().split()) l.append(m%n) for item in l: print(item)
[ "jimutbahanpal@yahoo.com" ]
jimutbahanpal@yahoo.com
ec63ed048f6211cd69e8bc2bc40d3e6f418eaf0d
336cd9225281befde93e01858ede15f70d3e5b47
/params/cartpole_obs/shm_default copy.py
2ab5c02726c7c6586d11fff9f5736ea8bffe8c5f
[]
no_license
GuancongLuo/mpc-mpnet-py
7d6ba9f0c954185a724421091b1b098ec6d148e6
3d8d8ef743fd467fd2ffe177021edc6e852fd094
refs/heads/master
2023-02-06T03:49:06.072105
2020-12-07T11:01:08
2020-12-07T11:01:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,333
py
import numpy as np def get_params(): params = { 'solver_type': "cem", 'n_problem': 1, 'n_sample': 32, 'n_elite': 8, 'n_t': 1, 'max_it': 5, 'converge_r': 0.1, 'dt': 2e-3, 'mu_u': [0], 'sigma_u': [400], 'mu_t': 0.5, 's...
[ "you@example.com" ]
you@example.com
c80f4c821974aa8bd95e8d011cc9d0f71baae2a6
19e4d45d574d6dedd46fa9fac20faa1151fa2601
/Euler49-PrimePermutations.py
a15d07ba65b2b5b3933211a5860e9f535f18255b
[]
no_license
zzflux/ProjectEuler
bba88d5e42232aa0d39d8325a7752f0983084135
796d0ed72738031a300a0e950bb792d046518e73
refs/heads/master
2021-01-01T05:14:19.125012
2016-04-25T22:45:17
2016-04-25T22:45:17
56,016,380
0
0
null
null
null
null
UTF-8
Python
false
false
1,861
py
#Project Euler problem #49 #Prime permutations #Jon McMahon 2016 import DivisibilityTools as dtools import itertools as itools import math DIGITS = 4 SEQ_LEN = 3 BLACKLIST = ((1487, 4817, 8147),) PRIMELIST = dtools.primeListWithDigits(DIGITS) PRIMESET = frozenset(PRIMELIST) GREATEST_PRIME = max(PRIMELIST) SMALLEST_PR...
[ "jonmcmahon21@gmail.com" ]
jonmcmahon21@gmail.com
6093d2129fcc9b86264e32f2199313f4ee2360fc
bdf86d69efc1c5b21950c316ddd078ad8a2f2ec0
/venv/Lib/site-packages/twisted/web/_http2.py
1a425a7729ffd88e8e0c2c4b4f98294cbdc6f975
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
DuaNoDo/PythonProject
543e153553c58e7174031b910fd6451399afcc81
2c5c8aa89dda4dec2ff4ca7171189788bf8b5f2c
refs/heads/master
2020-05-07T22:22:29.878944
2019-06-14T07:44:35
2019-06-14T07:44:35
180,941,166
1
1
null
2019-06-04T06:27:29
2019-04-12T06:05:42
Python
UTF-8
Python
false
false
45,541
py
# -*- test-case-name: twisted.web.test.test_http2 -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ HTTP2 Implementation This is the basic server-side protocol implementation used by the Twisted Web server for HTTP2. This functionality is intended to be combined with the HTTP/1.1 and HT...
[ "teadone@naver.com" ]
teadone@naver.com
f3b980f098f1f78d08ed82f4a62c12949fb78bde
5c3fcfd1c30036154af34de9fbf11b77ebd31777
/9444/ass1/hw1/src/part3.py
05bd53f4097cb69ca9688d6c2d276e110cb6ed30
[]
no_license
Skylerliutian/UNSW_19T3
d5fc13a744aa6193c904404b9ef37010e89261a0
cdc6324b5622a7326869f58c0cc53dd9976f22cb
refs/heads/master
2022-04-16T13:37:43.400815
2020-03-27T09:46:43
2020-03-27T09:46:43
250,228,085
0
0
null
null
null
null
UTF-8
Python
false
false
7,778
py
#!/usr/bin/env python3 """ part3.py UNSW COMP9444 Neural Networks and Deep Learning ONLY COMPLETE METHODS AND CLASSES MARKED "TODO". DO NOT MODIFY IMPORTS. DO NOT ADD EXTRA FUNCTIONS. DO NOT MODIFY EXISTING FUNCTION SIGNATURES. DO NOT IMPORT ADDITIONAL LIBRARIES. DOING SO MAY CAUSE YOUR CODE TO FAIL AUTOMATED TESTIN...
[ "skyler151096@gmail.com" ]
skyler151096@gmail.com
81aa064e876bd2b4d52c97a334447ea805b84532
e32f87eeccab48b690af53cc9e9c5558c21ce589
/brownian_tree/tools/size.py
b27caad8c830dc1ab0fcbb3d859a992928c9627a
[]
no_license
mblicharz/diffusion-limited-aggregation
c822f21f7d0c0e7aba8c0dbe870bcff8ec650b7e
40ed87c9d909ddf154483365a3c8bf525adb2b5b
refs/heads/master
2023-05-31T11:38:11.878870
2021-07-02T15:14:00
2021-07-02T15:14:00
378,947,926
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
class Size: def __init__(self, max_x: int, max_y: int): self._validate(max_x, max_y) self.max_x = max_x self.max_y = max_y def _validate(self, max_x, max_y) -> bool: if max_x < 0 or max_y < 0: raise ValueError( "Both dimensions should be equal or grea...
[ "maciej.blicharz@protonmail.com" ]
maciej.blicharz@protonmail.com
aa9c2bf1b305cc6403a880948c9ce34f01af5268
2d19317ab9af09be9e6c8f0a25d4a43d4632b680
/first_project/urls.py
44eee9ee4a82b0a41d31cece1c0325b3b2218316
[]
no_license
rudiq4/first_project
73837d297b21ccd7c706fc08373473e9e4cd8b29
ba0e987f863f599da9700c355875af76158b76f0
refs/heads/master
2021-01-25T13:41:56.102967
2018-03-27T14:15:26
2018-03-27T14:15:26
123,607,387
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
"""first_project 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') Cl...
[ "rudikvovan@gmail.com" ]
rudikvovan@gmail.com
89474e153defaaa9938f24de4429e92defcd0542
d723b9c2dcfc9e3366928fd0ea18ee5ee19c2b3c
/backend/apps/detections/upload_sets.py
140c2d9bcfbee0781d15cc18a2aab00c879d9188
[]
no_license
skarzi/yb_hackathon_2019
ff8266e89ae6fa74d57c61e4117d6fc176dba825
83c3d96795f6b14f97683ad5c998579adb3faaf4
refs/heads/master
2020-09-11T01:34:55.206979
2020-07-19T07:50:16
2020-07-19T07:50:16
221,895,345
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
from flask import current_app from flask_uploads import ( IMAGES, UploadSet, configure_uploads, ) detections = UploadSet(name='detections', extensions=IMAGES) configure_uploads(current_app, (detections,))
[ "skarzynski_lukasz@protonmail.com" ]
skarzynski_lukasz@protonmail.com
3bb37917a0398704646cc7328ac2b1f67c1f8a85
1ca5995b3f1debd011cf4c9d3382979ad103ff40
/ros_workspace/src/regions/src/applytransformations.py
167f015c21a78140e0270e815319a39cff8b1325
[]
no_license
rcxking/cv_final_project
06e864554affd19d062909c6b6b3d5e907f19f4f
8751cd15d23afe721e4c523675dcd4648a4e2308
refs/heads/master
2020-06-01T17:53:19.579281
2015-05-15T16:24:24
2015-05-15T16:24:24
34,287,134
0
0
null
null
null
null
UTF-8
Python
false
false
3,160
py
#!/usr/bin/python ''' applytransformations.py - This script applies a series of transformations to an input side of images and pickles the data. Bryant Pong / Micah Corah CSCI-4962 5/10/15 Last Updated: Bryant Pong: 5/14/15 - 5:10 PM ''' # Python Imports: import cv2 import numpy as np from matplotlib import pyplot ...
[ "rcxking@gmail.com" ]
rcxking@gmail.com
65a4c9be5fe8054649cd3ece5dbe367bc18a3e9e
2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5
/archive/55JumpGame.py
f503b433be7298c6acd75a571e1e0b2c43dd3322
[]
no_license
doraemon1293/Leetcode
924b19f840085a80a9e8c0092d340b69aba7a764
48ba21799f63225c104f649c3871444a29ab978a
refs/heads/master
2022-10-01T16:20:07.588092
2022-09-08T02:44:56
2022-09-08T02:44:56
122,086,222
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
398
py
# coding=utf-8 ''' Created on 2017�3�7� @author: Administrator ''' class Solution(object): def canJump(self, nums): """ :type nums: List[int] :rtype: bool """ mini_true = len(nums) - 1 for i in xrange(len(nums) - 1, -1, -1): if nums[i] >= (mini_t...
[ "yanhuang1293@gmail.com" ]
yanhuang1293@gmail.com
33bb22d6d151a3b8a644cd786b43bd9822fdbecd
8f02ed34ca9d4c82cf3b6305792e0b43cb032456
/motor_descuento/test/test_articulos.py
e8008d54a3a3d2ce86cabe415c54fdde4a89b02c
[ "Apache-2.0" ]
permissive
angelquin1986/tiptopDescuentos
977569c15a9e5d3632177f4f7ce39c156931be3a
6bca61d3142b75eee0e72f3932aeabcf1457526a
refs/heads/master
2023-07-30T02:09:35.119053
2020-06-19T17:11:47
2020-06-19T17:11:47
272,595,003
0
0
Apache-2.0
2021-09-22T19:15:28
2020-06-16T02:53:13
TypeScript
UTF-8
Python
false
false
1,509
py
""" @author aquingaluisa """ # Cargamos el módulo unittest import os import random import pytest from django.test import TestCase # Creamos una clase heredando de TestCase from motor_descuento.logica_negocio import ln_articulo as ln_articulo, ln_descuento from motor_descuento.modelo.modelo_productos import Product fr...
[ "aquingaluisa@galapagosislands.com" ]
aquingaluisa@galapagosislands.com
5d8565f123ea80979f9cd6a4454521fd2ddff15c
b0de612c2f7d03399c0d02c5aaf858a72c9ad818
/armi/nuclearDataIO/cccc/tests/test_rzflux.py
93771c4e863ba214363f58516bdda65027c1eb5c
[ "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
wangcj05/armi
2007e7abf4b422caca0157fc4405b7f45fc6c118
8919afdfce75451b291e45ca1bc2e03c044c2090
refs/heads/master
2022-12-22T00:05:47.561722
2022-12-13T16:46:57
2022-12-13T16:46:57
277,868,987
0
0
Apache-2.0
2020-07-07T16:32:40
2020-07-07T16:32:39
null
UTF-8
Python
false
false
2,673
py
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
[ "noreply@github.com" ]
wangcj05.noreply@github.com
a04bc47a13938f0f6f6d24f671bdcad4533f47f9
362efa5644c13e9a370e4d6ce4730833358e0ff0
/MyWebsite/AGR/AGR/settings.py
8bcd4ef8e2ed8fe4edddf75d747689f7b2af9f82
[]
no_license
ISS-IS-IRSPM-AGR/-IRSPM
f07d7133d3005fbb14e784d8a2e719613f17dc0a
556fc45cb31ddf56dd557305a603a514eaab672c
refs/heads/master
2023-04-01T03:11:23.162711
2021-03-14T16:24:38
2021-03-14T16:24:38
347,680,073
0
1
null
2021-03-14T16:21:41
2021-03-14T15:51:06
JavaScript
UTF-8
Python
false
false
3,153
py
""" Django settings for AGR project. Generated by 'django-admin startproject' using Django 3.1.7. 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 pathlib impo...
[ "21048103+antoniadevina@users.noreply.github.com" ]
21048103+antoniadevina@users.noreply.github.com
4b4a097a95f1da6da6dfa3927d7c83d66941ecdf
d8f0761acc94f9f1c0365e5a1716c9e17c6e4e16
/scrapers/bs4_selectors/selector.py
cabcd3ea0bed6889945755aac7fe5cf0cdf9cd8c
[]
no_license
lesleyfon/one-time-scrapers
75ca851107d59b4f2b7cd816b2ae46ecd11d6bc0
6ee5443497c9e05924abf5704c16112beb740064
refs/heads/master
2023-05-02T12:58:21.693133
2021-05-21T13:09:57
2021-05-21T13:09:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,990
py
############################## # # Beautiful Soup cheat sheet # # by # # Code Monkey King # ############################## # Step 1: import packages import requests from bs4 import BeautifulSoup # Step 2: define target URL url = 'https://podsearch.com/listing/car-talk.html' # Step 3: make HTTP request...
[ "freesoft.for.people@gmail.com" ]
freesoft.for.people@gmail.com
8d4588530f69c619168a4cc1e6f9fb07ba1e6326
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_RelativeDifference/trend_Lag1Trend/cycle_12/ar_12/test_artificial_128_RelativeDifference_Lag1Trend_12_12_20.py
b92931e266c853cfe294b5ace5bc7d11ca7edc8c
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
280
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "RelativeDifference", sigma = 0.0, exog_count = 20, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
a34d691e65e99a6c67292407136f05cfbeaeb546
bafacfb2290ba3d32963ecfbfb6a749e71438050
/cli_site/cli/migrations/0002_auto_20190705_1248.py
004b28b80608f1b9385ba5bd9682755af98f08ac
[]
no_license
OneTallProgrammer/django-cli
185066a564d52afe9f07301b0e94383b72735f64
8107b68b57c101fb20cdf857fbd6e5fe9bcbc69a
refs/heads/master
2020-06-14T05:24:05.038459
2019-07-10T19:20:21
2019-07-10T19:20:21
194,916,074
0
0
null
null
null
null
UTF-8
Python
false
false
841
py
# Generated by Django 2.2.2 on 2019-07-05 12:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cli', '0001_initial'), ] operations = [ migrations.CreateModel( name='Agent', field...
[ "jmcauthen@live.com" ]
jmcauthen@live.com
ea9bdeb9e2025531d7f315d480fb6d55a59df027
ab36c659808a9c6f7b4dc873fbffd63d4b7a54cc
/functions.py
0b8ce7451229eecd8741cb36884c4b506c1cb54f
[]
no_license
Mixpap/Ptyxiaki
697da20d66f48df1adea1961871b3fdc4ac06913
6cb2dd1196f2bab275b81d17a35a85044d64b40f
refs/heads/master
2021-01-22T13:42:16.877514
2015-07-28T13:02:45
2015-07-28T13:02:45
27,761,005
0
0
null
null
null
null
UTF-8
Python
false
false
30,905
py
from astropy.io import fits from astropy import wcs from astropy.table import Table import numpy as np import pywcsgrid2 import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from matplotlib.colors import LogNorm from matplotlib.patches import Rectangle from mpl_toolkits.axes_grid1.inset_locator import...
[ "mighalis@gmail.com" ]
mighalis@gmail.com
4ac983d36e1373bef3ae2040efb427f6810916b4
83e85a05d87d784d5beffe8d3c7c709bda9ffe6b
/py_src/samoa/request/replication_state.py
f1edef830b6e914167e2526762a1c227ed5af975
[]
no_license
jgraettinger/samoa
42c3015e525f3fdad61725ff4be569e758b32cc9
36d17dddeea0cc28a223e839ebf3cfb0bf3f7c07
refs/heads/master
2020-04-09T10:11:22.750684
2011-10-22T22:32:23
2011-10-22T22:32:23
533,368
0
0
null
null
null
null
UTF-8
Python
false
false
38
py
from _request import ReplicationState
[ "johng@boomer.(none)" ]
johng@boomer.(none)
7d4cf1affeb7426291e784ea8cf7e185ac843347
3bd3441d6cf42b50ce627db32495004d1e515d63
/Lesson2/weather_station.py
e9c0349c1930f32517de816f5972e5bfe26f3c5e
[]
no_license
MikalaiMikalalai/head_first_design_patterns
cf8006a3b7d8f531a4872d150a73b5ed77b88a23
8792eae3d73e30912f93bf56c7d7b2d844e3d5ec
refs/heads/master
2021-02-27T02:22:25.057364
2020-04-18T02:22:43
2020-04-18T02:22:43
245,570,150
0
0
null
null
null
null
UTF-8
Python
false
false
4,367
py
###################################################### # Observer # ###################################################### import abc import collections ###################################################### # Interfaces # #############...
[ "mikalaip@google.com" ]
mikalaip@google.com
f63c373acfcbf528968315471e17ac98b2ea26b0
595471f4acc7c6db2b414019e069bcb510f24edc
/blog/migrations/0001_initial.py
41c9e2d8887c36b9e654ce6c7e8239d8ee358c7c
[]
no_license
UshieChris/Blog-PROJECT
9ffcbde536283443e6743d8b729691d18e4e1432
3bd751c49f95101579a9d6d0dc59c5f730ad1ec6
refs/heads/main
2023-03-30T03:39:48.214184
2021-04-09T16:29:01
2021-04-09T16:29:01
356,331,503
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
# Generated by Django 3.0.5 on 2020-12-18 10:44 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...
[ "chrisushie301@gmail.com" ]
chrisushie301@gmail.com
0ee4eca75016f2b835c19c87122bb9b245e074d6
f69580425242d3c2e27881f0c85be73915a6f81e
/pydnd/character/models.py
84079f946cf1dddd30273502390f5c778fe56e77
[]
no_license
pyasi/pydnd
83c9a8626e60b32797d9c6abbdf9ba7ab36bdb4e
a2e880c8a7264d313cad56f9ea0eec72309ac20e
refs/heads/master
2020-03-07T08:37:43.767559
2018-05-03T13:57:53
2018-05-03T13:57:53
127,384,097
0
0
null
2018-05-03T13:57:54
2018-03-30T05:09:48
Python
UTF-8
Python
false
false
1,770
py
from django.db import models from pydnd.mechanics.models import MagicSchool class AbilityScore(models.Model): name = models.CharField(max_length=100, unique=True) full_name = models.CharField(max_length=100) desc = models.CharField(max_length=10000) def __str__(self): return self.full_name ...
[ "pyasi8192@gmail.com" ]
pyasi8192@gmail.com
14539757dac6949ee5971550e5ce037dd82f2b1f
d1a6f7a61035e8e85f70663677eef0794ed42b8f
/create dictonary.py
3c5eb2d0df31c49d8ad7a5a6594eefab23a1db46
[]
no_license
shubhamfursule/Create-Dictonry
aaf9a665dc14c950c54c9713b2f9d879f239f822
d251528ae1b654a72964fb7daf43d404d4a3c5ba
refs/heads/main
2023-02-09T03:20:07.039319
2020-12-28T18:15:44
2020-12-28T18:15:44
325,084,068
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
dicts={} while True: try: key,value=map(str,input().split(",")) except: print("Please Enter proper way") else: if key=="STOP": break else: try: dicts.update({key:int(value)}) except: ...
[ "noreply@github.com" ]
shubhamfursule.noreply@github.com
4bbf1ff6013d7a48ce63d817454fb8940a26487f
7d23fff61314842d6d7d8ca106382d163a04f139
/watch/models.py
3a423333ca2230cec766903c543e4a2e444032de
[ "MIT" ]
permissive
GeGe-K/Neighbourhood
8b71bc789a72d34769436a5a912ffde87b3c014b
366667dff147141558732e5c6f5004fe4cff221e
refs/heads/master
2022-12-09T18:26:27.536704
2019-01-16T14:13:37
2019-01-16T14:13:37
165,236,886
0
0
MIT
2022-12-08T01:32:31
2019-01-11T12:00:41
Python
UTF-8
Python
false
false
3,462
py
from django.db import models from django.contrib.auth.models import User import datetime as dt # Create your models here. class Location(models.Model): name = models.CharField(max_length=40) def __str__(self): return self.name class Neighbourhood(models.Model): ''' Neighbourhood cl...
[ "gloriagivondo@gmail.com" ]
gloriagivondo@gmail.com
80a957f639ad9152f7478c2f7c5faf20dff26992
3907034857319c47efd09429f994ff4c8a34a642
/bienes/urls.py
9cb1ec71e2006a9673df3a25d19c1a410aaa861f
[]
no_license
xcarlx/bienes
c018af7582f725e06d354144bac8641e348192ab
48a69798ead5d627b38a2d9afe84ad484ca4e7da
refs/heads/master
2020-04-17T02:36:14.054458
2019-02-19T20:44:15
2019-02-19T20:44:15
166,143,291
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
"""bienes URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/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') Class-based ...
[ "cruiz@regioncajamarca.gob.pe" ]
cruiz@regioncajamarca.gob.pe
71402662a43efd9f3ece9bfc6b5fb824add27987
c676bf5e77ba43639faa6f17646245f9d55d8687
/tests/ut/python/ops/test_tuple_slice.py
ea5112995c06203210d7c6ca569e2949187c6f26
[ "Apache-2.0", "BSD-3-Clause-Open-MPI", "MPL-2.0-no-copyleft-exception", "LGPL-2.1-only", "BSD-3-Clause", "MPL-2.0", "MPL-1.0", "Libpng", "AGPL-3.0-only", "MPL-1.1", "LicenseRef-scancode-proprietary-license", "MIT", "IJG", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Z...
permissive
zhengnengjin/mindspore
1e2644e311f54a8bd17010180198a46499e9c88f
544b859bb5f46611882749088b44c5aebae0fba1
refs/heads/master
2022-05-13T05:34:21.658335
2020-04-28T06:39:53
2020-04-28T06:39:53
259,522,589
2
0
Apache-2.0
2020-04-28T03:35:33
2020-04-28T03:35:33
null
UTF-8
Python
false
false
4,665
py
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
[ "leon.wanghui@huawei.com" ]
leon.wanghui@huawei.com
58a803cde41cd78a494ce62be9283c642fa86e83
eaea162301e30aece2bafc08a868c33ebe753324
/main.py
d5db9e0a139f8043fbf0bd4dfdd9e6903ff8179d
[]
no_license
LAEQ/Pollution_StructurationTools
a56616638e20368c2d1fa41634d6cc277376b378
5439f9e148a0055781100fd9164c9068dd260199
refs/heads/master
2020-04-21T04:10:47.345888
2019-07-24T14:35:54
2019-07-24T14:35:54
169,305,682
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
# -*- coding: utf-8 -*- """ Created on Wed Mar 07 14:15:16 2018 @author: GelbJ """ Racine = "E:/Datas/_Montreal 2019/A)_FieldData" ###################################################### ### Config Steph ###################################################### #Users = ["ID1_JR"] #Users=["ID2_LN"] #Users=...
[ "noreply@github.com" ]
LAEQ.noreply@github.com
72a405e1ba0507690cafee76a320b4682d94aac3
b236c7ce962b3f35d70589993833f24eaf3ce948
/train.py
1f188e44283e9df69675b39c5da3d4783585b862
[ "MIT" ]
permissive
Wblossom/Retinaface--without-landm
499e11ef4fe51c7684c04769e4b4b3f0480f828e
53c3574c95abab3665ce51de81cbf54b10d97fc9
refs/heads/main
2023-01-01T06:39:54.481816
2020-10-21T10:48:09
2020-10-21T10:48:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,341
py
# -*- coding: utf-8 -*- from __future__ import print_function import os import torch import torch.optim as optim import torch.backends.cudnn as cudnn import argparse import torch.utils.data as data from data import WiderFaceDetection, detection_collate, preproc, cfg_mnet, cfg_re50 from layers.modules import MultiBoxLos...
[ "kylin33@outlook.com" ]
kylin33@outlook.com
3da46091f694239b44ce3c59e315748ab9fcae39
09efb7c148e82c22ce6cc7a17b5140aa03aa6e55
/env/lib/python3.6/site-packages/pandas/tests/groupby/test_filters.py
2ce04fc77408301e12a3a44d30366dafee4d3aad
[ "MIT" ]
permissive
harryturr/harryturr_garmin_dashboard
53071a23b267116e1945ae93d36e2a978c411261
734e04f8257f9f84f2553efeb7e73920e35aadc9
refs/heads/master
2023-01-19T22:10:57.374029
2020-01-29T10:47:56
2020-01-29T10:47:56
235,609,069
4
0
MIT
2023-01-05T05:51:27
2020-01-22T16:00:13
Python
UTF-8
Python
false
false
20,388
py
import numpy as np import pytest import pandas as pd from pandas import DataFrame, Series, Timestamp import pandas.util.testing as tm def test_filter_series(): s = pd.Series([1, 3, 20, 5, 22, 24, 7]) expected_odd = pd.Series([1, 3, 5, 7], index=[0, 1, 3, 6]) expected_even = pd.Series([20, 22, 24], index=...
[ "griffin.harrisonn@gmail.com" ]
griffin.harrisonn@gmail.com