blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f9638e5e882356a6a93dca5d028d3a860e22bdd4 | 12560bce3420db3ebd3377c3b107e985b61ff368 | /urldecorators/tests/tests.py | 34e4c88d7b4cff7fecb40dd1d4a7d97cd337ea18 | [
"BSD-3-Clause"
] | permissive | mila/django-urldecorators | 0c167b850e52d1227295d9d7ce442e78ef5cfeda | 1594fee73aff0269f4d2edd489f4653bb6746936 | refs/heads/master | 2021-07-16T23:55:15.465823 | 2021-02-28T11:13:38 | 2021-02-28T11:13:38 | 288,947 | 5 | 2 | BSD-3-Clause | 2021-02-28T11:15:38 | 2009-08-26T18:10:14 | Python | UTF-8 | Python | false | false | 13,106 | py |
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from urldecorators import url
from urldecorators.tests import views
__all__ = ["ResolverTestCase", "ConfigurationTestCase", "ViewTypesTestCase"]
class ResolverTestCase(TestCase):
def test_view_is_resolved(self):
... | [
"miloslav.pojman@gmail.com"
] | miloslav.pojman@gmail.com |
92f786936e34101e74491e1be18a6b873e6c9c03 | a1a7752ee2d39d0482eb4dfad3bfcbc8759cd38d | /09_Birthday_Cake_Candles.py | a901bf85ec2641ec50ace6097e13c7ee3fc15bde | [] | no_license | waditya/HackerRank_Algorithms_Warmup | 80a4d4923733a0ad4d8ebdd89c30b0bf5e905b1f | c74ee328ed2064fa97d57c3791c084d576238ddc | refs/heads/master | 2018-10-05T06:36:29.742956 | 2018-06-12T05:01:09 | 2018-06-12T05:01:09 | 115,484,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | #!/bin/python3
import sys
def birthdayCakeCandles(n, ar):
# Complete this function
max_length = len(ar)
max_element = max(ar)
#print(ar)
arr = []
ar.sort()
#print(ar)
arr.append(ar.index(max_element))
ctr = 0
for i in range(arr[0], max_length, 1):
#print(ar[i])
... | [
"noreply@github.com"
] | waditya.noreply@github.com |
446bf97de636b97dbc926fceb6f46fb2256c7d67 | fd932ae47ec222fb69185032ac1ffc0fe99c7fa7 | /optopsy/option_queries.py | 81ebe5d15f7a88d8fa8464a978513861fa2841bd | [
"MIT"
] | permissive | forestzh/optopsy | e7833730047ed54afe942344f6ad2d5507a60a43 | 3a43f6c5382f2936a9ded3a43918a862cc0425f2 | refs/heads/master | 2020-04-04T23:11:42.481789 | 2018-11-03T20:12:18 | 2018-11-03T20:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,721 | py | """
The goal of this module is to abstract away dataframe manipulation
functions and provide an easy to use interface to query for specific
option legs in a dataframe. All functions will return a new pandas
dataframe to allow for method chaining
"""
from optopsy.enums import Period, OptionType
from optopsy.data import ... | [
"noreply@github.com"
] | forestzh.noreply@github.com |
87f0f9add2a04e3e9af9682fd44a9797e7e44232 | 53a78f4a484f44774aa6c8c252da57c3a129c87b | /scripts/utils.py | 0e9797fe366361ae70f6f2b2058fe75454f86d4f | [] | no_license | alexey-semikozov/sticker-face | bd482ffaba2447c366368004c9d62b2b0385552a | 6cc691dc87ca3d8ab32308aaabd542cb7b7b8d80 | refs/heads/master | 2020-04-14T13:36:17.549559 | 2019-03-09T13:36:54 | 2019-03-09T13:36:54 | 163,873,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,661 | py | import cv2
import numpy as np
from PIL import Image
import queue
import itertools as it #from more_itertools import chunked
def detect_faces(f_cascade, colored_img, scaleFactor = 1.1):
#just making a copy of image passed, so that passed image is not changed
img_copy = colored_img.copy()
#convert the test ... | [
"maxim_71rus_wow@mail.ru"
] | maxim_71rus_wow@mail.ru |
97edf149a1283818bdacab78f38e2d2fed9b5fdd | 5b5d164dcbbce48373d9b3c1e0476b8a49895363 | /pages/config/urls.py | ff71c59ece132e40edc18ce4e1dec33435bc05bc | [] | no_license | tay2001/pages-app | ecb32dcc9cf4a9861cf17fdbf4ba379fb1f6921c | 5243eb3830d44522135c1b7cd8c46522e1c99b3f | refs/heads/main | 2023-08-13T11:58:58.737312 | 2021-09-20T20:42:30 | 2021-09-20T20:42:30 | 407,016,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Clas... | [
"noreply@github.com"
] | tay2001.noreply@github.com |
a31ecbb74f5021e8c507af43755f93938fed2646 | e7405390a21ce92a62f5617095ddb5ed3a8ab358 | /theory/lvps/base_mtl.py | 05fede0be2e5904f5c973369d7a12ff2db235be6 | [] | no_license | joshnies/turring-theory | 4d6351150da1fed059053115ff9f1b2526a8826a | 4b3054fd27589e78e864dbd7f2a38735663d385d | refs/heads/main | 2023-07-31T05:45:30.137915 | 2021-09-26T17:09:59 | 2021-09-26T17:09:59 | 392,284,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from theory.lvps.base_itl import ITL
from theory.veil import Veil
class MTL:
"""
Base Macro Translation Layer for translating multi-line blocks and portions of sequences.
Runs before the main neural network translation loop (including the ITL).
"""
def __init__(self, itl: ITL, veil: Veil):
... | [
"50473759+joshnies@users.noreply.github.com"
] | 50473759+joshnies@users.noreply.github.com |
f280bb51f93e7bc63a275933bd72fc8600dfd195 | f4abbd3b8a7b0cdc37e87737a7e9f80d9550fbf5 | /nettools/fpttools.py | c0165cdf0414dbaa5821fb8e60550f9d6b6b24f7 | [] | no_license | rcortini/mybiotools | a4e2320d839fc3d68b58036c84cbf61c9eb4d759 | 1a8f424b9196e27e27338aa636c0199822925de9 | refs/heads/master | 2020-06-06T11:17:37.222575 | 2019-06-19T12:09:05 | 2019-06-19T12:09:05 | 192,725,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | import numpy as np
from pathos.multiprocessing import ProcessingPool as Pool
from scipy.special import gamma, jv
from scipy.linalg import eig
from .random_walks import jump_to, row_normalize_matrix
from mybiotools import error_message
def FPT (P,startsite,endsite) :
"""
Returns the first passage time of a sing... | [
"ruggero.cortini@crg.eu"
] | ruggero.cortini@crg.eu |
f0ddcfc1386615bfe664efdcc8da103a73ee296d | 05cde6f12d23eb67258b5a21d4fb0c783bcafbe5 | /almebic/models/engine/db_engine.py | 1078b54006ced768772dd3efb6b54c9b7762b300 | [] | no_license | alejolo311/DataInMotion | f5aff692bcaf9a795969951146f6ab7dc6557b08 | 75014600785f9d7f8a4771a9bb24e322e812d08f | refs/heads/master | 2023-05-13T00:57:41.407175 | 2020-07-26T00:51:49 | 2020-07-26T00:51:49 | 267,895,607 | 3 | 2 | null | 2023-05-01T21:26:16 | 2020-05-29T15:46:04 | CSS | UTF-8 | Python | false | false | 2,083 | py | #!/usr/bin/python3
"""
Controls the ORM transactions using postgres db
"""
from models.base import BaseNode, Base
from models.user import User
from models.board import Board
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
class DBEngine:
__engine = None
__session ... | [
"danrodcastillo1994@gmail.com"
] | danrodcastillo1994@gmail.com |
5c7c61ee18b55c89bf1cc0161fca330fba4c2d0e | 11bb8d8bdea2b62013dc6f41b353ac1b9a3fd240 | /ViewerQt.py | a1ec70afc0d0fe8b66b4f2dbb9c2fffc0cfd7c87 | [] | no_license | ezz666/AbstractViewer | 151e6469ab94b3e3dc407faeb3179212071dc5f4 | 511d1bf822a0faa830299c95dc44042cef3c4a70 | refs/heads/master | 2022-12-06T17:37:10.093735 | 2020-08-28T04:18:02 | 2020-08-28T04:18:02 | 110,108,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,548 | py | # -*- coding: utf-8 -*-
from PyQt4 import QtGui, QtCore, QtOpenGL, Qt
from UniversalViewer import *
from SceneQt import *
KeycodeToKeyname ={
QtCore.Qt.Key_F1:"F1", QtCore.Qt.Key_F2:"F2", QtCore.Qt.Key_F3:"F3",
QtCore.Qt.Key_F4:"F4", QtCore.Qt.Key_F5:"F5", QtCore.Qt.Key_F6:"F6", QtCore.Qt.Key_F7:"F7",
... | [
"khilkov.s@gmail.com"
] | khilkov.s@gmail.com |
0c903067d722c171d51ba253b0cd08e9555ab90d | 8f9daf08250f09269aeb8d57fcbb6f335e2d985a | /inPython/COURSERA/Google IT Automation/week4/classes.py | 9b278ff7b15acf64ab137af0bdb98e4d6629575e | [] | no_license | Extomvi/GDGUnilag | 0927a213e43fc4c463e6866e5ca4dbf137311b91 | e8ac9c61af43bb99542c5bd6dcfe35fa64fee957 | refs/heads/master | 2023-06-22T06:32:53.793377 | 2023-06-14T08:15:39 | 2023-06-14T08:15:39 | 100,798,237 | 2 | 0 | null | 2023-04-04T16:43:17 | 2017-08-19T14:05:15 | Jupyter Notebook | UTF-8 | Python | false | false | 256 | py | '''
UNDERSTANDING CLASSES, THEIR METHODS AND INSTANCES
'''
class Apple:
color = ""
flavor = ""
fruit = Apple()
fruit.color = "red"
fruit.flavor = "sweet"
veg = Apple()
veg.color = "green"
veg.flavor = "bleh"
print(fruit.color)
print(veg.flavor) | [
"exceltadedokun@gmail.com"
] | exceltadedokun@gmail.com |
047bc47c0d7041fcc94fc2b639483f7703c4ef57 | 91d7a80cca074fc699e4af86e0f01c58452cc217 | /venv/bin/django-admin.py | 974aa14dbb0eef8390154b006d3dce67c6c593ad | [] | no_license | Link1996miky/web_link_1_04 | 641d023d06f3bb742dcccffb422ae0eb43c0b9b4 | b9b3f29cc6889699879d218c49fafa736081af8e | refs/heads/master | 2020-04-07T04:49:56.959039 | 2018-12-16T16:10:12 | 2018-12-16T16:10:12 | 158,070,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | #!/home/link/PycharmProjects/web_link_1_04/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"512819631@qq.com"
] | 512819631@qq.com |
9f1f74e62bef70ee0ffbeaa5127edc6c1ab5c5f4 | cd73b7eefdac19039d2f3ab1e48e31aa3ee0bbaf | /Urllib/urllib_cookie.py | aed5511a1aa0412ddb2f623235c6db045a848747 | [] | no_license | AssassinHotstrip/personal_spider_pra | 75efa979a142f89960705e571231e8262fe44dd6 | 298869fa9fb0291b9e364fbf4a6d8bd992840eb2 | refs/heads/master | 2020-04-12T11:09:29.502059 | 2019-01-01T13:55:48 | 2019-01-01T13:55:48 | 162,450,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | import urllib.request
def send_request():
url_list = [
"http://www.renren.com/335681111/profile",
"http://www.renren.com/376602323/profile"
]
headers = {"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
# "Accept-Encoding": "g... | [
"670204191@qq.com"
] | 670204191@qq.com |
2f3f185e61fb9c48ca1ddc7abc2b366463a5e4e2 | eb233dfdb6819c038886f5c5b6f5b82538acd283 | /backendDjango/urls.py | ada8bcd16a0603d28b646880f22f9224223b1dfc | [] | no_license | mira87/adultingtasks-backend | 8c2b80940d5622b40a05b38ec5fd73aff5e6700f | 9c635dcacca0180f8ede1acc6a8612314c3a7189 | refs/heads/master | 2020-09-12T19:00:04.477318 | 2019-11-18T20:44:28 | 2019-11-18T20:44:28 | 222,519,040 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | """backendDjango 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... | [
"shamirajones@shamiras-mbp.home"
] | shamirajones@shamiras-mbp.home |
902df8b01bd58a51daaf42646c78c4e62c3a51c4 | a4ea1019fa143bf1578f9176796052736d436fdb | /venv/Lib/site-packages/flask/views.py | 24cb5e2ba4b9061d2639e255b8635f2d4d8cd728 | [] | no_license | KeiKooLoc/Denend.github.io | 16f60fc4d2ecb9bdc8b685f2fcea4fdacca4f13d | 15f900ad0a0a6ea68a64ff7f9762c61cf60595af | refs/heads/master | 2020-03-29T13:41:57.236863 | 2019-04-22T20:49:04 | 2019-04-22T20:49:04 | 149,977,191 | 0 | 0 | null | 2018-09-23T11:16:24 | 2018-09-23T11:16:24 | null | MacCentralEurope | Python | false | false | 5,836 | py | # -*- coding: utf-8 -*-
"""
flask.views
~~~~~~~~~~~
This module provides class-based views inspired by the ones in Django.
:copyright: © 2010 by the Pallets team.
:license: BSD, see LICENSE for more details.
"""
from .globals import request
from ._compat import with_metaclass
http_method_funcs... | [
"denend@users.noreply.github.com"
] | denend@users.noreply.github.com |
c1a3bb0799df7204d756f505eb6a62faf5ca08e0 | 9dfda55d16ee16df8762a9987e154244d8ff948d | /web/migrations/0006_auto_20160512_1957.py | 9927bacc7dc31a6c359b9546fa87c33f9dbb39e5 | [] | no_license | damikdk/Excel-Django-Angular | 78b191ca56536167f3d4dbd2ac3fc03d87586d5c | c29d9dda0fa6604c54f8a2df684f9e4d07f6b549 | refs/heads/master | 2021-01-17T10:31:06.235997 | 2016-07-12T12:26:19 | 2016-07-12T12:26:19 | 58,670,651 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-12 19:57
from __future__ import unicode_literals
from django.db import migrations, models
import web.validators
class Migration(migrations.Migration):
dependencies = [
('web', '0005_remove_officefile_max_coor'),
]
operations = [
... | [
"damikdk@gmail.com"
] | damikdk@gmail.com |
35fe9e8d12cff46a0e0ea7b51843e2426507bb4a | 59e87634c67508bf7eba8c8b9845354aefa57bc7 | /ML/naiveBayes/bayes-titanic.py | b9caec4be2a8acf3fb164902e7017e85f90efa1c | [] | no_license | Caohengrui/MLAndDL | 48729b94b2232e628b699cf8d0d4a6c6e81a36f5 | d0637f58f45e9c091cd90bbfe9c207223d0994f3 | refs/heads/master | 2023-03-16T01:06:03.316463 | 2020-04-14T07:44:15 | 2020-04-14T07:44:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,446 | py | """
Author:wucng
Time: 20200110
Summary: 朴素贝叶斯对titanic数据分类
源代码: https://github.com/wucng/MLAndDL
参考:https://cuijiahua.com/blog/2017/11/ml_4_bayes_1.html
"""
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler,MinMaxScaler
# from sklearn.neighbors import KNeighborsRegre... | [
"gzcl_wcon@126.com"
] | gzcl_wcon@126.com |
38a90854558605e5a014f7e6272b4f3c11060c65 | 265a07a2becd232b292872d1d7136789463874be | /lianxi代码/erchashu.py | 5543da1004e52bdcd18148677402156b24dcc306 | [] | no_license | Lz0224/Python-exercise | f4918b8cd5f7911f0c35c0458c2269959937d07d | 3d09f54aebc653f4a5b36765b25c7241e3960764 | refs/heads/master | 2020-12-24T22:20:55.573019 | 2017-08-11T07:18:16 | 2017-08-11T07:18:16 | 100,005,776 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | #!/usr/bin/python
#coding=utf-8
'''
created bu zwg in 2017-7-8
'''
import copy
class node(object):
def __init__(self, name, data):
self.data = data
self.name = name
self.Rchild = None
self.Lchild = None
self.child_number = 0
self.parent = None
def add_... | [
"Lz0o_o0@outlook.com"
] | Lz0o_o0@outlook.com |
eeaee40200b52c8964177e6365c6f24ec9f71958 | 9d3afabc34566173b16ebc9c352b14a1b7d85ad9 | /FamBudget/settings.py | e0596f9b15b5ab400c88d6f8cf1ba30804fd550f | [] | no_license | Romantano/Family-Budget | ec7625b2d6c8613610b9c1d6c680a5ff38fa5045 | 212337cb13322892cf5e104fd4af848eff8b1d73 | refs/heads/master | 2020-03-22T00:30:26.586466 | 2018-07-08T20:21:44 | 2018-07-08T20:21:44 | 139,249,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | """
Django settings for FamBudget project.
Generated by 'django-admin startproject' using Django 1.11.13.
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... | [
"antonsvz@gmail.com"
] | antonsvz@gmail.com |
b8e02a80dd4ae30959b434085ed27933a2f54964 | ae3d0e3c2fb614d96f6c787583c6e2e4cb654ad4 | /leetcode/89. 格雷编码.py | 6efb740a93fba7e0c11adf3290a8e415330f35cf | [] | no_license | Cjz-Y/shuati | 877c3f162ff75f764aa514076caccad1b6b43638 | 9ab35dbffed7865e41b437b026f2268d133357be | refs/heads/master | 2023-02-02T10:34:05.705945 | 2020-12-14T01:41:39 | 2020-12-14T01:41:39 | 276,884,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | from typing import List
class Solution:
def grayCode(self, n: int) -> List[int]:
if n == 0:
return [0]
current = '0' * n
ans = [current]
use = set()
use.add(current)
while current:
next = None
sl = list(current)
fo... | [
"cjz.y@hotmail.com"
] | cjz.y@hotmail.com |
825f83d74c3367408205ccb1cc9c5bf61fb0b590 | 85c52a7c8cc21060e1511da1df02162e5fc78378 | /tests/test_models.py | 5ae3bb97d0b73a3979fb5b85dcb4b3b7f6e40b14 | [] | no_license | ramonabmello/desafio_starwars | d3720f236c316bda9d916b454f3314f36dd3a336 | 23ba32ba5af95c8360e7c929253f6d33bfc8c1dc | refs/heads/master | 2020-03-31T23:33:02.484009 | 2018-10-30T15:42:41 | 2018-10-30T15:42:41 | 152,659,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | import unittest
from game_star_wars import models
class TestPlanet(unittest.TestCase):
def test_has_id(self):
planet = models.Planet(id=1)
assert planet.id == 1
def test_has_name(self):
planet = models.Planet(name='Tatooine')
assert planet.name == 'Tatooine'
... | [
"contato@ramonamello.com.br"
] | contato@ramonamello.com.br |
0b573c7d0218cd57688f0d50721997333fe6315d | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-cbn/aliyunsdkcbn/request/v20170912/CreateTransitRouteTableAggregationRequest.py | 33fc8ff3c8ce5418023c4de179e733b508294cf5 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 4,095 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
82ffedb3852ee703562896da5953bc3f42e421c0 | 00dac6306847966655de49a2df06324353eb2055 | /blog/migrations/0010_post_slug.py | a9e1fe55083ccbc00db4f410b14332d940964f41 | [] | no_license | abdullahshaker10/Django_blog | 9807f3182f9419ad18b547c0f4e4a51c2e976284 | 57ed6267ad475409b1c5fd2719f8c3161153da2d | refs/heads/master | 2023-01-08T22:06:34.708601 | 2020-11-18T16:44:52 | 2020-11-18T16:44:52 | 313,996,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # Generated by Django 3.0.3 on 2020-04-20 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0009_post_status'),
]
operations = [
migrations.AddField(
model_name='post',
name='slug',
... | [
"abdullah.shaker2017@gmail.com"
] | abdullah.shaker2017@gmail.com |
a95e462de46aa655ccb705a450d4494d912669e4 | 0b3ff7bc2a5a82b999159bc252a5e00a7175741d | /ThingsBoard Sources/Data Encryption & Security/esp32ConnectFinalScript.py | 02b903a32cc19407d6dd1b1a6d6092fa91cf2cc6 | [] | no_license | AbanobMedhat/GP2020 | c77156b39f16665837535182a7b9fb05ba7ee28f | 54413893aba13592ff0823c96ee6b43566411c10 | refs/heads/master | 2023-02-14T13:57:57.945954 | 2020-08-24T01:31:06 | 2020-08-24T01:31:06 | 211,509,039 | 0 | 1 | null | 2021-01-06T09:11:31 | 2019-09-28T14:01:05 | QML | UTF-8 | Python | false | false | 1,607 | py | import machine
import time
from machine import Pin, PWM
from umqtt.simple import MQTTClient
from time import sleep
import random
import json
import network
import ussl
# WiFi connection information
wifiSSID = 'Not_found'
wifiPassword = 'MOHAMED@AHMED?ESLAM!2006'
# turn off the WiFi Access Point
ap_if = network.WLAN(n... | [
"abanobmedhat42@gmail.com"
] | abanobmedhat42@gmail.com |
f64b9082e64ef553e39e90db9d5ebb2f27e8d5dd | 33cea355339e424acfd3fe8180974166fc4639fd | /sorting/selectionsort.py | 3aa3e2a69bb8226e8223a5955d54c2c4db671dda | [
"MIT"
] | permissive | jrtechs/RandomScripts | e32d4a48b7ee1ffa6aa7b45b974d2d47ac04dd9b | f5ae872fa584de8c885eb4ad1673d152ae6be37b | refs/heads/master | 2021-06-26T18:42:33.811342 | 2020-08-09T20:41:29 | 2020-08-09T20:41:29 | 151,647,447 | 4 | 30 | MIT | 2020-10-02T20:06:39 | 2018-10-04T23:18:31 | Jupyter Notebook | UTF-8 | Python | false | false | 278 | py | #selection sorting
import sys
A = [6, 2, 1, 3, 4]
for i in range(len(A)):
min_index = i
for j in range(i+1, len(A)):
if A[min_index] > A[j]:
min_index = j
A[i], A[min_index] = A[min_index], A[i]
print ("Sorted array")
for i in range(len(A)):
print("%d" %A[i])
| [
"noreply@github.com"
] | jrtechs.noreply@github.com |
f9fb7a7b37c9fe9aedc4c412916e84f333bff2cb | 4828d5b3954183728b6267be39732fe3587d20b7 | /fxm/strategy/admin.py | 6e34a1b25003fbf094365306bae116fb32e07f62 | [
"Apache-2.0"
] | permissive | panyuan5056/fx | bd9a2cd90ff0825ad4340414c8131e3737ba0e60 | 24ca8dd57de7534e4d20cfbf2890607a1741dc70 | refs/heads/main | 2023-07-20T07:06:38.941708 | 2021-08-28T04:32:11 | 2021-08-28T04:32:11 | 400,700,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | try:
import simplejson as json
except Exception as e:
import json
from datetime import datetime as dt
import requests
from django.contrib import admin
from django.conf import settings
from django import forms
from .models import Strategy
#from flyadmin.widget.forms import SelectBoxWidget, TimelineWidget, EditorWidg... | [
"panyy@idss-cn.com"
] | panyy@idss-cn.com |
5788896282ea8056f79d78e57224a9bef3acac4f | 6ef84e7122122db3c3586e9cf718d8383b38ce23 | /picoCTF2021/crackme-py/crackme.py | e96a1556f9e141d53716c53de091c9c65e743fd3 | [] | no_license | greytabby/CTF | 5612c5d84f12b0ea5d2309087d0753ece1cd033f | 59b7b2de75fdcb68494e26e7b08e5c8b79142387 | refs/heads/master | 2021-06-08T12:02:57.410722 | 2021-05-30T11:42:44 | 2021-05-30T11:42:44 | 155,959,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | # Hiding this really important number in an obscure piece of code is brilliant!
# AND it's encrypted!
# We want our biggest client to know his information is safe with us.
bezos_cc_secret = "A:4@r%uL`M-^M0c0AbcM-MFE055a4ce`eN"
# Reference alphabet
alphabet = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ... | [
"munchkin.coco@gmail.com"
] | munchkin.coco@gmail.com |
ecbaded27dd99a47aef58b83106df29e1c158f97 | da1001157b7458f86f101384a68ac33876d1c3ab | /break_time.py | 884dbc2e9dc8df413db775fa1898a954eb0f6b4d | [] | no_license | drbree82/Udacity | 374f55605029d02b3dc3375af8ea5ed2230f3542 | 89cce7b677dc80cc37394a04e36870dd84cf36f9 | refs/heads/master | 2020-04-04T16:18:28.451209 | 2015-02-07T23:19:49 | 2015-02-07T23:19:49 | 30,474,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | import webbrowser
import time
for breaks in range(0, 3):
time.sleep(2)
webbrowser.open("https://www.youtube.com/watch?v=HTN6Du3MCgI")
| [
"drbree82@gmail.com"
] | drbree82@gmail.com |
f8c69218110569d35951f0af4f65eca22deaa0cd | 89e2bdaece138d16bd6c661318561b8644a09999 | /webapplication/opencv/opencv.py | 90a8bab4187adbf8fa868f7b3dffc1c1b52f7ee3 | [] | no_license | hafugg110/fir- | 5c91c6a62dbe46cbc2a1ed0b2c9b756a3664db66 | c68ded0f3950a31f9a866322d1d4b3a74efd2673 | refs/heads/master | 2023-04-25T02:11:12.669020 | 2021-05-12T02:47:33 | 2021-05-12T02:47:33 | 345,895,732 | 0 | 0 | null | 2021-03-10T06:46:57 | 2021-03-09T05:40:12 | null | UTF-8 | Python | false | false | 270 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello, world.'
@app.route('/')
def index():
# 顯示表單
return 'Hello, world.'
@app.route('/', methods=['POST'])
def process():
# 處理圖片
return 'Process' | [
"haha110099@gmail.com"
] | haha110099@gmail.com |
544a76304660251df0418c0ad36bbc153dd44bdd | 6434944419969a10bffe29fbc51b3d3213acdf39 | /data_structures_homeworks/percolation/run_stats.py | 613c71171de94e52ea9e39e19727b20fad696ccb | [] | no_license | ngozinwogwugwu/exercises | bbd76e0bbb84a96074b1e9c9ae659d6c470b33bf | a8d96de3c8ddd27566d65e7ce168b74ff989da6a | refs/heads/master | 2021-03-30T10:41:15.043410 | 2020-06-03T15:53:41 | 2020-06-03T15:53:41 | 248,045,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from percolation_stats import PercolationStats
ps = PercolationStats(20, 500)
print('measurement 1: ' + str(ps.mean()))
print('measurement 2: ' + str(ps.mean()))
print('measurement 3: ' + str(ps.mean()))
| [
"ngozi.n.nwogwugwu@gmail.com"
] | ngozi.n.nwogwugwu@gmail.com |
cfaea0af904f507dc6e398516b1f31496c700364 | 8f9a05bf34dc5a1b6d78149c621338169e98e187 | /Social promotion/test_1.py | 9961026cc8787766a9679c04da4ccb0c0511596e | [] | no_license | susu1988/showroom | bf6ae99d561da425a24b73ad544e22d0723e0a42 | 81e867fb09a3c011274420fd051bd80ce765965c | refs/heads/master | 2021-03-05T15:18:28.016176 | 2019-08-13T12:15:13 | 2019-08-13T12:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,102 | py | # -*- coding: utf-8 -*-
# @Author : Zhy
import base64
import requests
from setting import *
import json
# task_2 = '{"isOperate":0,"act":"taskOperate","taskList":[{"isOpen":0,"endDate":"","contentId":"8ca9857fc47346c79191f19f6fd56c09","headUrl":"","inputTime":{"date":1,"hours":14,"seconds":58,"month":3,"timezoneOff... | [
"1260132105@qq.com"
] | 1260132105@qq.com |
045807bd2d431357637794e312e8b28745f0fb7d | 964e658a34ddc88625897df950ed904b36815888 | /mk_conf.py | 6ef0dae7f69fef268d06eb1dccd238d0d148bc67 | [] | no_license | pashorg/MikroTik_config | 4739e2b8b4fe2380ca43824980c39383ecb857c8 | f17cf6fb20c431bae6c3d092cb47ade1ea0c1691 | refs/heads/master | 2021-01-23T04:40:03.786419 | 2017-03-26T13:38:19 | 2017-03-26T13:38:19 | 86,234,878 | 0 | 0 | null | 2017-03-26T13:35:40 | 2017-03-26T13:32:48 | null | UTF-8 | Python | false | false | 1,572 | py | # -*- coding: utf-8 -*-
import json #Used to parse json files
from optparse import OptionParser #Used to parse input arguments
import conf_maker #Class file
#Input arguments configuration and parser
parser = OptionParser()
parser.add_option('-m', '--main-json', dest='main_json_file', help='Main json f... | [
"noreply@github.com"
] | pashorg.noreply@github.com |
ade9d719d5e6caff26a5f19e50b6052ec56573fd | d40e5a973d7dd6c5f346f4e1cc531572e868175f | /src/models.py | 270e35bd0fe7119a21fd792f0037ed5bde14dc49 | [
"MIT"
] | permissive | AndyXIN/farm-calc | 3f7abc8f160d8aa03ff8604ff41313ad66a8ff4b | b1769232d4577fde408ee43f7197299e61425dca | refs/heads/main | 2023-07-07T03:56:23.967627 | 2021-08-10T04:31:28 | 2021-08-10T04:31:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,834 | py | from typing import Callable, Dict, List
class Interest:
"""
Interest includes:
- Capital invested
- Annual Percentage Rate (APR)
- Daily interest from APR
"""
def __init__(self, capital: float, apr: float) -> None:
self.cap = capital
self.apr = apr / 100
self.daily... | [
"g298luis@gmail.com"
] | g298luis@gmail.com |
da446623dd165e79d5deb3c0f0acefeb406914f2 | cceaf304f65a46bf4725b7dc8d0de2b3584d763d | /utils/pagination.py | f4262661c19c278deef6ecf1a4b9cf65450956db | [
"MIT"
] | permissive | davisschenk/Unnamed-Bot | 7b7c8670300e1a55c0c335a559812fc1f666015b | 8e05d5a79dfab768574efd4e9061e2d7b22ae9e5 | refs/heads/master | 2022-06-04T11:42:51.391474 | 2020-05-01T05:33:48 | 2020-05-01T05:33:48 | 194,289,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,936 | py | # Code from https://github.com/Rapptz/RoboDanny/blob/rewrite/cogs/utils/paginator.py
# Used under MIT licence
import asyncio
import discord
from discord.ext.commands import Paginator as CommandPaginator
from utils.embeds import CustomEmbeds
import data.custom_emotes as emotes
class CannotPaginate(Exception):
pass
... | [
"35881002+davisschenk@users.noreply.github.com"
] | 35881002+davisschenk@users.noreply.github.com |
c7c1e7bf9869fee16a3ec40957e9ff0cd0d56ddd | 34b4c572fe47e36878d9866ce0335f6f9e01c8e9 | /test/test_mahalanobis_mixin.py | 0d834f10915c65c946683f6f070c4172cf084ee9 | [
"MIT"
] | permissive | raijinspecial/metric-learn | 1bc7511b94ae3f4fef43d8de8ab2e95e061bd2d8 | 8ffd998971b70ba9b4f1b06ae9b9ef47d4c27f45 | refs/heads/master | 2020-04-17T20:40:42.593589 | 2019-01-07T18:34:06 | 2019-01-07T18:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,627 | py | from itertools import product
import pytest
import numpy as np
from numpy.testing import assert_array_almost_equal
from scipy.spatial.distance import pdist, squareform
from sklearn import clone
from sklearn.utils import check_random_state
from sklearn.utils.testing import set_random_state
from metric_learn._util impo... | [
"bellet@users.noreply.github.com"
] | bellet@users.noreply.github.com |
7b42a2c6fe549de4ee270432a55bc805f6b33c8c | 6bbd5996efd7f3e4b96c6158bea5552331a06741 | /train_crawler.py | f1a6f6b0eff92e0b5cbe211206047580529a4359 | [] | no_license | rainbowday/Train-Crawler | ef7365577f9bfc4ee816484abaf2dd7ce712fb58 | 2d4b8efb4c937a3ffc7bef20e4ae092875a0529a | refs/heads/master | 2020-07-04T11:16:00.983215 | 2018-07-01T14:51:08 | 2018-07-01T14:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,866 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/6/29 0029 18:08
# @Author : KangQiang
# @File : Crawler.py
# @Software: PyCharm
import json
import threading
import time
from queue import Queue
from config import UN_PROCESSED, PROCESSING, PROCESSED, logger, train_tasks_status_db, train_result_filena... | [
"tkanng@gmail.com"
] | tkanng@gmail.com |
aaa99663a9b9a7da2458aa4b46a53fef0d1a4366 | e6a81db4f217840a42bdf968b3b2972ed1ade4d2 | /hello.txrx.44.py | b33c8f8c72eb9c42f183e85376886a6761bbf19e | [] | no_license | Satyam/rotationsensor | e2e37201d920337863ce87708ea992bb705943b4 | 5056c5cc83c953c2b0e476f6c4f46e57e29f60ad | refs/heads/master | 2021-06-01T15:03:53.266583 | 2021-03-09T15:51:45 | 2021-03-09T15:51:45 | 19,355,877 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,615 | py | #
# hello.txrx.44.py
#
# receive and display transmit-receive step response
# hello.step.44.py serial_port
#
# Neil Gershenfeld
# CBA MIT 11/6/11
#
# (c) Massachusetts Institute of Technology 2011
# Permission granted for experimental and personal use;
# license for commercial sale available from MIT
#
from Tkinter im... | [
"satyam@satyam.com.ar"
] | satyam@satyam.com.ar |
e11205a6a6b5e106d13cbcda6cdc849cb0b70787 | a0e3f2840b2026a775ed0494b79938aa81567531 | /Programming Assignment 4/LaurenRobbenAssignment4 copy.py | 965edf08a7ba0a44126c8377e050cdb4c0c27b65 | [] | no_license | larobben13/Lauren-Robben-Portfolio | d944ec5dfb690f6ce25a929cccfbbb9c687c395d | ef6ea371c4cd3d4195998106cb0c758ade331f05 | refs/heads/main | 2023-07-27T16:56:32.903994 | 2021-09-16T22:41:22 | 2021-09-16T22:41:22 | 407,331,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,031 | py | #INF360 - Programming in Python
#Lauren Robben
#Assignment 4
import zipfile, os
def backupToZip(folder):
# Back up the entire contents of "folder" into a ZIP file.
folder = os.path.abspath(folder) # make sure folder is absolute
# Figure out the filename this code should use based on
... | [
"noreply@github.com"
] | larobben13.noreply@github.com |
cedcaeb32f08859d744bbb1b09d963ff22ad58b7 | 25f9007e328a83238987be4651e2543ef052ef36 | /Blog/views.py | 399f278e87142aeaf0df64c999abf359590ebaae | [] | no_license | billd100/HexCollect | a7cf151887e345792fdf80e460728feaec6109ca | 7a3445ecbcb600a2853a437c2ced7b4eddc7816c | refs/heads/master | 2021-03-16T03:27:17.816425 | 2017-08-28T00:51:29 | 2017-08-28T00:51:29 | 91,523,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | from django.shortcuts import render, get_object_or_404
from Blog.models import BlogPost
def blog(request):
recent_posts = BlogPost.objects.order_by('-pub_date')[:3]
context = {
'recent_posts': recent_posts,
}
return render(request, 'Blog/blog.html', context)
def blog_post(request, slug=None):
blog_post =... | [
"williamdavisi777@gmail.com"
] | williamdavisi777@gmail.com |
5397186e66c797d3884c21346086536eb6c49005 | 59d18dc2b539d46e32c07b3c5b5cbeb16beda4d1 | /impacket/examples/smbrelayx/smbrelayx.py | 0afcb5bf01206e48396e5437a701d2d69a08f473 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-1.1",
"BSD-2-Clause"
] | permissive | Aliced3645/DataCenterMarketing | 9cbb0e429a8053af180172f5da69cb37a99c49be | 67bc485e73cf538498a89b28465afb822717affb | refs/heads/master | 2016-08-04T22:23:23.952571 | 2013-05-07T02:50:47 | 2013-05-07T02:50:47 | 8,640,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,417 | py | #!/usr/bin/python
# Copyright (c) 2012 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# $Id: smbrelayx.py 607 2012-07-14 23:53:54Z bethus@gmail.com $
#
# SMB Relay Module
#
# A... | [
"shu@shu-GE70-0NC.(none)"
] | shu@shu-GE70-0NC.(none) |
16118184ce048e27e0f2b4faebd78b93665c7384 | dbb48e3d1fa77ada72fee41bca2a991b102b5bb4 | /saas_vlc.py~ | 2032133f1d8645ac5ae6df6fce7f16e5c517a512 | [] | no_license | coolgourav147/OwnCloud | f16e80cec6ce2751bf2ecb389fe0cac1fd06a055 | f4797c84b041d15628757a8e276e05f35ed55f18 | refs/heads/master | 2021-01-09T06:38:36.345897 | 2016-05-27T16:54:59 | 2016-05-27T16:54:59 | 59,849,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | #! /usr/bin/python
import os
os.system("yum install openssh-server -y")
os.system('ssh -X -l rohit1 192.168.0.29 vlc')
| [
"root@pagaltiger.in"
] | root@pagaltiger.in | |
73c5435838a5e04fd40ce61744fa821023bc53c3 | 149ab73e1002a0f65c988a79741167b78c7433e7 | /venv/lib/python3.8/site-packages/cvxpy/reductions/solvers/bisection.py | 6cc87bd3e76304694a4689c69013ad2599c35fcf | [] | no_license | davidtandoh/BabyInvestor-REST-API | f908984c3233cb30aea990563b9b813c21788113 | 2c69a1162aae9845d552b87410cd85597dfefe19 | refs/heads/main | 2023-01-03T13:46:37.373332 | 2020-10-29T11:20:30 | 2020-10-29T11:20:30 | 308,304,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,943 | py | """
Copyright, the CVXPY authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | [
"davidtandoh@Davids-MacBook-Pro.local"
] | davidtandoh@Davids-MacBook-Pro.local |
658011629f392d7d437f228fd23adf37902a88a3 | 61551290cac20e3feafe2a83c9adbdabf2fd1d46 | /zfsbackup/runner/command.py | dfe0aeabb9ec76d9dfffc84a3cb136f1d3860d5c | [
"MIT"
] | permissive | g0dsCookie/zfsbackup | 8259da3c00c680af63ce306e084d10cc2b81f92f | 0449208aa85c327c2e80ba39460efb0f481a8964 | refs/heads/master | 2020-09-15T08:47:21.127812 | 2020-03-23T09:14:32 | 2020-03-23T09:14:32 | 223,399,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from typing import List
from .base import RunnerBase
class Command(RunnerBase):
def __init__(self, name: str, cmd: str, args: List[str],
sudo: str, use_sudo: bool, readonly: bool, really: bool):
self._cmd = cmd
self._arguments = args
self._use_sudo = use_sudo
self... | [
"g0dscookie@cookieprojects.de"
] | g0dscookie@cookieprojects.de |
d9e13ebc7b7b3418a217d610d03f85b4f6e99cd0 | 49bdad22c3217d5febc9b13d8d6b5a35530b0fca | /myproject/bin/sqlformat | aecb181737208f50bd53ec1257427e72a5da1719 | [] | no_license | pingam-1/my-first-blog | 87e9758f063963ced2d891c9b717e07fbce29c58 | 8a136b0acd89d4b36b946323cf0d90040fdcd8e2 | refs/heads/master | 2022-09-29T02:44:55.966367 | 2020-06-07T19:13:14 | 2020-06-07T19:13:14 | 262,886,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/kubra/Belgeler/djangogirls/myproject/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"bilgihber@gmail.com"
] | bilgihber@gmail.com | |
420f81b2c2552fd4799a23d2309c0cb150062de3 | 7abe6502f7dfdd46a7dd1a7f6ab09473d56ff171 | /train.py | fd12112b60b833e0318fdaf434e4f49e2d273aef | [] | no_license | Moveisthebest/speech-domain-adaptation-DRL | 75b9ca6545d9acbc33f3202625cfe4bc2600e624 | 9c6366da39239765e4f33954b500db40b882273d | refs/heads/master | 2021-03-12T06:53:14.377178 | 2019-05-15T02:23:07 | 2019-05-15T02:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,686 | py | import os
from itertools import chain
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import DataLoader
from torch.autograd import Variable
import numpy as np
from dataloader import npyDataset2d
from model import Generator, Discriminator, ContentEnc... | [
"pjh2176@gmail.com"
] | pjh2176@gmail.com |
db8a93e0e6d424d73864946b6ab40104db99a020 | 7df03e95ee65072b49520c00509445d6b059bcea | /hello/views.py | a054b8beb1b327c7f7df3e7106a13f3e7da3c785 | [] | no_license | yunsunghyun/django_app | 85015fbaf48dff6acf2346d32aef70575af4ad07 | f742f8347408e90e1f6559d9c0e8fe0213f86fe2 | refs/heads/master | 2020-05-07T14:45:38.305417 | 2019-05-26T10:27:00 | 2019-05-26T10:27:00 | 180,607,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,007 | py | from django.core.paginator import Paginator
from django.db.models import Q, Count, Sum, Avg, Min, Max
from django.shortcuts import render, redirect
from hello.forms import MessageForm
from hello.models import Message
from .models import Friend
from .forms import FriendForm, FindForm, CheckForm
def index(request, num... | [
"ysh151@naver.com"
] | ysh151@naver.com |
0820a6cc602ef2fd357b40e1e1a7c23ad21f9e2a | 728227574c3bcf209bbf3ebc9ccc0ffb549b80d4 | /pylint/plugins/hass_enforce_type_hints.py | 9ec2fa838065201512aa57d0a0bd488d20c0efc3 | [
"Apache-2.0"
] | permissive | jrester/home-assistant | e016e8d4b2843792dcb3a9e85b3060db204034a8 | eb6afd27b312ed2910a1ad32aa20a3f4ebd54cf8 | refs/heads/dev | 2023-03-04T23:02:52.667683 | 2022-06-25T10:34:30 | 2022-06-25T10:34:30 | 200,057,420 | 0 | 0 | Apache-2.0 | 2023-02-22T06:14:56 | 2019-08-01T13:37:48 | Python | UTF-8 | Python | false | false | 28,504 | py | """Plugin to enforce type hints on specific functions."""
from __future__ import annotations
from dataclasses import dataclass
import re
from astroid import nodes
from pylint.checkers import BaseChecker
from pylint.lint import PyLinter
from homeassistant.const import Platform
UNDEFINED = object()
_PLATFORMS: set[s... | [
"noreply@github.com"
] | jrester.noreply@github.com |
a93f9f3fc208ecc059ef85f1484d2adbf4c9118e | 7c44527115fce603fc79d56cac264c7b3d90f6fa | /may20/ClassIntro.py | e984aaf4886008cf93cbbe6fbb202cb7137e9fac | [] | no_license | Hubwithgit89/PythonLearn | 299c7fdf3d632dcb5f1dc9813b0b725165b08bad | f9bb5f23be7d11e58f129b1263ca8e7e91c396fd | refs/heads/master | 2020-05-22T08:54:08.499508 | 2019-07-24T01:55:11 | 2019-07-24T01:55:11 | 186,288,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py |
class computer:
def disp(self):
print("disp method")
c1=computer()
c2=computer()
#computer.disp(c1);
#c2.disp();
| [
"xyz@xyz.com"
] | xyz@xyz.com |
5eb2854dd85d73cec4c62e1be6a4ba968b2ef2ff | 46b49480433d5a391c65b1b63cca89951f4ae228 | /dpa/ptask/action/source.py | 791569bd4dbb927b29d073a3df1f738bb1fac670 | [
"MIT"
] | permissive | wildparky/dpa-pipe | 5e8c86b0d5846da8886ee0a11adc689b912aee69 | 7a2e413ce958cdf56e8b9fab27a4f52fbee40480 | refs/heads/master | 2020-12-25T12:41:27.912856 | 2016-01-11T21:04:39 | 2016-01-11T21:04:39 | 51,695,472 | 1 | 0 | null | 2016-02-14T13:21:40 | 2016-02-14T13:21:39 | null | UTF-8 | Python | false | false | 1,820 | py |
# ----------------------------------------------------------------------------
# Imports:
# ----------------------------------------------------------------------------
from dpa.action import Action, ActionError
from dpa.ptask.action.sync import _PTaskSyncAction
from dpa.location import current_location_code
from dpa... | [
"jtomlin@clemson.edu"
] | jtomlin@clemson.edu |
c06c295fc1a99c5979dcd1e08b6dd0f89b72aa60 | 56146d194e0952072e0124f611a556e79f52cd68 | /api/lib/python3.6/site-packages/marshmallow/__init__.py | c3d3b33e7c64503757999c1fc453199ff011b098 | [] | no_license | tin0819tin/DS_Tutor | 94ef45fffffde47c6585f6fa691a293f449474ef | 0c7c9f0b602b7f9c8d8363de09b9e956f915e01a | refs/heads/master | 2023-06-07T05:03:50.503960 | 2021-07-05T14:04:32 | 2021-07-05T14:04:32 | 378,444,479 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | from marshmallow.schema import Schema, SchemaOpts
from . import fields
from marshmallow.decorators import (
pre_dump,
post_dump,
pre_load,
post_load,
validates,
validates_schema,
)
from marshmallow.utils import EXCLUDE, INCLUDE, RAISE, pprint, missing
from marshmallow.exceptions import Validati... | [
"b06502141@g.ntu.edu.tw"
] | b06502141@g.ntu.edu.tw |
544bed584ee4c7f6bd3980047a5998b742301ca1 | f39dfb5b634410851f276b065c926b4cf42ae078 | /figuras/PycharmKayStatisticalReport/example_8_13_v3.py | 387438da443b9558918e9917eba8bfa4ce87f35f | [
"MIT"
] | permissive | santoshmore85/estudiando_el_kay | 9fc57d2bbd884a4188a93a15a00436947d60338f | 787f9b2599efeea93c1cf67408edcf1fa199c9b7 | refs/heads/main | 2023-08-26T23:05:00.701166 | 2021-10-29T21:49:08 | 2021-10-29T21:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,048 | py | import matplotlib.pyplot as plt
import numpy as np
import math
from matplotlib import rc
from matplotlib import rcParams
__author__ = 'ernesto'
# if use latex or mathtext
rc('text', usetex=True)
rcParams['text.latex.preamble'] = [r"\usepackage{amsmath}"]
# Parámetros
# número de muestras
N = 100
# número de paráme... | [
"bor9net@gmail.com"
] | bor9net@gmail.com |
0628aa82dbbfc7c5f2e2f5a771367e64427daa55 | 3e59eb1efdc6463f33e6e62f448555b3b2fa6913 | /odd_even.py | 581896433feb1541bae6b98feca1a027b5642a4d | [] | no_license | vydg5/Pythone_exercises | de16a94dcb4b04914a65e240bdaf22515122f910 | 1fd31e3ac140b802fd514f5d04838f936a71d4cf | refs/heads/master | 2021-01-10T01:33:38.701143 | 2016-03-02T16:09:47 | 2016-03-02T16:09:47 | 52,327,192 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 22 20:21:46 2016
@author: Vireak
"""
number = int(input("Enter a number: "))
rest = number % 4
if rest==0:
print("this is an even and multiple of 4 number")
elif rest == 2:
print("this is just an even number")
else:
print("this is an odd number")
num, ... | [
"vydg5@mail.missouri.edu"
] | vydg5@mail.missouri.edu |
610fea3b4461cc6a131728081658f9e4f032d4c5 | 0799030f0bf9359d52787f6bdfc1e25c77aafa4a | /omca/apps/uploadmedia/utils.py | fd09cf544399f87eda4ec70421d0848a7b6c9d88 | [] | no_license | OaklandMuseum/webapps | 7fd17731d99b0c354519e15fdd820df3129c8aea | 828be7a79caf7766226db179e23900c46b0ac592 | refs/heads/master | 2023-01-09T16:54:37.253459 | 2023-01-02T17:51:18 | 2023-01-02T17:51:18 | 62,816,222 | 0 | 1 | null | 2023-01-02T17:51:19 | 2016-07-07T15:07:26 | Python | UTF-8 | Python | false | false | 12,359 | py | from PIL import Image
from PIL.ExifTags import TAGS
import csv
import codecs
import re
import json
import logging
from os import path, listdir
from os.path import isfile, isdir, join
from xml.sax.saxutils import escape
from common import cspace # we use the config file reading function
from common.utils import deURN,... | [
"johnblowe@gmail.com"
] | johnblowe@gmail.com |
674c892252bf0176e34f9f68ac18b547e3c23726 | 04674353730c9f76bd0af43d6380af5bc35d9773 | /pyqt-official/scripts/kinectData/plotSkeleton.py | bba34bfed4a652551a2819c9d63ced816264efcc | [] | no_license | CenturyLiu/EECS467_Final_GUI | 673a4507880f41558111f16a9f82b086fff654a5 | be1444afb38f4f4b461de987cab262d95139ff16 | refs/heads/main | 2023-04-23T05:55:46.378532 | 2021-04-29T21:16:58 | 2021-04-29T21:16:58 | 359,838,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 28 15:02:02 2021
@author: ShaoxiongYao
"""
import json
from mpl_toolkits import mplot3d
import matplotlib.pyplot as plt
# bonePairList = [
# ["LHip", "LKnee"], ["RHip", "RKnee"],
# ["HipCenter", "LHip"], ["HipCenter", "RHip"],
# ["H... | [
"williamyao@sjtu.edu.cn"
] | williamyao@sjtu.edu.cn |
38038a954baf0435cc4b0471fb337429e94d0cc5 | 50a39c462fac7e889f6257cc2c3e3c84986e4bb2 | /RANSAC_example.py | b25e7be454f49d1f4943e0a29be496fb6270413e | [] | no_license | chickenbestlover/MSDN2 | 2b16f70eb58bcc67893ec65ed1a58db3f0dd79a9 | 58a0c6aa8e8e8953572567145ffecd5b10bdfb5a | refs/heads/master | 2020-03-25T07:37:54.873304 | 2018-11-05T05:46:02 | 2018-11-05T05:46:02 | 143,572,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,701 | py | import numpy as np
import pcl
points = np.array([[ 594.6663 , -1617.9456 , -797.36224],
[ 600.5656 , -1638.1005 , -806.5441 ],
[ 599.16583, -1638.3135 , -805.9235 ],
[ 597.76605, -1638.5264 , -805.3029 ],
[ 596.36633, -1638.7394 , -804.6823 ],
[ 594.96655, -1638.9523 , -8... | [
"jmpark@rit.kaist.ac.kr"
] | jmpark@rit.kaist.ac.kr |
a1b5e8a56474fb37eb4c74c13acbf7f476558b26 | 6079cd52ff1a570ab684406da5ab468e94ee1472 | /analysis/activemem_preexpose_analysis.py | 39340f232d4ed84ff23cfeeef2019b38b9251592 | [] | no_license | kachergis/active_memory_preexpose | 268c2b3daaceefa45c7efecae3cc64199d553649 | 5dca5b781099fff71689a1dfd3159347d3a942d6 | refs/heads/master | 2021-01-21T21:54:24.043149 | 2016-03-22T13:33:00 | 2016-03-22T13:33:00 | 42,272,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,100 | py | import json
import pandas as pd
import numpy as np
from sqlalchemy import *
#from mypy.datautil import download_data_from_mysqldb
DATADIR = '/Users/george/active_memory_preexpose/analysis/data'
def spath(sid):
return '%s/%s.json' % (DATADIR, sid)
FIGDEST = '/Users/george/active_memory_preexpose/analysis/figures'
... | [
"george.kachergis@gmail.com"
] | george.kachergis@gmail.com |
b72cc7fc9900186d2c4518e65f638726f8e73224 | 282b2618e198a21b28549220fad67b4f59b33076 | /kudaalmaty/migrations/0011_auto_20180423_1428.py | 3934716ca2be5f7ea43d92b678fc83718cc9b93e | [] | no_license | aizadaaskar/almaty | 086fa1a309dab40c4bd657d4b314f18643966bf7 | 7aee6f9cec1c9f871c1170f13c609e00ce1aa755 | refs/heads/master | 2020-03-19T03:11:04.282614 | 2018-06-01T09:43:30 | 2018-06-01T09:43:30 | 135,702,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-23 08:28
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('kudaalmaty', '0010_auto_2... | [
"a210598@gmail.com"
] | a210598@gmail.com |
3174cb3171565b286739301b8b282a20994032af | 52b46c794fa98114e74d896a0080d122ab4c925c | /backend/chat/tasks.py | 09d465b1b0e043f1a6bcab368040d0e1ed36afb9 | [] | no_license | GameMoon/community_place_administration_tool | 97ec9ae006009b601a97edf450aef7eb35ec3746 | 6624693e8531eb15ce0df3494b790f958bb52f33 | refs/heads/main | 2023-01-19T02:44:02.129701 | 2020-11-29T21:35:51 | 2020-11-29T21:35:51 | 315,940,818 | 0 | 0 | null | 2020-11-28T14:42:14 | 2020-11-25T13:01:09 | JavaScript | UTF-8 | Python | false | false | 926 | py | from __future__ import absolute_import, unicode_literals
from celery import shared_task
from channels.layers import get_channel_layer
from asgiref.sync import async_to_sync
from cpa_tool.models import Event
from datetime import datetime, timedelta
def send_notification(event_name):
channel_layer = get_... | [
"ugrindaniel@gmail.com"
] | ugrindaniel@gmail.com |
b908f84054746b6b52b930a9937c5237dd6cd33f | 18fc741bde76cde9da8a5f402ca830bc6e662192 | /models/LiyangCarStore.py | a8336140c3c26e69612c57f2ab9e5aba5374d72b | [] | no_license | aiyuanddsg/car_car_similarity | 2252c8384589cd8da327337ef811f5c074a4db29 | c9776a39c7142fb65bc520f6d386ee033a205444 | refs/heads/master | 2021-01-18T05:00:23.928697 | 2017-03-08T04:02:16 | 2017-03-08T04:02:16 | 84,273,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,726 | py | #-*- coding: UTF-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import pandas as pd
class LiyangCarStore(object):
numerical_cols = 'price_guide_min price_guide_max xinglixiangrongji_min xinglixiangrongji_max gongxinbuzongheyouhao pailiang chemenshu dangweishu zuixiaozhuanwanbanjing tingchannianfen zu... | [
"aiyuanddsg@163.com"
] | aiyuanddsg@163.com |
84bdd520eadf99d59b7050fc9997f3169b24002f | ac6d7f0bef68eed32797f0fe22b10d615bd15edd | /model.py | f981658cf1d88d11c6fe6dea3569389098289b18 | [
"Apache-2.0"
] | permissive | cyzLoveDream/TNB | 3358220bf43f45b1a83329aeeb82079e7e3ec98d | 14ed6c3628643f02727ab4c96b976c2781336dad | refs/heads/master | 2021-05-12T03:25:05.865931 | 2018-01-29T06:20:29 | 2018-01-29T06:20:29 | 117,618,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,892 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
import warnings
import xgboost as xgb
xgb.XGBRegressor
from sklearn.metrics import mean_squared_error
warnings.filterwarnings("ignore")
trains = pd.read_csv('../clean_data/base_train.csv',encoding="gbk")
tests = pd.read_csv('../... | [
"cyz_19930904@163.com"
] | cyz_19930904@163.com |
eb7038b7af1edc2861e7a0a6640790e41a21c621 | 4ae20d4134a2ae54d8fd12c798af97b10f671df1 | /python网络编程2/01.复习.py | d9f71cb2976bea5cd14a49abe8671a61bde9b780 | [] | no_license | 964918654/python- | cd82f8a08742212ab614bb8c802f364e93a966cd | ae67a55b4f7e8fcefc562ced9b78a1c6a319ac53 | refs/heads/master | 2020-03-27T05:07:06.323025 | 2018-09-04T13:18:56 | 2018-09-04T13:18:56 | 145,994,986 | 1 | 0 | null | 2018-08-25T01:06:42 | 2018-08-24T13:29:11 | null | UTF-8 | Python | false | false | 147 | py | import socket
url = 'www.python.com' # 199.59.88.81
url = 'www.baidu.com' # 119.75.213.61
ip_address = socket.gethostbyname(url)
print(ip_address) | [
"964918654@qq.com"
] | 964918654@qq.com |
7b1a127047ebdd9fb946cd860bd342613a7bd3b2 | 597cababc54f45e94f3c11b4dd26f7344dae7809 | /Luminar_Python/functionalProgramming/product.py | 60c7840c62fd4041ac7cd0329b0213f2ae486406 | [] | no_license | Midhun10/LuminarPython | c87b272dc15746fc2745de774cc425b3a53aed99 | aa5d8ccb574ea1538cefd943c749fd14cd06ee5a | refs/heads/master | 2022-12-26T19:11:18.370001 | 2020-10-08T15:21:05 | 2020-10-08T15:21:05 | 280,052,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | class Product:
def __init__(self,id,name,category,price):
self.id=id
self.name=name
self.category=category
self.price=price
def __str__(self):
return self.name
lst=[]
ob=lst.append(Product(1001,"Galaxy","Chocolate",210))
ob=lst.append(Product(1002,"Lux","Soap",45))
ob=lst... | [
"midhun.benny222@gmail.com"
] | midhun.benny222@gmail.com |
c497e6c1ffed217a9eba1e4241cf90a0a6150b49 | 014b859ab3b428be5548ae6022fbb277395f772c | /Model/usermodel.py | f15e02a236d54ecb5a2e9284b890e8d8d5c6a131 | [
"MIT"
] | permissive | reezoobose/long_run | d3a00c713720a42a8755cd1fb1ff3e19c45a5a88 | cbce5cf475d96bcc9bc53f1f6227c8db237c24e5 | refs/heads/master | 2020-03-29T23:50:56.387331 | 2018-11-16T10:24:31 | 2018-11-16T10:24:31 | 150,492,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,118 | py | # <editor-fold desc="Import">
# -*- coding: utf-8 -*-
# import sql alchemy object .
from sql_alchemy_extension import sql_alchemy as db
# we need to store password in salt form .
from werkzeug.security import generate_password_hash, safe_str_cmp
# </editor-fold>
# class must inherit Model from sql Alchemy .
class U... | [
"reezoobose@rediffmail.com"
] | reezoobose@rediffmail.com |
94cd5f0cfadbc6930ff5dd982ee531f583b68885 | 58345f5012a1c24d638281d977e15c1dc5a8518c | /cs-module-hashtable/fib..py | 75141ccdaeb5d79ba538bd006515ac3c12d79923 | [] | no_license | SyriiAdvent/cs-module-project-hash-tables | 298d071cf632b3606f96f1b8e6bb128ee59508dd | e0fdb508c1e398211e20a56653d9b776730cea24 | refs/heads/master | 2022-11-23T23:49:50.116072 | 2020-08-06T01:45:39 | 2020-08-06T01:45:39 | 284,732,957 | 0 | 0 | null | 2020-08-06T01:45:40 | 2020-08-03T15:12:29 | Python | UTF-8 | Python | false | false | 120 | py | cache = {}
def fib(n):
if n <= 1: return 1
if n not in cache:
cache[n] = fib(n-1) + fib(n-2)
return cache[n] | [
"rgoldhaber24@gmail.com"
] | rgoldhaber24@gmail.com |
6c6dace090ac4698a71aa96258aa378ca9e059f0 | aec9a1f3d1d36f19724e745ca4d09a20f67208dc | /matching/migrations/0006_auto_20210114_2030.py | 799634392703d79e913d7c68e61a37828e2927c9 | [] | no_license | endlessor/open-united-backend | b1b1c3411d0d48bc79b35895c70f24d773ac7344 | 86f6905cce14b834b6bf059fd33157249978bd14 | refs/heads/main | 2023-04-29T13:35:28.529360 | 2021-05-17T14:16:39 | 2021-05-17T14:16:39 | 368,211,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # Generated by Django 3.1 on 2021-01-15 20:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('matching', '0005_auto_20210113_1839'),
]
operations = [
migrations.RemoveField(
model_name='taskclaimrequest',
name='s... | [
"robcoder@hotmail.com"
] | robcoder@hotmail.com |
e740d1914eb233fdd032f838c697340b3914b3c1 | c7a5f6eb6a74fb634e19b21113c7e15f592af826 | /models/Money.py | 4db297d857515b8f33526bf3ec2697c11e75bc31 | [] | no_license | Dmitriysp55/E-shop-lvl2 | b1cb7e82dd421c8647608c8009d4b6c298f29d46 | 3193c7f6c1a98b59431eac0c2099f6a446a29093 | refs/heads/main | 2023-07-08T21:00:55.110157 | 2021-08-17T10:20:54 | 2021-08-17T10:20:54 | 397,206,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | CURR = ('EUR', 'USD', 'MDL')
class Money:
def __init__(self, id, amount, currency):
self.setId(id)
self.setAmount(amount)
self.setCurrency(currency)
def setId(self, id):
if type(id) is not int:
raise ValueError('Error: id must be integer')
if id... | [
"noreply@github.com"
] | Dmitriysp55.noreply@github.com |
aaaeaee2bbe92043417c53d038fe346d6e67659e | ec9b63fc607b2c5d29e2bf4e11b0fd79855f0b14 | /python-client/test/test_payment_remittance_information.py | 5e3a82fb8891fc92a8c368cfafdb84e34dab3f61 | [] | no_license | syzer/F21 | 0d538fc417d3ae8369ce8a3392f74fb9460621e2 | 5aeac4cce9265632fd6d8d6680e833a55836d83c | refs/heads/master | 2020-05-01T04:23:38.219040 | 2019-04-16T09:18:46 | 2019-04-16T09:18:46 | 177,273,387 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | # coding: utf-8
"""
Swiss Corporate API
This is the release candidate version of the \"Swiss Corporate API\" specification. # noqa: E501
OpenAPI spec version: 1.0.0.2-SNAPSHOT
Contact: swisscorpapi@six-group.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __futur... | [
"hexagon6@fet.li"
] | hexagon6@fet.li |
cca7933e5e9525d998480061afe282434637860a | e485bf3a4ef0ee46556fe0c33d16b9d40af54fc2 | /Kattis-Problems/Python-Solutions/PizzaCrust.py | c49aef3bc4f0e38d8d37c01e74d8bd2e2bafae7e | [] | no_license | djharten/Coding-Challenges | d48650569930a06db4e8b590d8f1ffa4d627bf3b | a1a85af8a7631ec05da70459d843db660f08169d | refs/heads/master | 2020-05-18T08:18:14.528845 | 2019-04-30T16:25:03 | 2019-04-30T16:25:03 | 184,289,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | import cmath
a,b = map(int, input().split())
b = a - b
a = cmath.pi * pow(a,2)
print(((cmath.pi * pow(b,2)) / a)*100) | [
"noreply@github.com"
] | djharten.noreply@github.com |
a3276781a20218d522af7d641743b76a41ef7f33 | 67f0d1f5f8fb32a98a5299975a0d5790f13a8167 | /action/conftest.py | 95e7f65612d677874f4a93930bed364e728294d1 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | akaihola/darker | 166fe18122af390dfd87b67eb9b7c9ca59c5f5a6 | e96018f086383a2dcfaab6825945fbee08daca2a | refs/heads/master | 2023-08-31T18:39:01.558709 | 2023-08-05T20:32:37 | 2023-08-05T20:32:37 | 240,935,953 | 547 | 49 | NOASSERTION | 2023-08-09T07:08:19 | 2020-02-16T17:40:03 | Python | UTF-8 | Python | false | false | 137 | py | """Configuration and fixtures for the GitHub action"""
# Don't try to run Pytest on the main action module
collect_ignore = ["main.py"]
| [
"13725+akaihola@users.noreply.github.com"
] | 13725+akaihola@users.noreply.github.com |
22c03deb0d8157383f3c1246c029e58a5a3f8e90 | 6ab67facf12280fedf7cc47c61ae91da0bcf7339 | /service/yowsup/yowsup/layers/protocol_media/protocolentities/message_media_vcard.py | 2d57fbcbadbf58e9a66ad180420dd4e70030640f | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | PuneethReddyHC/whatsapp-rest-webservice | 2f035a08a506431c40b9ff0f333953b855f9c461 | 822dfc46b80e7a26eb553e5a10e723dda5a9f77d | refs/heads/master | 2022-09-17T14:31:17.273339 | 2017-11-27T11:16:43 | 2017-11-27T11:16:43 | 278,612,537 | 0 | 1 | MIT | 2020-07-10T11:04:42 | 2020-07-10T11:04:41 | null | UTF-8 | Python | false | false | 5,305 | py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .message_media import MediaMessageProtocolEntity
class VCardMediaMessageProtocolEntity(MediaMessageProtocolEntity):
'''
<message t="{{TIME_STAMP}}" from="{{CONTACT_JID}}"
offline="{{OFFLINE}}" type="text" id="{{MESSAGE_ID}}" notify="{{NOTIFY... | [
"svub@x900.svub.net"
] | svub@x900.svub.net |
270dd2884ed8cee274b40fa9bc94411663fdaa83 | 17c89e34e24564c0c4948b0e6b597ee2d9ab2761 | /bin/3a.py | ce30b4f181d28a41239d63840aa30513fcfa9c07 | [] | no_license | maciejczyzewski/kck2019 | 3cc024487dfba535abdb3b4251e29512729ccb9b | ec11ee42e26aa83a086382e4ecd54e8cb52c9bb1 | refs/heads/master | 2020-08-23T21:14:48.613366 | 2019-10-26T00:27:31 | 2019-10-26T00:27:31 | 216,707,391 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,175 | py | import matplotlib
# matplotlib.use("Agg") # So that we can render files without GUI
import matplotlib.pyplot as plt
from matplotlib import rc
import numpy as np
import sys, math
from matplotlib import colors
from collections.abc import Iterable
def plot_color_gradients(gradients, names, height=None):
rc("legen... | [
"maciejanthonyczyzewski@gmail.com"
] | maciejanthonyczyzewski@gmail.com |
f3b4ddcd9fbba237e91724f8cfa958504def9ca8 | 51a3abc644875ae0e644891c8c9c0d6736ddbb12 | /meta-Numeriseur/recipes-microphone/microphone/microphone/setup.py | 2b1cd05ea5dfec8847b2852eec5638975c467fcf | [] | no_license | sangmohamad/numeriseur | f2222cfa9e130922bbc39efcd46e13cf8b2acc73 | 20d78e90c2c0f0c6184af127401b3a58f2b2672d | refs/heads/master | 2022-12-05T16:30:44.895356 | 2020-09-01T11:10:34 | 2020-09-01T11:10:34 | 290,131,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:98719b0fae8cdae1a3e3d68eaa037c3912550d71ca2e318e8e08c8366bb58fa4
size 476
| [
"sanogomohamad9@gmail.com"
] | sanogomohamad9@gmail.com |
4d43c355b295413160a662de7848939418a5f001 | dd13c65a0ee5620d57d119b6e7f1c97d8d6423b3 | /pyth/sqr.py | 329cc366b04cb5d5d791b47cff23b68783b7fa01 | [] | no_license | payalaharikrishna/demomarch | 5674f08aae74aa475f2a65eaecf900c428935dae | a6df21d3a6ec8b42919a2706a3c537f2292ace6b | refs/heads/master | 2021-07-01T10:03:10.423817 | 2020-08-20T06:11:13 | 2020-08-20T06:11:13 | 177,396,164 | 0 | 0 | null | 2020-10-13T13:30:37 | 2019-03-24T09:48:32 | Python | UTF-8 | Python | false | false | 118 | py | class Myclass:
@staticmethod
def prod(x,y):
return x*y
res=Myclass.prod(12,6)
print('result=',res)
| [
"krish888@gmail.com"
] | krish888@gmail.com |
7e6eab47934ec89549b741534085981ee5ab9560 | 74335cf752db684dca020483b440a89c20642723 | /hal_plugin/plotting/plotting.py | 37762efac41776acc518651582d84a18418610d3 | [] | no_license | ChillkroeteTTS/Comparison-of-Two-Optimization-Methods-for-Operating-a-Smart-Home-Power-Grid | 707ae315c06a90bfd5ba2ee6191afc430e391ea1 | 5319f89a3c00e67034b5b4714734e253c8c7a518 | refs/heads/master | 2022-10-01T21:46:29.331228 | 2020-06-02T12:34:15 | 2020-06-02T12:34:15 | 268,785,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | from pathlib import Path
import pandas as pd
import matplotlib.pyplot as plt
from pandas import DataFrame
from hal_plugin.plotting.hal_data_processing import load_hal_b1_df, hal_load_import_kwh, load_hal_storage_df, \
load_hal_p2h_df, load_all_hal_results
from hal_plugin.plotting.oemof_data_processing import load... | [
"smalla@jungehaie.com"
] | smalla@jungehaie.com |
03194fe1c2acc52f79cbbb67c76e3da83d9c9fe0 | 00f9aa8242466e87639604c2c650ba97991fc878 | /AID.py | 7d056760070587fb2b88d278073f99268294b313 | [] | no_license | rakshan-fathima/aura-analysis- | 9a4d984e0c43d9d385fb18cb6889c255f4103acf | 28aa8337b56a69ebbe1eced270e512adb880c9ed | refs/heads/main | 2023-07-14T00:57:28.598138 | 2021-08-18T19:30:19 | 2021-08-18T19:30:19 | 397,235,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | import pandas as pd
from pandas._libs import indexing
from pandas.core.frame import DataFrame
import time
from datetime import datetime
import math
df = pd.read_csv('/Users/rakshanfathima/Desktop/data.csv')
print(df.to_string())
# counts number of times each AID is clicked
df.value_counts('AID')
array = []
# gets... | [
"noreply@github.com"
] | rakshan-fathima.noreply@github.com |
b21ca81ebbd84748400bf7a9b1252ac3a962a904 | 7163ba498cf98aaf8018b66fe0552406718ffa3d | /zjutapis/utils/MailUtil.py | bc4d6eb73158a1484d622dcdc9aa70b85e41325b | [] | no_license | chnnnnng/chngkit | 0222041e2c14ba9821d5fad832137441655b8517 | 5bbf07a6cd4cd3d21209aca64605b9cedac49ad2 | refs/heads/master | 2022-11-30T04:39:15.903659 | 2020-08-18T09:38:46 | 2020-08-18T09:38:46 | 276,799,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import datetime
import smtplib
import time
from email.mime.text import MIMEText
from email.utils import formataddr
#用法:
# mail = MailUtil()
# ret = mail.setUser('596552206@qq.com').setTitle('nihaowa!').setContent('zheshicontent!').send()
# print('Success' if ret else 'Error'... | [
"chenyang20010703@outlook.com"
] | chenyang20010703@outlook.com |
42dd0bfc1ee2056fa9d507a9f20221003145d2a8 | 32791ee75360bd7c6e7571be8f6e23af6aafabc2 | /Tools/shamir/shamir_scheme.py | bd422adbd7f4f0ead40a32d67eafb00df8d1ef9a | [] | no_license | joshuahaddad/CRYPTO | 69e47d5378af91710c74c1c760a472fbf9b65a30 | d11aea92d8f89f608ef7367db250cce69a7e42b8 | refs/heads/master | 2020-08-05T03:48:27.945400 | 2019-10-02T15:58:00 | 2019-10-02T15:58:00 | 212,382,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | import requests
import os
from Crypto.Util.number import *
import threading
"""
Original code:
https://github.com/perfectblue/ctf-writeups/blob/master/csaw-ctf-2019-quals/timelie-150/solve.py
This framework can be used to crack a Shamir Sharing scheme
If the key is split into multiple parts, it is probably a Shamir ... | [
"joshuahaddad@ufl.edu"
] | joshuahaddad@ufl.edu |
4f5087097ca2cae5e745fbb0c584e49824c602e8 | 3323e54364b4f4543e585b3d157ed9b52de02ade | /math3/tests/test_integer.py | 3e2e6c09d76edc857718fd33688737bed5107fbb | [
"BSD-3-Clause"
] | permissive | PhloxAR/math3 | f8fbc51687abf1d909b100648035ed8be1265dc6 | 6c8e4066ae74b607cefa209c42cb19e26c09c600 | refs/heads/master | 2021-01-18T11:37:11.249811 | 2016-05-22T15:23:40 | 2016-05-22T15:23:40 | 58,250,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | try:
import unittest2 as unittest
except:
import unittest
from math3.funcs import integer
class test_integer(unittest.TestCase):
def test_import(self):
import math3
math3.funcs.intfunc
def test_count_bits(self):
i = 0b010101
self.assertEqual(integer.count_bits(i), 3)
... | [
"matthias_cy@outlook.com"
] | matthias_cy@outlook.com |
2b92b3efeb473525078506ea21078fc0c598e1d5 | feaf83d9329cc21272dc1c018c38824c576f8730 | /task04/string_methods.py | 35cb0881a966fea919e4ca08a65827bc768c82ef | [] | no_license | aditir360/LMSClub | 6c9b60a898a1007b7ec2e067714a9385b125b563 | 3f96a4be2d245b7aee60e28c4e8d36d194f7f848 | refs/heads/master | 2023-02-03T02:28:41.464166 | 2020-12-28T00:06:12 | 2020-12-28T00:06:12 | 296,700,210 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | #!/usr/bin/env python3
#
# This is my code which includes functions that apply for strings.
#
def main():
# FIRST EXAMPLE
txt = "Python is an awesome and easy Programming Language to learn!"
# My txt.
txt_using_function_task04 = txt.casefold()
# This is where I apply a function that will make all... | [
"noreply@github.com"
] | aditir360.noreply@github.com |
061837399d3afe6268af1545249000dc7f583c40 | b9429e2a5b6ebef0e4c87976a82bf4dc075ba27b | /shop/migrations/0004_auto_20200401_0951.py | 0c50516722bfe7a9e44768053b6163f0dbf25522 | [] | no_license | MakboolAhmad/jankin | 97f23014e653499e80939cdc7166fee52ae8b232 | 1a2165e539aba00be101cf599552a8b5434a4283 | refs/heads/master | 2021-08-06T10:05:39.502249 | 2020-04-06T12:22:14 | 2020-04-06T12:22:14 | 253,489,664 | 0 | 0 | null | 2021-06-10T22:44:07 | 2020-04-06T12:23:34 | HTML | UTF-8 | Python | false | false | 533 | py | # Generated by Django 2.2 on 2020-04-01 09:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shop', '0003_auto_20200330_0743'),
]
operations = [
migrations.RemoveField(
model_name='product',
name='address',
),
... | [
"makboolk20@gmail.com"
] | makboolk20@gmail.com |
3707cc9f6db7ca10359cd0dda2184f7a2c877a56 | 3587e1e6c5a91d9090d5df2521c9e6ad04cff40f | /includes/libraries/Balanced/scenarios/credit_customer_list/metadata.py | 12868ab8d2814e7b7492c953b255ffbdd3128ef8 | [
"MIT"
] | permissive | bmoney85/EDD-Balanced-Gateway | e13f9bc8f43313847b7d7f941932bfe9cbe411ee | 474d7e724b2d274b4c371141f8a6ac2bf83c919c | refs/heads/master | 2021-05-28T01:32:33.599032 | 2014-04-03T20:01:01 | 2014-04-03T20:01:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | customer = json.loads(
storage['customer_add_bank_account']['response']
)
request = {
'customer_uri': customer['uri'],
'uri': customer['credits_uri'],
'payload': {
'amount': 100,
},
} | [
"dgriffiths@ghost1227.com"
] | dgriffiths@ghost1227.com |
82b234535f523b9c06304b37de9a22bc067c7c74 | c50d9ce8073048532e4556f862f775c4caf5e011 | /examples/receive.py | 70414efbe69bfb12507652804ae2fecb88fb22d2 | [
"MIT"
] | permissive | rickhanlonii/aamnotifs | bc27614a92d6ae27478a3960808d455d6e3b5268 | 8ef14f99ba052e38d30f77d56de38273bf791254 | refs/heads/master | 2021-01-16T20:03:42.459909 | 2013-07-25T13:20:02 | 2013-07-25T13:24:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | ################################################################################
# Simple(st) example for receiving notifications.
################################################################################
import notifs
def print_notification(title, message):
print "Notification received: {0}: {1}".format(t... | [
"andrei@marcu.net"
] | andrei@marcu.net |
468bc121358fe3b51c60fe2cdcefb8ee07f614ff | ca3799ce88e9b9ad84bcec00e68dd8c615fdbb3d | /Trabalho_1/core/migrations/0001_initial.py | 993ad8c2c1e789e517faba7354a835b3d0bb89f7 | [
"MIT"
] | permissive | desenho-sw-g5/service_control | d8b4129d33466084239df9f18986e004474ff2b6 | ed0496f72643ac004d58126ac486a6e0c47643cd | refs/heads/devel | 2021-01-20T02:32:52.321505 | 2017-11-27T11:33:15 | 2017-11-27T11:33:15 | 101,324,220 | 3 | 0 | null | 2017-11-24T10:23:14 | 2017-08-24T18:09:29 | Python | UTF-8 | Python | false | false | 769 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-14 16:13
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"matheusrichardt@gmail.com"
] | matheusrichardt@gmail.com |
1581da937574006f29adc83b6be0f88522e15faf | 4f375eec10cd2266c0280aae5ff2704560b6b00f | /DjangoUniversity/venv/bin/django-admin.py | 41744146756b479214d5b32dc5368edad318cd26 | [] | no_license | Jaibean/Python | f1dff66269cce1cdc034c40dd70975870acb7cbf | a9ebcdf2b74f60d80a88d7b76021995d84e7ee8d | refs/heads/main | 2023-05-08T14:33:25.616586 | 2021-05-29T03:20:27 | 2021-05-29T03:20:27 | 317,381,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | #!/Users/jaimiebertoli/PycharmProjects/DjangoUniversity/venv/bin/python
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-... | [
"jaimie.bertoli@gmail.com"
] | jaimie.bertoli@gmail.com |
c737c2c9df7e4e431e045cdd97aecd4aa4483742 | dcbb4a526f6cf6f490063a6e4b5f1353fda48a1f | /tf_agents/drivers/tf_driver.py | de16194c74cf80ce5e092c4607046a47a02b73ac | [
"Apache-2.0"
] | permissive | Bhaney44/agents | 91baf121188f35024c09435276d108600ba6f07e | 792d7c6e769d708f8b08d71926ccb9e8a880efef | refs/heads/master | 2023-08-09T03:51:16.188708 | 2023-07-21T17:50:18 | 2023-07-21T17:50:18 | 177,231,436 | 0 | 0 | Apache-2.0 | 2019-03-23T01:46:03 | 2019-03-23T01:46:02 | null | UTF-8 | Python | false | false | 5,527 | py | # coding=utf-8
# Copyright 2020 The TF-Agents 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
9e25a76b082548ee94432dc821353a29a8e5f423 | 107973063f26b791ccd6deca0026acb338eb4d6b | /harvest.py | 8631b158987a039be018791b790f53b2a123623b | [] | no_license | sonya-sa/melon-objects | 322b46138ee9287b74cf8eb50bae64f56eb50e23 | a035db0be16e749a0654cc8518315f408efc72bc | refs/heads/master | 2020-03-10T10:15:07.606336 | 2018-04-13T01:09:39 | 2018-04-13T01:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,986 | py | ############
# Part 1 #
############
class MelonType(object):
"""A species of melon at a melon farm."""
def __init__(self, code, first_harvest, color, is_seedless, is_bestseller, name):
"""Initialize a melon."""
self.code = code
self.first_harvest = first_harvest
self.color ... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
5c8494e379adb3963beead9dc40e803a8116cb46 | 3de3dae722829727edfdd6cc3b67443a69043475 | /cave/com.raytheon.viz.gfe/localization/gfe/userPython/procedures/SnowAmtQPFPoPWxCheck.py | 9d7c3a3c8577a8c463d088e2adc2ec0c09f4fe61 | [
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] | permissive | Unidata/awips2 | 9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb | d76c9f96e6bb06f7239c563203f226e6a6fffeef | refs/heads/unidata_18.2.1 | 2023-08-18T13:00:15.110785 | 2023-08-09T06:06:06 | 2023-08-09T06:06:06 | 19,332,079 | 161 | 75 | NOASSERTION | 2023-09-13T19:06:40 | 2014-05-01T00:59:04 | Java | UTF-8 | Python | false | false | 61,851 | py | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to ... | [
"mjames@unidata.ucar.edu"
] | mjames@unidata.ucar.edu |
74dbb2d761f0933956fd053d1d298ae037799303 | 991ef9b36fbe85f7d611124f4059ac3715039640 | /fetch.py | 260de0ea4e63f1c1a81eb4325276617d10398ff6 | [] | no_license | zeddo123/Quotefetch | 7c435d2beaf448c0c6135b10154a6a9d637b7dc6 | df74ab397413ce728792564392b020bd84275923 | refs/heads/master | 2021-07-05T21:36:37.872916 | 2020-09-01T09:20:58 | 2020-09-01T09:20:58 | 172,564,321 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | #!/usr/bin/env python3
from utils import *
line_len = 8 #The maximum number of words in one line
text_color = '' # The Color of the quote (Default : White)
type_of_quote = '“”' # '«»'
quote_color = '1;33' # The color of the quote " ' "
file_name = 'quote.txt'
url = 'https://www.quotedb.com/quote/quote.php?action=rand... | [
"mouhadrissi9@gmail.com"
] | mouhadrissi9@gmail.com |
3c8c459ca3da25ea02f13f4269af68969c2b9943 | a2793ecc10f3a683ab6fbe045b71c78b1cafb7b8 | /ipython/profile_flowml_server/ipython_notebook_config.py | dab5cffdb3374ff141c6f36893c7dcc2cfa49d67 | [] | no_license | jeffrey-hokanson/FlowML | 4e67cba1f1ade0485824aa702fa872f645791562 | 878f318bdde53365f1b2f75725376bdbd4485f7e | refs/heads/master | 2021-01-22T13:42:54.142314 | 2015-01-29T00:31:36 | 2015-01-29T00:31:36 | 21,365,669 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,593 | py | # Configuration file for ipython-notebook.
c = get_config()
c.IPKernelApp.pylab = 'inline'
# TODO: This should be passed in by the start_server.sh script
root = u'/Users/jhokanson/SVN/FlowML/'
# This should be an absolute path so that when
c.NotebookApp.certfile = root + u'mycert.pem'
c.NotebookApp.ip = '*'
c.Noteb... | [
"jeffrey@hokanson.us"
] | jeffrey@hokanson.us |
fd791a584893677dea53bfac1e465f9e26f68440 | bd3bd2f1be4c408faa57b1c88a374f304fd8eaa6 | /setup.py | 7a7ba4d8a783fc59fb395b278a611abcdf5d9993 | [
"MIT"
] | permissive | Soebb/PyYouTube | bf8873333dfaa81b7ca8845123a69faee5301540 | 125b9f63b677eeece9d95790505a3818ed26c94d | refs/heads/main | 2023-07-13T16:43:27.154729 | 2021-08-12T21:16:11 | 2021-08-12T21:16:11 | 395,442,681 | 0 | 0 | MIT | 2021-08-12T21:00:40 | 2021-08-12T21:00:40 | null | UTF-8 | Python | false | false | 728 | py | import pathlib
import setuptools
file = pathlib.Path(__file__).parent
README = (file / "README.md").read_text()
setuptools.setup(
name="PyYouTube",
version="1.0.2",
author="mrlokaman",
author_email="ln0technical@gmail.com",
long_description = README,
long_description_content_type = "text/mark... | [
"noreply@github.com"
] | Soebb.noreply@github.com |
d862a18d54b56460bd7814306f7f05e308534c29 | 688cd4dd42ac526e7e995cb391eae2dfc2963e51 | /payroll_email/__manifest__.py | ca10fc6d56f5abf5d61c037de386ecaa2d5e42d2 | [] | no_license | tonyfreemind/odoo13_lajaraltd_custom_addons | 3f738cad326b841a42c3537aff1327b8154eaa9e | c569895999f3ec839520b9350d7b13509da22d04 | refs/heads/master | 2023-03-16T12:38:52.717824 | 2020-02-11T12:25:39 | 2020-02-11T12:25:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py | # -*- coding: utf-8 -*-
###################################################################################
# Payroll Email Project
#
# E-Soft Solution
# Copyright (C) 2018-TODAY E-Soft Solution (<https://www.sagarnetwork.com>).
# Author: Sagar Jayswal (<https://www.sagarnetwork.com>)
#
# This program ... | [
"imbipul9@gmail.com"
] | imbipul9@gmail.com |
96b504a735cf6e04622a461658a2dbab9ebb16dd | 8f428e090b7b54868d55f7772c3bb22701d0fbd8 | /coil_20_deeplearning.py | c8a5060573dd49ff9f326a7c12165c3adb0e720b | [] | no_license | LPTgrumpycats/deeplearning | e16fe9296441e4d4e0fa56b9e7c366e47c2b44b1 | 79bf9595ab9e63b9c3ecc118dfd79a20a14e6064 | refs/heads/master | 2020-12-29T02:19:00.062773 | 2015-12-01T23:46:30 | 2015-12-01T23:46:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | __author__ = 'vincentpham'
import glob
from PIL import Image
import numpy as np
import csv
import time
import h2o
from h2o.estimators.deeplearning import H2ODeepLearningEstimator
files = glob.glob("coil-20-proc/*.png")
n = len(files)
files_split__ = [x.split("__") for x in files]
obj_id = [[x[0].split("/")[1],x[1].spl... | [
"vincentpham@gmail.com"
] | vincentpham@gmail.com |
42681a8005087fdf5af45ee8ea50da01ea85163e | 1764954b63a7033663545c0cc621bb45cfef5248 | /game/scenes/test_scene.py | 8ea6c44912c9de8bbbffb00a6cd0f9e8c5b7cecf | [] | no_license | shelsoloa/AgentObie | c9c5b2979e59a649a9148f3e1e5ebe06dfa7efa1 | 69d0c42a2674b20775dcc3d8578a8468739e0d45 | refs/heads/master | 2020-04-24T06:52:14.497763 | 2019-02-21T01:49:47 | 2019-02-21T01:49:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | from peachy import PC
from game.scenes import Message, Scene, \
wait, wait_for_actor, wait_for_input, wait_for_message
from game.scenes.actors import Obie
class TestScene(Scene):
def __init__(self, world):
super().__init__(world)
def advance(self):
# Create actors
... | [
"a.sheldon.sol@gmail.com"
] | a.sheldon.sol@gmail.com |
510d5d810326d3d4bf1e76e31d39fa76b91e1e99 | 7d476485673b3e0904a0120ee9973a2e2b603c8d | /4เหลี่ยม.py | 17984e53dee4d972ca63934815095aa0d48fa737 | [] | no_license | KARGOREO/Test.com | f8b1948c9354631eea3af08e1a91ccefda1dfc2f | f282ffddabcfacf0c453831e9c423c33ce040f87 | refs/heads/main | 2023-03-15T01:21:27.690994 | 2021-03-24T12:51:22 | 2021-03-24T12:51:22 | 351,050,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | def V2():
width = 12
xlong = 13
area = width * xlong
print("พื้นที่สี่เหลี่ยมผืนผ้ามีค่าเท่ากับ %.2f" % area)
V2() | [
"oppwerq@gmail.com"
] | oppwerq@gmail.com |
bb12b060c5d0a70a3b69d0c5c11ae3e745a880c0 | c57f97c6eac08f91814d3144f6e2b1cc066438ce | /ai/testers/minheap.py | 94d23405cf7abce4c56e1f75b7e1d89be2c23da9 | [] | no_license | Michael-Nath-HS/MKS21X | 92853f708539693d86ee113adde6db0b6ca4bed0 | 28c3fb200947ee202530899bbbd29458a72872ea | refs/heads/master | 2022-04-08T11:10:55.236277 | 2020-02-12T12:11:59 | 2020-02-12T12:11:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | from math import floor
class Node:
def __init__(self, v):
self.data = v
self.position = None
def __str__(self):
return "NODE WITH VALUE: %d" % self.data
class Pqueue:
def __init__(self):
self.listy = [None]
def push(self, v):
anode = Node(v)
listy = se... | [
"mnath10@stuy.edu"
] | mnath10@stuy.edu |
80e3d5c7c10df49f602e4e750ced29e5821160f1 | 6a342f0c303cd41f2d2a80a2e8a118c86fc6d003 | /pandasExercise.py | 3b36b36a1149263b9a90dde4a77cabef3bf8109a | [] | no_license | QwertyAswal/pandas | 9b51acdb9a2df8ba0556de9ba0f57307805da5b7 | 93cce015407ec2e4af2e413119cb8c42cdc0875e | refs/heads/master | 2020-06-18T13:42:50.550684 | 2019-07-11T05:09:51 | 2019-07-11T05:09:51 | 196,321,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | import pandas as pd
def findOut(df):
ls = []
maxVal = df['TEMP'].mean() + 2 * df['TEMP'].std()
minVal = df['TEMP'].mean() - 2 * df['TEMP'].std()
for i in df['TEMP']:
if (i >= minVal and i <= maxVal):
ls.append(True)
else:
ls.append(False)
return ls
def toC... | [
"noreply@github.com"
] | QwertyAswal.noreply@github.com |
e10af10c17a74257c1bfab627cc04fe39b25b1b7 | 96903069c6f109f5a7b7d88ec8cd3f334db8b370 | /backend/backend/urls.py | 75ad6128f0c57086839af3de97c520c4ea0f8417 | [] | no_license | luisthume/projeto_dashboard | b4e97635daf94be65246a1f77ac807242e91755b | d136dd3d2b1841ffd939faf90cc5cacb0980ff4e | refs/heads/master | 2023-03-04T11:17:41.312157 | 2021-02-06T23:25:25 | 2021-02-06T23:25:25 | 332,869,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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... | [
"luisltcs@gmail.com"
] | luisltcs@gmail.com |
de0ac26b4417af4cfa68ee5a2c5214e54a9f3c18 | 86109bf63dcf43d180738102973df847ea631f7b | /03/vesnice.py | a810a8c4b122535fdc47153de6c01be17238a8d0 | [] | no_license | HanaKarbanova/pyladie.cz | afa103042ba45c5d3a82fd27ba444985aae23c5c | c6aa56430d689ff69243467949d8a191319589c6 | refs/heads/master | 2020-07-02T18:59:53.571701 | 2016-11-20T17:19:18 | 2016-11-20T17:19:18 | 74,288,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | #zde se kreslí vesnice
from turtle import forward, left, right, penup, pendown, exitonclick
from math import sqrt
strana=float(input('Jak je dlouhá strana?:'))
velikost = int(input('Kolik chceš baráčků:'))
penup()
left(180)
forward(300)
pendown()
right(180)
#setpoint(300)
for i in range(velikost):
left(90)
fo... | [
"hana@karbanova.cz"
] | hana@karbanova.cz |
450743dde646e0a0b66802c629ddb6cf7f9b9ee1 | def5022618e9f142fc5ea107ab70ab7aa57b0432 | /common/optimizer.py | fa24580e14f0ede35045d2fa53a9066b03f4126f | [] | no_license | iDMatlab/EEG-P300Speller-Toolkit | a0d4bdc41f0ea8ca2bc4985fe4b69ba82dfb1410 | d754fb6568229c9de5f5cfadfa1c5532945654f0 | refs/heads/master | 2023-04-15T23:33:11.172432 | 2019-10-23T07:58:54 | 2019-10-23T07:58:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | # -*- coding: utf-8 -*-
import numpy as np
from scipy.optimize import fmin_l_bfgs_b
from abc import ABCMeta, abstractmethod
class GradientDescentOptimizer(object):
__metaclass__ = ABCMeta
@abstractmethod
def minimize(self, fojb, x0, args):
raise NotImplementedError()
class AdamOptimizer(Gradient... | [
"44161787+stephen-hjay@users.noreply.github.com"
] | 44161787+stephen-hjay@users.noreply.github.com |
cce157999454496287f57ee49815b75ccd807999 | f077ad4cf886976e82d3bd1befa99711263f8c4f | /homework/HW3/HW3-final/P2B.py | ce4a84e1e494d2a095913fbfcbb779b3a3d2c43c | [] | no_license | vditomasso/cs107_victoria_ditomasso | ff9263a7034bbf6586e2c046679f3b6e9419d92b | 2df8d4562159f0bfa7f2c78984df2a84ab82e165 | refs/heads/master | 2023-01-29T03:50:49.929143 | 2020-12-10T19:26:46 | 2020-12-10T19:26:46 | 291,739,733 | 0 | 0 | null | 2020-12-10T19:26:47 | 2020-08-31T14:35:50 | Jupyter Notebook | UTF-8 | Python | false | false | 76 | py | #!/usr/bin/env python3
from Regression import Regression as reg
help(reg)
| [
"victoriaditomasso@Victorias-MacBook-Pro.local"
] | victoriaditomasso@Victorias-MacBook-Pro.local |
b71af90781dd820c929003a9e1a46da4ff098c1a | c6600947c3654cdf10ee00543da086c2eeb81c92 | /GourdianTest/s3.py | 894e1ca121f27568de6abc8ca8f1ee8d2c2c1f95 | [] | no_license | javadevelopr/GourdianOracle | 42a298a378111e412543a0c184a2394203f52650 | 246b8e241a896086ab7b6d1b6cb8bb6bef2aa44c | refs/heads/master | 2022-12-15T20:30:33.838779 | 2020-09-07T17:15:22 | 2020-09-07T17:15:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,972 | py | #!/usr/bin/env python
# File Name: chunk.py
#
# Date Created: Feb 16,2020
#
# Last Modified: Tue Feb 25 18:12:03 2020
#
# Author: samolof
#
# Description:
#
##################################################################
import boto3
import botocore
from os.path import basename
import datetime
import hashlib
import... | [
"java.developer.cl@gmail.com"
] | java.developer.cl@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.