blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
87504fb88cbbf810ad8bab08bc59284d2cf37cce
17f1811abda6c828460b77f460671f9c2f464204
/leetcode/find_disappeared.py
af01a7b5d26e35333850f901d27e18f29bf3faec
[]
no_license
rishabhranawat/challenge
f10f69fc30881a0571c4321b466a89aeeb06e568
e836343be5185f8843bb77197fccff250e9a77e3
refs/heads/master
2021-01-21T15:13:47.590675
2020-04-25T15:26:42
2020-04-25T15:26:42
91,833,947
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
find_disappeared.py
class Solution(object): def findDisappearedNumbers(self, nums): """ :type nums: List[int] :rtype: List[int] """ ns = [0]*len(nums) for i in range(0, len(nums), 1): ns[nums[i]-1] = 1 ret = [] for j in range(0, len(ns), 1): ...
a7add26a919a41e52ae41c6b4c4079eadaa8aa1d
f369d676a7c9dc342b53ac0c2ad453e9d9a337d9
/main/migrations/0037_promotion_image.py
3d38467aac1302d375ce7176bebacbcd1443a04b
[]
no_license
katalyzator/beauty_spa
3b6d942c5f61d0250b023d0e8f540090f7650a6b
e640b24ed40d8f5eaf1774435fd2c2e751240468
refs/heads/master
2020-03-09T18:06:11.363125
2018-07-27T12:11:19
2018-07-27T12:11:19
128,923,860
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
0037_promotion_image.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-05-16 12:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0036_auto_20180516_1818'), ] operations = [ migrations.AddField( ...
a52743fc911beb7e51644073131b25c177d4ad29
95f173a5e1d81cdf9571e4c5f5d095b67f18202c
/brainlit/algorithms/__init__.py
be8910201cd3edf8d70cd67636d71082af13ffcb
[]
no_license
johnduva/NeuroData
a74b73f3fa0d3789bf47a5c81565f6cd4d6943b3
b66ed65439a34823b0becb1307b783b33ec198b1
refs/heads/master
2023-04-15T12:34:43.515866
2021-04-29T15:43:22
2021-04-29T15:43:22
301,274,382
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
__init__.py
import brainlit.algorithms.generate_fragments from brainlit.algorithms.generate_fragments import *
44a9bb4d74d2e694f252d8726647bca13baa4df5
d0106f6d39e383cd361e356f9ffd9647f9c6f049
/server/main.py
883bd9e509a33ecfb8bf08657c922e081ece66bb
[ "MIT" ]
permissive
rhdurham/Automated-containerized-bioinformatics-workflows
50ebbdb2e95792b80e3ec675f4b4224cb9c4ccaa
c5c9f039925671a8cd325b0df64a7c03a5bc7bfa
refs/heads/master
2020-03-28T11:11:11.473632
2018-09-12T17:01:13
2018-09-12T17:01:13
148,186,289
0
0
MIT
2018-09-10T16:33:36
2018-09-10T16:33:36
null
UTF-8
Python
false
false
1,481
py
main.py
import tornado.ioloop import tornado.web import json import utils class BaseHandler(tornado.web.RequestHandler): def set_default_headers(self): self.set_header("Access-Control-Allow-Origin", "*") self.set_header("Access-Control-Allow-Headers", "x-requested-with") class CondaHandler(BaseHandler): ...
ba8cb18544e4ded8b229bfb9cc4b28599119414f
bdd0161c9816df392191787ada36955cc932d1f6
/sopht_mpi/numeric/eulerian_grid_ops/stencil_ops_2d/diffusion_flux_mpi_2d.py
e443ab7eac4f210aaae1ea99ffb1c3320bf8b705
[ "MIT" ]
permissive
fankiat/sopht-mpi
56ff537f409ee8cb56c649e090764e4b4a425889
e5c4fb7d5e420d2ca6aea2206bb4b25185b6d92d
refs/heads/main
2023-05-14T19:46:47.756046
2023-05-01T19:35:13
2023-05-01T19:35:13
528,962,533
4
3
MIT
2023-07-06T12:56:27
2022-08-25T17:58:20
Python
UTF-8
Python
false
false
5,584
py
diffusion_flux_mpi_2d.py
"""MPI-supported kernels for computing diffusion flux in 2D.""" from sopht.numeric.eulerian_grid_ops.stencil_ops_2d import ( gen_diffusion_flux_pyst_kernel_2d, gen_set_fixed_val_pyst_kernel_2d, ) from sopht_mpi.utils.mpi_utils import check_valid_ghost_size_and_kernel_support from mpi4py import MPI def gen_dif...
7754974e79202b2df4ab9a7f69948483042a67cc
1a1628592231031089ce622a12ae6fce14d429dc
/test_mail.py
591481812458d7f0aa0f805786eccfb0b58404f6
[]
no_license
1285yvonne/monitor
76d46e9d943f6124fdc000354b415809ad4f5982
0d53ae1e176f7f386d07fab0311e532b10c1231d
refs/heads/master
2021-01-19T00:58:46.817815
2016-07-25T15:26:31
2016-07-25T15:26:31
64,050,102
1
0
null
null
null
null
UTF-8
Python
false
false
116
py
test_mail.py
#! /usr/bin/env python import smtpsend S = smtpsend.Smtpsent(SUBJECT='Test') S.sendemail(''' this is a test! ''')
987d6c769a4f593405e889ed2b0e3f9955900406
a6d0578bd096358bcf8c607c86a3e05c9b2d89ad
/django/urls.py
441d6e3863a66855766fd19992895005d934d171
[]
no_license
rayansostenes/blue_tech_test
6019b4009294aec1134a3e6aafb2bcf289385583
8ada662685e31dedf5a6690961bf226b5e15b13b
refs/heads/master
2020-05-22T17:40:40.642530
2019-05-10T04:12:49
2019-05-13T16:13:42
186,455,254
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
urls.py
from django.contrib import admin from django.urls import path, include from django.conf import settings from rest_framework_swagger.views import get_swagger_view schema_view = get_swagger_view(title='API') from django.contrib.auth import views as auth_views urlpatterns = [ path('django-admin/', admin.site.urls)...
b808daf8d1fbe3cc585db57e1049a502d3ca46f5
1ecca68d201297512698f26e0f8bb5381eb4a8bb
/DataProcessing/medical.py
a2569e3314dde5009339b1566e3dae8343431528
[]
no_license
TTNguyenDev/Thesis-2020
9f62c16e5d7a7c1ab3b43e045925e50a64439b16
3fff84e76dc3c7c2e4f82e035a03b193aeaca307
refs/heads/master
2023-07-05T19:30:16.243058
2021-03-08T16:02:49
2021-03-08T16:02:49
293,773,067
1
0
null
null
null
null
UTF-8
Python
false
false
2,926
py
medical.py
import pandas as pd from pandas.io.json import json_normalize import numpy as np import warnings import re warnings.filterwarnings("ignore") data_path = '/Users/trietnguyen/Documents/Thesis/Thesis-2020/References/Crawler/summaryDataJson.json' weights = ['mg', 'ml', '%'] def formatName(name): arr = re.split(' |-'...
a649139a600cb506056a20e00089a07ec9244394
fb33efbd375dc74edc20421f26b5b6bcc1b06102
/gitsome/config.py
2162798d1e20a6a4019243086c2ec34e5815a57b
[ "GPL-3.0-only", "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
stefb965/gitsome
5a4ff5c2cb3b261ea75304d8621af5d156a64292
a6a396411470f4a35420357c9f88e2ea62efff5c
refs/heads/master
2021-01-12T08:58:18.124481
2017-04-15T02:01:38
2017-04-15T02:01:38
76,741,588
0
0
Apache-2.0
2019-05-11T23:47:34
2016-12-17T19:02:39
Python
UTF-8
Python
false
false
28,929
py
config.py
# -*- coding: utf-8 -*- # Copyright 2015 Donne Martin. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "lice...
5488b32970a0b734334835457c712768a756de7f
6e4cd274e30dbd72989d51b48cb48185a61e9166
/Finalized Source Code/Sensor_access/data_analysis.py
49e72237cc2c3fa0c58a2e5c98ad3f28386b4771
[]
no_license
shrutidas/IoT-SMARTHOME
62321eb896267fb48a1cea1adb1b38a0a0f82ce6
e1645ba10cd1db6ce0cbd085da53e752c4cfc866
refs/heads/master
2020-03-19T02:09:59.633175
2018-08-15T16:57:04
2018-08-15T16:57:04
135,605,300
2
0
null
null
null
null
UTF-8
Python
false
false
4,686
py
data_analysis.py
from datetime import datetime import requests as req import smtplib import mysql.connector #mysql constant MYSQL_HOST='den1.mysql6.gear.host' MYSQL_USER='winlabiot' MYSQL_PW='winlabiot+123' MYSQL_DB="winlabiot" Coffee_mailing_list_table='coffee_mailing_list' #keys in dict receive via socket TIME='time' AMBIENT_TEM...
77fe27f3966073266b78dfb1db644700902ecd2c
6c05cc698a10a3c1b94e21b865282b17a3303632
/15.py
203b35c45d3e4d279f2d34f689d6da50652674bf
[]
no_license
connorlee77/project-euler
244e478829beffa8cfbfb11de2c520defc80ccf2
18fc92ec6eff0f0cf24b8d68b924cd11a44c7f3b
refs/heads/master
2016-08-11T15:24:37.394658
2016-02-15T05:04:04
2016-02-15T05:04:04
46,934,829
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
15.py
dimen = 21 def initGrid(): arr = [] for x in range(dimen): arr.append([]) for y in range(dimen): if x == dimen - 1 or y == dimen - 1: arr[x].append(1) else: arr[x].append(0) return arr def countTracks(): mat = initGrid() for x in range(dimen - 1)[::-1]: for y in range(dimen - 1)[::-1]: ...
51d5668cc887d27c017ce0bad05a0f3cd9db750a
06bd8000335ada04c55f7321bc4339290df5a2b6
/utils.py
a4eec9700335a6d180ba869153e1952f35d9e09f
[ "MIT" ]
permissive
naoc-1861355/HUMBI_image_classification
4822c986ed13d086baab4539cb50257dd5fb6d29
07d65bb89f83a6247e2db36a8e06a18c5cb90c3d
refs/heads/master
2022-12-22T10:53:24.159922
2020-09-25T09:59:11
2020-09-25T09:59:11
290,377,236
0
0
null
null
null
null
UTF-8
Python
false
false
3,340
py
utils.py
import json import numpy as np import cv2 def read_json(kp_labels): kp_positions = np.zeros((21, 2), dtype='float32') # read ezxr_render json label ps = [kp_labels['f52'][0]['x'] + 0.5, kp_labels['f52'][0]['y'] + 0.5] kp_positions[0] = np.asarray(ps) jid = 1 for fid in range(5): ps = k...
a1844cc3699dc2ad3406adc2514da9c7e21c432f
d5268855c3651fcb09d09aeb9d0a744c173777e4
/PoseUtils/openpose.py
08ab3ec5b166f76fa9ba435858009f51a2bf9739
[]
no_license
devyhia/pose-utils
e442b1215cd389db92355e187b517450fb9346f1
645fe8fcff4e8c7581c817d712aefadbd0f69184
refs/heads/master
2022-07-08T21:42:14.932511
2019-11-20T17:31:04
2019-11-20T17:31:04
218,521,236
0
0
null
2022-06-21T23:17:08
2019-10-30T12:21:37
Python
UTF-8
Python
false
false
6,482
py
openpose.py
""" OpenPose is a tool that predicts human body joints from RGB images. In this module, I define cross-project code that I need for reading outputs of openpose and drawing its body skeleton. """ import json from more_itertools import chunked from typing import List, Any, Dict, NamedTuple from enum import Enum import m...
3028ada4a77d25c5e185102efe4581e591b364bb
8f2174012ed0fea166f25207241fac4800c9cfdd
/Development/Database/ParkingSlots.py
bc2102eea431e614322cf8c659d2d5f8b1a76b33
[]
no_license
anjali0508/SmartParking
36c03cb348d9796b06189f779e91e5b9831803a8
ba37d14e1874e41bb0aba87b53415d11d6c30cc8
refs/heads/master
2022-08-01T11:25:08.258104
2020-01-25T12:49:22
2020-01-25T12:49:22
265,761,435
0
0
null
null
null
null
UTF-8
Python
false
false
1,466
py
ParkingSlots.py
from firebase import firebase import IDGenerator firebase = firebase.FirebaseApplication( 'https://smartparkingsystem-bca72.firebaseio.com/', None) id = IDGenerator.ID() class ParkingSlot: def __init__(self, slotNo, type, allotted=False): self.slotNo = slotNo self.type = type self.all...
93b96f61cd3a27033026b82345dc02c86944214a
b7db1bafc54d96209451fdabe3aa5635eab4ee14
/src/accounts/views.py
bdfff8cfe06dd509c0e5d4034816c1404655d800
[]
no_license
sazhyk/defarena
9ae1b8ecae925c4eb1aa92126cc51530e18c4f6a
a876dd25dd486093e0304584e5d5539a212e278a
refs/heads/master
2021-01-01T03:16:09.601715
2016-08-11T14:14:25
2016-08-11T14:14:25
65,187,434
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
views.py
# -*- coding: utf-8 -*- from django.shortcuts import render, get_object_or_404 from userena.forms import SignupForm, AuthenticationForm from django.contrib.auth.models import User def home(request): context = { 'login_form': AuthenticationForm } return render(request, 'home.html', context) def r...
82d88eeac9586e559a2a58f2832334360b6f30e3
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/DATA_STRUC_PYTHON_NOTES/python-prac/mini-scripts/Python_RegEx__sub_()_1.txt.py
87fcf51e311f8a35bb313b8092b98ff51e937e58
[ "MIT", "Python-2.0" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
150
py
Python_RegEx__sub_()_1.txt.py
import re # Replace all white-space characters with the digit "9": txt = "The rain in Spain" x = re.sub("\s", "9", txt) print(x) # Author: Bryan G
c46aba577d984217abe29a38489e3c07103f4036
ae9404218c872c1732004187992b902a52849b37
/function,_methord,_lamda_dan_oop_.py
ed80f2050f5eda7fc580fd5362d311de84b4e6b0
[]
no_license
DikiHanantaFirdaus/Orbit
1ad3f9718261646479a89a64cc04dd95fa2e8db4
5d06a47cfa8209356cb0d88876f8cb347e97ebcd
refs/heads/main
2023-08-19T01:54:42.860875
2021-10-08T01:47:01
2021-10-08T01:47:01
414,806,507
0
0
null
null
null
null
UTF-8
Python
false
false
10,995
py
function,_methord,_lamda_dan_oop_.py
# -*- coding: utf-8 -*- """Function, Methord, Lamda dan OOP .ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1g2fgoYLohAao13Th3-KY0LQgPPzF5JXg # **Fungsi** """ # Deklarasi Fungsi def cetak(x): print(x) # Memanggil Fungsi cetak("wokee") # D...
b7ef5a88c84cfd8f919c41479accf4cef40ccc65
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_7634.py
d3416e567e2045fe9a933722eec6fbff7b6cc804
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
python_7634.py
# Sync django-piston models when using egg module pip install django-piston==0.2.2
bcb34bf8f48d86b36f10c18d510282539f391991
bb5924fac800107211f0bb1710876a2060f4ffe7
/backend/migrations/0001_initial.py
7841a140f469ae9534178aa8f22f6ef12996ed6e
[]
no_license
nchashch/prediction_market
189c4f3b0caf2f0503b4a135cf298ac477ed27f3
9b5f2c97f74808723272d84f4578fc31699eb38e
refs/heads/master
2023-01-10T16:02:44.994012
2019-05-24T10:21:01
2019-05-24T10:21:01
190,212,865
3
0
null
2023-01-03T23:23:18
2019-06-04T13:59:57
JavaScript
UTF-8
Python
false
false
3,445
py
0001_initial.py
# Generated by Django 2.2 on 2019-04-15 16:56 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), ] opera...
e551289986dd948d0566a1b5fcce5da8e8b9ae71
90efd882737656a678b2b333e0b07060ca851e7c
/Problem18.py
0a2aabbd177d865a414a0215f3ee074164e1c40e
[]
no_license
Akanksha-Verma31/Python-Practice-Problems
119072dd107f5b8772532752f1ae87de2b5f8266
ba68272d2db17345c0e0502014aa3cbf848e1af1
refs/heads/main
2023-08-13T19:14:31.453415
2021-10-01T05:46:26
2021-10-01T05:46:26
400,790,808
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
Problem18.py
# write a function to find the sum of 1,2,3,4 using arbitrary arguments def sum(*num): sum1 = 0 for a in num: sum1 = sum1 + a print(sum1) sum(1,2,3,4)
067e8048e6b8a54fa3d1db890623c40600cd1c9d
6c45253e641816e793d7b8ef6e172983eb38fa15
/src/data/download.py
72ccff67e5d2c6b37ca1867bca8767b354d74bba
[ "MIT" ]
permissive
infynite/hair-dye
3941ba016a1a4c684516cffe8a4ed4efe7feff63
d216e27e41f954221bae41ee6250ca29f5d2e859
refs/heads/master
2023-01-27T20:46:12.272946
2020-12-06T18:48:03
2020-12-06T18:48:03
319,102,114
0
0
null
null
null
null
UTF-8
Python
false
false
70
py
download.py
# download datasets # use download.sh in hair-dye/ directory instead.
7626d8708723e7c18e81a1eb345ed1f6e460e2a1
6d3c407df83acdf75192c3145ce401f005625560
/spoj/without_questions/TEST-7816537-src.py
4da8ba417309d96bea87a2f97e134e8122ba7d91
[]
no_license
premkamal13/my-code-repository
79928a6892a606a413decb93e6ac85bd10cfdd01
1d097b4b782f54953b8a43b2efcd38a95c637e71
refs/heads/master
2020-04-15T08:26:08.224633
2019-01-08T01:16:44
2019-01-08T01:16:44
164,520,710
0
0
null
2019-01-08T01:07:58
2019-01-08T00:33:36
null
UTF-8
Python
false
false
49
py
TEST-7816537-src.py
x=input() while(x!=42): print x x=input()
a8a602ce65831bab3f58a34cea88a747f6009dcd
643c9e81cd934d8eb65da0241f887c5b3fba704e
/courseware/2第二模块/chapter3-文件操作与函数/文件处理/file_r+.py
2bcab4be72368af3ea0ce72c34b2ded8bda6fe78
[ "Apache-2.0" ]
permissive
Strugglingrookie/oldboy2
4c31b1219eb4fc914e27ffb7e105897bc1481a65
8ed6723cab1f54f2ff8ea0947c6f982aef7e1b47
refs/heads/master
2022-12-11T08:13:16.903497
2020-05-12T02:10:02
2020-05-12T02:10:02
187,308,689
1
1
Apache-2.0
2021-06-10T21:27:15
2019-05-18T03:18:04
HTML
UTF-8
Python
false
false
284
py
file_r+.py
f = open("兼职白领学生空姐模特护士联系方式.txt",'r+',encoding="gbk") data = f.read() print("content",data) f.write("\nnewline 1哈哈") f.write("\nnewline 2哈哈") f.write("\nnewline 3哈哈") f.write("\nnewline 4哈哈") print("new content",f.read()) f.close()
741e97226068a619eda7e784996870a787f40ce9
ad2704933de4502ae9de91e6d915f9dbe010b446
/naruhisa/chapter07/knock66.py
7e3571f51af762ee0552e68b8acf56c9ce11d76d
[]
no_license
tmu-nlp/100knock2017
266e68917d8d5a7f5d0c064f1bc2da5fa402a253
629bd1155d0fe78cd9302ae9a7cdf0922b778fe7
refs/heads/master
2021-01-19T17:36:53.328997
2017-07-24T07:09:54
2017-07-24T07:09:54
88,334,932
8
2
null
null
null
null
UTF-8
Python
false
false
184
py
knock66.py
from pymongo import MongoClient client = MongoClient() db = client.MusicBrainz_DB collection = db.artist_collection print(collection.find({"area": "Japan"}).count()) client.close()
4e524a623509a671214c5f66e8fd6a5fd5a6a275
cc86b16dc204f2f91eebd05440ce3ea5aeff827f
/booksguru/migrations/0001_initial.py
a4eafaf64f8e0000975e60bb2d9171c2047a53c3
[]
no_license
dantovsky/ws-project-tp2
9b0be98741af31f0bc1519db8536834fc054db7a
809d69a4977bd930eb78d92a2fca39a2685f949c
refs/heads/master
2022-11-19T01:59:09.376596
2020-07-20T23:00:27
2020-07-20T23:00:27
281,231,967
0
0
null
null
null
null
UTF-8
Python
false
false
1,902
py
0001_initial.py
# Generated by Django 3.0.5 on 2020-07-16 04:54 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(aut...
820c19f83d2ef27935646448fb4e2d4b4db1d276
cb063ff977477b47f2ce31d8aea98318c82f1827
/apps/cell/urls.py
91d31a0a177c4617cbb98effd18936e5f556558b
[]
no_license
douglasmoraisdev/mongodjangorestapi
6683a6e56c4de18ecc14b1f4b1270e3e71083977
b6bffef7558fd864333630b86bb1cf27429f323a
refs/heads/master
2021-01-20T03:39:15.208054
2017-03-23T23:52:11
2017-03-23T23:52:11
83,832,370
13
0
null
null
null
null
UTF-8
Python
false
false
155
py
urls.py
from django.conf.urls import url from . import views ''' urlpatterns = [ #Celulas url(r'^get/(.+)/$', views.cells.cell, name='cell'), ] '''
95ee113c65c5356e593172f174441e10409d49d9
4fa38edbe83f0ad9fb323ff2d902e3951b7a7120
/eh_app/models/section.py
8b1481a18f2101212147c59b8acc9fe368076b86
[]
no_license
longdino/junior_project_3
848494e16ae2566a18c143bff93c6d4a55bcb65b
d4fc0ad8fbeeb232617a5188dde2f3ce70119222
refs/heads/master
2022-01-15T09:32:16.128842
2019-05-14T22:38:11
2019-05-14T22:38:11
186,710,334
0
0
null
null
null
null
UTF-8
Python
false
false
1,283
py
section.py
from . import _BaseTimestampModel from django.db import models class Section(_BaseTimestampModel): class Meta: db_table = 'section' unique_together = (('crn', 'semester', 'campus'),) LEVEL_CHOICES = ( ('UG', 'Undergrad'), ('GR', 'Graduate'), ('NC', 'NC'), # FIXME: Not...
ab1d88f2ab5ff6cf775ce428cc9b5a9d142874b8
b41a0f8346d44f9dc8ee4f904a4d8c8606c4680a
/main.py
dda10a96cfdd0d93171d737234915c7923d22710
[]
no_license
ElkheirT/Data-Science-Final-Project
74041cd7115b32e6974061b441547cb53ce6bdc6
dcf2e095706d24cdcd2150bf7c444f7b9c5bbecd
refs/heads/main
2023-02-08T06:25:22.199110
2020-12-15T14:55:40
2020-12-15T14:55:40
316,289,935
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
main.py
import numpy as np import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.pipeline import make_pipeline from sklearn.model_selection import cross_val_score from sklearn import svm from nltk.tokenize import RegexpTokenizer from nltk.stem import WordNetLemmatizer from SpellCheck impo...
1b149ef9348c64fe73b26f48160ef31a0386a366
d7fafa305f2aa34fd82be94acf657cb2e647d1be
/setup.py
6292d2887a306ea0ef708e96098f73b1d1c03fb2
[ "BSD-3-Clause" ]
permissive
russss/polybot
e4d95a957252b6372cbb134c927eeba75ef5ecb2
d23e69f5894e9c2b45dc6f299298fd44d92ad85c
refs/heads/main
2023-07-02T03:24:05.984909
2023-06-26T14:47:16
2023-06-26T14:47:16
87,641,636
38
8
BSD-3-Clause
2023-06-26T14:47:18
2017-04-08T14:56:28
Python
UTF-8
Python
false
false
733
py
setup.py
from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) version = {} with open(path.join(here, "polybot", "__init__.py")) as fp: exec(fp.read(), version) setup( name="polybot", version=version["__version__"], description="Multi bot library"...
9de61a11a42f79e789b9972768d6075a8e4c8121
97d469d6805f82a5fb84a7b8295ff89e100fce1e
/python/chapter1/1-2.py
bd6ed26878c682d427256dce1130b46b5d9171c7
[]
no_license
Cammac7/CodingPractice
e729e046755e1a1d2f5df2c033b52a2c0df9b205
14c5cb743a1e422d856cf484736763d638be5b9c
refs/heads/master
2021-05-06T23:14:00.409071
2018-03-31T16:02:31
2018-03-31T16:02:31
112,961,549
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
1-2.py
#Check Permutations #Given two strings, write a method to decide if one is a permutation of the other def checkPerms(A,B): if len(A) != len(B): return False hashA = {} hashB = {} for char in A: if char in hashA: hashA[char] = hashA[char]+1 else: hashA[cha...
44bfab29837732fc70eef5bdebab26c0fe35d5ca
449e20e9c87a49b6cea186f5cbedc173879b34d4
/暴力递归与动态规划/1阶2阶爬楼梯.py
15ce3a4ca10a76d2e02f9ddd5e7455a21ca87847
[]
no_license
tanlangqie/coding
ef5f8f18476407519d10303636e8752addfc6626
9e981e897ab8b88cacfb8d4ad094fc6f8eb32ffd
refs/heads/main
2023-07-03T06:41:16.887063
2021-08-11T02:21:52
2021-08-11T02:21:52
355,018,066
0
0
null
2021-08-11T02:21:53
2021-04-06T01:14:58
Python
UTF-8
Python
false
false
938
py
1阶2阶爬楼梯.py
#题目假设你正在爬楼梯。需要 n 阶你才能到达楼顶。每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢?注意:给定 n 是一个正整数。 # 原题:https://leetcode-cn.com/problems/climbing-stairs/ #递归 class Solution: def climbStairs(self, n: int) -> int: def fun(n): if n <= 1: return n if n == 2: return 2 ...
e28924b1a26132f65ffffd12d248a267d3f89df2
ec7e8942b3f17d188550e79923131e21271ac99f
/scripts/blender_demo.py
ac38309d23a5a9202e91400ef5d7cc1cae03ce60
[ "MIT" ]
permissive
cheind/supershape
3437ddb84a0efcd7e04ff10e3af8cd99ba0631d3
11904a41a6bb3c8c46d18572dff38d334fd94fa1
refs/heads/master
2023-02-28T05:02:50.876262
2021-01-31T08:51:57
2021-01-31T08:51:57
285,281,023
16
0
null
null
null
null
UTF-8
Python
false
false
309
py
blender_demo.py
import bpy import supershape as sshape # Remove default cube bpy.data.objects.remove(bpy.data.objects['Cube'], do_unlink=True) # Generate supershape shape = (100, 100) obj = sshape.make_bpy_mesh(shape, weld=True) x, y, z = sshape.supercoords(sshape.FLOWER, shape=shape) sshape.update_bpy_mesh(x, y, z, obj)
bad04121f05d6440cf095405e7002774ec01c73d
9f9f39bc878719956c93093eeaef685c17bdd26c
/Trees/Binary_Search_Tree.py
7c6ec897b310a1dd58eadbc42dc11d7bc84b2ec4
[]
no_license
Jerry-Tse/Algorithms_Implementations
af00d228066d1dc97da017ae52c0803c67ccacb3
b529bde234adebfff9b8cfc0f873eeaefbcad87c
refs/heads/master
2022-08-22T14:05:36.628560
2020-05-24T15:04:35
2020-05-24T15:04:35
264,480,008
0
0
null
null
null
null
UTF-8
Python
false
false
1,901
py
Binary_Search_Tree.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Mar 8 17:16:46 2020 @author: jerry Hint: 1. Decide the data structure you want to be node or pure value """ class Node(object): def __init__(self, value): self.value = value self.left = None self.right = None class BS...
c480bfc4bf41bd493c09471c9e257e4132c97c56
111c510c8d2ff4995d4cea791431d8d321823ae8
/query_mysql.py
1b4f365c88f2a2e7094bdf55fef6c3ee5cc76ba7
[]
no_license
kellon-1/python
b34f8b7ca39071e786f50c52717e8c2d79894aee
74176d98cf6f620ae92c3a6b50c3a2200782c174
refs/heads/master
2020-04-08T11:29:53.620701
2018-12-11T05:30:39
2018-12-11T05:30:39
159,308,154
0
0
null
null
null
null
UTF-8
Python
false
false
2,193
py
query_mysql.py
#!/usr/bin/env python3 # _*_coding:utf8_*_ from dbconn import Departments,Salary,Employees,Session from sqlalchemy import and_,or_ session = Session() # order_by 排序 # qset = session.query(Departments).order_by(Departments.dep_id) #排序 # print(qset) #qset 此时只是一条SQL语句 # for dep in qset: #向qset取值时,返回一个个实例 # # prin...
e4fff3d28977d93b7554daeba799df0a9740b568
214d877932102d40e3c0ace82df7558cfb42b0d1
/Problem Sets/PS3e_m.py
7ca2d09915d8d6cd61884b64acaefc27508c417f
[]
no_license
Pythones/MITx_6.00.1x
06b57ec2fb54aa277397c31073e94725b55bc9d7
93c0415f551e85bdab9c4833d842b554532ca8fa
refs/heads/master
2016-09-05T19:43:57.429488
2014-04-17T10:55:05
2014-04-17T10:55:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,966
py
PS3e_m.py
#secretWord = "locos" import random import string WORDLIST_FILENAME = "words.txt" def loadWords(): """ Returns a list of valid words. Words are strings of lowercase letters. Depending on the size of the word list, this function may take a while to finish. """ print "Loading word list from fi...
cbdd3f4a23217b4057b4c68bc491efa76724d444
a3aba8ff242f7c8866f215f46793a0e34e9700b7
/miniprojet.py
8f12e8ee5bae2e4310e9d892f5db3b237749c1ed
[]
no_license
Moustaschbil/BirdRecognition
35a222ecbf55687ceb3f5d69f7d9799572efe161
98c35ad5c8b9883427544482ab808b493b381092
refs/heads/main
2023-03-30T07:15:36.224464
2021-04-04T21:32:31
2021-04-04T21:32:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,303
py
miniprojet.py
import keras from keras.layers import Input, Dense, Flatten, Dropout from keras.models import Model from keras.optimizers import Adam from PIL import Image import numpy as np #variables globales tab_class = ["ALEXANDRINE PARAKEET", "ANTBIRD", "AFRICAN FIREFINCH", "EASTERN MEADOWLARK", "HOUSE FINCH", "SNOWY OWL"] nb_c...
32822a5fd89aea1461f0141609052612b4aa755b
9ae0eec7fe551ff146ab5c2d3bd11028347e1f6c
/sutils/test/_testenv.py
9e388ce9c270f4343e589f119c33eb482adb8f12
[ "MIT" ]
permissive
t-mertz/slurm_utils
b2e5ab5259c48180de1dffe19326bc3014c3f914
6fc9709f62e2bca1387ea9c7a5975f0f0be5d0dd
refs/heads/master
2021-07-15T20:54:37.660145
2021-03-01T17:13:27
2021-03-01T17:13:27
79,030,982
0
0
MIT
2018-10-24T13:11:30
2017-01-15T12:22:03
Python
UTF-8
Python
false
false
657
py
_testenv.py
class TestCase(object): """ Base class for tests. """ @classmethod def run(cls): """ Runs all tests (methods which begin with 'test'). """ #print(cls) max_len = max([len(a) for a in cls.__dict__]) for key in cls.__dict__: if key.startswith...
00126145707f440d6de5670f5795383e24d74e7e
3be28a6eb2ad49fba9db38ab21a6a0b84f303d9e
/config.py
1b5352d2c6dc8742dfda2453f0891b7f9f909fb5
[ "MIT" ]
permissive
Adynatos/egida
5bdc4b9f488fbe32e5801d57769b4f76bb5a97c4
f34503228fbc153812c839f82cf8a4a96941150d
refs/heads/master
2021-01-16T20:50:32.340503
2015-01-29T09:36:55
2015-01-29T09:36:55
13,098,777
0
0
null
null
null
null
UTF-8
Python
false
false
1,198
py
config.py
""" Configuration file A collection of constans which define application settings: DATABASE - location of database file. DEBUG - debug mode CSRF_ENABLED - cross site request forgery protection SECRET_KEY - used to create cryptographic token, that is used to validate a form. SQLALCHEMY_DATABASE_URI - path to the datab...
adb0b793fd775834cc8d7601737b7bd6117740d0
f12c1a1017299a4ac84358fb6b12e06532581f9d
/collector.py
ad8f215f0289cc8c1258890f1cbb0f4f07e94127
[]
no_license
PetarGenchev/DungeonAndPython
dc9c78f49eb57bbed2fe600cd2285a5f9cb36141
bd16948f80edac36cc9580c10d0a5a62fdd804ea
refs/heads/master
2021-01-19T00:26:45.741744
2016-12-26T07:53:06
2016-12-26T07:53:06
73,098,907
0
0
null
null
null
null
UTF-8
Python
false
false
1,071
py
collector.py
from treasure import Treasure from enemy import Enemy class Collector: def __init__(self): self.clear_data() def clear_data(self): self.spawn_cells = [] # list of lists with two coordinatess of a spawn cell self.enemies = {} # dict with key - tuple of two indexes and value - Enemy ...
0813aacfb0684298a12fbe956ce12fb0c1c6f9e9
18967d32298a0cc867dfd9145be5f3d4b7483c7d
/snippets/views.py
ce07551c5169004bf35933403de3a0919349ba02
[ "MIT" ]
permissive
bergman2/evidence
d474ef939fd2a79410d93b4b80117cd479c08631
be92dc3b2dca9cc3505b9e5b3b39292fe5cc152b
refs/heads/master
2022-06-26T09:47:43.969802
2016-01-31T04:25:02
2016-01-31T04:39:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,617
py
views.py
from django.shortcuts import render from django.views.generic import ListView, CreateView, DetailView, UpdateView from django.db.models import Q from .models import Snippet # Create your views here. class SnippetListView(ListView): model = Snippet context_object_name = 'snippets' template_name = 'snippet_l...
88f64a674de7cf455a49c30889b7591915e3d623
b7805d986c93323fca436bfa6b5a1c5d79d9b33d
/shuxiang/subshuxiang/downshuxiang.py
fe92644b026fd435a70bc588872b3677cd1c5046
[]
no_license
gitchenping/code-essay
d9b39a9058e83577dc50d5024ad627ad3e9a1c23
e8391121cb0842450a8aecaab6caad06bd742ff3
refs/heads/master
2021-06-14T08:04:45.683270
2021-05-10T03:36:13
2021-05-10T03:36:13
196,170,900
0
1
null
null
null
null
UTF-8
Python
false
false
766
py
downshuxiang.py
import requests import time import random bookurl='http://shuxiang.chineseall.cn/v3/book/content/vXPgj/pdf/' totalpage=161 cookies={'_Tvt5MJ89bV_':'D2EC06A3BF71EE91B2B1A3EC6EC3C33D37DAE10E4CCBD6F1B9B0C6CEBA9870A661A34AF09537213EB7BEE5A8A5C8A4580466BE1BCF9373DA21C655215BE0D4B1'} headers={'User-Agent': 'Mozilla/5.0 (W...
9b73b448004e22e777b1cd741b3406ba570b922e
618c5deff28357db61a83a1201ccbcb84531485f
/aulas/guanabara/ex002.py
acdd75dfa7c69b3fc55c1315f9d80b369208efad
[]
no_license
uriassousa/python-fundamentals
54b41199d1054d6fa4faefa34aa3d2df26834a0f
1157a1633fd6337ced7f2ed6e9ebda523552d3a0
refs/heads/master
2022-08-02T23:55:45.286366
2020-03-01T00:25:48
2020-03-01T00:25:48
234,743,820
0
0
null
2022-06-22T00:53:46
2020-01-18T14:06:58
Jupyter Notebook
UTF-8
Python
false
false
494
py
ex002.py
# Programa para ler algo pelo teclado e mostre na # tela o seu tipo primitivo e todas as informações possíveis sobre ela. a = input('Digite algo: ') print('O tipo primitivo desse valor é', type(a)) print('Só tem espaços? ', a.isspace()) print('É um número? ', a.isnumeric()) print('É alfabético? ',a.isalpha()) print('...
48264d2b46b69f6d5fd6e6930e7f2c1cb398c75a
69e2b0031d7c257f302ae5bdc8d7b362d703399e
/twitterscraper/scripts/tweetRetriever.py
25a992164f5da6b7519167bf28e0bb1757dc1b89
[]
no_license
ryee1/twittersearcherproject
c665ca680027cb39ac9ad37d8f1b081f426b2abb
6379060eb6ec589ad9a4807943ea9590f798e46c
refs/heads/master
2016-08-09T09:40:11.438520
2016-03-14T02:01:39
2016-03-14T02:01:39
49,610,131
1
2
null
2016-03-14T02:07:33
2016-01-13T23:55:05
JavaScript
UTF-8
Python
false
false
931
py
tweetRetriever.py
from twython import Twython import time APP_KEY = 'f1HlAsbabsoi3cr5EC3t1NzDH' APP_SECRET = 'XSsoDYC4W1g2l3VUyU1vtTQ7SroB0olzDokpwD5CpgcRjMh715' OAUTH_TOKEN = '4760974394-ThpCcbIXGznm51P9RO2jjSsDdjWs8PHYkALk1KD' OAUTH_TOKEN_SECRET = 'DFkoR2HMhImpfhoTNc3T7WNItqpxfxaE0ciwrFJj500Sd' twitter = Twython(APP_KEY, APP...
c2f1357364f1b89a6b7075775dd6e6b81e546064
20e3010608e40a6ec5ea56f69d122a62182e4bdb
/types of data/tuple.py
43e4f537bb452187bb5b53fb83fb8836a96b5192
[]
no_license
LarisaOvchinnikova/Python
ee65eac221cd03563d60110118175692564c5b2d
9cc86a260828662995dec59a6d69528f96d37e79
refs/heads/master
2021-08-22T21:41:02.351589
2021-05-25T18:37:09
2021-05-25T18:37:09
253,842,826
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
tuple.py
# def func(*args): # return sum(args) # # print(func(2, 4, 6)) def my_func(x, y, mul = 1, text = None, magic = False): print(x) print(y) print(text) print(my_func(y = 1, x = 10, text = "Hello")) def my_func1(*args): print(args) print(*args) print(my_func1(1,2,3,4,5,6))
cf0fd54fc29f9e07a50b628bfb507830e0f564c2
7af2fff6024992bc09affb823c38fd07d0635e8c
/contacts/admin.py
a38da6195c110631cc03c9ce6c96e6bfa2f0a78b
[]
no_license
GolouHamady/Carzone
e1098cb23c72e1e42528c94c76eb1b630424eed4
6a0fe1d746e62fd6ae4168e8231f44df77d2dc8e
refs/heads/master
2023-01-28T17:43:02.899029
2020-12-06T00:16:50
2020-12-06T00:16:50
318,916,331
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
admin.py
from django.contrib import admin from django.utils.html import format_html from . models import Contact # Register your models here. class ContactAdmin(admin.ModelAdmin): list_display = ('id', 'first_name', 'last_name', 'city', 'email', 'phone', 'create_date') list_display_links = ('id', 'first_name') list...
d1f5d63673f69802b8065714b366f829e39daa67
8d9008f378deb041771c17f380b54c2c0d1d85bc
/source_code/1331. 数组序号转换/mine_v1.py
05d481eefb7532ffab963adb4c37c58617db01f7
[]
no_license
kavin525zhang/leetcode
b2fc73fe710f6fdf3637d12218ed0bb21bab00bf
8de38466f286d7c2e73ddaac5d5dae5444cc1e4c
refs/heads/main
2023-06-27T20:30:44.252386
2021-08-05T14:09:24
2021-08-05T14:09:24
391,509,569
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
mine_v1.py
from typing import List class Solution: def arrayRankTransform(self, arr: List[int]) -> List[int]: arr_sort = sorted(arr) num_index = {} for num in arr_sort: if num not in num_index: num_index[num] = len(num_index) + 1 results = [] for num in arr...
0b191fedd41d1d83680f3797ecf33f6babfc7142
d0041cbd074b1211bf9764e16ba76d4ef7f44e75
/SNAKE_GAME/SNAKE_GAME.py
b5fe84c96f2cafd9ff4d3aebce40a89a403dee50
[]
no_license
sharozraees802/Data_Structure-python-
dab9135faaa71146d22e4eca21dca09ec4e0afe8
a77ea39eb1680c920052add735a9d9b377e1b985
refs/heads/master
2022-12-06T12:49:09.300127
2020-01-07T12:46:14
2020-01-07T12:46:14
232,320,833
1
1
null
2022-11-23T15:13:03
2020-01-07T12:33:05
Python
UTF-8
Python
false
false
3,961
py
SNAKE_GAME.py
import turtle import time import random delay = 0.3 #score score=0 high_score=0 #set up the screen wn = turtle.Screen() wn.title("Snake Game") wn.bgcolor("white") wn.setup(width=500,height=500) wn.tracer(0) #snake head head=turtle.Turtle() head.speed(0) head.shape("square") head.color("black") head.penup() head.g...
6f8384ba0110f28f00c1a6efbf3d04796cbdb3b3
0b16bb75aae961aad2cf20a830f8f733c72b386f
/animals/models.py
61b4741a845dd3398983277af276507402e09743
[]
no_license
extrakun/django-shelter
2b5b5db57cc37f3d6b8642943743576484627eac
a99efc757c8e599db342794da49272ee27dcfb79
refs/heads/master
2020-05-22T22:14:44.735164
2019-05-14T08:43:35
2019-05-14T08:43:35
186,542,414
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
models.py
from django.db import models # Create your models here. class AnimalType(models.Model): name = models.CharField(blank=False, max_length=255) def __str__(self): return self.name class Tag(models.Model): name = models.CharField(blank=False, max_length=255) def __str__(self): re...
f64f5c97f93f630d5b167600aeddd6c3fea94633
182078dc0ad76e38d31f85681bf8b845a80058c2
/questions.py
a05ad3a75837453ddc69da6dca5446ccf742289f
[]
no_license
Dolinin2021/all-hw-lecture-10
bd9be92ba84b09b866bd6632ac34623b2670def2
34e7a3aaf7f5bf102710877772134535c42e368a
refs/heads/master
2023-08-17T04:10:11.773783
2021-10-06T12:07:10
2021-10-06T12:07:10
414,107,319
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
questions.py
from pprint import pprint from datetime import date, timedelta import requests def get_questions(): today = date.today() day_before_yesterday = today - timedelta(days=2) url = f'https://api.stackexchange.com/2.3/questions?fromdate={day_before_yesterday}' \ f'&todate={today}&order=desc&sort=a...
7a5f11242e15d36490bb84db70f1509b74199197
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Flask/Book_evaluator/venv/Lib/site-packages/sqlalchemy/sql/operators.py
9c95212c5ba61d750cef208b1085a19688a6c3aa
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
130
py
operators.py
version https://git-lfs.github.com/spec/v1 oid sha256:46e4ddb6bf1507fdf80ac3c7d554ee0e34dfd229a32ce491864ed27362aff495 size 39449
fa0fbe5ee21c4d413aa8138d500296dffbb6d1c9
bdde18f1ff149df2f188dfd56ef5e2e83063cbd6
/others/giving_cards/handing_cards.py
45d7adedd9b2db77b831763dd6bf5e1e3a8af9ea
[]
no_license
Gusstr/Pcalc
6b42dbc52d310ebe7c42436cefd5c659e876e5da
7985bd519c95952f268ee08bceef637070868877
refs/heads/master
2021-01-02T03:12:19.614422
2020-05-18T08:06:59
2020-05-18T08:06:59
239,466,701
0
0
null
null
null
null
UTF-8
Python
false
false
2,125
py
handing_cards.py
import random def player_card_giver(card1, card2,): cards = [["h2", "d2", "c2", "s2"], ["h3", "d3", "c3", "s3"], ["h4", "d4", "c4", "s4"], ["h5", "d5", "c5", "s5"], ["h6", "d6", "c6", "s6"], ["h7", "d7", "c7", "s7"], ["h8", "d8", "c8", "s8"],...
e2fd3932c8b74a6b2b553a2c46e42d46057125d5
6336899aeaed7edd2fdc0a9f08d6e5eba4dd9490
/Chapter 1 - Arrays and Strings/question_7.py
7495e5a318f1c9e6ba6a547277f59aaa9e386194
[]
no_license
dharness/ctci
f577e64e7c0c728fe784f0f9dd9de62faaa67777
53ffecc0385d208bf7aaa9fed9326d0397798ffb
refs/heads/master
2020-09-22T07:58:57.766064
2016-08-28T05:37:11
2016-08-28T05:37:11
66,523,989
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
question_7.py
# Write an algorithm such that if an element in an MxN matrix is 0, its entire row # and column are set to 0. def minesweeper(m): mines = {'xs': [], 'ys': []} for y, row in enumerate(m): for x, el in enumerate(row): if(el == 0): mines['xs'].append(x) mines['ys'].append(y) for y, row in...
e18ba9c7fd2b33fbc57d533a02994e6a933d4e6c
db0436b21dd275ae86783961be3d9dbc3e6ae6e5
/search_bible_3.0/searchbible/utils/indexifier/bible_names.py
bffe65c15124a44265147a7809bcf6c828475b44
[]
no_license
K021/search_bible
885fb1a5b17626772d4add217cb003255726fcc7
abeee2310ad178951ba1744c31aff9dc4333531a
refs/heads/master
2022-12-18T00:04:02.996988
2020-09-18T17:06:46
2020-09-18T17:06:46
111,206,583
0
0
null
2020-08-20T04:25:47
2017-11-18T13:11:23
Python
UTF-8
Python
false
false
8,123
py
bible_names.py
GENESIS_FULL = 'Genesis' EXODUS_FULL = 'Exodus' LEVITICUS_FULL = 'Leviticus' NUMBERS_FULL = 'Numbers' DEUTERONOMY_FULL = 'Deuteronomy' JOSHUA_FULL = 'Joshua' JUDGES_FULL = 'Judges' RUTH_FULL = 'Ruth' SAMUEL_1_FULL = '1 Samuel' SAMUEL_2_FULL = '2 Samuel' KINGS_1_FULL = '1 Kings' KINGS_2_FULL = '2 Kings' CHRONICLES_1_FUL...
11588a7eca91fa2a83163a6d1918d5d97fbb0b83
1605218aab212a6d1e0ff2cfc9fc3e72f49378c9
/venv/lib/python2.7/site-packages/scopus/affiliation_search.py
9d73d1f7ab20d58a8f8eef4e379c2fcecd2acfbe
[ "MIT" ]
permissive
LeoFuchs/Masters
2b2c4f5d8e4f15c2c46458b51033dff92a5b8fd0
25453fe8d538ac07b362307a5d6ab83e6f353d87
refs/heads/master
2020-03-27T15:56:03.639534
2019-12-20T15:51:48
2019-12-20T15:51:48
146,748,741
2
1
null
null
null
null
UTF-8
Python
false
false
2,779
py
affiliation_search.py
from collections import namedtuple from scopus.classes import Search class AffiliationSearch(Search): @property def affiliations(self): """A list of namedtuples storing affiliation information, where each namedtuple corresponds to one affiliation. The information in each namedtuple is...
e098b1610b30df2fbb0af33dc4a255fda2caa4a8
8c073009e91a687381c1c34fe17858a195063072
/testcase/test01_mingwen.py
c4d986064efbbabf2ed3ca059505e91ffbe253cc
[]
no_license
yiqia575/learn_21day_project
25528fbe9cf7702ba4372b0244742fc4e7d6932f
1e1e7f29d3cdd4551bef8299e7d5bd93716be027
refs/heads/master
2023-03-29T06:15:10.947413
2021-04-02T06:20:04
2021-04-02T06:20:04
353,923,668
0
0
null
null
null
null
UTF-8
Python
false
false
1,785
py
test01_mingwen.py
# -*- encoding: utf-8 -*- """ ================================ @File : test01_mingwen.py @Time : 2021/3/24 16:48 @Author : 测试工程师:刘坤 @Email : 609127365@qq.com @Software: PyCharm ================================ """ import unittest from common import test_ddt as ddt from common.handle_excel import Excel from com...
ac6ae0d793d440d0ea4924b5b74e08c8cdd0bca2
064b3d706dea02273d090c4ea833754806fad06b
/aruco/aruco_detection.py
f8e336e6a2d09cc33f4e0e6acf7980da74898db3
[ "MIT" ]
permissive
JacopoOrlandini/blockly-turtle
91bde73775bb5ac5f8fcc24ac0eaf5810de640db
4a554bfea4ea8b8b22da4116697dcc091d6fbda5
refs/heads/master
2020-08-12T03:12:34.637595
2019-10-12T16:22:13
2019-10-12T16:22:13
214,677,633
0
0
null
null
null
null
UTF-8
Python
false
false
9,894
py
aruco_detection.py
import os import sys import cv2 import numpy as np import tensorflow as tf # class definition class Marker: def __init__(self, marker_id, corners, key, value): self.id = marker_id self.value = value self.corners = corners self.key = key #######################...
2f2d69646b304bf50a61c852494d21c8b34e8758
92f581c64b4ae46644202223af8d82fa3ca1265e
/drawing.py
89e421c1267598d36302e7a9520df7f71c18795a
[]
no_license
jahasiel-serna/perceptron
7557d2ef4069635e4c658e83450e20b377a9dc59
85d5ef968ec3f0854628ea99c11ade2b83a4630d
refs/heads/master
2022-12-22T17:15:24.638753
2020-09-25T23:40:49
2020-09-25T23:40:49
298,675,796
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
drawing.py
import matplotlib.pyplot as plt class Draw: def __init__(self, xlim, ylim, title=''): plt.title(title) plt.xlim(xlim) plt.ylim(ylim) def drawNeuron(self, model): w1, w2, b = model.w[0], model.w[1], model.b X = [-2, 2] Y = [(1/w2)*(-w1*X[0]-b), (1/w2)*(-w1*X[1]-b...
962f7b8b732e88a873409c745c1895df4b48ee8f
0a4d57d43313acd4781fdf02a1efa4e1aac474ce
/tools/test/topos/vpls.py
35e593ba44f21607757e837067aac1dcf0022595
[ "Apache-2.0" ]
permissive
maxchung2001/onos
fb3a8c068b8ed01ddd4377c4f2a6a39fe1dbd779
1f72203ec291b91de3fed148cff34be70b1536b1
refs/heads/master
2020-06-14T01:57:58.862655
2016-12-03T21:56:50
2016-12-03T22:02:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,844
py
vpls.py
#!/usr/bin/env python from mininet.cli import CLI from mininet.node import Link, Host from mininet.net import Mininet from mininet.node import RemoteController from mininet.term import makeTerm from mininet.topo import Topo from functools import partial class VLANHost( Host ): "Host connected to VLAN interface" ...
2b10bc92d12d171cf9e0e704e9f245d55341e50b
d45098805f04ebf2a3e00bec8711b9ddaa55478c
/ext/gform.py
276c9ff891234ff873cf8af39d5c1e05855f8859
[]
no_license
RainbowLegend/aerobot
713e5c034bcd4a409a6c6b44bde840d4346c7145
c6801a2b6852f18ab2b9085a27f30173758a2f6c
refs/heads/master
2023-08-25T17:01:51.741430
2021-10-31T18:53:14
2021-10-31T18:53:14
123,493,882
3
8
null
2021-10-31T18:53:15
2018-03-01T21:22:18
Python
UTF-8
Python
false
false
1,085
py
gform.py
import uuid import json from discord.ext import commands class FormValidator(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(name="contestvote") async def form_validation(self, ctx): FORM_LINK = "https://docs.google.com/forms/d/e/1FAIpQLSeNjEFFuXI2k4-K1Bn6r4dvjxEl...
4a11b2027619cd699735103ba9e5083d52209175
1fe06c02580654d022a79cc5db2dbc74c0fdd1b7
/app/views.py
c4fa4c735ea45910f86a6f716a0c61fdb0a538eb
[]
no_license
gustavo-ifpb/aula-flask
8be1b50ddbee69fe5d914b0f00650540caf6e6b6
fc635cb3d3837380c536b1e86046f4cb584284f1
refs/heads/master
2020-05-18T00:20:22.397528
2019-05-28T13:26:25
2019-05-28T13:26:25
184,057,878
0
0
null
null
null
null
UTF-8
Python
false
false
1,695
py
views.py
import psycopg2, psycopg2.extras from flask import g, render_template, request, redirect, url_for, session from app import app # ~~~~ @app.before_request def before_request(): g.db = psycopg2.connect('dbname=twitter user=guga password=gugasv host=127.0.0.1') @app.teardown_request def teardown_request(exception)...
b039ed74e62f3a74e8506d4e14a3422499046c06
19dde4f0556b008a1bef85e2432f116e852c3ce1
/pych/ecco/plot_2d.py
64cbf932b7448e92aebeaed4ece482c03012df1b
[ "MIT" ]
permissive
timothyas/pych
7dc87b0ffd8a63cad04432ca55da40486812134b
12a872b3e0934ad6d5414a3e8abe119697a64307
refs/heads/master
2022-04-29T16:51:25.774367
2022-03-24T01:17:38
2022-03-24T01:17:38
178,424,249
0
0
MIT
2021-03-21T20:54:19
2019-03-29T14:51:08
Python
UTF-8
Python
false
false
8,181
py
plot_2d.py
""" Module for generic standard analysis plots. """ import numpy as np import matplotlib.pyplot as plt import cartopy as cart import xarray as xr import ecco_v4_py as ecco def global_and_stereo_map(lat, lon, fld, plot_type='pcolormesh', cmap='YlOrRd', ...
bf6d1ddf66bc0d54320c0491e344925a5f507df7
bf4fb95c4de7f6ff3f3a191b2cae05748ee260e5
/meshmixer_scripts/import_stl_models.py
51785f7edd04149b561566f1fccf5b2bc229f32e
[]
no_license
BBK-PiJ-2015-87/blender_scripts
9a755820386c33255522e1da1ecbb763964b265b
30df82758f16e4ec88dc134f846c28c91861966a
refs/heads/master
2021-01-09T23:36:25.422109
2016-11-09T15:07:34
2016-11-09T15:07:34
73,210,570
0
1
null
null
null
null
UTF-8
Python
false
false
619
py
import_stl_models.py
import os import sys sys.path.insert(0, "/path/to/mm-api/python") sys.path.insert(0, "/path/to/mm-api/distrib/python_osx") print(sys.path) import mmapi from mmRemote import * import mm; # assumption: we are running examples_dir = "/dir/of/models/" part_filename1 = os.path.join( examples_dir, "model1.stl" ) part_file...
28854823b1edc7df6cf025175811c1858efd2c42
5996dac6d6e5e5e84b95ac9d96456bd035a5e7e0
/openhumans_seeq/migrations/0001_initial.py
b515f1f25e3d715599dc5a8c54f5c0b0c85f9c23
[ "MIT" ]
permissive
OpenHumans/openhumans-seeq
be7b64212775c6152cd2cbe8c62199c7c55c22d8
1c9959bc2a31a16d27f3c7a7c903c8b1f8a3a7c7
refs/heads/master
2020-12-02T19:38:47.486322
2017-05-15T17:32:23
2017-05-15T17:32:23
96,370,286
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-19 15:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='OpenHu...
e3665141397d52877242463d548c059272d13536
363b28c136b2d158aa31f45c707e3e2872e420b5
/scripts/convert-vocab.py
cdb0e80a9f4c607fb00a1ed68f39a049c7760452
[ "MIT" ]
permissive
geovedi/nmt-playground
f297282d53d2e555a437e24f35ec23f5fe2104a6
99dc04f85eade643409970b16c77697b7d3138e9
refs/heads/master
2021-01-20T03:00:25.143265
2017-07-03T17:54:54
2017-07-03T17:54:54
89,478,769
1
0
null
null
null
null
UTF-8
Python
false
false
466
py
convert-vocab.py
#!/usr/bin/env python3 import io import json import fire from collections import OrderedDict def main(input, output): vocab = OrderedDict({'</s>': 0, '<unk>': 1}) for line in io.open(input, 'r', encoding='utf-8'): word, count = line.strip().split() vocab[word] = len(vocab) with io.open(ou...
25ff54a969651d365de33f2420c662518dd63738
d4cf9ee252f39e46f031d738472c238863259de4
/src/CoinPredictor.py
ba9aa8658def8eda49abd9f3440fa4f29a0e3b89
[]
no_license
Amaziner01/CoinPredictor
af646226c027c5565192af3dac7c5b93d17fd663
8e0945c0f752eceea68a0fa05e46284d095d3a9f
refs/heads/master
2021-07-08T16:03:47.815040
2021-04-23T12:16:07
2021-04-23T12:16:07
240,349,017
0
0
null
null
null
null
UTF-8
Python
false
false
2,291
py
CoinPredictor.py
import json import random from time import sleep url = "data/data.json" def loop(run_state): error = 1 simulations = 1 while run: error_margin = str((error/simulations) * 100) + "%" prediction = get_prediction() print("Prediction: %s" % prediction) print("Error Margin: %...
73d7b1895282df5b744d8c03ec7e6f8530366b76
5347e2335c1d0e967a1b33d9f6f827d0bdaacaa7
/SVM_yuce.py
8cdf98b48ac2a6804127847bc07e87830534f735
[]
no_license
jiazd000/SVM
50eadfa7ca4ea3c9bbdc792f1869147e916c3c88
bf7dd7f267353d2c2d1e049d3c8573dd8713e11e
refs/heads/master
2020-03-28T10:48:10.507467
2018-09-10T11:42:27
2018-09-10T11:42:27
148,146,392
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
SVM_yuce.py
# -*- coding: utf-8 -*- import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties from sklearn import svm data=np.loadtxt('yucedata1.txt') X=data[:,0] y=data[:,1] plt.figure(1,figsize=(8,6)) myfont = FontProperties(fname=r"c:\windo...
f2cdee7e5eebaeeb784cb901c3ac6301e90ac7b9
ea02a4c1466415a050684e7375dd255b212125e9
/emailupdate/views.py
aee71a8b6102c49a640841b07fab2cd60a7315bc
[]
no_license
scotplum/inthenout
bb9cb12fd800d31501f7c5274d42759f990eab3e
772f935396a7ada4e5e35000034f089606e01382
refs/heads/master
2020-05-26T22:15:07.519560
2017-05-23T04:15:06
2017-05-23T04:15:06
82,509,502
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
views.py
from django.shortcuts import render, get_object_or_404, redirect #from emailupdate.forms import emailupdate_form from forms import EmailForm from django.utils import timezone def index(request): if request.method == "POST": form = EmailForm(request.POST) if form.is_valid(): post = form.save(commit=False) po...
18dae039f6455f944cbaa97bcb9c36ed29ac9a21
28dd0a85ee875521e98b515c25171623d834d955
/taxfunding.py
b986c934a24dae4275a73add1beab1b0605568ec
[ "MIT" ]
permissive
gehilley/KMESTaxScrape
695c0d84783ddff49525b4d006b569de19de1bd4
1cf85049b6d2a5fbd532107fbe44f61197ac3263
refs/heads/master
2020-08-24T00:39:39.871111
2020-03-24T13:10:12
2020-03-24T13:10:12
216,733,763
0
0
null
null
null
null
UTF-8
Python
false
false
2,272
py
taxfunding.py
incremental_factors_file = '../2019_2020_IncrementalFactorsList.csv' tax_pickle_for_apns = 'kmes_taxes.p' tax_history_pickle = '../cusd_1percent_tax_history.p' distribution_pickle_out = 'kmes_distribution.p' cabrillo_key = 50200 def read_incremental_factors(): import csv inc_file = open(incremental_factors_fil...
860f77b031c815df40a16669dae8d32af4afa5bf
ddb11d89fdcd04141a68ab0508f6ac26eeb49a72
/app.py
70c48a11722d2157fb5ffc39dde357129923570e
[]
no_license
prem-narain/file_converter
0b9205010fe72c9d8aec91e16ddec7b870e07e3e
8ffd8737ec6c809fb48fb544c5075a80485c0d1f
refs/heads/master
2022-12-11T00:51:49.948705
2018-03-18T19:51:35
2018-03-18T19:51:35
125,759,734
0
1
null
2022-12-08T00:55:48
2018-03-18T19:24:37
HTML
UTF-8
Python
false
false
2,953
py
app.py
from flask import Flask, jsonify, request, render_template from werkzeug import secure_filename import os from utils import allowed_file, convert_html_to_pdf, convert_doc_to_pdf app = Flask(__name__) @app.route('/', methods=['GET']) def index(): """ Renders Index.html """ try: return render_template...
f080191fec4e56adc4013da74c840817e88caf56
e19f9a72571fc4c7d71a01e4f65f236110d38d29
/auth/spotify.py
22c2b800232a8fe9563af6c8d9b04a529c00893f
[]
no_license
Live-Lyrics/live-lyrics
1d8473a3e0fd3230ef69ddebfa8645cc5e16d6b3
3ed49188bfe5b473668a2e21a6d8c2a66d5f93cf
refs/heads/master
2021-06-09T15:12:17.176579
2018-11-30T15:05:12
2018-11-30T15:05:12
133,699,146
2
0
null
2021-03-31T18:56:46
2018-05-16T17:07:00
Python
UTF-8
Python
false
false
3,143
py
spotify.py
import os import base64 from urllib.parse import urlencode import json from flask import Blueprint, request, redirect, jsonify, make_response import requests spotify = Blueprint('spotify', __name__) # Client Keys SPOTIFY_CLIENT_ID = os.environ.get('SPOTIFY_CLIENT_ID') SPOTIFY_CLIENT_SECRET = os.environ.get('SPOTIFY...
e8e024ad94fc54455a541eaa601077859e9578a4
2d5b226696b84548b215c0ebec6f396caadc6804
/app/models.py
f4b54ad45df2b7d6a74a9f3318a4092679670217
[]
no_license
Chandeesh03/healthystem
452c36811067fe2b91ec187d70f627403d6660f4
320428e1c5904408b83dd5e6aa89e69637f27a79
refs/heads/main
2023-06-04T09:54:00.737405
2021-06-17T17:25:31
2021-06-17T17:25:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
models.py
from django.db import models class Patient(models.Model): name = models.CharField(max_length=100) email = models.EmailField(max_length=50, unique=True) password = models.CharField(max_length=30)
9cee081a1592f960c2f4b9fe6f4d7f1f03788280
3553348054a4e338c829786c912434795502fd72
/books/adapters/fork_book_repo.py
b2e6b71e8398380e62524d418179263ff0b4b24d
[]
no_license
LowerDeez/hexagonal-django
a244216b6b798f8a541816c4608556b4f493edfd
5b7b453101cce1216d2e7a8811280bb608db8501
refs/heads/master
2023-05-23T01:55:12.185884
2020-08-31T07:18:27
2020-08-31T07:18:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
fork_book_repo.py
import attr from ..interfaces.book_repo import BookRepoInterface @attr.s class ForkRepo(BookRepoInterface): main_repo = attr.ib() other_repo = attr.ib() def add_book(self, book): the_id = self.main_repo.add_book(book) book.id = the_id self.other_repo.add_book(book) return...
39e7ddf684efa5d6294b22718de91524c552e92d
50cf1ec6ce96d72b907745c5a5df06bae9ce3dad
/mywebsiteapp/migrations/0004_auto_20200815_1129.py
00e29ffb93923cf45152dbff06b350092bd99f10
[]
no_license
Jeyasuriya1998/SuriyaWebsite
a947f49b3c7dbc9bf575afe21df03dae9f0b0b46
9f64c85c4a63e0bf772a9a4549d8436e5498aafd
refs/heads/master
2022-12-02T00:34:48.222512
2020-08-19T05:42:04
2020-08-19T05:42:04
288,473,530
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
0004_auto_20200815_1129.py
# Generated by Django 3.0.3 on 2020-08-15 05:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mywebsiteapp', '0003_auto_20200814_0922'), ] operations = [ migrations.AddField( model_name='achievements', name='pd...
19ad35560d7cb10e67f7aecc6c8d38e5c59d1eb0
7ac43f018756573e12eb49ec55ed854fb5f9d2b1
/TEST_2b/Analysis/read.py
42f97c3084d5326c59c7031ac37dd0b3017e3754
[ "MIT" ]
permissive
dmalagarriga/PLoS_2015_segregation
68d92965c1db5f58a2e6b913e630d788bffad65f
949afedf96945c11ee84b1a6c9842e5257fb5be8
refs/heads/main
2023-01-03T09:18:10.985981
2020-10-28T07:58:25
2020-10-28T07:58:25
307,944,255
1
0
null
null
null
null
UTF-8
Python
false
false
2,358
py
read.py
#!/usr/bin/python import matplotlib matplotlib.use('Agg') from scipy import * from pylab import * from numpy import * import glob import os from os.path import join as pjoin import spectrum #from matplotlib.backends.backend_pdf import PdfPages def comparacio(a,b): (Sepa,numa) = a.split('_') (pa,exta) = num...
14c31b878c1d98f9c9aaf50da076658afbb39c44
d89550c4d87ae02a87fe8ec9593c1f83ce0aca92
/getweather.py
72ace2c5a9b6b59966d4ae5a39b9994efee34b73
[]
no_license
joozin/initial
c86e26c2da43b627f849fd4588cd17b7895669e9
6d1874fe421f1dc9c27147717a30bd102d17eca0
refs/heads/master
2021-04-29T12:54:13.212612
2018-02-16T13:12:23
2018-02-16T13:12:23
121,739,242
0
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
getweather.py
#!/usr/bin/env python import pyowm import os # get variables values api_key = os.environ['OPENWEATHER_API_KEY'] city = os.environ['CITY_NAME'] source = "openweathermap" # access the API with functional KEY owm = pyowm.OWM(API_key=api_key,version='2.5', config_module=None, language=None, subscription_type=Non...
a1f103f740cc98461aac3fbb81e673e4ba30ad7e
3356a969e91ac6ca731911b485abda03fd7b53b4
/fila/servidor.py
fffe9c0559985d4eca17f9205c9e40a923aec16e
[]
no_license
marcos-antonio/mine-field
4f393b050d80d91286a7c2f203771aaf6109f3d2
598726ffbed057bddb423aa054a87567b3e25f38
refs/heads/master
2020-07-12T12:00:13.060083
2019-11-24T17:52:56
2019-11-24T17:52:56
204,815,475
0
0
null
null
null
null
UTF-8
Python
false
false
1,109
py
servidor.py
import sys sys.path.insert(1, '../') import zmq import time import sys import random from minefield import MineField try: port = "5560" ENCODE = "UTF-8" context = zmq.Context() socket = context.socket(zmq.REP) socket.connect("tcp://localhost:%s" % port) server_id = random.randrange(1,10005) ...
e49e1c2cd542be83314a77bcf9d608ba6c424988
172369aee87445f129cbddcdbc716d8db47f1558
/importJson/views.py
a02cb2d1c6885c9f64bbbbb78d5d89c0c4add78a
[]
no_license
daviddiz/analyticalls
2deb947b78643c7610b17ea1fa6f08007a0307fd
766b159bcb38308cb770050ac75cf178c4b397c1
refs/heads/master
2023-03-06T03:35:44.564643
2021-02-13T01:15:26
2021-02-13T01:15:26
338,303,393
0
0
null
null
null
null
UTF-8
Python
false
false
3,120
py
views.py
from django.shortcuts import render from django.http.response import JsonResponse from rest_framework.parsers import JSONParser from rest_framework import status from importJson.models import RetreivedData from importJson.serializers import RetreivedDataSerializer from rest_framework.decorators import api_view @a...
bfe211fb4a4a8a398c1398cc2d690818e18a7281
be764f53070c9929767da0ee42f237fb279dc57e
/Max_partition.py
38eba053e566c3e69fcdd9863a2e33f70117bbc6
[]
no_license
xjsweet/Polygon-Partition
43f55033543f0dae7d57896ab4ce26d06ac9ab32
678b1249eef4a587835a8a70fb8b150fe375466a
refs/heads/master
2021-06-17T23:25:40.795116
2017-04-26T04:02:28
2017-04-26T04:02:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,406
py
Max_partition.py
'Please make sure that the INPUT is A CLOSED RECTILINEAR POLYGON,' 'CONSTRUCTED WHILE GOING IN ANTI-CLOCKWISE ONLY' # importing libraries import networkx as nx import turtle import matplotlib.pyplot as plt import warnings from networkx.algorithms import bipartite import math warnings.filterwarnings("ignore") # declara...
402dd6a18a2e0ff3c4918e89484455a489df340e
df5be231ff756ac8e3e0383076255c67466c16a4
/draw_contours.py
ff4aeed7553833ea2859e2e8bd86f97190a6651a
[]
no_license
hernandezurbina/CVAdventures
045e36d7d8066b1ff00a56f4299ebf5e5038cb04
998b4cde33aba63d26a6022616e71dd248b47418
refs/heads/master
2021-02-19T03:25:11.569574
2020-04-18T12:53:23
2020-04-18T12:53:23
245,272,702
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
draw_contours.py
import cv2 import numpy as np """ The code here might help to improve detection in the parquimetros dataset! Look at the contours in the characters! """ img_path = 'Parquimetros/2018-12-22 17.27.43.jpg' img = cv2.imread(img_path) img = cv2.resize(img, (512, 512)) imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) ret,...
c3489b048ddbbe8d5afbdb31a463574fbf5dba75
73f69adf4e744751933725075c447e7d2d8df813
/talk/src/base.py
576c6b180922c3460e3441dd3266a7819064cd63
[ "MIT" ]
permissive
rmariano/Clean-code-in-Python
5b6c89816e75ac18dfbbeb5210edb57cda9a910b
0cc2e3d79f996dfdda3dfbdf575cb3b9c492cefa
refs/heads/main
2023-08-17T09:23:45.471046
2023-08-15T18:18:01
2023-08-15T18:18:01
63,787,233
156
31
MIT
2023-09-11T11:32:05
2016-07-20T14:17:05
Python
UTF-8
Python
false
false
2,833
py
base.py
import logging from enum import Enum from collections import namedtuple logger = logging.getLogger(__name__) class DBCursor: def __init__(self): self._calls = [] def execute(self, command): self._calls.append(command) ############################### def run(*ars): print(ars) def st...
9d21594ed86583fc7166caa54ffb3f82a71e51af
8a8aab35ab2e477dccc6545d32bdb83afe1a7f23
/tdascraper.py
c66693074a67a2c495a32c770e42e25f0067d226
[]
no_license
DerTarchin/deltapoint-scraper
2c06576f37bb10fae3bef7360852989670107e22
a6e8f1b52cf33a862a09ccab41b5286cfc628aca
refs/heads/master
2021-06-06T13:10:00.373649
2021-01-15T15:04:45
2021-01-15T15:04:45
147,762,025
2
0
null
null
null
null
UTF-8
Python
false
false
7,244
py
tdascraper.py
from datetime import datetime from iexfinance.stocks import Stock from bs4 import BeautifulSoup import requests import json import tdapi import os KIBOT_LOGIN = "http://api.kibot.com/?action=login&user=guest&password=guest" # KIBOT_STOCK = "http://api.kibot.com/?action=history&symbol=<SYMBOL>&interval=daily&startdate=...
6bbe50765fb762c2c7e775ea36da07f2d798d3ff
d55482531c5ebe72221b56600191509dd61f7975
/Back/api/migrations/0027_remove_magazine_portion.py
f4688991de87ccfa0e543330055de25c358f6cb5
[]
no_license
aseke7182/DarDemo
a16d059d5089ead3b982a4b36656619bd1ff6810
bd34d6ecd838f58c18368b137ccc7af1449a212b
refs/heads/master
2022-03-22T12:31:03.210866
2020-06-24T13:28:14
2020-06-24T13:28:14
187,693,699
0
1
null
2022-02-26T11:27:13
2019-05-20T18:31:29
Python
UTF-8
Python
false
false
327
py
0027_remove_magazine_portion.py
# Generated by Django 2.2.1 on 2019-05-28 12:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0026_auto_20190528_1831'), ] operations = [ migrations.RemoveField( model_name='magazine', name='portion', ),...
de39f868bc6efc4cf8cd8e2f2538173fef2e908c
2d1d7668114c9b500e025f722387844aa42e17cd
/scripts/poisson_covariance.py
acee5d3cdd1383778290988ed6b47f3a7215d83d
[]
no_license
evgeniiegorov/earthquake
c479d7996ee945acd1bc43a333e2edd88e2768a9
006c7fb642ef7082cbc8065f9772e478bb910708
refs/heads/master
2021-07-22T18:00:08.010435
2017-11-07T12:32:03
2017-11-07T12:32:03
108,523,154
0
1
null
null
null
null
UTF-8
Python
false
false
6,680
py
poisson_covariance.py
import numpy as np from scipy import stats def CellXEstimate(cell): if cell is None: return (0.0001, 0.0001, 0.0001) else: if cell.shape[0] == 1: x = (cell['magnitude'][0], cell['magnitude'][0], cell['magnitude'][0]) else: x = (cell['magnitude'].min(), cell['mag...
e58d5f710febb02014029fa9085947dd49c5d67f
e533cd1ec7c9cce9c5d58021382e2bf0e7717afc
/Eurovision/Eurovision/app/helper/database_helpers.py
81c97ece0017af752188a77f5bb07b77ae344149
[ "MIT" ]
permissive
Ploddish/eurovision-webapp
2b9a8963dd7fe847f4e2afc63f5779a72060d243
0a8de5a519ee8a623d3b5d2de8c9e9d99f183c6a
refs/heads/master
2020-03-19T15:15:51.422734
2018-11-18T00:55:30
2018-11-18T00:55:30
136,663,192
0
0
null
null
null
null
UTF-8
Python
false
false
2,161
py
database_helpers.py
from app import db from app.models import Song def fill_db_with_data(): songs = [ Song("Ukraine", "Mélovin", "Under the Ladder", 179, "🇺🇦" ), Song("Spain", "Amaia & Alfred", "Tu Canción", 179, "🇪🇸" ), Song("Slovenia", "Lea Sirk", "Hvala ne!", 180, "🇸🇮" ), Song("Lithuani...
a120ab8f976ec29263f1985d24db5ebf9d0d75d7
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow_nightly/source2.7/tensorflow/contrib/learn/python/learn/estimators/state_saving_rnn_estimator.py
de78c72c3ae3ef14f5f7c46b1d47f82e8266c7c6
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
28,418
py
state_saving_rnn_estimator.py
# Copyright 2016 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...
e2325971ce7559e8871de970f6d9c5f24af9a370
c8fe59215b68eb5a5d588aefd245b01285db44ea
/merge_data.py
ff5cb70e25af68ae4ae280e7505dd746451a97a5
[]
no_license
zjost/movie-model
950a2a4ec6e8c52ec40fd381b947fe924d01428f
1eaa23b28503962467c06e9cef312099fbd347e4
refs/heads/master
2021-01-10T01:50:11.195978
2015-10-19T14:25:33
2015-10-19T14:25:33
44,341,316
0
3
null
2015-10-16T21:17:07
2015-10-15T19:47:55
Python
UTF-8
Python
false
false
497
py
merge_data.py
import pandas as pd from load_dataset1 import get_boxofficemojo_movies from load_dataset2 import load_dataset2 def merge_data(): mojo_df = get_boxofficemojo_movies() meta_df = load_dataset2() #mojo_df['release_date'] = mojo_df['release_date_wide'] merged_df = mojo_df.merge(meta_df, on = 'title') ...
b3660e2d79ea7f22bb11c9ac9c493601630ff077
3d2bce6379ef9b984bf2eb46526228153d575248
/models/lightgbm_.py
63f664ef72741232105518a2ba517ef257b54bcf
[]
no_license
DigAPieceOfDay/kaggle-talkingdata-adtracking-fraud-detection
1235ee728ffa7b4bd7881c7b00e16c4e0145130e
cf2f2d838807f0044f48f7d261e00be184db669b
refs/heads/master
2020-03-16T13:24:28.931635
2018-05-08T08:22:47
2018-05-08T08:22:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,509
py
lightgbm_.py
import gc import logging from os.path import abspath, join as join_path import pandas as pd from sklearn.model_selection import train_test_split from sklearn.metrics import log_loss, roc_auc_score import lightgbm as lgb from lib.project import project from lib.columns import DataFrameCols from lib.utils import make...
60cc2d042d7b99f745d96b616337cd81995eae2e
84b7b0dfd4a8ae3699f60f42de83acfde4892afd
/kvcloud/test.py
73e57ff6c9e42d340d221e53bbf4de70178cac21
[ "MIT" ]
permissive
wectf/2020p
fa76ae6b95f996238613ec546e59c0020c4e33aa
748bc42ace5cc4164fb35c418b32a94e729faf48
refs/heads/master
2023-06-18T17:34:09.118284
2021-07-05T17:32:59
2021-07-05T17:32:59
322,400,614
24
4
MIT
2021-07-05T17:33:00
2020-12-17T20:03:39
Go
UTF-8
Python
false
false
1,021
py
test.py
from requests import * import urllib import random import string def check(host="172.17.0.6"): port = 80 letters = string.ascii_lowercase def setget(): cmd = ''.join(random.choice(letters) for i in range(40)) if put(f"http://{host}:%s/set/%s?value=dev_test" % (port, cmd)).content != b'OK'...
1679a577d9c59086854864e9022c9b2fe8a36a67
e21599d08d2df9dac2dee21643001c0f7c73b24f
/Others/Modules/envelopes/envelopes1.py
a0aea2961cbcfd9c96167893e035d5626d94b810
[]
no_license
herolibra/PyCodeComplete
c7bf2fb4ce395737f8c67749148de98a36a71035
4ef7d2c3aec6d28a53eed0e649cdeb74df3d783b
refs/heads/master
2022-07-17T05:39:03.554760
2020-05-03T07:00:14
2020-05-03T07:00:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
envelopes1.py
# coding=utf-8 from envelopes import Envelope, GMailSMTP envelope = Envelope( from_addr=(u'from@example.com', u'From Example'), to_addr=(u'to@example.com', u'To Example'), subject=u'Envelopes demo', text_body=u"I'm a helicopter!" ) envelope.add_attachment('/Users/bilbo/Pictures/helicopter.jpg') # Send...
78d711302b72e54462d287b7e6eb3fe7eb10d4a4
a1a8c36050fd8acc18f119940dd9aac0b279c20d
/lists.py
03180ee1aa583f344bed1ab3d48722d5b9eed303
[]
no_license
carson03/Intro
aef76a7a701fcc4f0b05666087896a5abcfc1ae2
0e30a166d3726a4b12867e353f7a8fb4a72ef6fe
refs/heads/master
2020-03-20T22:18:36.744761
2018-06-19T18:24:51
2018-06-19T18:24:51
137,790,869
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
lists.py
myshopping_list = ["bread", "milk", "cereal", "pizza",] for name in myshopping_list: print (myshopping_list) careers_list = ["architect", "chef", "fitness trainer",] for name in careers_list: print (careers_list)
935e6aa85c72956205e0633af8e6fa5a596995e9
633d0b9205fd2eb051a3ee3f5356f456d60a7ecd
/lib/version.py
1bb2aabee25614a9bbc7efef7c210a3c9aa0e7d3
[ "Apache-2.0" ]
permissive
pombredanne/amara
7ac6fd8d67ef709bbe85b2d35ddd721c2c8837f7
09e9b472e9d189f460197dba3f8aaefc0d4571f7
refs/heads/master
2020-12-29T02:54:45.551601
2011-08-15T02:29:26
2011-08-15T02:29:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
33
py
version.py
version_info = ('2', '0', '0a6')
285f2ee21ee445bb4b367d6b2c96724f15ed9c8f
3c7a342cdd0659c065bb2715dc746a01df68f509
/app/models/person.py
81176629a8de1b8ceefddf898aee472609b8f493
[ "Apache-2.0" ]
permissive
Joeper214/barm
b6dbbb25bbd79e0b1bbd43829c9052f70a46c332
77cd8ddcf73ceacf86b13ca819d8e56471e43574
refs/heads/master
2016-09-05T13:34:27.854308
2015-03-06T08:33:16
2015-03-06T08:33:16
30,333,982
2
0
null
null
null
null
UTF-8
Python
false
false
504
py
person.py
from ferris import BasicModel, ndb class Person(BasicModel): name = ndb.StringProperty() color = ndb.StringProperty() email = ndb.StringProperty() @classmethod def list_all(cls): return cls.query().order(cls.name) @classmethod def find_by_person_id(cls, person_id): return ...
5ab60574be8566eef47504d6ef6c0770d27a148d
dff4bd6eaa4e157c8bd254f40c7551c6f8ff730e
/1st Place/team-member-b-execute-second/src/data_structures.py
b91339059d6b5f6b1102bcfe406e787b912ad0f0
[ "MIT" ]
permissive
gopakumargeetha/power-laws-cold-start
9dd5d7c187de13dba2eae34ae667e1f139b37e43
3915f29335584e1cadd4fbf95c5265689896f90f
refs/heads/master
2022-12-19T10:04:48.603324
2020-03-14T02:26:06
2020-03-14T02:26:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,124
py
data_structures.py
from collections import defaultdict class find_union(object): def __init__(self, reduce_fn=None): self.parent = {} self.set_size = defaultdict(int) self.extra_values = {} self.reduce_fn = reduce_fn def exists(self, x): return x in self.parent def create_element(s...
73113296c53c9feca533a5a1d7c835af8f208a0b
b41b996b4a14f11bb3d7676b4539725a93c2d586
/SourceCode/Codesignal-Selenium/SourceNew/Py3/stringsCrossover.py3
6f26e73d6a5353e8c358959b036090407db83eac
[]
no_license
mquandvr/selenium
ee2c0e7febb15f4db4d33a8575726f67c48bde05
d7bb4c95d4d0756c66cbf3c69387318fc07219f2
refs/heads/master
2020-06-05T05:49:57.476867
2019-06-18T10:55:27
2019-06-18T10:55:27
192,335,493
0
0
null
null
null
null
UTF-8
Python
false
false
538
py3
stringsCrossover.py3
int stringsCrossover(String[] inputArray, String result) { int answer = 0; for (int i = 0; i < inputArray.length; i++) { for (int j = i + 1; j < inputArray.length; j++) { boolean correct = true; for (int k = 0; k < result.length(); k++) { if (result.charAt(k) != inputA...
565fb18b8b49fbcd4210233f908ac55b368e17a5
2898b860d0440fb10a83d8f28815ac75b0cec9a5
/tests/test_smc.py
a34364de275c3c26a03e07fe9aa33e566cdd18c9
[ "Apache-2.0" ]
permissive
proteneer/timemachine
e3530e52aa995a9006d0eca8632ac6b937571980
b853c2d287da0d1c1babb963eaec8fda41539b90
refs/heads/master
2023-08-18T09:00:55.463397
2023-08-17T22:07:22
2023-08-17T22:07:22
163,188,061
132
14
NOASSERTION
2023-09-13T21:39:20
2018-12-26T14:25:45
Python
UTF-8
Python
false
false
7,663
py
test_smc.py
import numpy as np import pytest from jax import jit, vmap from scipy.special import logsumexp from timemachine.fe.reweighting import one_sided_exp from timemachine.md.smc import ( Resampler, conditional_multinomial_resample, effective_sample_size, get_endstate_samples_from_smc_result, identity_res...
3134eddf00f58a216efb95ca24cd5b6cb9a01dbe
561f4e79b2aa0951828b9fa46039eed77e98bb09
/segundoModulo/exTread.py
8dcb22f3db80d0cd6db07cfa60e8d073b7501a49
[ "MIT" ]
permissive
TharlesClaysson/Python-Basico
fc7da4aaf00e9a66c71e764cd9ad8f2df4e1550b
16a135e08d4f1c7e46e33d4df5d4f36f7498b4ea
refs/heads/main
2023-06-04T21:33:20.100413
2021-06-28T15:01:46
2021-06-28T15:01:46
381,044,053
0
0
null
null
null
null
UTF-8
Python
false
false
1,065
py
exTread.py
from threading import Thread import time, os def fat(fatorial,tempo): indice =[fatorial] resp = z = fatorial print(f'{fatorial}! iniciou!') while z > 1: z -= 1 resp *= z indice.append(z) print(f'{fatorial}! = ',end='') for i in range(len(indice)): pr...
eaafc31e9719dbfce6cf1eb3e5a3788dbe5ce397
350d6bb5b8c56a7ae0cee4b811a68fa3717c8372
/tests/utils.py
78b6c6ad29c76ab6b5cab317fd3eb5646976dcab
[]
no_license
EdwardBetts/undercrawler
5ac1eaa5edf9e7e4b1a527c15dc3649be163f7c4
225a1d083beac73ce75b5d4b6b46eb8c3ccc28d5
refs/heads/master
2020-12-13T18:24:31.560950
2016-04-13T21:27:31
2016-04-13T21:27:31
56,217,873
0
1
null
2016-04-14T07:49:49
2016-04-14T07:49:49
null
UTF-8
Python
false
false
222
py
utils.py
class CollectorPipeline: def process_item(self, item, spider): if not hasattr(spider, 'collected_items'): spider.collected_items = [] spider.collected_items.append(item) return item
2bd8cc2f420096f5994e8e0a2f82f806c21098cd
b3254f94b92bb4c5e475da10c80568c5b114bee4
/asyncio_photos_uploader/uploader.py
cbbde1962390dbb080c45f003888a24587c43ad6
[ "MIT" ]
permissive
elyssonmr/asyncio_examples
d216d4d7ca7802be45d13f3c472b105949b1e60e
955f6b22024aa114cffc2565885771151bcbb423
refs/heads/master
2021-06-26T12:15:29.114644
2019-10-07T02:54:11
2019-10-07T02:54:11
213,280,628
0
0
MIT
2021-02-26T12:15:32
2019-10-07T02:35:48
Python
UTF-8
Python
false
false
6,093
py
uploader.py
from argparse import ArgumentParser import asyncio from concurrent.futures import ThreadPoolExecutor import imghdr import os from aiohttp import ClientSession, ClientTimeout, TCPConnector from google_auth_oauthlib.flow import InstalledAppFlow def setup_args(): arg_parser = ArgumentParser(description="Google Phot...
31da06ae14e6417df826a7fa11969ad80615c239
f263899ab7fa9c3e225d48c44456f97504942ad6
/backend/application/models/note.py
8341d8b8b092a3e120fc069d305f47a9ef4a6928
[]
no_license
Supasitrit/docker_flasks_angular2_mongodb_nginx
44307c9bace766b38f469e7252e78c663859c8b0
1bdf42c45b529b2da6115290aebaba03a3033927
refs/heads/master
2021-07-13T04:55:06.756437
2017-02-18T08:22:35
2017-02-18T08:22:35
82,275,569
1
0
null
2021-06-01T21:44:18
2017-02-17T08:36:51
TypeScript
UTF-8
Python
false
false
110
py
note.py
from application import db class Note(db.Document): created_at = db.DateTimeField() text = db.StringField()
97e3c21d986cb06602094a12cc2cb39d205081d6
273382e5eda9a51b202e006c7b102e3aa7dbf1a5
/py_scripts/create_static_data.py
180e5657625d05572d4a7ae727e7408e5c6cf13b
[]
no_license
MaxMaelicke/dsnd_capstone_stock_price_predictor
0bbb0ae3c656230ed8e9f37f47bcfa969aac73ab
14e2e10e0800d75f446b7431e924fb759746c5e4
refs/heads/master
2022-10-19T14:27:05.663790
2020-06-12T07:19:10
2020-06-12T07:19:10
264,929,808
0
0
null
null
null
null
UTF-8
Python
false
false
3,600
py
create_static_data.py
#### Stock Price Predictor #### Create static data for Dash App # Run this script automatically on a daily basis to keep your Dash app up-to-date # Requirement to be added: Daily retrieval of actual stock data # Import libraries import os import pickle import pandas as pd import numpy as np import datetime from skl...