blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
8617e5ac82e89f58b2116bb99003c611dc46da49
7d90e6bebce35d5810da7cb9180f34bfa7398d38
/guestbook/tests/models_tests.py
dde2c5be1e1420dfe441443bb112fae8d81c8d40
[]
no_license
mbrochh/pugsg_20120419
bd4c5fc2ec9edbb6a8f72e1165df46aed00cc88f
0d2d396863e4d25a0cb2e97d30b16ebbd6283d0c
refs/heads/master
2021-01-01T17:57:22.171950
2012-04-19T10:20:23
2012-04-19T10:20:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
"""Tests for the models of the ``guestbook`` app.""" from django.test import TestCase from guestbook.tests.factories import GuestbookFactory class GuestbookEntryTestCase(TestCase): """Tests for the ``GuestbookEntry`` model class.""" def test_instantiation_and_save(self): entry = GuestbookFactory.buil...
[ "mbrochh@gmail.com" ]
mbrochh@gmail.com
b0dece6dcaae5eded6b567fe83bd226b76bd3c59
3863599b51116a63c4e921dc437717dcc45df28d
/HW02_b06505004.py
19c7682cb20648be5dda2bfe90c1147f0a81c72b
[]
no_license
momo1106github/ESOE-CS101-2017
9d5bfe07363ddec0aaace0a526e117a66d52ecef
4efb77d0e260363ab66a82b78ed10cba3ae4073e
refs/heads/master
2021-07-12T00:30:39.049177
2017-10-15T09:02:03
2017-10-15T09:02:03
106,075,882
0
0
null
2017-10-07T06:16:18
2017-10-07T06:16:18
null
UTF-8
Python
false
false
4,595
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- #<教學> # 以 "#" 字符號開頭的內容將被 Python 視為「註解」。不會執行。 # #########################################說明######################################## # 對 Python 而言, if __name__ == "__main__" 即為程式的進入點。一個程式只能有「一個」進入點。 # 換言之,整支程式從這一行開始執行。 #def sayHi(): #''' #這裡定義了一個函式,名叫 sayHi #'...
[ "32182281+gordon0813@users.noreply.github.com" ]
32182281+gordon0813@users.noreply.github.com
6cda6f690fe6f4d19b954e3827b4044a8fd710c4
b22492fd331ee97d5c8853687a390b3adb92dd49
/freemt_utils/switch_to.py
440a1cbb70961cc6e76cdc6fd97ebcfba54631b6
[ "MIT" ]
permissive
ffreemt/freemt-utils
3ea6af7f4bf8800b1be7ec51e05b811710b20907
25bf192033235bb783005795f8c0bcdd8a79610f
refs/heads/master
2021-07-18T18:44:33.907753
2021-02-06T16:52:46
2021-02-06T16:52:46
240,441,691
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
'''Switch to path contextmanager (with). http://ralsina.me/weblog/posts/BB963.html ''' import os import pathlib from contextlib import contextmanager # from loguru import logger from logzero import logger @contextmanager def switch_to(path=pathlib.Path().home()): '''Switch to path. with switch_to(path): ...
[ "yucongo+fmt@gmail.com" ]
yucongo+fmt@gmail.com
a0220857a6290eef53772e9bf27c01b76875dd22
db60c5c7f5d2df88b4f6bda1bd27f8a928a90e37
/skip_gram.py
bbc08bc05a2d1f4da32dcf5744a172718c96f336
[]
no_license
masatana/skip_gram
cadd7240cff80e5f5ab7c1502f800b1f38ff9977
0201d4e04623d3b606aad7cef828e4dab11686b6
refs/heads/master
2020-04-04T14:10:53.213857
2015-11-22T01:21:09
2015-11-22T01:21:09
21,228,687
2
1
null
null
null
null
UTF-8
Python
false
false
1,167
py
#!/usr/bin/env python # -*- coding: utf-8 -*- #from __future__ import print_function, unicode_literals from itertools import izip, combinations class SkipGram(object): def __init__(self, text, skip = 2, n = 2): self._text_list = text.strip().split() self._n = n self._skip = skip se...
[ "plaza.tumbling@gmail.com" ]
plaza.tumbling@gmail.com
0392ced1a79a18b554961d4d5e4b1cda156bd6a9
2ae24d0c6d91df960a2ca68a0b7a754a69d4fe18
/web/exmr/apps/coins/migrations/0084_ethereumtoken_extra_message.py
07b03a46777e400e1b7834135c1ec300372ffd99
[]
no_license
exmrcoin/project-gcps.io
2fc2a0a207ce1282d616a8a680aef938fbcf5352
c0071e63406845a5f3dbbe33ae65673cacc271f8
refs/heads/master
2023-01-04T02:08:47.893847
2020-10-29T17:03:34
2020-10-29T17:03:34
121,253,614
0
1
null
null
null
null
UTF-8
Python
false
false
421
py
# Generated by Django 2.0.2 on 2019-03-26 12:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('coins', '0083_auto_20190326_1115'), ] operations = [ migrations.AddField( model_name='ethereumtoken', name='extra_me...
[ "pnija@gmail.com" ]
pnija@gmail.com
00eb32bd912e803f84cf622828fa8149b6af372c
1907504f5e426dac460dc3fb406cdd8b27da37fb
/funding/portal/models/employeeinfo.py
6719a564cc88cad620fcd22b69a30e3908f51a18
[]
no_license
Gurumonish23/project
010f0c79f10afc4d07ea37a519cda2b7494d9cbb
7d21a89929b628cfe267eff4e5694603b47520a7
refs/heads/master
2023-04-26T22:58:02.660157
2021-06-04T13:48:12
2021-06-04T13:48:12
364,917,755
0
0
null
2021-06-04T13:40:00
2021-05-06T13:20:44
CSS
UTF-8
Python
false
false
797
py
from django.db import models from django.core.validators import MinLengthValidator class Employee(models.Model): Empname=models.CharField(max_length=50,null=True) Empdesg=models.CharField(max_length=50,null=True) Empphone=models.CharField(max_length=50,null=True) Empmail=models.EmailField(max_length=50...
[ "gurumonish23@gmail.com" ]
gurumonish23@gmail.com
f74d6fe3ef3b822215fdcdc3684dd366bbd82b04
b2e61ce08817220358a2d93f2100eee11a83c268
/histo_sf_analysis.py
834116a30a28abc36d04ad634479c46ee3e5de98
[]
no_license
scarpma/sf-gpu
011306fa35530bc3d8761d30611430d809b0acce
890eb29d51c48959f923b9a7c8e149e0dc005ad3
refs/heads/main
2023-05-09T04:52:03.543859
2021-06-07T18:03:20
2021-06-07T18:03:20
373,588,841
0
0
null
null
null
null
UTF-8
Python
false
false
12,354
py
#!/usr/bin/env python # coding: utf-8 import os import os.path import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt from params import * import glob import os.path as osp dict3d = { 'x2': 1,'y2': 2,'z2': 3,'xy': 4,'yz': 5, 'xz': 6,'x4': 7,'y4': 8,'z4': 9,'x2y2': 10, ...
[ "mscarpol@login01.m100.cineca.it" ]
mscarpol@login01.m100.cineca.it
3e2930186e5ad47dd72590b4d7d7b4f12395c0c1
fa8ce7dbb7c2f0d7e7ae58f8bd6273f8d36e6bda
/assign6_2.py
0f5f590645daeb9395ec086008ef64eaada677d7
[]
no_license
dutcjh/learnpython
ec92fabe38df626623f425f98f8d0c7360a78857
cc0dcc6d359420a078e27c0cacb7b26f47402aa0
refs/heads/master
2021-01-12T13:55:28.890985
2016-11-04T04:57:27
2016-11-04T04:57:27
68,922,041
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
s1 = input('Please enter a string of lowercase letters: ') s1 = s1.lower() s2 = s1[0] s3 = '' for i in range(len(s1)-1): if s1[i] <= s1[i + 1]: s2 = s2 + s1[i + 1] else: if len(s3) < len(s2): s3, s2 = s2, s1[i + 1] else: s2 = s1[i + 1] if len(s3) < len(s2): s3...
[ "dutchenjianhui@163.com" ]
dutchenjianhui@163.com
7385a7e276d2a1af25880ee286f96c96640dfa8c
8ae1a3ae74cd1e1c3431a6c9e84e6bf0d32f4ec2
/src/__init__.py
1e99ff3ad836de50ac5eef37dcb6e5c8937fe5a4
[]
no_license
NonSenseGuy/AutomataEquivalence
28ed9b77774534027c9d527cd55aa36ff729e0f9
de844e69bec8ef3aa90ad248640dc1a6a6a38acd
refs/heads/master
2022-04-12T12:38:51.383855
2020-03-16T04:50:32
2020-03-16T04:50:32
241,241,300
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
from Automata import Automata from Equivalence import Equivalence
[ "alejobarre9@gmail.com" ]
alejobarre9@gmail.com
2a18f5bc5e4153611649aef73819909e34b874e6
90b2816a2f2ad8f257413a33d1cf2e973e86567a
/classview/views.py
535d7a87cbea9b8978ccbd4bee3e77fdc7d53615
[]
no_license
ehananel-lirf23/demo
843bd766f4d7d1ba8a0e2058af283e7e57b9cdc2
ecccb7146c3fdc6a0a4d10127900e2b15e45ce73
refs/heads/master
2023-04-27T03:57:37.024538
2021-04-16T15:11:04
2021-04-16T15:11:04
366,403,233
0
0
null
null
null
null
UTF-8
Python
false
false
1,684
py
from django.shortcuts import render from django.utils.decorators import method_decorator from django.views.generic import View # generic通用类 导入View from django.http.response import HttpResponse # GET /template_demo/ def template_demo(request): """演示模板加载""" context = { "name": "jack", "a_list":...
[ "jilun82415819@126.com" ]
jilun82415819@126.com
752ad467ffb6a2466dea241250c87667959509b9
9fd904fd0886841aba665c8dbc9a03a15083ada4
/thesis/9 - Semantic Change/2.3 - Mixed Linear Models.py
2b3f7a4412829b927c237146bc9d69756c25184d
[ "MIT" ]
permissive
lucasrettenmeier/word-embedding-stability
ccc8c673ec13fa3855c71706eb3228fc2f2ffd9f
d7a93201a6b2fd85cbf52681227829323edb9ef4
refs/heads/master
2022-10-24T05:35:52.501562
2020-06-16T11:30:55
2020-06-16T11:30:55
241,602,115
1
0
null
null
null
null
UTF-8
Python
false
false
2,107
py
#------------------------------------------------------------------------------------------------------------------- # Packages & Settings #------------------------------------------------------------------------------------------------------------------- # General packages import time import sys import os import date...
[ "rettenls@itssv116.villa-bosch.de" ]
rettenls@itssv116.villa-bosch.de
15534badc5f2a45c70008339d17f24d79f4bde6a
217f4e20976e5491c4675e4c74075be3fe23be3f
/course_4_assessment_1.py
3bc994d3ead166743c46d9c672883d8b9f3e9711
[]
no_license
mayankdawar/Coursera-Python-Classes-and-Inheritance
f4f4915ac5b1726900ff55b02c9f88a1fbe93369
25f4161a12c81ddea8b25313c67831c7b1d4edf1
refs/heads/master
2022-12-28T02:18:24.357674
2020-09-30T20:36:28
2020-09-30T20:36:28
298,378,939
0
1
null
null
null
null
UTF-8
Python
false
false
2,290
py
# Define a class called Bike that accepts a string and a float as input, and assigns those inputs respectively to two instance variables, color and price. Assign to the variable testOne an instance of Bike whose color is blue and whose price is 89.99. Assign to the variable testTwo an instance of Bike whose color is pu...
[ "noreply@github.com" ]
mayankdawar.noreply@github.com
eb64ab2304d1c83b2b0c6471d6b578c525830102
dee6f3c1cf3d3a37cb07ce19b46969e9d63113ee
/final.py
7b85bace40251b5f65acde6ce2eac65883db2dee
[]
no_license
Ken2399/326-Group-Project
535eaef6b412c8cbcf24181f4a21492036cc69b1
59cbb9fb7c569f2f933f67c1bd8fab1505562cb6
refs/heads/main
2023-01-11T06:03:34.444536
2020-11-10T19:32:05
2020-11-10T19:32:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,177
py
class Account: """Create an account that will either be used to be a customer or an online retailer. """ def __init__(self, account_type, username, birthday, address, email, password): def change_login_credentials(): """ Purpose: to edit login credentials (update email, chang username, etc....
[ "noreply@github.com" ]
Ken2399.noreply@github.com
ace417d486a29e19a3f31f74a2d3f72f02ac8ef3
add74ecbd87c711f1e10898f87ffd31bb39cc5d6
/xcp2k/classes/_point37.py
4efe740542537882034ccb5e823d228d616eacff
[]
no_license
superstar54/xcp2k
82071e29613ccf58fc14e684154bb9392d00458b
e8afae2ccb4b777ddd3731fe99f451b56d416a83
refs/heads/master
2021-11-11T21:17:30.292500
2021-11-06T06:31:20
2021-11-06T06:31:20
62,589,715
8
2
null
null
null
null
UTF-8
Python
false
false
396
py
from xcp2k.inputsection import InputSection class _point37(InputSection): def __init__(self): InputSection.__init__(self) self.Type = None self.Atoms = [] self.Weights = [] self.Xyz = None self._name = "POINT" self._keywords = {'Type': 'TYPE', 'Xyz': 'XYZ'} ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
7cc7f5f72793ee79f04c03843ccbde6e102f9648
440a2ed74321ad76c47e9dd8c0aba3e9b348ba57
/Practical 4, 5 - Scheduling Algorithms/Shortest Job First.py
1b8d6fb9866b61083e4e338628adb8a850bd9d86
[]
no_license
Capt-Fluffy-Bug/Operating-Systems
69ffd56825137c5d59f2dfa2ce9e38cf6f7bbeac
aa4ab25312dd94a3a043b5fca286633109c49b86
refs/heads/master
2020-04-28T16:49:09.354760
2019-03-27T20:34:08
2019-03-27T20:34:08
175,425,142
0
0
null
null
null
null
UTF-8
Python
false
false
3,478
py
#Shortest Job First scheduling pid = ['p1', 'p2', 'p3', 'p4'] arrival_time = [3, 0, 5, 2] burst_time = [4, 7, 2, 3] wait_time = [0]*len(arrival_time) turnaround_time = [0]*len(arrival_time) def sort_proc(): for i in range(len(arrival_time)): for j in range(len(arrival_time) - i - 1): ...
[ "noreply@github.com" ]
Capt-Fluffy-Bug.noreply@github.com
788d59a8171bce6f978a1d3747f440fc3ea82f42
68a0da10de8f4c3c886ce3dbb701dc9f7986fd13
/capstone-master/Python/venv/bin/f2py
dfbfca6b1445560a0823740599c0ecb127ec3128
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hyojinee/Capstone_Kiosk
18502d28b5470c3ef495952790d3752cee8d787c
23e96c4f0dc397e3daa53e4325c00efa5e39e535
refs/heads/master
2023-01-25T04:49:55.670519
2020-11-29T06:26:20
2020-11-29T06:26:20
316,875,793
0
0
null
null
null
null
UTF-8
Python
false
false
248
#!/home/os/PycharmProjects/pymouse/venv/bin/python # -*- coding: utf-8 -*- import re import sys from numpy.f2py.f2py2e import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "gywls0136@naver.com" ]
gywls0136@naver.com
187e77784e4fb6d6faeec279f8d0263e9ea8a61c
080c13cd91a073457bd9eddc2a3d13fc2e0e56ae
/MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/keras/saving/utils_v1/export_output.py
38953921695fad04cb716d8eaf24bad5ad5883e9
[ "Apache-2.0" ]
permissive
Portfolio-Projects42/UsefulResourceRepo2.0
1dccc8961a09347f124d3ed7c27c6d73b9806189
75b1e23c757845b5f1894ebe53551a1cf759c6a3
refs/heads/master
2023-08-04T12:23:48.862451
2021-09-15T12:51:35
2021-09-15T12:51:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,044
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
c2416af57c3df43d84fbc2b73d6f5e69e6f2ea64
0dae79a26c540cf7b71eed107fc7dd735e67d059
/prepare_data/wider_face_bbox_generate.py
2ec5d4efff96a058116e1837f5ba34a8f3435ba5
[]
no_license
tejabogireddy/MTCNN
0d61772b452b69d91287f304fc1f6842a42fa54b
683e4b95e68b3a396f32545abd8218efdc7b7b64
refs/heads/master
2020-04-29T04:38:20.199117
2019-03-15T16:58:22
2019-03-15T16:58:22
175,853,437
3
0
null
null
null
null
UTF-8
Python
false
false
5,005
py
import os import cv2 import numpy as np from utils.iou import IoU annotation_file = "../Datasets/WIDER_train/wider_origin_anno.txt" image_directory = "../Datasets/WIDER_train/images" positives_directory = "./prepare_data/Data/PNet/Positives" negative_directory = "./prepare_data/Data/PNet/Negatives" partial_directory =...
[ "bogireddyteja@bogireddytejas-MacBook-Air.local" ]
bogireddyteja@bogireddytejas-MacBook-Air.local
ce1b9b5796c620a6b926399ca78533f7677d97a9
af81d9f0f1346fbd551c67121ad646ccdd070e34
/Quiz_app/forms.py
acc6f92184de8e6cabb8192a67682b778b286c62
[]
no_license
Hammadul92/PCCA
496cea7eff56731ee6e4b8d11c5504649d777bd7
058f579e4f7217ec0dba4744db3539d5f53f5a43
refs/heads/master
2023-01-08T00:43:09.539494
2019-09-17T03:07:39
2019-09-17T03:07:39
191,061,942
0
0
null
2022-12-30T10:28:01
2019-06-09T22:33:28
JavaScript
UTF-8
Python
false
false
2,386
py
from flask_wtf import FlaskForm from wtforms import StringField, IntegerField, TextAreaField, SubmitField, TextField, BooleanField, PasswordField, SelectField, FieldList, RadioField, FormField,HiddenField from wtforms.validators import DataRequired, Email, Length, EqualTo, AnyOf, Regexp, Required, Optional #from wtform...
[ "hammad@naturallysplendid.com" ]
hammad@naturallysplendid.com
7e635e6a745132a07f89c125874170db99495c5c
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/cH5ce3f4QgnreDW4v_16.py
0920362797049da24362e6f5196a3dc03c839c81
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,413
py
""" Given a list of scrabble tiles (as dictionaries), create a function that outputs the maximum possible score a player can achieve by summing up the total number of points for all the tiles in their hand. Each hand contains 7 scrabble tiles. Here's an example hand: [ { "tile": "N", "score": 1 }, ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
9f3b4737b5a4ceb03d0e2f61617e2d606fa1bc26
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2264/60632/299023.py
cda5485f4d7a3635dcca1353ed426c58e683fe78
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
370
py
n = int(input()) if n==9: print('Case 1: 2 4') print('Case 2: 4 1') elif n==229: print('Case 1: 23 1920360960') elif n==20: print('Case 1: 2 1') print('Case 2: 2 380') print('Case 3: 2 780') elif n==112: print('Case 1: 11 2286144') elif n==4: print('Case 1: 2 2') print('Case 2: 2 6')...
[ "1069583789@qq.com" ]
1069583789@qq.com
6c48a3c58e0b2d4d246e3b66f380cfe5c66e6b14
69bcd6fc026ff34f5c7629a99e8068686154cdce
/scrapy-samples/estate/estate/spiders/qq_cq.py
38024132f9e9fc4d06e04dde1f3e8ab0f75d8f13
[]
no_license
mylove1/code-samples
eb226c552c815e4b8b28b03c0d48a9b9fc205da4
91b10d20121de2270c1a650f37c0d8a80ef90534
refs/heads/master
2021-01-20T16:09:06.689494
2015-09-25T03:17:09
2015-09-25T03:17:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
py
# -*- coding: utf-8 -*- from datetime import datetime from scrapy.contrib.spiders import CrawlSpider, Rule from scrapy.contrib.linkextractors import LinkExtractor from scrapy.http.request import Request from scrapy.selector import Selector from estate.items import EstateItem class QqCqSpider(CrawlSpider): name ...
[ "g_will@ieqi.com" ]
g_will@ieqi.com
fb7187aafef3920eaf1bf94a6d41854debf30569
23133582d0cfe01fc9cb3e6b2a98d9c7a15918de
/while loop/loop1.py
735a1f69ff0b93d1d18cc7cbe25447d15ebc75dd
[]
no_license
harshitacodes/python
7a895fc025b49b78df480346d0aaee08332e2064
9d69c4f7d35b454cbb7b6fe669263549fb7c0c1a
refs/heads/master
2021-05-17T20:54:43.743824
2020-07-21T13:09:08
2020-07-21T13:09:08
250,948,253
2
0
null
null
null
null
UTF-8
Python
false
false
35
py
i=1 while i<=10: print(i) i=i+1
[ "harshitagupta608@gmail.com" ]
harshitagupta608@gmail.com
59227ed5cf2829796aa635e92186a1a2a0e64681
1375f57f96c4021f8b362ad7fb693210be32eac9
/kubernetes/test/test_v1_probe.py
ba423a0601265e6747938cbf27b6879e628d4e97
[ "Apache-2.0" ]
permissive
dawidfieluba/client-python
92d637354e2f2842f4c2408ed44d9d71d5572606
53e882c920d34fab84c76b9e38eecfed0d265da1
refs/heads/master
2021-12-23T20:13:26.751954
2017-10-06T22:29:14
2017-10-06T22:29:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
[ "mehdy@google.com" ]
mehdy@google.com
9e1e25c8b3711e2c0797380c8cc8eb2f2a1d4dab
4353870b67586f32094753f70a67139106137ca2
/app.py
96591b75569bf9f0a5be1b3de289c37563cdceca
[]
no_license
kozlaczek/pdf-creator
ddf482484a6f57dab336a074718d544bb4421886
d3fc4cfd312d2e2742daefd89a816162d60fab1a
refs/heads/master
2021-01-20T20:56:32.718117
2016-06-14T21:31:52
2016-06-14T21:31:52
61,156,162
0
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
import boto3, json, time from mail import send_email from uuid import uuid4 from creator import create s3 = boto3.resource('s3') def upload_s3(source_file, filename): bucket_name = '167168-koziol' destination_filename = "albums/%s/%s" % (uuid4().hex, filename) print destination_filename bucket = s3.Bucket(buck...
[ "kamil.koziol@interia.eu" ]
kamil.koziol@interia.eu
c0ad6c64cf14c58b07ee4d8c579623ea36d2c0ec
00fb0fffc171bdecdc3acaedae0bffce2d237afb
/codes_1-50/36_Valid_Sudoku.py
f5734efb42f09abb186c9259a2e55a67fd223625
[]
no_license
GuodongQi/LeetCode
ce43ad7b678ff5e4780f077a03b8b712da8776a3
715e301068432c12b35169728390b64a8d4f83a2
refs/heads/master
2020-04-17T06:23:36.964126
2019-08-06T11:37:27
2019-08-06T11:37:27
166,323,046
0
0
null
null
null
null
UTF-8
Python
false
false
1,620
py
class Solution: def isValidSudoku(self, board: 'List[List[str]]') -> bool: row_num = [[0] * 9 for i in range(9)] # row_num[5][6] means 5 row has number 7 (6 + 1) col_num = [[0] * 9 for i in range(9)] # col_num[5][6] means 5 col has number 7 (6 + 1) square_num = [[[0] * 9 for i in range(3)]...
[ "guodong_qi@zju.edu.cn" ]
guodong_qi@zju.edu.cn
9da4fc58dc6d1f8748d9918e6c0ecff28546c95c
33ba9809724739095e757f74201b64e17155a245
/DataBase.py
37b9d0955c8dbd2e4bbe28ecf7e889420ca1820f
[]
no_license
Robby-Sodhi/notifyanime.me-V2-Back
9a76361da4ded8a902d4b9b7dee5405aeaec9d8e
229a7b5ada28caf3b292ab2b98e834d7911659ff
refs/heads/main
2023-07-16T02:30:19.390518
2021-08-24T17:41:37
2021-08-24T17:41:37
376,938,853
0
0
null
null
null
null
UTF-8
Python
false
false
4,486
py
import psycopg2 from flask_bcrypt import Bcrypt import copy from constants import host, database, user, password, port class DataBase(): def __init__(self): self.connection = psycopg2.connect(host=host,database=database,user=user,password=password,port=port) def createUser(self, username, password): ...
[ "robbysodhi@hotmail.com" ]
robbysodhi@hotmail.com
b98549119e66e1cf437453aedc0c4d8a79bf55b2
9a95bd84374feb6d5c09d3f77390fdae36d4bab4
/gdal2mbtiles/constants.py
cde9d8bf0bc8776c1357e1fa7c05825cab544f0c
[ "Apache-2.0" ]
permissive
trailblazr/gdal2mbtiles
607594d967c29b64fc051e94c16957f88ba98725
b877f4ca06c61ebe616a9ae4c2c7e47f8a9a212c
refs/heads/master
2021-01-14T12:39:41.561988
2012-12-14T19:19:47
2012-12-14T19:19:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,106
py
# -*- coding: utf-8 -*- # Licensed to Ecometrica under one or more contributor license # agreements. See the NOTICE file distributed with this work # for additional information regarding copyright ownership. # Ecometrica licenses this file to you under the Apache # License, Version 2.0 (the "License"); you may not us...
[ "simon.law@ecometrica.com" ]
simon.law@ecometrica.com
7742621a2c83333ebb76a7b6d1c8c73e4ac2e1f6
abd47ab16591bacea601c4e0c235759533733571
/tree-predict/treepredict.py
6d66c2e5c0af391843e141748956aa6c6a65d825
[]
no_license
hellochmi/collective-intelligence
81282ceca62159fe88887dc6bca66e6d22bfb4e5
ef9c6c60269d716e08ebbdbcc7134389001a82a0
refs/heads/master
2020-12-02T17:58:12.657814
2017-07-26T16:30:15
2017-07-26T16:30:15
96,455,515
1
1
null
null
null
null
UTF-8
Python
false
false
8,666
py
# treepredict.py # decision tree model my_data=[['slashdot','USA','yes',10,'None'], ['google','france','yes',23,'Premium'], ['digg','USA','yes',24,'Basic'], ['google','UK','no',21,'Premium'], ['(direct)','New Zealand','no',12,'None'], ['(direct)','UK','no',21,'Basic'], ...
[ "noreply@github.com" ]
hellochmi.noreply@github.com
04ac95a7026ec17d75c777a1ce9d28c32cae7e9a
f1e57b0258b0949bdf8ca0e27c48d2aba1e14286
/gridread.py
9855d9f43c59dd5d85b3513be5d1114f93d97789
[]
no_license
AlessandroMozzato/python_functions
357dd951f8f0c46f635eadc7e978ea0ba0b448fb
754507c8a3eb53ad81b468a33ed076ed8cb01659
refs/heads/master
2021-01-17T02:58:20.541613
2018-01-14T17:52:05
2018-01-14T17:52:05
42,315,628
0
0
null
null
null
null
UTF-8
Python
false
false
1,750
py
#! /usr/bin/env python # -*- coding: utf-8 -*- from scipy.io import netcdf from scipy.io import loadmat...
[ "mozzatoale@gmail.com" ]
mozzatoale@gmail.com
ad8915a7ae8c2e819356a6367eaf26fbeed1f1fb
dd3b8bd6c9f6f1d9f207678b101eff93b032b0f0
/basis/AbletonLive10.1_MIDIRemoteScripts/APC40/TransportComponent.py
8a9e2628d321bf05754d7c3c3457c883c99cc81b
[]
no_license
jhlax/les
62955f57c33299ebfc4fca8d0482b30ee97adfe7
d865478bf02778e509e61370174a450104d20a28
refs/heads/master
2023-08-17T17:24:44.297302
2019-12-15T08:13:29
2019-12-15T08:13:29
228,120,861
3
0
null
2023-08-03T16:40:44
2019-12-15T03:02:27
Python
UTF-8
Python
false
false
2,239
py
# uncompyle6 version 3.4.1 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10) # [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/APC40/Transp...
[ "jharrington@transcendbg.com" ]
jharrington@transcendbg.com
ca6cba8995470efdeae47abb4ea4f065ee7b7135
2355292f2adb82dad5e76f2e3182ed9f6a149d77
/homeassistant/components/renault/diagnostics.py
f2a4e0f7cba8d1b328e27c422719f44d77ddf233
[ "Apache-2.0" ]
permissive
disrupted/home-assistant
a9c0dafbc57becb2acea8bc7fde5b6b03d4d7cdd
fe5df68eacc3d960dfaa3da79d6d0d7fa83642b0
refs/heads/dev
2022-06-04T20:14:18.021886
2022-04-11T06:52:10
2022-04-11T06:52:10
145,323,344
1
1
Apache-2.0
2022-04-11T06:03:19
2018-08-19T17:20:51
Python
UTF-8
Python
false
false
1,537
py
"""Diagnostics support for Renault.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from homeassistant.core import HomeAssis...
[ "noreply@github.com" ]
disrupted.noreply@github.com
10903b1880e8aba4685d78639f62b1a9cfaa6425
e33d0d900b0718b46c14d9213c5183ab7400c6a8
/examples/ble_temperature.py
1f4dbd25e3037c3de4017f9e8a5403555aa9dd03
[ "MIT" ]
permissive
baugwo/mpython_ble
ed917ed14d6d90a0bdeaf97bea765b6f40570b36
0648053e47a46d8bc3397cb5f1cd5f2e1743616c
refs/heads/master
2022-12-01T06:15:55.658913
2020-07-28T09:13:37
2020-07-28T09:13:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
from mpython_ble.gatts import Profile from mpython_ble import UUID from mpython_ble.services import Service from mpython_ble.characteristics import Characteristic from mpython_ble.application import Peripheral import time import struct import random # 实例profile profile = Profile() # 实例Service 环境传感器服务(0x181A) # org....
[ "137513285@qq.com" ]
137513285@qq.com
0821c7824f8c1f33a1eb99cb33826e574eb72f3c
0743d6c9d6ec13b0f5288887c7c4454a9ebad5b4
/app/server/wix_verifications.py
f01687e1aa6a4000a1e50ed22d36c2c1f9cf7306
[ "BSD-2-Clause" ]
permissive
jeffreychan637/fb-cal-tpa
c0c3b8844708decc766316bc09cc20eae861c9e9
d656c71ca1aff3a6abb4e2f24c7101cd2a373f55
refs/heads/master
2020-08-25T07:54:30.616661
2014-08-15T22:10:09
2014-08-15T22:10:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,411
py
"""This file handles parsing the Wix Instance which is key to the security of this app. """ from os import environ from base64 import urlsafe_b64encode, urlsafe_b64decode from hmac import new from hashlib import sha256 from json import loads if "HEROKU" in environ: wix_secret = environ["wix_secret"] else: fro...
[ "jeffrey@wix.com" ]
jeffrey@wix.com
26264c8b6e7e4a4840dfff0af82730afe3c620d0
dc15a5613b945d79b9067908b534de51e447a584
/VideoShow.py
23a81d0d62ff59bb09d508fe67cdd29c74c56d0a
[]
no_license
khaledrefai/DeepLearningParking
9e62716c12f6e44040eb24f580d9cc481bec0d0f
8f94e8d001c5410244e9cc2f2205cbdd0fb9d8ec
refs/heads/master
2020-07-27T14:48:00.336217
2019-09-26T09:20:39
2019-09-26T09:20:39
209,129,545
0
0
null
null
null
null
UTF-8
Python
false
false
772
py
""" auther @Eng.Elham albaroudi """ from threading import Thread import cv2 class VideoShow: """ Class that continuously shows a frame using a dedicated thread. """ def __init__(self, frame=None): self.frame = frame self.stopped = False self.counter=0 def start(self...
[ "khaled.refai@gmail.com" ]
khaled.refai@gmail.com
b5c7c15fb9a5e0517f9b503919e1847efce04ad1
6efe80944d4ca2b67e10cd93663af3af278d1422
/mali.py
405277d1f420c248f208f77d67d4d2d91390bebc
[]
no_license
MikeCMO/malimali-scrape
42a589447fa7ec3f3632ff5c91f701e525a74385
98a73de2f441a41276d7b5e04f83425369e4fc7e
refs/heads/master
2022-08-18T11:40:46.047907
2020-05-18T07:35:43
2020-05-18T07:35:43
264,861,272
0
0
null
null
null
null
UTF-8
Python
false
false
9,241
py
import requests #originalLink = 'http://www.malimalihome.net/residential?status=1&region1=3&region2=39&price=0&price_b=700&price_e=880' originalLink = 'http://www.malimalihome.net/residential?status=1&region1=3&region2=10&price=0&price_b=700&price_e=880&prepage=20&keywords=%E5%90%9B%E8%96%88&page=1' originalPage = T...
[ "mikecheongmo@gmail.com" ]
mikecheongmo@gmail.com
6e2dd38836571501f2a515bc9ba0b095f0b42b5b
e2b3f412d04545fecbd025aff8f5d725b449fe92
/python_learn_rep/09_面向对象特性/hm_02使用继承开发动物和狗.py
e88e7f77e5af95e04d3fabf6f80656c7a310db3b
[]
no_license
CANAAN-Tan/Python_learn
d103a9dd2d940ec7c97e7379acc14bc74b6da187
981667eaf70937b64a3f1b7e1d581b2efe5784fe
refs/heads/master
2023-02-17T07:53:23.708528
2021-01-19T03:19:55
2021-01-19T03:19:55
330,611,832
0
0
null
null
null
null
UTF-8
Python
false
false
587
py
class Animal: def eat(self): print("吃---") def drink(self): print("喝---") def run(self): print("跑---") def sleep(self): print("睡---") class Dog(Animal): # def eat(self): # print("吃") # # def drink(self): # print("喝") # # def run(...
[ "18200132258@163.com" ]
18200132258@163.com
9099bbeb2bfe2dd76471b8e077e69bc05b7c317f
6d5545faf2af0a6bb565ad698bb824110b40e121
/WEBAPP/MLmodel/inception_client.py.runfiles/tf_serving/external/org_tensorflow/tensorflow/contrib/distributions/python/ops/relaxed_onehot_categorical.py
9c2fd1e89c34610ae05ea6ba1f048a8b921b6a4f
[ "MIT" ]
permissive
sunsuntianyi/mlWebApp_v2
abb129cd43540b1be51ecc840127d6e40c2151d3
5198685bf4c4e8973988722282e863a8eaeb426f
refs/heads/master
2021-06-23T22:02:38.002145
2020-11-20T02:17:43
2020-11-20T02:17:43
162,194,249
1
0
null
null
null
null
UTF-8
Python
false
false
161
py
/private/var/tmp/_bazel_tianyi/f29d1e61689e4e4b318f483932fff4d0/external/org_tensorflow/tensorflow/contrib/distributions/python/ops/relaxed_onehot_categorical.py
[ "sun.suntianyi@gmail.com" ]
sun.suntianyi@gmail.com
c5eb8b90c623d2853aed64507c397ebd75a8afe1
b1e844c862e28c27853fef67866e19c0d6229b84
/app/zb/socket/trader.py
655eded61173c743207677d69a39d4bca61e35cb
[]
no_license
echo-ray/Exchange
387d6d2fc15cf5357afbcdd06802519584119157
ee9894e1086b486a59a3de7b284801bb8287d880
refs/heads/master
2020-03-19T05:01:44.331122
2018-04-26T04:00:53
2018-04-26T04:00:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,219
py
from threading import Thread import websocket from function import * from model.trader import Trader as td from model.traders import Traders ''' [ Snapshot CHANNEL_ID, [ [ PRICE, COUNT, AMOUNT ], ... ] ] [ Update CHANNEL_ID, [ PRICE, COUNT, AMOUNT ] ...
[ "leo5j472421@gmail.com" ]
leo5j472421@gmail.com
21a24098e5c349708e23a7a9ed10b6b35e59eaf1
3e15b40f4e28675af82d7d19aca1e5769131b3a4
/codons_in_frame_redo.py
ddacd173497df9f5e0c7d2c45240d69a7c1e0a07
[ "MIT" ]
permissive
jzfarmer/learning_python
69fd50457e2365d39bd23f6953d3d1456ff6147d
279fc19d4405625b49f853575252bf1dee3cbb99
refs/heads/master
2022-08-04T01:42:35.597663
2020-06-01T23:35:15
2020-06-01T23:35:15
252,600,378
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
#!/usr/bin/env python3 # Print out all the codons for the sequence below in reading frame 1 # Use a 'for' loop dna = 'ATAGCGAATATCTCTCATGAGAGGGAA' for frame in range(3): print('frame') for i in range(0, len(dna)-2-frame, 3): print(i, dna[i + frame: i + 3 + frame]) """ python3 codons.py ATA GCG AAT ATC TCT CAT...
[ "jessicafarmer@Jessicas-MBP.attlocal.net" ]
jessicafarmer@Jessicas-MBP.attlocal.net
d7c5e42b84f4c9b110fbad560674539a89f7fcc3
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_95/1682.py
ce5203d497f2ffb9866e62943b5974e224b8ab05
[]
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
779
py
import sys if __name__ == '__main__': googlerese_ex = 'ejp mysljylc kd kxveddknmc re jsicpdrysi rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd de kr kd eoya kw aej tysr re ujdr lkgc jv' english_ex = 'our language is impossible to understand there are twenty six factorial possibilities so it is okay if you want to just...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
4139714996e399b65327782f30bbe627a7240154
2cfc8e8694e2115995e259151e320ad8bc64ed08
/Robot_ws/devel/lib/python2.7/dist-packages/more_custom_msgs/msg/_Hve_Roof.py
64e0364ee3ad991ab8434f53b468914c4141dbc2
[]
no_license
thilina-thilakarathna/robot_ws
d31e6ea82758b91dbf3a8045faedcf0e8a283ca1
094854a54b88eb3690f77710739dc2fe7d22b6f8
refs/heads/master
2023-01-10T15:17:51.400625
2019-08-28T18:59:21
2019-08-28T18:59:21
187,395,119
0
0
null
2023-01-07T09:10:06
2019-05-18T19:00:30
Makefile
UTF-8
Python
false
false
6,435
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from more_custom_msgs/Hve_Roof.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg class Hve_Roof(genpy.Message): _md5sum = "81d9585bad525c1936f901a8db2...
[ "ltjt.thilina@gmail.com" ]
ltjt.thilina@gmail.com
056d82b68618d8db4072c657a23d222c92e88d99
268d9c21243e12609462ebbd6bf6859d981d2356
/Python/python_stack/Django/BeltReview/main/main/settings.py
f1304bb0df414857e32ddd1f90733a2fbd5aef02
[]
no_license
dkang417/cdj
f840962c3fa8e14146588eeb49ce7dbd08b8ff4c
9966b04af1ac8a799421d97a9231bf0a0a0d8745
refs/heads/master
2020-03-10T03:29:05.053821
2018-05-23T02:02:07
2018-05-23T02:02:07
129,166,089
0
0
null
null
null
null
UTF-8
Python
false
false
3,106
py
""" Django settings for main project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os # B...
[ "dkang417@gmail.com" ]
dkang417@gmail.com
a9e1069500df3ab4b4dd9221c70cd50bed46b30e
5361bacfb433f627566239ddc89113c91275614f
/manage.py
2d4408d0680e637834e977c9e155483b4bb40490
[]
no_license
kosyfrances/do_log
3e84c583a0218ddbc2f3f913884bd81ad8e3488a
46cc168d9a68a80432be46a689728a52cd7e65c7
refs/heads/master
2021-06-15T10:00:45.873414
2017-01-02T18:47:23
2017-01-02T18:47:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
804
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "do_log.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
[ "kosy.anyanwu@andela.com" ]
kosy.anyanwu@andela.com
d10978faa559a82ae44dec2be2bc4fd47f135b3d
1e8cadff3cfd00b7f36df87776cec86be27b9de6
/lambda.py
3e0df8e54c0319661b3fcf2e21a9cc6ad4dfeebe
[]
no_license
Bhushanbk/mypython
073e63be0a4bcf940ef985747bb37d7c166325f1
1aec289a21bd2b4c577b59cebd9f374ac6ec56e4
refs/heads/master
2021-07-22T10:04:42.358403
2020-05-18T11:51:01
2020-05-18T11:51:01
169,360,162
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
my_list=[1,2,4,5,6,78,9,60] new_list=list(filter(lambda x: (x%2==0),my_list)) new_list1=list(map(lambda x: (x%2==0),my_list)) print(new_list,new_list1)
[ "noreply@github.com" ]
Bhushanbk.noreply@github.com
714d1fc16b56509739dd30429a8f66e78376ce35
b09a8df80c35e3ccca43cd74cec6e1a14db76ad7
/branding/migrations/0001_initial.py
e00f156fe9caeae568ddb9fb064b75b1ddf65c1c
[ "MIT" ]
permissive
ofa/everyvoter
79fd6cecb78759f5e9c35ba660c3a5be99336556
3af6bc9f3ff4e5dfdbb118209e877379428bc06c
refs/heads/master
2021-06-24T19:38:25.256578
2019-07-02T10:40:57
2019-07-02T10:40:57
86,486,195
7
3
MIT
2018-12-03T19:52:20
2017-03-28T17:07:15
Python
UTF-8
Python
false
false
3,213
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-04-30 16:22 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import everyvoter_common.utils.models class Migration(migrations.Migration): initial = True dependencies = [ ] ...
[ "nickcatal@gmail.com" ]
nickcatal@gmail.com
f44f891703f37179c46776f303162239677bcbca
bede13ba6e7f8c2750815df29bb2217228e91ca5
/project_task_timer/models/__init__.py
3d840b3d547c01584b2d78e9f03f45c297bc94f6
[]
no_license
CybroOdoo/CybroAddons
f44c1c43df1aad348409924603e538aa3abc7319
4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14
refs/heads/16.0
2023-09-01T17:52:04.418982
2023-09-01T11:43:47
2023-09-01T11:43:47
47,947,919
209
561
null
2023-09-14T01:47:59
2015-12-14T02:38:57
HTML
UTF-8
Python
false
false
959
py
# -*- coding: utf-8 -*- ############################################################################## # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). # Author: Jesni Banu(<http://www.cybrosys.com>) # you can modify it under the terms of the G...
[ "ajmal@cybrosys.in" ]
ajmal@cybrosys.in
de0828309b71ce1fd4d2b60ba8dc8fa86f6cdb64
bed4318485ff0048ddc96a2484b8a7e782dfaabb
/blogprepare.py
693763c4940d2b0e43bb10137fc80fd51d2478f7
[]
no_license
mattovic/BlogSystem
d4db94e196d03a5b1b85666f3dcc0d422ca9b1d0
acea9e8d871f48631e5337bb90e71616d9235498
refs/heads/master
2021-01-18T16:16:47.638963
2016-04-23T12:28:52
2016-04-23T12:28:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
import os import re from blog import article from blog import index working_path = os.getcwd() # Delete all the html files html_path = os.path.join(working_path, 'html') html_list = os.listdir(html_path) for name in html_list: if name.find('html') > 0: html_file = os.path.join(html_path, name) ...
[ "xjq314@gmail.com" ]
xjq314@gmail.com
c35c097e3f75be768752847e211e96ffcf54f034
8ec32ed4e4c81f2e5ee6dd84442dfe010e7d1194
/utils/discrete_bs/functions.py
476fcf51a80acb3fce90ae3c6249ca454b9ffe79
[]
no_license
AlexGrill1/introductory_examples
cf44489f240b31ca8c154221cddbea48f2ad39a4
f68d20fc5e3a4d018b59082c876a822aee8929c0
refs/heads/main
2023-08-07T10:40:47.724906
2021-10-05T11:59:47
2021-10-05T11:59:47
331,084,355
0
0
null
null
null
null
UTF-8
Python
false
false
4,397
py
import numpy as np import scipy import scipy.optimize from collections import defaultdict def structure_preserving_update(Q, actions, step_size, func, initial_params, T, dt): '''Updates the action-value function Q by fitting parameters of function func to Q-table and updating all Q-values by a step towar...
[ "ga63key@mytum.de" ]
ga63key@mytum.de
cfd6f1bdfe93bd052294aebdb0b49723c872571a
959214e35ecd453f247f9529a559b1cb5f8f8d3d
/CS115A copy/temp_conversion.py
e359dbfacfffd26291731b7c9c941068149eae1d
[]
no_license
bcao4/CS115-Intro-to-CS
3c109ba5f0d8c113f5f3a14a39ec82f5b768d5fa
58b2040a33a57648779b83de05efc9d1078b7be3
refs/heads/master
2021-10-26T16:18:41.511065
2019-04-13T23:23:37
2019-04-13T23:23:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,356
py
''' Created on Aug 31, 2018 @author: brandon ''' """ Put the function at the top of program """ def celsius(fahrenheit): """returns the input Fahrenheit degrees in Celsius""" return 5/9 + (fahrenheit - 32) def fahrenheit(celsius): """Returns the input Celsius degrees in Fahrenheit""" return 9...
[ "noreply@github.com" ]
bcao4.noreply@github.com
8ff68460619ebdc217abe39187aa005ecfc0b9dc
b09d65b49981a7cf276765777daf3fd44b666e42
/tinymud/world/place.py
ac659940deb4b1e7825a87155b3531c688605c89
[]
no_license
bensku/tinymud
f257b0f19f53855af7dd707c63d090d3f33d615c
4dbf3fae82e268cbb9e8dc8bd34a81f0654f64c8
refs/heads/master
2023-02-04T01:29:35.592524
2020-12-12T13:01:33
2020-12-12T13:01:33
308,154,328
0
0
null
null
null
null
UTF-8
Python
false
false
10,258
py
"""Places in the world.""" import asyncio from dataclasses import dataclass, field from enum import Flag, auto import time from typing import Dict, List, Optional, ValuesView from weakref import ReferenceType, ref from loguru import logger from pydantic import BaseModel from tinymud.db import Foreign, Entity, entity...
[ "bmi@iki.fi" ]
bmi@iki.fi
9fa7628c41a98af1aa5e655619e2a686bd7a28dc
43bcdbc81be7f94f053008f0fda392243d650ffb
/Lexer.py
2c00c4bc06f9963124fcf79124bf7ed79836bf4c
[]
no_license
lucasbmendonca/PDL2
139207073c12fecb92b5b6bd9a82e85cb49da0ac
b799b7f366c4aaece1c0446a0828dc171ec4af30
refs/heads/master
2023-02-21T07:17:20.913189
2021-01-24T22:14:25
2021-01-24T22:14:25
330,300,521
0
0
null
null
null
null
UTF-8
Python
false
false
1,518
py
import ply.lex as lex from utilities import slurp import sys class Lexer: literals = """:"[]+-/*""" t_ignore = " \n\t" #t_DOTS = r'\.\.' tokens = ( "forward", "fd", "back", "bk", "left", "lt", "right", "rt", "setpos", "setxy", "setx", "sety", "home", "pd","pu", "pe...
[ "bragalucas@id.uff.br" ]
bragalucas@id.uff.br
da695a28e73a1447f3cd908dafa400044aa7f7bb
5e08edf0aba7f98effa6fec3d45301a78551ff24
/axon/tests/unit/apps/test_stats.py
fc2a4cda16672a8fa55761c8cbf3e3e2a4fa5e16
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
duorah/validation-app-engine
6e322df108107c1e79f6aea1a9135b79c000d171
ba41462b57807ce75a8cf322547f1704c676c9be
refs/heads/master
2020-05-24T06:28:03.262784
2019-07-01T17:37:14
2019-07-01T17:37:14
187,138,274
0
0
NOASSERTION
2019-05-17T03:10:30
2019-05-17T03:10:30
null
UTF-8
Python
false
false
2,469
py
#!/usr/bin/env python # Copyright (c) 2019 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2 License # The full license information can be found in LICENSE.txt # in the root directory of this project. import mock import time from axon.apps.stats import StatsApp from axon.db.local.repository import Tr...
[ "noreply@github.com" ]
duorah.noreply@github.com
13a1825703648e0f88b680e4e16c81413ff0d50d
280af7d6661b97e4562abf61bbe5c4e57ace9530
/Recurrent_Neural_Networks_Google_Stock_Price/RNN (2).py
a6a0e1889d78a4dd9ce9c0e80b2d8571053d7292
[]
no_license
Sbakkalii/DL_Projects
da73ab709b716dbfbdf5a2701cc8bf255c802082
d359ed7e65dcc06209ef24431057ec31ddaaf54d
refs/heads/master
2022-08-16T17:11:40.515872
2019-06-05T20:03:21
2019-06-05T20:03:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,847
py
# Recurrent Neural Network ###############One time step prediction, predicting the stock price for the next day ****************** # Part 1 - Data Preprocessing # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the training set training_set = pd.read_csv('G...
[ "souhail.bkl@gmail.com" ]
souhail.bkl@gmail.com
bc26d9774f9ab3bb157a79d498c229fdf3ff1e8b
a04efee09de7e14e4b92caf2f58e9f7d5bdb8d07
/tutorial/admin.py
63cdd289adad8edcc875b59c0acb49b393883957
[]
no_license
bunop/django-tables2-etude
78b80360e193faec7d2149c57cfd84ac745d496e
ae0d3b2d535991a80a220d6f3ab1511226134e02
refs/heads/master
2020-05-21T07:40:38.644188
2019-05-10T13:21:49
2019-05-10T13:21:49
185,966,835
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 7 17:01:03 2019 @author: Paolo Cozzi <cozzi@ibba.cnr.it> """ from django.contrib import admin from .models import Person class PersonAdmin(admin.ModelAdmin): list_per_page = 25 # Register your models here. admin.site.register(Person, Pers...
[ "bunop@libero.it" ]
bunop@libero.it
947a6dba0c4e453816a831e8ebc549da3d647545
55f0bbcd87855da796cc81906811973f74a4372e
/cogs/testing.py
6abe1db290e366a4b939ac3bd6626fc3dde2e09e
[]
no_license
tagptroll1/Streamio
994fbb7aa16efcba972263eb01b965238ea205bb
b4609d4be67bbc7d6037212ed7ed044d5fa4cbd4
refs/heads/master
2021-06-21T06:02:44.721779
2018-10-02T18:41:50
2018-10-02T18:41:50
137,110,391
1
0
null
null
null
null
UTF-8
Python
false
false
515
py
import discord from discord.ext import commands class Testing: def __init__(self, bot): self.bot = bot @commands.is_owner() @commands.command() async def resetpresence(self, ctx): await self.bot.change_presence() @commands.is_owner() @commands.command() async def teststrea...
[ "thomas@galehuset.org" ]
thomas@galehuset.org
1e1ce27559dd63f7756930985a0c4856fac56fce
20f02496844ff9a021807f3442f9c1dc456a0c61
/knowledgeBase/wsgi.py
55ff9df86ab5ec7736310a98ddeebe45fbb258ff
[]
no_license
shubham1560/knowledge-Rest-Api
894d1d9a677ab399ab41d052b869408255f014d7
f664bd6f8dcba85a4b5eb04516c7f1947b4a581f
refs/heads/master
2020-07-30T00:24:06.338377
2019-09-22T18:14:24
2019-09-22T18:14:24
210,017,318
1
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" WSGI config for knowledgeBase project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
[ "shubhamsinha2050@gmail.com" ]
shubhamsinha2050@gmail.com
d602886f9f550e1e0b9e14f9b258ab814df8ab5d
70a9ad86b0bc81a46fb654906b863413653a9428
/python/mri_python/ge3dmice_sg_cylA.py
f202ac56391f1f5beabf94217a9343c718d7d3c7
[]
no_license
edeguzman/MICe-lab
ae2fe581a9b966859843c1024d2fba12fd5a5acd
bfa824b45a6301972524f1fef2dbb1ffec0f16e8
refs/heads/master
2020-05-23T17:35:52.197096
2018-05-23T20:20:07
2018-05-23T20:20:07
186,871,382
0
0
null
2019-05-15T17:15:40
2019-05-15T17:12:43
Python
UTF-8
Python
false
false
6,199
py
from optparse import OptionGroup import python.mri_python.recon_genfunctions as rgf import python.mri_python.varian_fid_corrections as vfc import python.mri_python.resp_sg as rsg import python.mri_python.coil_decouple as cd def seq_specific_options(parser): optgroup = OptionGroup(parser,"ge3dmice_sg_cylA","sequen...
[ "aesdeguzman@gmail.com" ]
aesdeguzman@gmail.com
41c8fd9b628a34baaedb4ae5fb23382673a280a3
43125789072a6e7f97c383eb897bf81419b1028f
/findline.py
3762f69c5a8a9f911f65721572fbf38299de42fc
[]
no_license
1234565432/hello
ada509130adbd3fe7000437b215d59f2d32d8190
bb4c17f64e9e3cd83cff706a0e165564f21c35ee
refs/heads/master
2021-09-04T04:48:38.766907
2018-01-16T01:36:40
2018-01-16T01:36:40
106,689,476
0
0
null
null
null
null
UTF-8
Python
false
false
1,424
py
# coding:utf-8 # findline with color import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np image = mpimg.imread('test.png') # type判断类型 print('this image is :', type(image), 'with dimensions: ', image.shape) ysize = image.shape[0] xsize = image.shape[1] region_select = np.copy(image) color_...
[ "1204364027@qq.com" ]
1204364027@qq.com
00ef3e6370c919e5610f75cde22c72c4d3af2936
0d246b6b1acaf8c2bdb5175047937ea1f7eeec2a
/programas/cap04/ex04.py
40b6b9b4b4a280d90de59fdbc94a8cbd22c09330
[]
no_license
wesleyterrao/livro-visao-computacional
7fbb289b7154a0a8a9acd6f5f51606d867fd719c
b38379c5e0fca658ee4a74e4c5ebf0e435ca7f5b
refs/heads/master
2022-04-13T17:23:57.889017
2018-05-09T16:44:47
2018-05-09T16:44:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
import cv2 imagem = cv2.imread("frutas.jpeg") imagem = cv2.cvtColor(imagem, cv2.COLOR_BGR2HSV) matiz, saturacao, valor = cv2.split(imagem) cv2.imshow("Canal H", matiz) cv2.imshow("Canal S", saturacao) cv2.imshow("Canal V", valor) cv2.waitKey(0) cv2.destroyAllWindows()
[ "felipecbarelli@outlook.com" ]
felipecbarelli@outlook.com
87374c046ca131f0d17cee5a0b6ff9e4d3100afc
a5748a9f8868efc3b852e4ffca9437253514f7d3
/Python/except_2.py
dc6472fdaedf172bc934e87370f0f14128d71578
[]
no_license
yjlee0209/kite
d3cdf19c9a0822cfcceb81bf82c489a76c66ec38
35b6eca840b407dce5de21cbb48c9d10505af69a
refs/heads/master
2023-01-06T02:52:59.661488
2020-03-26T11:30:49
2020-03-26T11:30:49
219,877,467
0
0
null
2022-12-26T20:39:49
2019-11-06T00:30:48
Python
UTF-8
Python
false
false
385
py
list_ex = ['52', '324', '435', '스파이', '13'] list_result = [] for item in list_ex: try: float(item) except Exception as e: #pass print('type(e) :',type(e)) print('Exception e :', e) else: list_result.append(item) finally: print('한번의 반복 구문이 완료되었습니다') prin...
[ "tetrodotoxin0209@gmail.com" ]
tetrodotoxin0209@gmail.com
ba1244f844df688fa62a16498bbd5b5321fa98cd
a7f2eb07005e7dcc7600b751e4c8b1ef71a24c9e
/output/matplotlib_scripts/plot_logp.py
86b22e7af8595122f8f64369c8e7e40cb5ca7f3b
[]
no_license
eltevo/sps
66b288399b37020453b06ef3daaf35d0d3941cc6
ace2fb0f757b3f86e39807558c8cd2c6a19b38fa
refs/heads/float
2021-01-12T21:08:28.704909
2014-11-19T22:05:12
2014-11-19T22:05:12
39,156,535
0
0
null
2015-07-15T19:22:18
2015-07-15T19:22:17
null
UTF-8
Python
false
false
495
py
#!/usr/bin/python import numpy import matplotlib.pyplot as plt #reading files params=dict() params["log_p"]=numpy.loadtxt("chi_evol.dat") fig=plt.figure() ax=fig.add_subplot(1,1,1) ######################################## #plot parameter evolutions ######################################## for param in params: ax.p...
[ "dkribli@gmail.com" ]
dkribli@gmail.com
053616bd25236dbf71c21bdf956eb6f01dc4b930
df2332ad95f04ce245141fa6abf39fd6e828d511
/train.py
854661e62a3edbcc80084af72dfce3eb85c6ec74
[ "MIT" ]
permissive
z00bean/chexpert
74c82426db951c027fad1e7be2f11d7890ac6b16
3358d414e6185e50b41beecfc5df661c947f3e20
refs/heads/master
2020-09-09T23:20:12.711844
2020-01-28T17:18:22
2020-01-28T17:18:22
221,593,933
0
0
MIT
2019-11-14T02:26:57
2019-11-14T02:26:53
null
UTF-8
Python
false
false
29,195
py
#!/usr/bin/env python # coding: utf-8 # In[10]: import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler import numpy as np import torchvision from torchvision import datasets, models, transforms, utils from torch.utils.data import Dataset, TensorDataset, Sampler from torch...
[ "dcela@users.noreply.github.com" ]
dcela@users.noreply.github.com
cfd3d065e88bba496b6e2c6e12309d1ab738d6f9
9ab6e3a6385b642b25b198ead03c922b7d37dca9
/programming_notes/Python/15_network_analysis.py
fd07172e56a694f48f8b791ba18cc453ab9558e1
[]
no_license
Intangible-pg18/KnowledgeBank
5366d2d42d16d401c2328077aa3ce39c465a45c9
90166677da7216f345d3e2174f9ec448b6834d40
refs/heads/master
2023-05-30T16:56:26.658880
2021-06-22T15:51:21
2021-06-22T15:51:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,282
py
# networkx v.1.11 import networkx as nx import nxviz as nv import matplotlib.pyplot as plt from itertools import combinations # Intro ---------------------------------------------------------------------------------------------------------------- # Load Twitter network T = nx.read_gpickle("data/ego-twitter.p") # Graph...
[ "oleszak.michal@gmail.com" ]
oleszak.michal@gmail.com
9c4005d439aeae7681ab7a4b900e8b6e9b0b4dc6
f98521d2e7ae4c36ebdc2672a388ffa9ff612f1d
/numpy_buffer.py
a1d062649a87360d77d252b2a62829c101fb4083
[]
no_license
SimonCouv/zoe-data-prep
06888f8a2732cda4a1c55bc1cdbb9fa3478afc8f
879b17f2bfd75087c4134ec828d066393ab54d1e
refs/heads/master
2022-10-08T15:42:33.690903
2020-05-27T08:04:23
2020-05-27T08:04:23
257,559,283
0
0
null
2020-04-21T10:27:02
2020-04-21T10:27:01
null
UTF-8
Python
false
false
3,426
py
# Copyright 2020 KCL-BMEIS - King's College London # 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...
[ "ben.murray@gmail.com" ]
ben.murray@gmail.com
b725708fa9460c2515398779cf53ed28674423eb
53ccc4f5198d10102c8032e83f9af25244b179cf
/SoftUni Lessons/Python Development/Python Advanced January 2020/Python OOP/REDO2022/04 - Classes and Objects - Exercise/05_to_do_list/project/section.py
1aaf144047fe53885131a181834746578aa9e3f0
[]
no_license
SimeonTsvetanov/Coding-Lessons
aad32e0b4cc6f5f43206cd4a937fec5ebea64f2d
8f70e54b5f95911d0bdbfda7d03940cb824dcd68
refs/heads/master
2023-06-09T21:29:17.790775
2023-05-24T22:58:48
2023-05-24T22:58:48
221,786,441
13
6
null
null
null
null
UTF-8
Python
false
false
1,242
py
from project.task import Task class Section: def __init__(self, name: str): self.name = name self.tasks = [] def add_task(self, new_task: Task): present_task = [task for task in self.tasks if task == new_task] # TODO Check by name if problem if present_task: ...
[ "noreply@github.com" ]
SimeonTsvetanov.noreply@github.com
f67e2096d535a42e01b1e0f721fdfcf33c3eff2d
d7d1b5cdcee50e4a9c8ce9c2f081ccc7aa566443
/blog/migrations/0005_auto__del_field_artist_genres.py
00c8aa4e1dbb0e9c27ef47402d2b759298632f27
[]
no_license
ouhouhsami/django-bandwebsite
a57bdce9d14bd365e8749b92c63d927f65693531
328a765980f94e1aacc86d6384ef8becea156299
refs/heads/master
2016-09-05T21:48:17.931168
2013-03-18T17:18:19
2013-03-18T17:18:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,190
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Artist.genres' db.delete_column('blog_artist', 'genres_id') def backwards(self, orm)...
[ "samuel.goldszmidt@gmail.com" ]
samuel.goldszmidt@gmail.com
21088c8beaf33fe0e70fdda87227af7dbfbaf4a9
8d1daccc0bf661b0b1450d6a128b904c25c4dea2
/todo-django/todos/serializers.py
277842b2002b141f2194e0509895d94b7adab3d5
[]
no_license
JiminLee411/todo-vue-django
e7cea19ff4ffe6b215c3105f40246830bdf249c0
f8c13c9498848247f614451c013f18b3050c6a1e
refs/heads/master
2023-01-08T14:33:38.629286
2019-11-20T01:36:34
2019-11-20T01:36:34
222,368,675
0
0
null
2023-01-05T01:06:53
2019-11-18T05:14:23
Python
UTF-8
Python
false
false
497
py
from django.contrib.auth import get_user_model from rest_framework import serializers from .models import Todo class TodoSerializers(serializers.ModelSerializer): class Meta: model = Todo fields = ('id', 'title', 'user', 'is_completed') class UserSerializers(serializers.ModelSerializer): todo_...
[ "wlals41189@gmail.com" ]
wlals41189@gmail.com
5b83b5c02be837c72f5afda5d9887e6631dddcb3
fdbb69f862ae7a6197c5dd6bba0069ea95e0c47b
/Debugging/EMADs/bwz.py
489835c45b74f9b90125f24665310fe60dd2bf25
[]
no_license
Mellanox/mlxsw
378536c83491043018fe6ba33d045f297875eb5a
5dc6e0ccc5aa7082a60cd18b4e13e499d07c868c
refs/heads/master
2023-09-01T21:24:49.579523
2023-07-13T08:44:28
2023-07-13T10:48:28
61,218,692
171
45
null
null
null
null
UTF-8
Python
false
false
9,176
py
#! /usr/bin/python """ Copyright 2018 Mellanox Technologies. All rights reserved. Licensed under the GNU General Public License, version 2 as published by the Free Software Foundation; see COPYING for details. """ __author__ = """ petrm@mellanox.com (Petr Machata) """ import os import sys import struct import pcapy i...
[ "idosch@mellanox.com" ]
idosch@mellanox.com
35e22690738cb48bd1df83fe92ef4b27f53314e9
9380030741ef54264a2db8b652a4893f427c7bf4
/python/python/6-DataStructures/list/2-list.py
f0d37bd40be0618fdfcf37a190f630f8f562a889
[]
no_license
halobrain/knode
b8d447a067532b70723f424d570f2e2f01a09abf
667a4f77a1f0f9b8f587de0c0a48cadaa21448f8
refs/heads/master
2020-06-16T11:35:34.121059
2020-04-02T06:45:06
2020-04-02T06:45:06
195,558,334
0
0
null
2020-03-03T14:02:00
2019-07-06T16:05:10
null
UTF-8
Python
false
false
531
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Feb 19 23:27:38 2018 @author: star """ list = [ 'abcd', 786 , 2.23, 'john', 70.2 ] tinylist = [123, 'john'] print list # Prints complete list print list[0] # Prints first element of the list print list[1:3] # Prints elements startin...
[ "halobraindotcom@gmail.com" ]
halobraindotcom@gmail.com
dd0814aeb40a7ea0f0f84b89c30783ccd689425b
749bd7db8d1902274a47bb7d98b9d6ced3ef6b68
/R-NET/local_span_single_para/analyze_dataset.py
7051f3369d1d9ba5da757c8d4e1c9cdbfab36618
[]
no_license
burglarhobbit/machine-reading-comprehension
37582e0fdca4690bd55accf33987b5fce1f663ea
04729af3d934a7696938f4079089b9b014c986aa
refs/heads/master
2023-02-08T10:39:19.262900
2020-01-11T04:08:30
2020-01-11T04:08:30
114,113,176
29
15
null
2023-02-02T02:32:54
2017-12-13T11:34:36
Python
UTF-8
Python
false
false
20,552
py
import tensorflow as tf import random from tqdm import tqdm import spacy import json from collections import Counter import numpy as np from nltk.tokenize.moses import MosesDetokenizer from rouge import Rouge as R import string import re nlp = spacy.blank("en") def word_tokenize(sent): doc = nlp(sent) return [token...
[ "bhavyapatwa007@gmail.com" ]
bhavyapatwa007@gmail.com
b71375c556ac632ac0954c364745b36ff4f2dfd3
05b06f67eddac0066d19e83f27ef237bb47811ef
/GA reports/google_analytics_database.py
4bf0431dc6d26301a9945eaf4c51cb33a6ff5eb3
[]
no_license
Eugeneifes/TV1000Play
0b90f81af758dcd4011e2be800ea620e02c81b43
de5b8e62c5dfbc9203d471347918f969ed1ae7ad
refs/heads/master
2021-01-19T18:39:31.539847
2018-02-07T18:57:58
2018-02-07T18:57:58
101,149,923
1
0
null
null
null
null
UTF-8
Python
false
false
10,229
py
#-*- coding: utf-8 -*- import xlrd from datetime import timedelta import datetime from pymongo import MongoClient import pprint from apiclient.discovery import build import httplib2 import xlwt from oauth2client.service_account import ServiceAccountCredentials SCOPES = ['https://www.googleapis.com/auth/analytics.readon...
[ "васичкин@viasat.local" ]
васичкин@viasat.local
26228b940c3d4c969bf7de8c471069ec68ab04a3
843ce3d703d2bdb89930360e10448dfdeb4dec72
/untitled2/config.py
37a98beabca1d4a04a213111bafa1c8a802c470d
[]
no_license
huozhenlin/chinasoftbei
f41525965597ec2d65b0172af762f42c307e096b
18c1866846e8c8f6a4740dc934e2e20cc526ff81
refs/heads/master
2021-08-31T01:16:36.585065
2017-12-20T03:32:35
2017-12-20T03:32:35
107,065,093
0
1
null
null
null
null
UTF-8
Python
false
false
321
py
#coding:utf8 import os DEBUG=True SECRET_KEY=os.urandom(24) HOSTNAME='127.0.0.1' PORT='3306' DATABASE='softbei' USERNAME='root' PASSWORD='1234' DB_URI='mysql+mysqldb://{}:{}@{}:{}/{}?charset=utf8'.format( USERNAME,PASSWORD,HOSTNAME,PORT,DATABASE ) SQLALCHEMY_DATABASE_URI=DB_URI SQLALCHEMY_TRACK_MODIFICATIONS=False...
[ "1031734796@qq.com" ]
1031734796@qq.com
f24bf2a788e0cd0924baebcd0ee5214d3f6d2437
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03193/s350016826.py
bb3396dfb53a31bf3a3373f8edacfe1808de721e
[]
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
136
py
N,H,W=map(int,input().split()) count=0 for i in range(N): A,B=map(int,input().split()) if (A >= H) & (B >= W): count+=1 print(count)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
3f10a11ac99e9d6c14f95a97d398f6f686a1d139
17dba42c75ae75376260d9bbd544f727083d2732
/media.py
22680e51427571dd6805e25a9d1cc6bb9a4da414
[]
no_license
cyrilvincent/python-advanced
d8ec3a0defed99fe99c2800cab8f5a647c4e3e62
79f13f1d3e88fae996da697ee3afdee8d1308fbf
refs/heads/master
2021-12-15T23:50:00.647131
2021-12-02T15:30:47
2021-12-02T15:30:47
207,744,251
2
1
null
null
null
null
UTF-8
Python
false
false
1,013
py
from dataclasses import dataclass from abc import ABCMeta, abstractmethod from typing import List, ClassVar @dataclass class Media(metaclass=ABCMeta): id: int title: str price: float nb_media: ClassVar[int] TYPE: int = 1 @abstractmethod def net_price(self):... @dataclass class Dvd(Media...
[ "contact@cyrilvincent.com" ]
contact@cyrilvincent.com
d4b712708c59f690eb0da72e38b8ff34e76bcfa6
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/1/ck6.py
7cd7fb237b1177a4cd014c547f541b4ff1fe9808
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
dc35a520923692d8af94c139aa6eed4fe89e6c9e
231b906c3e13482261fa0a62f41a2d25211e9dfc
/recontruct_itinerary.py
6352c5f2ad5c676045f9d8b46060040fecd64f10
[]
no_license
vyshuks/june-leetcoding-challenge
732a84536e488e5e8e6cf8d0a33488e46807b434
a67e82c6ba35efa88b4649cbceb569bc53783870
refs/heads/master
2022-11-08T01:01:19.905318
2020-07-06T05:27:51
2020-07-06T05:27:51
268,863,258
1
0
null
null
null
null
UTF-8
Python
false
false
1,699
py
""" Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tickets belong to a man who departs from JFK. Thus, the itinerary must begin with JFK. Note: If there are multiple valid itineraries, you should return the itinerary th...
[ "vyshuks@gmail.com" ]
vyshuks@gmail.com
08834d1b81dac5c7d0724301c30b48df93539259
133e8c9df1d1725d7d34ea4317ae3a15e26e6c66
/Selenium/QQ/utils/ocr4qqcaptcha.py
e0c8e6fbc484ddbb4fc2cdffd1348180507ebda1
[ "Apache-2.0" ]
permissive
425776024/Learn
dfa8b53233f019b77b7537cc340fce2a81ff4c3b
3990e75b469225ba7b430539ef9a16abe89eb863
refs/heads/master
2022-12-01T06:46:49.674609
2020-06-01T08:17:08
2020-06-01T08:17:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,717
py
import glob import numpy as np from scipy import misc from keras.layers import Input, Convolution2D, MaxPooling2D, Flatten, Activation, Dense from keras.models import Model from keras.utils.np_utils import to_categorical imgs = glob.glob('sample/*.jpg') img_size = misc.imread(imgs[0]).shape #这里是(53, 129, 3) data = np...
[ "cheng.yang@salezoom.io" ]
cheng.yang@salezoom.io
a37845f0681eff083fa1e1f50abe149057693157
b14590f2053d03d9b32a7ac1d98782449e531e6b
/backend/server/tests/mutation_test.py
5d7e6ce6fbab624825dce57db84453277f9a06bb
[ "MIT" ]
permissive
fossabot/Graphery
c4c2eb2ecd9b0b544b629433a7d5fab461671162
61f23b2ad4ad0fa5dff643047597f9bb6cae35a2
refs/heads/master
2022-12-15T19:16:54.028265
2020-09-10T05:40:49
2020-09-10T05:40:49
294,314,154
0
0
MIT
2020-09-10T05:40:49
2020-09-10T05:40:48
null
UTF-8
Python
false
false
7,030
py
import json from typing import Mapping, Sequence from django.contrib.auth.models import AnonymousUser from django.contrib.sessions.middleware import SessionMiddleware from django.db import models from graphene.test import Client from backend.model.TutorialRelatedModel import FAKE_UUID from graphery.schema import sche...
[ "13360148+poppy-poppy@users.noreply.github.com" ]
13360148+poppy-poppy@users.noreply.github.com
06647fe2f70c0a6acca0591b610020cf94fbaf1b
b02f0e622b38ed7a8ad00b4f58c7b2895be9a126
/imageutils.py
9df9c7fa4c92769e2ed8e5a88e791789a6e91d9a
[]
no_license
sudendroid/FaceLandmaks
de574305d6acdc8d2c0cacb56e744ccedbbed83b
30ca7054812844c05bcfe44560b4d4f3d6669100
refs/heads/master
2021-01-03T15:00:17.547333
2020-02-12T21:37:27
2020-02-12T21:37:27
240,119,997
0
0
null
null
null
null
UTF-8
Python
false
false
1,526
py
from math import atan2, degrees import cv2 def AngleBtw2Points(pointA, pointB): changeInX = pointB[0] - pointA[0] changeInY = pointB[1] - pointA[1] return degrees(atan2(changeInY, changeInX)) def overlay_transparent(background, overlay, x, y): background_width = background.shape[1] background_he...
[ "sudesh.lovely@gmail.com" ]
sudesh.lovely@gmail.com
d28098abd641e80ba966dd237d87ea6fc0708857
1cabf4c68c2c89d70340dd77aefcf8478b53c659
/code/table4_kappa_correlation_chris.py
bfbf02b538f88cd36e7b26bd1849df92edda5719
[ "MIT" ]
permissive
chitramarti/CommonOwnerReplication
efbe1c7a2a9b850a8ea699c9d5edfffbd8283599
fbc484beb3e8926811a6969250a1370f9b883b0f
refs/heads/master
2022-11-20T11:42:40.491393
2020-06-24T19:45:24
2020-06-24T19:45:24
274,755,902
0
0
null
2020-06-24T19:46:57
2020-06-24T19:46:56
null
UTF-8
Python
false
false
4,063
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ### Table 4 Correlations with Kappa import our_plot_config from our_plot_config import derived_dir, tab_dir import pandas as pd import numpy as np # for regressions import pyhdfe from sklearn import datasets, linear_model import statsmodels.formula.api as smf from statsm...
[ "christopherconlon@gmail.com" ]
christopherconlon@gmail.com
d5bebd73fae01dd6a3e9f7c774f4058484363379
f63d47c3f4f93a4ca7091468c3071e3ddb2ebdf2
/Topics/List comprehension/Vowels/main.py
e722798a990f8cf78b47b402a3423df3056b64d2
[]
no_license
huseynakifoglu/Hangman
38b103117a65caf457789cdb1d58d7805d4440d6
adb15b32db6bfcf573153288de109f788ecd1321
refs/heads/main
2023-04-15T12:58:03.209548
2021-04-22T20:50:57
2021-04-22T20:50:57
360,679,077
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
vowels = 'aeiou' # create your list here inp = str(input()) vowels2 = [] for letters in inp: if letters in vowels: vowels2.append(letters) print(vowels2)
[ "huseynakifoglu@gmail.com" ]
huseynakifoglu@gmail.com
6ac842581a2c6b2489b264f9827c81d8cb25741b
ad3b71aca0cc0b897b8d0bee6e5f4189553754ca
/src/ralph/cmdb/monkey.py
af0a25ba118df33edbc74dc90209f3e781981d65
[ "Apache-2.0" ]
permissive
quamilek/ralph
4c43e3168f469045f18114f10779ee63d8ac784d
bf7231ea096924332b874718b33cd1f43f9c783b
refs/heads/master
2021-05-23T07:57:34.864521
2014-05-27T08:51:32
2014-05-27T08:51:32
5,523,714
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from tastypie import http from tastypie.exceptions import ImmediateHttpResponse, HttpResponse def method_check(self, requ...
[ "kwargula@gmail.com" ]
kwargula@gmail.com
10097fbf32479f4fa4d37381a6814e8656590a10
b04a4dde306ae11c1d3221da9efa9a0673e79a2c
/Scripts/text_chapper.py
6465a4b3703b76f4100f3202761abc8914ef2896
[]
no_license
lizzielee/Exploratory-Text-Analysis
e756447f0ed8f62367d8ef872540f09c78c650fc
343f212c663f77d2d3e619b2a5c1d0c16a179b82
refs/heads/master
2020-05-16T20:26:11.605081
2019-05-01T21:50:43
2019-05-01T21:50:43
183,283,039
0
0
null
null
null
null
UTF-8
Python
false
false
2,437
py
import re import os import sys # entry of the script def chap(novel): # txt book's path. novel_name = novel+'.txt' source_path = os.getcwd()+'/'+novel_name path_pieces = os.path.split(source_path) novel_title = re.sub(r'(\..*$)|($)', '', path_pieces[1]) target_path = '%s\\%s' % (path_piece...
[ "hl7tv@virginia.edu" ]
hl7tv@virginia.edu
bdf6e59b458973aedccd0b74a16cd9dcb724640c
e61cbd9d69454f096bdcbc9a802354b53b643e62
/BsToPhiMuMu/test/BsToPhiMuMu_signal_2016_mcMINI.py
5e04ea2e8f6f27556768f61a62ca7da7c941791e
[]
no_license
rishabh-raturi/BsToPhiMuMu_angular_analysis
47248133b44b56f216c1063ab07b4283d18be1cb
d3199e834055c2c396350d2904baf8e2ae224df3
refs/heads/master
2023-04-04T23:42:47.953299
2021-04-12T18:29:49
2021-04-12T18:29:49
305,628,429
0
2
null
2021-04-09T18:20:52
2020-10-20T07:41:03
C++
UTF-8
Python
false
false
7,211
py
import FWCore.ParameterSet.Config as cms process = cms.Process("Ntuple") process.load("FWCore.MessageService.MessageLogger_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) RunOnMC = True KeepGen = False process.load('Configuration.Geometry.GeometryIdeal_cff') process.load('Configurat...
[ "rr26@iitbbs.ac.in" ]
rr26@iitbbs.ac.in
40d5762a122070b874120fdd440df72ae7f6214b
b31739ead4d788ba6b1f85333943d9a34764e0bc
/solicitud/middleware.py
6def6dfd06b59cac80de05a5d5fb852be5393ba8
[ "MIT" ]
permissive
jlopez0591/SIGIA
6a2c112cae2c0e6b56a031d7ed6d6213c63bbc3e
e857e2273daa43ab64fa78df254275af2dbcc2a5
refs/heads/master
2022-12-08T23:58:22.392419
2018-05-24T02:44:25
2018-05-24T02:44:25
128,885,789
0
0
MIT
2022-12-08T02:05:24
2018-04-10T06:39:48
Python
UTF-8
Python
false
false
470
py
class SimpleMiddleware(object): def __init__(self, get_response): self.get_response = get_response # One-time configuration and initialization. def __call__(self, request): # Code to be executed for each request before # the view (and later middleware) are called. respo...
[ "jose.a.lopez91@outlook.com" ]
jose.a.lopez91@outlook.com
784d53d39f20fcfda2d059e1656335e51ad350a9
b046b9dae8d79b574b4536aa596aee68bc714eec
/scraper/collector.py
2796f9ff0a733d0acf8a2f499d673b8f680b7ef3
[]
no_license
arush15june/metoo-world
5f9e4b4cd54cf83c8b39f2c3bf01a5d84853662b
143a92b2b578aad78ac138bd3bff9802d75fec8a
refs/heads/master
2020-04-02T02:21:23.870046
2018-10-20T14:16:47
2018-10-20T14:16:47
153,904,897
0
1
null
null
null
null
UTF-8
Python
false
false
1,511
py
""" Module to collect tweets for a specific hashtag. """ import os import pandas as pd import tweepy """ Export your - Consumer Key as "TWITTER_CONSUMER_KEY" - Consumer Key Secret as "TWITTER_CONSUMER_KEY_SECRET" - Access Token as "TWITTER_ACCESS_TOKEN" - Access Token Secret as as "TWITTER_ACCESS_T...
[ "ahujaarush@gmail.com" ]
ahujaarush@gmail.com
c57059bf4604606b822187e13a2d01251b0c6457
7693a1876512675950c74e05888b86a4c39595cb
/pythonTest/pyTestServer.py
f50314bc20c1b1da392ba14bc5568b0dd91aaf94
[]
no_license
kidyobo/MainPro
459956127cb70b3861ceb82511d981cb4875f29f
6a7b7c839b49ad92fe501a4e144937de88838d61
refs/heads/master
2022-02-11T10:04:19.579228
2019-07-19T04:58:25
2019-07-19T04:58:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,833
py
import urllib.request as urlReq import chardet import re from bs4 import BeautifulSoup def getHtml(url): request = urlReq.Request(url=url) response = urlReq.urlopen(request) html = response.read() charSet = chardet.detect(html) html = html.decode(str(charSet['encoding'])) return html #获取图片链接的方法 def getJpgImg(ht...
[ "827526630@qq.com" ]
827526630@qq.com
19b33e6ee5448ada5b60382dd73e067a09789030
b95ace067c9f3f54c6a85adee37318b167ec6324
/Python/HeapsortBalloons/balloons.py
db59df37f4e55f0e53936c15eb0b8fe64a35bfee
[]
no_license
dxa4481/RITprojects
387cce975fc3f761b1e87b416899b92f626664b2
6cd1f8b0fc68380ee0e6a4d82621e6769ac841c0
refs/heads/master
2020-12-25T16:25:03.133609
2013-05-27T18:46:09
2013-05-27T18:46:09
9,972,344
0
0
null
2014-02-11T22:59:01
2013-05-10T01:48:10
VHDL
UTF-8
Python
false
false
4,191
py
""" file: balloons.py Author: Dylan Ayrey Description: pops balloons that expand in R3 once they touch. If there is a balloon left over it will print that one. """ from array_heap import* from copy import deepcopy class Balloon(object): """ This is the balloon object that has a name and a position in R3 ...
[ "dxa4481@rit.edu" ]
dxa4481@rit.edu
ca16ce0b4c0fb35cf61090f93963d0791dc0b4e4
999ea415e8bbdaa84948a248c58603239402f39f
/venv/pythonlearn/regular.py
a48a0b86fb456569e22a3ac6fece3f20faf82de7
[]
no_license
purpleflameangle/untitled
df942f1c561160bf0ad1dd8259f02a32696b3666
039729a7da316956194c5a4f3c318bc8f87716d5
refs/heads/master
2021-07-20T19:57:23.066395
2021-07-02T02:26:10
2021-07-02T02:26:10
173,409,462
0
0
null
null
null
null
UTF-8
Python
false
false
3,269
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import urllib import urllib.request import re import sys import os import ssl # 正则表达式 # https://docs.python.org/3.6/howto/regex.html?highlight=regular ''' try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: pass else: ss...
[ "hermesdifa@hotmail.com" ]
hermesdifa@hotmail.com
257e78f93bdfffd8ead6050e5a830887b2daf06c
d7c527d5d59719eed5f8b7e75b3dc069418f4f17
/main/PythonResults/_pythonSnippet11/32/pandasjson.py
a577b4507d59a3ae833713639051216cf30d9928
[]
no_license
Aivree/SnippetMatcher
3e348cea9a61e4342e5ad59a48552002a03bf59a
c8954dfcad8d1f63e6e5e1550bc78df16bc419d1
refs/heads/master
2021-01-21T01:20:59.144157
2015-01-07T04:35:29
2015-01-07T04:35:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,099
py
from pandas import Series, DataFrame from _pandasujson import loads, dumps @classmethod def from_json(cls, json, orient="index", dtype=None, numpy=True): """ Convert JSON string to Series Parameters ---------- json : The JSON string to parse. orient : {'split', 'records', 'index'}, default 'in...
[ "prateek1404@gmail.com" ]
prateek1404@gmail.com
9af41a79b052c2d412d395809a59b4b75ad6d6a6
30cc35f967b9f13f133170983987ee747a49cba4
/suspects/test/test_randname.py
6782fddecae3f7ff8ba477c8e460b2e0e2544856
[ "MIT" ]
permissive
rjweir/murderrl
aba52fe91e585d09da5660c66ac1796fe76f6205
788710a913758d2e5ab3f1ed1983df44eae34edf
refs/heads/master
2021-01-18T06:53:34.263030
2011-01-24T23:07:58
2011-01-24T23:07:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,384
py
#!/usr/bin/env python from suspects.randname import * def generate_names (num = 10, style = None, gender = None): """ Generates and outputs a given number of random names. :``num``: The number of repeats. *Default 10*. :``style``: One of ``'upper'``, ``'middle'``, ``'lower'`` for upper...
[ "jonathan@acss.net.au" ]
jonathan@acss.net.au
1e4e5a7e81ba3eb57af755d28a1b01382a8dd32f
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/network/v20210501/network_security_group.py
edee6131821444d88b72b7c2692d9b75a39b6d8d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,540
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
6436ec751bc93d7e2298d44e2fde50cd902e4f7b
df14ae429d00dd89cc1405701450e74a41962a5f
/api/models.py
b9a1ac56afe8f8f2b81cffbfe8c5a43e14ef4870
[]
no_license
headsrooms/landbot-backend
3a42beada75f2477dfa2e01db81d76d8c1aa2253
6a99217885a3df87dc2c155da0e2f1f26b59827f
refs/heads/master
2022-11-24T03:04:39.131177
2020-07-27T15:03:33
2020-07-27T15:03:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
752
py
from tortoise import fields, models class User(models.Model): id = fields.UUIDField(pk=True) name = fields.CharField(max_length=20) last_name = fields.CharField(max_length=30) email = fields.CharField(max_length=30) phone = fields.CharField(max_length=10) questions: fields.ReverseRelation["Que...
[ "pablocabezas@wegow.com" ]
pablocabezas@wegow.com
350cbcb59cae359707b2f28e2e2fe260bd888ec1
058acf0b6d32a1f8d82673663f93377f5ec61cc1
/functional_tests/tests.py
171c67fd47df02c9c05514e4776122eb55bc7883
[]
no_license
jravesloot/chicagoautismnetwork
f14cb50495edd49f99465b2528cba44b57dfd0d8
2e4e958941b318914b94d3b2e3eedc21c768b08a
refs/heads/master
2021-05-16T03:47:19.928293
2017-10-01T00:47:04
2017-10-01T00:47:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,796
py
from django.test import LiveServerTestCase from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import WebDriverException import time MAX_WAIT = 10 class NewVisitorTest(LiveServerTestCase): def setUp(self): self.browser = webdriver.Firefox() ...
[ "davidkunio@gmail.com" ]
davidkunio@gmail.com
bc31115683a8ac4e88909fc81927c1697f17de95
409dcbf3db108e4ccd000b9a9ed443fd6b8af871
/701-800/760/codeforces760a.py
9b58228637ce37ad801a358711641402a3ca8b13
[]
no_license
wardmike/CodeForces
a9aef04a8f8868a461c2c6d2f2c506dc22da2264
dbabf51fa91b93c4805f05467d440a08db6ee87a
refs/heads/master
2021-06-17T09:49:31.461036
2017-06-01T14:40:31
2017-06-01T14:40:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
xx = map(int, raw_input().split(' ')) m = xx[0] mm = 0 d = xx[1] c = 0 if m is 1 or m is 3 or m is 5 or m is 7 or m is 8 or m is 10 or m is 12: mm = 31 elif m is 2: mm = 28 else: mm = 30 mm = mm - 8 + d c = c + 1 while (mm > 0): mm = mm - 7 c = c + 1 print c
[ "xenophon.of.athens@gmail.com" ]
xenophon.of.athens@gmail.com
402b1c8d9c5883a2658aaa692947f6979454a971
858a74f8b6bd3e62c78ace94b49595772688106f
/data_stream.py
ce7efdd75b93577761b81e009f8cd5ab310ef173
[]
no_license
jvaesteves/udacity_project_2
61c8c89a347ac074165c9a2746328bc4565fbb69
3a73084549a754dd45be89caa1209984ae7fd96e
refs/heads/main
2023-01-21T15:55:54.781048
2020-11-23T02:10:53
2020-11-23T02:10:53
315,134,830
0
0
null
null
null
null
UTF-8
Python
false
false
2,848
py
from pyspark.sql.types import StructField, StructType, StringType, TimestampType from pyspark.sql.functions import from_json, col from pyspark.sql import SparkSession from pathlib import Path import logging import json schema = StructType([ StructField('crime_id', StringType(), True), StructField('original_cri...
[ "joao.esteves@olxbr.com" ]
joao.esteves@olxbr.com
6b5d03fcb4a1046698dcdfd1f92dd2f9e8b1d376
e6b95801bdace3e934f3827f8d34e95f54852252
/dns/dns_packet.py
392e26537098c9bdbe2ba9876d4e73c11a0b937e
[]
no_license
FacelessLord/CacheDNS
6a468745b778d3829660c1b75f69a8208f0bd358
06c3449bdd1982d55cfe5f8cb3e8e4c46730e2ad
refs/heads/master
2022-09-11T20:19:37.447489
2020-06-03T08:04:46
2020-06-03T08:04:46
268,297,115
0
0
null
null
null
null
UTF-8
Python
false
false
2,282
py
import struct from typing import List, Tuple from dns.dns_header import DNSHeader, parse_header from dns.dns_query import DNSQuery, parse_queries from dns.resource_record import parse_records, ResourceRecord class DNSPacket: def __init__(self, header: DNSHeader): self.header: DNSHeader = header s...
[ "skyres21@yandex.ru" ]
skyres21@yandex.ru
04a5e1ecf5eb7928a641bacbe6d6f6bbbf4dc517
f0a9e69f5acd27877316bcdd872d12b9e92d6ccb
/while.py
59f6e3da65c64608dea5c349cff9ebf6c9d92fc3
[]
no_license
KhauTu/KhauTu-Think_Python
9cb2a286efb8a33748599cd3ae4605e48256ac4c
880c06f6218b8aee7a3e3da0d8b4764fcaa9c1b4
refs/heads/master
2020-05-29T21:43:47.246199
2019-05-30T11:36:05
2019-05-30T11:36:05
189,389,541
0
0
null
null
null
null
UTF-8
Python
false
false
2,980
py
# while expression: # while-block ''' k = 5 while k > 0: print('k = ', k) k -= 1 ''' ''' s = 'How Kteam' idx = 0 length = len(s) while idx < length: print(idx, 'stands for', s[idx]) idx += 1 ''' ''' five_even_numbers = [] k_number = 1 while True: # vòng lặp vô hạn vì giá trị này là hằng nên ta kh...
[ "dongkhautu@gmail.com" ]
dongkhautu@gmail.com
2d4cf09f0f2aa26d2385b364596894feba510a91
e2e188297b0ef47f0e7e935290f3b7a175376f8f
/auth/urls.py
876eb04ddf2bc73525218b4bd7aa9c894bc3c77e
[]
no_license
shubham1560/contact-us-backend
77b615021f0db2a48444424a654cf3c61522c7d8
c7ef2d3024ab3f3b6f077648d6f6f5357f01eebc
refs/heads/master
2022-12-30T13:05:00.950702
2020-10-02T19:47:19
2020-10-02T19:47:19
296,075,868
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
from django.urls import path, include from .views import ObtainAuthTokenViewSet, CreateUserSystemViewSet urlpatterns = [ path('token/get_token/', ObtainAuthTokenViewSet.as_view()), path('user/register/system/', CreateUserSystemViewSet.as_view()), # path('user/register/google/'), # path('user/register/f...
[ "shubhamsinha2050@gmail.com" ]
shubhamsinha2050@gmail.com