blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
d060a46cde9a9f5c3d26898d93162ce5959a19d4
993e8b85dff73dccafa4f8dc2dac38615f606715
/great_powers.py
ba0d9dcd0261364fb5e4f2353f305d7db9f76258
[]
no_license
jgatka/great_powers
f57ecfc8504b7b7b0f827668cdf3cfba1d3cc2dd
4950b4342c8e76893754895c66f0e2e752ae5e58
refs/heads/master
2021-06-08T00:49:25.270172
2021-05-03T17:53:55
2021-05-03T17:53:55
137,496,857
0
0
null
2018-07-31T01:12:05
2018-06-15T14:25:59
Python
UTF-8
Python
false
false
8,984
py
# Console app to assign players to great powers for the board game DIPLOMACY # This code is functional and pragmatic...there's a reason I don't work in the development dept. # Josh Gatka # Import libraries import random from random import shuffle # to do list ''' TODO Need to insert a 'Board number x' state...
[ "noreply@github.com" ]
noreply@github.com
fb8dd3aa1edf34344494f95001b36a368804d797
3a0496fca60ffddfbfbf74e55b0e2c044f668771
/Weather2.py
d5edbb384ed9d4edb1f0a5f1f4598bca9577c332
[]
no_license
LevBuslaev/python_projects
e50b27f575d2baf23f85e378bd4609af252c7776
c2c70560dc04eafe3929f256e4fafdc1d7740420
refs/heads/master
2020-09-14T20:13:11.924617
2019-11-29T06:04:36
2019-11-29T06:04:36
223,241,633
0
0
null
null
null
null
UTF-8
Python
false
false
2,419
py
import pyowm owm = pyowm.OWM('8b02f1beea4840f1ae5c3736e3ea68d3', language = "ru") place = input("Погода. Введите город: ") # Search for current weather in Novorossiysk (Russia) observation = owm.weather_at_place(place) w = observation.get_weather() temp = w.get_temperature('celsius')["temp"] speed = w....
[ "noreply@github.com" ]
noreply@github.com
9b922048184f18e43a4b6d17868455c9307961a0
73a8f5027f7bc1937d63cd54d07cd0d0652b6914
/532_K-diff_Pairs_in_an_Array.py
30a98a2d01df114fc7da58a6f7fac78a4c824066
[]
no_license
jincurry/LeetCode_python
0891cd4879c44cfb67df870de529c1bdd89c9954
d9c1061fefc5f42474b7dd8e2d3854825eeff45f
refs/heads/master
2021-06-18T01:50:46.551949
2019-05-07T14:00:11
2019-05-07T14:00:11
115,329,517
1
0
null
null
null
null
UTF-8
Python
false
false
1,676
py
# Given an array of integers and an integer k, you need to find the number of unique # k-diff pairs in the array. Here a k-diff pair is defined as an integer pair (i, j), # where i and j are both numbers in the array and their absolute difference is k. # # Example 1: # Input: [3, 1, 4, 1, 5], k = 2 # Output: 2 # Explan...
[ "jintao422516@gmail.com" ]
jintao422516@gmail.com
f98452e0f21a9c1056e0c1d3c53317f9bf629ff5
76c14138689216634ca12b5e1bc0947a9866b1b0
/aa/PYT/file_han/aa.py
0459b8ea210dea61036e1e28d403896cd6d919c4
[]
no_license
KSrinuvas/ALL
4b0c339bfeb8780232f3853e5fc53c40b84c9cb7
9251464a27a98f98e1055ebf129d6934a02e8ffc
refs/heads/master
2020-12-06T21:59:33.449669
2020-03-15T17:05:42
2020-03-15T17:05:42
232,560,914
0
0
null
null
null
null
UTF-8
Python
false
false
900
py
#!/usr/bin/python3 import re import os ## write a file fobj = open("aa.txt","w") print (fobj.mode) fobj.write("this is srinu\n") fobj.write("this is my email address ss123@gmail.com\n") fobj.write("good bye\n") ## close file handler fobj.close() ## read file fh = open("aa.txt","r") print (fh.name) prin...
[ "Srinuvas935@gmail.com" ]
Srinuvas935@gmail.com
8e410733b7c830155aaf12fbd8f8472e561c5cda
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/misc-experiments/_FIREBFIRE/grpc/doc/python/sphinx/conf.py
6e4bfab7d0edbc549c44c0323f157ca1c924de20
[ "Apache-2.0", "MIT" ]
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
3,626
py
# Copyright 2018 The gRPC Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
e518e98488120860bfe9a632e9bdb823a1476118
06c41f009777395c38a66abf639cb5717b240e15
/test/_compat.py
3e6293e1808f4260efe93824291b3bc82462764c
[ "MIT" ]
permissive
hibtc/madgui-old
6c7a5f1ecd455f1814a01524446c751255c75052
18241115b6c3c3ec8ba76c0ec10a894937ffc3c7
refs/heads/master
2021-10-22T16:25:25.371717
2016-10-06T14:37:50
2016-10-06T14:37:50
14,426,207
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
import unittest class TestCase(object): """ Compatibility layer for unittest.TestCase """ try: assertItemsEqual = unittest.TestCase.assertCountEqual except AttributeError: def assertItemsEqual(self, first, second): """Method missing in python2.6 and renamed in python3...
[ "t_glaessle@gmx.de" ]
t_glaessle@gmx.de
a8e1aee8144d06a3e5452eaf17d2cc4441c0bca4
8eff460026571b1b526863a7bbceb80ae56d87df
/jobs/aaa.py
0e15baed2922253cec26938a102650415bc42c2c
[]
no_license
binhbt/flask_celery_demo
847eaced614218c941c5c85e37adc3e0c8133ae7
ccc5d725040a312a18398e8044e9239b878a0a98
refs/heads/master
2020-04-30T20:35:27.762828
2017-12-27T09:27:59
2017-12-27T09:27:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 任务 """ from app import celery @celery.task(name='aaaa') def aaaa(a, b): print('Hello job aaaa') return a + b @celery.task(name='bbbb') def bbbb(a, b): print('Hello job bbbb') print(a + b) return a + b
[ "babycoolzx@126.com" ]
babycoolzx@126.com
5b847692a21dcb8731491d3c01c91efcf219d254
06a34c24f91fe5b6f7511290c423cd0f574c309a
/two/categories/admin.py
9594306171ab0db4f6ccf8975f951bb8fda39923
[]
no_license
memoer/nomadcoder-challenger-airbnb-django
d3916f82891a75f56cf3e0dcf2c906bc74b4ba94
07158c406e33ed48f410454883bf341335f7b8ec
refs/heads/master
2023-02-14T04:40:56.185206
2021-01-07T17:19:52
2021-01-07T17:19:52
327,678,663
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
from django.contrib import admin from . import models """ Here are the models you have to create: """ @admin.register(models.Category) class CategoryAdmin(admin.ModelAdmin): list_display = ( "name", "kind", ) list_filter = ( "kind", ) search_fields = ("name",)
[ "hanjn2842@naver.com" ]
hanjn2842@naver.com
61bdf16b404bf29f47617846ccb8689242f77a38
a24314b43d51dd8f0875a94676b6263fb5b35c52
/Mail/main.py
44fa52679ad9843ccb4f77279ebabbf9e99d8796
[]
no_license
ShadmanSahil/Flask
7fb28403960ca519b7c9d5cf0c50844a9b0f7fab
80b20294631b4d026acd142103980b92dc5b3467
refs/heads/master
2022-12-15T04:05:46.482530
2020-09-20T02:56:49
2020-09-20T02:56:49
294,209,532
0
0
null
null
null
null
UTF-8
Python
false
false
6,183
py
from flask import Flask, render_template, redirect, url_for, request, flash from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, TextAreaField from wtforms.validators import DataRequired, EqualTo, Email from flask_sqlalchemy import SQLAlchemy from flask_bcrypt import Bcrypt from ...
[ "noreply@github.com" ]
noreply@github.com
1977d062e0c1fde4e2208066bed5949968d5f079
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/ESSENTIAL-COMMUNICATIONS-HIPPI-SWITCH.py
9502e9a6628121290a820f2cb53d6169bac89931
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
12,990
py
# # PySNMP MIB module ESSENTIAL-COMMUNICATIONS-HIPPI-SWITCH (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ESSENTIAL-COMMUNICATIONS-HIPPI-SWITCH # Produced by pysmi-0.3.4 at Mon Apr 29 18:52:26 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 #...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
63f13a578c8ecf536f2c9ea935001a5631100bfc
3449b0dc06d12f4d4c4fa4476f96d37766cc5f20
/1011.py
427c6f527ee626e0cd1f931d87aa385292e4a094
[]
no_license
ieehee/baekjoon_solutions
694d05b39ac9323bdd2ddacd5a565d9d20f200c9
183f97a6bfda6a787ee33f89674ac41eef9d145b
refs/heads/main
2023-08-30T18:44:39.721261
2021-10-11T06:11:32
2021-10-11T06:11:32
410,890,498
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
import sys import math input = sys.stdin.readline T = int(input()) Ds = [] for i in range(T): x, y = map(int, input().split()) Ds.append(y-x) for D in Ds: D_isqrt = math.isqrt(D) if D_isqrt**2 == D: print(2*D_isqrt-1) elif D_isqrt**2+D_isqrt < D: print(2*D_isqrt+1) else: ...
[ "60761820+ieehee@users.noreply.github.com" ]
60761820+ieehee@users.noreply.github.com
08cb2af99063d8577b2e342771292d39a6b09887
0d6a506fe4dcd83a7e735a9df78b39ce703c5a35
/pro_div.py
55adab5487ba3f64424e6ea7cda6f75eec93ba5e
[]
no_license
Ponkiruthika112/codeset6
96ad146cea3fe10fff2963c72a6276381b5f926a
274efc8bbbf61f9838cdb8ff56472b7f8185f51e
refs/heads/master
2020-04-16T01:33:02.069006
2019-05-17T11:26:50
2019-05-17T11:26:50
165,178,165
0
1
null
null
null
null
UTF-8
Python
false
false
61
py
#for division n,k,m=map(int,input().split()) print((n*k)//m)
[ "noreply@github.com" ]
noreply@github.com
7caad4232101dbe5906bc3ef94c1956949892956
433423e83b2d1ae582e0a45acc829473c98af7ab
/create_db.py
c430632bc30a8f0d6aa08bf01e6d2f6527326c65
[]
no_license
wojlas/messenger
b04489933ec608249d0a78012abdbe7975f2cdd2
c73ac8de225dc4d1f40af4f44930990a60f5fdec
refs/heads/main
2023-05-04T18:22:33.444941
2021-05-27T14:51:49
2021-05-27T14:51:49
367,376,457
0
0
null
null
null
null
UTF-8
Python
false
false
2,610
py
import re from psycopg2 import connect, OperationalError from psycopg2.errors import DuplicateDatabase, DuplicateTable '''Program to create database (db name input by user) and tables for users and messages''' # db_name = input("Enter name of database: ") db_name = 'messenger_db' create_users = """ create table...
[ "wojlas93@gmail.com" ]
wojlas93@gmail.com
0a5d8fa69f0f67bd5c2fa889f4ebc90c216b0110
f37e02dc0f48ec634dbd0600db8bf67e5e3cda0a
/test/unit/common/middleware/test_proxy_logging.py
cd5c20661feff3b7c65af59fd657e1c0e6dde800
[ "Apache-2.0" ]
permissive
haluomao/swift
ff7b8ad013ff25f3f6073f9144e04640aa9913fe
d668b27c0967bfe47e3d91d50600c9be5dc653a1
refs/heads/master
2020-12-25T04:07:52.111753
2012-05-28T18:36:59
2012-05-28T18:36:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,888
py
# Copyright (c) 2010-2011 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
[ "mike@weirdlooking.com" ]
mike@weirdlooking.com
51a800c9d6f72833820a5827ee522625cc322e60
3ac9ea18fb3c0d877ff7abc1710988d30617ff2f
/about/views.py
9b7fa396ec2d60f1a317554c08a5db6c6e3c0a31
[]
no_license
sammonsg/personal_site
b57ea02517a2d1be18aadf92ad5a8b241c069658
3be3757d6dedf5a6a98ca1f8208d4ad0cbd55a78
refs/heads/master
2021-05-12T01:52:19.672047
2019-02-06T18:32:26
2019-02-06T18:32:26
117,567,751
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
from django.views import generic class AboutMeView(generic.TemplateView): template_name = 'about/about.html'
[ "giacomo.sammons@gmail.com" ]
giacomo.sammons@gmail.com
04c5a72b50268b73eaa66cd37bff8a604878c8d6
1ae4de8ee7e43a7409a8b82c75a8a495916913ad
/otzi/agenda/migrations/0002_auto_20200407_1413.py
c657dc98d896e4667187a2ac567dcbad802c4387
[]
no_license
GabrielUlisses/Otzi-tattoo
c688b8fd7ca36045f4853157e3e07c9bb13ddc73
65c351b872d2c3f720578851eb1d259b25efd71a
refs/heads/master
2022-12-25T12:53:35.674078
2020-09-23T14:25:34
2020-09-23T14:25:34
297,993,750
0
0
null
null
null
null
UTF-8
Python
false
false
1,101
py
# Generated by Django 3.0.3 on 2020-04-07 17:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('tatuador', '0003_auto_20200407_1413'), ('agenda', '0001_initial'), ] operations = [ migrations.Alte...
[ "gulissessti@hotmail.com" ]
gulissessti@hotmail.com
8ea5e884675f24b3efd9298b90c893e3ca4606c1
c105797a5b6f5aca0b892ccdadbb2697f80fb3ab
/python_base/base9/base9_6/test_base9_6_8.py
0f4b4c47bf83ee51ee523ad09b3439685b825c78
[]
no_license
jj1165922611/SET_hogwarts
6f987c4672bac88b021069c2f947ab5030c84982
fbc8d7363af0a4ac732d603e2bead51c91b3f1f7
refs/heads/master
2023-01-31T19:41:27.525245
2020-12-15T13:43:45
2020-12-15T13:43:45
258,734,624
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020-05-17 # @Author : Joey Jiang # @File : test_9_6_8.py # @Software : Pycharm # @Description: 测试报告美化与定制 ''' 通过allure.attach("xxxx",attachment_type,exntension)加入纯文本信息 ''' import pytest import allure def test_attach_text(): allure.attach("这...
[ "1165922611@qq.com" ]
1165922611@qq.com
f75d19aec8e44ee58ebf1aef83298f22ffb63d04
5a19bb7d00a109a140301423c9251c70d0561b9f
/Activity_03.py
54f48ccbeb2b34db5d9484e907970b37e1eddbd1
[]
no_license
prasunranjan35/prasunranjan35
3a67fe3e8ea30e0977b037ebcba21f088e6d83fb
58840dfca717ad8bb9f257d21bedfb8b61dda4c9
refs/heads/main
2023-07-18T11:16:17.869022
2021-08-28T16:48:54
2021-08-28T16:48:54
400,727,992
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
//for concatinating once. first= "Good" second = "Morning" print (first + second) //for concatinating five times. first= "Good" second = "Morning" print ((first + second)*5) //concatinating in single line with spaces. first= "Good" second = "Morning " print ((first + second)*5) // concatinating with /...
[ "noreply@github.com" ]
noreply@github.com
de5dfc99ab3202da4b172ac063dd3210b980fed1
914a83057719d6b9276b1a0ec4f9c66fea064276
/test/performance-regression/full-apps/qmcpack/nexus/library/xmlreader.py
624681b744438e1c0543befdb9c7001fa8710c08
[ "LicenseRef-scancode-unknown-license-reference", "NCSA", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "BSD-2-Clause" ]
permissive
jjwilke/hclib
e8970675bf49f89c1e5e2120b06387d0b14b6645
5c57408ac009386702e9b96ec2401da0e8369dbe
refs/heads/master
2020-03-31T19:38:28.239603
2018-12-21T20:29:44
2018-12-21T20:29:44
152,505,070
0
0
Apache-2.0
2018-10-11T00:02:52
2018-10-11T00:02:51
null
UTF-8
Python
false
false
13,595
py
from xml.parsers import expat from numpy import array import sys import keyword import re import os from inspect import getmembers from superstring import \ find_matching_pair, \ remove_pair_sections, \ remove_empty_lines, \ valid_variable_name,\ string2val #from abilities import AllAbilities fro...
[ "jmaxg3@gmail.com" ]
jmaxg3@gmail.com
f003f5dc5f861f199a64d060c129e8a400227306
1057a60b163614132d98af60eba446a55b64c77d
/chal223.py
04e0fa8a790b25c4dc2ab5f79c6575169f69b3dd
[]
no_license
Rossel/Solve_250_Coding_Challenges
92e26d7a74e0f7e815cab99537b15021bc2f33a0
4952dd029fdf03ce44d0255ab8c7ac226cff8943
refs/heads/master
2022-12-10T00:46:35.634534
2020-08-30T16:58:32
2020-08-30T16:58:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
import re s = "Bitcoin was born on Jan 3rd 2009 as an alternative to the failure of the current financial system. In 2017, the price of 1 BTC reached $20000, with a market cap of over $300B." result = re.findall(r"\s(o.{1})\s", s) print(result)
[ "noreply@github.com" ]
noreply@github.com
3dfea0ebbf7a2c927802fb62e197cf25999c8779
4208608dc1526be3fee8be014c509d1e2a2a6e33
/g.py
943bee3a6c549116c0b2530e12920aea687085b4
[]
no_license
fallquitor/total-recall
9af9493112e3faf06ec0977eda8e2ad207a0309c
61f82b0f4c7a14016091dc4c8102e7073363fd6c
refs/heads/main
2023-07-19T11:42:19.018267
2021-09-11T14:22:57
2021-09-11T14:22:57
405,384,653
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
import sys sys.stdin = open('input.txt', 'r') sys.stdout = open('output.txt', 'w') input() a = [int(s) for s in input().split()] a.sort() for i in a: print(i, end=' ')
[ "artem08flash@gmail.com" ]
artem08flash@gmail.com
de2f9eba909cd4798dd79a6168d97f1984747a94
db68c1b3e5e70ff1274b8fae1ae3ed974e4893ba
/Phone Number & Email.py
bb766b7c4821f4a3ffd1fba2a2c26b35f5e67513
[]
no_license
Sipherx/Automate-the-Boring-Stuff-with-Python-2015-
6d977158cf30129b74a048d2e790decae03176c7
e505d10ce4e934cd9acad7437bba2ae60002d8f7
refs/heads/master
2021-01-10T15:45:25.637310
2016-02-01T20:47:32
2016-02-01T20:47:32
47,432,805
5
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
#! python3.5 # phone & email - finds phone numbers and email addresses on the clipboard import pyperclip, re #get phone number phoneRegex = re.compile(r'''( (\d{3}|\(\d{3}\))? # area code (\s|-|\.)? # separator (\d{3}) # first 3 digits...
[ "kyara@live.cn" ]
kyara@live.cn
20b78a5359a2bbe963630a2f725cfe1fcfc2388d
5fcf670ceba578656d00a90e2ef2aaae27e91008
/make_figures.py
b63323eeb9626a9bfe715df33759d9f3709ab053
[]
no_license
marcharper/Yen
043613b82340b5445a8a3074cc80f419f90b7dc6
c35c538e62341284c934709e5c65fd81b21af5bd
refs/heads/master
2020-05-17T19:27:57.794530
2016-09-24T02:35:35
2016-09-24T02:35:35
40,083,366
2
0
null
null
null
null
UTF-8
Python
false
false
3,828
py
""" Systematically produce many yen-related plots. """ import math import matplotlib #matplotlib.use('AGG') font = {'size': 20} matplotlib.rc('font', **font) from matplotlib import pyplot import colormaps as cmaps pyplot.register_cmap(name='viridis', cmap=cmaps.viridis) pyplot.set_cmap(cmaps.viridis) from decomposit...
[ "marc.harper@gmail.com" ]
marc.harper@gmail.com
9a7f12a7d94131439e2ea9a5803fd5047e2d7f2b
d94b93857ffec7e47a0d23fb9cc5caf4e412c797
/main.py
e7764d962098d4f61691ac7bb502e2abac3ed143
[]
no_license
njardus/Alpha-Vantage-test1
e91c77a54286b039c4f5cf74e4bae50c7020609f
e5d6f1c2c7dbff38fa182140c9128a9d19ab72ac
refs/heads/master
2020-04-12T17:07:48.725145
2018-12-26T17:48:34
2018-12-26T17:48:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
from loguru import logger # import btest import algo # import alpaca_trade_api as tradeapi # Todo: Implement backtesting # Todo: Implement paper trading logger.info("Project name: Alpha-Vantage-test1") logger.info("--------------------------") logger.info("Program started") if __name__ == '__main__': logger.info...
[ "ngroenew@gmail.com" ]
ngroenew@gmail.com
3f9ae56a530dbadac380e2eb01886794049e10da
f2508081e781a07cc362279c8ca71a40c3f1afc0
/mytodoism/apis/v1/resources.py
4578a15a127bc3564279735b47a8af23c23441ae
[ "MIT" ]
permissive
xlb233/mytodoism
2aed103226a8e22ad9d6709d4e97664f4d265c39
d3d719ffad414542939f2d273c39a1275b1a7dee
refs/heads/main
2023-02-03T04:45:27.605372
2020-12-24T08:04:24
2020-12-24T08:04:24
322,778,603
0
0
null
null
null
null
UTF-8
Python
false
false
7,119
py
from flask import jsonify, request, current_app, url_for, g from flask.views import MethodView from mytodoism.apis.v1 import api_v1 from mytodoism.apis.v1.auth import auth_required, generate_token from mytodoism.apis.v1.errors import api_abort, ValidationError from mytodoism.apis.v1.schemas import user_schema, item_sc...
[ "xyc121305596@gmail.com" ]
xyc121305596@gmail.com
87bab2fc159bb9634fa25425b36346570359a211
ac7bc015031cc7a57175d33669d98740d6cf1104
/python/caffe/pycaffe.py
458b374ad5ff1301ffbc93605aed10c5192a65c8
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla" ]
permissive
sunqiangxtcsun/SSD
d22f4efc867870db9b0e01564916b3c28da8a46e
6913b28b1cfa03b119adc1a732deac20dae46238
refs/heads/master
2020-05-03T02:00:19.924797
2019-03-29T07:33:20
2019-03-29T07:33:20
178,355,044
0
0
null
null
null
null
UTF-8
Python
false
false
11,242
py
""" Wrap the internal caffe C++ module (_caffe.so) with a clean, Pythonic interface. """ from collections import OrderedDict try: from itertools import izip_longest except: from itertools import zip_longest as izip_longest import numpy as np from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \ ...
[ "734821191@qq.com" ]
734821191@qq.com
849c3dffad42f275ad0897a284d8e4c8f34ee510
f0e1f0d7acba08868a929889232a5e5179519302
/tests/util/test_async_utils.py
17fd86d02de77523238c0149ca0cc203dccaf20c
[ "Apache-2.0" ]
permissive
Awesome-Technologies/synapse
8c5169f73908a72d49ab1ece2281bacd5a81d5c8
56ee2a947886fd05e505e71284abadccd5991166
refs/heads/amp.chat
2021-06-16T22:03:48.032508
2020-06-10T10:49:08
2020-06-10T11:19:42
198,403,226
2
1
Apache-2.0
2020-02-10T10:03:32
2019-07-23T09:58:24
Python
UTF-8
Python
false
false
3,745
py
# -*- coding: utf-8 -*- # Copyright 2019 New Vector Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
[ "noreply@github.com" ]
noreply@github.com
bf93d5834744eb1dfb38edcfc3b7806731b324b8
bcecadd21228da228a54e9d11e7dcb3462fff9f5
/Share/an.py
83b8ac6a6aa79f82322da8f606ab159c543535b7
[]
no_license
NotReallySynthPlls/NotReallySynthPlls
b2c5cd558e2ff489ed501a41557737e1095091a9
b861d333e0e3e0933efececb9a428b254291083e
refs/heads/master
2021-07-24T12:06:36.391287
2021-02-10T01:21:34
2021-02-10T01:21:34
243,114,543
2
0
null
null
null
null
UTF-8
Python
false
false
541
py
import numpy as np from ruamel import yaml from dataclasses import dataclass @dataclass class Stats: mean: float std: float min: float max: float def period_stats(fname: str) -> (np.ndarray, np.ndarray, Stats): y = yaml.safe_load(open(fname, "r")) ts = y['timescale'] edges = np.array(y["e...
[ "dan@fritch.mn" ]
dan@fritch.mn
03604ba84c2c5d0bebc993dcfe4c9ac30d9582d2
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/LeetCode In Python/Section 13 INTERVIEW QUESTIONS Backtracking_Recursion/subsets/index.py
4e46e6557bce57042cabb2c1408c1c12629276e2
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
425
py
# c_ Solution # ___ solution nums ans cur index # __ i.. > le. n.. # r_ # a__.ap.. c.. : # ___ i __ ra.. i.. le. n.. # __ n.. ? no. __ c.. # c__.ap.. n.. ? # .s.. ? ? ? ? # c__.p.. # r_ # ___ subsets nums L.....
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
3bbe40df9556148fda9dda790a7dd7b10c6bea7f
fbc45074168eee8acd2ce77826799d61a4ef60a9
/Scrapy_WDZJ/tools/net.py
68573aef2920ed0341a937def08f27c47e608205
[]
no_license
chendongyu0125/p2p
e8329839c2eeb5bfcb252317af83ed0fc3767048
4f9d85c03cac6b38fe5f39956cb5ecd0311e070f
refs/heads/master
2020-04-11T16:28:24.833475
2018-12-23T23:47:16
2018-12-23T23:47:16
161,925,436
0
0
null
null
null
null
UTF-8
Python
false
false
2,943
py
# coding=utf-8 import urllib.request from scrapy.http import Request, FormRequest import time from Scrapy_WDZJ import settings import logging import requests def valid_proxyip(proxy): """ proxy['ip'] = '182.18.13.149' proxy['port'] = '53281' proxy['protocal'] = 'http' :param proxy: :return: T...
[ "noreply@github.com" ]
noreply@github.com
76baaefae0f4d04174b42a0ccce9760680dae7c4
69bb4f776a1f622c120934408eed2c62db506085
/iotkitclient/client.py
3e1684895df2f6d057820b1407e94a1286120b2a
[]
no_license
arkocal/oisp-sdk-python
fbad355d01def8b316f9ba2ef469b9c01718009f
3f2a77083c6375a49a55a6692febd994b49f201f
refs/heads/master
2021-04-03T07:08:53.919948
2018-03-06T11:37:51
2018-03-06T11:40:21
124,365,362
0
0
null
2018-03-08T09:03:41
2018-03-08T09:03:41
null
UTF-8
Python
false
false
15,974
py
# Copyright (c) 2015-2018, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditions and the follo...
[ "arkocal@gmail.com" ]
arkocal@gmail.com
92ba01d4aeb7fcf513cc96fff444f84e81b55da5
7854d2729379e423d14428e69d8fdfbfedf7b98b
/src/heuristic_search.py
8e4adf9619ca9ca2a2471e559b88a2c31f7c7e11
[]
no_license
patrick-vieira/INF01048_T1_8-Puzzle
06f3dddcbca0c5f71ec8a2bc7877f034a49ce5a8
29eb5ae83d84ad46c9023e92417aaccc150c0fef
refs/heads/main
2023-03-08T15:10:29.834390
2021-02-20T01:50:50
2021-02-20T01:50:50
337,906,989
2
0
null
null
null
null
UTF-8
Python
false
false
936
py
import heapq from typing import Callable import parameters from expand import expand_node from monitor import Monitor from node import Node def heuristic_search(root_node: Node, heuristic: Callable[[Node], int]) -> (Node, Monitor): X = set() F = [] heapq.heapify(F) heapq.heappush(F, root_node) ...
[ "pdsv88@gmail.com" ]
pdsv88@gmail.com
3734609f2260ddfab328e8845c29bb0bb3d8622e
04c8759bbedd318ce20f091c9ac09f35eedf7c0c
/class_3.py
8e4a350150fddd173976f5b344f9764dc62b5dc4
[]
no_license
chernenkiyyyy/hw_python
33f4325cd4ebb72c51bbc74a86287811c40165fd
a3b3440c062cb5807655b67de3b14c760dea6ab6
refs/heads/master
2020-03-25T12:20:50.059937
2018-09-03T22:18:23
2018-09-03T22:18:23
143,771,466
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
class LogIn: __slots__ = ["__dict__"] def __init__(self): self.unit_name = "user001" self.mac_address = "123.153.256.96" self.ip_address = "12.34.54.25" self.login = "user001@gmail.com" self.password = "qwerty001" @property def get_unit_name(self): retur...
[ "chernenkiyyyy@gmail.com" ]
chernenkiyyyy@gmail.com
30b534d409fdddb82db90e74490f1ffe75c06b86
337e04c14a975868229cd2cdda3bcacfdf016869
/src/exp/dataset.py
c66040f5457d7c8309df38bd0087f1f5c646c178
[]
no_license
esddse/IEN
966ea827991b898900c5dc4cea9accf971d7e52c
175d6be32e11135287c59c66c4d743b5c2782d52
refs/heads/master
2023-01-20T09:03:04.030694
2020-11-16T09:10:23
2020-11-16T09:10:23
300,647,427
4
0
null
null
null
null
UTF-8
Python
false
false
6,306
py
import os import sys import time sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))) import math import random import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.d...
[ "tjz427@sina.cn" ]
tjz427@sina.cn
bcf9d5165d2472f4481ea6adbbe98aeff68e9357
07cf86733b110a13224ef91e94ea5862a8f5d0d5
/organizing_containers_of_balls/organizing_containers_of_balls.py
2e9ae573293f4edce2c0ed2d9a2559bd066b30f0
[]
no_license
karsevar/Code_Challenge_Practice
2d96964ed2601b3beb324d08dd3692c3d566b223
88d4587041a76cfd539c0698771420974ffaf60b
refs/heads/master
2023-01-23T17:20:33.967020
2020-12-14T18:29:49
2020-12-14T18:29:49
261,813,079
1
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
def organizingContainers(container): print(container) # create an array that will carry the rows # create an array that will carry the cols # create a for loop that will iterate through the each row # make sure to sum the total of all the values in the current # row and append it t...
[ "masonkarsevar@gmail.com" ]
masonkarsevar@gmail.com
2709eac3fe5e7b170c5ab00fd322d5bac728aaf8
7f7210d73d2623ca374d181aba3bc9cad3b400ee
/posts/migrations/0001_initial.py
b4fbf8fc2b00aa2d401bddbc1343e7e9b78db270
[]
no_license
Vinstol/hw05_final
7d6ff8e451a4b3aa2fa8324f6fff9b8e59df4d96
f8db603fa5c31c67020960e3127a207b6ea44f69
refs/heads/master
2023-08-10T16:20:08.072624
2021-09-28T16:38:32
2021-09-28T16:38:32
346,751,756
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
# Generated by Django 2.2 on 2020-12-22 14:07 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
[ "vinstol@yandex.ru" ]
vinstol@yandex.ru
371f4cf760cf94f2350a63877f0cf1e1a112944f
56335b17fe5fdea951bc947a510309b41fba4c1e
/Lecture9/Photoshop.py
f8ca68ea7567c2c649da22a8ce3da080870e10d3
[]
no_license
FangFeng-077/easy-python
6bed4541686afe0abbe5d53fb836e11ac0c7fab8
a3237a9e98acabe2cfa11634f7444369e551f2c1
refs/heads/master
2020-06-16T15:24:24.433679
2019-07-13T00:25:40
2019-07-13T00:25:40
195,621,902
0
0
null
null
null
null
UTF-8
Python
false
false
8,062
py
from simpleimage import SimpleImage def red_channel(filename): """ Creates an image for the given filename. Changes the image as follows: For every pixel, set green and blue values to 0 yielding the red channel. Return the changed image. """ image = SimpleImage(filename) for pixel ...
[ "fangfeng077@gmail.com" ]
fangfeng077@gmail.com
5be7d08b4036d8cfe107fc93a3466badd3f558e7
eed258365d6ee69a051aab3403f203cb25118774
/meain.py
4fb24c3242f9074a397fcf8d02a6a424e9ef9f07
[]
no_license
dearodriguezve/MRI
be69fba7fa1e897cfcb7556cd3982d8ef06b65d6
cc61533838cbbff1dce3540827f39f2e902fbd44
refs/heads/master
2020-04-28T22:04:09.072580
2019-03-14T11:03:00
2019-03-14T11:03:00
175,604,608
0
0
null
null
null
null
UTF-8
Python
false
false
4,129
py
import os from sklearn.utils import shuffle import skimage import h5py as h5 import numpy as np import matplotlib.pyplot as plt import pydicom as dicom from skimage.color import rgb2hsv from sklearn import metrics, model_selection import tensorflow as tf from tensorflow.contrib import learn import scipy f...
[ "noreply@github.com" ]
noreply@github.com
eab0ae860ce7d4455552dd826541ec4705c7b60c
b9a69d7de64b96623d519394d59286f774e92c1f
/mnist-classification/src/model/net.py
834f07afb7480521e83b753958f8fc64e4e204b6
[ "MIT" ]
permissive
Ronalmoo/DataScience
abb20320c7fe5b68192e1ceeb956eb199bb1aecb
175f610acaa50898a3899bfaddfbb5530ef640a9
refs/heads/main
2023-05-02T23:44:40.824085
2021-05-26T08:01:31
2021-05-26T08:01:31
370,643,477
1
0
null
null
null
null
UTF-8
Python
false
false
6,829
py
import copy from typing import Dict, List, Optional import torch import torch.nn as nn from omegaconf import DictConfig, OmegaConf from torchsummary import summary as torch_summary class LinearBlock(nn.Module): def __init__( self, in_features: int, out_features: int, bias: bool = ...
[ "ydaniel0826@gmail.com" ]
ydaniel0826@gmail.com
cea6cd25d2468ada9807bec6d45b481c79331e03
98895f2c4a11195495e4e94d7b1821d3ec229f17
/blockchain-env/Lib/site-packages/pubnub/models/consumer/pubsub.py
8c8e3eac97b429df2b278505652433e00885d04c
[ "MIT" ]
permissive
zarif007/Block-Chain-Web-App
130a0e44fb84c622a6fbc496ead1a45b0caf6065
40bd4d8d8ce1f6de2840792290bf022d7dfacbb4
refs/heads/main
2023-02-20T01:32:41.974440
2021-01-23T20:04:01
2021-01-23T20:04:01
317,946,069
1
0
null
null
null
null
UTF-8
Python
false
false
3,655
py
import six from pubnub.models.consumer.message_actions import PNMessageAction class PNMessageResult(object): def __init__(self, message, subscription, channel, timetoken, user_metadata=None, publisher=None): assert message is not None if subscription is not None: assert isinstance(su...
[ "zarifhuq786@gmail.com" ]
zarifhuq786@gmail.com
c195715efd133bb7dc0c497d1178122f5a11b55f
5ae45b99eb9c590f64f3a7d3f1b26915bef87831
/solutions/040/040.py
14a25ca0a1cb4b5aab7c9e665966f2f5922edfd8
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
jwmcgettigan/project-euler-solutions
5c4cb7fb32e9ba4f3d9b0edc89853275c302ee03
f06b6551e713619d5fd1359ee2f96fcff61c425b
refs/heads/master
2023-07-13T21:24:03.961946
2021-08-19T21:03:12
2021-08-19T21:03:12
289,103,259
1
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
""" Project Euler - Problem Solution 040 Problem Title - Champernowne's constant Copyright (c) Justin McGettigan. All rights reserved. https://github.com/jwmcgettigan/project-euler-solutions """ #TODO: Come back and make this more readable. def fractional_part(nth): ''' Finds the nth digit of Champernowne's constan...
[ "jwmcgettigan@gmail.com" ]
jwmcgettigan@gmail.com
23583dd8d89367e9278342fad2e570d58355e578
e236c4e0b74261230b4a5419d077afb9fca14a93
/italy/aggregate_italy_data.py
03bf9481a31c6a2f5858a3612ab33a99cf3612bc
[]
no_license
necsi/database
6617ad57d5efa9bb979b89befe578bf89900aa66
07d94742b26daf1628cfe25429b0b32bb79bfbf1
refs/heads/master
2021-02-13T17:19:28.725607
2020-04-29T01:28:42
2020-04-29T01:28:42
244,716,306
6
4
null
2020-03-10T20:05:01
2020-03-03T18:52:41
Python
UTF-8
Python
false
false
3,576
py
import requests import codecs import csv from contextlib import closing import numpy as np import pandas as pd import json from datetime import datetime, timedelta def download_csv_to_dataframe(url): """ Download a CSV file and return a Pandas DataFrame. :param url: str :return: pandas.DataFrame ...
[ "me@bobbywlindsey.com" ]
me@bobbywlindsey.com
5b10666ae15a82142faedc726b836d3690ee74ac
c8e351c024f2df5f20c6166322290cd97554f529
/MemSys.py
dcf1fdc1d018b4cdadd7b83fa268a9bb194be666
[]
no_license
acadev/LipidBilayerAnalysis
a8c19b3058afc6677219a274aa54e776683a4bbe
f7ba9c73e45130cf044ec81829642960617e94f0
refs/heads/master
2020-12-26T00:46:48.947215
2016-08-23T22:43:31
2016-08-23T22:43:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
84,710
py
""" This MemSys module defines various classes and functions used to process and analyze a lipid bilayer trajectory. This module assumes the structure and trajectory are initiallaly stored in MDAnalysis objects and therefore processes MDAnalysis objects. The lipids constituting the bilayer are read in from the MDAnaly...
[ "blake.wilson@utdallas.edu" ]
blake.wilson@utdallas.edu
5b1bfed3e7c9fb66a7429d873ee4764334aca828
05a4c12938935c1ea01bc1f43ab829f1e35c7168
/tests/qflags/test_QtCore_UserInputResolutionOptions_UserInputResolutionOption.py
41d9a397d82484468f77cce905c44209183de94c
[ "GPL-3.0-only" ]
permissive
bluebird75/PyQt5-stubs
e4eae29c49f15012649290fe7098c53e216254ed
e9adedcb817fa88ba854763d7b403d817ea83a00
refs/heads/master
2023-08-09T02:05:10.082636
2023-07-23T09:14:59
2023-07-23T09:14:59
208,842,053
0
0
MIT
2019-09-16T16:04:47
2019-09-16T16:04:46
null
UTF-8
Python
false
false
10,179
py
# mypy: no-warn-unreachable import sys from typing import Union, TypeVar, Type if sys.version_info[:2] >= (3,8): from typing import Literal else: from typing_extensions import Literal import pytest ### Specific part # file generated from qflags_test_template.py for QFlags class "QUrl.UserInputResolutionOptions" and...
[ "phil.fremy@free.fr" ]
phil.fremy@free.fr
814b8b9b61015a2c4b7bc2887f99e6ddf0cb5d62
4bd555bc662b8182a2e7644976bfdb00ed5e1ebe
/PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/xhtml2pdf/default.py
2900140509bcb3b85a652499731d715219f06229
[]
no_license
fhelmli/homeNOWG2
a103df1ef97194dec9501dbda87ec1f7c111fb4a
e794fd87b296544542fd9dc7ac94c981c6312419
refs/heads/master
2020-04-04T13:40:20.417769
2019-01-30T21:41:04
2019-01-30T21:41:04
155,970,686
0
0
null
null
null
null
UTF-8
Python
false
false
12,929
py
#import pythonista # -*- coding: utf-8 -*- from reportlab.lib.pagesizes import (A0, A1, A2, A3, A4, A5, A6, B0, B1, B2, B3, B4, B5, B6, LETTER, LEGAL, ELEVENSEVENTEEN) # Copyright 2010 Dirk Holtwick, holtwick.it # # Licensed under the Apache License, Version 2.0 (the "License"); # ...
[ "tberk@gmx.at" ]
tberk@gmx.at
3a017b900197b00c5f1cfd40e6aea2a65108e07c
d094ba0c8a9b1217fbf014aa79a283a49aabe88c
/env/lib/python3.6/site-packages/pandas/tests/tseries/test_frequencies.py
eb4e63654b47b49d76ebf30d279a75b472ad3292
[ "Apache-2.0" ]
permissive
Raniac/NEURO-LEARN
d9274e0baadd97bb02da54bdfcf6ca091fc1c703
3c3acc55de8ba741e673063378e6cbaf10b64c7a
refs/heads/master
2022-12-25T23:46:54.922237
2020-09-06T03:15:14
2020-09-06T03:15:14
182,013,100
9
2
Apache-2.0
2022-12-09T21:01:00
2019-04-18T03:57:00
CSS
UTF-8
Python
false
false
29,684
py
from datetime import datetime, timedelta import numpy as np import pytest from pandas._libs.tslibs import frequencies as libfrequencies, resolution from pandas._libs.tslibs.ccalendar import MONTHS from pandas._libs.tslibs.frequencies import ( INVALID_FREQ_ERR_MSG, FreqGroup, _period_code_map, get_freq, get_freq_c...
[ "leibingye@outlook.com" ]
leibingye@outlook.com
72b7202949f5cca76c478a94e6d464b4c7029db6
baaaaea93a277f95f8f1652d8bbf3da07d2b0f54
/model-optimizer/extensions/front/tf/TFSliceToSlice.py
62e598784522491f0171e510b654349398efd8fa
[ "Apache-2.0" ]
permissive
Drizshko/openvino
7c0fa3449dd2f3b10b6972842a1fdf1b696a9cd5
a6989bb0471d734ed0ea207fbae7f357fc60aa2d
refs/heads/master
2023-03-09T09:14:58.390464
2021-02-22T16:03:23
2021-02-22T16:03:23
267,969,920
0
0
Apache-2.0
2020-05-29T22:50:51
2020-05-29T22:50:50
null
UTF-8
Python
false
false
3,711
py
""" Copyright (C) 2018-2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
[ "noreply@github.com" ]
noreply@github.com
f398afa73012ee5d8503db1609f29de578e06e69
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/Surf.py
867f58a5c5ab599827f58db2fea9624b3dbda404
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
113,350
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
e487e448c7d3ccd0a1cb468036b823ff374beadc
6e2622d1d036ec6306b45c6f221fa7366e27177e
/Day010/Day010Project/calculatorMachine.py
32e09c233573343cd7b6bfd7e0ee9f9a7a33ae13
[]
no_license
marcelo-gs/100DaysOfCode_Python
b597ef06e319e24a41d37f3b1ff3ad41f71d3515
cd3bf34f6168234782935e5313e46801298e4bd0
refs/heads/master
2023-02-24T03:43:57.599178
2021-02-01T01:06:55
2021-02-01T01:06:55
321,506,371
0
0
null
null
null
null
UTF-8
Python
false
false
2,548
py
# import only system from os from os import system, name # define our clear function def clear(): # for windows if name == 'nt': _ = system('cls') # for mac and linux(here, os.name is 'posix') else: _ = system('clear') logo = """ _____________________ | _______________...
[ "marcelo.gs@terra.com.br" ]
marcelo.gs@terra.com.br
2e304e2f166036b259295aee5a9b13ebb9ac238d
f82236cb5a388846ea8c8980ac21d0e11f20171d
/Examination/16_小Q的歌单.py
596e57a5c660c1cb14ea9489168bdedcaefc8f42
[]
no_license
cp4011/Algorithms
f2889c219d68b597a38d86899d8ff682e386e649
e7214e59640cd24d908a6b95d8876c9db9822d8b
refs/heads/master
2020-04-27T20:21:43.937234
2019-08-18T15:12:09
2019-08-18T15:12:09
174,654,563
3
0
null
null
null
null
UTF-8
Python
false
false
2,805
py
"""小Q有X首长度为A的不同的歌和Y首长度为B的不同的歌,现在小Q想用这些歌组成一个总长度正好为K的歌单,每首歌最多只能在歌单中 出现一次,在不考虑歌单内歌曲的先后顺序的情况下,请问有多少种组成歌单的方法。 输入描述: 每个输入包含一个测试用例。 每个测试用例的第一行包含一个整数,表示歌单的总长度K(1<=K<=1000)。 接下来的一行包含四个正整数,分别表示歌的第一种长度A(A<=10)和数量X(X<=100)以及歌的第二种长度B(B<=10)和数量Y(Y<=100)。保证A不等于B。 输出描述: 输出一个整数,表示组成歌单的方法取模。因为答案可能会很大,输出对1000000007取模的结果。 输入例子1: 5 2 3 ...
[ "957628963@qq.com" ]
957628963@qq.com
dcb9911944273018ed8122dfcf2f2c457e33e4e0
9d4dfc8ccb2d4f07671f446b5148e292f025658c
/illumidesk/decorators.py
5720233732633b64998117b7eb988f7b1dce16bf
[ "MIT" ]
permissive
agenteAND/django
fb7274367c9a42cfc32d795ae08c040c98f136ca
b1c07ea48f1c09f191acc9e9b69b3f95ec37c15b
refs/heads/master
2022-09-21T04:27:25.097507
2020-05-14T21:22:59
2020-05-14T21:22:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
from stripe.error import CardError from django.http import JsonResponse class catch_stripe_errors: """ Meant to be used with django views only. """ def __init__(self, f): self.f = f def __call__(self, *args, **kwargs): try: return self.f(*args, **kwargs) excep...
[ "werner.greg@gmail.com" ]
werner.greg@gmail.com
443b81e5f94d75064912a20120333cfd62c26c9c
677c870cba802a658c03cd3f44eccf8bab919c8d
/html_parser.py
2cbc987210a518ef06d10a60b0544fe85e444be5
[]
no_license
proseno/khnu_page_parser
7ad81706b778bd6e34c9899324a5f35fbe2153b1
0baa304d47e18a9fe383f3df64437428a084e543
refs/heads/master
2023-05-30T06:09:24.039270
2021-05-25T20:40:20
2021-05-25T20:40:20
370,155,534
0
0
null
2021-06-02T07:41:44
2021-05-23T20:56:02
Python
UTF-8
Python
false
false
2,192
py
import requests from bs4 import BeautifulSoup import config media_url = config.media_url def get_html(url: str): response = requests.get(url) return BeautifulSoup(response.text, 'html.parser') def validate_img(imgs: list): images = [] for img in imgs: if img.startswith('data:image'): ...
[ "savorskij201@gmail.com" ]
savorskij201@gmail.com
03d9f6ea8d74c9e333c0aaade43fc75499d344f1
61afd923551491846ae827821f55c4fb5fd04c98
/packages/levylab_lib_cryostation_instrument/levylab_lib_cryostation_instrument-1.1.6.14.spec
8f7f20861cbb361567047f419ac7f8f4aa627395
[ "BSD-3-Clause" ]
permissive
laserengineer/levylabpitt.github.io
b74b711aff2a5eb1b46f880a1071ac0873f1a9ac
cdf9aeb6faaf136211291ce2232c239229d85bbe
refs/heads/master
2023-04-29T02:36:48.736236
2021-05-14T19:20:40
2021-05-14T19:20:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,036
spec
[Package] Name="levylab_lib_cryostation_instrument" Version="1.1.6.14" Release="" ID=d119881f9f9cba80ac72480ce35bf7a0 File Format="vip" Format Version="2017" Display Name="Cryostation" [Description] Description="Program for logging Montana Instruments Cryostation status to the DSC. Provides a UI and API for getting i...
[ "p.irvin@levylab.org" ]
p.irvin@levylab.org
0490440560a38678c76c944cc2ce8393e211b6ba
6d79783fa490d209e19639276051fc9e7e470fba
/integration-test/1491-south-korean-shields.py
8aac2e322fbca38a8279b6c1866c061e2849b73f
[]
permissive
va2ron1/vector-datasource
d9007c2558d6866f75679d1a711a62044fdc81ab
0145844e27d1e3cb3256b449040511b6791febd7
refs/heads/master
2021-05-10T15:30:59.456868
2019-06-18T00:36:58
2019-06-18T00:36:58
118,549,672
0
0
MIT
2019-06-18T00:36:59
2018-01-23T03:03:00
Python
UTF-8
Python
false
false
13,316
py
# -*- encoding: utf-8 -*- from . import FixtureTest class SouthKoreanShields(FixtureTest): def test_asianhighway(self): import dsl z, x, y = (16, 55875, 25370) self.generate_fixtures( dsl.is_in('KR', z, x, y), # https://www.openstreetmap.org/way/547188348 ...
[ "zerebubuth@gmail.com" ]
zerebubuth@gmail.com
674e623c45465fc203f725564aee708d13f84126
0af5dd89984fbfd4b6b2d699b1f5cede0cf51a0a
/10/10.py
d227addf1fead6284496707d6c8d0afda8b0528f
[]
no_license
seanyliu/advent2020
2c9a6f63116aa8eb672e45ef3d0b2f1bb7fbb1e3
fd922f9c89dd04ab199c4c493c1debd1253c74cd
refs/heads/main
2023-02-03T18:47:35.635694
2020-12-25T06:39:42
2020-12-25T06:39:42
319,216,170
0
0
null
null
null
null
UTF-8
Python
false
false
2,185
py
# regular imports ######################## import math import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import helpers # functions ############################## # actual code ############################ input_lines = helpers.read_lines_from_file('input.txt') input_lines ...
[ "sean.y.liu@gmail.com" ]
sean.y.liu@gmail.com
a2d93775dabbb32932e0e985b631aed8e60ef85e
0db8321288a365f655fa64ffaa619edc60efa561
/venv/bin/chardetect
c14e6a556617048cb058ebeafb583bf57490d33f
[]
no_license
anarya007x3/MyFirstBlogOnDjango
27ed851a674d6cd3c025ee370c39005e11fa8410
5855811983dad7637b1c738cd8b988a2563a9d45
refs/heads/master
2023-06-08T20:04:19.908467
2018-06-12T11:27:36
2018-06-12T11:27:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
269
#!/home/user/Documents/Ananstasiia/blogProject/venv/bin/python # -*- coding: utf-8 -*- import re import sys from chardet.cli.chardetect import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "nastiaryabov@gmail.com" ]
nastiaryabov@gmail.com
6a69052e64507ccba030432fd997058677ffd1e0
d858096f34d23cf5dd2596cd2e36a8a43a52c6ed
/launchers/Ecsv2compare.py
a386672072b4faa9fdeb381acd835927fa12d30e
[ "CC-BY-4.0" ]
permissive
marieBvr/virAnnot
43aff595befc9f3da817253020310f2b6099039d
2dd85e0234bad3fc0044c76e978be5db001620dd
refs/heads/master
2023-04-12T21:46:41.576965
2020-07-02T09:37:29
2020-07-02T09:37:29
124,216,217
3
1
null
2018-03-07T10:02:26
2018-03-07T10:02:25
null
UTF-8
Python
false
false
1,663
py
# to allow code to work with Python 2 and 3 from __future__ import print_function # print is a function in python3 from __future__ import unicode_literals # avoid adding "u" to each string from __future__ import division # avoid writing float(x) when dividing by x import os.path import logging as log import sys cla...
[ "marie.lefebvre@univ-nantes.fr" ]
marie.lefebvre@univ-nantes.fr
0bec2e6db74489df2b638de7366dfb69cba71b50
b037e36771bd47cb84a9ce9745ffeac801256b56
/hot_info/theverge_info/theverge_info/items.py
db59aa862f23f73e847aa9dac6994e1c3683a81c
[]
no_license
SuperMMORPG/scrapy_project
7004714ede620bddf30dd15d8779322959087280
ccac1089de94064077444026b3a1f484910d7543
refs/heads/main
2023-05-15T02:59:24.195936
2021-06-09T15:43:03
2021-06-09T15:43:03
344,821,692
3
0
null
null
null
null
UTF-8
Python
false
false
268
py
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class ThevergeInfoItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
[ "bad_jin@outlook.com" ]
bad_jin@outlook.com
f0b46609d6049e4e7911d31a9c686bc43faa06ae
a0098a078c5abe8b955e0a927e398bde2d054d85
/혜선/18-2.py
0113ceef42de92fac696f0b3f8332b8479a01b57
[]
no_license
baehanjae/21_Summmer_PPS
39af8339cb74cb1bf1abed8e97c9eba8532a9643
2d0f33424be53d25d994d5500fa11b94a06fd522
refs/heads/master
2023-06-27T04:31:18.423748
2021-08-01T12:44:39
2021-08-01T12:44:39
383,336,120
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
n=int(input()) dp = [100001]*(n+1) #지불해야 하는 금액의 MAX dp[0]=0 #0원은 동전 0개로 가능 coin=[7,5,2,1] for m in range(0,n+1) : #1원부터 지불해야 하는 n원까지 for c in coin : #동전 액면가보다 지불해야 하는 금액이 크고 #동전 c를 주는 것이(dp[m-c]+1) 기존 경우(dp[m])보다 개수를 줄일 수 있는 경우 if c<=m and dp[m-c]+1<dp[m] : dp[m]=dp[m...
[ "noreply@github.com" ]
noreply@github.com
ece28edc023bb04980d274572bdeb3d73e5f31e6
95180ab57705ed8940804ce67d1732f30984e3cd
/Mission0Testing.py
f3ae6b6ec1f711d9a518a407d6cc08ebd4a53d20
[]
no_license
caiprozect/Bioinformatics_Python
a3e0df528d1a81ebffb4658b508b0d4a4885c555
dbed1310b756715c68210d4a9c25d772edcb5d58
refs/heads/master
2021-03-30T22:05:22.790990
2018-05-26T04:56:20
2018-05-26T04:56:20
124,543,521
0
0
null
null
null
null
UTF-8
Python
false
false
2,694
py
import multiprocessing as mp from collections import defaultdict #Auto initialization from functools import reduce from time import time import os, re, psutil def make_seq(infile, outfile): #Sanity check and Make one line seq file inFileH = open(infile, 'r') inFileH.readline() #Skip the first line inFileLines = i...
[ "caiprozect@gmail.com" ]
caiprozect@gmail.com
ce97ab0a834e954734be12d143f790bd1e4d881f
439f54a059323010eae9a3aa229f8f973ba6214b
/locallibrary/catalog/views.py
9a7afa5c1eec807d2c9b6aab66553ccfe1d59a29
[]
no_license
arturolei/locallibrary
47bd342408a2384db25d1ab5226c0cb557824180
6aff863e78dd585f449d1e258f3793c9462c78f5
refs/heads/master
2020-03-14T14:45:51.701221
2018-05-06T02:09:23
2018-05-06T02:09:23
131,660,837
0
0
null
null
null
null
UTF-8
Python
false
false
828
py
from django.shortcuts import render # Create your views here. from .models import Book, Author, BookInstance, Genre def index(request): """ View function for home page of site. """ # Generate counts of some of the main objects num_books=Book.objects.all().count() num_instances=BookInstance.obj...
[ "artie.lei@gmail.com" ]
artie.lei@gmail.com
c7b39df0402379badebebcb7b3d09c8c1bae81c8
c4bd2939dc0273a5330c4f8151c9d05df2551d87
/project/apps/post/models.py
102e3c3674b77a817deb0eb827e78b66ff86373a
[]
no_license
MishaZaharyak/BlogPost
42ca1e214cc84b76d9bf21f2247adab0407857c4
ac9a8108bb9742909884d29a68285d68e86856a0
refs/heads/master
2023-01-10T03:22:45.041333
2020-11-09T03:59:24
2020-11-09T03:59:24
310,871,833
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
from django.db import models from django.utils import timezone from utils.abstract import DateTimeAbstractModel from utils.utils import get_file_upload_path from apps.user.models import UserModel, VisitorModel class PostModel(DateTimeAbstractModel): title = models.CharField(max_length=255) content = models.Te...
[ "mishazaharyak@gmail.com" ]
mishazaharyak@gmail.com
53ac7bd75874f87b90cf048f2ecbc53cb8d875e8
b093b693658e3095b57cab55fd2ee959d1bc63cd
/api/tests.py
9660627dbb56f01c8b5f2b90762130da729d7e7d
[]
no_license
SherSingh07/djagileproj
566d7f2e0239e772e19619203303ed3abe259075
577d3213cead595a9d9b5ce82a27ad652dc15d96
refs/heads/master
2021-01-10T15:40:07.039727
2016-02-18T07:03:15
2016-02-18T07:03:15
52,005,654
10
1
null
null
null
null
UTF-8
Python
false
false
1,358
py
import requests import json import datetime from django.test import TestCase from django.test import TestCase from django.contrib.auth.models import User from work.models import * class RestApiTestCase(TestCase): """ test cases for RESTful APIs """ def test_get_all_projects(self): """ ...
[ "wbsher91@gmail.com" ]
wbsher91@gmail.com
5908b2b8d04eeac477a1af228589b6361c442a2e
be70f08f47158b03cbca1ff6504fc54604089155
/_modules/mwdocker.py
4cdbc8f1579ec99154a8ae9fd518251d1da3b447
[ "MIT" ]
permissive
hunterfu/salt-microservices
09d54a8cefa42476aa23b8b92923fe14debdae3f
d66c5fc7f721626407919b6480157d5ff608cb9e
refs/heads/master
2021-01-22T15:00:51.056243
2016-05-13T08:57:17
2016-05-13T08:57:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,899
py
# Copyright (c) 2015 Martin Helmich <m.helmich@mittwald.de> # Mittwald CM Service GmbH & Co. KG # # Docker-based microservice deployment with service discovery # This code is MIT-licensed. See the LICENSE.txt for more information try: import docker import docker.utils import docker.erro...
[ "m.helmich@mittwald.de" ]
m.helmich@mittwald.de
4210deb85f4027d105d5edf7c9a411994e71c743
0bbd083f3837f5af8b9505c9c57ad65654753fb2
/myawesomeapp/myawesomeapp/urls.py
6762b06e3ecebd4ac361a10a2e594d2af8c0ecaf
[]
no_license
Radbull123/django-apps
4a94b9a5c0bae21fbdc4d79576311d04959f87d1
1bfaada612e3195da2ebbff1da70e5cf48923b69
refs/heads/master
2022-12-14T20:05:04.369739
2019-07-18T13:49:09
2019-07-18T13:49:09
197,149,192
0
0
null
2022-12-08T01:22:44
2019-07-16T08:05:37
Python
UTF-8
Python
false
false
1,216
py
"""myawesomeapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "dmytertkotaras91@gmail.com" ]
dmytertkotaras91@gmail.com
107c6ce6eea6790adc1abe99c1ba467061e490c2
6abf65c295faaef59ef8fcc4de901b0ce92e9050
/DoubleLinkedList.py
d413ec7216c708c5d3dc5a20ae62b4a189fe4968
[]
no_license
codeAligned/DataStructures-1
89dd12eb7cdc085771d494810829c628b80f4fc7
116200f46e9bae79525bd82c3d0774f6ce2ad39e
refs/heads/master
2020-05-19T04:54:02.723220
2017-07-10T00:51:46
2017-07-10T00:51:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
class Node(object): def __init__(self, data, next=None, prev=None): self.data = data self.next = next self.prev = prev def get_data(self): return self.data def get_next(self): return self.next def get_prev(self): return self.prev def set_next(self, n): self.next = n def set_prev(self, n): sel...
[ "aftrant@gmail.com" ]
aftrant@gmail.com
b8b0ae01aebed89c4fcd1c8e915ea2361bdfabae
d57b51ec207002e333b8655a8f5832ed143aa28c
/.history/1/PyGame/game_20200606103144.py
6ff9f41e5074746419088a6a5bb1697c348cd040
[]
no_license
yevheniir/python_course_2020
b42766c4278a08b8b79fec77e036a1b987accf51
a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b
refs/heads/master
2022-11-15T07:13:24.193173
2020-07-11T15:43:26
2020-07-11T15:43:26
278,890,802
0
1
null
null
null
null
UTF-8
Python
false
false
7,341
py
# 1 - Import library import pygame from pygame.locals import * import math import random import os import json # 2 - Initialize the game pygame.init() width, height = 640, 480 screen=pygame.display.set_mode((width, height)) keys = [False, False, False, False] playerpos=[100,100] acc=[0,0] arrows=[] badtimer=100 badtim...
[ "yevheniira@intelink-ua.com" ]
yevheniira@intelink-ua.com
ba120d8ad2297c04567a816a41b868e572456e7c
8837e0973de895880fbd536e2e7b824e06a0c53b
/05. Static and Class Methods/02. Exercise/project_04.Gym/main.py
7b624794d595f6320b77f8ed556fc2021ae03b38
[]
no_license
Tuchev/Python-OOP---June---2021
3cc5e9206f910262d567f4f151bb6cd1b17779fe
27a0620686d547eafb466f42d951a2bdc90e7fdc
refs/heads/main
2023-07-07T05:31:27.384073
2021-07-24T12:22:45
2021-07-24T12:22:45
387,717,053
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
from project.customer import Customer from project.equipment import Equipment from project.exercise_plan import ExercisePlan from project.gym import Gym from project.subscription import Subscription from project.trainer import Trainer customer = Customer("John", "Maple Street", "john.smith@gmail.com") equipmen...
[ "noreply@github.com" ]
noreply@github.com
ac929aa5362835a026bf7b815d74506b862fd612
f6116e635cc2fcc9a930ae3ed1c42e9b61088a3a
/banzai/tests/test_mosaic_maker.py
5d9198470b0ff3ed0aa7aa3100bf1b15d25dd503
[]
no_license
drhaz/banzai
40d694ec49e747a255669769ae1da98f1039e2cf
5847c60c1b3f347a82840d5d527bd26f80edb4d7
refs/heads/master
2021-01-25T04:36:20.627371
2018-06-04T23:07:46
2018-06-04T23:07:46
93,456,065
0
0
null
2017-10-10T16:08:30
2017-06-05T23:30:35
Python
UTF-8
Python
false
false
4,158
py
from __future__ import absolute_import, division, print_function, unicode_literals from banzai.mosaic import get_mosaic_size, MosaicCreator from banzai.tests.utils import FakeImage import numpy as np class FakeMosaicImage(FakeImage): def __init__(self, *args, **kwargs): super(FakeMosaicImage, self).__ini...
[ "cmccully@lcogt.net" ]
cmccully@lcogt.net
ad1902e382ad9e14f55a2d4603dc7c2422cd8650
547e3cb48d93b00ce8542d01eab0d2568ad63076
/run3.py
7dfbb9698e824110e2205f5a39b69e5c19752e72
[]
no_license
QiushiPan/EMORSC
efeceab1a2e97bf5b29056755d8a4561acdaccf0
4da0e7f1f35aa26614b9ed494eb5f8b9e43ae05e
refs/heads/master
2020-05-07T01:01:21.819643
2019-04-09T01:33:19
2019-04-09T01:33:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,052
py
import tensorflow as tf import numpy as np import cv2 from skimage import io, transform import os from PIL import Image import math # 定义读取图片信息的函数 def inputimage(input_img_path, file): img = io.imread(input_img_path + file) # 用skimage读取目标图片 output_height = img.shape[0] # 得到目标图片的长和宽 output_width = img.shap...
[ "panqiushi_ustb@163.com" ]
panqiushi_ustb@163.com
dbefed477dd464f8460b52600acce025a63d202d
d601564a45d22b84679ae2b859911bfbf5730705
/mac_changer.py
ac8b0332db5f9f7a05345e706d3bb30b55c6c654
[ "MIT" ]
permissive
vedanshdwivedi/Ethical-Hacking-Tools-coded-in-Python
dacaf76774de6cb5dc88ae9303fd05ba4264f028
376e61a296bb31476ee7429d0e17673cfaa066c2
refs/heads/master
2021-06-28T17:44:27.591890
2019-01-12T16:53:58
2019-01-12T16:53:58
164,018,462
0
1
MIT
2020-10-01T09:19:11
2019-01-03T20:13:50
Python
UTF-8
Python
false
false
1,809
py
#!/usr/bin/env python import subprocess import optparse import re def get_arguments(): parser = optparse.OptionParser() parser.add_option("-i", "--interface", dest="interface", help="Interface whose MAC Address is to be changed") parser.add_option("-m", "--mac", dest="new_mac", help="New MAC Address") ...
[ "noreply@github.com" ]
noreply@github.com
52864d73044b964a3cfb97677d58828017653792
c4ffccd66adf728bcb91a647362003a7ab9ea639
/二叉树.py
02eac7ffbdb410ade42f478fea2c06afd69c7aba
[]
no_license
lazyManCoder/dataStructure
7c5d69eee6ed7079191fa683e199003bd15f4958
0bd8f2c35cf90dff748f846c158860ee4c688ef8
refs/heads/master
2022-11-23T09:38:20.275630
2020-07-31T07:38:15
2020-07-31T07:38:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,178
py
#树的结构 class Node(object): def __init__(self,item): self.item = item self.lchild = None self.rchild = None class Tree(object): '''二叉树''' def __init__(self): self.root = None def add(self, item): node = Node(item) if self.root is None: self.ro...
[ "1490365616@qq.com" ]
1490365616@qq.com
06e5a81adf446a4e89c0684d354eef60a3c02f95
6af06b43cd43ce8475b9e2e85ec9826de8ed33bd
/rom_project/rom/migrations/0012_auto_20180715_0708.py
5dece51e99db2b88b6c5493941b31e927e24346a
[]
no_license
cmn53/capstone-django
b55cdb76c89c6331336e941e620925e30c884a51
4532f08da5154090e529d023a2bcfebd3312682d
refs/heads/master
2022-12-09T20:38:11.554448
2018-07-20T17:51:59
2018-07-20T17:51:59
140,997,841
0
0
null
2022-12-08T02:17:29
2018-07-15T04:23:03
JavaScript
UTF-8
Python
false
false
1,621
py
# Generated by Django 2.0.7 on 2018-07-15 07:08 import json from django.db import migrations, transaction from django.contrib.gis.db import models def load_pattern_data(apps, schema_editor): Route = apps.get_model('rom', 'Route') Pattern = apps.get_model('rom', 'Pattern') with open('rom/fixtures/pattern...
[ "caroline.m.nardi@gmail.com" ]
caroline.m.nardi@gmail.com
622430829c5897eaebf7d321f6d94e5e36286086
6af15df5926abf6f61b2d7352c0ec1ec52ffb026
/shamelaScrapper/shamelaScrapper/items.py
5ef37ad0e2f0a916de59ff1c35756bb2d6f714d3
[]
no_license
yjad/Shamla_UDB
c8edb230755de29aecddf8d4f9a61c320bdbea84
30882ce5e821f1fe457afb1fd1a44f6c6e21ca60
refs/heads/master
2020-09-22T10:57:07.600956
2019-12-05T08:38:54
2019-12-05T08:38:54
225,165,209
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class ShamelaOnlineBookInfo(scrapy.Item): id = scrapy.Field() view_count = scrapy.Field() date_added = scrapy.Field() tags = scrapy.Fie...
[ "58176487+yjad@users.noreply.github.com" ]
58176487+yjad@users.noreply.github.com
34803b60e99af9025f0ab37ad4ccd0ee275e2027
7fbfe53bd8f546e05c547938efb20eb7813f9314
/accounts/forms.py
a5ec1ac2c99680c0e0b627071a89cc30b0eca129
[]
no_license
alisolehria/leidos
a48cfca0e016c3d7177a3ac4903489ad8bb53ff2
ffed4d3d3dd5c17c1054569e9ae5ea2fcdc55623
refs/heads/master
2021-06-13T13:44:27.376588
2017-03-28T20:40:09
2017-03-28T20:40:09
79,891,640
0
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
from django import forms from django.contrib.auth import ( get_user_model, ) User = get_user_model() class LoginForm(forms.Form): username = forms.CharField(label="",widget=forms.TextInput(attrs={'placeholder': 'Username'})) password = forms.CharField(widget=forms.PasswordInput(attrs={'placeholder': 'Pass...
[ "alimuzaffar@live.com" ]
alimuzaffar@live.com
fa4da36793cd7f4cd02bca39eee5f67d551c4b4b
75e3380bccd3fbec875c1747c108879c66aab3b9
/JenkinsManager/conf/temppipeline.py
314dc19d34dd4e0801a5c224aaa698997941aed9
[]
no_license
rainbowei/op-JenkinsManager-api
a9d63075b3c66b33aa013ec6ec31d59a1fd843a2
efddebdf441d9cc63604caa1abbc266060638c74
refs/heads/master
2023-05-11T06:11:20.889029
2021-06-02T14:30:02
2021-06-02T14:30:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
jenkinFileBody = """ #!groovy import groovy.transform.Field import groovy.json.JsonOutput import groovy.json.JsonSlurperClassic @Field CHANGE_HOST = 'http://192.168.54.12' @Field CONSOLE_SCRIPT = "/chj/data/jenkins-data" @Field SERVICE_TYPE = "ChangE" try { node { parameters { string(defaultVal...
[ "13164278484@163.com" ]
13164278484@163.com
5fb3fbbdc4e03d9e18c3285d8699a5314bf05f5d
edff3ac1a50be86862ce70ffc0f828c098de421e
/00_Basic/17_Web_Services/weather.py
e6d08de8fd7ae58472c9056dc6b403c5807736c0
[]
no_license
harris44/PythonMaterial
05a38b216955d84fc92287504b5981c15164599c
ba3991915bcd89947aba9710d6f87fc5b79c8e8f
refs/heads/master
2021-07-18T11:22:27.843044
2017-10-27T04:18:28
2017-10-27T04:18:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
import urllib2 import json from pprint import pprint f = urllib2.urlopen('http://api.wunderground.com/api/bef95257316a31ed/conditions/q/CA/San_Francisco.json') json_string = f.read() parsed_json = json.loads(json_string) #pprint(parsed_json) location = parsed_json['current_observation']['display_location']['city'] te...
[ "UdayPrakash.Pethakamsetty@contractor.ca.com" ]
UdayPrakash.Pethakamsetty@contractor.ca.com
b93269c09058f0c38dc1a7746272274770f7b9cd
226b4c0115181b22ff07be989fd49b656e1326cb
/cogs/Role.py
510590c4fbceb085d652ec8b49ce044a99c0a7e1
[]
no_license
EugeneJenkins/Discord-Bot
90bbf151bfdec0109b07d0c3166894a9e4388dea
a3518ba4d7330835deb3957b081bdd4438f661c7
refs/heads/master
2022-11-12T02:21:10.415162
2020-06-28T18:16:03
2020-06-28T18:16:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,767
py
import discord from discord.ext import commands class Role(commands.Cog): # self.playerCount=0 def __init__(self,bot): self.bot = bot self.playerCount=0 #Иницализая кол-во играков #автоматическая выдача игракам роль @commands.Cog.listener() async def on_member_join(self...
[ "skreker99@gmail.com" ]
skreker99@gmail.com
6930cc2a442caaa023ac0f2ee18c012fd6160eb6
e12df0199a9bd32f2e28e95d904a58c4e1ebbe1c
/src/lucy/services/face_recognition_utilities/face_recognition_service.py
aec940b66642af12a5491d8a85ef013561a4aaa5
[]
no_license
ehsonmiraz/Lucy
c01fda89887234f9aa9380d466e523f0702def07
069d22a3e49731e82efe134e9e15f6d6f8a15358
refs/heads/master
2023-08-18T22:36:20.541601
2023-08-04T10:53:10
2023-08-04T10:53:10
163,743,917
6
0
null
2023-08-04T10:53:12
2019-01-01T14:46:48
Python
UTF-8
Python
false
false
3,949
py
import json import pickle import datetime import os import cv2 import face_recognition from picamera.array import PiRGBArray from picamera import PiCamera import time import lucy from lucy.core.console import ConsoleManager as cm class FaceRecognition: TOLERANCE = 0.6 MODEL = "hog" # cnn CURRENT_DIR = o...
[ "ehsonmiraz@gmail.com" ]
ehsonmiraz@gmail.com
0c3eaa5e055df080fed204c30783825a33e822bd
b1c6d0c6fb4c5ba8683a93471de3e8b31291aabe
/venv/UI/pie.py
2400b5e10c3a5333bdfe358e18554a4a4b5352c7
[]
no_license
PeachtaoYang/visualization
79fbb866d432ecd3d3e6f3cb0fe358003a2bdd6d
ea5b29da0195b687db8eede1bf5376694396e121
refs/heads/master
2022-10-10T16:56:08.305942
2020-06-10T14:02:05
2020-06-10T14:02:27
270,919,734
0
0
null
null
null
null
UTF-8
Python
false
false
4,161
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'pie.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtGui import QIcon class Ui_Dialog(object): def setupUi(self, Dialog...
[ "2542614360@qq.com" ]
2542614360@qq.com
dc30afd2f8a8872d158e01edec6df40e305b50a3
eff5bde8be20945406610e99ad5e19da418f3f4e
/alphazero/agent/agents.py
da092f3e8e270a43644c9e4e0e9984d18910ba27
[ "MIT" ]
permissive
linhongbin-ws/alphazero-gym
b961a46ab8b3568705ec5bf2fada622a22d166c7
e08c58e4563404a2c02d678dd087611b12091c2b
refs/heads/master
2023-07-17T23:35:38.515372
2021-09-08T06:24:53
2021-09-08T06:24:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,362
py
import random from collections import defaultdict from typing import Any, Dict, Tuple, Union from abc import ABC, abstractmethod import torch import torch.nn.functional as F from torch.nn.utils import clip_grad_norm import numpy as np import gym import hydra from omegaconf.dictconfig import DictConfig from alphazero.h...
[ "tkleia34@gmail.com" ]
tkleia34@gmail.com
6377d548922e3234d32b38a3cf2023fbbb990b8b
0612a2c9c4e42fd09570a1100da238a602655f29
/layers/relu.py
7201d3c4c9e1b21e3d6c5b885e96216abf7de2da
[]
no_license
Mustufain/Convolution-Neural-Network-
df7b274d132a4cb007c26396bf1bdcdc796ea201
a87ff44356962c8b8ea501986d6f4d7e21165c7a
refs/heads/master
2021-06-16T01:59:45.224343
2021-06-01T19:58:26
2021-06-01T19:58:26
206,874,150
1
1
null
2021-06-01T19:58:27
2019-09-06T21:07:16
Python
UTF-8
Python
false
false
1,038
py
import numpy as np class Relu(object): def __init__(self): self.params = [] def forward(self, Z): """ Forward propogation of relu layer. Parameters: Z -- Input data -- numpy array of shape (m, n_H_prev, n_W_prev, n_C_prev) Returns: A -- Activations o...
[ "mustufain.abbas@caidio.io" ]
mustufain.abbas@caidio.io
c4726ecb4dc4d8f3bc7921983ab124089255a287
a820336e1ba1678ea795b97a13e8f24ac1f4047d
/places/apis_views.py
4020506f55d980ff3981e15daaa25bf2d93e58f1
[ "MIT" ]
permissive
acdh-oeaw/dig_ed_cat
492ad0b6ba7c984244e0e78629b98b410b9c8a8f
3747ba28435848f01da37ebdb74108ef3bcd76c6
refs/heads/master
2023-05-28T07:16:25.281149
2023-05-23T06:28:00
2023-05-23T06:28:00
58,523,978
12
5
MIT
2023-05-23T06:28:01
2016-05-11T07:39:28
JavaScript
UTF-8
Python
false
false
429
py
from rest_framework import viewsets from .serializers import PlaceSerializer, AlternativeNameSerializer from .models import Place, AlternativeName class PlaceViewSet(viewsets.ModelViewSet): queryset = Place.objects.all() serializer_class = PlaceSerializer depth = 2 class AlternativNameViewSet(viewsets.M...
[ "Peter.Andorfer@oeaw.ac.at" ]
Peter.Andorfer@oeaw.ac.at
564d94a9e63642635a9c7487d8171084d56cdf06
4c0ae3b579e7cf2b805d5567f63f4802333e3cd6
/tests/test_fund_me.py
aed5fa2036e96c9cefa8c0b8af4ab317e169e688
[]
no_license
evansyeung/blockchain_demo_fund_me
5c0f6b17ff41b6f31d2da26382551118636bcadb
0d10eecf914fa074c1bd4f2252ffe4d06cfbdf91
refs/heads/master
2023-08-11T16:40:10.252077
2021-09-24T22:39:55
2021-09-24T22:39:55
410,117,300
0
0
null
null
null
null
UTF-8
Python
false
false
1,139
py
from brownie import network, accounts, exceptions from scripts.helpful_scripts import LOCAL_BLOCKCHAIN_ENVIRONMENTS, get_account from scripts.deploy import deploy_fund_me import pytest def test_can_fund_and_withdraw(): account = get_account() fund_me = deploy_fund_me() entrance_fee = fund_me.getEntranceFee() + 1...
[ "evansbyeung@gmail.com" ]
evansbyeung@gmail.com
fc5c2e0ea7b801a56507057f6d5836f3b923067a
4766c06c4adaeec73918929acf402012f34d11ee
/web_flask/7-states_list.py
801824ac6153582ca093dd9260e0fe7a310fcc76
[]
no_license
AndZapata/AirBnB_clone_v2
79fc1ebb6a4c768af3e5281c296fd236139e400b
5359cc2166bcc646eb5648d109522cc2e8d6a18d
refs/heads/master
2020-07-03T19:55:14.719529
2019-09-06T00:58:31
2019-09-06T00:58:31
202,031,910
0
3
null
null
null
null
UTF-8
Python
false
false
592
py
#!/usr/bin/python3 ''' starts a Flask web application ''' from flask import Flask, render_template from models import storage app = Flask(__name__) @app.route('/states_list', strict_slashes=False) def states_hbnb(): ''' display “states HBNB!” ''' list_state = [] for i in storage.all("State").values(): ...
[ "andzapata514@gmail.com" ]
andzapata514@gmail.com
c3a7c645a77ca3c5bddb1e746bc7610facdf332b
57e5548b4d3f1b2d9ae40f1fb172534d2dafd4b7
/myTest2/myApp/kuaidi.py
eb097ada6c2d57b76c31932575cb37505033a476
[]
no_license
monsterzzz/pythonResult
2ef7ede59c2c2f572b7af96da79d7cb45c655380
e43da765121c2a52fb2dc0f4ac661f6464b157b6
refs/heads/master
2020-07-16T13:29:15.693571
2019-10-15T17:19:27
2019-10-15T17:19:27
205,795,631
0
0
null
null
null
null
UTF-8
Python
false
false
3,857
py
# -*- coding: utf-8 -*- import urllib.request import urllib.parse import http.cookiejar import json import random import time #获取快递公司 def get_comCode(postid): url_xhr="http://www.kuaidi100.com/autonumber/autoComNum?" req = urllib.request.Request(url_xhr) #Http头部 ori_headers = { 'Host': 'www.k...
[ "monsterxmonster@163.com" ]
monsterxmonster@163.com
dbb575fe1fbb027fc733509cf5a9f2e83359cc66
13c5f489482ecf537f6f2822c6a04e83c1c9fc2f
/Project1/mymain_orig.py
84a013b152c5a059de0fee90a9abaa59c29f407f
[]
no_license
nathanfitz-coder/practicallearning
fd05b0b2171fb1db88cb9c6b7bf2330457188cb8
314d683475d907bed06a9724c2e327c5212b0f85
refs/heads/master
2023-01-22T18:14:21.100789
2020-12-13T03:20:10
2020-12-13T03:20:10
290,617,653
0
0
null
null
null
null
UTF-8
Python
false
false
8,507
py
import pandas as pd import xgboost as xgb import numpy as np import time from scipy.stats import skew from scipy.special import boxcox1p from sklearn.linear_model import ElasticNet def test_train(j): data = pd.read_csv('Ames_data.csv') testIDs = pd.read_table("project1_testIDs.dat",header=None,sep = ' ').valu...
[ "nathanfitz@me.com" ]
nathanfitz@me.com
5c85903cdd3d6c0ed256c8312491f4014135a1d1
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5753053697277952_0/Python/JustAMan/task1.py
1c0e0e97692e8bd3f1dc946aa6e29c179fad09de
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,011
py
import sys A_NUM = ord('A') def index2party(*idx): return ''.join(chr(A_NUM + x) for x in idx) def solve(p): plan = [] while any(x > 0 for x in p): idx1, _ = max(enumerate(p), key=lambda (i, v): v) p[idx1] -= 1 idx2, _ = max(enumerate(p), key=lambda (i, v): v) p[idx2] -= 1 ...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
745e5b69c83c08f9c5881bb8001d2312f25c417f
8e0b9b63771dfc0e9dcef35d86da5c750f1d1dc6
/tests/everflow/everflow_test_utilities.py
80f54a3f9d699544df6279361fba1ae721ec54b4
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
status110/sonic-mgmt
95f73502c602902c01c985f0639a2dcad2826d03
ffb090240cfbffdaa2079ee8d5a564902e21858a
refs/heads/master
2023-01-13T10:12:52.177961
2020-11-12T04:18:38
2020-11-12T04:18:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,002
py
"""Utilities for testing the Everflow feature in SONiC.""" import os import logging import random import time import ipaddr import binascii import pytest import yaml import ptf.testutils as testutils import ptf.packet as packet from abc import abstractmethod from ptf.mask import Mask from tests.common.helpers.asserti...
[ "noreply@github.com" ]
noreply@github.com
0dbbc1f7205fac49e6f4f2f77cca3b72b9c10ea3
0708d5e1159bf9d49066d4981b241e2549b1f643
/boxes4.py
c5bc8a9460a1912871cd7b40e306963d5c089aab
[]
no_license
MatrixMike/Python
1a6957ba387f83e975da7b92146928aa78ce64f2
9fee873124ea75afee46e1c40e9cb45c519de662
refs/heads/master
2022-12-29T10:08:43.187690
2022-12-21T11:07:05
2022-12-21T11:07:05
94,441,697
0
1
null
null
null
null
UTF-8
Python
false
false
309
py
import turtle def tilted_square(): turtle.left(angle) turtle.forward(50) turtle.left(90) turtle.forward(50) turtle.left(90) turtle.forward(50) turtle.left(90) turtle.forward(50) turtle.left(90) angle = 20 # <-- tilted_square() tilted_square() tilted_square()
[ "matroxmike@icloud.com" ]
matroxmike@icloud.com
da453faaf1b6d9d6c8d858e614200a4b72ead8d3
4ae53803aabb0e3305631083a8a597c1b48c727b
/apps/ticket/admin.py
85276858e1ad0b22559d2a2367a5f00940e8a224
[]
no_license
Fentrys/PruebasNewdta
273b4a9d93676ad32953e8a40a9e5b5e875d9e0e
bb122a76b1580e4b68c4c9fab8d91c0fa95f9667
refs/heads/master
2020-09-21T14:40:01.687014
2019-11-29T14:03:21
2019-11-29T14:03:21
224,819,561
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
from django.contrib import admin from apps.ticket.models import Ticket # Register your models here. admin.site.register(Ticket)
[ "luismanuelpd@gmail.com" ]
luismanuelpd@gmail.com
cbd6dfa66b388986b851c34127c9fcf1a81cb5d2
9446ef8ce5b3f83d4f2acf8fb73deb536632eb5b
/Assignments/Ass4/test.py
2be0ae0da643270ad3c5a5bb7274cf929c5cc0b4
[]
no_license
harshkasyap/ml-class
3512413c84f35708e76ce28dae8bef13d1c32526
83a11e35f634c17edc4f6b4a6b68bb475a221b5d
refs/heads/master
2022-09-25T13:28:25.425644
2019-12-07T05:23:48
2019-12-07T05:23:48
195,331,577
0
1
null
2022-09-08T11:28:52
2019-07-05T03:19:15
MATLAB
UTF-8
Python
false
false
229
py
import nltk nltk.download('punkt') nltk.download('averaged_perceptron_tagger') sentence = "They refuse to permit us to obtain the refuse permit." tokens = nltk.word_tokenize(sentence) print (tokens) print (nltk.pos_tag(tokens))
[ "harshkasyap@gmail.com" ]
harshkasyap@gmail.com
748d01cc73380329e8a671b250e78f01670fbea5
25cab45bf9ad0b2a4d81345f0af9189bd3d1987c
/setup.py
c232273aa84fb5b3a4a0364faa27b347ed9c5528
[ "Apache-2.0" ]
permissive
opentelekomcloud-infra/zuul-project-config
319e10946a6ecca0ad8e4da5ba804afb5cd56468
f75672f88515049f163e76eb1c5030dc4dc90d0e
refs/heads/main
2023-08-30T00:58:48.763852
2023-08-28T07:24:29
2023-08-28T07:24:29
133,349,600
2
0
Apache-2.0
2023-09-05T19:58:47
2018-05-14T11:19:14
Python
UTF-8
Python
false
false
564
py
# you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES ...
[ "Artem.goncharov@gmail.com" ]
Artem.goncharov@gmail.com
dc86dd132dbfa443f8cb21e99cb878f6224232a5
0207812e037649fe4d916397fcaa1b4c1ac46c7c
/venv/bin/easy_install
6a7ed833ac201b57189d5cdb7295d62b98e182d9
[]
no_license
s777610/530_Project_LA_Crime
047c96dc40b10f58dea45e6496d160a48fe2f7c5
19593578515e0be1ed082a5e5d005eb37b04ab2f
refs/heads/master
2020-03-22T17:07:49.526017
2018-07-19T23:13:04
2018-07-19T23:13:04
140,374,838
0
0
null
null
null
null
UTF-8
Python
false
false
457
#!/Users/hungweicheng/PycharmProjects/LA_crime_analysis/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\....
[ "s777610@gmail.com" ]
s777610@gmail.com
c61bba04ba90b902317654197e8dd0546a386380
2734b77a68f6d7e22e8b823418ad1c59fe1a34af
/opengever/tabbedview/upgrades/to2202.py
7dd61b11749007b632aaebc5820297a180e31a60
[]
no_license
4teamwork/opengever.core
5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1
a01bec6c00d203c21a1b0449f8d489d0033c02b7
refs/heads/master
2023-08-30T23:11:27.914905
2023-08-25T14:27:15
2023-08-25T14:27:15
9,788,097
19
8
null
2023-09-14T13:28:56
2013-05-01T08:28:16
Python
UTF-8
Python
false
false
349
py
from ftw.upgrade import UpgradeStep class RenameStatefilterJS(UpgradeStep): def __call__(self): js_registry = self.getToolByName('portal_javascripts') js_registry.renameResource( '++resource++opengever.tabbedview-resources/tasklisting.js', '++resource++opengever.tabbedvie...
[ "philippe.gross@4teamwork.ch" ]
philippe.gross@4teamwork.ch
2dd90f9d0a8bf5c956add88a4854c64195e7a328
6284d7a282f6508c34a74ade286344d3124007c5
/server.py
487468d28b6b560a49bf9da69999e291c1386ddb
[]
no_license
k-hub/movie-ratings
cd118ba5ad22486d6642cfc36e6c4ddf64cd92d3
593893abffbaf7296337415ed917980530739a17
refs/heads/master
2021-01-01T05:16:01.630156
2016-05-06T01:25:48
2016-05-06T01:25:48
57,918,115
0
0
null
null
null
null
UTF-8
Python
false
false
3,670
py
"""Movie Ratings.""" from jinja2 import StrictUndefined from flask import Flask, render_template, redirect, request, flash, session from flask_debugtoolbar import DebugToolbarExtension from model import User, Rating, Movie,connect_to_db, db app = Flask(__name__) # Required to use Flask sessions and the debug tool...
[ "info@hackbrightacademy.com" ]
info@hackbrightacademy.com
dccaf3c89b50deb57b08827086f56ea05456e8e7
e4cdf194f8ff2384c58e2af2327c966eb7e28e18
/source/config.py
ab45c99162a57b3e25adeb3d7401dc620cd3f2b8
[]
no_license
rymmx/YuBlog
6a9af5942683227a2e53d2c09c1de790f5481585
473d873ec59eb479d3a5cdebd875921818c397af
refs/heads/master
2020-04-12T13:16:47.038323
2018-12-09T14:13:06
2018-12-09T14:13:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,687
py
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): CSRF_ENABLED = True SECRET_KEY = 'you-guess' SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_COMMIT_ON_TEARDOWN = True POSTS_PER_PAGE = 10 ADMIN_POSTS_PER_PAGE = 20 ACHIVES_POSTS_PER_PAGE = 20 SEARC...
[ "15152347277@163.com" ]
15152347277@163.com
f42e995e23dc2681516d47492fd67d14669e9f96
fbbcae1df6c989b87a74debe8d654c9ff0ecf575
/backend/framework/qlf/dashboard/bokeh/globalfocus/main.py
c3d12f98f8d57fee74f479208e3a1250fccd41c7
[]
no_license
jorgemachucav/qlf
05c142582d3e5a6a13e6325acdbc4fbc02c1ad9b
ade1b80a40c4f05cbee987d3e48c0c088e77247c
refs/heads/master
2020-04-21T10:04:54.043686
2019-02-26T02:00:53
2019-02-26T02:00:53
169,475,402
5
0
null
2019-02-06T20:55:59
2019-02-06T20:55:58
null
UTF-8
Python
false
false
7,276
py
from bokeh.plotting import Figure from bokeh.layouts import row, column from bokeh.models import HoverTool, ColumnDataSource, Range1d from bokeh.models import LinearColorMapper, ColorBar from qlf_models import QLFModels from dashboard.bokeh.helper import get_palette import numpy as np import logging from bokeh.resou...
[ "noreply@github.com" ]
noreply@github.com
d0d9d5da07bbbe7a4f0b738545d40f6f7ca87f57
e2b1219048ad05b742ba62df23ab95c5fac8e105
/pyduino.py
1cd6df14a30a9ad5fe38b5a0d85ae93fdff33751
[]
no_license
kojino/Room-In-Use
a86331185d6b8cc9027c1f35ce7e854652e96c11
f9a185e918051a27e166391a468984889856e74c
refs/heads/master
2020-06-10T09:36:02.654190
2016-12-13T20:22:23
2016-12-13T20:22:23
75,973,506
0
0
null
null
null
null
UTF-8
Python
false
false
3,427
py
""" A library to interface Arduino through serial connection """ import serial class Arduino(): """ Models an Arduino connection """ def __init__(self, serial_port='/dev/tty.usbmodem1421', baud_rate=9600, read_timeout=5): """ Initializes the serial connection to the Arduino...
[ "kojin.oshiba@gmail.com" ]
kojin.oshiba@gmail.com
8ddecc8c839bd9e0e461683ea3660a975e26f939
458a624482f50e9148869dfda843e64e0ad3d0a1
/confusion-character-replacement/confusion-replacer.py
b6e23c056be2661857bd93275ab667560d496d2a
[]
no_license
Sangeerththan/OCRSinhala
3e5b3e53d7c0342ab77155505a1154aa984d9695
e6c0d5f18889efed2b62bec5193c28ed0a7e37c9
refs/heads/master
2020-05-02T12:40:43.926063
2019-12-08T09:02:37
2019-12-08T09:02:37
177,964,297
1
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
import codecs g = codecs.open("dic.txt", encoding="utf-8") dic_words = g.read().split() g.close confuse_groups=[] with codecs.open("confusion groups.txt", encoding="utf-8") as f: confuse_groups = f.readlines() f.close() confuse_list=[] for i in range(0,len(confuse_groups)): confuse_list.append(confuse_groups[i]...
[ "manojnilangadesilva@gmail.com" ]
manojnilangadesilva@gmail.com