blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M โ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c7d86bf851fda7dde5e28313f496c7c66a86cd6f | 0c98435987df858aa25df6db6f6110076e46a800 | /randomPassword.py | 6f21f6b7db39fbe3cada73eaace9952108cf8933 | [
"MIT"
] | permissive | mk-knight23/hello-Mk | 218df4ef0382353d0837d4943d6eafde1ede320e | 51ed1af9ded630328aa2535c048f06a85dc9029d | refs/heads/main | 2023-08-29T18:12:33.768112 | 2021-11-06T15:24:58 | 2021-11-06T15:24:58 | 335,338,799 | 1 | 2 | MIT | 2021-10-13T05:34:49 | 2021-02-02T15:42:20 | HTML | UTF-8 | Python | false | false | 142 | py | import random
k="abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ#@!][}{?ยฟ%&"
len = 12
p="".join(random.sample(k,len))
print(p)
| [
"noreply@github.com"
] | mk-knight23.noreply@github.com |
b3dbee07bc3f3d9638fb8808a02fe6c8648b9872 | 8aca460c3b6e25826a1d385d6b23f837dedfce7a | /dihash/hash_impl.py | 819d2a2513d7545a8c6ae4bc590e91dbbdb9abd2 | [
"MIT"
] | permissive | calebh/dihash | 24d2255de20cabd9c574843157bef0605121c088 | 5b5c13b295915fb582b334a0ca82246bdf75a04e | refs/heads/master | 2023-06-09T14:56:30.112485 | 2023-05-24T23:15:35 | 2023-05-24T23:15:35 | 240,933,328 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,251 | py | import hashlib
import networkx as nx
import pynauty
import math
# Convert a NetworkX graph to a nauty graph
# Input should be a NetworkX digraph with node labels represented as strings, stored in the 'label'
# field of the NetworkX node attribute dictionary
def nauty_graph(g):
# Map each node to a natural number 0... | [
"caleb.helbling@yahoo.com"
] | caleb.helbling@yahoo.com |
f59f062c20bb92420bb4ec172e9e3f763356ef80 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/quiz04_20200628163202.py | 43cf11c468754194ccbd6ea39f998db2cd2226d8 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | # ๋น์ ์ ํ๊ต์์๋ ํ์ด์ฌ ์ฝ๋ฉ ๋ํ๋ฅผ ์ฃผ์ตํฉ๋๋ค.
# ์ฐธ์๋ฅ ์ ๋์ด๊ธฐ ์ํด ๋๊ธ ์ด๋ฒคํธ๋ฅผ ์งํํ๊ธฐ๋ก ํ์์ต๋๋ค.
# ๋๊ธ ์์ฑ์๋ค ์ค์ ์ถ์ฒจ์ ํตํด 1๋ช
์ ์นํจ, 3๋ช
์ ์ปคํผ ์ฟ ํฐ์ ๋ฐ๊ฒ ๋ฉ๋๋ค.
# ์ถ์ฒจ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค.
# ์กฐ๊ฑด 1: ํธ์์ ๋๊ธ์ 20๋ช
์ด ์์ฑํ์๊ณ ์์ด๋๋ 1~20 ์ด๋ผ๊ณ ๊ฐ์
# ์กฐ๊ฑด 2: ๋๊ธ ๋ด์ฉ๊ณผ ์๊ด ์์ด ๋ฌด์์๋ก ์ถ์ฒจํ๋ ์ค๋ณต ๋ถ๊ฐ
# ์กฐ๊ฑด 3: random ๋ชจ๋์ shuffle๊ณผ sample์ ํ์ฉ
# (์ถ๋ ฅ ์์ )
# -- ๋น์ฒจ์ ๋ฐํ - -
# ์นํจ ๋น์ฒจ์: 1
# ์ปคํผ ๋น์ฒจ์: [2, 3, 4]
# -- ์ถํํฉ๋๋ค... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
3c3353fd4690ad220cbbd644ee0bf66566894884 | dbd65739cd4303679c4d81726982ba7b557c812c | /backend/objs/ReminderEntry.py | 298ca6241a0a27a9ad5ebb744cf24719118b2728 | [] | no_license | hnjitlh/SITE_2 | 680f49c9288aff3e52485b6f7a9487370e82ba8e | 02a654813bd118d78df29b2b78e37fe72c145772 | refs/heads/master | 2022-03-19T12:26:17.669016 | 2019-11-10T03:35:36 | 2019-11-10T03:35:36 | 220,728,996 | 0 | 0 | null | 2022-02-13T11:50:35 | 2019-11-10T02:02:54 | HTML | UTF-8 | Python | false | false | 542 | py | from app import db
from datetime import datetime
from .Messages import Message
class ReminderEntry(db.Model):
entry_id = db.column(db.Integer, primary_key=True)
user_id = db.column(db.Integer, db.ForeignKey('user.id'), nullable=False)
message = db.column(db.Integer, db.ForeignKey('message.msg_id'), nullab... | [
"berry64@outlook.com"
] | berry64@outlook.com |
c82fba8ab01d1d077471b17f9aead11553d75109 | f24edb38dd4f7de8a7683afbbc9ab2a4237a361e | /venv/lib/python3.6/site-packages/pip/_internal/network/auth.py | 64c6fd42fd13ad6212d709ee2ae711d0ca0f6507 | [] | no_license | ngecu/automate_django_data_filling | 882220f84a6b4af5484d4b136c740a803ccccfd2 | d6b7095904878f06e4aae6beb2156113a6145c21 | refs/heads/main | 2023-02-26T02:36:26.582387 | 2021-01-31T15:50:22 | 2021-01-31T15:50:22 | 317,846,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,537 | py | """Network Authentication Helpers
Contains interface (MultiDomainBasicAuth) and associated glue code for
providing credentials in the context of network requests.
"""
import logging
from pip._vendor.requests.auth import AuthBase, HTTPBasicAuth
from pip._vendor.requests.utils import get_netrc_auth
from pip._vendor.si... | [
"devngecu@gmail.com"
] | devngecu@gmail.com |
62fa5b544c8111890d1b4fd3779bb0e5afef0918 | 5e83d62064ea4fd954820960306fb06cc8f0f391 | /ecommerce2/settings/__init__.py | 53cfe2179c4f250cc57fedca627640353c668e53 | [] | no_license | bharatkumarrathod/cfe_ecommerce2_RESTapi | eff2fad0cbff7cb3def2c13de282b085aba7291d | a081cdbf10c1fbde58e128b9c9b287443c726071 | refs/heads/master | 2020-12-25T21:43:44.166109 | 2015-10-27T21:04:19 | 2015-10-27T21:04:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from .base import *
try:
from .local import *
except:
pass
try:
from .production import *
except:
pass
| [
"carlofusiello@gmail.com"
] | carlofusiello@gmail.com |
371ee8cb4b4f7e37636a6fbfe01b1f1ba8180744 | f8b5aafac15f408a48fabf853a918015c927e6fe | /bk_tomo/venv/venv27/bin/openstack | ef4239b2369d1cd6ac9e4daa1bf696a84ace7ec5 | [] | no_license | to30/tmp | bda1ac0ca3fc61e96c2a1c491367b698d7e97937 | ec809683970af6787728c2c41f161f416155982a | refs/heads/master | 2021-01-01T04:25:52.040770 | 2016-05-13T16:34:59 | 2016-05-13T16:34:59 | 58,756,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/home/tomo/venv/venv27/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from openstackclient.shell import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tomonaga@mx2.mesh.ne.jp"
] | tomonaga@mx2.mesh.ne.jp | |
99bb440e3d91a657af83b6b5699a5675b2c46f7c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03136/s297842517.py | a2a6230496234027046d6691748a5f445af9dd64 | [] | 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 | 163 | py | n = int(input())
a = list(map(int, input().split()))
b = [0]*n
b = sorted(a)
c = 0
for i in range(n-1):
c += b[i]
if c>b[n-1]:
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
140cc07b959bb90f2ddd870de64a3881a6e885bc | 24cd8ef47e6afd2883836ee69f2de95da97ccebd | /system.py | 33f89b8abbd47a3aaffd745808ced2321692974d | [] | no_license | joaowinderfeldbussolotto/TrabalhoFinalAlgoritmos | 8ea35e9cde02624e25bf75536d508de7827ca122 | 753d384cb57eb4e2ef10690cd5a0e5281b0c7529 | refs/heads/main | 2023-08-13T22:35:55.788565 | 2021-09-24T19:36:51 | 2021-09-24T19:36:51 | 409,734,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,315 | py | from models.user import *
from utils.persistence import *
from utils.helper import *
from models.cartItem import *
from time import sleep
#create_table_products()
#create_table_users()
def main() -> None:
loggedUser = None
menu()
def menu(loggedUser = None) -> None:
sleep(1)
print('===============... | [
"joaowinderfeldbussolotto@gmail.com"
] | joaowinderfeldbussolotto@gmail.com |
1c74451d6dd86c81bcc9238ce0d1267915d0facd | 2b80bd308a6f768e499927761d64928b8cd9da15 | /job/migrations/0009_auto_20200722_1609.py | d58a3cca04db92c33ef4b9afaa578eb45eacee8e | [] | no_license | karimmerabtane/django_job_board | a0015cfffc4e8b4d68a8db8c9cc2ac1e0c8400f3 | 21238a12c1a6873cf0fb278038bac9b37d51fdea | refs/heads/master | 2023-08-03T20:29:11.957695 | 2020-07-26T23:52:44 | 2020-07-26T23:52:44 | 279,559,386 | 0 | 0 | null | 2021-09-22T19:28:39 | 2020-07-14T10:53:41 | JavaScript | UTF-8 | Python | false | false | 355 | py | # Generated by Django 3.0.8 on 2020-07-22 16:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('job', '0008_jobapply_job'),
]
operations = [
migrations.RenameField(
model_name='jobapply',
old_name='job',
new_... | [
"karim.sniper88@gmail.com"
] | karim.sniper88@gmail.com |
4453fb58e33a80b6a1510a8e4e5c633e06b4cdc2 | e36985669a2b068dfb3e43b7f5870dc114bb158b | /python_code/dataExtraction.py | 7722d25b7d06ff6e71446c9ef08cf4b970e527d8 | [] | no_license | assassint2017/Data-extraction-UI | b3f0f43dc48e12c0da158bdb4a7c2c9dd5d92ab5 | d7e1b97100ad97b334f03b0fbf09c2a506339b1c | refs/heads/master | 2020-04-11T06:18:50.417214 | 2018-12-21T12:38:47 | 2018-12-21T12:38:47 | 161,577,841 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | """
ๆฐๆฎๆๅไปฃ็
"""
import datetime
import pandas as pd
from numpy import nan
#-------------------------้่ฆ่ฎพ็ฝฎ็้จๅ-------------------------------
# ่ฎพๅฎcsvๆไปถ่ทฏๅพ ่ทฏๅพไธญไธ่ฆๅบ็ฐไธญๆ
# csvDir = 'C:\\Users\\14595\\Desktop\\2018HB example .csv.gz'
# ่ฎพๅฎๆๅcsvๆไปถ่ทฏๅพ ่ทฏๅพไธญไธ่ฆๅบ็ฐไธญๆ
# extDir = 'C:\\Users\\14595\\Desktop\\ext.csv'
# ๅๅจ็นๆฐ้ๆฑๆปๆไปถ่ทฏๅพ ่ทฏๅพไธญไธ่ฆๅบ... | [
"noreply@github.com"
] | assassint2017.noreply@github.com |
d10e49aa112d5e0cc239ab1fe98b7aa0083f8b76 | 40d5799cc031d234a1b35b7f57cd9784d01ab090 | /manage.py | f5f8b98b330815659267578a77ecc90c6e757a1d | [] | no_license | ramsaicharan/movielisting | bc7641c3b3df4a79cefa7647f798466ce0a302e1 | 76c84acb1f84a4c0e09db74a2643ea31104c4cfb | refs/heads/master | 2020-06-25T13:49:06.216843 | 2020-06-03T06:31:43 | 2020-06-03T06:31:43 | 199,326,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'imdb.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djang... | [
"noreply@github.com"
] | ramsaicharan.noreply@github.com |
c630daa51e38e135e196be1383a6a6557486aa06 | a68159363fb88fcd105f3a305d1ee5df445a832c | /letters_1000_numbers_problem-17.py | 3304126eed5e9f6fab90ce65c2e180a52f130c1f | [] | no_license | lokendra7512/Project-Euler-Solutions | 8a6c8647cfdbfd71adddee9b86ee127fe1e69709 | 23a467af7807e154c9985bfebbe08f60b9418c4d | refs/heads/master | 2022-12-24T07:18:18.025811 | 2020-09-30T19:05:11 | 2020-09-30T19:05:11 | 300,028,993 | 0 | 0 | null | 2020-09-30T19:03:47 | 2020-09-30T19:03:47 | null | UTF-8 | Python | false | false | 815 | py | '''
The way the program works
'''
letters ={1: 3, 2: 3, 3: 5, 4: 4, 5: 4, 6: 3, 7: 5, 8: 5, 9: 4, 10: 3, 11: 6, 12: 6, 13:8, 14: 8, 15: 7, 16: 7, 17: 9, 18: 8, 19: 8, 20: 6, 30: 6, 40: 5, 50: 5, 60: 5, 70: 7, 80: 6, 90: 6, 100: 7, 1000: 8}
sums = 0
for i in xrange(1,1001):
if i == 1000:
sums = sums + 11 ... | [
"abdulapopoola@gmail.com"
] | abdulapopoola@gmail.com |
3d0de491cc84f31ed3d96fa5ed6bc7a73bae9020 | a5c14053b5a763dd9bbe28a0a9c34a88bc280584 | /app/admin/views.py | 1b1505c53465756ff2c71231a41296616627a067 | [] | no_license | smile0304/flask_movie_project | dbcbda194438d324fa89e682f3f8c5e1abf0ae53 | c228821bf90468af8d20f9632ad4e2735c0c7239 | refs/heads/master | 2021-06-25T09:05:34.090540 | 2017-09-11T13:02:06 | 2017-09-11T13:02:06 | 103,136,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,397 | py | #coding:utf8
from . import admin
from flask import render_template,redirect,url_for,flash,session,request,abort
from app.admin.forms import LoginForm,TagForm,MovieForm,PrivateForm,PwdForm,AuthForm,RoleForm,AdminForm
from app.models import Admin,Tag,Movie,Preview,User,Comment,Movicecol,Oplog,Adminlog,Userlog,Auth,Role
f... | [
"smile@smilehacker.net"
] | smile@smilehacker.net |
dd4e74a77ce8690082c0f3839317d11c0ef60a3b | b73071a23f22e025f2c723654160e1cc5722cb4b | /cuadruplos.py | d68c9f384365369ae4c68b53e8ee8b094fdb4a41 | [] | no_license | omarcarreon/drawmycode | d6c381910906381d5a56209b23b4a22965fd6945 | aa62bf0f3caec411c876ff4a041afd328d025f2b | refs/heads/master | 2021-05-03T06:01:05.084952 | 2016-05-01T23:38:39 | 2016-05-01T23:38:39 | 53,284,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,538 | py | from structs import *
from cubosemantico import *
from tablas import *
from dmcparser import *
import sys
pilaO = Stack()
pOper = Stack()
pTipos = Stack()
pSaltos = Stack()
pEjecucion = Stack()
pDimensionada = Stack()
# Inicia con el index 0
cuadruplos = []
# Inicia con el index 0
contSaltos = 0
actualAccessDIM = 1
... | [
"oomarcarreon@gmail.com"
] | oomarcarreon@gmail.com |
d6f17420ce83772b4d31a9811f043fc6f9240f6b | 8e30082f46128316d78504c5efa13319726a52fd | /django/salon/polls/models.py | 6927af7977f957aa28db99a135854209e9a702bf | [] | no_license | vbitjp/Python | 8d08bcaa8fac6348798bbc199b6cc965b163c81c | abfe098ab2152ded87d121c42c1df5ca37c7e837 | refs/heads/master | 2021-09-12T17:56:28.100117 | 2018-04-19T14:28:41 | 2018-04-19T14:28:41 | 106,935,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def was_published_recently(self):
... | [
"7ywrxsxrw7z571g@vbit.jp"
] | 7ywrxsxrw7z571g@vbit.jp |
d141035695650deff0fc75c74efaa0d6e66cd50c | b1c3529a652041dfb4a5b9d7684695f1e3cb8148 | /settings/settings_50cm_open_4K.py | 0f4dc7c1b6d4092502901684794f75535adce7d6 | [] | no_license | ksyoung/load_and_sensitivity | bc51ef7c146f652fa4b567414ed215d30af2d3cc | aa291c8d25a7c23ba79327718c53a34d15b350ab | refs/heads/master | 2021-09-22T08:31:30.527291 | 2021-09-15T20:51:15 | 2021-09-15T20:51:15 | 99,721,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,934 | py | # -*- coding: utf-8 -*-
import os
import sys
from pylab import sqrt
from pywtl.core.wtl_ConvertUtils import convert_squid
import pywtl.common.analysis.noise.analysis.NoisePred as NP
import pywtl.common.analysis.noise.analysis.ParameterLib as PL
import numpy as np
class Class(object):
def __init__(self, **kwargs):
... | [
"kyoung@astro.umn.edu"
] | kyoung@astro.umn.edu |
5187524c1cb90f930855028a542fe8b09194d3b4 | a5898ba24399d8a05cb8a730e10400126fb04c3a | /ToDoApp/urls.py | b023ed47ea1b03001f8a266d49de0a9564a0531a | [] | no_license | Adnan232/Django-WebApp | ae50507082be98c7ede02cb9fbad2ac93524bb05 | e0ffcfef21396f96751efb9b39d917895f38ae52 | refs/heads/master | 2023-09-04T01:30:07.148630 | 2021-10-10T17:22:15 | 2021-10-10T17:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """TodoProject 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-b... | [
"adnanhabib120@gmail.com"
] | adnanhabib120@gmail.com |
79c9ac4f57d7c75785c6e238248c49297bcd93e6 | a40d5c5cd0fcc2410e3200f40f6a79f7201b0193 | /kubernetes/client/models/v1beta1_custom_resource_column_definition.py | f844f995b1a28c3f912663019e6dab34922ac0e7 | [
"Apache-2.0"
] | permissive | Unacademy/kubernetes-client | 662cdc2b9fe6df43301e32427e48b1b2715773ca | b7f9c740a82b4585478d052c8032495cdeb3b331 | refs/heads/master | 2023-06-24T05:57:27.226613 | 2022-12-14T16:29:58 | 2022-12-14T16:29:58 | 181,669,794 | 0 | 0 | Apache-2.0 | 2023-06-20T13:05:37 | 2019-04-16T10:43:37 | Python | UTF-8 | Python | false | false | 8,689 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"haoweic@google.com"
] | haoweic@google.com |
d5c4cac739d6c9ad1a641938dda9973c912c84c5 | e944d288093c9234c3a6a2a76ffe4e3c9b236cf1 | /annotation_utils/coco/structs/__init__.py | 66e257d06be64002c0bce0580e1d58fd6c768ce7 | [
"MIT"
] | permissive | darwinharianto/annotation_utils | 598b043345790580e99f34f159b9612b9b1bcd52 | 1cbdadaa28ff945e705dd7b806dda395e32ab23c | refs/heads/master | 2022-04-27T01:20:10.738778 | 2020-04-27T09:23:57 | 2020-04-27T09:23:57 | 255,525,300 | 0 | 0 | MIT | 2020-04-27T09:23:59 | 2020-04-14T06:10:57 | Python | UTF-8 | Python | false | false | 245 | py | from .objects import COCO_Info, COCO_License, COCO_Image, \
COCO_Annotation, COCO_Category
from .handlers import COCO_License_Handler, COCO_Image_Handler, \
COCO_Annotation_Handler, COCO_Category_Handler
from .dataset import COCO_Dataset | [
"mork.clayton3@gmail.com"
] | mork.clayton3@gmail.com |
3d842f277956e7f09b7d38e83fd8d63cafd6e1cc | cc954deeb8178398a99be10c72d0d6b150801a4e | /log_bolt/bolt_kafka_registe.py | b9e47a8b219759261c816d36ed7f89ae835da4ba | [] | no_license | Wstc2013/log_bolt | 486b3d645b9f37bdf7010178169dcd35e29b51b8 | f48473c0559072f6e5673631d31c2ba47c9c3450 | refs/heads/master | 2021-01-25T13:24:07.933630 | 2018-03-02T10:26:48 | 2018-03-02T10:26:48 | 123,565,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | #-*-coding:utf8-*-
#!/usr/bin/env python
from __future__ import absolute_import
from pyleus.storm import SimpleBolt
from module.registehandlelogic import RegisteHandleLogic
import logging
import time
import configparser
config = configparser.ConfigParser()
config.read("config/config.ini",encoding='utf-8')
logdir = conf... | [
"visen@enjoybcg.com"
] | visen@enjoybcg.com |
a182c56ebe7dd48855684d7cf5c5f4884bd9b717 | 9e4290b8e96c260852fd9b0e624835e7e24e422d | /0007.py | ed7dc336e0ca9463dabb9bc3d6f2a9af8c511509 | [] | no_license | emojipeach/euler_problems_python | 3d7b2bbb70b3f8b3e155751ca1f343417a2172fe | 39d0e1969ea9ac9f466845cab4e255efa2f41bd9 | refs/heads/master | 2020-03-21T23:19:46.185326 | 2018-07-05T21:45:39 | 2018-07-05T21:45:39 | 139,180,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | def is_prime(test_number):
if test_number == 1:
return False
elif test_number < 4:
return True
elif test_number % 2 == 0:
return False
else:
x = int(test_number ** (1/2)) + 1
for i in range(3, x, 2):
if test_number % i == 0:
return False
return True
def next_prime(primes):
x = max(primes)
for... | [
"37852121+emojipeach@users.noreply.github.com"
] | 37852121+emojipeach@users.noreply.github.com |
fc9b0c269aecdb44c4736fe6b9da03555f7de8e3 | 31622dd16963b459ac6eec71fcf54e4d243ac773 | /edu_sharing_client/models/license.py | 073b8ab7d8a99b38a95e9902e2a8e4a23e2cd02e | [] | no_license | torsten-simon/oeh-search-etl | 95e6e92698a97c98ef9d5b02076edcf993736d6f | eacdadcd8af169cb54629db0d2d46a5616f854a6 | refs/heads/master | 2023-04-16T05:08:41.194239 | 2020-11-16T09:51:59 | 2020-11-16T09:51:59 | 318,169,232 | 0 | 0 | null | 2023-04-03T23:04:46 | 2020-12-03T11:20:44 | null | UTF-8 | Python | false | false | 3,484 | py | # coding: utf-8
"""
edu-sharing Repository REST API
The public restful API of the edu-sharing repository. # noqa: E501
OpenAPI spec version: 1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class License(object):
"... | [
"simon@edu-sharing.net"
] | simon@edu-sharing.net |
91b20ea47434b099c8ae47c90abfab4af64dad34 | 89cd8b77ad5171c336cc60b2133fe6468a6cb53f | /Module01_CZ/day1_basics/04-ไปฃ็ /day1/20_้่ฆๆผ็คบ__________ๅ้็ๅฎไน.py | f4f737892f50ed4f9b166828e1067e18cd29954f | [
"MIT"
] | permissive | fenglihanxiao/Python | 75178f6b6b0c53345e1ed54226ea645216572d6c | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | refs/heads/master | 2021-05-23T18:49:20.656433 | 2020-04-29T01:06:21 | 2020-04-29T01:06:21 | 253,199,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | """
ไฝฟ็จๅ้ไฟๅญไธชไบบไฟกๆฏ๏ผ
ๅงๅ๏ผๅผ ไผ ๆบ
ๆงๅซ๏ผ็ท
ๅนด้พ๏ผ21
็ต่ฏ๏ผ18800008888
"""
| [
"fenglihanxiao@qq.com"
] | fenglihanxiao@qq.com |
a1f02577c0adfa04d1396283c0f946dca6808285 | 77ee1f677ab2ececb821a11be128b76bcf0e8d6f | /electrum_mona/gui/qt/lightning_dialog.py | 1d709aed9935b2c01bce4e473c6c8bdd4f25e9d9 | [
"MIT"
] | permissive | zcore-dev/electrum-mona | c74e6142a0f34721be70dba68d524ae9ce03179c | 2beb0c9c7794e8b03d1725bae41ee8b792c57275 | refs/heads/master | 2020-08-22T15:32:55.604727 | 2019-10-21T22:56:29 | 2019-10-21T22:56:29 | 216,427,159 | 0 | 0 | MIT | 2019-10-20T21:03:48 | 2019-10-20T21:03:48 | null | UTF-8 | Python | false | false | 3,658 | py | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 thomasv@gitorious
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# includi... | [
"root@DESKTOP-97LL1PI.localdomain"
] | root@DESKTOP-97LL1PI.localdomain |
b7bf9bf3508f0c9b91f0a398d44aa26c34edd8f1 | fdd78a985cde644ac362caaaa8e270f7177a6e16 | /python/spreadsheet_month.py | 0a292a31eeeef4cdb15e5044c586c89d8c613a69 | [] | no_license | andwxu/hackgt | d2980a4c67ab9c50e14783e6b8c22d1bbd584668 | a147fc546c1080b42df26caebbb530268d12c632 | refs/heads/master | 2022-12-31T00:29:56.239822 | 2020-10-18T11:41:30 | 2020-10-18T11:41:30 | 304,765,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,433 | py | import gspread
from oauth2client.service_account import ServiceAccountCredentials
from matplotlib import pyplot as plt
from matplotlib import ticker as tick
from datetime import datetime, timezone, timedelta, date
import numpy as np
import random
import re
import mpld3
# use creds to create a client to interact with ... | [
"46511636+aidandonelan@users.noreply.github.com"
] | 46511636+aidandonelan@users.noreply.github.com |
aad525f6d2bb1919a03e49948c4f34fe56ee5e66 | 8e6e3f7fc065548cb25825632c49d83964bf9f30 | /Network/icmp_arp_nmap.py | d0ae2b9a0e1de85c750dab6d970b376a9474716c | [] | no_license | raviwithu/Scripts | 1d13c9f368ed9ab966fda434d022acd9f71d3f1d | cba34cdceee121ce696bc1b30faf19a1fc126eda | refs/heads/master | 2021-01-22T02:13:18.252626 | 2018-05-03T01:53:16 | 2018-05-03T01:53:16 | 92,339,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py |
#!/usr/bin/env python
import logging
import subprocess
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
logging.getLogger("scapy.interactive").setLevel(logging.ERROR)
logging.getLogger("scapy.loading").setLevel(logging.ERROR)
from scapy.all import *
ans, unans = sr(IP(dst = "192.168.0.2-25") / ICMP(... | [
"miravishankar@yahoo.co.in"
] | miravishankar@yahoo.co.in |
181dff928bcc29942a15804141960b142b348397 | 0183da495028d9d341641791355e62ba36d3f698 | /PersonDetection/main.py | 9b885d355bd53b10b03072db8adf438bb1ef2c69 | [] | no_license | Joshua1225/PersonSearchEngine | 11bde400a39d555e00a363ca25b4b8721165e3fb | fdda6bcd6bfaf6cea736d19bb559ba94e359e41b | refs/heads/main | 2023-03-07T04:58:18.604258 | 2020-12-12T18:03:15 | 2020-12-12T18:03:15 | 317,192,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from Detector import PedestrianDetector, PedestrianDetectionResultDTO
import cv2
if __name__ == '__main__':
detector = PedestrianDetector('./weights/epoches_112.pth', cuda=True, cpu=False)
img = cv2.imread('./images/1.jpg')
pdrDTO = detector.detect(img)
img_list = pdrDTO.get_img_list()
for i, img i... | [
"noreply@github.com"
] | Joshua1225.noreply@github.com |
e44d807c8b5f173e32fde9820ee02ff6100abd9b | 259b81f2a6d02947cd95c1fbdac4ea182592d331 | /API wrappers/Python/examples/mySE python.py | b0aff4b8e7f0dd249fd2f9c17246f26a7d8d3f7b | [
"MIT"
] | permissive | Arthurdw/mySE | 58ee59c982266b1d4ff0a53e01b882820125a71f | 0100c2a4e8fd5006e170ca8a2890080ed96d0153 | refs/heads/master | 2020-12-08T20:48:54.380742 | 2020-05-03T11:56:29 | 2020-05-03T11:56:29 | 233,091,191 | 0 | 0 | MIT | 2020-01-16T20:06:44 | 2020-01-10T16:52:39 | Python | UTF-8 | Python | false | false | 966 | py | from mySE import mySE
from time import sleep
local_url, server_secret, mail = "http://127.0.0.1:5000/", "mySecureServerPassword", "mail@mail.mail"
# Generate a token:
# try:
mySE.gen_token(local_url, server_secret, mail)
# except mySE.error.UnauthorizedError:
# pass
# token = mySe.gen_token(local_url, mail)
# F... | [
"arthur.dewitte@gmail.com"
] | arthur.dewitte@gmail.com |
8174036a334ba82c11c5dbd9fa16642607155e86 | 06ad8f591b7b68d98d6f422e12c447c8453e1476 | /data/cifar.py | 6d323fbf99da68c37831849f7b128d2ca2b91676 | [
"MIT"
] | permissive | stormraiser/disunknown | 4713a177bfa187ea918cd8dbe2f8d325b9a0db5d | 194cc01851fe26bc2f0ed87cdcc238c801f4a333 | refs/heads/main | 2023-08-29T08:42:45.019039 | 2021-10-13T06:33:23 | 2021-10-13T06:33:23 | 406,071,664 | 20 | 2 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import torch, torchvision
class CIFAR10(torchvision.datasets.CIFAR10):
def __init__(self, root, part, labeled_factors, transform):
super().__init__(root, part == 'train', transform = transform, download = True)
if len(labeled_factors) == 0:
self.has_label = False
self.nclass = []
self.class_freq = []
... | [
"stormraiser2012@gmail.com"
] | stormraiser2012@gmail.com |
0289b4bcf761b49c33907f4f98a3ded9f257d4fa | 429a8441bb9730dcf0e33fedcb5f3672a731b3e7 | /xero_python/accounting/models/tax_rate.py | 3105e7e85477aa221bd8d79e66b609249374e58e | [
"MIT"
] | permissive | gregsteelxinja/xero-python | 1a26ec3b05ea156dd6848f2ec313c72e9f39b0e2 | d0473ba91099de3464b3dffa377df5a11ad95afc | refs/heads/master | 2022-12-16T10:54:11.424971 | 2020-09-01T01:00:23 | 2020-09-01T01:00:23 | 291,526,551 | 0 | 0 | null | 2020-08-30T18:16:48 | 2020-08-30T18:16:48 | null | UTF-8 | Python | false | false | 14,802 | py | # coding: utf-8
"""
Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 2.2.14
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_pyth... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
d2edaeec8fdcd119849df0305b0cb817b3235ebe | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py/orbited/proxy.py | 4c0e80c1f97cce4bb513bffb9be5583f06edd599 | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ba1b92cda51cc0fbe137994a7b857befa45aa64d45009e4fb34ed1df78d0f3fc
size 5501
| [
"tushar239@gmail.com"
] | tushar239@gmail.com |
6346c55ed5ae3d16b8b3bcf214eb2f9ab0feed02 | beb5c6eda82d6ed5d1999f74c115c30f9440feb0 | /setup.py | 269b77f96dc7dc8b0749146096b1b6eb644bf458 | [
"Apache-2.0"
] | permissive | fpgaco/hyperscalar | 5aadcb4fd5e47439b00169f65cfdfce3d02563ed | 44edb9005ed0117ecf14bfd161741ecf23c41279 | refs/heads/master | 2020-07-30T11:14:28.785400 | 2019-09-22T21:08:43 | 2019-09-22T21:08:43 | 210,209,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | #!/usr/bin/env python3
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE.txt') as f:
license = f.read()
setup(
name='hyperscalar',
version='0.0.1',
description='Next generation type',
keywords=['hyperscalar'],
url='https://gith... | [
"ktrabing@acm.org"
] | ktrabing@acm.org |
7c1091c1be6fe52aee062e9522b51fcd54fa5f0e | 526019f16e76a4afd84d25ea90fc39ffda285e34 | /hw/HW03/code/HW03_utils.py | acdc2809d4a0fad12464afff2a0c335605d22bed | [] | no_license | mitchnegus/CS289_mnegus | ac6a3cdd633bf5fda0fefbdf75c014eeaddb0f48 | 6111a029818762ca3fac6e6097d2a2c6a610aaf3 | refs/heads/master | 2021-09-05T00:31:52.637848 | 2018-01-23T04:55:38 | 2018-01-23T04:55:38 | 80,948,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #HW03_utils.py
#-----------------------------------------
# Python module for CS289A HW03
#-----------------------------------------
#-----------------------------------------
import math
import numpy as np
from scipy import io as spio
def loaddata(shortpath,_DATA_DIR,dictkey):
#Load data
data_dict =... | [
"mitchell.negus.57@gmail.com"
] | mitchell.negus.57@gmail.com |
27be4e80e15ee4738b6c1266e451404d6934047c | 0445b05dc0c1a6b92cd4dde04fafd8acddc2365c | /libs/nrgreader.py | 7a2baf3346816a09ee00824d20953e2a6634a4ae | [] | no_license | ananchev/energymeter | a7842f7c31173aa332460c51b972ecf9321f0bb5 | 133e4ba75a14adb8d45ae5d5500850ee9c8fefb5 | refs/heads/main | 2023-08-21T10:59:06.721270 | 2021-10-17T10:31:52 | 2021-10-17T10:31:52 | 305,511,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,976 | py | # Generic imports
import json # used when storing nrg readings into local json
from datetime import datetime # used to capture time when meter readings are stored
import os # used for file operations
# Establish logging
from libs.logger import logger, LOG_FILE
logger = logger.getChild('nrgreader')
# Pymodbus object
f... | [
"ananchev@gmail.com"
] | ananchev@gmail.com |
4a4d2c2a023f48bedef21da3b002bc22be2cf986 | 42b16c3a421e59949441edc7c2153fef8ac690eb | /Admin.py | 073ca76fa3a8ef4d75a360602cd9692bddb8af52 | [] | no_license | mastermobin/DatabaseProject | 9a7179921e2878adeba820eb662a7609084a3667 | bc80290b7d1c132763554dd5b910c9b9075d99f2 | refs/heads/master | 2020-12-24T00:13:10.429887 | 2020-01-30T22:46:06 | 2020-01-30T22:46:06 | 237,320,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,426 | py | import mysql.connector
from tabulate import tabulate
def showQuery(mydb, query, h):
mycursor = mydb.cursor()
mycursor.execute(query)
myresult = mycursor.fetchall()
if mycursor.rowcount != 0:
print(tabulate(myresult, headers=h, tablefmt='psql'))
else:
print("No Result")
def run(I... | [
"mvtikm@gmail.com"
] | mvtikm@gmail.com |
8f55ee77bb2e6f0f501c6aae41fe353d5946e7ed | 48f092fd8191b0218df8605dc7125e526764e59e | /NestedLoops/venv/Scripts/pip-script.py | 1f860a6a2d99a98a14ef6f35a31d2812b31131f3 | [] | no_license | LalityaSawant/Python-Projects | 2edb430c094fe3d6b4e706cc61f885aa07e24dff | b142708256e26867f09b3063f5f3fffa305ec496 | refs/heads/master | 2020-05-01T03:00:26.012301 | 2019-03-23T22:09:33 | 2019-03-23T22:09:33 | 177,235,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!C:\Users\lsawant\Documents\Learning\Python\PycharmProjects\NestedLoops\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script... | [
"lalitya.sawant@gmail.com"
] | lalitya.sawant@gmail.com |
9c1ce6e5363f9d645e9a14dc86c5acf6f135c7dc | 1dc0f0d007c060c74de33bddd4cdcd26ecdf05e0 | /stancode_Projects/boggle_game_solver/boggle.py | 505e63ff243f47684b3699ff04cd8ee5cc7b9451 | [
"MIT"
] | permissive | hoholarry/sc-projects | 178e0f93f6dc6b6cda4be17403fa74c84d0d8e36 | 4bd45e52b8c13a35d38d30e6583d242480dabff4 | refs/heads/main | 2023-03-06T06:58:29.741353 | 2021-02-22T15:16:03 | 2021-02-22T15:16:03 | 341,227,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,724 | py | import copy
class Graph(object):
def __init__(self, board):
self.board = board
self.letters = {}
self.adj_list = {}
directions = [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)]
for i in range(4):
for j in range(4):
if board[... | [
"noreply@github.com"
] | hoholarry.noreply@github.com |
fd98027336d2b8b9faa6def3fed6e1c34db9988d | 5e3d34e2025831896851d9b11dfac81869252de0 | /p9/pyth_triplet.py | 0df4b399e858734011ec8428e144b53927286c6c | [] | no_license | sanjkm/ProjectEuler | b522fc51907821aeeffbb64c016502aa89f6db22 | 6f1300232846e4303e6c4516e11c506e64f10fd9 | refs/heads/master | 2020-04-12T06:30:10.928298 | 2017-01-12T22:43:45 | 2017-01-12T22:43:45 | 65,332,463 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # pyth_triplet.py
from operator import mul
def check_combo (a, b, c):
if c**2 == (a**2 + b**2):
return 1
return 0
def gen_possible_ab_combos (c, total_sum):
low_start_point = (total_sum - c) / 2
high_start_point = total_sum - c - low_start_point
a, b = low_start_point, high_start_point
... | [
"sanjay.menon@gmail.com"
] | sanjay.menon@gmail.com |
816e4e22dde6bfeb7a7f9ef1ae675c0be4bd67a6 | ed291071decb3514b7f9f321e68fd57fb3c11ebc | /Python/168_excel-sheet-column-title.py | 573dae55e7016bdb1c10939d8dbf0ccfb6ce97db | [] | no_license | antonylu/leetcode2 | d7b1681cc9477bb01619be26461634edbb85a4e5 | a57282895fb213b68e5d81db301903721a92d80f | refs/heads/master | 2021-11-25T01:30:56.358849 | 2021-11-19T08:32:12 | 2021-11-19T08:32:12 | 130,139,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | """
https://leetcode.com/problems/excel-sheet-column-title/description/
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
...
Example 1:
Input: 1
Output: "A"
Example 2:
In... | [
"antony_lu@compal.com"
] | antony_lu@compal.com |
204bf46a6fc6a8243ffaadcf8dc901323591f909 | ad3e2940d52d6a213d4fc20a7a68a984e6a420d5 | /diffusion_relaxation.py | 93a3c27514ff8c16c1cec02b23a8eaea73e93e3b | [] | no_license | alex21347/Temperature-Diffusion | 3639aac6ef52b9ffa1fff2b563bd4b9d2470f2dd | e93b8c25e3f4ed2cc52bdb00ce3a3645bfed48ff | refs/heads/main | 2023-01-06T00:25:09.294736 | 2020-10-31T16:16:37 | 2020-10-31T16:16:37 | 304,435,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | #Simulating and Analysing the Method of Relaxation for 2D Dirichlet Problem
import numpy as np
from tqdm import tqdm
from matplotlib import pyplot as plt
from matplotlib import cm
import time
from matplotlib.ticker import LinearLocator, FormatStrFormatter
from mpl_toolkits.mplot3d import Axes3D
#setting up ... | [
"noreply@github.com"
] | alex21347.noreply@github.com |
f6d477f59ee4c2505b13d5f5b674da4640d5ea4f | eb9f05bee11d64f299b3d7c47a2812958a718e6e | /3_neural-network/3_5/2.py | 368db922d7f6ea1cccc22e5e6c07b102926219e9 | [] | no_license | araki-ka/DeepLearning | c85730f5094bd8c5e9184aeb39074fc4dbbdbfc3 | 8b359e89f5f266f80e82b571cdd9f6491cbaf331 | refs/heads/main | 2022-08-21T17:27:42.861542 | 2017-10-11T05:09:59 | 2017-10-11T05:09:59 | 96,615,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# 3.5.2 ใฝใใใใใฏใน้ขๆฐใฎๅฎ่ฃ
ไธใฎๆณจๆ
import numpy as np
a = np.array([1010, 1000, 990])
print(np.exp(a) / np.sum(np.exp(a)))
c = np.max(a)
print(a - c)
print(np.exp(a - c) / np.sum(np.exp(a - c)))
| [
"araki-ka@legendapl.com"
] | araki-ka@legendapl.com |
10cefb112ffc8a72f2ddcd285ff5b6f871ecf497 | 41523dd4871e8ed1043d2b3ddf73417fcbdde209 | /day16/mapๅฝๆฐ.py | 7a19700236dcf557aafb01afb59951babcaa5d8d | [] | no_license | WayneChen1994/Python1805 | 2aa1c611f8902b8373b8c9a4e06354c25f8826d6 | a168cd3b7749afc326ec4326db413378fd3677d5 | refs/heads/master | 2020-03-30T23:19:00.773288 | 2018-11-02T10:47:40 | 2018-11-02T10:47:40 | 151,697,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author๏ผWayne
'''
mapๅฝๆฐ็ๅ่ฝ๏ผ
ๅฐไผ ๅ
ฅ็ๅฝๆฐไพๆฌกไฝ็จไบๅบๅไธญ็ๆฏไธไธชๅฏน่ฑก๏ผ
็ถๅๅฐๅ
ถไฝ็จ็็ปๆไฝไธบไธไธช่ฟญไปฃๅจ่ฟๅ
'''
'''
้ๆฑ๏ผๅฐๅ่กจไธญ็["1", "2", "3", "4", "5"]
่ฝฌไธบ[1, 2, 3, 4, 5]๏ผๅๆไธไธชๅฝๆฐใ
'''
def func(alist):
return [int(x) for x in alist]
list1 = ["1", "2", "3", "4", "5"]
print(list1)
print(func(list1))
res =... | [
"waynechen1994@163.com"
] | waynechen1994@163.com |
7b21a9e794befbf4b2268bb9e211d4e4aff762d6 | 53d03e48ca88e05fb134be8a2d3dda9b6079216e | /fabfile.py | ca82fcc42642e2e6fffd7cd3c79a84a7357a5b66 | [] | no_license | myungseokang/djangogirls | 3b9e18acb7b7747ca04c32dbebb070fc15b88966 | dd7f82131de66e0732553af2b1e3c170a6f44b5f | refs/heads/master | 2021-06-18T09:59:14.143057 | 2017-07-03T00:16:00 | 2017-07-03T00:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 6,054 | py | from fabric.contrib.files import append, exists, sed, put
from fabric.api import env, local, run, sudo
import random
import os
import json
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# deploy.jsonํ์ผ์ ๋ถ๋ฌ์ envs๋ณ์์ ์ ์ฅํฉ๋๋ค.
with open(os.pa... | [
"l3opold7@gmail.com"
] | l3opold7@gmail.com |
a06d0667553909c1cab686643fbcb795d207c11e | 648ed90628cd26d8a3d3941793100a8d5c309be8 | /my_blog/settings.py | 09929503a0adf0075496e708e183ea88b73a3ca4 | [
"MIT"
] | permissive | Chancj/my_blog | 03200f62cf826558e2a074cb0f0eb578bbe2644c | 988831904d2bd800afa332a1b4113143e1aaeccd | refs/heads/master | 2022-12-29T11:23:24.973262 | 2020-04-29T16:19:24 | 2020-04-29T16:19:24 | 251,649,792 | 0 | 0 | null | 2022-12-08T03:56:34 | 2020-03-31T15:39:55 | JavaScript | UTF-8 | Python | false | false | 7,717 | py | """
Django settings for my_blog project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"1049669825@qq.com"
] | 1049669825@qq.com |
db10d84562d00aeab527245c8df21ab7c305aea4 | 8bd977f6f59799bfc8aad9e1605ba1afe637e275 | /myComputerVisonLib.py | f4a3a4d702252bbf1d35cd7eba47ed9480accf69 | [] | no_license | wuethral/Automated_masking | 0453634cf64f83e977a23163e06dfa2c1cf27eb9 | f2852ca2848b2f60660db674d718f5c6b3ba391d | refs/heads/master | 2023-08-15T00:09:57.479507 | 2021-10-01T11:56:45 | 2021-10-01T11:56:45 | 412,448,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,905 | py | import cv2 as cv
import numpy as np
from PIL import Image
from numpy import unique
from numpy import where
from sklearn.datasets import make_classification
from sklearn.cluster import DBSCAN
from matplotlib import pyplot
def canny_edge_det(img_nr, img):
# Convert to graycsale
img_gray = cv.cvtColor(img, cv.COL... | [
"wuethral@ethz.ch"
] | wuethral@ethz.ch |
cafb55372742d6d435053197b309733edbd35a30 | aa257d7c9c99d66ec3723a145dbc672c688ca84a | /example | a90ef91fa95bd2484fbda6fd43f70b4be7614399 | [
"MIT"
] | permissive | unix-example-command/example | ae286828475193d7e8df57b4d76062fbfc53ccc7 | def114584c09a3119793ea3efdf5491c80a4e858 | refs/heads/master | 2020-06-04T04:00:13.992711 | 2015-07-12T14:09:06 | 2015-07-12T14:09:06 | 33,952,491 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,849 | #!/usr/bin/env python2.7
# Copyright (c) 2015 Sampo Raudaskoski, Samu Kallio
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# t... | [
"samu@samukallio.net"
] | samu@samukallio.net | |
df2614ce95235a5ab406bf91e83a7e1c6f3a910e | 0dbeaea56fc3e178894db1ac993bb2f2f7b44829 | /docs/exercises/fwi.py | ad205314073398ebced78c7922ab22a541bf0156 | [] | no_license | simonlegrand/pysit | 1bcc4fc4df225bc09f26a77751f447e3635774c8 | 1fb1a80839ceebef12a8d71aa9c295b65b08bac4 | refs/heads/master | 2021-06-30T11:43:54.909080 | 2021-03-15T13:06:17 | 2021-03-15T13:06:17 | 218,262,289 | 1 | 0 | null | 2019-10-29T10:34:57 | 2019-10-29T10:34:56 | null | UTF-8 | Python | false | false | 5,387 | py | import numpy as np
import matplotlib.pyplot as plt
from models import basic_model
config = dict()
##############################################################################
# Problem 1.1
def ricker(t, config):
nu0 = config['nu0']
# implementation goes here
return w
# Configure source wavelet
co... | [
"rhewett@vt.edu"
] | rhewett@vt.edu |
a611fe6a9f40e4b853cdbfceb4e2125ec01b9c3d | 550cfce0e688ffbba8290ece0baf5751d20016ea | /exts.py | 7b042d99f614f1a09c08a6b6987c0f83177c9d1a | [] | no_license | thunderwin/firstweb | 0c32169ea1b2081cbe6b5019ba9cdb3993c93bd2 | 53f509a7044bd3174980e6f4f74a813e5b2d9f44 | refs/heads/master | 2021-07-21T02:22:00.243247 | 2017-10-31T11:28:42 | 2017-10-31T11:28:42 | 108,497,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | #encoding: utf-8
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
| [
"nathan@MacBook-Pro.local"
] | nathan@MacBook-Pro.local |
c484b176ad74bbf3c3d2c6945058b3f6fa039104 | 1978a9455159b7c2f3286e0ad602652bc5277ffa | /exercises/05_basic_scripts/task_5_2b.py | 942e752a8c38f07e0e2a188e036ef30e8781ecff | [] | no_license | fortredux/py_net_eng | 338fd7a80debbeda55b5915dbfba4f5577279ef0 | 61cf0b2a355d519c58bc9f2b59d7e5d224922890 | refs/heads/master | 2020-12-03T17:32:53.598813 | 2020-04-08T20:55:45 | 2020-04-08T20:55:45 | 231,409,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # -*- coding: utf-8 -*-
'''
ะะฐะดะฐะฝะธะต 5.2b
ะัะตะพะฑัะฐะทะพะฒะฐัั ัะบัะธะฟั ะธะท ะทะฐะดะฐะฝะธั 5.2a ัะฐะบะธะผ ะพะฑัะฐะทะพะผ,
ััะพะฑั ัะตัั/ะผะฐัะบะฐ ะฝะต ะทะฐะฟัะฐัะธะฒะฐะปะธัั ั ะฟะพะปัะทะพะฒะฐัะตะปั,
ะฐ ะฟะตัะตะดะฐะฒะฐะปะธัั ะบะฐะบ ะฐัะณัะผะตะฝั ัะบัะธะฟัั.
ะะณัะฐะฝะธัะตะฝะธะต: ะัะต ะทะฐะดะฐะฝะธั ะฝะฐะดะพ ะฒัะฟะพะปะฝััั ะธัะฟะพะปัะทัั ัะพะปัะบะพ ะฟัะพะนะดะตะฝะฝัะต ัะตะผั.
'''
from sys import argv
ip = str(argv[1])
mask = int(argv[2])... | [
"fortunaredux@protonmail.com"
] | fortunaredux@protonmail.com |
fe91480c51ec9d9e11d8cbf4c07c3dbad667f8a4 | f2f21c643d1f5459253989e7cdba85c064cca8ce | /adding_bootstarp/adding_bootstarp/wsgi.py | b02fcd063eb36aa3dc1d03dc3104e13e690ebccf | [] | no_license | NiteshTyagi/django_tutorial | 342decea7532f1efb200b9f45e4123c581aad43f | 3353f0d2907a00f43e1faee2b97abd9af66ca08f | refs/heads/master | 2022-03-05T19:46:50.642154 | 2022-03-01T04:53:14 | 2022-03-01T04:53:14 | 205,629,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for adding_bootstarp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"nitesh.tyagi.cs.2015@miet.ac.in"
] | nitesh.tyagi.cs.2015@miet.ac.in |
38acb8c211006d953999bf2dfc3090c9f9313ea5 | ee27325f6a3e6a2d1f5e004aa60f5974ad864ae9 | /contrib/python/plotly/py3/plotly/validators/contourcarpet/__init__.py | 09c50961c6d1e808ad2e54b12da590314f6b6cc2 | [
"Apache-2.0",
"MIT"
] | permissive | alvinahmadov/catboost | f32d2b16be9db7439e429c88feb5676de842fc89 | a6e0caa4779b31199f535cf43b09879d7c653abe | refs/heads/master | 2023-06-12T19:29:52.028508 | 2023-05-11T18:33:03 | 2023-05-11T18:33:03 | 202,584,937 | 0 | 0 | Apache-2.0 | 2019-08-15T17:35:23 | 2019-08-15T17:35:23 | null | UTF-8 | Python | false | false | 4,621 | py | import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._zsrc import ZsrcValidator
from ._zmin import ZminValidator
from ._zmid import ZmidValidator
from ._zmax import ZmaxValidator
from ._zauto import ZautoValidator
from ._z import ZValidator
from .... | [
"akhropov@yandex-team.com"
] | akhropov@yandex-team.com |
1b3085c6b0e6c23be8cc76bd570aa2586dae7368 | 7e7b0a0c32998c13ed9ecb5e4f57ea3b8f6f2644 | /histo.py | eda41b3531ed474468be080ad59e8d11fea32b46 | [
"MIT"
] | permissive | Pacific01/openPDF | f37a8485060ec4f46ca69436befa269f53b62ff4 | a32f9aeab540fb6cfb7b268a905c74f33211d5ca | refs/heads/master | 2020-12-24T07:11:22.490281 | 2016-12-13T10:48:37 | 2016-12-13T10:48:37 | 73,378,180 | 0 | 0 | null | 2016-12-12T23:51:39 | 2016-11-10T12:02:49 | Python | UTF-8 | Python | false | false | 1,593 | py | # -*- coding: utf-8 -*-
import json
from os import system, remove
with open('questions.json') as data_file:
questions = json.load(data_file)
with open('answers.json') as data_file:
answers = json.load(data_file)
questions = questions['questions']
answers = answers['answers']
for question in questions:
#Generar e... | [
"cod.al.pro@gmail.com"
] | cod.al.pro@gmail.com |
dc188b288e92680cb9d0fa42245dc94996074db1 | d3178cc89ce03eb68e6b5dd7b4d99cb36d68a6a4 | /nets/vgg/__init__.py | 24afea7e7bb181f07e703fcbdb3fb4cbda1ef8c7 | [
"Unlicense"
] | permissive | jumpsnack/SOA_DORN_TF | 829debc37584d6140396fcfa58ced1612fb3c0d7 | 33814467e9135036abf28f2da19c5984c8744089 | refs/heads/master | 2021-11-27T14:10:44.364498 | 2019-01-29T07:15:15 | 2019-01-29T07:15:15 | 161,754,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | from ._vgg import * | [
"kir0302@gmail.com"
] | kir0302@gmail.com |
9b4fcb23bad9aefa541e7185a3d4e8f29c97b4b5 | d0e2ef0fb0d9a0c3c9d5656273e8eae6787faee7 | /app.py | 0dc0cdd8295a03c72a0c122a7be8a0403b5210f0 | [] | no_license | HemendraTripathi/demo2 | fe1ba499c914f5077f05f92b1b2aff2dd4e330a4 | f5ec3be456ecad37017052795c2fe72b78eab4cf | refs/heads/master | 2022-12-21T13:18:04.327276 | 2020-09-23T04:59:31 | 2020-09-23T04:59:31 | 297,856,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | #Shree Ganesh#
from bottle import (run, post, response, request as bottle_request)
import os,sqlite3,requests,json,sys,datetime
from xlsxwriter.workbook import Workbook
from ver import verify_input
from time import sleep
from get_user import get_user
from get_message import get_message
from send_message import send_mes... | [
"noreply@github.com"
] | HemendraTripathi.noreply@github.com |
e965fc7f54e9b3311e96c8e2934c07c82278a4d5 | 34d075680d450ef1ef74dd0c284f917f7b655c33 | /lyremd/main.py | 7bba0a4b39b56c992e5252b622642adff3db4ba5 | [
"MIT"
] | permissive | nao159/PycharmProjects | b252e837b44d79f630a964374c6dec48ec795966 | c3abf404c9281ce89fdcd5d032220a1d5886d8bc | refs/heads/main | 2023-07-27T14:05:26.711901 | 2021-09-09T07:09:39 | 2021-09-09T07:09:39 | 398,906,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,916 | py | from os import path
from threading import Thread
from time import sleep
from mido import MidiFile
import argparse
import keyboard as kbd
from utils import find_best_shift, midi_play_filter
octave_interval = 12
c3_pitch = 48
c4_pitch = 60
c5_pitch = 72
b5_pitch = 83
keytable = "z?x?cv?b?n?m" + "a?s?df?g?h?j" + "q?w?er?... | [
"79338207+nao159@users.noreply.github.com"
] | 79338207+nao159@users.noreply.github.com |
60e00547cea5608007f9512ca8f4505dd0388455 | 52ffc8be8e69745864f1a45992d27c94ca51cffe | /Admin/views.py | b460fb713762b1d8b21cbf2665ae329d00885cd2 | [] | no_license | Kaviya-M12/College-Enquiry-Chatbot | 137c6222798c32a6c34e2dcd67e4120d4c57ad9c | 4c0700ae6bd9b52fe80cd7ac238be239bf0b9de5 | refs/heads/master | 2023-04-09T00:32:45.470227 | 2021-04-16T11:11:55 | 2021-04-16T11:11:55 | 350,371,938 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | from django.shortcuts import render
# Create your views here.
# from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.models import User, auth
#from .models import Users
# Create your views here.
def Adminlogin(request):
if request.method== 'POST':
Mai... | [
"kaviyamadesh4@gmail.com"
] | kaviyamadesh4@gmail.com |
e066f05d3207fd56a8422bdeb6707bf4ebecfb1b | 76f3b6dd64acdf60ff464f5c0fe9b4f4151358e0 | /pymnn/pip_package/MNN/tools/mnn_fb/Transpose.py | 557f49e65400b320cf2ced36f4306e9ee1dad48e | [
"Apache-2.0"
] | permissive | qipengwang/Melon | 33ce5d4b683af70215f73b82a7b9c15ffd7706d9 | 10c9d71cdc609a290bfdd09296db6af3913bb461 | refs/heads/main | 2023-08-31T17:44:28.797075 | 2023-08-17T14:24:59 | 2023-08-17T14:24:59 | 486,278,764 | 22 | 2 | null | 2022-04-27T16:54:48 | 2022-04-27T16:54:47 | null | UTF-8 | Python | false | false | 899 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: MNN
import flatbuffers
class Transpose(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsTranspose(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = Transpose(... | [
"861026685@qq.com"
] | 861026685@qq.com |
acb80ba6822833f25d966e362da91eaa8b931efc | 1df048bc8092f333c53f4e345c729c40ba2612c5 | /count_list_4.py | 1b5da491e36d1c5ef606f85dc241e68e374beef1 | [] | no_license | saipreeti1999/python_prog | 58e3e5b5dab356fb3755b3abf36529aa475923be | 8bdb773c29e0d8b2beb3a16dd4692485b4726b79 | refs/heads/master | 2020-06-28T09:15:46.787982 | 2019-08-06T07:03:18 | 2019-08-06T07:03:18 | 200,196,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | def count_list4(num):
count=0
for i in num:
if i==4:
count+=1
return count
print(count_list4([1,4,6,7,4]))
print(count_list4([1,4,6,4,7,4]))
| [
"noreply@github.com"
] | saipreeti1999.noreply@github.com |
b7852190aea462adb905c42a666ee25b1de79558 | ecaffc075b41e36457423b810903e74280d7af75 | /manage.py | abc9e3310be544a334973b156ca82af408f28585 | [] | no_license | MounishKesavan/Myproject2 | c4d601869bc98ef78556b36c0de1412525c09d0d | b5f6dda8e4f46a2805e0bf73ef157255188cbe5f | refs/heads/main | 2023-05-26T17:39:21.955239 | 2021-06-05T13:55:19 | 2021-06-05T13:55:19 | 374,117,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "resumeparser.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. En... | [
"noreply@github.com"
] | MounishKesavan.noreply@github.com |
54e34c038c98d02ef48734b8a1b6e55a21b24693 | 32128ef01b5ca9d3c634bdffd5a870be12f23a01 | /main.py | 446a2fe5b0a39de49c9331cd568b2a0ac7a477e9 | [] | no_license | geminiwayne/cloud_assignment | 4efa2ed28800853ac28c92ed546aad6d94fcd361 | f187e86d3bf4227b270db155ea192b02a3e31737 | refs/heads/master | 2021-01-20T01:52:35.861799 | 2017-05-14T16:04:27 | 2017-05-14T16:04:27 | 89,339,596 | 2 | 3 | null | 2018-02-03T04:01:27 | 2017-04-25T09:00:07 | Python | UTF-8 | Python | false | false | 1,474 | py | #################################
#Team 4 #
#Melbourne,Sydney,Brisbane,Perth#
#Dong Wang 773504 #
#Danping Zeng 777691 #
#Jia Zhen 732355 #
#Jinghan Liang 732329 #
#Sixue Yang 722804 #
#################################
max_volum=0
im... | [
"wayne@127.0.0.1 my_computer.local"
] | wayne@127.0.0.1 my_computer.local |
30515edd35063c0b0ce56bb0b4cca5653ebf3076 | ee0d795e2874b30ba1edd568f9f2f9483854f0a7 | /Run/wsgi.py | 6c10531c680a9fc6ce3a27c9d0eba2d6ba5a2cc0 | [
"Apache-2.0"
] | permissive | CodeMaxx/Run-Backend | 91e65e5633263cf9913c814ac0985e8063679b33 | 880610ea473d0a0cde60a89064e987d92842dde3 | refs/heads/master | 2021-01-19T16:59:34.281976 | 2017-04-27T19:53:48 | 2017-04-27T19:53:48 | 86,144,226 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | """
WSGI config for Run project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS... | [
"akash.trehan123@gmail.com"
] | akash.trehan123@gmail.com |
dcf9b0a27f7c7e49b3ad9e8d7887b134117d129a | 76a6d509f366cc31febd05020a42da3024586407 | /app/recipe/serializers.py | 74e46eb63137f3678b98be3637ba359129a3648c | [
"MIT"
] | permissive | dipodaimary/recipe-app-api | 52e5a6d378d177bcf50e4db54e9eacc22f57ab84 | fbf2a452b2fed41570bb5444a202284ab1d1a03f | refs/heads/main | 2023-01-28T21:44:21.319328 | 2020-11-30T15:12:54 | 2020-11-30T15:12:54 | 316,896,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | from rest_framework import serializers
from core.models import Tag, Ingredient, Recipe
class TagSerializer(serializers.ModelSerializer):
"""Serializer for tag objects"""
class Meta:
model = Tag
fields = ('id', 'name')
read_only_fields = ('id',)
class IngredientSerializer(serializers... | [
"dipodaimary@gmail.com"
] | dipodaimary@gmail.com |
5b11a4092b62457332b80ede0b087786272aa1cf | 66580ac2680bd9060f6a4e852da52f45177e9721 | /test/functional/p2p_leak.py | 45620addb94fc3d51265c9c9c10c386dade7bddb | [
"MIT"
] | permissive | bitcoinpaythrough-project/bitcoinpaythrough | 459cae4b1805e3f966a870e820a9aab933b6a7a0 | 2aabe233abf16ec4e41be4c0528204b7a479dbd3 | refs/heads/master | 2022-11-18T17:04:30.689139 | 2020-07-16T23:42:34 | 2020-07-16T23:42:34 | 279,911,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,310 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test message sending before handshake completion.
A node should never send anything other than VERSION... | [
"bitcoinpaythrough@gmail.com"
] | bitcoinpaythrough@gmail.com |
056bd5bc3d264e0caaf44ba1301141d9a63a1857 | 4786222ae4c6302c26e63d0281c12bdf6b1c9420 | /permute.py | 2e3a66ff4bb1de27aaadbc0c7ed1549a13fa0136 | [] | no_license | Kaviprakash156/hunterset2 | 423da05270209e089150a9165ac9d89e7a31e46f | 182790c3edc66123fab398e79778e37fce5ad0c3 | refs/heads/master | 2021-01-24T22:21:42.944448 | 2018-02-28T12:25:06 | 2018-02-28T12:25:06 | 123,279,510 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | def toString(List):
return ''.join(List)
def permute(a, l, r):
if l==r:
print (toString(a))
else:
for i in range(l,r+1):
a[l], a[i] = a[i], a[l]
permute(a, l+1, r)
a[l], a[i] = a[i], a[l]
string = "kavi"
n = len(string)
a = list(string)
permute(a, 0, n-1)
| [
"noreply@github.com"
] | Kaviprakash156.noreply@github.com |
355ba71678f6bb9ec2076002fa247bff0631c87c | 7fe92cf2077e83e13d6a496ec84788bd71713d21 | /exp3/test_submodule_package/add.py | 6b07b462f69e1b50f226a867c8b5a983d644a4c3 | [] | no_license | loveu3000s/learnPython | 91546b3712deebdade1b87c0fb7691c70ad77397 | 80f7cd70708e96015e552311d843a2960654ce77 | refs/heads/main | 2023-06-12T23:08:44.040645 | 2021-05-30T04:38:18 | 2021-05-30T04:38:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | '''
Description:
Version: 2.0
Author: xuchaoxin
Date: 2021-04-13 11:36:54
LastEditors: xuchaoxin
LastEditTime: 2021-04-13 11:41:48
'''
def add_func(a, b):
return a+b
| [
"838808930@qq.com"
] | 838808930@qq.com |
42cc5b26ee8c1863e26fc185667574ef48c9737f | 4208b2260aac638af6169872c87e923195f0dd11 | /piopencvsandbox/motion_detector.py | 50de871a827c73202fafbdd551baa1d0e6d188ae | [] | no_license | cjore/pibox | be85b9e996b78392c20f267016fdd8349fe68583 | 62acdd791b1fb0bbcf209ad825e69f3d3ec1a64b | refs/heads/master | 2020-12-29T02:32:33.165913 | 2017-04-06T20:22:28 | 2017-04-06T20:22:28 | 49,876,246 | 0 | 0 | null | 2016-01-19T20:45:57 | 2016-01-18T12:44:59 | null | UTF-8 | Python | false | false | 2,897 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Import the necessary packages
import argparse
import datetime
import imutils
from imutils.video import FPS
import time
import cv2
# Construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-v", "--video", help="path to the video... | [
"chris.jore@gmail.com"
] | chris.jore@gmail.com |
079662848033b228ee09c8bb812f1c80e52e4cb0 | 1f68b6f9f55afaa7cb32df262f4fe0864472da05 | /leetcode(ๅค็บฟ็จ,DP,่ดชๅฟ,SQL)/ไบๅทDPไธ่ดชๅฟLeetCode/ๅๆบฏ/51. N็ๅ/solution.py | 761c902fdb433e6e6f0765ec8b75578496b26cb9 | [] | no_license | faker-hong/testOne | 7c4496362cb5495c25c640076102fe0704f8552f | 768edc4a5526c8972fec66c6a71a38c0b24a1451 | refs/heads/master | 2022-12-04T14:47:53.614685 | 2020-10-30T03:17:50 | 2020-10-30T03:17:50 | 196,514,862 | 1 | 0 | null | 2022-11-22T02:43:32 | 2019-07-12T05:35:09 | Python | UTF-8 | Python | false | false | 1,100 | py | class Solution(object):
def solveNQueens(self, n):
"""
:type n: int
:rtype: List[List[str]]
"""
# ๅคๆญๆพ็ฝฎ็็ๅไฝ็ฝฎไธไนๅ็ๆฏๅฆๅฒ็ช
def is_valid(row, col, track):
# ๅ ไธบๆฏไธๆฌก็rowไธๅ๏ผๆไปฅไธ็จๅคๆญๆฏๅฆๅจๅไธ่ก
if col in track: # ๆฏๅฆๅจๅไธๅ
return False
... | [
"42666723+hongcheng97@users.noreply.github.com"
] | 42666723+hongcheng97@users.noreply.github.com |
bc3e0aae1bddeb212273308b0e470cd458c735c0 | ccabc13a33099b751cbf02459237ff806fdf3037 | /week3/BiDAF_tf2/layers/attention.py | 606212184a2c37720d71ba002efb8827df0b2717 | [] | no_license | SoloPro-Git/MRC_learning | 9007f4f1cac814925be063a2d7857114a856a212 | 2a22a96789e21c6bb5e9d6fd301a57a69a01ce93 | refs/heads/master | 2023-02-07T18:48:56.898289 | 2020-12-17T10:01:04 | 2020-12-17T10:01:04 | 313,486,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | import tensorflow as tf
class C2QAttention(tf.keras.layers.Layer):
def call(self, similarity, qencode):
# 1. ๅฏนqecncode่ฟ่กๆฉๅฑ็ปดๅบฆ ๏ผtf.expand_dims
qencode_exp = tf.expand_dims(qencode, axis=1)
# 2. softmaxๅฝๆฐๅค็็ธไผผๅบฆ็ฉ้ต๏ผtf.keras.activations.softmax
similarity_softmax = tf.keras.activations.s... | [
"137033760@qq.com"
] | 137033760@qq.com |
7b7f8627897a44c4bb4219ff4d136d59fc8e6391 | 7b218983611d96c653f99c3e2c7b2bb74091ac9e | /splitNSP.py | b5d2cdb1b990a4bdf5b9473e40cda1c86e5dcbb9 | [
"Unlicense"
] | permissive | doctorpangloss/splitNSP | 02de827b20b6c949967f38e090e75808674fc577 | 15941e8204b73a4261034e39d9d5939c97394261 | refs/heads/master | 2020-04-25T07:12:43.167583 | 2019-02-26T00:24:15 | 2019-02-26T00:24:15 | 172,607,074 | 0 | 0 | Unlicense | 2019-02-26T00:23:41 | 2019-02-26T00:22:27 | Python | UTF-8 | Python | false | false | 5,634 | py | #!/usr/bin/env python3
# Author: AnalogMan
# Modified Date: 2018-10-08
# Purpose: Splits Nintendo Switch files into parts for installation on FAT32
import os
import argparse
import shutil
import os.path
import subprocess
from datetime import datetime
startTime = datetime.now()
splitSize = 0xFFFF0000 # 4,294,901,760 ... | [
"noreply@github.com"
] | doctorpangloss.noreply@github.com |
b5f9ff772b6e5342461769fd2d62a492d7654f0d | d1b9fc59b69ffbfe988ea308f9005df12b50d4cd | /downloader.py | 93d08ab725bf40a751a2c400bc9e0325988b1be2 | [] | no_license | jakemuncada/xkcd-crawler | 98b9287fe213dbcbf17c64d9433bcf641369db8e | 7f0788585d41dfb13321290c654856de16123113 | refs/heads/master | 2023-03-28T02:55:03.221505 | 2021-04-01T00:32:17 | 2021-04-01T00:32:17 | 337,334,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,376 | py | """
Provides high-level functions for fetching stuff from the internet.
"""
import shutil
import requests
class DownloaderError(Exception):
"""
Errors related to the Downloader
"""
class Downloader:
"""
Provides high-level functions for fetching stuff from the internet.
"""... | [
"jake@tkb.mss.co.jp"
] | jake@tkb.mss.co.jp |
a78cee9826237d0c0568190586b4b45200cc39e1 | a49bab6a5a7df245c0eea181cd041ae344cc018e | /server/settings/dev.py | 3c192fb5410716bedffcfd9d31060f4382539528 | [] | no_license | ego/pyblog | 0a52d2cd2835cd9a3607b55075ad985b960c8b40 | 28b6a9066a60b71bbec9f7b37ef40794e8b5e2aa | refs/heads/master | 2023-04-02T16:37:00.922916 | 2020-11-07T23:58:55 | 2020-11-07T23:58:55 | 123,491,870 | 0 | 0 | null | 2021-04-16T20:36:49 | 2018-03-01T21:01:04 | Python | UTF-8 | Python | false | false | 456 | py | # Dev settings
from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'blog_db',
'USER': 'blog_user',
'PASSWORD': 'blog_passwd',
'HOST': 'localhost',
'PORT': '5432',
}
}
CACHES = {
'default': {
'BA... | [
"0x7c48@gmail.com"
] | 0x7c48@gmail.com |
b60a557139a95f213d84afedb6641a8bf0a4412d | ccfd551d677652ba1cf716fd514fac454faefd51 | /minify.py | 9b534e07816dee71eaff7a652906e9e8bc30f3f4 | [] | no_license | miguel-acevedo/CssMinify | 3b7ce385773eb15ec2167a1300945c5e20dfc5ec | 10e1ce9f059277544c48fd4955923a270e67fd51 | refs/heads/master | 2021-01-15T11:03:27.273605 | 2017-08-07T19:18:05 | 2017-08-07T19:18:05 | 99,608,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import os
import requests
css = 'https://cssminifier.com/raw' #Calls the minifier url
js = 'https://javascript-minifier.com/raw'
def minifyCode(url, path):
print(path)
data = {'input': open(path, 'rb').read()} # Packs the css file to a data variable to be sent off to the minifier.
response = requests.post(... | [
"acevedomiguel@outlook.com"
] | acevedomiguel@outlook.com |
bcaf8c92849c381fc6a341c20a4a37be90d0e991 | 6b948d8110b910aed1989e940f194dcee5e3ba51 | /538_HW1_113166835/model.py | 5d4531881ef1d484979c3a06b653b5e6779f15a5 | [] | no_license | SriramVithala/NLP | 3589e07b7e5348c5418723cb74f780d607cb8932 | ca61b9a9923f816312070e9a5d7b4a98ba66ffd5 | refs/heads/main | 2023-08-18T10:48:37.557680 | 2021-09-27T03:08:06 | 2021-09-27T03:08:06 | 409,264,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,081 | py | """
author-gh: @adithya8
editor-gh: ykl7
"""
import math
import numpy as np
from numpy.core.fromnumeric import size
from numpy.core.records import array
import torch
import torch.nn as nn
sigmoid = lambda x: 1/(1 + torch.exp(-x))
class WordVec(nn.Module):
def __init__(self, V, embedding_dim, loss_func, counts)... | [
"noreply@github.com"
] | SriramVithala.noreply@github.com |
1821540a5a6f992cc99d9431e91eda6bcd4b6a05 | c8ef42b8fa355d62bb6c06c61c54baf00e4c4c90 | /KDD99/kddMultiClass.py | a8c5c7192bf7ad6d92d28446d80cef682697cb86 | [] | no_license | Gci04/LightweightAutoencoderApproachForAnomalyDetection | 0d90517bcb34765a686be6e30aea3f5a4a529d73 | a474218b786e45448bde36ef5cb549cae82a326a | refs/heads/master | 2022-04-27T04:12:20.376461 | 2020-04-07T12:24:46 | 2020-04-07T12:24:46 | 187,182,098 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | import numpy as np
import pandas as pd
np.random.seed(43)
import os, sys, keras, pickle, warnings
from scipy import stats
from time import time
import tensorflow as tf
from keras.layers import Input, Dense, Dropout
from keras.models import Model
from keras.callbacks import TensorBoard
from keras import optimizers, re... | [
"gcinzoe04@gmail.com"
] | gcinzoe04@gmail.com |
5c9012668e6fd64b0cc6875fd32e3144b136c72f | 1c538a3c3a0c218bab4137bcefe650fdfc8be252 | /api_server/assign_resources.py | ae6b08bbdbf8fe0adec08e7da5694a0c4e525383 | [] | no_license | Team-LZZZ/CarPooling-Server | b0070a41c6eea51232179d25ba7552d57b41d7bc | 658b9f82a81d2f6a0cae9d563c93a57f75b2809e | refs/heads/master | 2021-08-29T11:48:39.094390 | 2017-12-13T21:42:47 | 2017-12-13T21:42:47 | 108,786,782 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from . import api
from .api_resources.UserLogin import UserLogin
from .api_resources.UserSettings import UserSettings
from .api_resources.UserRegister import UserRegister
from .api_resources.CarPools import CarPools
from .api_resources.GetToken import GetToken
from .api_resources.Reservations import Reservations
from ... | [
"zhouyou66666@gmail.com"
] | zhouyou66666@gmail.com |
6de3f25bbada06daec113eef9872b1c48f03e8b2 | ac46ba236c54af834ef1d37870fd6147b9b606e3 | /lesson_6/insert.py | 63defec9dcb5a5177ee284cd5c3690357e20fb56 | [] | no_license | Loosper/algorithms | 55c929022501a32a65ef94a3b98e3bbb0c152eaa | 7c435a5c2ef50f59b292d907854e86c07698b4c3 | refs/heads/master | 2021-05-15T09:30:27.632163 | 2018-02-10T15:59:49 | 2018-02-10T15:59:49 | 108,136,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | """
Insert Node at a specific position in a linked list
head input could be None as well for empty list
Node is defined as
class Node(object):
def __init__(self, data=None, next_node=None):
self.data = data
self.next = next_node
return back the head of the linked list in the below method.
"""
... | [
"boian4o1@gmail.com"
] | boian4o1@gmail.com |
22667e36536935585748b0c24fcc4a732a2b8384 | d5e0347bc2f492afb969149113b494c20a030244 | /basic/list.py | a380fe9b6d965c5b32418c285739e60e76c79a10 | [] | no_license | qingmingsang/python-demo | 2eff3cd7452f690cf4e058a28e83099b2dc3a0c7 | 3c96659cd5d5de537e3eefdc42086cf36851f14a | refs/heads/master | 2021-04-06T14:11:16.248901 | 2019-10-15T16:31:43 | 2019-10-15T16:31:43 | 125,257,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | classmates = ["Michael", "Bob", "Tracy"]
print(classmates)
print(len(classmates))
print(classmates[-1])
# print(classmates[6])
# IndexError: list index out of range
print(range(5))
# range(0, 5)
print(list(range(5)))
# [0, 1, 2, 3, 4]
sum = 0
for x in range(101):
sum = sum + x
print(sum)
# 5050
L = ["Bart", "Lis... | [
"358242939@qq.com"
] | 358242939@qq.com |
b4cef5c07bfaf8de55ea028da11403d750c273ac | 90e2412b0216f27285a98f4ee713e8f819910a6f | /manage.py | b9cc74196e0c0be51010c293aecec323f3a66509 | [] | no_license | rsikri/LetsCarpool | 504edbf1125c736a51896865b7e137ac8b9d3d82 | 60c6aa010d2308844fb168612201e6659f04fc37 | refs/heads/master | 2021-04-09T11:42:40.011302 | 2018-03-16T21:30:00 | 2018-03-16T21:30:00 | 125,552,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ShareYourRide.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"richasikri@Richas-MacBook-Pro.local"
] | richasikri@Richas-MacBook-Pro.local |
f3c78a164ef56f6a0ec9276cfd66d8ebe7bc2607 | 8dbc386a5ec3943ac64b35a4da34b70fbb988152 | /src/handlers/me/articles/comments/reply/handler.py | af9a8487352380b5ead2b639f4a498b23f2a10df | [] | no_license | AlisProject/serverless-application | 60cab427d3088f1fa7b653ad7ee78674d64dd70c | 8a3f9ed146f71281036986ec5baa481718768866 | refs/heads/master | 2023-03-30T06:48:47.426067 | 2023-03-28T13:09:24 | 2023-03-28T13:09:24 | 123,153,011 | 62 | 20 | null | 2023-03-28T13:09:18 | 2018-02-27T16:00:10 | Python | UTF-8 | Python | false | false | 328 | py | # -*- coding: utf-8 -*-
import boto3
from me_articles_comments_reply import MeArticlesCommentsReply
dynamodb = boto3.resource('dynamodb')
def lambda_handler(event, context):
me_articles_comments_reply = MeArticlesCommentsReply(event=event, context=context, dynamodb=dynamodb)
return me_articles_comments_reply... | [
"matsumatsu20@gmail.com"
] | matsumatsu20@gmail.com |
c8bf5f9685eb4c0e1013dff3da0cfca040acec35 | 4c0dd004f54979c87db0bcaff3f74490d82591a7 | /plotBaseline.py | c27724ae1f21ccdfc3efb25eff309f8f8a56610d | [] | no_license | albertpuente/newInterpDetect | 3decf2a5459e82ba69ca4d754c869af3f1b3a94a | 174b7ecd521f2918f742dafb7e1939357c55aa35 | refs/heads/master | 2021-01-17T21:39:25.174906 | 2016-07-21T11:17:31 | 2016-07-21T11:17:31 | 62,659,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | import matplotlib.pyplot as plt
V = []
theta = []
theta_b = []
with open('DEBUG_FIND_OUTPUT.txt', 'r') as f:
for l in f.readlines():
things = l.split(' ')
V.append(things[0])
theta.append(things[1])
theta_b.append(things[2])
plt.plot(V, 'r-')
plt.plot(theta, 'b--')
plt.plot(theta... | [
"albertpuente93@gmail.com"
] | albertpuente93@gmail.com |
3123f9b6c63d2f4d24498b526b5adf3d5f85a175 | 99247d0562f3bdc1952ef3f8b2b7465247bde9eb | /users/views.py | 61f199e43fd6b308f4bff2b029179ada5808d86f | [] | no_license | Goryunova/yamdb_final | c2977ef6ec359adcac98538b3cf2d010ddbb0630 | 0950dc35ca454dfe44d92b90f40a26f66ccfa452 | refs/heads/master | 2023-07-26T19:04:09.091856 | 2021-09-11T13:19:19 | 2021-09-11T13:19:19 | 401,342,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from yamdb.models import User
from yamdb_auth.permissions import IsAdmin, IsAuthenti... | [
"bilka77@mail.ru"
] | bilka77@mail.ru |
b7a247ccaea8874f9bdfa9cd247def7e342ba18d | c970c3800ab7a33989d7fffaee3da63f72dac6ea | /api_trial2.py | c1fcd40999a337e958197b9b473f2f67fcd90672 | [] | no_license | smustala/DSCI551-Project | 8053d16f2c7f53e8533277c34a1e1ab0444f353b | fe335785e0cb529656f064f059435fcd8f0753c0 | refs/heads/master | 2023-01-08T19:24:44.866301 | 2020-11-06T11:30:01 | 2020-11-06T11:30:01 | 310,578,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 6 02:10:06 2020
@author: shalinimustala
"""
import flask
from flask import request, jsonify
def tempbymonth1(month, year, countryname):
from mysql import connector
cnx = connector.connect(user='shalini1', password='hello', host='18.1... | [
"shalinimustala@Shalinis-MBP.attlocal.net"
] | shalinimustala@Shalinis-MBP.attlocal.net |
a1e35aa2875921cf394a2c897190977063e15a94 | 849c3c4946c116e7a799d7555e70c310f5236435 | /playground.py | fe9e014182df7020da2e83af988766b493d61416 | [] | no_license | gwendahartsoe/Graduation-Project | faa7e19540b4d381a6ef2e4fd5ae72b456f6091d | 0b6db6c6913ac5ae2453d7d038192222a4eed629 | refs/heads/master | 2023-04-20T11:38:01.860316 | 2021-04-28T11:37:45 | 2021-04-28T11:37:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | # ๅฏผๅ
ฅๆจกๅ
import numpy as np
import random
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader, Dataset, TensorDataset
def get_kfold_data(k, i, X, y):
# ่ฟๅ็ฌฌ i+1 ๆ (i = 0 -> k-1) ไบคๅ้ช่ฏๆถๆ้่ฆ็่ฎญ็ปๅ้ช่ฏๆฐๆฎ๏ผX_trainไธบ่ฎญ็ป้๏ผX_validไธบ้ช่ฏ้
fold_size = X.shape[0] // k # ๆฏไปฝ... | [
"819156618@qq.com"
] | 819156618@qq.com |
5df342ca1b06fc20c69baf25424afb299aa86f44 | 201a281d8539ad015d8d1e3d2a0e351a0fb51640 | /Charity.py | 8d488c421fc80c18907b5a29ff72c7541e06b1d1 | [] | no_license | Once61/charitywall | 6219ec6db0742ba4556ff45efa52af3ce021186d | b84b60d4f2799c8e473b839612adb995220800bf | refs/heads/master | 2022-11-21T11:47:22.576127 | 2020-07-13T17:14:54 | 2020-07-13T17:14:54 | 281,611,305 | 0 | 0 | null | 2020-07-22T07:48:22 | 2020-07-22T07:48:21 | null | UTF-8 | Python | false | false | 71,003 | py | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
#github.com/adilkhan/Cam-Hackers
import requests,re,os
import time
import sys
print("""
\033[1;31m\033[1;37m โโโโโโโ โโโโโโ โโโโ โโโโ โโโ โโโ โโโโโโ โโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโ โโโโโ โโโ โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโ... | [
"noreply@github.com"
] | Once61.noreply@github.com |
e82b311c44c264672396d4f6b68583127bf3dcc8 | b700c8cfd4033be5a3081f5af94e8a65796dd04a | /plots.py | 0c4542ad4c859ecee52ec5f03927bd5050e75b5e | [] | no_license | ahriley/infall-times-gaia | 149ca9fbb4d5be0b9547d6e2ef702c9ef64b450e | 96764b33d1da2d40cc8893d7f43ca1f4a2323808 | refs/heads/master | 2021-06-01T22:35:03.219172 | 2018-07-12T16:15:10 | 2018-07-12T16:15:10 | 136,056,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,159 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from utils import *
from astropy.cosmology import WMAP7
# Rocha plots for ELVIS
r = np.array([])
for sim in list_of_sims('elvis'):
halos, subs = load_elvis(sim=sim, processed=True)
r = np.append(r, subs.r)
max_r = np.max(r)
bind, z, r, v_... | [
"30327239+ahriley@users.noreply.github.com"
] | 30327239+ahriley@users.noreply.github.com |
06615d6a0ed9cca545e0f513c0da0cc11049404f | bc3f5e9272b1142a104390871f86efb97202503b | /draiver/tests/DataStreamer/server3.py | 758310cd263bfcaa6ce23410b294a73b0417ddb7 | [] | no_license | MarcoSignoretto/drAIver | dce358de22e1de03a7435d9388bdfabcf9584f2d | 7a14b3973a2ca8b57f09eb3ee8a1fedaa5e1cadc | refs/heads/master | 2021-04-06T12:25:40.688394 | 2018-06-16T10:38:06 | 2018-06-16T10:38:06 | 125,176,238 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | #!/usr/bin/python
import socket
import cv2
import numpy
def recvall(sock, count):
buf = b''
while count:
newbuf = sock.recv(count)
if not newbuf: return None
buf += newbuf
count -= len(newbuf)
return buf
# camera init
camera_left = cv2.VideoCapture()
camera_left.set(4, 640)... | [
"marco.signoretto.dev@gmail.com"
] | marco.signoretto.dev@gmail.com |
f1eda5ad518399f11f695d6ba4d08d977131db26 | c72758161d4da978a0cc0c87d88535fc9ca58ba5 | /inc/preparation/PrepareBaseRequest.py | 162f602b36060eddbf619cace00aa35737e10375 | [] | no_license | Damian89/extended-baserequest-importer | 5478878aefbfa90d34e8ac880b2e84532c0ef202 | 3f72e51546bb833720f014377284bd966db6275a | refs/heads/master | 2020-04-27T09:03:34.575147 | 2019-08-02T06:32:22 | 2019-08-02T06:32:22 | 174,198,885 | 10 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | # -*- coding: utf-8 -*-
# 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 distributed in the hope... | [
"mail@damianschwyrz.de"
] | mail@damianschwyrz.de |
a2f3badba22fbc90f72923fcc33d4c53fcd479b5 | 10ae0467d267b2abbcb0c622d151823d91841f65 | /Demos and Tests/Student Work - 2010/Dakota.py | 1484d643a5c742945839bca3462e6bce09c8238b | [] | no_license | Panda3D-public-projects-archive/pandacamp | 06b90f42796bf0734ba7932c927c43508ec381f3 | 1b8950589db10259e078edbdecade5c1b6beee2d | refs/heads/master | 2022-04-27T01:12:46.132224 | 2015-03-13T23:00:19 | 2015-03-13T23:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | from Panda import *
def randomTetra(pics):
pic1 = shuffle(pics)
return tetra(pic1[0], pic1[1], pic1[2], pic1[3], v1 = P3(random11(), random11(), random11()), v2 = P3(random11(), random11(), random11()), v3 = P3(random11(), random11(), random11()), v4 = P3(random11(), random11(), random11()))
group = ["pics/duc... | [
"ProfessorJohnPeterson@gmail.com"
] | ProfessorJohnPeterson@gmail.com |
f2c1ef7bf41e8e509ea29dba4ec11c8ad4e17a5e | 0d90a0e3174c72aceb4107ca378c52afc7fa7f55 | /sslproject/sslproject/settings.py | 4041abe31b3cfa8da348a39382be9e75de4cdc36 | [] | no_license | alphaWizard/SSLproject | c555e2daffee539038558d483b5f0f44c6775cf3 | c18543316484cb835b93c35c49bfb872de2d47c8 | refs/heads/master | 2021-08-22T03:45:54.702602 | 2017-11-29T05:44:47 | 2017-11-29T05:44:47 | 108,448,143 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | """
Django settings for sslproject project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"debangshubanerjee1997@gmail.com"
] | debangshubanerjee1997@gmail.com |
5b3dbdd973981f53d7e2243cb5ad29122bae8999 | 6f2ee69b2b69877950335936f23f8d584e7711af | /src/implementations/helpers/partition.py | a2a6bd9976b416318124b09e58107623ac1a9881 | [
"MIT"
] | permissive | wobedi/algorithms-and-data-structures | b5a8fdb27be53ba9fae2a93c9aaa949852bf5ce4 | 2d43ac66fd87881182aed65ec22e7016541e9315 | refs/heads/master | 2020-08-24T08:21:17.406623 | 2020-08-04T13:47:28 | 2020-08-04T13:47:28 | 216,792,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | def three_way_partition(arr: list, lower: int, upper: int) -> (int, int):
"""In-place partitioning of arr. Implements:
https://en.wikipedia.org/wiki/Dutch_national_flag_problem#The_array_case
"""
lt, gt, i = lower, upper, lower
# Performance could be improved by using smarter pivot, e.g. median
... | [
"yanick.steinbeck@gmail.com"
] | yanick.steinbeck@gmail.com |
5e5690e04aa90942ebf8fe480955b7c04ff6e383 | a78f5fd783acad55e97916114e3ccb0d817e8ae3 | /2021/12/day12.py | 99b2835aae66c8fe2c4262b65d9ad70308275469 | [] | no_license | fredrik-aschehoug/AdventOfCode | 3853c1f947ebd0fbec6232674e258763a99775da | f44d15bf1167dcbbcb15c5a317f72e45ba560316 | refs/heads/master | 2023-06-22T23:04:40.670487 | 2023-06-13T11:21:08 | 2023-06-13T11:21:08 | 225,464,307 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from utils import get_network
from PathFinder import PathFinder1, PathFinder2
def main():
with open("12/input.txt", encoding="UTF-8") as file:
lines = file.read().splitlines()
network = get_network(lines)
pathfinder = PathFinder1(network)
paths = pathfinder.get_distinct_paths()
print("Pa... | [
"15358786+fredrik-aschehoug@users.noreply.github.com"
] | 15358786+fredrik-aschehoug@users.noreply.github.com |
66fe9f443d7e7476ac2947896a309613455c29b4 | b527e5f05d2431a724b95beaf42e80377e09dd4e | /node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi | 7b693bc9ed8b7a0476ffe3e59cd6bc66c4783400 | [
"Apache-2.0",
"MIT"
] | permissive | wolfoxonly/snc_explorer | e8ee42d3db5ab5d8032e21bf462ff435abbb5bea | c0e7ab6a664407f96203d816eeb25f9fc2f986c1 | refs/heads/master | 2020-04-17T11:43:31.325818 | 2019-02-26T08:57:08 | 2019-02-26T08:57:08 | 166,552,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,267 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 41,
"host_arch": "x64",
"node_install_npm": ... | [
"16358164@qq.com"
] | 16358164@qq.com |
2294a459f1fdf255465e1c2a3b0a875e3b2dd9a2 | 0ea9136591fbd928716cd6c1159ffc8985de0242 | /Mongo_Search/old scripts/SearchChannel.py | aaffb1ce5e6d28c4e55e6ffe9dc99ebc35c3cdbe | [] | no_license | kaayem/Kym | 0d8b1042fbd98772b58f294aecb122750d00b99b | 8f99c20757c5505809cacbe5459ba6605ac93e98 | refs/heads/master | 2022-11-17T13:29:46.111333 | 2020-07-22T11:55:01 | 2020-07-22T11:55:01 | 277,321,585 | 0 | 0 | null | 2020-07-22T11:55:03 | 2020-07-05T14:45:47 | Python | UTF-8 | Python | false | false | 1,478 | py | #generate set up checks for python
# check all brands in a market
import pymongo
from pymongo import MongoClient
import pandas as pd
import numpy as np
import os
def db_connect():
#connecting to a DB in mongoDB
try:
if client.get_database(DB_NAME):
print("Connection Successful!")
... | [
"kaayempatel@wessexinsights.com"
] | kaayempatel@wessexinsights.com |
7e0ddf1ed82eb7a872aeed25135c9b4572b437ac | a7b722424273b0b9ad00ca0088d129b464c9bb1b | /Back-end/store/admin.py | 7d34d3b73fb34832d5bba84103412c4d01fae0ad | [] | no_license | HackRx2-0/ps2_legit_geeks | df1f71dcf0b43ef750ceeb9ff6ccdae1b2ce4c9e | c19de4403c45fdd5ed132e5c17a8f22c6aea0f46 | refs/heads/main | 2023-06-23T02:12:44.494118 | 2021-07-24T09:50:30 | 2021-07-24T09:50:30 | 388,513,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from django.contrib import admin
import nested_admin
from .models import Store, ShippingZone, ShippingMethod, BankAccount
class StoreAdmin(nested_admin.NestedModelAdmin):
model = Store
# inlines = [WholesaleProductVariantInline]
class ShippingMethodInlineAdmin(nested_admin.NestedTabularInline):
model =... | [
"181210045@nitdelhi.ac.in"
] | 181210045@nitdelhi.ac.in |
a86b793d90e6718bbb40e66343ea07b986f34a35 | 9e99a543ac84503729604c3fc967742f741f7d77 | /todo-list.py | 9a834c7f1182783a0a02aa028fd6d25d9a09ae5e | [] | no_license | emreyeprem/python-class-object | 17b512a9dfd0ae7a96f9903b6085f33c0e2af599 | 9da06cdc269265a0359dadaed3cc3056b821f6b4 | refs/heads/master | 2020-03-29T18:21:12.922481 | 2018-09-25T04:23:31 | 2018-09-25T04:23:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | #---------------------- First Try------------------------
# priority_list = []
# task_list = []
# task_and_priority_list = []
#
# while 1==1:
# task_title = input("Enter the task: ").lower()
# task_priority = int(input("Type a number from 0 to 5(0: least important -> 5: highly important): "))
# quit_program... | [
"emreakurek@MacBook-Air-2.local"
] | emreakurek@MacBook-Air-2.local |
a528ab42b50817339d31b862bfcedf826beed8cd | 8751fdfb52527ae28d2bf9a3d982b9fe12c774b8 | /homework4.py | 526128a73f6b56f1e907d7b9f90f77b87f932b54 | [] | no_license | acheng6845/DataStructuresLab | f38f8fe17d71e7a6ad0ba0b46a645f151e91c113 | 65e0d025d4ec6857cf762df4cbadf957ed23b8c7 | refs/heads/master | 2021-09-02T07:42:05.616983 | 2017-12-31T15:39:38 | 2017-12-31T15:39:38 | 115,870,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,925 | py | # ---------------The PList code I posted earlier---------
#Note to Self: Submit assignment immediately after finishing it, so you don't leave it to chance waking up in the middle
#of the night a few days later and a few hours before it's due.
class PList:
class _Node:
__slots__ = '_data', '_prev', '_next'... | [
"acheng6845@gmail.com"
] | acheng6845@gmail.com |
e79ce4977b6a49f90c9aaada2b5644b561275441 | a2170a9fc6355dfd9a2a54e7b7f9de531dc74c9c | /pywhoisxml/exceptions.py | de667387dc2898d0ed0a1507dd5f50e4c2b7e9f6 | [] | no_license | VarthanV/pywhoisxml | 82a826d0c23b9319e1fd75b58bab4bbb7602786e | 47fb58ace086df5222fbef936fc71bbb4383d0d1 | refs/heads/master | 2022-05-27T03:30:46.806937 | 2020-05-01T03:32:07 | 2020-05-01T03:32:07 | 259,951,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | class PyWhoisException(Exception):
pass
| [
"vichu@Vishnus-MacBook-Air.local"
] | vichu@Vishnus-MacBook-Air.local |
686c9615805e1a5fc4ed701965c783ef17b68d2e | 3de6a297bdacd268c9aafadc37d0f53d1a77da76 | /example/strategy_two_graphs.py | 877f0c12157d9964cba360e559135a7547036ae7 | [] | no_license | HipGraph/GNNfam | bfe7ae9b3f120f7fd06174dc318c086bb4d8e0e0 | 7b6e2bc7f07402696b574625222979b8f57a1a24 | refs/heads/master | 2023-04-26T05:12:34.990943 | 2021-05-25T23:38:27 | 2021-05-25T23:38:27 | 357,778,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | #!/home/anuj/virtualenvforest/globalvenv/bin/python
import networkx as nx
def main():
basegraph = nx.Graph()
with open('graph.txt', 'r') as f:
for line in f.readlines():
a, b, c = line.strip().split()
basegraph.add_edge(int(a), int(b), weight=float(c))
#basegraph is the n... | [
"abgodase@iu.edu"
] | abgodase@iu.edu |
c280ee3b854a4f6043932dbcd3aa1b31846f9e2c | 47988c4d1e2c07cd2465da204890f481d59dbd4b | /src/tests/ftest/util/command_utils_base.py | e25429c501973d0d6e453644fdfcba2b0cf4b268 | [
"BSD-2-Clause",
"BSD-2-Clause-Patent"
] | permissive | dsikich/daos | 974000a2e9a37c2edc994007f864ab69afe347e3 | 13385f8eb3209dfe9f63772a68a3bb8cadaf2e23 | refs/heads/master | 2022-07-07T05:46:07.074084 | 2022-06-29T13:01:52 | 2022-06-29T13:01:52 | 242,208,796 | 0 | 0 | NOASSERTION | 2021-12-07T21:17:27 | 2020-02-21T18:50:31 | C | UTF-8 | Python | false | false | 26,663 | py | #!/usr/bin/python
"""
(C) Copyright 2020-2022 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
from logging import getLogger
import os
import yaml
from exception_utils import CommandFailure
class BasicParameter():
"""A class for parameters whose values are read from a yaml file."""
de... | [
"noreply@github.com"
] | dsikich.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.