blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ca7d8dcde9b57240cc9f9fd08d1837aa7c915a8 | 30b1d37cf5b46de7131257ae3862ad3fa4eb3952 | /photo_face.py | 5b0c25919639bb4a812d889cede7fc47a8b01f50 | [] | no_license | YOURSyym/Special-person-face-snap-alarm-system | e353f64a6fa830a999941c4f920fc4d856364959 | e4df1017cf89d23e652fe8cd6d77a4b03811132a | refs/heads/master | 2021-04-16T01:03:05.991450 | 2020-03-23T02:14:20 | 2020-03-23T02:14:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | import os
import cv2
import time
import shutil
def getAllPath(dirpath, *suffix):
PathArray = []
for r, ds, fs in os.walk(dirpath):
for fn in fs:
if os.path.splitext(fn)[1] in suffix:
fname = os.path.join(r, fn)
PathArray.append(fname)
return PathArray
d... | [
"3315371762@qq.com"
] | 3315371762@qq.com |
b47dea3d469f4570fbb4a8f588f8cf4f4b16c852 | 6df2e5efb3071597e57e02f534abdd858a2d5c77 | /config/urls.py | 7c8e35b90ba30f629a3deedf08c3b1afc160fbe1 | [
"MIT"
] | permissive | Naxaes/DH2413-website | c240d72daf1edc9977ba994a6696d92c7d51294f | 9cc61f453ab7d6ceeec471ec72058c2ce1a2346a | refs/heads/master | 2022-12-07T19:34:06.380258 | 2020-09-01T22:48:15 | 2020-09-01T22:48:15 | 292,038,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import include, path
from django.views import defaults as default_views
from django.views.generic import TemplateView
from res... | [
"ted@zerebra.com"
] | ted@zerebra.com |
5e985531ad45f5f550230f2d78adf377df29ec40 | b8e823a52e2a7a30fda6b4ff35725275dcd76288 | /mysite/blog/migrations/0001_initial.py | 3f5fa485e616ab3b54b3caa2f41b0f15a9f8387b | [] | no_license | nihalmishra/django-tutorials | 5487a407b6fd27d05a0cdb214e7a6e6b2e2ed576 | 675329af010d87006d23fe8b77b4cb085079b985 | refs/heads/master | 2020-03-22T21:25:16.736775 | 2018-09-10T12:32:53 | 2018-09-10T12:32:53 | 140,686,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-27 10:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
... | [
"nihal.mishra95@gmail.com"
] | nihal.mishra95@gmail.com |
4a32f86eaacf0ac184b3d541a5e54a0402bdb228 | 2132d79e8ade83a89cd8388164cc43e61f8d82ff | /model_relationships_part1/model_relationships/urls.py | 2408084d9aaf2e5d620d90eac8a83cdb02183ea6 | [] | no_license | nipa04/BootCamp-Works | ca2721495a948134ed31b020216e5826a77b2597 | 5cae671d5208b7cc8c8f858a7c316c59f64230f0 | refs/heads/master | 2023-01-07T21:54:36.577506 | 2020-01-30T16:58:53 | 2020-01-30T16:58:53 | 232,620,796 | 0 | 0 | null | 2023-01-06T03:47:26 | 2020-01-08T17:33:55 | PLSQL | UTF-8 | Python | false | false | 761 | py | """model_relationships URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | [
"nipa.farjana04@gmail.com"
] | nipa.farjana04@gmail.com |
156d14bdae8a0e9a71a2d8974b69ecfec3a41281 | 3859695d6322d39c047b129a6098b2645de9e972 | /mysite/mysite/urls.py | 4ba8ebe28430e4a8155243981a10a0243eaf0aeb | [] | no_license | Davy971/TD1genieLogiciel | cfe9ec7e3ca99162dd28d9d95f3a87b2de326080 | d4f573ddfb741efb2982b3d51e7bb692237c8bd9 | refs/heads/master | 2020-03-30T18:46:23.266367 | 2018-10-04T04:19:11 | 2018-10-04T04:19:11 | 150,511,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"regalade.davy@gmail.com"
] | regalade.davy@gmail.com |
22d441f62a586e355c35efc8f171c07e88700048 | d4811f4ba6b20d9cba2ae63736e58fe8d1de198a | /tests/loading/primitives/test_uint32.py | b8b6effc660668a183b78462679a7647450550ba | [
"MIT"
] | permissive | mlga/schematics-proto3 | f6de009cff5ac6ff096dbe784618001b3c3bd5fb | 588fe5bc212e203688166638a1c52dfeda931403 | refs/heads/master | 2020-09-11T06:31:21.146154 | 2020-08-19T17:32:45 | 2020-08-19T17:32:45 | 221,972,314 | 0 | 0 | MIT | 2020-08-19T17:32:47 | 2019-11-15T17:28:45 | Python | UTF-8 | Python | false | false | 673 | py | # -*- coding:utf-8 -*-
from schematics.types import IntType
from tests.loading.primitives import CommonPrimitivesTests
from tests import schematics_proto3_tests_pb2 as pb2
from tests.utils.randoms import value_for_primitive
from tests.utils.wire import mimic_protobuf_wire_transfer
class TestUInt32(CommonPrimitivesTes... | [
"github@mlga.io"
] | github@mlga.io |
a24231af24f186f570d3b622abe248a6ea2645f9 | 91e867dfb15df3e3cc78604335013a06d2b6d6a0 | /tests/unit/tests_standard_lib/test_fields_tests/test_test_generator.py | 12a6578a609c6889a37e828402b4806185b9a181 | [
"Apache-2.0"
] | permissive | monishshah18/pytest-splunk-addon | fd0cccce51f15ae2baac8aadb9ad13827cb7260d | 1600f2c7d30ec304e9855642e63511780556b406 | refs/heads/main | 2023-06-14T16:36:54.600276 | 2021-07-14T21:40:43 | 2021-07-14T21:40:43 | 326,932,988 | 0 | 0 | NOASSERTION | 2021-01-05T08:20:50 | 2021-01-05T08:20:50 | null | UTF-8 | Python | false | false | 12,356 | py | import pytest
from unittest.mock import patch, MagicMock
from pytest_splunk_addon.standard_lib.fields_tests.test_generator import (
FieldTestGenerator,
)
def field_1():
pass
def field_2():
pass
def field_3():
pass
field_1.__dict__.update({"name": "field_1"})
field_2.__dict__.update({"name": "fie... | [
"noreply@github.com"
] | noreply@github.com |
9ae82b5750f77a253ffc1e56ff84b70c2023d0ad | dc36dd2b74d9db4e5b8fcd3d65514fb7275b39ba | /Nikita_Trynus/7_collections/practise/ex_1.py | 85eeb97e25f11f4604d43e3624e8243d9334fdc5 | [] | no_license | YuriiKhomych/ITEA_course | 917fd0b3bc83fc574ef5620b0eba89f5b8f169e4 | 56bf9c67e535b3d521d7f0dd45f1c737a25b6ce7 | refs/heads/master | 2020-06-25T19:00:31.801788 | 2019-09-17T06:14:59 | 2019-09-17T06:14:59 | 199,396,197 | 0 | 15 | null | 2019-11-20T19:49:30 | 2019-07-29T06:55:35 | Python | UTF-8 | Python | false | false | 181 | py | pizza = ['1', '2', '3']
for i in pizza:
print(f'{i} is cool')
print(f'i like {pizza[0]}')
print(f'i love {pizza[1]}')
print(f'i am ok with {pizza[0]}')
print('I like pizza')
| [
"trynuspoc@gmail.com"
] | trynuspoc@gmail.com |
6af093b41a50353b636b1226ae653d4697195ed3 | b83f9df3dc8a4e430cd88076a87cf87c064f0942 | /src/train.py | 70983ee9fc127f999eb5035233668218cf03e62f | [] | no_license | BassirouNdao/GAN2Vec | 40867512d75690b9fa175ae06edc2c0f0cae4619 | 44960dd89369cf3ebb1f53ff96c8351a60d79695 | refs/heads/master | 2023-02-04T19:59:58.342601 | 2020-12-21T21:49:06 | 2020-12-21T21:49:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,796 | py | import torch
import pickle
import os
import time
from torch import nn
from torch.autograd import Variable
from random import randint
from torch.optim import Adam
from gan2vec import Discriminator, Generator
#from gan2vec_conv import ConvGenerator
from torch.nn.utils.rnn import pack_padded_sequence
from gensim.m... | [
"zazyzaya@gmail.com"
] | zazyzaya@gmail.com |
4097c12e5e32ddb612f8e316b6cc081ec845b219 | a2218b9627f403b0482198cebc4a32f4c5f1da95 | /console_version.py | fd5d9cc0ac3afc51da7639e6417e5caba16a2f85 | [] | no_license | VladimirZorin1986/finite-automation | 9c6a3186a61e35b2e5a947578f9f3480f5e2354b | e2fc9ecb385abb5bc29b1586fcffafe4404a93cb | refs/heads/main | 2022-12-28T02:17:47.019093 | 2020-10-08T09:31:40 | 2020-10-08T09:31:40 | 302,371,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | from typing import Set, Dict, Tuple
# Определение константных величин
RULE: Dict[Tuple[str, str], str] = {('H', 'a'): 'S',
('H', 'b'): 'SE',
('S', 'b'): 'SE',
('SE', 'a'): 'SE',
... | [
"pls.github@gmail.com"
] | pls.github@gmail.com |
66a2df763ed13eb2629342a4a870fa3e9b2f607e | b53782b56116547571a60c20c421908b0110ee79 | /multi.py | 4741b6ffb41bedc2b7b15f0ada20948c2b69f7fa | [] | no_license | phungvankhanh/JPEGImageCompressAlgor | 16eeb2790a11cf2a3a4a62ae4b7263decb37ba90 | 86fb44add45f0406a94cf1993603439e174f07ac | refs/heads/master | 2021-04-09T13:12:30.020741 | 2018-04-01T17:53:06 | 2018-04-01T17:53:06 | 125,459,397 | 0 | 1 | null | 2018-03-26T16:57:49 | 2018-03-16T03:38:06 | Python | UTF-8 | Python | false | false | 2,097 | py | from tkinter import Tk,Scale,Canvas,IntVar, Frame,Menu, BOTH, Label,NW, Text,X,LEFT,Button,RIGHT
from PIL import Image,ImageTk
from tkinter.filedialog import Open
import tkinter.messagebox as mbox
class Example(Frame):
def __init__(self,parent):
Frame.__init__(self,parent)
self.parent=parent
self.initUI()
def ... | [
"caubeuudam@gmail.com"
] | caubeuudam@gmail.com |
f5ddaea2443db0d624de8fa5030142c3e1cf8114 | a67d00cb2ffb9c370d4fea400d6b78a1d3620b7c | /test_server.py | 349ccb7020ed49e212f2460c7928266364bb3312 | [] | no_license | xinli94/Ground-Station-for-UAV | 11895e71b0e12d13675b10aa46b65155646d8cbd | de493c886fa23a72044f5c63e2aab31221261f2b | refs/heads/master | 2021-01-11T15:57:36.022720 | 2017-01-29T21:30:17 | 2017-01-29T21:30:17 | 79,967,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # -*- coding: utf-8 -*-
import sys,socket,struct,time
if __name__=='__main__':
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1',8000))
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
while True:
#connection, address = s.accept()
recv_bytes=s.recv(9)
... | [
"noreply@github.com"
] | noreply@github.com |
4bc85639ab45b77f2d7f1c5dd8ac2b6b51aeefe4 | c2fca7ddfd8f7dac47fa65ec291d7ea619c324d4 | /venv/bin/pip | a46f09231f77c81bc4e63c9be65641b793837241 | [] | no_license | ashenafiteame/mlwebsite | c177f2af64118f5b72213550da34c395e1723eb1 | 3b08c64bbbbb69d65ab7c950f90b7c69696e6cee | refs/heads/master | 2022-12-10T15:29:38.391511 | 2020-03-05T17:39:58 | 2020-03-05T17:39:58 | 245,230,707 | 0 | 0 | null | 2022-12-08T01:06:01 | 2020-03-05T17:48:41 | Python | UTF-8 | Python | false | false | 271 | #!/home/ashu/1POLIMI/projects/FlaskIntroduction/venv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ashenafitm@gmail.com"
] | ashenafitm@gmail.com | |
3e7dd28ec82a965c62c46b51c6ce8138182cd2d5 | b6f28e641deea883f6d8ac320de41288eb5eae89 | /front/templatetags/startups.py | 95c702a83f96c4f793b630b7187afee79415387a | [] | no_license | gabrielhora/startupforme | eb27d6ec11fa70be39c4d70c9710e7ce48051867 | 67818fdc2fc8f60e00fc25e547c57c45d7332d1a | refs/heads/master | 2021-01-10T19:55:39.554134 | 2014-07-09T17:17:35 | 2014-07-09T17:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django import template
from front.models import Startup
from django.core.urlresolvers import reverse
from front.templatetags.utils import remove_http
register = template.Library()
def get_other_startups(parser, token):
try:
func, count = token.split_contents()
except ValueError:
raise t... | [
"gabrielhora@gmail.com"
] | gabrielhora@gmail.com |
20f8a261e10d05bf4e666f2e18c7161d85acd7b2 | 69b0aaa84cc5ab4f86a5506e91725830d17135fd | /func.py | d65f2435895ea16f9912bdb8cd95678612676a93 | [] | no_license | Danielideal/ChineseChess-AI | 2a46e0ef640fde4fe81db7a55d34653e59a1c856 | 202c5ecc95288466ac1b9c628801d9873c190835 | refs/heads/main | 2023-03-23T10:02:22.575252 | 2021-03-12T06:36:21 | 2021-03-12T06:36:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,626 | py | # -*-coding:utf-8-*-
"""
@author cc
@date 2021/2/17
"""
import config
import rule
import json
class Board:
def __init__(self):
self._board = []
self.status = False
self.roundGame = 0
self.boardInit()
self.moveSet = []
self.boardRecoder = []
... | [
"noreply@github.com"
] | noreply@github.com |
151f926afd5731a0defde7101ace9b5153e33146 | 32a56cf1f4764adc75b6fab32d6e14bfecdeaf97 | /Django Level 5/learning_users_5/basic_app/urls.py | be5be1c709656d305bd31aa0d13049742f310f03 | [] | no_license | sanchit-zeus/Workspace_html | 52dfef7881e3c1f309bc6904a8887dcbc593728c | 4ab344a151be2b426ecd9271ba7d877d64ab8808 | refs/heads/master | 2020-05-09T13:19:41.981502 | 2019-04-13T09:19:25 | 2019-04-13T09:19:25 | 181,147,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from django.conf.urls import url
from basic_app import views
#template URLs
app_name = 'basic_app'
urlpatterns = [
url(r'^register/$',views.register,name='register'),
url(r'^user_login/$',views.user_login,name='user_login'),
]
| [
"35419687+sanchit-zeus@users.noreply.github.com"
] | 35419687+sanchit-zeus@users.noreply.github.com |
6e4156e4e3069e970ae4e345581cbee3c0abf56f | d74d31455943004326de199f365240fd8f0ec97c | /poiJacSim.py | a9387675f842edc57c73b5c0ee245ec2d4ff2bff | [] | no_license | clussificate/DataAnalysis | 9dda21f99b0ef1798e0898025419fb38395a1b29 | a997cfdc88e8e4682579c715c9ade7fa2460f845 | refs/heads/master | 2020-03-28T23:05:16.703313 | 2018-09-18T11:17:18 | 2018-09-18T11:17:18 | 149,275,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,484 | py | # -*- coding:utf-8 -*-
from __future__ import division
import numpy as np
import collections
import sys
import json
reload(sys)
sys.setdefaultencoding('utf8')
class poiTagSim(object):
def __init__(self,filename):
self.filename = filename
self.poi_set = [] # poi 集合
self.tag... | [
"noreply@github.com"
] | noreply@github.com |
a8c5f8fe733b1263b9e715e46f656c1827f702d7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2843/60723/275315.py | 68bd3c530b53af09ba7366a8b979d4690d44f3fa | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | num=int(input())
a=input().split()
for i in range(num):
a[i]=int(a[i])
b=[]
for i in range(num-1):
b.append(str(a[i]+a[i+1]))
b.append(str(a[num-1]))
print(' '.join(b)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3a99c1df86fc3b5baa8741113b27ecc0f6f454c9 | aed70e07b568a842177bcc475876dced8c496c07 | /Tutorial_of_Deep_Learning/generator/train.py | 0c497c9009c812a9084ce3fc8d6d18e53baa5184 | [] | no_license | chobit19968535/NKUST | f73b087eb26a85fd13765b59eb1f5a952d453bd5 | 1358509e098c3909974e9351a19f83a93a51bf47 | refs/heads/master | 2022-11-27T21:28:54.938596 | 2020-08-10T06:58:21 | 2020-08-10T06:58:21 | 285,553,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,199 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 22 11:36:45 2020
@author: Lycoris
"""
"""
Utils
"""
from PIL import Image
"""
Core
"""
from keras.preprocessing.image import ImageDataGenerator
import numpy as np
from keras.applications import MobileNetV2
from keras.layers import Dense , Dropout, GlobalAveragePool... | [
"41323791+chobit19968535@users.noreply.github.com"
] | 41323791+chobit19968535@users.noreply.github.com |
c2768ff9359b864188bdb1b45b120dba311db26c | 21e25a8188021805a0d58c38ef66253d4be6fd4a | /8-1 fibonacci.py | dd368f8a08a6065b7cd66a41b271711b5a8603ed | [] | no_license | greenloper/Dynamic-Programming | e1c01a5e1d95aaa96dba8034ba71e727a398911a | 6b758a9dd4e5cb81474f25cc3a8e0111a6c320cd | refs/heads/main | 2023-03-25T08:52:29.232370 | 2021-03-22T14:07:17 | 2021-03-22T14:07:17 | 335,989,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | d=[0]*100
def fibo(x):
if x==1 or x==2:
return 1
if d[x]!=0:
return d[x]
d[x]=fibo(x-1)+fibo(x-2)
return d[x]
print(fibo(99)) | [
"noreply@github.com"
] | noreply@github.com |
4ffc37db89cf4224b27343cde48d98ea8f146c60 | fff7d26485659fb32585abb868d572b73cff4c0f | /ElevatorUI.py | f978d6eacb2151a6dae74fea7faac68b9d8e4ebf | [] | no_license | zb2313/OS_Elevator_Dispatch | 6f08c9b4172cd0867c21602393be7ea3d5ed9ef6 | 4b61c00b6c7e5622eba6defd00873403781d1f8b | refs/heads/main | 2023-06-10T02:43:08.854050 | 2021-07-04T09:32:21 | 2021-07-04T09:32:21 | 382,812,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,309 | py | from PyQt5 import QtCore, QtGui, QtWidgets
from scheduling import MyScheduling
from PyQt5.QtCore import *
STANDSTILL = 0 # 静止状态
RUNNING_UP = 1 # 上行状态
RUNNING_DOWN = 2 # 下行状态
NOPE = 0 # 空动画
READYSTART = 1 # 准备运动
READYSTOP = 2 # 即将停止
GOUP = 1 # 上行
GODOWN = 2 # 下行
OPEN = 0 # 开门状态
CLOSED = 1 # 关门状态
class Ui_... | [
"2224105295@qq.com"
] | 2224105295@qq.com |
cefe8a0dbed46bfb84982cf82ac57a6dc7c9e70b | c82ddbaa7a54525ac344d768cdfaa7d044f833b5 | /IOClasses.py | 94ea2775755a1d9ea658870fa302e5b82b50d68b | [] | no_license | hitakshi01/IntroToProg-Python-Mod09 | 4e6c821a05d984ed11e0b182c88a0c449665ddf0 | 615c6f940447cb15425ae7283d4e41ee2ee0d731 | refs/heads/master | 2022-12-09T19:03:22.713135 | 2020-09-07T16:32:48 | 2020-09-07T16:32:48 | 293,572,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | # ---------------------------------------------------------- #
# Title: IO Classes
# Description: A module of IO classes
# ChangeLog (Who,When,What):
# RRoot,1.1.2030,Created started script
# Hitakshi,09.06.2020,Modified code to complete assignment 9
# ---------------------------------------------------------- #
if __n... | [
"hitakshigulati00@gmail.com"
] | hitakshigulati00@gmail.com |
0b2217cb7663d2b1afefcb03e7dbbe62c5871b2a | f05c0be43076cc041ee59b982ba2fa0ed47f85ea | /python/util.py | 0269ec56c30e1fada96a60c7b9438a8bcfcc679f | [] | no_license | richardsonian/beatboard | c65f4dd4e99020a4f3ba204f2e151074187ae650 | bd67b78ea307d6d85619844b56feaa3e09437b58 | refs/heads/main | 2023-01-31T05:45:24.853192 | 2020-12-17T19:59:36 | 2020-12-17T19:59:36 | 319,755,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | def scale(num, oldMin, oldMax, newMin, newMax):
return (((num - oldMin) * (newMax - newMin)) / (oldMax - oldMin)) + newMin
def get_list_neighbor(item, list_, shift, wrap):
if wrap:
return list_[(list_.index(item) + shift) % len(list_)]
else:
return list_[clamp(list_.index(item) + shift,... | [
"ian.ross.richardson@gmail.com"
] | ian.ross.richardson@gmail.com |
ffa4f6924746bc1110d1bb3403a60147af30b96a | cdf69c06df441ee4a4c17d6604060094dc6ef87e | /english.py | 0684e14fa30898303980436492380441b7f5f3b3 | [] | no_license | Soulmate7/HelloFlask | 0c8dafbea3eb2ea6738d3f2d7ce25701a220283d | 9334b2da8b817ad2a16b41c58ca2eff87b45347c | refs/heads/master | 2023-05-31T03:38:45.475952 | 2021-06-16T08:36:15 | 2021-06-16T08:36:15 | 371,363,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | import pymysql
from flask import Flask,render_template,request
app=Flask(__name__)
@app.route('/count')
def count():
wanted = request.args.get("wanted", type=str)
if wanted == None:
wanted = 'pineapple'
db = pymysql.connect(host='localhost',user='root',passwd="z1012194891",db="DataVisual",charset=... | [
"1012194891@qq.com"
] | 1012194891@qq.com |
d9043528e80fd5f56fa7df9cced920dcb7b5c268 | 313a627208d34b0ac3f22ff96ebe53dadb021bac | /pyaccumulo/simple_pool.py | f16332ac386f37c680e08c3369cc3615772e1df9 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"CC-BY-SA-3.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | nestorsokil/pyaccumulo | 9ec59bafd7eb6909abfc56fafbce76bfb87179ec | 1aef8327cfccb1f87746ca3a19e0b70262bd63e2 | refs/heads/master | 2020-05-23T02:36:17.128786 | 2019-05-20T09:26:23 | 2019-05-20T09:26:23 | 186,608,351 | 0 | 0 | Apache-2.0 | 2019-05-14T11:28:30 | 2019-05-14T11:28:30 | null | UTF-8 | Python | false | false | 991 | py | from contextlib import contextmanager
from threading import RLock
from pyaccumulo.accumulo import Accumulo
class AccumuloPool:
def __init__(self, host, port, user, password, size=10):
self._conn_params = {'host': host, 'port': port, 'user': user, 'password': password}
self._lock = RLock()
... | [
"nsokil@kountable.com"
] | nsokil@kountable.com |
add0836df218250b62407c0f08330ba06dab4197 | 8962f8a8c69d2fc5e31de6e976ef4823bc9f956f | /TRPLib/pgmconstrict.py | 628b778345cdbd8fc70948cf7d9062b04e8cd729 | [] | no_license | btownshend/pyTecan | 28dd23a6b4a51afdf0dff811c53f4b2fe1b7c124 | 47087c41d7d01598eab6d45696f8c3beedd2310f | refs/heads/master | 2021-08-09T23:18:06.137339 | 2021-03-31T19:12:17 | 2021-03-31T19:12:17 | 9,189,758 | 8 | 3 | null | 2017-09-06T19:46:33 | 2013-04-03T08:05:45 | Python | UTF-8 | Python | false | false | 11,277 | py | import math
from ..Experiment import reagents, clock, worklist
from ..Experiment.concentration import Concentration
from ..Experiment.sample import Sample
from .QSetup import QSetup
from .TRP import TRP
from . import trplayout
reagents.add("BT5310", well="D1", conc=Concentration(20, 20, "pM"))
reagents.add("MKapa", w... | [
"bst@tc.com"
] | bst@tc.com |
bab6213702161494b8ba05d3ddcaf9d1faf292fb | a0f218eafbc459f9ba6603219a8d18366c79453a | /Filip/GTSRB/CNN_3/Main3.py | 4d608e932ee8770c38606db35445217e13211f5c | [] | no_license | PerJNilsson/Deep-learning-image-recognition | 634d48976bae16ec6e07e21c7f00e6fd979d6f67 | 28b4e267996f5f37f09a6eb4d6b26b464c263b5a | refs/heads/master | 2022-12-05T22:12:00.229546 | 2018-05-07T07:58:07 | 2018-05-07T07:58:07 | 118,593,152 | 4 | 2 | null | 2022-11-29T12:02:48 | 2018-01-23T10:12:50 | Python | UTF-8 | Python | false | false | 6,620 | py |
from __future__ import print_function
from keras.preprocessing.image import ImageDataGenerator
import matplotlib.pyplot as plt
import numpy as np
from readData import readData
from readData import readValidationData
from readData import oneHotEncode
from readData import normaliseImage
import Testcases3.testcase1
im... | [
"filhei@student.chalmers.se"
] | filhei@student.chalmers.se |
7900f11b145d7a10b7f90ff997eec52f7b404b99 | 3beb32a470f411278cbc2619f21fb94a542e468c | /main.py | 227c9e9a736ec8e5ccabb184611978cc6de4ac16 | [
"MIT"
] | permissive | cassiofb-dev/pandasscript | 5d65f0f8fba91a11367da321e39bfd07116d8dd5 | aa708e3d94efd434efdf2db7731c32d2a534c289 | refs/heads/master | 2023-04-28T01:58:43.513833 | 2021-05-21T02:04:09 | 2021-05-21T02:04:09 | 367,987,269 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | import sys
from lang.ps import start
def main():
start(sys.argv)
if __name__ == "__main__":
main() | [
"cassiofb.souza@gmail.com"
] | cassiofb.souza@gmail.com |
3e781df8255b5996389edf5779bd5da42cd892e9 | 000c243b4c30bd089867f73ca1bcfede1c3ef801 | /catkin_ws/devel/lib/python2.7/dist-packages/mapviz/srv/_AddMapvizDisplay.py | 51a8c74fc59d389bcea1f3394153276017a0544d | [] | no_license | dangkhoa1210/SLAM-AND-NAVIGATION-FOR-MOBILE-ROBOT-OUTDOOR-INDOOR- | b4d9bf2757d839d9766d512c2272731300320925 | 7273ea9e966353440d3993dcba112bc0a2262b98 | refs/heads/master | 2023-07-15T14:07:17.123812 | 2021-09-02T10:12:30 | 2021-09-02T10:12:30 | 402,361,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,142 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from mapviz/AddMapvizDisplayRequest.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import marti_common_msgs.msg
class AddMapvizDisplayRequest(genpy.Message... | [
"dangkhoaphamdang1210@gmail.com"
] | dangkhoaphamdang1210@gmail.com |
1b7eedeedc6292e24cbbcbc5343e0ff72b5ffc32 | 0cfb7a13e55724b3b0f5594052e26123112ac5e7 | /study/output-format.py | 7c733e659fda68166caa4b9b75afc803a792e1c9 | [
"BSD-3-Clause"
] | permissive | 1GHL/PythonLearn | f6806bda338e1eaa103f8ba425127e5e94b6d591 | d25f0a23d1a76879e62aefae9b2ed99aa8f10d31 | refs/heads/master | 2016-09-06T14:14:52.082741 | 2014-02-22T16:51:39 | 2014-02-22T16:51:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #output format
s = 'ABC'
print str(s)
print repr(s)
print str(0.1)
print repr(0.1)
a = '1'
b = 1
print a == b
print a == repr(b)
print '10'.rjust(10)
print '10'.ljust(10) ,'|'
print '10'.zfill(10)
print '-10'.zfill(10)
print '10.001'.zfill(2)
print int(a) == b
| [
"yhsponder@gmail.com"
] | yhsponder@gmail.com |
e6d07f2c01c4c1d39ab0dfea9c3f656698ce7b9b | f90c26a082803dd2eeacd3545f1dd1784040e628 | /utils/ps.py | 2a4f52aa4398b063271a08ff9018f0b0f50e273e | [] | no_license | knek-little-projects/smartlock | 37a9fb635a30b30fb5180abfd1be686cf2a3284c | 86a0d2a3b07677238d4e6f2f420ca4715fcefb09 | refs/heads/main | 2023-08-30T17:21:58.938866 | 2021-11-17T11:39:29 | 2021-11-17T11:39:29 | 377,664,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | #!python3.8
from typing import *
from psutil import Process
from utils.headhash import headhash
import psutil
import logging
import subprocess
def ps_info(exe, prop) -> bytes:
cmd = '''[System.Diagnostics.FileVersionInfo]::GetVersionInfo("%s").%s''' % (exe, prop)
completed = subprocess.run(["powershell", "-Co... | [
"sknek@ya.ru"
] | sknek@ya.ru |
5cff6d1e75311f6a39ff6edc9ee7a41307b16b8f | cc1b87f9368e96e9b3ecfd5e0822d0037e60ac69 | /dashboard/dashboard/api/sheriffs.py | 6a66dcc1d8196a45035d18f819709bca37d2f30c | [
"BSD-3-Clause"
] | permissive | CTJyeh/catapult | bd710fb413b9058a7eae6073fe97a502546bbefe | c98b1ee7e410b2fb2f7dc9e2eb01804cf7c94fcb | refs/heads/master | 2020-08-19T21:57:40.981513 | 2019-10-17T09:51:09 | 2019-10-17T18:30:16 | 215,957,813 | 1 | 0 | BSD-3-Clause | 2019-10-18T06:41:19 | 2019-10-18T06:41:17 | null | UTF-8 | Python | false | false | 591 | py | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from dashboard.api import api_request_handler
f... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
aeadd558d70fd182c63b90eaf2fd71d11de90b1a | a7821394b1f9817d2d8a33f7638ced65a9f60336 | /p11.py | 835f5a8bfaf8afdff081a43dc4bd102ebdcbd6f4 | [] | no_license | Azizz007/jenkins_python | 0a2f7c34ab6d9a58bcedf0b4ae3d611c1ca7c095 | ffc33bc0fcc980d05f52f12c1842e0ae0949e1fd | refs/heads/master | 2023-01-03T09:15:46.023053 | 2020-10-29T14:18:51 | 2020-10-29T14:18:51 | 308,250,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | print ("hey, 2")
| [
"you@example.com"
] | you@example.com |
a3a84e6f96f32f5fa8d637410c09ba7d3dce5b21 | e5da380fb50748bd0032d2d121454abe2ae48ded | /source/Predictor_TFLite.py | aa2420e64f9681740620dda1d3504fb6b00c91d0 | [] | no_license | tranminhhieulkqn/APIInteriorDesign-Back-Flask | 65e24ff2c2251ca802b9dd8a74af6f23dbda5cf9 | 23dc77a8db65eb09b8b539041d5d240fe335efc8 | refs/heads/main | 2023-06-21T08:56:32.681905 | 2021-07-25T15:26:17 | 2021-07-25T15:26:17 | 382,636,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,517 | py | import os
import time
import math
import numpy as np
import imageio as io
import tensorflow.lite as tflite
# import tflite_runtime.interpreter as tflite
from PIL import Image, ImageOps
class Predictor_TFLite:
__instance = None
__models = dict({})
__models_dir = ''
__target_size = 224
def __init... | [
"46083795+tranminhhieulkqn@users.noreply.github.com"
] | 46083795+tranminhhieulkqn@users.noreply.github.com |
9be99380551ceec66ed3fd4136ce3dc3cec4facf | d81e47cb813d2265d5d1cdfb9642560ce28ae9c9 | /AlphaBetaAI.py | f4dac9a9d804e821de3e7e10c597df128e60060f | [] | no_license | p-takagi-atilano/ChessAI | 26c22c26301c92ce632d1dfe25a55131b53e045b | 7cf6669c9cf8250269de3c653863fe18283b96da | refs/heads/master | 2020-11-25T18:47:28.432556 | 2019-12-18T09:01:59 | 2019-12-18T09:01:59 | 228,799,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,961 | py | # Paolo Takagi-Atilano, October 3rd
import chess
from heapq import heappush, heappop
from math import inf
class AlphaBetaAI:
def __init__(self, heuristic_fn, depth):
self.depth = depth
self.heuristic_fn = heuristic_fn
self.function_calls = 0
self.depth_fix = (depth % 2 == 0)
... | [
"ptakagia@gmail.com"
] | ptakagia@gmail.com |
62e6f72ada9d3b0c41d832cb762d19674ddd8e33 | 26c4136facd4aaf0cad7b916a401d4961a9162de | /fmhomework.py | d74de0d150724e02b840d17411d227ef617cd907 | [] | no_license | armennmuradyan/python_classes | 3620b598cdb882ea10b371138b9c0f76c74f1724 | 607bedcb1f5b28876f140831f562e8e64bb10275 | refs/heads/master | 2023-09-01T02:07:24.509340 | 2021-10-29T20:10:51 | 2021-10-29T20:10:51 | 410,246,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | import os
user_input = input('do you want to delete folder a and all folders in a? yes for yes \n')
if user_input == 'yes':
cwd = os.getcwd()
list_cwd = os.listdir(cwd)
for i in list_cwd:
if os.path.isdir(os.path.join(cwd, i)):
cwd_1 = cwd + "\\{}".format(i)
list_cwd_1 = os.listdir(cwd... | [
"armennmuradyan@gmail.com"
] | armennmuradyan@gmail.com |
8244a071ba6c6c82eaa4b39145d65913bec92dbb | 8b11b4b533eb1e1baf27292096920e4201f6fec0 | /ExportTargets.py | e59bbc27f488a89fa10c3d98d7657313486c42d1 | [] | no_license | judysu1983/pythonExercise | e8c72eee723554a1d4e266a567d2a5bc85890681 | c3847d497a88fed078d9fb45cb9d0dd3fb900e22 | refs/heads/master | 2021-01-12T09:14:48.564284 | 2016-12-18T20:47:37 | 2016-12-18T20:47:37 | 76,805,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,693 | py | #! python2.7
#see video https://www.udemy.com/automate/learn/v4/t/lecture/3470590
#https://www.udemy.com/automate/learn/v4/t/lecture/3470614
#export target files by project ID,
#open the project and view full path to find the download path
#get the download URL by regular expression
from selenium import webdr... | [
"noreply@github.com"
] | noreply@github.com |
083489b0aa7e59ee244bf586f19cc81b48dcdda1 | 8175b26c54021f66c85becd70b70e67f3f6536ef | /mongo_blast/getuniprottxt.py | 86b68f16cf958b228f56f20bc8dd4f71e7edf918 | [] | no_license | jiakangyuchi/mongoBlast | e138a2fcfe54e2d3aea4e0ceb8a70335137a9fc6 | 90e7cb1354e663796eb415d985ac769134f35407 | refs/heads/master | 2020-04-01T02:56:18.170947 | 2018-10-12T18:06:35 | 2018-10-12T18:06:35 | 152,802,503 | 0 | 0 | null | 2018-10-12T20:08:52 | 2018-10-12T20:08:52 | null | UTF-8 | Python | false | false | 116 | py | import functions
import os
if not os.path.exists("uniprotData"):
os.makedirs("uniprotData")
functions.getUniprot()
| [
"scn3d@mail.missouri.edu"
] | scn3d@mail.missouri.edu |
fa7f9e576cd87eeec1901d4b55fcce0fa603568c | f83f09f19035638acfb6fca1a0bfbbe3d0a8b193 | /python-package/learn2clean/regression/__init__.py | 7fe70d714a6696425436a4c17ff5557e467d40f5 | [
"BSD-3-Clause"
] | permissive | LaureBerti/Learn2Clean | ce847b97a7f61b1f4c59eab1fad09aff1115e1b7 | 8a83b3d0641c815b8dee4611a65a20877940fd3d | refs/heads/master | 2023-01-10T13:44:16.881474 | 2021-03-16T16:29:01 | 2021-03-16T16:29:01 | 178,432,205 | 42 | 11 | BSD-3-Clause | 2022-12-26T20:53:17 | 2019-03-29T15:35:49 | Python | UTF-8 | Python | false | false | 59 | py | from .regressor import Regressor
__all__ = ['Regressor', ]
| [
"LaureBerti@users.noreply.github.com"
] | LaureBerti@users.noreply.github.com |
12c1e9f39cad94697ac642a2b342136937d4f0fe | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/gui/prb_control/entities/base/pre_queue/actions_validator.py | 9751c236c69e44dbb07d504e8b417ae5707659af | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,737 | py | # 2017.08.29 21:45:24 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/prb_control/entities/base/pre_queue/actions_validator.py
from gui.prb_control.entities.base.actions_validator import BaseActionsValidator, ActionsValidatorComposite, CurrentVehicleActionsValidator
from gui.prb_control.items import... | [
"info@webium.sk"
] | info@webium.sk |
437663f18609fe9bb8eb8a0899a1d6e2f1ff8691 | 81818e370c41f9ded6a4b85e90b24e33a7c1281e | /src/crawler/crawler/spiders/roma.py | 9f3eb37cf3f63a7f1b369344525146d369eeef64 | [] | no_license | havalakm/Updated-Project | 529b349023d2aee71e5039ded07078c29a77b38f | dffa48867320e67c2e41c274d319133903963995 | refs/heads/master | 2022-12-14T09:50:03.080482 | 2020-09-20T20:26:24 | 2020-09-20T20:26:24 | 295,202,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import colorama
import scrapy
class RomaSpider(scrapy.Spider):
name = 'roma'
allowed_domains = ['roma.de']
def __init__(self, *args, **kwargs):
super(RomaSpider, self).__init__(*args, **kwargs)
self.start_url = "http://roma.de/"
self.start_parse = self.parse_products
self.... | [
"dibyaranjan.sathua@gmail.com"
] | dibyaranjan.sathua@gmail.com |
108d277a97273fa561b7fce4d7e7a90615fe011f | 2bc95e428b262d1db456e1365e82a7babf254e71 | /rest_api_MTM/cust_adr_api/startapp.py | dca4048fb7b10c7d5111e538a11280804877e1f1 | [] | no_license | gaurshetty/rest_api_ORM | 43c91a11f41e0de1852aab1ebf1df560a4152ea1 | f0b8546cb4360abdad18927c43a482a6aaa26442 | refs/heads/master | 2020-11-28T11:35:19.834352 | 2019-12-28T05:45:21 | 2019-12-28T05:45:21 | 229,800,456 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from rest_api_MTM.cust_adr_api.address.adr_controller import *
from rest_api_MTM.cust_adr_api.customer.cust_controller import *
if __name__ == '__main__':
app.run(debug=True, port=5001)
| [
"gaurshetty@gmail.com"
] | gaurshetty@gmail.com |
d43ee75d816bf4ef9dfdffc51b74e863d683a569 | 4f7dddc0c99e59e9772db109ecae4bf94d1fce54 | /plugin.video.OTV_MEDIA/resources/lib/compat.py | 4b8323afca536ed0b58eeffab1685241ce7f95c9 | [] | no_license | krishnakumar34/otv_yeni | 1f7529a14c568a6abe0a37085050a53394bbce96 | 057578a80cab7e24558d0ce17410fa98f6de0cf9 | refs/heads/master | 2023-05-07T23:19:48.376003 | 2021-06-02T07:26:34 | 2021-06-02T07:26:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | from sys import version_info
if version_info[0] == 2:
# Python 2
compat_str = unicode
from re import compile
from urllib import _hextochr
from urllib import urlencode as compat_urlencode
from urllib import quote as compat_quote
from urllib2 import urlopen as compat_urlopen
from urllib2 import Request as com... | [
"orhantv@users.noreply.github.com"
] | orhantv@users.noreply.github.com |
38772a989f35297451fe429e94afdc2fa1e97c2d | d049c54f874df038385294a41250748802d07ff8 | /motion_detector.py | 3c363ef2cbda7c5541cd6ff6c6740f1adb877069 | [] | no_license | ribex/computer-vision | a6ee8fd50a5911dc54c086d78648936009663462 | 6bb1e3bd5fbcf51d19aeba7e6d8bb1a3dea6e347 | refs/heads/master | 2021-01-16T18:49:22.719034 | 2017-08-12T15:26:12 | 2017-08-12T15:26:12 | 100,121,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | # USAGE
# python motion_detector.py
# python motion_detector.py --video videos/example_01.mp4
# import the necessary packages
import argparse
import datetime
import imutils
import time
import cv2
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-v", "--video", he... | [
"robertslafamilia@outlook.com"
] | robertslafamilia@outlook.com |
febfd5b2eafe78bde4218ddc057d9e3594551aba | 4fb5eb0a9a24fa5c112a4ebc854ee2604b04adda | /python/oanda/models/client_configure_reject_transaction.py | 3288226fc72e0f163b859744219be769cb51631b | [
"MIT"
] | permissive | KoenBal/OANDA_V20_Client | ed4c182076db62ecf7a216c3e3246ae682300e94 | e67b9dbaddff6ed23e355d3ce7f9c9972799c702 | refs/heads/master | 2020-03-27T20:42:25.777471 | 2019-12-02T15:44:06 | 2019-12-02T15:44:06 | 147,088,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,328 | py | # coding: utf-8
"""
OANDA v20 REST API
The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. To authenticate use the string 'Bearer ' followed by the token which can be obtained at https://www.oanda.com/demo-account/tpa/perso... | [
"koen.bal@gmail.com"
] | koen.bal@gmail.com |
37b2edbd5350fdafb3947c51bccff57d8b2a8f8c | a7b78ab632b77d1ed6b7e1fa46c33eda7a523961 | /src/foreign_if/python/UT/src/arima/test_017.py | f77b8c3cf0aef2ee13aca3bae84e6965e68e5dd3 | [
"BSD-2-Clause"
] | permissive | frovedis/frovedis | 80b830da4f3374891f3646a2298d71a3f42a1b2d | 875ae298dfa84ee9815f53db5bf7a8b76a379a6f | refs/heads/master | 2023-05-12T20:06:44.165117 | 2023-04-29T08:30:36 | 2023-04-29T08:30:36 | 138,103,263 | 68 | 13 | BSD-2-Clause | 2018-12-20T10:46:53 | 2018-06-21T01:17:51 | C++ | UTF-8 | Python | false | false | 1,108 | py | #!/usr/bin/env python
import sys
import numpy as np
from frovedis.exrpc.server import FrovedisServer
from frovedis.mllib.tsa.arima.model import ARIMA
desc = "Testing fitted_values_ attribute after performing fit() on numpy array: "
# initializing the Frovedis server
argvs = sys.argv
argc = len(argvs)
if argc < 2:
... | [
"takuya_araki@nec.com"
] | takuya_araki@nec.com |
ce1cb5865e9e911f38666fc19c24063b6ad6e073 | ba2acd97bdae6f38d6f96fe8b87d20b03dbb32da | /api/migrations/0005_article_author.py | 40c62241a967f1977f1960ee8d99f8a3b258fe83 | [] | no_license | tajaouart/civi2 | 6a79fc4603c9e021d4fb9e1d017969ec2ac0f893 | dca97825b5fab743d0d57b198841ad52093d2d53 | refs/heads/master | 2022-11-21T18:19:19.409733 | 2020-07-25T16:15:40 | 2020-07-25T16:15:40 | 266,332,112 | 0 | 0 | null | 2020-06-16T21:18:59 | 2020-05-23T12:29:41 | JavaScript | UTF-8 | Python | false | false | 1,121 | py | # Generated by Django 3.0.6 on 2020-05-29 20:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20200529_2004'),
]
operations = [
migrations.CreateModel(
name='Author',
... | [
"tajaouartm@gmail.com"
] | tajaouartm@gmail.com |
a5e3a6d1d03d65ce0789ad3074c1b7f23c4e7d5e | c481d2a41be5dfaad2cb6ddc1710e78af455bbd9 | /mobile/views.py | 139f37ff37425b71d3ba68bcc304b47fefe61334 | [] | no_license | Qamar41/Empty-Django-Project | 8b571a2ce5cf6580208cad979f4e3a60e1da8b58 | 8f63834f65dd0ae051bc645c967ef2fd4b27f9f0 | refs/heads/master | 2023-03-11T19:57:06.858323 | 2021-03-01T16:25:14 | 2021-03-01T16:25:14 | 299,848,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.shortcuts import render , HttpResponse
# Create your views here.
def home(request):
return render(request,'index.html') | [
"qamarashfaq41@gmail.com"
] | qamarashfaq41@gmail.com |
c52bc5cd19d2140298c65216a92c5de0be6e6b88 | 05d3038180001200fb2dffc403a84f31eda89abd | /aok/apps/utils/appdf/buildmaster.py | 4c80631d22f08fe0db40fed9efc7418f2c7cfc0b | [] | no_license | 1d20/DITBOG | 20d005b018e16238bd72431abd81940508677903 | 5a8b2f0e5acf45c3a2e81e74f5df5d3690ee540d | refs/heads/master | 2021-01-18T21:14:22.276501 | 2017-08-01T14:16:34 | 2017-08-01T14:16:34 | 87,014,061 | 0 | 0 | null | 2017-08-01T14:16:35 | 2017-04-02T20:29:31 | JavaScript | UTF-8 | Python | false | false | 11,550 | py | #-*- coding:utf-8 -*-
from enum import Enum
class ImgType(Enum):
Icon = "icon"
Promo = "promo"
Screenshot = "screenshot"
class BuilderMaster:
dataMaster = None
tmp_dir = "tmp\\"
work_dir = ""
res_dir = ""
apk_dir = ""
d_eng = ""
d_rus = ""
data_table = ""
default_dat... | [
"detonavomek@gmail.com"
] | detonavomek@gmail.com |
52cfbc0fa5e8e1fdece97464294b988aff291601 | 071de17518a2efb6c7f7e347c137ca749afece8c | /src/Speech recongtion/train_mspeech.py | 7f7cc369fda3b3d5564b7ee2d9f78857a6d4df05 | [
"MIT"
] | permissive | robot-python/robot | 2232c37aef0d4438d89c6ea361472a4a83362319 | cd962e17c0048351b59d21128b66682fef4a3362 | refs/heads/master | 2021-02-08T10:35:53.199155 | 2020-03-07T00:14:25 | 2020-03-07T00:14:25 | 244,142,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | import platform as plat
import os
import tensorflow as tf
from keras.backend.tensorflow_backend import set_session
from SpeechModel import ModelSpeech
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
#进行配置,使用95%的GPU
config = tf.ConfigProto()
config.gpu_options.per_process_gpu_memory_fraction = 0.95
#config.gpu_options.allo... | [
"noreply@github.com"
] | noreply@github.com |
0dde22a75e526322e57315e97858c0e68117a40a | 37ed7babe536279dc9882de938fb738efd1e1e57 | /tests/util.py | e1619acb28c573c42a1e7c7605821a7feec8dd28 | [
"Apache-2.0"
] | permissive | iRobotCorporation/ssm-ctl | 5edcefe3f81789cda8f725c582131da4af1c7db5 | e6b379e388ff0ac60954aac155ea8c179da67bbf | refs/heads/master | 2021-04-27T10:35:42.596206 | 2019-07-26T13:26:21 | 2019-07-26T13:26:21 | 122,541,879 | 13 | 1 | Apache-2.0 | 2018-02-27T17:57:50 | 2018-02-22T22:16:16 | Python | UTF-8 | Python | false | false | 808 | py | from __future__ import absolute_import, print_function
from textwrap import dedent
def load(s):
return dedent(s)
class Prompter(object):
def __init__(self, value=None, values=None):
self.value = value
self.values = values
self.prompts = []
self.times_prompted = 0
... | [
"bkehoe@irobot.com"
] | bkehoe@irobot.com |
cff47f16980cff35c6c45c8a8d3773a7ecea2c7a | 80275240fe67a9c5e4b2981fd041763d7c785cc3 | /libs/__init__.py | d45a2f2828d2fd4fe625c7a42b0ff6a6f9f95a32 | [] | permissive | francis-mujani/recognition_son | 8996a92b1a219f6e0ba4bf5c4efee34d8b7e2d5c | 900f5a5d1fae2a9980c253555302097335b3e310 | refs/heads/master | 2023-02-10T16:21:52.750096 | 2021-01-09T15:29:48 | 2021-01-09T15:29:48 | 303,012,206 | 0 | 0 | MIT | 2020-10-11T02:15:38 | 2020-10-11T00:16:37 | Python | UTF-8 | Python | false | false | 154 | py | import matplotlib
# matplotlib.use('Agg')
matplotlib.use('TkAgg')
print('################### Helo ###########################')
def x():
print('XXX')
| [
"francisqo2002@yahoo.fr"
] | francisqo2002@yahoo.fr |
d0d7c4e1ac1cf56073d085772bab377f38fcb71e | 1b2d74c35420255781c867c95bc8c510e88d42db | /assignment1/chapter3_problem4.py | 347956d4dea89e9fcc41f946bc8f2f5b3bc41c42 | [] | no_license | BayoOlawumi/computer-applications-MTECH | fca62fec83337b8c3bf7b72e0637c57a34259ee3 | 57106cf9102a8cacd186f1af4fd22efed6a0b1d8 | refs/heads/master | 2023-07-19T05:31:44.616885 | 2021-09-13T21:22:59 | 2021-09-13T21:22:59 | 394,872,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | import turtle
win = turtle.Screen()
win.bgcolor("lightgreen")
turtle = turtle.Turtle()
turtle.left(3645)
win.mainloop() | [
"olawumiebay@gmail.com"
] | olawumiebay@gmail.com |
b072252a83ed9c9b0c1060b1badaa0369f8af2b4 | 67510dff509d4d2f54ab4dcdfa3ec1368f6f37b6 | /two_dimensional_js/python/task8.py | 997e244092804d828ac40dd8a469bddd97754f15 | [] | no_license | aleksei-stsigartsov/Old-Beginnings-In-Programming | 21c1de7628dcbf9ba1d4402d0a3b13db1592a6ff | d9bae08bc0a86070d5d1277c73a6988dd6c8cde2 | refs/heads/master | 2023-08-27T05:07:30.025292 | 2021-10-29T14:16:15 | 2021-10-29T14:16:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | import os
import readFrom
arr = readFrom.fromfileToArr('input.txt')
file = open('task8.txt', 'w', encoding='utf-8')
summa= 0
elements= 0
i=0
while i<len(arr):
j=0
while j<len(arr[i]):
elements+= 1
summa+= arr[i][j]
j+= 1
i+=1
file.write("Результат: " + str(summa / elements))
file.clo... | [
"aleksei.stsigartsov@gmail.com"
] | aleksei.stsigartsov@gmail.com |
6d877c86baea3e70dd56186f2c654adf536915f5 | 6beade777642805d5e16e5926ef937d6e036e24e | /services/models.py | ba4ba1220473deb5a2b77be63b18e4013897348a | [] | no_license | LuisSepulveda21/La-Cafettiera | 0f80999c7a00388dbe8aa7d7fb8c48aad0f87126 | 7d6f4dcd414055f28a94f441676326648e5e280a | refs/heads/master | 2020-04-21T14:38:47.346881 | 2019-02-07T21:08:57 | 2019-02-07T21:08:57 | 169,641,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from django.db import models
class Service(models.Model):
title = models.CharField(max_length=200, verbose_name="Titulo")
subtitle = models.CharField(max_length=200, verbose_name="Subtitulo")
content = models.TextField(verbose_name="contenido")
image = models.ImageField(verbose_name="imagen", upload_t... | [
"lesepulveda@uninorte.edu.co"
] | lesepulveda@uninorte.edu.co |
0849cdd4cde7d85d4c31400bd24249726c14f011 | aa8004de7c4d29a2f6a2bdecae8ab4e315448779 | /Operators/Arithmetic_Operators.py | 43fb1c9208238ac97e5af40e014a8d66f219ce6e | [] | no_license | manhar336/manohar_learning_python_kesav | 22b906babcf526c61c44ac1258c580c1cd724891 | 1230a3b6bdcbf077954ac1d8780d21d54d5e08e1 | refs/heads/master | 2023-01-03T16:32:55.659250 | 2020-10-26T08:26:34 | 2020-10-26T08:26:34 | 307,305,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | '''--------------------------------------------------------------'''
# 1. Arithmetic Operators:
'''--------------------------------------------------------------'''
'''
1. + = Addition
2. - = Subtraction
3. * = Multiplication
4. / = Division
5. % = Modulus
6. ** = Exponent
7. // = Floor Division
# Example ... | [
"manhar336@gmail.com"
] | manhar336@gmail.com |
52dc307a311107094322bc70d3acd4111236bbde | 51618cf343bcc948da77e2085143a6110067b02f | /app.py | fc0ad89adeea44975203e10d9a0dc31e827c840f | [] | no_license | vilvainc/FlaskRESTSimple | bbc1cfc86014d63926926016645b28b91af8fcd6 | 19f081b087f51e9f9084f6032f24903774628f05 | refs/heads/master | 2020-12-06T10:35:45.344952 | 2020-01-08T00:05:47 | 2020-01-08T00:05:47 | 232,440,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | from flask import Flask, jsonify, request
app = Flask(__name__)
languages = [{'name': 'JavaScript'}, {'name': 'Python'}, {'name': 'Ruby'}]
@app.route('/', methods=['GET'])
def test():
return jsonify({'message': 'It works!'})
@app.route('/lang', methods=['GET'])
def return_all():
return jsonify({'languages': lang... | [
"tranquilram@gmail.com"
] | tranquilram@gmail.com |
d5d199e83ae7039dce538234c4fd52c1271f01f4 | 4364fb1fec2ebda2cd240ddc19ef89243812c122 | /tensorflow_datasets/image/diabetic_retinopathy_detection_test.py | c6729f05bccf57a228449fa8db506e268ffc95fc | [
"Apache-2.0"
] | permissive | undeadinu/datasets | 67ebbe6c20462ed6f58713ccd8dc1d67db89f4d9 | a6f1bce86404d534b7343fb90f0ebfd6d098c346 | refs/heads/master | 2020-04-16T03:31:37.564934 | 2019-01-11T10:12:42 | 2019-01-11T10:13:12 | 165,234,637 | 0 | 0 | Apache-2.0 | 2019-01-11T11:44:44 | 2019-01-11T11:41:26 | Python | UTF-8 | Python | false | false | 1,329 | py | # coding=utf-8
# Copyright 2018 The TensorFlow Datasets 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 appl... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
8cec22947180520850dc5942e0a76fd487114a6b | c75d56c5485fce9605cd48d87b798fd5a7559834 | /transfer.py | 87964d25ee2422176d7675cd4540c59ea9fc77b0 | [] | no_license | nickwareing/file-transfer-server | 37a76d3d5af19f99a68688fe5ecd3ac03a3395a6 | 486ba69495c441b59c662c142b8d2daa8a60c450 | refs/heads/master | 2022-03-09T16:44:39.211503 | 2013-11-03T09:48:54 | 2013-11-03T09:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,765 | py | from struct import *
OPEN_REQUEST = 33
OPEN_RESPONSE = 44
READ_REQUEST = 55
READ_RESPONSE = 66
CLOSE_REQUEST = 77
CLOSE_RESPONSE = 88
MAX_HEADER_SIZE = 176 #IP + UDP + read_response headers.
CHUNK_SIZE = 1324 #Ethernet upper bound (1500 bytes) minus MAX_HEADER_SIZE.
#Reads each 16 bit (2 byte) packet field individ... | [
"nwareing@gmail.com"
] | nwareing@gmail.com |
c618026c9962936fdc9c07d9881c1e5b4d611e77 | 99351753f51b2a585f3a0bb1dc11b8c6eebd76df | /setup.py | f547ea175656df3ebba7efc860cec92119a0174e | [] | no_license | FND/tiddlywebplugins.imaker | 6ef680e76145f9f954a66ba2d1cabd15cc0b4637 | bcaeca5a4f2b44d9e48414f48cfa5cae468f6c4c | refs/heads/master | 2021-01-15T18:30:52.466042 | 2013-07-13T10:51:54 | 2013-07-13T10:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | AUTHOR = 'Chris Dent'
AUTHOR_EMAIL = 'cdent@peermore.com'
NAME = 'tiddlywebplugins.imaker'
DESCRIPTION = 'Make TiddlyWeb instances'
VERSION = '0.1.3'
import os
from setuptools import setup, find_packages
# You should carefully review the below (install_requires especially).
setup(
namespace_packages = ['tiddly... | [
"chris.dent@gmail.com"
] | chris.dent@gmail.com |
cde3346e90bf0b24b91ea9df9de7d3821dc8a338 | d850f5f7cc09a8379c04d38f5c26c2e6b73f3484 | /kimai_python/models/project_rate.py | 76b7342f2bc64b749686f63d73e8f0362a61bf71 | [
"MIT"
] | permissive | MPW1412/kimai-python | 8d78e3df3036ab11573e800dce96011552aa6946 | 7c89b0866b85fbc4b1092b30eca21f1be48db533 | refs/heads/master | 2022-10-12T17:24:50.522103 | 2020-04-24T06:21:57 | 2020-04-24T06:21:57 | 264,545,139 | 0 | 0 | MIT | 2020-05-16T23:14:13 | 2020-05-16T23:14:12 | null | UTF-8 | Python | false | false | 5,828 | py | # coding: utf-8
"""
Kimai 2 - API Docs
JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and... | [
"kajetan.bancerz@gmail.com"
] | kajetan.bancerz@gmail.com |
3f6ec3c498e1b7f2e86b5eb7a081a044566d4b30 | 626fb6bd71433319eb20cbaa7ba110158289a168 | /reducer.py | 8b047f06cac8a291c1fa4bffdc78a24e1dbea252 | [] | no_license | skalyanmoguloju/HadoopShortestPath | b63d79fbb46bf4913a022da34358bee22962c0dc | 90aa3b7e788276d1b33616fbbb0624ebde2f5b57 | refs/heads/master | 2021-01-18T18:43:26.020875 | 2017-04-19T08:30:08 | 2017-04-19T08:30:08 | 86,872,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import sys
prev = -1
lower = 125
nodes = "UNMODED"
for line in sys.stdin:
inputData = line.split(' ')
if prev == -1:
prev = int(inputData[0])
lower = 125
if int(inputData[0]) != prev:
print(str(prev) +" "+str(lower)+" "+str(nodes[:len(nodes)-1]))
prev = int(inputData[0])
... | [
"noreply@github.com"
] | noreply@github.com |
ef49801866725976796fa02217a1c0d54dc5e425 | b0dd0d20fa4f6ff33965a1608679aecff8f00367 | /Webapp/appBase.py | 9adb9519c1fab9c07c47b0642684a65628157c72 | [] | no_license | elit-altum/Reddit-Flair-Detector-Indian-Subreddit | d5779c9666aad25dae7049786afd29f56a0cefd4 | 8ddc7da89777a6c80a8481de15128c198a415fc0 | refs/heads/master | 2022-04-24T01:47:17.860515 | 2020-04-26T17:51:50 | 2020-04-26T17:51:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,030 | py | import pickle
import praw
from praw.models import MoreComments
from bs4 import BeautifulSoup
import re
#import nltk
from nltk.corpus import stopwords
import gensim
from flask import Flask, render_template, request
import json
reddit = praw.Reddit(client_id="ffKcEa2xKfnhyg", client_secret="IJqQkTrDio0xKsKYKYmgeWSoOLM... | [
"adhirajsingh1206@gmail.com"
] | adhirajsingh1206@gmail.com |
def2f9542d47fd2055869a485e738ece66c185bf | 859fc6793e1c2e019e0ec119a367ea43beeefcdc | /python/ccxt/bitget.py | 127d3af30c18385dab501a01211f45a8f3eafdb4 | [
"MIT"
] | permissive | siwenHT/ccxt | 638b8cee929c2638e7b742eae9c7ac13fdb026ec | d6da2a081f8d66f82509bb720e3f23b124016a5b | refs/heads/master | 2023-09-04T07:54:44.408565 | 2021-11-06T14:17:06 | 2021-11-06T14:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139,831 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import hashlib
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import Authenticati... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
f0883ebedea52ca4ef555b7902a40b1994d8d001 | bd4a7b5c70043d3029d31d9846283afa49fa0833 | /miscutil/files.py | 47aff12b65a9ed652daa2ee23c27da69a739725d | [] | no_license | koji8y/miscutil | a868dfdf05c0680883574997da09bd191806f77a | b434a2b412657f7af6e53cf5da652e3bc0f47372 | refs/heads/master | 2023-03-03T01:30:20.091811 | 2021-02-18T17:21:11 | 2021-02-18T17:21:11 | 268,417,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | """File related uttilities."""
from typing import Any
from typing import Callable
from typing import Union
from contextlib import contextmanager
from contextlib import redirect_stderr
from contextlib import redirect_stdout
import gzip
from io import StringIO
from os import devnull
from pathlib import Path
import pickl... | [
"kouji@acm.org"
] | kouji@acm.org |
102d157c0f373f982a69fa38185b325003677893 | d18d643763956958b56b84d492106c9d1ccf53a9 | /aula7_calculadora1.py | 35fabd6b88d62d1ee6aa7733274ee461db8e9814 | [] | no_license | josrenato132/LearningPython | ddbed736b0bbb1b87d15eaa3620b774c0eee55f0 | 5a5755eb6cce93b9eed6474b75fd9fae8ff4f8ee | refs/heads/main | 2023-03-21T01:22:51.894575 | 2021-03-19T03:47:37 | 2021-03-19T03:47:37 | 295,542,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | class Calculadora:
def __init__(self, num1, num2):
self.a = num1
self.b = num2
def soma(self):
return self.a + self.b
def sub(self):
return self.a - self.b
def mult(self):
return self.a * self.b
def div(self):
return self.a / self.b
c = i... | [
"noreply@github.com"
] | noreply@github.com |
b42413b133a14aafa23e322797c0046dceedd8c6 | 56bcaadc74d685edb6ef7fdd97a7c32708b9b007 | /python1019.py | b0bc3bb9fe5c726b10471100094631dceee76124 | [] | no_license | Diamond346/HelloPython1019 | fa345ceb9c09757a4ca0b5c03cc3f434330b15f0 | 9452f24ecb305ec6b9ccc527f0f51f91c12c4634 | refs/heads/master | 2020-04-01T22:55:11.603006 | 2018-10-19T13:19:55 | 2018-10-19T13:19:55 | 153,732,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | def get_date():
print("天天向上")
if __name__ == '__main__':
get_date() | [
"15930669346@163.com"
] | 15930669346@163.com |
54d7ed874c67f126e1d7efec7c5ed4f4e8df7548 | 0815463443f2d2f1a3c62c4efd833c06704c692c | /blog/migrations/0002_userinfo.py | 80898b6073ac2b90098cfd11a8bd72f5c11d1f92 | [] | no_license | thinkthango/mysite | 84f8284fe6144268d67d4edd2954f150e4e1c70c | 2d0ef32a6b06ea9788439183ec94db63edf5ac39 | refs/heads/master | 2020-03-26T08:26:31.616725 | 2018-10-31T05:28:44 | 2018-10-31T05:28:44 | 144,702,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # Generated by Django 2.1 on 2018-08-14 05:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='UserInfo',
fields=[
('id', mode... | [
"sky_wangjz@163.com"
] | sky_wangjz@163.com |
45e82330b7a0652c44e04e218aaf3df3adc06d33 | 450965a6ec1b109d60421ea368daa0c5b89a1731 | /sendmessage.py | 6aad113e872072d9082fe85d52ae8b3d9d81c08a | [] | no_license | Aravinda-Harithsa/Smart-Intermediate-Node-for-Rural-Banking- | f06a3446141693efee7a0f084ad4b33c07053ec5 | dfca05e6c6cdf73fa64ea4c35a8b74951eeffd16 | refs/heads/master | 2022-12-25T01:10:16.341725 | 2020-10-02T11:32:54 | 2020-10-02T11:32:54 | 300,594,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | from firebase import firebase
import RPi.GPIO as GPIO
import serial
import time,sys
from gtrans import translate_text, translate_html
def getInfo(mail):
fb=firebase.FirebaseApplication("https://athena-f1dc4.firebaseio.com/")
userdb=fb.get('/Userdatabase',None)
mail=mail.split(".")[1]
number=userdb[mail]["phone"]
... | [
"50070233+Aravinda-Harithsa@users.noreply.github.com"
] | 50070233+Aravinda-Harithsa@users.noreply.github.com |
96b859cda0f5857246eb10753713581c1b1cd783 | fba7d8e900a8a9a949fff49fd416fb690aa7cac9 | /country_info/forms.py | 63c55588b592e257e972402664c8c36ec961a8cd | [] | no_license | Vladiverev/django_test2 | 57c4a81a81734fbfb698b54cf4dae393eba3171a | 9dbf9d6352f53029dc2f040173ecf9d00acc6528 | refs/heads/master | 2020-03-30T19:59:29.093932 | 2018-10-07T16:15:26 | 2018-10-07T16:15:26 | 151,568,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from django import forms
from .models import Country, City
class CityForm(forms.ModelForm):
class Meta:
model = City
fields = ('title', 'desc',)
| [
"vladiverev@gmail.com"
] | vladiverev@gmail.com |
702bb9f9e7fd04e202ac4996bebb2a4e2a3b70af | 9a8164be8f097f4c6af1412d0556f575d91f7365 | /app.py | 44007885daa1abef68abad7b5ea3f171bf95e4a6 | [] | no_license | Rocky12312/Recommender_system | a8a9d408a59ffedc567eabe4356c304b309b2272 | de77ebc375c48a8408c5fa6575fc1b2872f1c6ad | refs/heads/master | 2023-01-24T00:13:18.348212 | 2020-11-06T10:40:51 | 2020-11-06T10:40:51 | 310,564,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | import io
import re
import os
import time
#import nltk
#import pickle
import string
import base64
import joblib
import zipfile
#import logging
import warnings
import numpy as np
import pandas as pd
from flask import jsonify
#from nltk.corpus import stopwords
#from healthcheck import HealthCheck
from flask_bootstrap imp... | [
"sourabhchoudharysml810gmail.com"
] | sourabhchoudharysml810gmail.com |
873c063fe0ebb90c4077cc4cf2fa52446bffcf72 | 40e726189392289e5528c42a70003ffea3fccb93 | /45_pep.py | 4bac0d0ab8aa70a727444b8a466df0ea1b9bc4d6 | [] | no_license | Grzegorz72/50_pytan | 9d6f498cee64fa32e2bc17e0222ff5a1b2d466a0 | 1712d63cecf96c687570a7dca4c5176709b89019 | refs/heads/master | 2022-11-30T20:14:09.418954 | 2020-08-10T19:37:51 | 2020-08-10T19:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # Pytanie 46 - w jaki sposób zadbasz o to, aby twój kod był czytelny
# i łatwy do zrozumienia dla innych programistów?
# PEP8 ! # link do PEP8 w materiałach dodatkowych
import os # piszemy po jednym imporcie na linijkę
import math # w bloku najwyżej importujemy moduły bibli... | [
"marta.m.slusarczyk@gmail.com"
] | marta.m.slusarczyk@gmail.com |
9d5aafb14738f910a84f9fa615fc45a6cd8f3cc2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /es6qJTs5zYf8nEBkG_10.py | 6084216bb61e092527df14f88ae710259e20fc5d | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py |
import re
def is_rectangle(lst):
if len(lst) != 4:
return False
num = []
items = []
for x in range(0, len(lst)):
result = [int(d) for d in re.findall(r'-?\d+', lst[x])]
num.extend(result)
for x in range(0, len(num)):
if num[x] not in items:
items.append(num[x])
if len(items) != 4:
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
280fb641865f250ad939f99abca5599f5e6ab59b | f870ec4b9065805f38c50568439f4eb385f18e01 | /basic-app/main.py | 303cd7630c42f78cff3a22699a5852f68621890a | [] | no_license | learn-co-curriculum/cssi-7-app-engine-review | 5398c5881bbf125de1d77e2b5b7c8b60a07e242d | be7a14090caebef73fceb9234ccf9e20064f0be9 | refs/heads/master | 2020-12-24T17:45:15.337331 | 2016-01-29T16:05:55 | 2016-01-29T16:05:55 | 39,812,644 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | import webapp2
class MainHandler(webapp2.RequestHandler):
def get(self):
self.response.write('<!DOCTYPE html>')
self.response.write('<title>My First Web Page</title>')
self.response.write('<p>My First Web Page</p>')
self.response.write('<p>Hello, World!</p>')
app = webapp2.WSGIAppl... | [
"vrk@chromium.org"
] | vrk@chromium.org |
6409a5f5135bc863b8fc843babc1f6b74c5626e8 | 7b534aa525270553b0f4bf3c5d4f71bed4d4bc87 | /main.py | 3e39896ef0758c0ad8fe2d1b0d45da34dfc0a066 | [] | no_license | rahulgitx/grand-project | 1582e6a5b6622630a75f08063bd5d07b9074a239 | 5c4cb6e54ef016ab3fdc3c1e6cd8f9a38628a4a3 | refs/heads/main | 2023-05-07T21:09:25.395178 | 2021-05-31T05:43:57 | 2021-05-31T05:43:57 | 371,939,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | def main():
x='start'
while x=='start':
import os
from Bigdatafolder import Bigdata
#clearing screen
if os.name=='nt':
os.system("cls")
else:
os.system('clear')
print("\n\n\n\n\n")
print("Welcome To The Future".center(180))
... | [
"rahul18bhardwaj.23@gmail.com"
] | rahul18bhardwaj.23@gmail.com |
85c24b945001b9beefecb64f4372162b82d060a3 | 3e4c52381e225bb65f10a920106cc52dc0e87394 | /metaspace/engine/sm/engine/annotation_lithops/utils.py | b4d04c7f633ecbee50c236ffd4527ac822b34ac9 | [
"Apache-2.0"
] | permissive | keshava/metaspace | 207aa8da96cc736519cb2727d3676e7ba0231e57 | d8926b86d745f5387b1825a1bd317002b0cd306b | refs/heads/master | 2023-04-26T01:08:41.816261 | 2021-05-18T12:31:02 | 2021-05-18T12:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | from __future__ import annotations
import json
import logging
from base64 import urlsafe_b64encode
from hashlib import blake2b
import numpy as np
logger = logging.getLogger('annotation-pipeline')
def ds_dims(coordinates):
min_x, min_y = np.amin(coordinates, axis=0)[:2]
max_x, max_y = np.amax(coordinates, a... | [
"noreply@github.com"
] | noreply@github.com |
62218ce3a76c02cd63910daf051bdfbd6986d54d | 3a7ada7fd8b6d940053605a138d4dfeeabe05cc4 | /wap/urls.py | 29f4251bc29f0d5b5d66e020888d1176f1bfb812 | [] | no_license | sandeep9illinois/weather | b0446e08d693792930b19cbbafa7c389b46e00c6 | 167908e99c7c67ade99fe779830fe9167364461c | refs/heads/master | 2023-06-17T16:17:56.142248 | 2021-07-26T05:08:22 | 2021-07-26T05:08:22 | 389,489,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from django.urls import path, include
from .views import index
urlpatterns = [
path('', index),
]
| [
"sayadav@zynga.com"
] | sayadav@zynga.com |
daf1d6bccbbbb2fb67704a2af9670dc1e17ed8ea | 11f119a32e5c8d7934dbec612cf2fb7ecafee733 | /Python/ejercicios/leer_archivo.py | d5d2411719d92d3c60d9799321de62f416125d8f | [] | no_license | blasmorelbarboza/Cuaderno | 625ad88731fcc6c9b46a6eabe42ff1479fb1e0dd | db8c5b46e9263a09720fb8047829b57ed9a19951 | refs/heads/master | 2020-04-02T23:59:28.611920 | 2018-10-25T03:37:21 | 2018-10-25T03:37:21 | 154,885,418 | 1 | 0 | null | 2018-10-26T19:37:26 | 2018-10-26T19:37:25 | null | UTF-8 | Python | false | false | 325 | py | # -*- unicode: utf-8 -*-
def run():
counter = 0
with open('aleph.txt') as f:
# print(f.readlines) # IMPRIME TODO EL TEXTO DEL ARCHIVO
for line in f:
counter += line.count('Beatriz')
print('Beatriz se encuentra {} en el texto'.format(counter))
if __name__ == '__main__':
r... | [
"rodolfougaldeochoa@gmail.com"
] | rodolfougaldeochoa@gmail.com |
4e276f619075e92f420d8ff66b66225873af6a9a | 86ac68017449707798964ad939c31ccc2dcc4056 | /tune.py | b6a4fb267ea0f9fec50059bc01c0673a829d9eae | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | soorix/openpilot_075_opkr | 5db0be286cf6606ce2e0c8b57ca6e6f1f19f017f | e711fd259d713e170d36d262fda708d926d65852 | refs/heads/master | 2022-11-23T13:15:11.801141 | 2020-07-28T11:13:23 | 2020-07-28T11:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,021 | py | from selfdrive.kegman_conf import kegman_conf
import subprocess
import os
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../"))
letters = { "a":[ "###", "# #", "###", "# #", "# #"], "b":[ "###", "# #", "###", "# #", "###"], "c":[ "###", "#", "#", "#", "###"], "d":[ "##", "# #... | [
"device@comma.ai"
] | device@comma.ai |
b134c32851d82e25df959973cbeb9149ec080ea5 | 966fa5fb8ad51fa429210e92dac35fea6552298d | /cs410videosearchengine/cs410videosearchengine/celery.py | 71c63960d23bac5a39388afb8ab16592979b60b2 | [] | no_license | FASLADODO/cs410project | 90ca7e2f5edfa63805ed73fbff079f74b6e3454a | 76e54cc19bcec7fe3fe74d3e899a58d2f8bb7735 | refs/heads/master | 2022-03-20T18:22:27.247795 | 2018-12-17T02:02:10 | 2018-12-17T02:02:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | import os
from celery import Celery
from django.conf import settings
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cs410videosearchengine.settings")
app = Celery("cs410videosearchengine")
app.config_from_object("django.conf:settings")
app.autodiscover_tasks()
| [
"cconnon11@gmail.com"
] | cconnon11@gmail.com |
10c90a1f2fcb3965f0547a6245ec075dbfa4e315 | 8d0c81d0905377244f4d864958bc789e881b85fd | /routes/yard_cluster_min_distance.py | 6068f76dc0a40c1d43487b9ae6c694fd4277cd37 | [] | no_license | usmanr149/jsprit_create_xml | 90f62b3ed8db988641357baea8a42d03d51186d8 | f2e003a8a5f2b076f325d0df1693e95b1dea673c | refs/heads/master | 2021-01-20T04:43:37.436517 | 2017-05-25T18:29:21 | 2017-05-25T18:29:21 | 89,724,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | import numpy as np
import pandas as pd
import requests
import pprint
import sys
depots = pd.read_csv("data/southside_depots.csv")
depots.columns = ['depot_name','team_lead','latitude','longitude','start_time','id']
depots_mat = depots.as_matrix()
# vehicles_72GM = pd.read_csv("data/72GM_vehicles.csv")
ve... | [
"antbus@R90KY0F0.COE.ADS"
] | antbus@R90KY0F0.COE.ADS |
a452ea7ad0e3382704d855952aaedceaacd20385 | 13db66632f63fefbcf0582d49bba2a8148f9eadb | /src/2_baseline_fixedpoint/emnistl/train.py | 7300ddb8eb4418d0c856c06ed10152d291101b03 | [
"MIT"
] | permissive | malamleh93/lnsdnn | d8c1a767bb66491ebe4b0c3cb4d2db21fb57e998 | 702c90b4cc001d900365001ecbb54688ec7c9430 | refs/heads/master | 2022-04-02T08:32:35.328414 | 2020-01-29T03:53:32 | 2020-01-29T03:53:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,765 | py | ###################################################
#
# Author - Arnab Sanyal
# USC. Spring 2019
###################################################
import numpy as np
import matplotlib.pyplot as plt
from sklearn.utils import shuffle
import argparse
class fixed_point:
def __init__(self, qi, qf):
self.lsh... | [
"arnabsan@usc.edu"
] | arnabsan@usc.edu |
24bc7ba76c15b98244ddf4f4063496f5e886948e | 84549233ae71593d3979e386221d4aec15fa24f3 | /admin_get.py | 5a0cebad9aff049654976372bb86019d735c04c8 | [] | no_license | mallamsripooja/StaffLeaveManagement | d0710de632ebddf48fc264e3b0b4f90c4608db2a | cc0c08d35103dfba36075382b0ec1b8deb77e086 | refs/heads/master | 2021-09-05T22:02:19.720532 | 2018-01-31T08:06:16 | 2018-01-31T08:06:16 | 119,653,203 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,252 | py | import cgi
import os
from http.cookies import *
import sqlite3
import datetime
import msvcrt
try:
global form
global con
global cur
con=sqlite3.connect("F:\Tom\staffapp.db")
cur=con.cursor()
if 'HTTP_COOKIE' in os.environ:
cookie_string=os.environ.get('HTTP_COOKIE')
ck=SimpleC... | [
"mallamsripooja@gmail.com"
] | mallamsripooja@gmail.com |
90e5046fc8476afe0d60d75cc0fe2675cc28a371 | 3ba96611e530fecb65ae653ec20ad450f1c8222f | /core/migrations/0015_auto_20201123_1637.py | af81ebb291a55088ca7ec3fe50bad44edbfc7b83 | [] | no_license | Hophoet/comii | 79becf122476a8935d1eac2b4638a2648d704cbe | 000f88ce995208ace81097bc6ac01671c985312e | refs/heads/master | 2023-04-15T22:33:58.408043 | 2021-04-28T10:24:54 | 2021-04-28T10:24:54 | 305,330,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.1 on 2020-11-23 16:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0014_auto_20200207_1608'),
]
operations = [
migrations.AlterField(
model_name='item',
name='image',
... | [
"hophoet@gmail.com"
] | hophoet@gmail.com |
5d7a1545020a74d4eaf42233b3640fa37992623e | 8d13236a9215ecd98b6364b6d0e9a16c61d5b313 | /regression_new_data.py | 68b38e52e3f22c07a3ecd358a02bc2dbe80b0096 | [] | no_license | jonona/modeling-week | de445b94e4c17a125fe684ac116f8c72c26752b5 | 15e8dcc0f9a97bdf5ddbd1a4c0fe68d30f6eb0c0 | refs/heads/master | 2022-11-30T11:45:16.701456 | 2020-08-21T17:52:35 | 2020-08-21T17:52:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,048 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 18 15:37:42 2020
@author: jonona
"""
import numpy as np
from loadData import *
import matplotlib.pyplot as plt
#from sklearn.ensemble import RandomForestRegressor
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import... | [
"jonona@macbook-pro.localdomain"
] | jonona@macbook-pro.localdomain |
ae865f7b92ac80c10c1856ef9f7171239f85057a | 7cf06162efb87c19db2d04f23518e33b14015876 | /04/task/test.py | 53d3acb22c916fdf25aeba06262a1db166f5dd3d | [] | no_license | ivanmolchanov1988/client-server | d5fdfadcd6d6463f5787db5282b825d7b95b1127 | 58bf488df6e5a758adffffd6065eb480a336f15f | refs/heads/main | 2023-06-03T12:05:14.246932 | 2021-05-26T09:06:22 | 2021-05-26T09:06:22 | 362,454,753 | 0 | 0 | null | 2021-05-27T10:28:21 | 2021-04-28T12:12:01 | Python | UTF-8 | Python | false | false | 629 | py | import unittest
import server01
import client01
import argparse
class Test_client_server(unittest.TestCase):
def test_server_parser(self):
test_parser = argparse.ArgumentParser()
self.assertEqual((server01.createParser().parse_args().addr,
server01.createParser().parse_a... | [
"silencer1588@yandex.ru"
] | silencer1588@yandex.ru |
930c2c52d19f93eb89a1d6d1cd65fddba65c9851 | df126574e5fae32aa6ba8ae927942208107897b5 | /pyconll/load.py | 2cfdd19dd6edcbb04a5310f3f37bfb3799be6585 | [
"MIT"
] | permissive | ZmeiGorynych/pyconll | 865781a9ac2b5c0b9fe2a26d7d14fce60d4454a7 | 6784295db5fde769754e2b1ac46d6100484e45cc | refs/heads/master | 2020-04-14T11:38:14.167823 | 2018-12-28T22:12:38 | 2018-12-28T22:12:38 | 163,819,354 | 0 | 0 | null | 2019-01-02T09:15:40 | 2019-01-02T09:15:40 | null | UTF-8 | Python | false | false | 3,400 | py | """
A wrapper around the Conll class that allow for easy loading of treebanks from
multiple formats. This module also contains logic for iterating over treebank
data without storing Conll objects in memory.
"""
import requests
from pyconll._parser import iter_sentences
from pyconll.unit import Conll
def load_from_s... | [
"matgrioni@gmail.com"
] | matgrioni@gmail.com |
80081ce8debb6e747b91f780c2308831bbe341eb | 5059dd81358e4a6acf5ec5c0acaac49f834b1726 | /functions/socketio/video.py | 20b5a3837d98800d6af3db1760c1887348c065b8 | [
"MIT"
] | permissive | VMAJSTER/openstreamingplatform | 4e41267f7f1b0f687733525d0e02e9bcc9e9d315 | f002246db922dab9a3f019f46001f3901326feaf | refs/heads/master | 2023-03-25T04:04:25.057061 | 2021-02-24T18:02:57 | 2021-02-24T18:02:57 | 350,442,822 | 0 | 0 | MIT | 2021-03-22T18:38:24 | 2021-03-22T18:08:25 | null | UTF-8 | Python | false | false | 9,262 | py | from flask import abort
from flask_security import current_user
from classes.shared import db, socketio
from classes import RecordedVideo
from classes import settings
from classes import notifications
from classes import subscriptions
from functions import system
from functions import webhookFunc
from functions impor... | [
"dave.r.lockwood@gmail.com"
] | dave.r.lockwood@gmail.com |
540ced66fe7f32f695d31c3c930aba3f968ccbf5 | 3ba73ee31160769d1736b1516024fdf40dd7492c | /4.String Manipulation/4.1MakingAnagrams.py | 3cdd00cdcaf06f25235574e8c790983e4affa50d | [] | no_license | chaerim-kim/Data-Structures-and-Algorithms | 86d4dfcd4948a08b16ead1492e9a825adc4deaad | 80d685ef2fcb54f3299225fa080df7d64e672735 | refs/heads/master | 2023-03-31T01:32:49.638962 | 2021-04-07T16:12:20 | 2021-04-07T16:12:20 | 290,717,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | import math
import os
import random
import re
import sys
from collections import Counter
# find the number of deletions to be made in order for two strings to be anagrams
def makeAnagram(a, b):
itsc = list((Counter(a) & Counter(b)).elements())
# print(itsc) #['r', 'x', 'w', 's', 'm', 'm', 'l', 'i', 'g', 'v... | [
"sc17crk@leeds.ac.uk"
] | sc17crk@leeds.ac.uk |
42e066146f1fa97f71238d54a52fa96707339fed | 0274f2c465f110598456624581f569331221068b | /impl/set_mode.py | 4e67d0d1e69ae5d21f0e2a6144f1fe0e173dbafa | [] | no_license | bluecube/thesis | 63e745076c86a3122e9c3d7ff42ff22e32921860 | 588db206e64de9b681372fea9a70d3fa2aa598df | refs/heads/master | 2016-09-06T00:01:03.840006 | 2013-05-27T09:36:51 | 2013-05-27T09:36:51 | 1,376,241 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | #!/usr/bin/python
"""
set_mode.py
Set the GPS to SiRF or NMEA mode.
"""
from __future__ import division, print_function, unicode_literals
import gps
import logging
import sys
import argparse
from gps.sirf_messages import *
def setup_logging():
logging.basicConfig(
format = "%(asctime)s - %(name)s - %(l... | [
"blue.cube@seznam.cz"
] | blue.cube@seznam.cz |
8745eab3a8a025abd42708022865113cd6d9859f | fd326562890d4f1987c384fc7c60374938231222 | /OOP/DefinningClasses/Spoopify/project/album.py | 55660f2a89fde3334a12f48e6c5ecfbc8cdc378d | [] | no_license | miro-lp/SoftUni | cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4 | 283d9328537919de49f7f6a301e58593bae9ca2a | refs/heads/main | 2023-08-23T21:22:07.856226 | 2021-08-25T15:10:18 | 2021-08-25T15:10:18 | 318,134,101 | 2 | 1 | null | 2021-08-10T12:51:54 | 2020-12-03T09:03:08 | Python | UTF-8 | Python | false | false | 1,675 | py | from .song import Song
class Album:
def __init__(self, name, *songs):
self.name = name
self.songs = list(songs)
self.published = False
def add_song(self, song: Song):
if self.published:
return "Cannot add songs. Album is published."
else:
if son... | [
"miro_lp@abv.bg"
] | miro_lp@abv.bg |
a88e1a023d71d914356416a10dd34007022e69ff | 4fc8c10c6881f394387aebed9bb115d8df841f71 | /hw7/part1.py | a11e2021f482ac30cf6934107884be28ed1ba96a | [] | no_license | lolazz/python_geekbrains | 71e837162be1dfcbd3db934a73c4383072f22a16 | 2657aeb479830bdd71f9f894db985dd96b2b9c9a | refs/heads/main | 2023-02-21T23:40:45.655976 | 2021-01-25T20:53:31 | 2021-01-25T20:53:31 | 322,034,995 | 0 | 0 | null | 2021-01-26T14:54:12 | 2020-12-16T16:10:52 | Python | UTF-8 | Python | false | false | 980 | py | class Matrix:
def __init__(self, matrix):
self.matrix = matrix
def __str__(self):
string = ''
for i in self.matrix:
for j in i:
string += f' {j}'
string += '\n'
return string
def __add__(self, second):
result = []
numb... | [
"ivan.kupreenkov@kofax.com"
] | ivan.kupreenkov@kofax.com |
fadd90032588d510a575c957674db5fd66300f15 | 75fd2cc26f5efc24f04a7ec7f59209ebfef5f88f | /Sprint-Challenge--Data-Structures-Python-master/names/names.py | 29498388eac98883bef151712cd33125e22de1db | [
"MIT"
] | permissive | RCTom168/Sprint-Challenge-Data-Structures | 026951dc1414d81ff0e279f3ef555bd5e6c1a95d | 54cbd2f6025bb88fbf5a5b0ec622b87310d94665 | refs/heads/master | 2022-10-15T23:06:41.134629 | 2020-06-12T17:31:30 | 2020-06-12T17:31:30 | 271,854,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,739 | py | import time
from binary_search_tree import BSTNode
# (Hint: You might try importing a data structure you built during the week)
# Our Binary Search Tree data structure from earlier in the week should be very helpful
### binary_search_tree.py BSTNode Code ###
# class BSTNode:
# def __init__(self, value):
# ... | [
"noreply@github.com"
] | noreply@github.com |
a8c2d9a632e98e7653679b1e6c6322c07cb1ce1c | fe7e450eacbae170dbcda3a308daf0e90490dfec | /qsq/transfer/const.py~ | 1db2899a9e06ad2fe1cbb1473b11fcff2ad39aba | [] | no_license | buaaqsq/lingyunTest | c1fe3d047a67f41b3d1ea4ca7da485be90ee402b | acf4661457979e4854d9fdf2491558e3a97c710f | refs/heads/master | 2021-01-23T03:27:04.437897 | 2014-06-11T09:11:41 | 2014-06-11T09:11:41 | 20,719,647 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | #!/usr/bin/python
class HDFSUrl:
| [
"qiaoshaoqing@gmail.com"
] | qiaoshaoqing@gmail.com | |
1fe16eeaae768425b0033eb5c0e303ca9a59d626 | aafd0b42c393b1709bf07d71588559d41956cfa1 | /analysis/islamqa-categories.py | 719e752021a9d8c2caadebd313f7708fd6fab1f8 | [] | no_license | nicholashanoian/fatwa-website-analysis | 0a5490584c8333acd3f9357852a23b8714cf8b0f | bd801eafb3a61f816e1a8d29c233b1b0b51bdd14 | refs/heads/master | 2022-12-22T14:27:42.642500 | 2020-01-28T20:49:27 | 2020-01-28T20:49:27 | 185,402,113 | 0 | 1 | null | 2022-12-08T05:05:21 | 2019-05-07T12:56:19 | HTML | UTF-8 | Python | false | false | 1,137 | py | import requests
from bs4 import BeautifulSoup as bs
import random
# estimates the number of fatwas in each general category at islamqa.info
# (run-python "venv/bin/python -i")
def get_num_posts(url):
r = requests.get(url)
soup = bs(r.text)
last_page_a = soup.find("a", {"rel":"last"})
# extract 6 f... | [
"nicholashanoian@gmail.com"
] | nicholashanoian@gmail.com |
9bc5ca18a12c96f4e0ca190e8213607b463a5682 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/fsa.py | f6b272fc35d04a6d7b15c3cc189b3879a96524a4 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 140 | py | ii = [('ShawHDE.py', 2), ('PettTHE.py', 71), ('ClarGE2.py', 2), ('GellWPT2.py', 1), ('CrokTPS.py', 2), ('BuckWGM.py', 1), ('RoscTTI.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
4593d1bbf98af0f8912fdc82c271b3dc609c2368 | 3467bd7ea78649ebfb39746cf05663b7913691b3 | /Tree.py | 06c6f53ecfb7bd034751ae315b272c629389fede | [] | no_license | anindyy/halma-ai | a04b8bc50a73945c43309eb810d9e2bdfabb2d59 | 7113e5d3c2497c1da0d5a6b284ce75bda3342d30 | refs/heads/main | 2023-02-24T14:27:35.838865 | 2021-01-22T03:49:28 | 2021-01-22T03:49:28 | 331,825,614 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,640 | py | import Board
import copy
from math import exp
import random
class Tree:
#Node (board)
#Listofchild (list of board)
def __init__(self, board):
self.node = board
def generateChild(self, id):
listChild = []
# somebody wins = terminal node
if (self.node.winCheck() != 0):
return listChild
... | [
"pamsrewari@gmail.com"
] | pamsrewari@gmail.com |
f99cac074d7c49aa1c3afe7ac9fb13be90c2aeac | 415bbc28ffbf2fe0311efd900ea92fd7e977029a | /paybutton/tokenapi/migrations/0003_auto_20180318_1626.py | 4722dc5fbff1acce544b1b467d2ecc23e384ddfc | [] | no_license | rossi1/cashpay | dcf45f780ac1bf51ca585304885876dced847b69 | 648c66768b5880854db2a8e48e067cafae2650a6 | refs/heads/master | 2022-12-12T05:11:28.854952 | 2018-03-20T01:50:10 | 2018-03-20T01:50:10 | 125,932,899 | 0 | 0 | null | 2022-11-22T02:16:58 | 2018-03-19T23:20:55 | JavaScript | UTF-8 | Python | false | false | 489 | py | # Generated by Django 2.0 on 2018-03-18 23:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tokenapi', '0002_auto_20180318_1625'),
]
operations = [
migrations.AlterField(
model_name='mercha... | [
"emmanuelukwuegbu2016@gmail.com"
] | emmanuelukwuegbu2016@gmail.com |
7430d287ee9c99442de1b9dbdb27c9d6495a28b4 | cc48d2f4f0a04290b4f37038432d7e898658d50b | /day1/sumwhile!=1000.py | c37ef28a76dfa71051ecbfd055cdad455d06b878 | [] | no_license | RuslanZaremba/RuslanZaremba | 87bcff89f9cb86d6cd4b1a38415e9a606cac2f06 | cde555391ed0a07915aeff0155ebde051a75177e | refs/heads/master | 2022-11-22T22:48:12.709816 | 2020-07-22T19:02:26 | 2020-07-22T19:02:26 | 265,620,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | # Счетчик до 1000 while
i = 0
while i != 1000:
i += 1
print('i = ', i)
# Счетчик до 1000 for
a = 0
for i in range(1000):
a += 1
print('a = ', a)
| [
"ruslanzaremba1990@gmail.com"
] | ruslanzaremba1990@gmail.com |
2b519425fc80b6a980b77f8685872dc03c6b8b2c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03547/s895509734.py | 521f80f68c31034aaefe1ca9b2e831263c85a6bb | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | #ABC078A
x,y = input().split()
print("<" if x<y else "=" if x==y else ">") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.