blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c10ac102aaf2662cf2046b3810debfa5a5a4b23f | d2a6d92c0d1a846e14b958792a35bfd70571c464 | /python/examples/sim_image_via_memory.py | ccc436d6b451c9e5bee312571423ce47c8c0582e | [
"BSD-3-Clause"
] | permissive | OxfordSKA/OSKAR | 990c2c252a61519676e1ff3e4fec807353497d01 | d1b86f8c9f8a7d675e357d9416f94b02413cf9bb | refs/heads/master | 2023-09-03T20:08:47.971632 | 2023-08-22T15:47:23 | 2023-08-22T15:47:23 | 9,254,691 | 62 | 37 | NOASSERTION | 2021-04-20T12:33:44 | 2013-04-06T03:13:37 | C | UTF-8 | Python | false | false | 3,254 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import time
import numpy
import oskar
from astropy.io import fits
if __name__ == '__main__':
# Global options.
precision = 'single'
phase_centre_ra_deg = 0.0
phase_centre_dec_deg = 60.0
output_root = 'test_via_memor... | [
"fred.dulwich@oerc.ox.ac.uk"
] | fred.dulwich@oerc.ox.ac.uk |
9268a388f741e7c8071545c775d79d8dfccb7438 | 22e51ce46feb0c5ed42849994c81946eb2a1fa64 | /chapter_5/5.3_fermat.py | fcf85aae2184883ec201e34a2f04babf51e0898e | [] | no_license | aidancurtis/thinkpython | c7a955728ddb6f9c51ede899988124f2c00d471f | 92ee1fd7450e9894c0d3c846e365b4d7f88faed6 | refs/heads/master | 2022-10-22T08:06:43.255274 | 2020-06-18T19:35:46 | 2020-06-18T19:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # check Fermat's last theorem that (a^n + b^n = c^n) for n values > 2
def check_fermat(a, b, c, n):
""" checks fermats last theorem """
if ((a ^ n + b ^ n) == c ^ n):
if n > 2:
print("Holy smokes, Fermat was wrong!")
else:
print("No, does not work.")
# prompts users for values
... | [
"curtisaidan2@gmail.com"
] | curtisaidan2@gmail.com |
ef91e94d6868a4a3c8aed4fcd7f47856118441d1 | 6dd9439dd2bf4787ab6180e6c825eadb6f4c7145 | /07/hvmtrans/hack_vm_translator/code_writer.py | 9f6dbc40cc7da1393205857e689d971a4b026b85 | [] | no_license | koucs/nand2tetris | b117198a4fb33a98f1e9789504bb28aa568e996a | 394571b1d56dc66bddea238890507b46d0b62233 | refs/heads/master | 2022-09-16T15:24:37.318573 | 2020-06-01T13:32:22 | 2020-06-01T13:32:22 | 198,227,732 | 13 | 0 | null | 2020-06-01T13:32:24 | 2019-07-22T13:21:35 | Assembly | UTF-8 | Python | false | false | 3,306 | py | from hack_vm_translator.constants import *
import os
class CodeWriter:
def __init__(self, path, debug):
self._f = open(path, "w")
self._file_name = os.path.basename(path).split(".")[0]
self._debug = debug
self._jump_cnt = 0
return
def set_file_name(self, name):
... | [
"noreply@github.com"
] | noreply@github.com |
5eb851b8fc7913377b3b95d3bc97b82a50453486 | b59a593cacf6357b6f0e14e4da9fdc40b04b696b | /weather/urls.py | 8151651f53e75914f618087969c0b478fc816dac | [] | no_license | jamesrappazzo/scheduler | cc44de3f5d34f266e69e1671eb4c8beb61a9417d | d31320977e9852843af6eaa5766625ea81cb9721 | refs/heads/main | 2023-07-04T04:13:19.603862 | 2021-08-11T01:36:17 | 2021-08-11T01:36:17 | 386,472,516 | 0 | 0 | null | 2021-07-16T01:33:45 | 2021-07-16T01:31:59 | JavaScript | UTF-8 | Python | false | false | 719 | py | from django.urls import path
from weather import views
app_name='weather'
urlpatterns = [
# /weather/
path('', views.IndexView.as_view(), name='index'),
# /weather/search/
path('search/', views.SearchForm.as_view(), name='search'),
# /weather/search/<zip>/
path('search/<int:zipcode>/', views.... | [
"james.rappazzo@newtonx.com"
] | james.rappazzo@newtonx.com |
e739ca2725e96d1eb54ca21c74baf7f2e0a954eb | 7ce56dc3a1110b61d0087565f02b4fe576cad58c | /scrapy_test/coolscrapy/coolscrapy/middlewares.py | 2c8cf90cc52912785d05f2df18a5cb027042f66d | [] | no_license | lssxfy123/PythonStudy | 7c251961ce72217e83184853cb0c11dc773e4075 | d5beba373b78c6c0276c413a44819d3084899d01 | refs/heads/master | 2022-11-28T17:25:36.957483 | 2021-11-26T09:55:32 | 2021-11-26T09:55:32 | 55,392,700 | 1 | 1 | null | 2022-11-22T01:39:12 | 2016-04-04T07:28:25 | Jupyter Notebook | UTF-8 | Python | false | false | 3,605 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class CoolscrapySpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scra... | [
"liushenshenxfy@126.com"
] | liushenshenxfy@126.com |
a22098891d71ae7dd4a8b8820373710eb8091623 | 076126dfec7bab456ffeafd076800a3351f59109 | /pythonPractice/DP_robot.py | 483bf738afefe90e50c12d41125e65aadf0c6ff2 | [] | no_license | dthiemann/coding-practice | 35306935a89bb94f87d873fa226c2cef6527157b | b066033926095dc94fd5e6c95bad4ed8a6e486ac | refs/heads/master | 2020-04-29T07:58:43.641249 | 2014-12-08T18:30:22 | 2014-12-08T18:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | '''
Given a sorted array A[0...n], there will be
an element such that A[i] = i. Find this element
'''
import sys
myList = [-2,-1,0,1,2,3,4,5,6,8,9,10, 13, 14, 15]
def magicNumber(myList):
return magicNumberHelper(myList, 0, len(myList))
def magicNumberHelper(myList,start, end):
if (start >= end):
re... | [
"dylanthiemann@gmail.com"
] | dylanthiemann@gmail.com |
de38571622b224e1a4eff0cf058b083d06976eda | 119eee6847d9a1ec97fd4c8f8e556c58efd4bfb6 | /AlgosCode/DivAC/ant_maze.py | bd848702fd6ce069b4b53e5756dbda166a93e1eb | [] | no_license | SJTUGuofei/DivAC | a7477a2526f5cb6058dd4fa9a9f3b5b9c5f1677d | 8d9b8720d7ec24f00645b6d7881a9a858436a893 | refs/heads/master | 2023-07-17T15:35:37.201126 | 2021-09-05T06:08:41 | 2021-09-05T06:08:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,146 | py | import argparse
import gym
import os
import numpy as np
import logging
import torch
from datetime import datetime as dt
from gym import register
from utils.replay_memory import ReplayMemory
from envs import AntEnv
from envs.ant2 import rate_buffer
from divac import DivAC
register(id='AntMaze-v1', entry_point=AntEnv)
... | [
"zhiyouyang@std.uestc.edu.cn"
] | zhiyouyang@std.uestc.edu.cn |
2e4ccd73d775303c09f68a8ab786cf3937073db0 | 82cb52bb8ee7fa093ce2f60e75c972c620a2fc52 | /speaker_identification/wsgi.py | 745cbe295be4cee7d281e191334704a057dfd0f2 | [] | no_license | HMMubashar/speaker_identification | 98e9e3b6cf3f30c07437042b52b2029abb328e9d | 1ba92e9386b660add838f5729c02a530d270a128 | refs/heads/master | 2020-08-13T10:46:05.903202 | 2019-10-13T21:50:28 | 2019-10-13T21:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
WSGI config for speaker_identification 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.setdefaul... | [
"scriptorient@gmail.com"
] | scriptorient@gmail.com |
843672c9de2f1610b0f7efbd7ab3bcd347efcc74 | 6f34d0798624c0086501c7a495915ebb53fb7704 | /user/models.py | 57d39d5ef51456d180733b8ca5f0053bf4020711 | [] | no_license | yukiYK/VPS_project | 996bdb9284d181e6cff959b87530edccd5bcd0c3 | 6a686d400fa7bf1274cfef2eab5914d89193d92e | refs/heads/master | 2021-05-14T06:45:58.770949 | 2018-12-12T03:18:29 | 2018-12-12T03:18:29 | 116,248,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | import hashlib
import random
import uuid
from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class User(AbstractUser):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
phone = models.CharField(max_length=20, unique=True)
p... | [
"ssss4444222@163.com"
] | ssss4444222@163.com |
92f529aa77dfb01a664fd51d50b28c2c543cd3d1 | dd1dd025d5bff3831e5a8c809a9daedf2b66ae87 | /saliencyservice/SalNet.py | 907644ee95911242b5d617c9f1c64b1fad158d55 | [] | no_license | torchbearerio/saliency-service | 8f834418a1a790cef9c051592d9113e10e430366 | 785fff07412e8928171ad5d6bea73b849a77d25e | refs/heads/master | 2021-01-20T00:53:16.980932 | 2018-03-22T09:52:21 | 2018-03-22T09:52:21 | 89,206,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | import Algorithmia
from Algorithmia.algo_response import AlgoException
from pythoncore import Vault, Task, Constants
from pythoncore.AWS import AWSClient
from pythoncore.Model.Hit import Hit
from pythoncore.Model import TorchbearerDB
import time
# Build Algorithmia client
key = Vault.get_key('algorithmia-key')
client ... | [
"fredricvollmer@Fredrics-iMac.local"
] | fredricvollmer@Fredrics-iMac.local |
21e1b0da1f6e231a3370a401206faebd2f2aff3e | c351c54ff292d4ce8628cf033f8f3026829d79f3 | /blog_api/apis/authorization_layer/python/bin/pyrsa-keygen | 126ebac139a75ad6bfe8c1f5d7e0f83016d8882e | [] | no_license | MathiasDarr/Portfolio | 424ba0d3bd3b36bb9be09a31ea0b9bca2d3cc568 | 0eb6377d9aedba75ac30a0a5583f47dc31d31810 | refs/heads/master | 2023-02-06T04:33:44.123544 | 2020-12-31T08:35:45 | 2020-12-31T08:35:45 | 261,949,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | #!/home/mddarr/data/anaconda3/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import keygen
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(keygen())
| [
"mddarr@gmail.com"
] | mddarr@gmail.com | |
7ecaa4450f543c9a68460f1cc3e01872c9cb707f | 09ee86d0bd77ca79992f073b6c8b1e98b88cb09b | /resource_allocation.py | df8c166cbc456843a049ef8501f85c59300fe21a | [] | no_license | JaneWuNEU/hitdl_server | 624fbb5cfea3641cb624a291ed6de1e274982463 | 9076a813c803bc9c47054fff7bae2824304da282 | refs/heads/master | 2022-12-29T22:14:44.496492 | 2020-10-13T01:58:19 | 2020-10-13T01:58:19 | 303,327,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,589 | py | import cvxpy as cp
import numpy as np
c1 = np.array([1,3,5])
e1 = np.array([1.505,1.351,1.27])*c1
c2 = np.array([2,5,7])
e2 = np.array([1.844,1.502,1.843])*c2
c3 = np.array([1,5])
e3 = np.array([1.505,1.148])*c3
C = 12
'''
x1 = cp.Variable(name="inception",shape=(len(c1),1),integer=True,pos=True)
y1 = cp.Variable(sh... | [
"neu_15_wujing@126.com"
] | neu_15_wujing@126.com |
90de87d2923928746577fc89446dff111c90554d | 2813274dd110773a70f3c7192ff9fb0a5c5233b4 | /flask/demo/一对多/model.py | 252bac8d8e00527b1d492bef153e5afcea1ff91d | [] | no_license | krzover/myPython | 4a37a363cf4ae3838c0f95ffb6126d1811b7cca1 | 38b3d69e02dee6b8e5b8b22e546080359ce16380 | refs/heads/master | 2021-01-13T01:18:50.366259 | 2017-04-28T06:54:12 | 2017-04-28T06:54:12 | 81,800,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | #coding:utf-8
from sqlalchemy.orm import relationship,backref
from orm import db
class Classes(db.Model):
__tablename__ = 'class'
id = db.Column(db.Integer,primary_key = True)
name = db.Column(db.String(50))
classNum = db.Column(db.Integer)
class_ship = relationship('Students',backref = 'cla')
... | [
"krzover@gmail.com"
] | krzover@gmail.com |
67588678cb5b476b2fcca613737e08b7f9cde82d | 3be35210c333cb2c8c61af0f7c9430cfc610d352 | /migration/migration/wsgi.py | 4a9fc2374372dc150c153c04f21d98f8e31c1517 | [] | no_license | chimble/migration | 9111265a3ed4269d36c8d2c512333ef5f9ae8b4e | 2f635458999f4558c30e8d8810c757441b4fddc5 | refs/heads/master | 2020-07-21T17:32:46.782038 | 2016-11-16T04:35:23 | 2016-11-16T04:35:23 | 73,843,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for migration 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_SE... | [
"cameron.moeller@gmail.com"
] | cameron.moeller@gmail.com |
680cd9f164e837af9d8b21d13daeaa800e33f24b | 6137cf4dbfae8b0908090a82ba7a17bed410a31e | /python2/total_log.py | a8c330bca6ad8a3212d1d03533a241d8114f6cc9 | [] | no_license | linwiker/learpython | 5ba16283be032f6b3819be5888dd84088abd4c3b | 1afdc62125f154c957a739e38cced3006cd52907 | refs/heads/master | 2020-05-21T12:27:52.821229 | 2017-02-03T07:42:46 | 2017-02-03T07:42:46 | 47,006,529 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 统计nginx的access_log日志的状态+url+ip地址的最多的十次
f=open('access.log','r')
d = {}
for line in f.read().split('\n'): #把从文件中读取的条目以\n为分隔符生成一个大的list,并且每次line从这个list取出一个字符串
arr = line.split() #把取出来的字符串以空格为分隔符生成list
if len(arr) < 9: #过滤不符合规范的日志
continue
temp_tup=(arr[8... | [
"root@node1.linwiker.com"
] | root@node1.linwiker.com |
4baea18d287badc1c6dd3c051c07689a17cd4263 | 7d2cf19986db70fb25718b2d1ca2040f792f65b0 | /com/noomtech/building_blocks/BuildingBlocks.py | 58cf01ffb007ce09c0928235e5e53e238dd9ea19 | [] | no_license | newmanjb/DigestiveSystem | 9a9ccbb846670ea31b1ae76b37ff937f592911ff | 07abccf0d231c9bbb4686de0818f13027553b889 | refs/heads/master | 2020-03-22T09:40:53.296003 | 2018-07-21T15:07:38 | 2018-07-21T15:07:38 | 139,853,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,706 | py | from abc import ABC, abstractmethod
from time import sleep
import threading
"""The higher level objects used to form the components of the body"""
#todo -- add synchronization to multithreaded functionality
class Producer(ABC):
"""Producer is anything that produces an object that can be transported or... | [
"noreply@github.com"
] | noreply@github.com |
75a26c1ad3a48b24f0860c6ef9cda9c72576b8e0 | eeaa7e5fc5df8316752ef1c8c847042dc0fd9ebd | /openpyxl/chartsheet/tests/test_views.py | 4505993368059ddd734bf874e7a6368e96a104ab | [
"MIT"
] | permissive | JSv4/OpenPyxl-Recursive | 539d67b50b10734da8e7f53da0d81a8e9cbe25d9 | fdecfb4d3235987a4deb5a0f3188670d06e55a1d | refs/heads/master | 2023-08-01T13:38:39.417954 | 2021-08-25T03:27:10 | 2021-08-25T03:27:10 | 406,147,448 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | # Copyright (c) 2010-2021 openpyxl
import pytest
from openpyxl.xml.functions import fromstring, tostring
from openpyxl.tests.helper import compare_xml
@pytest.fixture
def ChartsheetView():
from ..views import ChartsheetView
return ChartsheetView
class TestChartsheetView:
def test_read(self, Chartsheet... | [
"jscrudato@gunder.com"
] | jscrudato@gunder.com |
f876809f9f9d7497dc246c7e9a19162b44450b00 | 4de862b5665c0c67d98c835a995fa1cf3a48bf15 | /music_main.py | 6d9dbf58867e0f116303243a038c2eab48b3dd65 | [] | no_license | WPN0837/Robots | ca61d7a99313500c06da65cbb2b8da88497b7f6a | e4c4b87fc66af6ae5378aa248d34331e136a3610 | refs/heads/master | 2020-03-09T05:14:40.916409 | 2018-04-18T04:03:26 | 2018-04-18T04:03:26 | 128,608,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | import requests
from bs4 import BeautifulSoup
import re
import json
import pymysql
import os.path
import song
import playlist
import connection_mysql
def entry_playlist(purl):
id=purl[-10:]
purl="http://music.163.com/api/playlist/detail?id={}&upd".format(id)
headers={'user-agent': 'Mozilla/5.0 (Windows... | [
"noreply@github.com"
] | noreply@github.com |
e6bd7ef27fea3eab70031c07b583c0a8c06245ec | 70cea82aa3e5c574c7cb134253061dcdc45d08a7 | /workspace/gpio-test/gpioapp.py | 7b76fdf87b91964df848d8025d8f3d3d6eabe3d9 | [] | no_license | kkc926/raspberrypi | e21b9431e8532790bab5b0132a8d3e232ffd292a | 53018babb2395680013d77bf02bfce409e5bbfe0 | refs/heads/master | 2022-12-28T21:20:12.431215 | 2020-10-10T09:58:52 | 2020-10-10T09:58:52 | 299,950,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | from piapp import *
import RPi.GPIO as GPIO
from ledex import LedEx
from btnex import BtnEx
from btneventex import BtnEventEx
from pwmex import PwmEx
from pwmservoex import PwmServoEx
from ultraex import UltraEx
from mcpex import McpEx
class GpioApp(PiApplication):
def __init__(self):
super().__init__()
... | [
"kkc926@naver.com"
] | kkc926@naver.com |
1db4b1e6fab587161cc26d8225383153a66627ad | 0a92b2f9b9faac8cdd510197ce1366d8fa68b637 | /delorean-express/delorean_express.py | 5f93cf3eab8991e25768e887aea16e0922ecb8cc | [] | no_license | Dallyla/delorean-express | 64b232697f1f3c647d95114d38837ec8435abcf9 | a56a215722bb0d807dc9016dac36d0eabcd534b8 | refs/heads/master | 2020-10-02T05:22:42.976107 | 2019-12-12T23:16:29 | 2019-12-12T23:16:29 | 227,711,885 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | py | import cv2
from urllib import request
import numpy as np
import time
import random
font = cv2.FONT_HERSHEY_SIMPLEX
current_milli_time = lambda: int(round(time.time() * 1000))
stream = request.urlopen('http://192.168.000.000/stream')
#stream = cv2.VideoCapture(0)
bts = b''
count = 0
total_fails = 10
starttime = tim... | [
"noreply@github.com"
] | noreply@github.com |
3a5f8d84f2a1ba883f52e19cbb3c261badb41bd0 | d108934a9a8fcb8004ed5bde2579446850b96b33 | /examples/handwritten_pdist.py | 7d6a49e94f8c6a5f02e458336a5f08e48c4e31da | [
"BSD-2-Clause"
] | permissive | YChuan1115/LibOPF | 3328e545c7547e0846dbcd5388f717be86b95c14 | b6ef25eb59959f3e864326157cdea9b6e6abc143 | refs/heads/master | 2020-05-07T09:07:27.123753 | 2018-10-07T22:51:17 | 2018-10-07T22:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | import time
import numpy
import libopf_py
from scikits.learn import datasets, svm, metrics
from scipy.spatial import distance
digits = datasets.load_digits()
# To apply an classifier on this data, we need to flatten the image, to
# turn the data in a (samples, feature) matrix:
n_samples = len(digits.images)
data = ... | [
"victormatheus@gmail.com"
] | victormatheus@gmail.com |
b61be880793f296d09f2939b6e9166dd0d13633e | 9a4e4872daeb342c6c6531258921af8e44ed5279 | /setup.py | 3d3ad1c013863a63e4029962a9a7d833faf66de0 | [
"MIT"
] | permissive | coyote240/exifiscerate | 82ac9f148644449886fc7a57e43d3afc4480c8f8 | 29519310f10f1e9bd900a11922c256d78fc41173 | refs/heads/master | 2020-06-10T10:42:29.803556 | 2019-06-25T04:45:38 | 2019-06-25T04:45:38 | 193,636,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(name='exifiscerate',
version='0.1',
description='',
long_description=long_description,
... | [
"adam.shamblin@gmail.com"
] | adam.shamblin@gmail.com |
b52cfdbdbe0d5cc7e2bd547443edf6a5495f1f48 | 939f515df25a16c200fb3308e7993f5ab808ef46 | /water_management/water_management/doctype/water_owner_contract/water_owner_contract.py | 867fc1cfb0e58e85e45be4cd58dae568c88bf790 | [
"MIT"
] | permissive | muirawachanga/water | 91b1fc6fcf93fc44ffabe3f0f1945d007c561811 | 7062abfe4c8ad21a8000a41ebe1a7c8aba848ae2 | refs/heads/master | 2020-04-08T08:01:47.084941 | 2018-11-26T11:56:50 | 2018-11-26T11:56:50 | 159,161,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,648 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Stephen and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.model.mapper import get_mapped_doc, _
from frappe.utils import getdate, date_diff, flt, a... | [
"wachangasteve@gmail.com"
] | wachangasteve@gmail.com |
e64800017d63876e168ec897bb23392059f97aa3 | 5d6a7246961dddd1a562a05862426e3c0ad25684 | /example/mine/models/slot_tagger_crf.py | 20ad364af1f0c22ae50527f16fc97ad197eefecc | [] | no_license | yqHE/SpeechLab-NLP-homework | 487e61f54d3a387e3bba0a22a723178afae65a8c | 739bf715b690adb592488d71d8d8628a4436fb6e | refs/heads/master | 2020-03-29T13:24:28.572462 | 2018-09-14T11:48:14 | 2018-09-14T11:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,830 | py | """Slot Tagger models."""
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.utils.rnn as rnn_utils
import models.crf as crf
import models.intent as intent
class LSTMTagger_CRF(nn.Module):
def __init__(self, embedding_dim, hidden_dim, vocab_size, tagset_size, labelset_size, pad_toke... | [
"michael.zh.wu@outlook.com"
] | michael.zh.wu@outlook.com |
84b4b53f1d6fe0524f8ac7e8a5fc1e15777cd948 | d766c4260c23e1ee811ea20e8673bbbe296e8b6c | /Week 2/Lecture number guesser.py | d76f8d430ac70c1d62c5a83b77270c5a3af9806a | [] | no_license | Jeremalloch/edX-6.00.1x | bbafae828ca9a055e9efe0f79acdb35564518304 | e2558c5353b496bc1d90a0b939545da7ae44e0d3 | refs/heads/master | 2021-01-20T22:34:26.537951 | 2016-05-29T22:10:33 | 2016-05-29T22:10:33 | 59,965,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | print('Please think of a secret number between 0 and 100')
x=25
c=145
low=0
high=100
while x != 'c':
ans=int((high + low)/2)
print('')
print('Is your secret number ' + str(ans) + '?'),
x=str(raw_input("Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Ente... | [
"jeremalloch@gmail.com"
] | jeremalloch@gmail.com |
6618838361e332c0f1e2a1d03010d913848c0609 | 4144df22392350035a9a24fcbc23fd1c6bce5c12 | /Lib/glyphNameFormatter/rangeProcessors/ipa_extensions.py | ccf36e61c84dd3c9b8071eb6a3377ab9c632c3e7 | [
"BSD-3-Clause",
"Adobe-Glyph"
] | permissive | danielgrumer/glyphNameFormatter | 55b6076684bed7ff4cc6e37ce4a0bb0e2ce86a4a | 9a41b3ef02c01cd18afe0232f6e436a2f7379178 | refs/heads/master | 2020-12-11T05:35:47.835908 | 2016-03-19T09:50:33 | 2016-03-19T09:50:33 | 53,578,090 | 0 | 0 | null | 2016-03-10T11:07:31 | 2016-03-10T11:07:30 | null | UTF-8 | Python | false | false | 1,329 | py |
def process(self):
self.edit("LATIN")
self.edit("OPEN", "open")
self.edit("WITH FISHHOOK", "fishhook")
self.edit("SCRIPT", "script")
self.edit("WITH BELT", "belt")
self.edit("WITH MIDDLE TILDE", "middletilde")
self.edit("WITH LONG LEG", "longleg")
self.edit("WITH CROSSED-TAIL", "crossed... | [
"frederik@typemytype.com"
] | frederik@typemytype.com |
286a19c79c9957c3c95385253b2abbb279721475 | e7f050f3201ca7d5413a46476842bcebbb391ac7 | /shop1/upload.py | 9e200a0488512a25c12a97dbd89af2b0b3f612fe | [] | no_license | MyUncle1997/python_django_shop | 658d4c234548c0faf349cf7d45aa47d316d484d4 | bd71cd0d5be870359fdd9e06df124dfb9b0e14a3 | refs/heads/master | 2022-12-11T16:01:03.807769 | 2018-12-19T12:21:00 | 2018-12-19T12:21:00 | 162,433,830 | 1 | 0 | null | 2022-12-08T01:29:21 | 2018-12-19T12:23:28 | JavaScript | UTF-8 | Python | false | false | 1,887 | py | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from django.conf import settings
from django.views.decorators.csrf import csrf_exempt
import os
import uuid
import json
import datetime as dt
@csrf_exempt
def upload_image(request, dir_name):
##################
# kindeditor图片上传返回数据格式说明... | [
"843012880@qq.com"
] | 843012880@qq.com |
9df9f0692898ff97ec24e33155c447cb78f99cb4 | 597354b124d70e86bcce25551ebb6c63e5e01154 | /LeetCode Search/venv/LeetCode 127 Word Ladder.py | 9abc7e3bad20ea0e900e5fef8ca89412748a76f8 | [] | no_license | HHonoka/LeetCode- | acf361a15f1af8becf2a7225cc738d91bfda5ded | cd751a26fd097f542ab6fe2386a179ddf70de79b | refs/heads/master | 2020-05-25T00:49:20.001811 | 2019-05-19T23:59:52 | 2019-05-19T23:59:52 | 187,539,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | class Solution:
def ladderLength(self, beginWord: str, endWord: str, wordList: List[str]) -> int:
queue = collections.deque([(beginWord, 1)])
wordList = set(wordList)
seen = set()
ls = string.ascii_lowercase
while queue:
word, count = queue.popleft()
i... | [
"shangshanghan16@gmail.com"
] | shangshanghan16@gmail.com |
ac79d2a026758eb5f42fc60f61c03990b713e80e | f54fef60af292721a0b56c9a02ac4be4947a4533 | /award/awardlist.py | c3859731d28c6fbcfec8acbb76c1d312c661994b | [
"MIT"
] | permissive | Baralabite/Tandapy | da76ea6899b500d8ca034a204cd63911c37c59de | 183d7f7acd9be33e74f5595ae1533dbcf3e0f2fd | refs/heads/master | 2020-12-24T20:51:52.067429 | 2016-04-27T04:00:45 | 2016-04-27T04:00:45 | 56,826,271 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | """
The MIT License (MIT)
Copyright (c) 2016 John Board
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
to use, copy, modify, ... | [
"johnrobboard@gmail.com"
] | johnrobboard@gmail.com |
bef5e7923ef0e16ee3bfb5807262adf9b9c54494 | 159f1032e3da50f15718e2ca99f6a3e50642b4b0 | /disquaire_project/disquaire_project/settings.py | b5ca2ae7e481309473f430f6948a4b80df16b46c | [] | no_license | Ellobo1er/disquaire_project | a3b29372dfe95f9938cd84723633f0ef3120ab3e | 0af1d93b2f8aa6302cb6ecb0b2d5b3bd7ddcb2ef | refs/heads/master | 2023-06-28T14:23:54.285800 | 2021-07-29T16:01:23 | 2021-07-29T16:01:23 | 390,767,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,373 | py | """
Django settings for disquaire_project project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
fr... | [
"you@example.com"
] | you@example.com |
5dfe39b74f43cb89577117fce0942ac9926ee53c | 17208ea00f2120e3fd3e180055eccdf3c0bc3d63 | /quiz.py | d3fd97bdb115362d2015ecbe42174862e0b09472 | [
"MIT"
] | permissive | Elicherla01/fb-chat-bot | 9d37ad73c4777d82f4f364613fd3df5bd17cdb9f | 6bdfa07e6a423e386ed61ce67ac218d806ad38f8 | refs/heads/master | 2023-06-12T13:10:15.772510 | 2017-02-06T22:03:36 | 2017-02-06T22:03:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,776 | py | import io
import stats
import random
import re
import time
HIDDEN_CHAR = "-"
# JSON field names
QUIZ = "quiz"
QUESTIONS = "total_questions"
ANSWERED = "total_answered"
LAST_ANSWERED = "last_answered"
USERS = "users"
USER_COMBO = "combo"
POINTS = "points"
class Quiz():
"""Module responsible for all quiz related t... | [
"dainius.dauksevicius@gmail.com"
] | dainius.dauksevicius@gmail.com |
2f4aa91e3802bd30167624d0d65c2943e6c4662b | a9be49663860a80617e1172c95f1ef890c6e5b28 | /lists/tests/test_views.py | 9fc87660076237e13de65128b2731406c71e502f | [] | no_license | maresende/tdd-project | 9aefc4e6ffb6efcf736859376a23a6707026faac | b56c1c68db15901b18c5ac0526b613f4ee2d0894 | refs/heads/master | 2021-03-13T15:07:37.224217 | 2020-10-25T23:20:43 | 2020-10-25T23:20:43 | 246,690,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,764 | py | from django.test import TestCase
from lists.models import Item, List
from django.utils.html import escape
class ListViewTest(TestCase):
def test_uses_list_template(self):
my_list = List.objects.create()
response = self.client.get(f'/lists/{my_list.id}/')
self.assertTemplateUsed(response, '... | [
"matheus.bh2@hotmail.com"
] | matheus.bh2@hotmail.com |
58616971c6922b590ddb2c97f0cd9564909f1cfc | 0c2cf45e73cfa767e206733fff1dcdf9ddb08f3e | /blog/tools/login_check.py | 439be0c7a229d2f71f4521b0eb2667727df93369 | [] | no_license | tobeaprofessor/blog | d66e892b2f77dbd3575486b0ba096ec72087cfe0 | 3b0ed9cd15711143fd709ab8cfd3997e6bd9c422 | refs/heads/master | 2020-06-29T22:45:00.604479 | 2019-08-05T12:49:16 | 2019-08-05T12:49:16 | 200,642,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | import jwt
from django.http import JsonResponse
from user.models import Userprofile
TOKEN_KEY="123456abcdef"
def login_check(*methods):
def _login_check(func):
def wrapper(request,*args,**kwargs):
token=request.META.get("HTTP_AUTHORIZATION")
if not methods:
#如果当前没有传... | [
"626509338@qq.com"
] | 626509338@qq.com |
d38d67f3b603e144fe1e96b627c76c0a978a1f6d | 7289e999d3c8e6f5dd4c7c32fe9bc08f357760fe | /main.py | 21bc25f0029f5d9c05358abaae2c1eb3235315b5 | [] | no_license | Sahil19oz/ANPR | 33071a6eb15a78f4726b273a6a1ebf2462555791 | d28e796a018a13b6956baa970316b911aef10791 | refs/heads/master | 2020-07-06T05:37:26.144904 | 2020-05-06T09:15:24 | 2020-05-06T09:15:24 | 261,707,244 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import cv2
import os
import numpy as np
import math
import argparse
from time import time
from preprocess import PROCESSING
from PlateDetector import POSSIBLEPLATES
from Char_Recognition import OCR
from PlateProcess import plateprocessing
arg=argparse.ArgumentParser()
arg.add_argument("-i","--image",type=str,required=... | [
"30835204+Sahil19oz@users.noreply.github.com"
] | 30835204+Sahil19oz@users.noreply.github.com |
6fdf80ddf0da25ab5c12f27bfb6d23103a63d6b3 | 927364c468d65fe1508ced8a175e420ef7198b22 | /blog/migrations/0001_initial.py | 4be9ea19f60c3900955ad27ced43826c438a99ca | [] | no_license | Mohak-Acharya/Django-Blog | 60b22513a88e36736d6017c2e5d26212fe47ae9d | a260a696d0e66f6abf9464aa173d33b5e1a7b699 | refs/heads/main | 2023-06-01T23:19:58.514262 | 2021-06-14T07:33:01 | 2021-06-14T07:33:01 | 376,737,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | # Generated by Django 3.2 on 2021-05-25 17:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_... | [
"acharyamohak19@gmail.com"
] | acharyamohak19@gmail.com |
c8bb6fcf537dbf3698512914ed4f90d113f52348 | 12aef15a26c3c107d45c0835135d4629b188f774 | /venv/lib/python3.6/site-packages/Pyro5/nsc.py | a4ae3564a3447142f844e0408707365bef77f182 | [] | no_license | pikhan/BlockchainHackathon | acdf97d0ed393d5fc1069a307af458243ab34ff7 | de9abd15c2efcb81c043daab826b186af9219a25 | refs/heads/master | 2022-12-13T21:14:33.541102 | 2019-11-10T19:35:37 | 2019-11-10T19:35:37 | 220,704,238 | 0 | 1 | null | 2022-12-08T08:48:25 | 2019-11-09T21:10:49 | Python | UTF-8 | Python | false | false | 4,753 | py | """
Name server control tool.
Pyro - Python Remote Objects. Copyright by Irmen de Jong (irmen@razorvine.net).
"""
from . import errors, core
def handle_command(namesrv, cmd, args):
def print_list_result(resultdict, title=""):
print("--------START LIST %s" % title)
for name, (uri, metadata) in s... | [
"pikhan@protonmail.com"
] | pikhan@protonmail.com |
e58747bc74f2a934924c13fc7260f437c237af2a | 4fe9b8cd10d87dbe5dacf2a78f9accb5b0287db4 | /categories/models.py | 37b50069fe0e23eee40b8015e1174abf62d4fa50 | [] | no_license | tamirisapbonicenha/blog-project-django | ef70c1ec47abbf188c8ca38ae58f691191b3fec6 | 4a0a01cac20ab7a2aeb21c567e72a9818b57148f | refs/heads/master | 2022-11-27T20:38:57.827007 | 2019-06-04T10:47:12 | 2019-06-04T10:47:12 | 176,493,500 | 0 | 0 | null | 2022-11-22T03:46:08 | 2019-03-19T11:07:10 | Python | UTF-8 | Python | false | false | 196 | py | from django.db import models
class Category(models.Model):
name = models.CharField(max_length=50)
def publish(self):
self.save()
def __str__(self):
return self.name
| [
"tamirisapbonicenha@gmail.com"
] | tamirisapbonicenha@gmail.com |
f1552b054e658f37473bf4292eb3f55b03e9c944 | fba6aefd9d76f5b8134c4a01017acc7b336515d3 | /24/LobbyLayout.py | 3fd8c789c79b711630f329d8526002443161df47 | [] | no_license | IsseBisse/adventcode20 | e1e1552e597fa276a3a3d05a7c13a61ff49bbc56 | 1cfd3617dc7033cb83b9f04fe309cd57472f2c46 | refs/heads/master | 2023-07-08T06:43:26.528417 | 2023-06-26T07:22:34 | 2023-06-26T07:22:34 | 345,648,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | import matplotlib.pyplot as plt
from tqdm import tqdm
DIRECTION_TO_COORDS = {"e": (1, 0), "w": (-1, 0), "ne": (0.5, 0.5),
"nw": (-0.5, 0.5), "se": (0.5, -0.5), "sw": (-0.5, -0.5)}
def parse(line):
group = ""
moves = list()
for char in line:
group += char
if group in DIRECTION_TO_COORDS:
moves.appen... | [
"isak.liljequist@cgi.com"
] | isak.liljequist@cgi.com |
e9961064c3c0a12a7e7ade55ceb9b613fb3c4b4f | 0cfbac764e5482e1a89803ad72f07d0c9d556a5f | /herenciasuper.py | ff56cc9eb31ea93625f32798d27433d626bc4b10 | [] | no_license | agu415/python-practica | 987107e31f5cdcd601f58f6f30bc4279dc5e68af | d27e41ac2e348ed4ab9832705a9a3ecf0048b777 | refs/heads/main | 2023-08-27T06:41:53.496981 | 2021-11-05T02:30:50 | 2021-11-05T02:30:50 | 424,804,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | class Persona():
def __init__(self,nombre,edad,lugar_residencia):
self.nombre=nombre
self.edad=edad
self.lugar_residencia=lugar_residencia
def descripcion(self):
print("Nombre: ", self.nombre," Edad: ", self.edad, " Residencia: ", self.lugar_residenc... | [
"agustin415@gmail.com"
] | agustin415@gmail.com |
e6fae05c449f2092d5fda416fb23b95be3b3aa1f | 73105a000374f7bbe97dac50b91b0c019826a1ba | /account/pipelines.py | 8fb36edc4bd7c7340a1ddea7f7606a19b22a27d7 | [
"MIT"
] | permissive | carpedm20/UNIST-auction | 657e80840e4c6adbfaeebd118acc03d4e04cc2a5 | f2db1d6fdb2c7781b3c142f8a2582888e24ad06d | refs/heads/master | 2021-01-22T04:43:55.844905 | 2014-10-21T14:01:32 | 2014-10-21T14:01:32 | 22,419,149 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from social_auth.backends.facebook import FacebookBackend
from social_auth.backends.twitter import TwitterBackend
from social_auth.backends import google
from social_auth.signals import socialauth_registered
def get_user_avatar(backend, details, response, social_user, uid,\
user, *args, **kwargs):
... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
a630b63cd9067a3d80b5fe869591693e4b1af670 | af69545e17dc107a037099b9546a6ec29d27abc0 | /type_map_gen_pairs.py | 85f1cb61fb2aa36c3fd18b806347f8366f615581 | [] | no_license | ankawm/NowyProjektSages | 2ebc54e4d81c5813144ec7c2cbbcc1425cce7189 | f721a619ce8c6b74de523fe7e8238e74a5b02d5d | refs/heads/master | 2023-08-14T04:57:57.551068 | 2021-09-12T09:26:26 | 2021-09-12T09:26:26 | 405,317,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | """
* Assignment: Mapping Generate Pairs
* Required: yes
* Complexity: easy
* Lines of code: 1 lines
* Time: 3 min
English:
1. Define `result: dict`
2. Convert `DATA` to `dict` and assign to `result`
3. Run doctests - all must succeed
Polish:
1. Zdefiniuj `result: dict`
2. Przekonwertuj `DATA` do ... | [
"56233568+ankawm@users.noreply.github.com"
] | 56233568+ankawm@users.noreply.github.com |
89011defb5035a55fad905ece43dfe5a7f167ccb | afe3623c35878a62b9cd2f2baf552295a0a88002 | /notification/notification/wsgi.py | 960abf9e4e469ebddd38cd1eda29aadda473df53 | [] | no_license | CardioHome/CardioHomeServices | d89e7b7c97f74b88d0f4267b25ffed1f6a81c29d | 797fb6d5ee7a13055b0b5d43f12139c7b7f0f91e | refs/heads/master | 2021-09-08T10:31:40.155870 | 2018-03-09T06:35:35 | 2018-03-09T06:35:35 | 123,043,237 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | """
WSGI config for notification 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"zhangy405@gmail.com"
] | zhangy405@gmail.com |
3b0a6b64fe5ff7a8faa6365c5666ae12a0dca227 | dba22ccd9f1e69cc3fc2fe3971cccadf9015c1c2 | /prac_08/silverservicetaxi.py | aae12a41286f48b84c91759e654273a689f1095f | [] | no_license | RyanHonorica1408/CP1404 | d7cd443dcc9e1de44f1a181f496c6bd9ce20ebb5 | d90ff1cb2f33dd9751e0957b38eb7a51706cd000 | refs/heads/master | 2020-03-27T19:04:35.463157 | 2018-10-31T13:22:14 | 2018-10-31T13:22:25 | 146,964,246 | 0 | 0 | null | 2018-10-15T13:54:38 | 2018-09-01T03:32:17 | Python | UTF-8 | Python | false | false | 476 | py | from prac_08.taxi import Taxi
class SilverServiceTaxi(Taxi):
flagfall = 4.5
def __init__(self,name, fanciness, fuel):
super().__init__(name,fuel)
self.fanciness = fanciness
self.price_per_km = self.price_per_km * fanciness
def __str__(self):
return "{} plus flagfall of $ ... | [
"ryan.tiomico@my.jcu.edu.au"
] | ryan.tiomico@my.jcu.edu.au |
dae844bf6f9e78be362c1767e386a0e5169b01c8 | 3bc85e41d737be76c5bf6fd5a28b702d8c52c448 | /postit/model/Postit.py | 4ba0379195356c671eff4efcf84916fbd0e6f879 | [] | no_license | stevenl9999/PostitApp | 84bf4a5d2efcf288b9d0e9fc5779313d34ce75c5 | c099ed1e1e9eaac7c5fc99c4e1fe0b75785d487c | refs/heads/master | 2020-03-27T22:58:15.209013 | 2018-03-25T23:03:53 | 2018-03-25T23:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | class Postit:
def __init__(self):
self._postitpages = []
self._current_postitpage = None
def add_postitpage(self, postitpage):
self._postitpages.append(postitpage)
if self._current_postitpage == None:
self._current_postitpage = postitpage
def get_pa... | [
"debelhussein@gmail.com"
] | debelhussein@gmail.com |
c312991ef544822dd7f78193b2d75d27084df9a4 | 4a6854aba729f6f3c34c8f72f939c6865a955f2b | /utils/generate_classifier_set.py | e6d4dee1041121c98a56056fa0c9e2903daaef32 | [
"MIT"
] | permissive | santiagolopezg/lstm_lyrics | e80d13b7780add637ab959c9174ee0fd1f8a356a | 21f7a621a099afc2bb14ee1bb438f4aa78e0fcb3 | refs/heads/master | 2020-04-04T11:27:35.680679 | 2018-11-02T16:31:49 | 2018-11-02T16:31:49 | 155,891,671 | 0 | 0 | MIT | 2018-11-02T16:17:30 | 2018-11-02T16:17:26 | Python | UTF-8 | Python | false | false | 5,509 | py | """
Utility script to generate the training set for the text classifier.
Usage: python3 generate_random_lines.py <path_to_corpus> <corpus_subset_txt> <random_txt>
Creates two files:
-<corpus_subset_txt>: is a subset of the original corpus, containing only the lines without
any of the ign... | [
"enrique@stroly.jp"
] | enrique@stroly.jp |
7bb48802e116289f7974b0bc98bf6ea4da6cdcc9 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/tests/unit/gapic/dialogflowcx_v3beta1/test_session_entity_types.py | e149c587481234541d44591766391b6ac202a885 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97,381 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
798fbbb4887780b99b477a847cf7ca0a9a0368aa | d9b0c490e6fd28d7af0295a0d26d97b9ca1c9ffd | /2ndguess.py | d64b8eea2ddda4e6d664154d6baede5e5bda9d25 | [] | no_license | Cherub-Mike/container | d49fe3f3c30511704ed3927ca83eb579497f4038 | 58a2a4fa3aca0237796957692d5fd90bfd05d408 | refs/heads/master | 2022-11-12T06:04:28.909730 | 2020-07-02T03:32:21 | 2020-07-02T03:32:21 | 266,011,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | numbs=[2,5,6,9,12,15,21,27]
while True:
ch=input('Please guess a number or type q to quit')
if ch == 'q':
break
try:
ch=int(ch)
except ValueError:
print('Please type a number')
if ch in numbs:
print('you have guessed right')
else:
print('You guessed w... | [
"assanemike27@gmail.com"
] | assanemike27@gmail.com |
cc40df6ff2ede9c0d394adc910aaea528f26fc7d | 6ddbfef7e64fd239d5d7baba583278c27ae4796f | /driverpracticaltest/driverpracticaltest/pipelines.py | ac3becc4a7dbee30239929158e335de48b8ac6e8 | [] | no_license | iketari/crowncrawler | 92aebf831976bb908365d1ab2378d7d232dc32cc | d4d2a968a6dd3706fff763d2d31503d10a5a4f44 | refs/heads/master | 2020-04-28T16:01:18.041644 | 2019-03-13T10:14:07 | 2019-03-18T10:06:08 | 175,396,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class DriverpracticaltestPipeline(object):
def process_item(self, item, spider):
return item
| [
"iketari@gmail.com"
] | iketari@gmail.com |
6237d5cd45456cf4aea5e5eaa2cd7525a5a0f984 | 22bf910b64283b3c15cc4d80542e83fa89e9f09d | /monero_glue/messages/DebugLinkShowTextStyle.py | 6ddc6028fdf6a547536fc717cd8d48b7bf7a8654 | [
"MIT"
] | permissive | ph4r05/monero-agent | 24ed1aa17d6616b2ae6bcdb7b9997f982f8b7b5d | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | refs/heads/master | 2022-10-18T06:30:43.550133 | 2021-07-01T16:27:56 | 2021-07-01T16:27:56 | 126,215,119 | 24 | 5 | MIT | 2022-09-23T22:53:44 | 2018-03-21T17:18:21 | Python | UTF-8 | Python | false | false | 315 | py | # Automatically generated by pb2py
# fmt: off
if False:
from typing_extensions import Literal
NORMAL = 0 # type: Literal[0]
BOLD = 1 # type: Literal[1]
MONO = 2 # type: Literal[2]
MONO_BOLD = 3 # type: Literal[3]
BR = 4 # type: Literal[4]
BR_HALF = 5 # type: Literal[5]
SET_COLOR = 6 # type: Literal[6]
| [
"dusan.klinec@gmail.com"
] | dusan.klinec@gmail.com |
9dcbd00a59e9ead787f9c4495cd521234dc9b1d8 | 10d67fe880ab497a3e910072a7edba197deed4ef | /python/numpy_test.py | 33e1a972c1479a3087bd1520dcb80934210a7bc7 | [] | no_license | buobao/mynote | 5b55fb19230a2e71ec4433baff54b94c416fb84f | 81229e8908701bd31141b5c78de404ceaef0aa3a | refs/heads/master | 2022-12-22T06:06:47.182080 | 2022-12-10T08:36:58 | 2022-12-10T08:36:58 | 44,724,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,947 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 24 22:08:30 2021
@author: lebro
"""
from numpy import *
from matplotlib.pyplot import *
from numpy.random import rand
# chapter1
# =============================================================================
# a = linspace(0,4*math.pi,201)
# b = sin(a)
#
# plot(a,b)
#... | [
"1039163450@qq.com"
] | 1039163450@qq.com |
df6912f9d91ac2475e3210f22e554fe2abf53f07 | 08ce9a680b60c28977c67fd80d9695c7169a603c | /csv_to_bvh.py | a62556fe0527c337d71d4f6e9d163c6459e835d1 | [
"MIT"
] | permissive | markchang2006/hmr_master_markchang2006 | 67bd4a57e1e44e7304249c6682522c1d4cd401d1 | aee78bda74a9b8920ac1fed3c3da17f76fd87f31 | refs/heads/master | 2022-12-24T04:46:13.923661 | 2020-10-06T16:12:00 | 2020-10-06T16:12:00 | 299,844,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | import csv
import os
import bpy
objects = bpy.context.scene.objects
empties = []
for object in objects:
if object.type == 'EMPTY':
empties.append(object)
print(empties)
#filename = 'csv_joined.csv'
#directory = r'hmr_master_markchang2006/output/csv_joined' # <-- if you have linux or osx
impor... | [
"noreply@github.com"
] | noreply@github.com |
ec38058999bc8e0d06a97b7e24a6d3b6d176b957 | d3932e6bded7d8def64078fbce8e91e0189175f4 | /cpplint.py | a36088a8389de04955b377643ec2b5772f008548 | [] | no_license | Wilsonchoo2017/cs6771-Advance-Cpp | d249aa431c6512d48959ca017f9a22e2209d6e1e | d8901ca4801744bbdf719faa1966d9847334a114 | refs/heads/master | 2020-06-06T07:06:13.306485 | 2019-10-07T20:17:36 | 2019-10-07T20:17:36 | 192,673,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | true | false | 240,515 | py | #!/usr/bin/env python
#
# Copyright (c) 2009 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | [
"mattstark75@gmail.com"
] | mattstark75@gmail.com |
4794070ccbb18aa387467be0eae39c2718c713ec | 4600ab3681aa1fa9609fdc6f1a96e1d53a95cd6f | /HW/HW06_akaia/Locators/login_page_locators.py | 38b2eefcb3c8be209d435f9e0004a6a91e237759 | [] | no_license | pythonCore24062021/TA | 039ce203e6d150db84d85b6c06e480b8174af609 | e22f90f43d2770e44f35e4cf4ad38af970e97ae5 | refs/heads/main | 2023-08-25T20:52:38.566403 | 2021-10-20T13:45:56 | 2021-10-20T13:45:56 | 394,335,749 | 0 | 0 | null | 2021-10-20T13:45:34 | 2021-08-09T15:05:43 | Python | UTF-8 | Python | false | false | 312 | py | from selenium.webdriver.common.by import By
class LoginPageLocators:
INPUT_EMAIL = (By.CSS_SELECTOR, '#input-email')
INPUT_PASSWORD = (By.CSS_SELECTOR, '#input-password')
BTN_LOGIN = (By.CSS_SELECTOR, 'input[type=Submit]')
DIV_ALERT_NO_MATCH_EMAIL = (By.CSS_SELECTOR, 'div.alert.alert-danger')
| [
"akaia@softserveinc.com"
] | akaia@softserveinc.com |
7caf10c4044f34215b49b6a3c10b2e8417583af0 | 91683c3a72383e07543f21c7cf09f7f94dd85f6a | /components/ai.py | c0c96b85630802b203523b91516f7bb1539e7630 | [] | no_license | TimTheFiend/roguepy | cd1528a7dea685ec826fe01ef2ab784d23cfdf25 | 2c5fe1e58c8693e91e757da8dd7b589a6a9b9db4 | refs/heads/master | 2022-12-06T23:34:46.248031 | 2020-08-03T12:36:26 | 2020-08-03T12:36:26 | 282,830,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,032 | py | from __future__ import annotations
import random
from typing import List, Optional, Tuple, TYPE_CHECKING
import numpy as np
import tcod
from actions import Action, BumpAction, MeleeAction, MovementAction, WaitAction
if TYPE_CHECKING:
from entity import Actor
class BaseAI(Action):
def perform(self) -> None:
ra... | [
"33222649+JoakimFKK@users.noreply.github.com"
] | 33222649+JoakimFKK@users.noreply.github.com |
54232b5bd409af9e9408dda52e55167a33ac259b | fced4a5d2dd7ed45db620109a15ace6ed9cfc632 | /Src/graph_generator.py | 20c21c821b8b6e868daea2ef206f9645247c8d4f | [] | no_license | FatihTasyaran/ReinforcementLearningOnGraphs | 48cf66087275953b479886b91eada355d723e436 | e6f6f006c7d3e279d4bbc4c1552bb4cb641ad4a7 | refs/heads/master | 2020-09-21T11:09:11.190740 | 2020-01-12T14:10:08 | 2020-01-12T14:10:08 | 223,257,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,814 | py | import sys
import os
import random
from graphviz import Digraph
from graph_tool.all import *
import matplotlib.pyplot as plt
import math
def node(no_states):
return random.randint(0, no_states-1)
def action(card_alphabet):
return random.randint(0, card_alphabet-1)
def add_to_graph(graph, out_node, in_node, c... | [
"fatihtasyaran@sabanciuniv.edu"
] | fatihtasyaran@sabanciuniv.edu |
2048e5f4a5afb21b171ba019a8b058829ac88330 | 3df3f450f9987d38e6259b0096dd77f48254efc7 | /practice/fibonacci.py | f0a69f31b9d0211ddffc6e206decb56d12275096 | [] | no_license | jianfengyuan/LeetCode_practice | c4bf66a93d1d252e42e1f3abd692fb372eeb3598 | dc7402f62781d7c7e29b36a57bf257f2c07a404a | refs/heads/master | 2020-08-25T03:46:39.072572 | 2019-11-25T09:05:34 | 2019-11-25T09:05:34 | 216,956,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | def Fibonacci(self, n):
# write code here
fibo_0 = 0
fibo_1 = 1
if n == 0:
return fibo_0
if n == 1:
return fibo_1
return self.Fibonacci(n-1)+ self.Fibonacci(n-2) | [
"yuanjianfengkim@gmail.com"
] | yuanjianfengkim@gmail.com |
16544e0bb0ba5608f9882ad693aef9eebc3ab545 | 08479bc7c72ce5f29505972dc2688aa025544f6c | /python/pnsolver/notebooks/debug.py | d53d6ad220505cc1c57bd32b417af85c6456217c | [] | no_license | dkoerner/PN-Method | 631d8daff04ff0779cd215004de7c9e33a656a49 | 3a8773b46e9eab3fae693ec9e019351b8a834360 | refs/heads/master | 2022-12-09T13:21:03.293731 | 2022-11-29T01:35:11 | 2022-11-29T01:35:11 | 139,132,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | import os,sys,inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0,parentdir)
import util
import stencil
import pnsolver
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import LogNorm
import s... | [
"mail@david-koerner.de"
] | mail@david-koerner.de |
3a05d1a9e15233697f2611e6105e3a61f8da2282 | b0ede55e98d454f558e5397369f9265893deedb5 | /SWEA/D3/3750_digit_sum.py | 91b7ee6c6d6baa5d0dc8631446283554e277d0fb | [] | no_license | YeonggilGo/python_practice | 5ff65852900c4c6769d541af16f74a27a67920ec | 43082568b5045a8efc1d596074bdca3e66b2fed1 | refs/heads/master | 2023-06-22T02:09:31.906745 | 2023-06-17T01:27:22 | 2023-06-17T01:27:22 | 280,361,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # 매 테스트 케이스마다 print를 하지않고
# 배열에 저장해서 한꺼번에 출력하니까 동작시간이 훨씬 줄어들었다.
# 이유가 뭔지는 아직 모르겠다.
T = int(input())
ans = []
for tc in range(1, T + 1):
N = input()
while len(N) > 1:
N_li = list(map(int, N))
N = str(sum(N_li))
ans.append(N)
for tc in range(0, T):
print(f'#{tc+1} {ans[tc]}')
| [
"dudrlf1859@naver.com"
] | dudrlf1859@naver.com |
fa88d77aca2f96522c88398ebbcd095ba4d2c47b | be556a07f267bb9f559093a87eb1a3bf18dc37b5 | /Birst Orchestrator/v1.0/Code/setup.py | 36c759824338d52c5ae98bf536d44f81acf90d34 | [] | no_license | archanabnair/birst | 60ccb9bd48199bbafdcb0d59a51318a1cec1c83d | 0be4bb86b79870912d734e1b4dadef692bb88fb4 | refs/heads/master | 2020-03-29T17:53:21.800878 | 2018-11-11T20:17:13 | 2018-11-11T20:17:13 | 150,183,972 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,647 | py | import os
from sys import version_info
import importlib
from pip._internal import main
import logging
import sys
from datetime import datetime
def log_file_init(supplied_path):
try:
if not os.path.exists(supplied_path):
os.makedirs(supplied_path)
os.chdir(supplied_path)
# Creating name of log ... | [
"noreply@github.com"
] | noreply@github.com |
73515aff0c0717866b6addaa62e0990ab0bbe6de | 0cb194596e2fff2b2ec0478a0a8df2bfe3e6152d | /exercise.py | 36b87b0228418fec4f472095218729f87e5f681c | [] | no_license | Apirol/SMAD | 0fca788a11f4582e12a72a25aa06c96879be1828 | a437e8a89a6caededda693b1d529189370cf6697 | refs/heads/master | 2023-08-25T19:36:10.178255 | 2021-11-09T13:40:32 | 2021-11-09T13:40:32 | 410,537,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,268 | py | from model import *
from generator import *
class Exercise:
def __init__(self):
pass
def exercise_1(self, generator: Generator):
assert len(generator.x) > 0, 'Сначала запустите метод generate'
generator.draw_separately()
generator.draw()
print('')
print('W**2 =... | [
"56587883+Apirol@users.noreply.github.com"
] | 56587883+Apirol@users.noreply.github.com |
30aa38e46cb499b277d295d5a5ed160fac143460 | 7d4fcb59d270d5b499064370720ee5c876b124f2 | /linear_reg_wtd.py | 271f524c453e00747a13bdb0e7dfe425f5ca446b | [] | no_license | vipul-khatana/Regression-models | 847151d2beee0b825a406713234ffbc90e8871b5 | 37315a015192f44cab2b58f81ed6995118905008 | refs/heads/master | 2021-08-23T05:21:28.815967 | 2017-12-03T16:08:11 | 2017-12-03T16:08:11 | 112,225,063 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | '''
Created Sat Feb 13 2016
@author vipulkhatana
'''
import numpy as np
import matplotlib.pyplot as plt
import math
import itertools
# Global variables
INTERVAL_SIZE = 50
Tau = 0.8
''' This provides the analytical solution '''
def analytical_solution_W(W, X, Y):
return np.linalg.inv(X.T * W * X) * X.T * W * Y
... | [
"noreply@github.com"
] | noreply@github.com |
003407b5970dcc5724febffc87e52e9a60788c25 | b6831ea8255e6d4f7dc928fdadb213f8604c994b | /gridPathfindingWithTarPit/make-tp-checkerBoard.py | eb67fa8d58d00c4b87e9831ccc0ce3806d5652a4 | [] | no_license | gtianyi/searchDomainInstanceFiles | f6a51ef2b94d361517a1bd4d9d07d5f7429982fd | 6439799aebff638d2a18127b233c96f1c4468acb | refs/heads/master | 2023-07-08T01:54:22.034314 | 2021-09-06T00:53:34 | 2021-09-06T00:53:34 | 346,486,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,599 | py | #!/usr/bin/ python
'''
python3 script
python script code for generate grid pathfinding with tar pit problem instance.
where a tar pit cell would have higher cost to leave once the agent step in
Author: Tianyi Gu
Date: 04/20/2021
'''
__author__ = 'TianyiGu'
import argparse
from random import seed
from random import r... | [
"2008tygu@gmail.com"
] | 2008tygu@gmail.com |
6999a0598b4f4b17a5b3f7fe049f22c69c930467 | 15b24917da787f5e36a093a70a5ae02adfb7cbf4 | /eeg_testUI/server_test.py | 8036ce90e21eb581bf41ced5fa0d0d768c6ba908 | [] | no_license | KnightofDawn/BCI_IRMCT | 1bd888539e7cdfb0c66a56305e757e73d3cfafd4 | 2f81e93faec44f71cad8fe2a41f7056ef69a4a0d | refs/heads/master | 2021-06-14T03:11:41.760350 | 2017-04-06T10:22:02 | 2017-04-06T10:22:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import threading
import socket
import time
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(("192.168.1.107", 9999))
s.listen(1)
print('Waiting for connection')
sock, addr = s.accept()
print 'Accept new connection from %s:%s' % addr
sock.send('Welcome!')
while True:
data = sock.recv(1024)
time.sl... | [
"beihangld@gmail.com"
] | beihangld@gmail.com |
759b0b137a7faf1da9dc6ffbab58053fdcbad295 | bb5465b31067d8e2ef20a93c87bfad2c6a8e6569 | /orders/forms.py | c30ac21ad1c2d2d3346d20718321be245f6af33b | [] | no_license | greypanda/Django-Bootcamp-1 | cc7e1b131b55be4ca224702397f0e4aee6e1d2d9 | d66886bd2ab65f07cba08dc26640f52e0da72ac4 | refs/heads/main | 2022-12-27T01:27:26.516712 | 2020-10-14T23:45:57 | 2020-10-14T23:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from django import forms
from .models import Order
class OrderForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
product = kwargs.pop("product") or None
super().__init__(*args, **kwargs)
self.product = product
class Meta:
model = Order
fields = [
'... | [
"hello@teamcfe.com"
] | hello@teamcfe.com |
aa89fdb6d103ea20b499bf8bf2cdffdd6227538f | 0d03f5bbca543abab5831affc9c776bc536c97f2 | /index.py | c00d8270965bdf81d049b3c4432540d1a0646d94 | [] | no_license | kawausomando/python-tutorial | a77e7488b020cafef5f0f2cc7e5359c7ce78cf6d | cccd02fe8ec270a4db7627fd4b2d5ba6037c57d8 | refs/heads/master | 2020-09-01T05:40:48.381131 | 2019-12-11T03:55:36 | 2019-12-11T03:55:36 | 218,891,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | a = ['Mary', 'had', 'a', 'little', 'lamb']
for i in range(len(a)):
print(i, a[i])
# 出力
# 0 Mary
# 1 had
# 2 a
# 3 little
# 4 lamb | [
"happy.trail0912+github@gmail.com"
] | happy.trail0912+github@gmail.com |
d996a2e512e86e3776726ba70743b8a5e8064be6 | c7647e33bab2aec9ba9cfa61aa08c3a674e3d488 | /Battleship/battleship2.py | b1c32d71c928a9aedd1d4e48052619e5b8c5a5dc | [] | no_license | sbetti02/Games-and-Such | 377ffe2e715bff27a06e2c57b2b525b75e02b5ee | 6e880ba65190f7f5099001ed046a0b32e00dd43b | refs/heads/master | 2021-01-22T10:18:16.729131 | 2017-10-03T03:15:18 | 2017-10-03T03:15:18 | 48,633,705 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,412 | py | import os
import re
import random
BOARDSIZE = 9
class Boat(object):
def __init__(self, boatName = str(), boatSize = int()):
self.boatname = boatName
self.length = self.life = boatSize
def char_code(self):
return self.boatname[0]
def name(self):
return self.boatname
... | [
"scott.bettigole@tufts.edu"
] | scott.bettigole@tufts.edu |
5306b9979c4bbd902f34a79f59e5029d8a59594a | 8a7252a6ba4543993c16fccc28c2597d98dcee0b | /python/03.py | 12c3560714d2250d48c7d02910510befbacdd233 | [] | no_license | ryparmar/google-advent-of-code-2020 | 3b3057cc84a074554f7984b871ad36597f77aabf | e131ffa441494147022fa81cbe6833b81273f915 | refs/heads/main | 2023-04-20T08:59:26.960313 | 2021-05-08T07:12:31 | 2021-05-08T07:12:31 | 365,444,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | import argparse
import math
# Python 3.8 needed as the math.prod is not in previous versions
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Process arguments')
parser.add_argument('-i', type=str, help='input file')
args = parser.parse_args()
with open(args.i, 'r') as f:
... | [
"rypar.martin@gmail.com"
] | rypar.martin@gmail.com |
fd08e3d4714e0d5af3c0396d332bdf307b0ca8c1 | d465618de15f7f70d07655132fe3c92fbf118f15 | /memory_cell/clstm.py | f4bfe290cd7983b8cb9eb623cfb2ae92f9198141 | [] | no_license | RamSaw/stylemotery | f62b3b95c3a04e6753ced053acc27e4ee34c9705 | dbc475bab6f68f793c902476a3eb41c640800421 | refs/heads/master | 2020-04-23T03:11:05.428846 | 2019-02-28T09:50:50 | 2019-02-28T09:50:50 | 170,870,689 | 1 | 1 | null | 2019-02-15T13:38:39 | 2019-02-15T13:38:38 | null | UTF-8 | Python | false | false | 3,906 | py | import chainer
import numpy
from chainer import variable
from chainer.functions.activation import sigmoid
from chainer.functions.activation import tanh
from chainer.functions.array import reshape
from chainer.functions.array import split_axis
from chainer.links.connection import linear
from chainer.links.connection.lst... | [
"bander@alsulamy.com"
] | bander@alsulamy.com |
70cd3506623f02e09d026e8fbf4721df8d98cd99 | 8cb8bfd2dae516612251039e0632173ea1ea4c8a | /modules/user/publisher_user.py | 946ebcc7023cc69b7181138f470652fe3331ebb9 | [] | no_license | nyzsirt/lift-prod | 563cc70700d26a5812a1bce0bd9795998dce6e99 | 9a5f28e49ad5e80e422a5d5efee77a2d0247aa2b | refs/heads/master | 2020-04-22T01:05:42.262876 | 2019-02-09T13:31:15 | 2019-02-09T13:31:15 | 170,003,361 | 1 | 0 | null | 2019-02-10T17:11:50 | 2019-02-10T17:11:50 | null | UTF-8 | Python | false | false | 979 | py | class PublisherUserOnCreate:
"""
Publisher for notifying subscribers on new service admin user creating
"""
def __init__(self):
self.__new_user=None
self.__subscribers=[]
@property
def new_user(self):
"""
Publisher notifies subscribers about this user dict
... | [
"mutlu.erdem@soft-nec.com"
] | mutlu.erdem@soft-nec.com |
899557039d93fe2c533f55fef1585c33f6d5ee77 | 3ec283fa90fcfec323ed1ee4e5e75fc61ffa4244 | /practice_exercises/CodeSignalArcade/CenturyFromYear.py | 994398564b74c6516298cd3288745c8bfa33adc7 | [] | no_license | jmmiddour/CSPT19 | a252076d26d45120ee4650f1e5616923ec700892 | 9f424f4521aa709ed026b7b085922e719b48e29e | refs/heads/main | 2023-04-19T10:37:40.461375 | 2021-04-27T02:49:55 | 2021-04-27T02:49:55 | 346,905,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | """
Given a year, return the century it is in. The first century spans from the year 1 up to and including the year 100, the second - from the year 101 up to and including the year 200, etc.
Example
For year = 1905, the output should be
centuryFromYear(year) = 20;
For year = 1700, the output should be
centuryFromYear... | [
"64432505+jmmiddour@users.noreply.github.com"
] | 64432505+jmmiddour@users.noreply.github.com |
b67443389e495d3806b6fc1c3add34ab16697af3 | 7c2dcc43aa91e9d279fa2d117359892ff69f6075 | /racers/migrations/0006_auto_20191021_2054.py | c89e53b078898e5769776fc2cc5b90acba68ace4 | [] | no_license | jackpaget27/apa | 770ec34c8e2830cbd6b323c4bf9c68ef8519ca00 | 77895a9507c198b99ddc16e1be6ca5b6b58c25f8 | refs/heads/master | 2021-10-26T05:42:22.990401 | 2019-10-22T14:22:12 | 2019-10-22T14:22:12 | 216,830,462 | 0 | 0 | null | 2021-10-21T18:30:44 | 2019-10-22T14:11:38 | HTML | UTF-8 | Python | false | false | 628 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-10-21 20:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('racers', '0005_auto_20191021_1854'),
]
operations = [
migrations.AddField(... | [
"jackpaget@jacks-air.home"
] | jackpaget@jacks-air.home |
25e7860fa269e96b48ce74d7908cadb94fc03315 | 0ddbbc997883aa7c17e50a08de7aa40c3a4955c7 | /project1/package1/plot_test.py | ac3581147ec93402bf0aa6e75ea365f5c588c3e6 | [] | no_license | kwoolter/vscode-online | 39eef2ab9c13c0460d6f8a45a8674906e7594bdd | f13c0a1378a2724a44d95ce4ab06700eb0642cae | refs/heads/master | 2022-07-14T01:44:28.495267 | 2020-05-16T10:21:42 | 2020-05-16T10:21:42 | 264,375,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 20, 100)
plt.plot(x, np.sin(x))
plt.show(block=False)
input('press <ENTER> to continue') | [
"keith.woolterton@gmail.com"
] | keith.woolterton@gmail.com |
eef56308be13cee5a0cdaa4a43277c69b25cabe0 | b9af690db33382e067fa79933bce0f779e1b177f | /Examen2.2.py | f80d8af55a76f2674823d928fe4749ab237e5719 | [] | no_license | guille1194/LAII | d3a53da5cbdf3c7fd51f0d000be34208726ea355 | a7ef1dd779f59e2b583d53cb7135efc6caab9db9 | refs/heads/master | 2021-08-08T10:08:03.022064 | 2017-11-10T04:05:12 | 2017-11-10T04:05:12 | 107,498,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | from pulp import *
import threading, time
import cProfile, pstats, io
pr = cProfile.Profile()
pr.enable()
t0 = time.time()
usuarios_db = [['admin','123','Administrador']]
empleados_db = []
#metodos con init
class Usuario:
def __init__(self, nombreu, clave, rol):
self.nombreu = nombreu
self.clave... | [
"guillermo@Guillermos-Mac.local"
] | guillermo@Guillermos-Mac.local |
0314d8a457ca32a18c21b71d2bce419f08e6e12e | 011160199fc5559178b90b87a79144a6b598f0f0 | /cifar10/alpha_gan_inference.py | 3416cc887e3c45e975551cea24b4c9e41184790b | [] | no_license | zhangzp9970/Variational-Approaches-for-Auto-Encoding-Generative-Adversarial-Networks | 027bff46ce42b8c880fc535e31ef63d67dbd56da | a443803c25fba53d7edb780195eb65b9055c74c4 | refs/heads/master | 2022-03-06T22:08:20.363841 | 2019-04-17T18:18:49 | 2019-04-17T18:18:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,727 | py | import tensorflow as tf
import numpy as np
import os
import sys
import matplotlib.pyplot as plt
import config
from cifarIO import *
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('tmp/data/',one_hot=True);
seed = 10;
tf.set_random_seed(seed);
random.seed(seed);
'''
Fo... | [
"prateekmunjal31@gmail.com"
] | prateekmunjal31@gmail.com |
4d6ea64a55c45f99176ed55ca8dc13753e3c795c | 081207834468897520a327260165c64466aefb8a | /qa/rpc-tests/abandonconflict.py | e36149db20c159426ec0339fbebec011447e792d | [
"MIT"
] | permissive | gotaproblem/AuxPowCoin | eb61cd8dc03d021d3317ffb178ea6a685c74cb7c | eea038edf893677e85ca45eed047ff81092d3a0f | refs/heads/master | 2021-12-12T17:46:50.535108 | 2021-12-11T07:23:48 | 2021-12-11T07:23:48 | 227,309,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,805 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Apcoin Core developers
# Copyright (c) 2014-2019 The Mincoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import MincoinTe... | [
"steve664npc@gmail.com"
] | steve664npc@gmail.com |
6d960235947bbf4e658d18e273fb3658fd207da8 | 91b3f9f1803161c22ff5bed3e5604a07d67728ac | /patterns/factory/overlay_factory.py | 802822ffdc740832cd8fbf414f2218ceb02f190f | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | AndreTeixeira1998/TekkenBot | dab01fd022f91787f709241a17a903291e7089bd | 015c601afbea5d75a46b3385f1d322b2655249b0 | refs/heads/master | 2023-07-17T16:52:14.182255 | 2021-04-22T17:29:55 | 2021-04-22T17:29:55 | 273,787,610 | 0 | 0 | MIT | 2020-06-20T21:34:27 | 2020-06-20T21:34:26 | null | UTF-8 | Python | false | false | 2,082 | py | #!/usr/bin/env python3
# Copyright (c) 2019, Alchemy Meister
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# ... | [
"jesusesma@gmail.com"
] | jesusesma@gmail.com |
44b6ec0bca09dae029f1b82f429af0cc96eca32c | 8999c06d6d844c6bd97c3b2d5b21b9f86f518a90 | /graphql/python/02-schema_language/6-input_object_type.py | d19d9b7968ab9ce2febb61eeaaeb9ac4ad9d2d6e | [] | no_license | patricksferraz/learning | 79ce10042716c47547f2e18ebe06d3e1bd7519ab | 0bd501f226a233c3559ed0e2a6e0123409bcd271 | refs/heads/all | 2021-06-25T19:12:49.339972 | 2021-02-22T13:17:15 | 2021-02-22T13:17:15 | 212,710,345 | 2 | 0 | null | 2021-02-04T01:42:31 | 2019-10-04T00:56:17 | Jupyter Notebook | UTF-8 | Python | false | false | 881 | py | import graphene
class GeoInput(graphene.InputObjectType):
lat = graphene.Float(required=True)
lng = graphene.Float(required=True)
@property
def latlng(self):
return "({},{})".format(self.lat, self.lng)
class Address(graphene.ObjectType):
latlng = graphene.String()
class Query(graphene... | [
"patrick.ferraz@outlook.com"
] | patrick.ferraz@outlook.com |
1bacbdd7d2adb957a389d64b3941a31252aa6e64 | 609582ee37a01ac6a67fb9c957825dcd3c9a5b3a | /LeetCode_Linked_List/160_Intersection_Of_Two_Linked_List.py | b95d8c954f372d3807f1ca3cb6bbbed0548eadf4 | [] | no_license | captainjack331089/captainjack33.LeetCode | a9ad7b3591675c76814eda22e683745068e0abed | 4c03f28371e003e8e6a7c30b7b0c46beb5e2a8e7 | refs/heads/master | 2022-03-07T19:53:40.454945 | 2019-11-06T19:32:00 | 2019-11-06T19:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | """
160. Intersection of Two Linked Lists
Category: Linked List
Difficulty: Easy
"""
"""
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
begin to intersect at node c1.
Example 1:
Input: intersectVal = 8, listA = [4,1,8,4... | [
"qfhjack@gmail.com"
] | qfhjack@gmail.com |
05fd54caf3148edfc6604a0d1c3e9d023fe5c1f7 | dd68e2d3645adfabecf28e8f8d6ecd54151953ff | /112-2 验证栈序列/36ms.py | e6f0b8f8bda1294e502d892b8069a50e897d22d0 | [] | no_license | jimzh580/Leetcode-Weekly-Contest | b0566dcc618821febdbde6c61f44b58672637e09 | 5ba5ea8ae375a116faef385bf6f31c75baad9c57 | refs/heads/master | 2020-06-29T06:14:22.939696 | 2019-05-26T07:23:01 | 2019-05-26T07:23:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | class Solution(object):
def validateStackSequences(self, pushed, popped):
"""
:type pushed: List[int]
:type popped: List[int]
:rtype: bool
"""
p1=0
p2=0
l1=len(pushed)
l2=len(popped)
l=[]
while p1<l1 or p2<l2:
if l==... | [
"1170804131@qq.com"
] | 1170804131@qq.com |
28d4ff5966ac1587ded6908781a77927b404f20e | 129449d52f4c1c2a074a6596932efe104fe9d904 | /Demo.py | 0f1be722dc98c2b5621aadd36c049ce85e5a4d79 | [] | no_license | vamsiarisetti/PythonSamples | d4b5da956ba7210d25984d25e0aa0d35c39272b4 | 5bf914d9cbe068881f182bfbb12eb740cae8c1c3 | refs/heads/master | 2020-03-19T05:07:18.358312 | 2018-06-03T12:39:51 | 2018-06-03T12:39:51 | 135,902,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 3 12:07:24 2018
@author: vamsi
"""
# =============================================================================
# set path=%PATH%;C:\Users\vamsi\Anaconda3\Scripts;C:\Users\vamsi\Anaconda3;
# pip install gTTS
# pip install pyglet
# pip install speechrecogni... | [
"noreply@github.com"
] | noreply@github.com |
592fb07ff7cec0bd0c9d4129d120d725ecc55314 | 7e1bdfed52c34f240def9da5f585a2c0d294d346 | /KNN.py | be7198b5c79ca4375ca048f3cc7d9bd1b0e650d5 | [] | no_license | ZeinaAyman/Ai_Algorithms_WEKA | 5ccc3ba09f5a1817f8bfddb287c6088fc89be0f2 | 89230f622f0f6bf149ffeeeb559121eec61821ba | refs/heads/master | 2023-06-02T10:11:59.102622 | 2021-06-21T07:14:37 | 2021-06-21T07:14:37 | 378,576,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,150 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 20 07:34:23 2021
@author: Zeina
"""
import pandas as pd # For data manipulation and analaysis.
import numpy as np # For data multidimentional collections and mathematical operations.
# For statistics Plotting Purpose
import matplotlib.pyplot as plt
import seaborn as sns
... | [
"zeina.ayman@hotmail.com"
] | zeina.ayman@hotmail.com |
9659ecb0439961d12caf6e48b0931522d0954fe0 | 3272c885e08c5181d6feb6246445b9ca3a1f02e6 | /cdk-stacks/lambdas/custom-resources/frontend-config/index.py | ee34d21e7c2fb6086a4a8b9f62c88e9607b9feef | [
"MIT-0"
] | permissive | suda27/connect-videocallescalation | 301c5fe7fbc3c8aa35ed7ca3de2019e456198217 | fd5d2fc8c2e59df2a77232f8001506f68e40daf6 | refs/heads/master | 2023-06-08T01:39:32.642244 | 2021-06-29T08:39:45 | 2021-06-29T08:39:45 | 381,296,002 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,542 | py | #!/usr/bin/env python
import boto3
import logging
import json
import contextlib
from urllib.request import Request, urlopen
from uuid import uuid4
import tempfile
import os
from zipfile import ZipFile
import shutil
logger = logging.getLogger()
logger.setLevel(logging.INFO)
CFN_SUCCESS = "SUCCESS"
CFN_FAILED = "FAILE... | [
"sudarsan.prabakaran@coda.global"
] | sudarsan.prabakaran@coda.global |
3104227873b26aecb90b914a4050dfe812e6c448 | d53c08fcf269709d6e8a59252e001594b6406293 | /server-django/blog/urls.py | dc827e3de61be656cd2f9e88389adf4019dc9917 | [] | no_license | Monster0303/Blog-Framework | b63cf048f3a241cad59f321191f8cac375e01338 | 9fe3304edbc8797a524da3db021d705c1194788a | refs/heads/main | 2023-04-07T16:26:25.364861 | 2021-04-12T06:41:31 | 2021-04-12T06:41:31 | 357,076,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | """blog 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 vi... | [
"ljfchou@163.com"
] | ljfchou@163.com |
372d0bf10f11744351f8baac55740a4cb1a49d12 | 9405e79f7ca26775cabb9daa02ab627a0d9053f5 | /tests/vasp/test_potential.py | 795a26bea992464ba89e24952a70f9220a74c645 | [
"BSD-3-Clause"
] | permissive | srmnitc/pyiron | bdff077f2b5c0e2ce5272e6634b22f971cf35297 | ea290206292d60f5ad0a67b171a9f2f71f043264 | refs/heads/master | 2022-11-26T09:48:12.546767 | 2020-07-30T14:26:38 | 2020-07-30T14:26:38 | 279,796,670 | 0 | 0 | BSD-3-Clause | 2020-07-15T07:24:12 | 2020-07-15T07:24:11 | null | UTF-8 | Python | false | false | 957 | py | # coding: utf-8
# Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department
# Distributed under the terms of "New BSD License", see the LICENSE file.
import unittest
import os
from pyiron.vasp.potential import get_enmax_among_species
class TestPotential(unittest.TestC... | [
"liam.huber@gmail.com"
] | liam.huber@gmail.com |
63d7fa21679da276e624099069af19f6479c97e7 | 21c3f0b380c873c895f38eb21f7fbb12ba1b9da7 | /payment/urls.py | 3e942212df0822904674cef903f93cf97473d88b | [] | no_license | vladimir-tikhonov/selfie_python | bc072855168fc6657a04b0acae0af8b730bbfd35 | 237020016b4ad5e15366014b88b39aebde376541 | refs/heads/master | 2021-01-10T01:28:21.512013 | 2015-12-10T16:20:21 | 2015-12-10T16:20:21 | 47,278,924 | 0 | 0 | null | 2015-12-09T14:34:57 | 2015-12-02T18:07:50 | Python | UTF-8 | Python | false | false | 213 | py | from django.conf.urls import url
from payment.views.payment_view import PaymentView
app_name = 'payment'
urlpatterns = [
url(r'^(?P<username>\w+)/(?P<plan_id>\d+)/new$', PaymentView.as_view(), name='new'),
]
| [
"vladimir@tikhonov.by"
] | vladimir@tikhonov.by |
4af8d4bf4838e70ef7160adc88281c829fcf8a55 | c289feefc220d148ba00a355a99850068ee919b8 | /Machine Learning-Decision Tree (Titanic Dataset).py | 70d149f45a20520960d32dc5bae4a0ef357e1e39 | [] | no_license | prajwal967/Machine-Learning-Decision-Tree | 8efa1c1a45e56e0f05f12e07c465a77407ebef92 | 41eba55a69906c7e5f265cb5ada16d2e22da8cb2 | refs/heads/master | 2021-01-01T05:15:01.834896 | 2016-05-24T06:10:58 | 2016-05-24T06:10:58 | 59,544,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py |
# coding: utf-8
# In[27]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn import datasets, linear_model, preprocessing
from sklearn.preprocessing import Imputer, PolynomialFeatures
from sklearn.tree import DecisionTreeClassifier
# In[28]:
#Preprocessor
le_sex = preprocessing.La... | [
"prajwal967@gmail.com"
] | prajwal967@gmail.com |
6a0535e2574bbfc26a270e5b6f1ea7f783974930 | 909f12728537699eb68241904c604dd049a0c018 | /script.py | 97f5a169dd1bb6c555b833e4ec2274c7378c213c | [] | no_license | ziminyuri/a_python | 49081f4df3c5f369b9beb300a3ec35cfcb135c54 | e0221be30e569e45e8e2633e70385e5ecc47af65 | refs/heads/master | 2022-12-17T06:28:59.872776 | 2020-09-21T15:22:46 | 2020-09-21T15:22:46 | 294,450,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "a_python.settings")
from django.core.management import call_command
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
call_command('runserver', '127.0.0.1:8000') | [
"zimin.yuri22@gmail.com"
] | zimin.yuri22@gmail.com |
d14863ffcb6de6a2fd9956f68d342136240ca0a9 | 95f044c97ed816c8b5ef94e0089e8508b43366ff | /set4/chall_eight_client.py | 2f4eeb9a177f5df0734cf0b6067621439a8fb94d | [] | no_license | ljhsiun2/cryptopals | eec2be9a7a9d3b283d211d46574107ff4310117b | da767bd82e75a6b24043a5bab36dc9418eabd4e8 | refs/heads/master | 2021-12-25T04:27:18.776023 | 2021-10-15T00:27:52 | 2021-10-15T00:27:52 | 242,467,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | from set4.chall_seven_client import get_next_byte
import requests
def main():
hmac_guess = bytearray(b'\xff'*20) # 20 == sha1 length of digest in bytes
filename = "foo"
for i in range(20):
hmac_guess[i] = get_next_byte(filename, hmac_guess, i, 100)
print(f"guessed hmac is {hmac_guess}")
... | [
"lucas.hsiung@gmail.com"
] | lucas.hsiung@gmail.com |
53645f5ca79ddd9a2df2e5f876543911ffd4058e | 7444ace40f514a2575a17ce98a46ee034d47f837 | /tests/test_module.py | af942808111792b0ea20093dafff421160bd2854 | [] | no_license | scivey/python-fu | d582b00bbc4f5d828ee89264fa36f3f5060f0242 | 2c92fe499e7b641582fde5d93eca29b26499076d | refs/heads/master | 2021-05-28T19:24:01.265033 | 2015-07-01T14:12:32 | 2015-07-01T14:12:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from __future__ import absolute_import
import unittest
from python_fu.module import Module
class TestModule(unittest.TestCase):
def test_invalid_module_names(self):
"""Invalid module names raise Exceptions."""
self.assertRaises(ValueError, Module, '')
self.assertRaises(ValueError, Module, ... | [
"vincent@3rdcloud.com"
] | vincent@3rdcloud.com |
674d799ef87465a5e5b80fdd21d63878fb2e1361 | e7b956cd98f3400249cd5097029f0a1a9e8ba645 | /app/relations/many_to_many/migrations/0002_auto_20180205_0701.py | 727d216af345dda00738984b376c0fcafe2b46fb | [] | no_license | standbyme227/fc-django-document | 8ffc4430099fbee037f1336e319e40292bcf7af4 | 8f01c108f773f3f7edc49e1f6527ed3789754ba9 | refs/heads/master | 2021-05-04T16:08:11.133487 | 2018-02-22T03:05:44 | 2018-02-22T03:05:44 | 120,244,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # Generated by Django 2.0.2 on 2018-02-05 07:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('many_to_many', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Post',
... | [
"standbyme227@gmail.com"
] | standbyme227@gmail.com |
a24cf93a909bcac54c3ea1d2f4bdd947ad2ebdef | 0f62341b10973a7a7b4977b267580e279cfc0174 | /HW3/Q1_code/q1_3/libq3.py | d6bb11b5ea915121e3d2d5fccfe41e60dbf60bd9 | [] | no_license | Pardhakeswar/Linux-Networking-Assignments | 9ce9ba475a34b8e1957b1609d3595347d4b20ed5 | b15d84f86e80f3c5340064a0fe2c119ba3aea09c | refs/heads/master | 2020-04-13T16:07:12.552961 | 2018-12-27T17:12:56 | 2018-12-27T17:12:56 | 163,313,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,529 | py | #! usr/bin/python
import libvirt
#from getXml import ReadXml
class AquireData:
def __init__(self):
self.conn=libvirt.open('qemu:///system')
# self.interface=interface.new()
def __init__(self, username,ip):
self.conn =libvirt.open('qemu+ssh://{}@{}/system'.format(username,ip))
def getConn(self):
return ... | [
"ppacha@ncsu.edu"
] | ppacha@ncsu.edu |
e816d3cde9923829ef997f5ed1a2316557ffc643 | bd434c91355cfd53f70afca111bc40fa96e17416 | /python/example/allwefantasy/dataframe_example.py | bbd1eec265b46f0f617ce6b586f21d06a0c79493 | [
"MIT",
"Apache-2.0"
] | permissive | renewday/spark-deep-learning-toy | c53b5464faf5eb947c643e43875543cf7e695a66 | d01bca4323cf12f419cda9e070fc93622bf920aa | refs/heads/master | 2020-04-03T15:33:19.664921 | 2018-10-27T10:44:09 | 2018-10-27T10:44:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,033 | py | from pyspark import Row
from pyspark.sql.types import *
import pyspark.sql.functions as F
from example.allwefantasy.base.spark_base import _SparkBase
class DataframeExample(_SparkBase):
def __init__(self):
self.df = self.session.read.csv(
self.dataDir + "/data/raw_file.txt",
encod... | [
"allwefantasy@gmail.com"
] | allwefantasy@gmail.com |
c48a6539ae876c3189fcf79c05265e1fdc2a596b | 4a399d20f9934c4984bab229a015be69e9189067 | /devel/lib/python2.7/dist-packages/roboy_communication_control/msg/_DebugNotification.py | 39749bcc8f1c881c53ae2f12b81695e3eb409819 | [
"BSD-3-Clause"
] | permissive | Roboy/myoarm_small_FPGA | 09af14c7d82c9e8fc923842ae5aad1be6344bf27 | f2f11bee50078d8a03f352e3b3ef9f3d9244d87a | refs/heads/master | 2021-01-21T03:21:49.777564 | 2017-08-30T22:11:44 | 2017-08-30T22:11:44 | 101,892,113 | 0 | 0 | null | 2017-08-30T14:49:18 | 2017-08-30T14:33:46 | null | UTF-8 | Python | false | false | 7,015 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from roboy_communication_control/DebugNotification.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class DebugNotification(genpy.Message):
_md5sum = "e83a19f2165c907848... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
07a52652a1bfbac6652a46f4199edc67eb8bfbe1 | 2201263ea5487e9de913a9437a3e741f9eb743ea | /blog/views.py | ac1736b0a2e18203444bcbc8c0491b86dd7e4f17 | [] | no_license | demukeshchouhan/django-blog-prac-with-rest | 37c56da927d8baae96594e4d35dfadfd53d8adc1 | 4aebf517afb59aabb74d45f0b0df452cce6d0d36 | refs/heads/master | 2021-07-01T09:37:25.278151 | 2017-09-22T14:18:43 | 2017-09-22T14:18:43 | 104,481,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | from django.shortcuts import render
from blog.models import Post, Comment
from . import forms
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
# Create your views here.
def blog_post_list(request):
data = Post.objects.all()
context = {
"data": data
}
re... | [
"chouhan.mukesh17@gmail.com"
] | chouhan.mukesh17@gmail.com |
ddb82c68c8cca2b9f1bd002fc53ebaa91e2bc5e4 | f891c54a99025499e709a7d700b5a19353d92d06 | /clubsite/clubsite/urls.py | 023fcee9b650751171c11d6f2557ccc682534c37 | [] | no_license | jamescruickshank/CS424-2018-19 | def85d7fb655db69e2d3f03a27099a3a79f4417a | b9d8c0dfceb52b9d6b8946ad2d26f7710f3011a0 | refs/heads/master | 2020-03-28T20:50:05.803184 | 2018-11-26T13:53:36 | 2018-11-26T13:53:36 | 149,106,796 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | """clubsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"james.cruickshank@nuigalway.ie"
] | james.cruickshank@nuigalway.ie |
6fa79bddee0f2e98fef1c64301eae7417409cc46 | e474eefcc719c06aad59f8f69b01f903e3e0bbb9 | /src/cmd_tools.py | 404783908ac73bb4ef12e5d306b7b35249476c94 | [] | no_license | YiFeng0755/RepackGUI | 3ef8a46d0d31057993a1c52d2b27c2e59055af6e | 89794d804dd27e6dcff16bafb312579d63a2327c | refs/heads/master | 2020-04-28T04:44:49.062399 | 2018-03-06T04:26:00 | 2018-03-06T04:26:00 | 146,294,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,540 | py | #-*-coding:utf8 -*-
'''
Created on 2014-11-3
@author: wangdongchun
'''
import os
import re
import subprocess
import platform
import my_utils
import env
import log_utils
def dexTrans2Smali(dexFile, targetDir, baksmali = env.TOOL_DEF_BAKSMALI_JARFILE):
'''
@brief 把dex文件反编译成smali格式文件组成的内容
@param[in] dexFile d... | [
"YoungLiu@boyaa.com"
] | YoungLiu@boyaa.com |
40e02674579864458446b7033f4ef66fa4336c4c | c1e2113400160ada483a58d2f832f9348b04104b | /offensivewarrior.py | 441923428beb33986f8ff09103d675f80817351e | [
"Apache-2.0"
] | permissive | Rauulito/PruebaExamen | 4a9fc3fdd97ac6b0fc7f32b1140c953f82cd56c0 | c1e4d4db83a13cfa28d53afd42e85c72456dffd5 | refs/heads/main | 2023-08-27T06:04:21.583322 | 2021-11-04T17:24:12 | 2021-11-04T17:24:12 | 424,677,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,921 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class OffensiveWarrior():
"""Python class to implement a offensive version of a warrior of the game.
This Python class implements the offensive version of a warrior of the game.
Syntax
------
obj = Warrior(id, warrior_type, weapon_type... | [
"noreply@github.com"
] | noreply@github.com |
d4b87ba12b23e2c88cc2035427e0c2f9c2298f7d | 4fcdc98e15c4575349d5824982342f3e9b60854e | /bin/run_notebooks.py | 63895113f2bf58e9df62f49a8b3a26cdc6450284 | [] | no_license | tpogden/notebooks-maxwellbloch | 1d2e3f53464d23cd3acfccedec7f99269fa2eed2 | 1d4db6e76dc9c2bb97b5bb981029e07375334a63 | refs/heads/master | 2022-01-16T12:43:27.246247 | 2019-04-25T17:08:50 | 2019-04-25T17:08:50 | 68,412,268 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | # ! python
# coding: utf-8
import os
import argparse
import glob
import nbformat
from nbconvert.preprocessors import ExecutePreprocessor
from nbconvert.preprocessors.execute import CellExecutionError
# Parse args
parser = argparse.ArgumentParser(description="Runs a set of Jupyter \
... | [
"t@ogden.eu"
] | t@ogden.eu |
c0816befac5b3984dad7c534e48520cc62c3eb87 | 88c1fa6dd5b51a93c4345951c41c4f56a82ba5a3 | /LiveProject-Python/AppBuilder9000/ZPYLP0612/GreatestComedies/models.py | 8eda5a405781578635b00d1f099ff55c4023617a | [] | no_license | Sean-Beyer/PythonDjango-LiveProject | 83335c4d5e22d00c34dac1c71c39f770ad896c4e | 986b567fad49368c52182eb5196534ff8a8ebcfc | refs/heads/master | 2022-12-13T22:43:21.820355 | 2020-09-01T00:34:18 | 2020-09-01T00:34:18 | 291,854,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | from django.db import models
# Created models
class Comedies(models.Model):
comedy = models.CharField(max_length=100, blank=True)
actor = models.CharField(max_length=100, blank=True)
director = models.CharField(max_length=100, blank=True)
year = models.CharField(max_length=100, blank=True)
imdb_r... | [
"61070387+Thalious@users.noreply.github.com"
] | 61070387+Thalious@users.noreply.github.com |
3a4513f83bbbbc1bc87fbc5bd1ea563293b6d38a | 84f86a7d95700cbc83e1f895d64a86ca6c9d6d0f | /Users/serializers.py | 5a02df0b9baf7b4f5a777359f6aaddbf01b7d5e1 | [] | no_license | nguyenductinh2021py/login_token | 8aedc905894f6c121395de7cd1ef6103fc297934 | e411e9ff021336e8bca9d6561b2e409986bd09bf | refs/heads/master | 2023-03-13T07:19:09.609710 | 2021-03-03T02:25:44 | 2021-03-03T02:25:44 | 343,672,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | from django.contrib.auth.models import User
from rest_framework import serializers
from django.contrib.auth import authenticate
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__'
class RegisterSerializer(serializers.ModelSerializer):
class Meta:
... | [
"nguyenductinh2021py@gmail.com"
] | nguyenductinh2021py@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.