blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72e8de4775a020325d71742130df47bd07f4ff98 | 78299c77361930ff5576762c4e848179dd98af20 | /Configuration/python/varparsing.py | 09a1d6653b7dde333cd0eb09a08520bb91a8b21f | [] | no_license | yduh/URAnalysis | 1f54bc3f81a7835ba343fc454c3408ce9f0c423b | 0d80413cc0e3d06926fb3d3b1a7c8b635065dcaf | refs/heads/master | 2021-05-19T22:06:18.762821 | 2019-02-25T14:56:29 | 2019-02-25T14:56:29 | 33,153,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | from FWCore.ParameterSet.VarParsing import VarParsing
options = VarParsing("analysis")
#inputFiles, outputFile, maxEvents
#options come for free in the VarParsing
options.register(
'globalTag',
'',
VarParsing.multiplicity.singleton,
VarParsing.varType.string,
'global tag to be used'
)
options.register(
... | [
"mverzett@cern.ch"
] | mverzett@cern.ch |
7e15e46db4a4b3c07e4208d690942153ba38118a | df3975a6d594f2111b490de60b0a12da990d78e9 | /totalimpactwebapp/product_deets.py | 429633a745291371c6d3649b70ff9b605578ebf6 | [
"MIT"
] | permissive | dhalperi/total-impact-webapp | d366cefb9b365baf860b73d56c7ea236f5e327de | 4580cc092c11c83679084a85e080d7769aa28928 | refs/heads/master | 2020-12-24T11:09:34.940748 | 2014-08-15T06:38:17 | 2014-08-15T06:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | import logging
import datetime
from sqlalchemy.exc import IntegrityError, DataError, InvalidRequestError
from totalimpactwebapp import db
from totalimpactwebapp.json_sqlalchemy import JSONAlchemy
logger = logging.getLogger("webapp.totalimpactwebapp.product_deets")
class ProductDeets(db.Model):
id = db.Column(d... | [
"hpiwowar@gmail.com"
] | hpiwowar@gmail.com |
42c2eba44de99005e20b3810fabb99903161f6d3 | 2b97e9ddcae50aed62a359b42e4a5fbc209b30db | /Deep_Learning_Algorithme_Non_Supervisé/AutoEncoders/ae_test.py | e9be9f769fbc22136c401bcba8af2433db11298d | [] | no_license | GMDFr/Deep_Learning_Algorithme_Non_Supervise | 4f69bbe4d0667a33a6cd56d52ccebae2b2d87bba | 9b308fb0145dffd61509e23a293071a48be82418 | refs/heads/master | 2023-02-03T22:58:07.879941 | 2020-12-16T13:31:07 | 2020-12-16T13:31:07 | 267,247,574 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,360 | py | # -*- coding: utf-8 -*-
"""
Éditeur de Spyder
Ceci est un script temporaire.
"""
#Librairies
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.optim as optim
import torch.utils.data
from torch.autograd import Variable
# Importation du jeu... | [
"noreply@github.com"
] | GMDFr.noreply@github.com |
5cb0dfddc9eda3a6aefd7a6e337a1a5c1dfc2130 | 7bad3261a6995496d0c93ab06e6d5f538f3901c7 | /Project 2/venv/bin/easy_install | 8501bec41c8554d9a44117cbbc450fe6ad7191bf | [] | no_license | bpayne915/bpayne915.github.io | 63167d0b41aae8ac0f0aa7cd9010dc4764914ffa | d3b4110ecbc0d10235337d8bbd0cdca7556212f3 | refs/heads/main | 2023-07-10T04:41:30.757254 | 2021-08-14T15:15:48 | 2021-08-14T15:15:48 | 377,582,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | #!/Users/Barbara/PycharmProjects/Assignment3/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"bpayne915@knights.ucf.edu"
] | bpayne915@knights.ucf.edu | |
59e2ef7356faef4622769acca68c00dec074fac9 | a507b1c1b825ec68c140514f7b91fc30b61f1f7a | /WordPairsSim/storeWordsSimilarity.py | 5cce3dcfb8c8410e703f7f6b9ce359521fc081aa | [] | no_license | lunafeng/ELTDS | ee621da596b4f24b9d304a2e7031aac00ea353c4 | d247e69c8272475bc8d97f2096c57f06872e3aa2 | refs/heads/master | 2021-01-19T09:31:21.300311 | 2017-02-16T05:27:04 | 2017-02-16T05:27:04 | 82,120,787 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | #!/usr/bin/python
import time
import MySQLdb
def main(storeValues):
db_mysql = MySQLdb.connect('141.117.3.92','lunafeng','luna222','WordsDisambiguation_b4')
db_mysql.ping()
cursor = db_mysql.cursor()
sql1 = "INSERT IGNORE INTO WordsSimilarityNew(Word1,Word2,Similarity) VALUES " + storeValues
sql2 = "INSERT IGNORE... | [
"lunafeng123@gmail.com"
] | lunafeng123@gmail.com |
740a5281897126ded86c9c1ba4b08f7ee9734385 | 9364e309573c49526ba296707a18ad5239719c1e | /myenv/lib/python3.9/site-packages/typeshed_client/resolver.py | d34458ab6d217c3ce41a36f5a3ad1c74b890c170 | [] | no_license | prashant-ux/django | 626337484981578e43dab8e8fe4986d8cd233633 | 0d1c01e70e8c6da4be681b81ba2ad9e86506fc9a | refs/heads/master | 2023-08-28T21:22:48.715707 | 2021-11-08T06:39:44 | 2021-11-08T06:39:44 | 419,332,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | """Module responsible for resolving names to the module they come from."""
from typing import Dict, NamedTuple, Optional, Union
from .finder import SearchContext, get_search_context, ModulePath
from . import parser
class ImportedInfo(NamedTuple):
source_module: ModulePath
info: parser.NameInfo
ResolvedNam... | [
"prashant.tiwari_ec16@gla.ac.in"
] | prashant.tiwari_ec16@gla.ac.in |
05fac2e34179bb8925ea9021dd3c191348810736 | e8f7910a5bce25860177de4f9009a1ac9886cb3a | /merge_nucleotides.py | ab89fa07ec92d32b493c65124a694459ecea9c63 | [] | no_license | isaureCdB/Scripts | e89109928fd9d41e0ab9fa269433f427e15174a8 | e66589b1d561479ba0f9eada25dc5c16a561b908 | refs/heads/master | 2023-02-23T10:06:31.941434 | 2023-02-07T13:00:02 | 2023-02-07T13:00:02 | 187,597,229 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,007 | py | #!/usr/bin/env python3
'''
average atom coordinates on overlapping parts of nucl steps
usage: chain2rna.py <chains_file> --nat <nat1 nat2 nat3>
--coor <step1.npy step2.npy step3.npy>
'''
import sys, argparse, numpy as np
from npy import npy2to3, npy3to2
#######################################
parser =argpars... | [
"isaure@debeauchene.fr"
] | isaure@debeauchene.fr |
445fb5b6badfff86722d8e44d138eb67ccd93677 | 1add27072ef164ed8fc08a25d7c75a0560d41c8c | /有选择的广播client.py | 4d6684677c76a23640afea959ce272418c203332 | [] | no_license | so1so2so/RbmqTest | fbe8aef3be7b5d7ec20340db238188a6c4c4903d | c6bd8ddc2c2e450462f15def833e6a3cdda06f4b | refs/heads/master | 2020-12-02T05:24:23.296418 | 2017-07-11T15:52:57 | 2017-07-11T15:52:57 | 96,901,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
import pika
import sys
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='localhost'))
channel = connection.channel()
channel.exchange_declare(exchange='direct_logs',
type='direct')
severity = sys.argv[1] if len(sys.argv... | [
"1037930435@qq.com"
] | 1037930435@qq.com |
12f196384762afd78595f3d69010b05ce6cabdf9 | af34436be48e3792599ff3466cc38bdd7fff5290 | /avg of numbers in a LIST.py | 8da4d8b7f463ccb3e65cc2211abfa316804f6710 | [] | no_license | masoom-A/Python-codes-for-Beginners | 12d2924160b84ca3cf6d6e68e1f6fca74116c3c2 | b439a29cbdc10ab881ef0ccd6458c431e5372927 | refs/heads/master | 2022-12-06T04:23:43.755022 | 2020-08-27T20:58:26 | 2020-08-27T20:58:26 | 234,271,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | numbers=[20,30,40,50]
total=0
for num in numbers:
total=total+num
avg=total/len(numbers)
print("the avg of the given numbers is :{}".format(avg))
| [
"noreply@github.com"
] | masoom-A.noreply@github.com |
b49ac091b335ee1df84bca85aa6360db8c7f5049 | 17cc8bffed3fadb413506f1545c455d7b9406ed6 | /parts/zodiac/pyramid/tests/test_config/test_assets.py | e051b89ba17edc45c561570df498743cd80122bf | [] | no_license | stinett/zodiac | f7a4f788942930fa217e7e1c7d525b82a557258f | 22b247719694b0f5aa5135b3cb68c1e84aaf7629 | refs/heads/master | 2020-05-21T01:14:59.949571 | 2014-01-13T15:53:47 | 2014-01-13T15:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | /home/stine/myenv/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/tests/test_config/test_assets.py | [
"stine@funkydesktop.(none)"
] | stine@funkydesktop.(none) |
56ac3caa3cdeed7efb3a5bb57d1814faf753d732 | afe15879dbbbb6780fd10691df1bb3ed75c1a9a5 | /setup.py | 9e5708bcfc505228d0281043a6217ea4d963a8f9 | [] | no_license | pintman/fizzbuzz | 8e75315db4c65500afb4d5a5779a769373ccd7d8 | 1598212388294dde959d2fd67e3e5b68bad5b56b | refs/heads/master | 2021-11-09T07:14:11.323327 | 2021-11-07T12:14:51 | 2021-11-07T12:14:51 | 88,208,440 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from setuptools import setup, find_packages
setup(
name = "fizzbuzz_katas",
version = "0.1",
description = "Exercises with the famous FizzBuzz-Game.",
packages = find_packages()
)
| [
"marco@bakera.de"
] | marco@bakera.de |
ee6a72eda676c44336313abdc90596d4f4f40c87 | 9fb2139bf41e2301f9ee9069d649c5afe8e7735c | /python/Algorithms/Implementation/Append and Delete.py | 158f4de415ababe3c12518eb8a61830524553308 | [] | no_license | codewithgauri/HacktoberFest | 9bc23289b4d93f7832271644a2ded2a83aa22c87 | 8ce8f687a4fb7c3953d1e0a5b314e21e4553366e | refs/heads/master | 2023-01-02T07:20:51.634263 | 2020-10-26T07:02:34 | 2020-10-26T07:02:34 | 307,285,210 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | def appendAndDelete(s, t, k):
c=0
if s==t:
print("Yes")
else:
if t.find(s):
c=t.find(s)
print()
if __name__ == '__main__':
s = input()
t = input()
k = int(input())
appendAndDelete(s, t, k)
| [
"08sandysk@gmail.com"
] | 08sandysk@gmail.com |
46bd0280b432d71e1c209039b3f1a16c0a0c9e9d | 95eba049c8a97ee806d573afdb3115313acf48af | /feeding-and-consuming-apis/consume_gitlab.py | c152ee68cb07017416dc8da30eeaf0414fd2be45 | [] | no_license | AlfredoPardo-zz/python-for-devsecops | ca5bc7dca498e1830578528aef5d205d261a43c3 | 9ace3271df173509999d80ee6c6a7ccf46424f5f | refs/heads/main | 2022-12-31T09:00:58.195245 | 2020-10-15T21:06:47 | 2020-10-15T21:06:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,607 | py | import requests
import urllib3
from pprintjson import pprintjson as ppjson
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
api_url = "https://gitlab.com/api/v4"
private_token = "your-personal-access-token-goes-here"
separator = "*" * 80
project_id = "999999999"
group_id = "999999999"
commit_id = ... | [
"noreply@github.com"
] | AlfredoPardo-zz.noreply@github.com |
3f8ed73f895f604b8451900b88af990b06e4f71c | 6f0dd6dcfd12aff7f2e14b97b2152ca4e04c932f | /JumptoPython/05.2.py | 55255a4b340ec58dc6ee6771da068db7c86c279e | [] | no_license | mozell/MyPython | 45799f032dcfb68b4053ad22a83123276a72a7c7 | c86f4db6dd5cf42c64690f377f323c9b97dcb735 | refs/heads/master | 2021-05-03T14:44:25.791400 | 2018-04-06T14:01:47 | 2018-04-06T14:01:47 | 120,463,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import mod1_05
print(mod1_05.safe_sum(3,4))
print(mod1_05.safe_sum(3,'a'))
import mod2_05
print(mod2_05.PI)
a = mod2_05.Math()
print(a.solv(2))
print(mod2_05.sum(mod2_05.PI, 4.4))
result = mod2_05.sum(3,4)
print(result) | [
"mozellatto@gmail.com"
] | mozellatto@gmail.com |
8546ed251b75c2520ca53febc6071240ba38f398 | c0083bc593015b6786e18b32ca4cd304b72ffb06 | /porsche/porsche/settings.py | 74688f75b1a5e5b041b0962559072aad2406be4b | [] | no_license | MASk1999/PorsheForLife | e3967ba7a88a886f186c93fe09b58d398038a805 | 5815309a60fb24396d04558cf9327f141131ef2c | refs/heads/master | 2022-05-28T13:07:46.347764 | 2020-05-02T14:51:33 | 2020-05-02T14:51:33 | 260,621,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | """
Django settings for porsche project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"59138913+MASk1999@users.noreply.github.com"
] | 59138913+MASk1999@users.noreply.github.com |
51b75b9efa968facb5c13f9ca53c5e6363897eca | 23d6fdd50d6c124c3bf57da2c9ee464afe1920a0 | /app/models/other.py | 448b8b8b071c133f7c9d9bbf24123660d40a6f8e | [] | no_license | nxgycf/app-breeding | 89ca27327c1bd7040d34520e42fcad398154e538 | c82d5b7916d0dff176edba2e52aacf0cd4305d29 | refs/heads/master | 2020-03-27T17:02:30.116277 | 2019-04-30T09:57:54 | 2019-04-30T09:57:54 | 146,825,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | # -*- coding: utf-8 -*-
'''
Created on 2018年7月25日
@author: shuai.chen
'''
import datetime
from sqlalchemy import *
from base.sql import SqlModel
class AvatarInfo(SqlModel):
"""
avatar信息
"""
__tablename__ = "avatar_info"
__connection_name__ = "default"
id = Column('id',BigInteger,pri... | [
"shuai.chen@moji.com"
] | shuai.chen@moji.com |
f94c9381245296bdb0486ee9db0077141a8f8354 | 14fb176790d5875478fcf213241318cfc9596842 | /app/urls.py | 70b3949f8cdcb75fd502a7999f5e44a6d2f98858 | [] | no_license | Qouagga/django_drf_ajax_example | c6a23b33128ea4597ced6a97d7d634c03d97902f | 3161c7a16db74b2bd358fec38b21222184e5aeb5 | refs/heads/master | 2023-03-18T05:44:26.949883 | 2020-07-23T15:33:50 | 2020-07-23T15:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.list_jobs, name='list_jobs'),
path('api/get_jobs/', views.get_jobs)
]
| [
"orion@system76-pc.localdomain"
] | orion@system76-pc.localdomain |
84a39ac88c5b9ccdc8ca396c14d24bb942443192 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc016/A/4893746.py | ae0ea3833c64764491dded4fc67bc407ff1c00df | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | M, D =map(int, input().split())
if M % D == 0:
print('YES')
else:
print('NO') | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
24738a4c8b661a5b63edae14b1694f6e933a9d9d | cf4d7225765a68e71ed4d799f9c27b1c0ec0d38a | /data_norm.py | 18f1388bfa9fbb42935b2badeac5b3b8a539543e | [
"Apache-2.0"
] | permissive | liuhongbing1220/360finance | f16fe53e8968f66189cf507ff82afa5dc2555d85 | 907a3ea455ea16bb3249aee7605899d318329c70 | refs/heads/master | 2020-03-30T05:40:16.930474 | 2018-10-10T13:50:50 | 2018-10-10T13:50:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 29 09:47:35 2018
@author: zbj
"""
import pandas as pd
import numpy as np
root= "E:\\liuhongbing\\360finance\\open_data_train_valid1\\open_data_train_valid\\train\\";
train_1 = pd.read_table(root+'train_1.txt', sep='\t')
train_2 = pd.read_table(root+'train_2.txt', sep=... | [
"liuhongbing@zbj.com"
] | liuhongbing@zbj.com |
db020d29ae1ba752081c622d0712e06d8a5e71ae | 90e1a82946baf33c980a98a7d71dd304ed338a56 | /rev/una_acies/una_acies_admin.py | 0bdce0550511c160c54363579b29b7a9fd74eb2f | [
"MIT"
] | permissive | MikeSE314/sdctf-2021 | d866d32603c169066377abfe8a91823c6f292164 | fcddb506f5f798a264fc17e5588c0f5b7d5fbb2c | refs/heads/main | 2023-04-20T16:14:07.678265 | 2021-05-17T20:31:25 | 2021-05-17T20:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | #! /usr/bin/env python2
from __future__ import print_function
import sys
def ok(test):
x = 5
for i in range(43):
x = x | i ^ i*x + x
return x
def test2():
return str(ok(2))
def no():
k = 3
for a in range(23):
k = k | a*a << a%k*a ^ a*k
return str(k)
def why(a,b):
retu... | [
"nick@knox.codes"
] | nick@knox.codes |
24770049cd30942b074fa505b228b4083a815357 | 98700cdeee27f21c995b07d9c7a4289f522c3fab | /tests/test_graph_alg.py | e773fde2b673dd4bd2436ad0b4a6966ba011d90e | [
"MIT"
] | permissive | KirovVerst/qparallel | a122e89d32d9f382f6767a83db873252fa193b98 | 4fc1265819f7db31ce63320dbaead6ca4e7798ba | refs/heads/master | 2021-07-09T04:36:07.717940 | 2019-01-01T18:33:26 | 2019-01-01T18:33:26 | 133,990,820 | 1 | 0 | MIT | 2019-01-01T18:33:27 | 2018-05-18T18:31:29 | Python | UTF-8 | Python | false | false | 374 | py | __author__ = 'Maria Khodorchenko'
def test_graph_alg():
from qparallel.graph import Graph
graph = Graph([[0, 1, 8], [0, 2, 5], [2, 0, 4], [1, 0, 3], [2, 1, 2], [1, 2, 3], [2, 3, 1], [3, 2, 2]], n_proc=3)
graph.find_shortest_path()
print(graph._I)
# assert graph._I.tolist() == [[0., 7., 5.], [3., ... | [
"mariyaxod@yandex.ru"
] | mariyaxod@yandex.ru |
65a4f7594820266f1286cfc085ae8c42a0bb83d8 | 14a0975bfef2a69761efb4fa0c748df0028c887b | /bangazon_project_pt_1/urls.py | 3a5c2b4c2c9ca1f045a630ddf54c79c19fe1a51b | [] | no_license | kirksudduth/bangazon_practice | 5e647f61a41a1c2259e7b8539cfd39ac54a944a8 | 98fadf58d477a0b3b151556e331a028243d76ebd | refs/heads/master | 2022-11-28T05:39:42.540505 | 2020-08-10T02:09:50 | 2020-08-10T02:09:50 | 286,353,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | """bangazon_project_pt_1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"kirksudduth@gmail.com"
] | kirksudduth@gmail.com |
e0d9c1c53993d956a49154ddc4f380fba244cece | 572837549c481f2076d6cb02c23a011a8b82d06e | /pedigreetools/pedigree/formats/csv.py | 468b86170a27fcfdbeb703f6aaf33962d507740b | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | rvandijke/pedigree-tools | 205af1cc7a5233366c9b3773c873b3d9d6d8ea9f | 19daf492c3cbdceac5998d8e0b71891f15a695f7 | refs/heads/master | 2020-04-21T08:20:03.200381 | 2019-02-06T14:32:14 | 2019-02-06T14:32:14 | 169,416,468 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,384 | py | from .store import Store
from ..models import Individual
from ..models import Sex
import csv
import os.path
from collections import OrderedDict
class CSV(Store):
@staticmethod
def default_column_names():
return {
Store.Column.FAMILY_ID: "FID",
Store.Column.INDIVIDUAL_ID: "IndivI... | [
"robinvandijke@gmail.com"
] | robinvandijke@gmail.com |
c555eff5b2a54b0c84668d7cea80f39b8e42ec2c | e5b4708219fab86c6f158d99a5bd8a2a31c6ad84 | /TestcaseSelect/TestcaseSelector.py | fab69956ba30f87b5a2a01216427778798ea6820 | [] | no_license | Whaplescr/TestcaseSelector | c2d08e2a7480a90d9b31079cdf7091c8ced2d65c | 4afbb0e5846336b5c75b2933ddce7bfa2185aed9 | refs/heads/master | 2021-09-12T14:22:55.898143 | 2018-04-17T14:59:05 | 2018-04-17T14:59:05 | 114,696,313 | 0 | 0 | null | 2018-02-02T14:30:30 | 2017-12-18T23:03:28 | Python | UTF-8 | Python | false | false | 4,737 | py | from tkinter import *
from tkinter.ttk import Treeview, Style
import unittest
class TestcaseSelector:
def start(self):
# Create TK window
self.root = Tk()
# Create Style object for TK window
self.root.style = Style()
# Set default frame size to 800x640
self.root.... | [
"whaples2011@gmail.com"
] | whaples2011@gmail.com |
afbf3af6e58dca36bf647dd5795d4696ecab44ca | 30e0c169ff906855b1cb975bf1d730a11c5281e9 | /mysite/SolarModel/urls.py | d69c20ff999b6ca560574f98a1c45923dc3dbbeb | [] | no_license | hansonsa12/Final_Project | 65db782f3f8d49099d81f7744f61fea301e27219 | 569089e270161fc0d0fe79f74e9e451a3c2d5054 | refs/heads/master | 2023-01-21T19:49:54.388468 | 2020-12-07T06:24:40 | 2020-12-07T06:24:40 | 314,090,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from . import views
from django.urls import path
app_name = 'SolarModel'
urlpatterns = [
path('', views.IndexClassView.as_view(), name="index"),
path('<int:pk>', views.PlanetDetail.as_view(), name="detail"),
path('add', views.CreateItem.as_view(), name="create_item"),
] | [
"samuelhanson@mail.weber.edu"
] | samuelhanson@mail.weber.edu |
46e654b1076d802a9b995b7f7a19daf1a77493c6 | 660803ed1e0997e2de304be574198ef09384ccdd | /myfunctions.py | c675db3c8cdb3a3643162c775fdd98478b7c0079 | [] | no_license | toanphan1302/Room_Scanner | 7fd5c174f2611d71108a32652a09453444af8b17 | e0d0121a288eb3a157f4d227fe60ec1276c031a9 | refs/heads/main | 2023-06-09T11:50:17.258543 | 2021-06-25T03:37:00 | 2021-06-25T03:37:00 | 380,114,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | from machine import UART
def processPkt(pkt: bytes):
"""
packet = [0x59, 0x59, distL, distH, strL, strH, reserved, integration time, checksum]
return True if there is a problem
Note: the integration time always seems to be 0
"""
# turn string data into array of b... | [
"noreply@github.com"
] | toanphan1302.noreply@github.com |
b991346f4afbc80c4686cd4b0f4f73405bf20e70 | debdf93849027455e660eaaeeea4b3fa24e91795 | /Assignment 7/sample_pystan.py | 253d4aaaecef9b3879593f45988b06c7a2111e2b | [] | no_license | hyllevask/ABDA | 774862b9c2ea1f7d022349fd08c19fe173553f50 | c24d2a2e96a0fe3d28e0b1c64d21b637a0cf5a83 | refs/heads/master | 2020-08-01T17:49:04.479993 | 2020-01-23T20:25:13 | 2020-01-23T20:25:13 | 211,066,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,211 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 30 13:21:38 2019
sample_stan
@author: johohm
"""
########################## DATA ############################################
import pickle
import numpy as np
import matplotlib.pyplot as plt
import pystan
y = np.array([607, 583, 521, 494, 369, 782, 570, 678, 467, 620,... | [
"johan.ohman@ltu.se"
] | johan.ohman@ltu.se |
73f3068400bf196bd17b2584fb51fddac747f640 | e608436347dc7455cb62db5eb473729832d4f9dc | /f5_bigip_asm_healthreport.py | 11cef299987f9590cb634765207f8d0533d1aec2 | [] | no_license | cjenison/f5_bigip_asm_healthreport | 276796531305e2028eb34f59de0a38e641dd2f98 | 2aaf7f423706975cf7b17d9629172275909436c6 | refs/heads/master | 2021-04-03T09:35:00.946455 | 2018-03-23T14:07:35 | 2018-03-23T14:07:35 | 124,674,658 | 0 | 0 | null | 2018-03-23T14:07:36 | 2018-03-10T16:31:58 | Python | UTF-8 | Python | false | false | 26,945 | py | #!/usr/bin/python
# Home: https://github.com/cjenison/f5_bigip_asm_healthreport
# Author: Chad Jenison (c.jenison@f5.com)
import argparse
import sys
import requests
import json
import getpass
import re
import xlsxwriter
from time import sleep
parser = argparse.ArgumentParser(description='A tool to give summary/healt... | [
"c.jenison@f5.com"
] | c.jenison@f5.com |
a47addf1127f1ae6f88b3fb457bb8b59903f4498 | 1fe720adffeca631224d0c3c6887612a35fa962c | /setup.py | 41dee6a82fbcbe05867b8d45c304b7501e17bdcc | [
"MIT"
] | permissive | bob-stupak/mytestproj | 36624e3a30f999bd07a53408434f2fddc32d8c31 | e8c889e9e44feb578261c3cfdc0646bcb76a722d | refs/heads/main | 2023-01-23T19:41:36.117992 | 2020-12-11T23:32:29 | 2020-12-11T23:32:29 | 320,708,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #
#
from setuptools import setup
import os
import sys
if sys.version_info[0] < 3:
with open('README.rst') as f:
long_description = f.read()
else:
with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
version={}
with open(os.path.join('mytestproj','_version.py')) as f:
exec(f.read()... | [
"stupakro@yahoo.com,stupak@noao.edu"
] | stupakro@yahoo.com,stupak@noao.edu |
5ee646099335af62968ecfb56fdadebab42d1e4f | db186156e6119d2a704077a8b3416202e482af90 | /examples/management_api/declare_queue.py | 75d085fdd18cececca87c30d24f1bf0e5f4f6aa9 | [
"MIT"
] | permissive | MeggyCal/amqpstorm | 07a48100397c3d159944ad4935c62b927bd55efa | 3682b835b256297fc3c4d52e71a4d0d15cb0719b | refs/heads/main | 2023-04-12T23:40:30.100240 | 2021-04-19T13:40:19 | 2021-04-19T13:40:19 | 359,470,597 | 0 | 0 | MIT | 2021-04-19T13:31:22 | 2021-04-19T13:31:20 | null | UTF-8 | Python | false | false | 506 | py | from amqpstorm.management import ApiConnectionError
from amqpstorm.management import ApiError
from amqpstorm.management import ManagementApi
if __name__ == '__main__':
API = ManagementApi('http://localhost:15672', 'guest', 'guest')
try:
API.queue.declare('my_queue', virtual_host='/')
except ApiConn... | [
"me@eandersson.net"
] | me@eandersson.net |
0391d615e732cc068f6e1c90dbd00e72aa03bdb6 | 94c87557a47f5f32ab32b2aabf673e15278c48eb | /banco_do_brasil/trailer/__init__.py | c2fae625631cb207ad277d4a0e0d7eeafa3c930a | [] | no_license | arannasousa/pyfebraban | 993c54b4d193e0c941675083eca71d2394880133 | 08b8e481b10f2075d3d4c560e20728ff929f3384 | refs/heads/master | 2021-01-20T15:18:15.265245 | 2017-05-09T13:34:09 | 2017-05-09T13:34:09 | 90,746,167 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | # coding=utf-8
"""
Desenvolvedor: asantos
E-mail: Arannã Sousa Santos
Mês: 04
Ano: 2015
Empresa: TINS - SOLUCOES CORPORATIVAS
"""
__author__ = u'asantos'
from ...febraban.base import (TagCaracter, TXT)
from ...febraban.trailer import ArquivoTrailer as ArquivoTrailer_febraban
from .controle import ArquivoTraile... | [
"arannasousa@hotmail.com"
] | arannasousa@hotmail.com |
f2e133e603e1081efb9a2559b6915c3ecdb29d14 | e00d24c4272d36d27303c13fb0383a72640a22ff | /previous_CODE/alerts.py | 5d036cf8e97f906fbfa7e671d7be3b42935e5825 | [
"Apache-2.0"
] | permissive | jaumecolom/hackeseiaat | c55e97ba5f63d203ae57355cdf57c2e2d635e05c | fe6777fc95d26ed88949c4b9f2992414a7e54335 | refs/heads/master | 2021-08-23T02:48:39.198944 | 2017-12-02T17:32:18 | 2017-12-02T17:32:18 | 112,831,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | import requests as r
import cv2
import base64
from threading import Thread
def async_post(x, y, frame):
img = encode_image(frame)
r.post("http://openarms-alerts.000webhostapp.com/post-alert.php", data={'coor_x': x, 'coor_y': y, 'image': img})
def post_alert(x, y, frame):
thread = Thread(target=async_pos... | [
"oriolcscr@gmail.com"
] | oriolcscr@gmail.com |
630a237bbf40c008aa96ba4127df47eccbcf94d4 | 9089e7afd65ba2c6d5607999b7b7c7eacbc59b61 | /python3/apaxianparent.py | 527eb85140d015e2508aac0d910010b976ef47b6 | [] | no_license | TheChickenBoy/kattis | 9e9fb88436991db9c2f290064c70881f46a13440 | fdeb99faf5f630607c5179c678b03270869bae75 | refs/heads/master | 2023-03-19T10:18:10.084193 | 2021-03-18T14:53:34 | 2021-03-18T14:53:34 | 217,545,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | w = input().split()
if w[0][-1] == 'e':
print(w[0]+'x'+w[1])
elif w[0][-1] in ["a","i","o","u"]:
print(w[0][:len(w[0])-1]+'ex'+w[1])
elif w[0][-1] == 'x' and w[0][-2] == 'e':
print(w[0]+w[1])
else:
print(w[0]+'ex'+w[1])
| [
"c16gws@cs.umu.se"
] | c16gws@cs.umu.se |
aca2d24b1b809b5d8fca28cdff0fa4a378de9210 | b512166a4378adfcdae308c0670e411d5cb7475e | /huggablehound.py | 185c7c2aea7cb705d8e641c78b091fa6a4d88146 | [] | no_license | HebeHH/HuggableHusky | 66af207b422111bfad0abfe705d87e558198ba0b | d3911e3123a330a815bcf2ea90a9f02c6a88cbfd | refs/heads/master | 2020-05-24T12:49:12.996571 | 2019-05-17T20:24:27 | 2019-05-17T20:24:27 | 187,276,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import facebookhugs
import RPi.GPIO as GPIO
import time
import random
def main():
GPIO.setmode(GPIO.BOARD)
print "GPIO setup"
GPIO.setup(3, GPIO.IN)
print "current signal: %r" %GPIO.input(3)
hour_count = 0
total_count = 0
last_hug_time = time.time()
print "hour count set to: %d \ntotal count set to: %d" %(ho... | [
"hebehh@gmail.com"
] | hebehh@gmail.com |
24998598f986add28ac59a904b631e20e2884641 | 30fd3d665bc948ba6b5189662a9692a00779d6e3 | /Schlaff_Final.py | 7194f1af75b0b746c35ab1a99088b4a3de7890ff | [] | no_license | Schlaff/soothing-forest | 9e3866738a6fcd0a21bed3004b9fcef5c7f79f72 | dce6b78da6c91da385f257e117545abf0863c2bc | refs/heads/main | 2023-03-02T12:52:23.189481 | 2021-02-14T00:20:53 | 2021-02-14T00:20:53 | 313,816,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,756 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 17 16:47:32 2020
@author: brian
"""
### Brian Schlaff
### Comp Sci 450.2 Final
#Import Packages
import csv
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Load CSV data for 2017 income and 2014 Tree canopy cover into dat... | [
"noreply@github.com"
] | Schlaff.noreply@github.com |
61fd754894edcab290ff25bf8a89dc7d62e30f4b | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/elastic/list_vm_host.py | f34a81517ec4ba204241c707e33ea9c30c6da3f1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
6315e80b826d9c46d3d908dea6a08c5d291e41e0 | 5d59a3c3ba56afdc06a2b1419d5086179b8d83cd | /chatbrick/brick/mailer.py | 15b6780b8e3cc72366667a6ea8c9b9d1f0eea501 | [
"MIT"
] | permissive | BluehackRano/cb-wh | d45cf07c081dea5b8034ddd887af9fb98777823c | ecf11100ad83df71eac9d56f6abbd59ceeda9d83 | refs/heads/master | 2020-04-26T23:04:15.065837 | 2019-03-05T07:17:23 | 2019-03-05T07:17:23 | 173,891,214 | 0 | 0 | MIT | 2019-03-05T06:50:11 | 2019-03-05T06:50:11 | null | UTF-8 | Python | false | false | 9,737 | py | import requests
import time
import logging
import os
import smtplib
from email.mime.text import MIMEText
import blueforge.apis.telegram as tg
from blueforge.apis.facebook import Message, GenericTemplate, TemplateAttachment, ImageAttachment, PostBackButton, \
Element, QuickReply, QuickReplyTextItem
from chatbrick.u... | [
"wow5468@naver.com"
] | wow5468@naver.com |
99975723c664b8f27a566545623df1ee56c6c0ea | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/ansible/lib/python2.7/site-packages/requests_kerberos/kerberos_.py | 57e125915ca5aa1b3013efe7bf91283aff05ddcd | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 13,456 | py | try:
import kerberos
except ImportError:
import winkerberos as kerberos
import re
import logging
from requests.auth import AuthBase
from requests.models import Response
from requests.compat import urlparse, StringIO
from requests.structures import CaseInsensitiveDict
from requests.cookies import coo... | [
"admin@example.com"
] | admin@example.com |
1f75842a3231df0a3c4fe874c0face5e7c80e1ee | 04b57835df84526301851e155aceb143f3a6298b | /Project Manual (Face Recognition)/4-2_encode_faces.py | cef6d6d30c7ed41d5a32de366d58926869d9a4e8 | [] | no_license | wchoi09/OpenDoor_OpenCV | c7be844811c5a6b3258e0d02985c4fa2dcde6541 | 0fbbba7f3ee519512f887d818124c3e55756ddc9 | refs/heads/master | 2022-11-16T15:16:53.895626 | 2020-06-12T05:50:53 | 2020-06-12T05:50:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | # USAGE
# When encoding on laptop, desktop, or GPU (slower, more accurate):
# python encode_faces.py --dataset dataset --encodings encodings.pickle --detection-method cnn
# When encoding on Raspberry Pi (faster, more accurate):
# python3 encode_faces.py --dataset dataset --encodings encodings.pickle --detection-method ... | [
"noreply@github.com"
] | wchoi09.noreply@github.com |
e8608e0a9783de1e3216386b2302a0cf193969f8 | e14f562e4b0a2dc29dc6fe9c0d09ff3edd1cbcc4 | /test.py | 097f1428319dbf3ba5ecc9ffd567bd99664383b5 | [] | no_license | jordicolomer/puzzlehunt | fea6c95cd0aeb036a8c786b38a5c281a2b24b0f9 | 1d7a8cecaaaa90f076487569fa6aa63af66f2d5f | refs/heads/master | 2021-01-21T14:32:22.041070 | 2017-06-24T13:17:40 | 2017-06-24T13:17:40 | 95,294,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | from zoo import *
def test_rule12():
assert rule12([albatross]) == True
assert rule12([]) == True
assert rule12([albatross, flamingo]) == True
assert rule12([albatross, flamingo, swan]) == True
assert rule12([albatross, flamingo, meetkat, swan]) == True
assert rule12([swan, flamingo]) == False... | [
"winkelmo@amazon.com"
] | winkelmo@amazon.com |
a7c8002113dc68c48eeef10c7a6887d99b9e8576 | 22655075ae724b6d06c8d5ac0306151988ff2124 | /tool/cleaner.py | a90d6d5b4c427ea842306973200e73ee1aa6196f | [] | no_license | cogaiwibu/hello-cross-platform | d7b71d287a40e0b04fa4a3e37ab774269a329520 | 871166053f72aa5df53c4b3aa5312a5b6f52df34 | refs/heads/master | 2023-03-23T20:03:58.889951 | 2021-03-18T08:14:09 | 2021-03-18T08:14:09 | 255,058,089 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | import os
import shutil
from pathlib import Path
BUILD_DIR = ['build', '.cxx', '.gradle', 'CMakeFiles']
class Cleaner:
def __init__(self, source_directory):
self.source_directory = source_directory
def clean_all(self):
for directory in BUILD_DIR:
self.clean(directory)
def cl... | [
"nganht2@vng.com.vn"
] | nganht2@vng.com.vn |
f14cf05d27eb2de9541b110f4925efcbfe375244 | b05646c751f97af09165496febd2a23a0f5e283a | /update_pideal.py | 9abe4faedaa9ac09da1825834279c1c6e24720f3 | [] | no_license | outofstyle/MOBSA_MRP | d96b1a478426f7606cd604caa48d2c412036f888 | 97fe2902f00b144fd3b9fce135e0a61d8ebffa1b | refs/heads/master | 2021-09-12T07:13:02.370033 | 2018-04-15T08:07:38 | 2018-04-15T08:10:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | import sys
from algorithm.util import *
"""
Topology list:
--------------------------------------------
| Rand_Topo | SNDlib_Topo | Zoo_Topo |
--------------------------------------------
| Rand1 | germany50 | AttpMpls |
| Rand2 | india35 | BtNorthAmerica |
| Rand3 | ta1 | China... | [
"quanwenming@outlook.com"
] | quanwenming@outlook.com |
b046a09c9975ce74e92f97a7eeb85819a14ebd54 | 19888c945454cc535ceabce35d637e8c6e550646 | /gym_industrial/envs/mis_calibration/environment.py | f0b22e890d5dd73b46eccf16e8411f25964a1c74 | [
"Apache-2.0"
] | permissive | 0xangelo/gym-industrial | 8aaf7daa971246fb4b4950c44a697c8757273595 | d89fdc4bbfa3e569beb5d5c4690c23d8ecad28ed | refs/heads/master | 2022-11-25T05:23:09.606829 | 2020-05-13T19:11:41 | 2020-05-13T19:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,774 | py | """Standalone mis-calibration subsystem as a Gym environment."""
import gym
from gym.spaces import Box
from gym.utils import seeding
import numpy as np
from .dynamics import MisCalibrationDynamics
class MisCalibrationEnv(gym.Env):
"""Standalone mis-calibration subsystem as a Gym environment.
From the paper:... | [
"angelolovatto@gmail.com"
] | angelolovatto@gmail.com |
c4c491ed8e7618ac8434622400d945a7985bc72b | 64308a3bf96fa8b657fc7a975722dcf50afba473 | /PSGUIAD/3/07.Layout.py | 9c3f8545a097b7188a0e20e4c92d99b59adfd6c0 | [
"MIT"
] | permissive | j2doll/Learning-Qt-for-Python | c7b6aec5685bc1e922cae2b5ba52c962974474bb | eb737578792e4678ab98e100e6715d52315470a3 | refs/heads/master | 2020-03-28T01:18:43.574675 | 2018-09-14T06:50:19 | 2018-09-14T06:50:19 | 147,495,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | # 07.Layout.py
# Import required modules
import sys, time
from PySide2.QtGui import *
from PySide2.QtWidgets import *
# Our main window class
class MainWindow(QWidget):
def __init__(self): # Constructor function
super(MainWindow,self).__init__()
self.initGUI()
def initGUI(self):
self.s... | [
"j2doll@gmail.com"
] | j2doll@gmail.com |
641de27a12d13f7a27177c37c506b418498a872d | ff8338671354a79c5248c074952ad9efbde86a0c | /shop_api/settings.py | d5399256420471bdcb5951e8d61141ab9d07b429 | [] | no_license | suman419/shopping | 77e0f072b5ad47a1e1e03372e3e1120045e946b8 | 7daa2a411153057d31ae48e52dd6942faf2a1fb3 | refs/heads/master | 2022-11-30T06:08:37.761715 | 2020-08-18T14:34:53 | 2020-08-18T14:34:53 | 288,478,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | """
Django settings for shop_api project.
Generated by 'django-admin startproject' using Django 3.1.
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/
"""
from pathlib ... | [
"shekhar.shs@gmail.com"
] | shekhar.shs@gmail.com |
94efa92bb11a525db0265179b423c1ebf52f1242 | 18f631727089d570d6e6cd08169d302510b8eeae | /py/贪吃蛇.py | 724fc84b006cef4f6f7a992e88f42bbfa72ee8c7 | [] | no_license | xXxrAinZyian/homepage | 8b3e5cc00767b194560b44013d03d235def8fbd0 | fae51850d554d7344be211a5a3d4498ca744accb | refs/heads/master | 2022-11-24T14:54:15.208737 | 2020-07-09T21:45:45 | 2020-07-09T21:45:45 | 278,477,472 | 2 | 0 | null | 2020-07-09T21:45:16 | 2020-07-09T21:45:15 | null | UTF-8 | Python | false | false | 4,594 | py | import pygame
import sys
import random
# 全局定义
SCREEN_X = 600
SCREEN_Y = 600
# 蛇类
# 点以25为单位
class Snake(object):
# 初始化各种需要的属性 [开始时默认向右/身体块x5]
def __init__(self):
self.dirction = pygame.K_RIGHT
self.body = []
for x in range(5):
self.addnode()
# 无论何时 都在前端增加蛇块
... | [
""
] | |
ca9c60d7b6abbe04a2885666d3c37d52e4b28429 | d2cefe98bc2fb4ad6109890addded90b9b114173 | /autodoc.py | f94690625f9710a21263e5a86d6c2c3be7f586ec | [
"MIT"
] | permissive | GabeHart17/javadoc_tools | 158ff53aa0a9252c36fa189bbcdf246de7f027c1 | 8916142fd699591c52a6a7ca7c0f5bde891cb2b9 | refs/heads/master | 2020-09-29T01:01:43.653403 | 2019-12-09T15:51:00 | 2019-12-09T15:51:00 | 226,908,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,030 | py | """
WARNING: use on text other than syntactically correct java may result in
undefined behavior.
"""
import sys
import os
from enum import Enum
class Scopes(Enum):
GLOBAL = 0
CLASS = 1
FUNCTION = 2
STATIC = 3
def find_functions(text):
functions = [] # (start_index, end_index)
curly_stack =... | [
"flyingmessier@gmail.com"
] | flyingmessier@gmail.com |
0c0e031cb5e48ab4f33a7b4e5217e5b550c80076 | 602093f6e86e84486c3be5da96ab06529cddc5d9 | /51-100/080Remove Duplicates from Sorted Array II/Remove Duplicates from Sorted Array II.py | 3402a596ce552ed540dace681ca418313d9be470 | [] | no_license | binzhikuwen/leetcode | 8ac325787bd629b6e18d862f1d0cd17b57c3ca43 | ca3422ca8ccaf7e40044dcfaeebe903c2a630baa | refs/heads/master | 2021-01-17T09:32:02.774590 | 2016-03-21T10:19:40 | 2016-03-21T10:19:40 | 40,165,623 | 0 | 1 | null | 2016-03-21T10:19:41 | 2015-08-04T05:43:52 | C++ | UTF-8 | Python | false | false | 813 | py | #!/usr/bin/env python
#-#-coding:utf-8-#-
# Source : https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array-ii/
# Author : bin bin
# Date : 2016-01-26
#
# Follow up for "Remove Duplicates":
# What if duplicates are allowed at most twice?
#
# For example,
# Given sorted array A = [1,1,1,2,2,3],
#
#... | [
"602221794@qq.com"
] | 602221794@qq.com |
9eee11420e8ec0c8b816c403ea9fe3bf54758963 | 2b22a6fbfbe2575077a369205dba4f7af3cd7d99 | /pythonweb/rasiberryPiWebManager/middlewares.py | e37d7d784724cf41fe2d9de4b8c92ca3010ed830 | [
"Apache-2.0"
] | permissive | onwebbe/rasiberryPiWebManager | dceef67995d94786a3bf01f10b6376f75b321055 | 14ff9f14f3f873457666fa1669fae715148538c9 | refs/heads/master | 2022-12-22T05:28:20.800326 | 2019-09-21T15:04:44 | 2019-09-21T15:04:44 | 207,604,705 | 0 | 0 | Apache-2.0 | 2022-12-10T15:49:54 | 2019-09-10T16:07:41 | Vue | UTF-8 | Python | false | false | 217 | py | from django.utils.deprecation import MiddlewareMixin
class CrossDomain(MiddlewareMixin):
def process_response(self, request, response):
response['Access-Control-Allow-Origi'] = '*'
return response | [
"tai.wu@sap.com"
] | tai.wu@sap.com |
644712612d565cc5c61874da7590ea925ce60508 | cdb29a347d67eb80f3deb09b685ea1e82ae47e7d | /progs/bottomUpTraversalBT.py | 38581d957e4b49c8360d03e0756d9c64c8e45c7a | [] | no_license | ishankkm/pythonProgs | f41e82c86591f4078c4c1317ecb4829087961c76 | be98ba8e50cc7844d519a5ae5b6e4d9901e175ca | refs/heads/master | 2021-01-24T16:48:50.161323 | 2018-09-08T23:30:19 | 2018-09-08T23:30:19 | 123,213,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | '''
Created on Jan 24, 2018
@author: ishank
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def levelOrderBottom(self, root):
"""
:type root: TreeN... | [
"imishra@usc.edu"
] | imishra@usc.edu |
2bc6787c3b09b46b564b247b648c7813eb210f37 | 86dd1f9b1133fa5efb1e1134747e8df2184dc530 | /pacman.py | b2c09cc858212c245c08f3125d3caf063d322b3d | [] | no_license | tarun6285/Pacman-Search-Algorithms | 8f34f5332f114cee8c3c7ef2a75353dcc8d82166 | ebd834ddcf2bf9c33395f4686f01f67fdb6ceef6 | refs/heads/master | 2020-12-13T22:54:19.429695 | 2020-01-17T13:53:56 | 2020-01-17T13:53:56 | 234,555,349 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26,190 | py | # pacman.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# A... | [
"noreply@github.com"
] | tarun6285.noreply@github.com |
e0380b4d0e1ad946e520a3d1d6a6d3e2d171f5d4 | e7b7cc34f77c71e61aa0fa05bcc62f54fc2fc0e1 | /Matrix/test_q048_rotate_image.py | d8eafa6c6400fcc9b88cb7ec50647bd9813d252c | [] | no_license | sevenhe716/LeetCode | 41d2ef18f5cb317858c9b69d00bcccb743cbdf48 | 4a1747b6497305f3821612d9c358a6795b1690da | refs/heads/master | 2020-03-16T16:12:27.461172 | 2019-04-22T13:27:54 | 2019-04-22T13:27:54 | 130,221,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | import unittest
from Matrix.q048_rotate_image import Solution
class TestRotateImage(unittest.TestCase):
"""Test q048_rotate_image.py"""
def test_rotate_image(self):
s = Solution()
matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]
s.rotate(matr... | [
"429134862@qq.com"
] | 429134862@qq.com |
dad4974a14774cac8161e28685a6a1db9e4d89e7 | fe1353329f5eec4498360523d72cbaa2656b802e | /StereoSfMLearner_master/data/kitti/kitti_raw_loader.py | a03ab5329f6ff4c1f14c71490458020392c63bd8 | [
"MIT"
] | permissive | MaxHuerlimann/3D-Vision | c6937038a07cf196ffb0a664af9d7cdfdb3f8dd4 | e7384d0f11c6f015fc12f10061d808ff313096a0 | refs/heads/master | 2021-04-06T01:40:44.201698 | 2018-06-18T21:10:57 | 2018-06-18T21:10:57 | 124,376,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,343 | py | from __future__ import division
import numpy as np
from glob import glob
import os
import scipy.misc
class kitti_raw_loader(object):
def __init__(self,
dataset_dir,
split,
img_height=256,
img_width=256,
seq_length=5):... | [
"maxh@ethz.ch"
] | maxh@ethz.ch |
af26bd38f15108886847727bd1618a0f005603df | e0a24108a6fd8be8c820927804f1f72d881d4351 | /dataset/auto_download_coco.py | ed209c2e119fa7672bcc9246fe0a120f2f93152a | [
"MIT"
] | permissive | 1105042987/Dominant-Patterns | 56e40d55d73fb4e95b16a77444bb022f4862ee8e | 713b535e80aff0f04e20d1ef56d005e183a5d8a5 | refs/heads/main | 2023-05-10T11:25:10.577795 | 2021-06-12T13:34:23 | 2021-06-12T13:34:23 | 376,297,790 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,081 | py | import os
import urllib.request
import shutil
import zipfile
def copyfileobj(fsrc, fdst, length=16*1024):
"""copy data from file-like object fsrc to file-like object fdst"""
cnt = 0
last = 0
while 1:
buf = fsrc.read(length)
if not buf:
print('\nDownload Finish')
... | [
"1105042987@qq.com"
] | 1105042987@qq.com |
67fe4d21c9604c2abd859971448d27f99ffb17b9 | 90080b87ce2964f6016c1147a39c53c151ef91e6 | /joystick.py | 787055068eec75447c1f204efd95a595860cd6ec | [] | no_license | nonodamiens/pygame | 733f86b015d80f5c269c495726cc6a049d7b90a2 | 5b5cb190404920d173305ded12febf8c8475319b | refs/heads/master | 2022-05-17T02:34:10.780716 | 2020-04-23T20:46:29 | 2020-04-23T20:46:29 | 257,037,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | """
Ce fichier python sert à tester la gestion du joystick avec pygame
Pour les boutons, les types d'évenements sont JOYBUTTONDOWN et JOYBUTTONUP
event.button renvoit le numéro du button de l'évenement
Pour les directions, le type d'évenement est JOYAXISMOTION
event.axis renvoit l'axe (0 pour l'axe horizontal / 1 axe... | [
"arnaud.mercier80@gmail.com"
] | arnaud.mercier80@gmail.com |
4f7eda57e1a4435c38b468c2b0fddfb150a414a6 | 63b6616962c5e4abf3db50efda40e75dd06c5137 | /game_api/migrations/0019_auto_20200806_1503.py | 864d8a2616ae991041929824cf0956a3c4d1210b | [] | no_license | tabiouch03/Gaming-API | 753ab7743d42f7b872cdd785f089050a3e2ebeea | a6ad14e5e0051d2a09cae3c23ad86bbabd49a315 | refs/heads/master | 2022-12-03T09:14:49.019219 | 2020-08-12T21:24:13 | 2020-08-12T21:24:13 | 284,426,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 3.0.8 on 2020-08-06 13:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game_api', '0018_auto_20200806_1503'),
]
operations = [
migrations.AlterField(
model_name='game',
name='plateform',
... | [
"guerreiro.fabio@outlook.fr"
] | guerreiro.fabio@outlook.fr |
b25e1c7d659e00d15dc0f0fbc8c9e812dbee18bc | cdb0e833a4c5a60f9602a183ec04a8f251b2b75a | /shapes.py | cb6469b78d0d97bada3fc1d03321ccdea5fdb3f0 | [] | no_license | waithiageni/python_Example5 | 11bdc059fc7945bceb4edd8f5641a7efccff4b98 | 43de704c0427feb0719f05fe9c99b68e690cf998 | refs/heads/master | 2020-05-18T08:29:44.386629 | 2019-05-01T15:28:47 | 2019-05-01T15:28:47 | 184,297,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | class Circle:
def __init__(self,radius):
self.radius=radius
def Area_of_a_circle(self):
radius=self.radius
A=(3.142)*(radius*radius)
return(A)
def circumference_of_a_circle(self):
radius=self.radius
C=2*3.142*(radius)
return(C)
class Square:
def __init__(self,side):
self.side=side
def A... | [
"mwangiwaithiageni33@gmail.com"
] | mwangiwaithiageni33@gmail.com |
0eb2ca34b4a274b9f31db05a4538e883bc0d7089 | cea8c9b502375a0e2bab990044973146cf8f35ba | /testCase/BaseCase/testBaseCase.py | da1c4dd24ee327fe01cfb5ef131c71d1435f645b | [] | no_license | D6666666/autotest-api | b1e4d977df80a44142724018f7130155b86c52cb | 0457e3b78ce1293a86d9610c1b13a58bce2dad22 | refs/heads/master | 2020-06-28T06:59:59.346780 | 2019-08-02T05:13:34 | 2019-08-02T05:13:34 | 200,169,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,876 | py | # @Author : 程前
import time
import unittest,json
from ddt import data,ddt
import readConfig
from common.log import MyLog
from common import public
from common import configHttp
from dataDriver.FormatTrans import FormatTrans
localReadConfig = readConfig.ReadConfig()
class BaseCase(unittest.TestCase):
@classmethod... | [
"chengqian@shouqiev.com"
] | chengqian@shouqiev.com |
4f499e84ef025f7392da0dfe8b469d8b2e293bde | 275cac9a89e7f3412414de86fcbf50b5a782fe92 | /realpro/settings.py | 4a428a6c0e656cb22f6b67d4e925468984aca355 | [] | no_license | josephbudiarto/Chat-iShout | 076564fe75eeb0f9ed26cc38affab684236fcbb1 | 0eec38b6e2a23122856169194260cefe6f5d2d05 | refs/heads/master | 2021-03-16T05:12:16.913381 | 2017-10-27T09:03:10 | 2017-10-27T09:03:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | """
Django settings for realpro project.
Generated by 'django-admin startproject' using Django 1.11.4.
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 os... | [
"budiartojoseph@gmail.com"
] | budiartojoseph@gmail.com |
e14898f8dd40cad3308234ff8f4baebb370a070f | 96e07f8c5f171265324c6f9ae70e1a90c13526a1 | /calculator.py | da9628a0e609c5e7b247b04312e3cc92481ea049 | [] | no_license | samh-gith/pythonCalculator | bb6663de64c14d45cd20109fde5d99f9dee2d982 | 16bc9e724f1003e42d743f08b9b40ab3d66b4ff5 | refs/heads/main | 2023-06-24T20:28:46.182412 | 2021-07-29T15:40:50 | 2021-07-29T15:40:50 | 390,720,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | def add(a,b):
result = a + b
print("a + b = ", result)
def sub(a,b):
result = a - b
print("a - b = ",result)
def mul(a,b):
result = a * b
print("your result: ",result)
def div(a,b):
result = a / b
print("a / b = ",result)
a = int(input("Enter your first number: "))
b = int(input("Ent... | [
"sayamha@protonmail.com"
] | sayamha@protonmail.com |
d63f0893519c71f152b806df986ad7977c378992 | 213bab28027bd7b5f382c7bd8738748d5c092baa | /blog/migrations/0001_initial.py | 1eecdccfeff703a348e8d71804cb3af1b5239d60 | [] | no_license | debora2001/meuBlog | 91e5db1ca748841e2d60fc6de1fb47ef100d81d0 | 43fc0832c095871a77cdd320837352671064777e | refs/heads/master | 2020-05-25T09:12:58.784651 | 2019-05-22T23:34:13 | 2019-05-22T23:34:13 | 187,729,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.0.13 on 2019-05-14 00:20
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.AU... | [
"deborasilvabasilio03@gmail.com"
] | deborasilvabasilio03@gmail.com |
f7c5eb6b2779678645dbe907be346931306e1110 | 783244556a7705d99662e0b88872e3b63e3f6301 | /denzo/views.py | 0721b87bc8754714091c168de0c2ebdcf4906cd8 | [] | no_license | KobiBeef/eastave_src | bf8f2ce9c99697653d36ca7f0256473cc25ac282 | dfba594f3250a88d479ccd9f40fefc907a269857 | refs/heads/master | 2021-01-10T16:49:14.933424 | 2016-03-08T13:30:48 | 2016-03-08T13:30:48 | 51,752,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from django.views import generic
from . import models
# Create your views here.
class TestView(generic.TemplateView):
# class TestView(generic.ListView):
template_name = 'denzo/index.html'
def get_context_data(self, **kwarg... | [
"ezekielbacungan@gmail.com"
] | ezekielbacungan@gmail.com |
1dd4e1daead0188ecac08ab5768d4f6825208bbf | 067fc8e0d93c8e5953a213be0048380f973d3234 | /src/schoology-extractor/edfi_schoology_extractor/usage_analytics_facade.py | a79cfb2d7927c86b6042266cafda10f56b024982 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | markramonDL/LMS-Toolkit | 0fff343afc8b5775765ccbbf8529a4e8acab5b11 | d7097f9e063f39a45c8a08ec7316d2a1c4034e50 | refs/heads/main | 2023-06-19T08:36:54.384666 | 2021-07-14T21:52:09 | 2021-07-14T21:52:09 | 386,748,130 | 0 | 0 | Apache-2.0 | 2021-07-16T19:49:16 | 2021-07-16T19:49:15 | null | UTF-8 | Python | false | false | 2,223 | py | # SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
import logging
import os
import pandas as pd
import s... | [
"noreply@github.com"
] | markramonDL.noreply@github.com |
f37609df1a42df1f361372a57b655841feb72db1 | f4722f955e82b0dcee8af8f66690e85de9acb0d7 | /app/settings.py | 630c5011d120ef9f4b571736a1ca5e2a67feb7fc | [] | no_license | EmotiCam/mylifecut_backend | afd2592bef3ab95e0936a69e7e6bfbfa5f61d1fd | 6067ea512e532de6657c70e5d000d6c9721b4ed5 | refs/heads/master | 2022-12-13T10:05:16.087710 | 2019-12-11T16:42:11 | 2019-12-11T16:42:11 | 219,949,635 | 0 | 0 | null | 2021-06-10T22:13:33 | 2019-11-06T08:38:52 | Python | UTF-8 | Python | false | false | 3,620 | py | import os
import pymysql
# Mysql install
pymysql.install_as_MySQLdb()
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/... | [
"nobel6018@gmail.com"
] | nobel6018@gmail.com |
bd048cac33fa568ed2be92dcddd393d2a3eaab83 | a1e612352487847fe30a379dee780713ba0cfc9a | /fonction_basiques.py | e71466c70cb87cb3095bdd83446396753e5b6fa5 | [] | no_license | SoniaB78/supportSG | 807ad245068cab02e64fec245c0b81af10e05128 | e39da5ae238d77fe6b2c6f832c1e0c15a1eaf7f0 | refs/heads/master | 2021-01-03T07:31:27.399471 | 2020-02-12T10:14:40 | 2020-02-12T10:14:40 | 239,982,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Administrateur
#
# Created: 03/12/2019
# Copyright: (c) Administrateur 2019
# Licence: <your licence>
#---------------------------------------------------------------------------... | [
"bougamha.sonia@gmail.com"
] | bougamha.sonia@gmail.com |
0ebcc8149ce068b5084956bbde4794c6ce953011 | 2cab2fddfc9d692a18f65507d6f810a2cac116c5 | /genkeymap.py | fd2fe853a5119614ec1a28c80a76c416060e82a9 | [
"MIT"
] | permissive | BarnabyShearer/phone_chord | a469e6e532f1e727b2b021c98b1b064bef5ffd25 | 809a2b20739a0391f59bd12b6583bb60d5ac9f7c | refs/heads/master | 2021-05-08T13:27:21.548466 | 2018-02-05T16:23:15 | 2018-02-05T16:23:15 | 120,014,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | #! /usr/bin/env python3
from brs001 import MOD, KEYS
def toint(keys):
key = 0
for i in range(1, 9):
if i in keys:
key |= 1 << (i-1)
return key
def fromint(key):
keys = set()
for i in range(8):
if key & (1 << i):
keys.add(i + 1)
return keys
def totable(... | [
"b@zi.is"
] | b@zi.is |
da10a8a155495c940c7a33b391b32775f9615b22 | 7a65d5c65b4dfda116a95520dc2b992e0c70730a | /tests/image_tests/renderpasses/test_HalfRes.py | b0a9347978dc17fee4541df506453a23f52ec97f | [
"LicenseRef-scancode-unknown-license-reference"
] | permissive | WeakKnight/Falcor | bd40129d40141ed1360960e3567188a587193989 | a824b847ba9a6861d011868c0a4f4f0b378b821f | refs/heads/master | 2023-03-19T04:41:56.538202 | 2022-09-05T09:45:28 | 2022-09-05T09:45:28 | 297,922,220 | 0 | 0 | BSD-3-Clause | 2020-09-23T09:39:35 | 2020-09-23T09:39:35 | null | UTF-8 | Python | false | false | 245 | py | import sys
sys.path.append('..')
from helpers import render_frames
from graphs.HalfRes import HalfRes as g
from falcor import *
m.addGraph(g)
m.loadScene('Arcade/Arcade.pyscene')
# default
render_frames(m, 'default', frames=[1,16,64])
exit()
| [
"skallweit@nvidia.com"
] | skallweit@nvidia.com |
03a9b7bf007a16d97712759b3bec49976e2ef934 | be1b4832db24a21bdec1cbc9026cb281db86a1f8 | /classInfoSystem/classroom/migrations/0024_classroom_departman_ismi.py | 29c0e19e9f06ada9b3a2ef72b24a7b29651a6392 | [] | no_license | bugrademiroglu/Class-Info-System-v2 | b33eeb35b221e222524773c9c9069d2d6d758038 | d6b5f61cc88294ad0edf50b6f68e8a7196c1af76 | refs/heads/master | 2022-07-19T18:55:48.183313 | 2020-05-23T22:39:50 | 2020-05-23T22:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # Generated by Django 3.0.6 on 2020-05-19 23:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('department', '0006_auto_20200419_2156'),
('classroom', '0023_remove_classroom_dept_name'),
]
operations = [
migrations.AddField(
... | [
"bugra.demiroglu@hotmail.com"
] | bugra.demiroglu@hotmail.com |
c3c5220ba71013b5de3514ed9a3f3559961b5089 | 38e26b647740851733829aab40f8de2cd819e4a5 | /Deep learning/course 2/Regularization/reg_utils.py | 1ab495cf96f9d2e5a1a758c7ea6aebb962e411eb | [] | no_license | kingkong135/AI-self-learning | 30599d80e8b14e84ecf5eaa70367adaa52c6629e | 06d6c09185b450602be937981b03a408e70630fa | refs/heads/master | 2020-06-27T13:40:36.823067 | 2020-02-22T06:49:50 | 2020-02-22T06:49:50 | 199,967,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,616 | py | import numpy as np
import matplotlib.pyplot as plt
import h5py
import sklearn
import sklearn.datasets
import sklearn.linear_model
import scipy.io
def sigmoid(x):
"""
Compute the sigmoid of x
Arguments:
x -- A scalar or numpy array of any size.
Return:
s -- sigmoid(x)
"""
s = 1 / (1 +... | [
"nguyentiendat1531999@gmail.com"
] | nguyentiendat1531999@gmail.com |
b895d81e156a405d5afdd4d89a20d08acd8105e2 | c6cf8d1c0c09a2205c7328c143e5a6000835af32 | /obplatform/apps/common/templatetags/utiltags.py | e5426a961edc0c3546755e692818b7b0ff48f161 | [] | no_license | ZoomQuiet/openbookplatform | 9bb82972a92bc60aea616a89d8fbc46d1b9b741d | 6d8700598138a240ddd8c9ffdf14d413518df3e2 | refs/heads/master | 2021-01-19T03:23:16.424255 | 2009-08-01T11:15:08 | 2009-08-01T11:15:08 | 34,236,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,355 | py | from django import template
from django.utils.translation import gettext_lazy as _
import re
register = template.Library()
class ExprNode(template.Node):
def __init__(self, expr_string, var_name):
self.expr_string = expr_string
self.var_name = var_name
def render(self, context):
t... | [
"Zoom.Quiet@e9cb34ec-b428-0410-8744-11689a347de2"
] | Zoom.Quiet@e9cb34ec-b428-0410-8744-11689a347de2 |
41d937507270b661d01344d62bdb1da0919636f2 | 688871f41d49613adfdb590d2c0518be14de0d2d | /songFiles/madonna_song_parse_by_quotes.py | acfb03bbb231b89d4bbf5aa3c4f13a2f867ed549 | [] | no_license | richardx14/madz_serverless | 407af920022ca2b6d85de64e4aa773e923014f6e | 160725d27be6acd54d0346317f65d251dcd3d666 | refs/heads/master | 2020-04-14T13:31:42.065854 | 2019-03-04T08:33:26 | 2019-03-04T08:33:26 | 163,871,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | songCounter = 0
songArray = []
with open('madonna_all_songs_wikipedia.txt') as file_object:
# contents = file_object.read()
for line in file_object:
print(line)
if line[0] == "\"":
songCounter = songCounter + 1
songString = line.split("\"")[1]
songArray.append(songString)
outputFile = 'parsedSong... | [
"richard@dicecentre.org"
] | richard@dicecentre.org |
10781add07967e561d3762d25085f35e80646879 | 2aee288116fccffd9a2353bea1037e4a3ed573c0 | /zhang_archery.py | 3473775b7b17d287789b4f80fdad7a60a6d31d54 | [] | no_license | mtz99/SMC-CS21 | 2e11ffc2af0787866436deccc393c79fa6826772 | 5767b0e4c8b0a827dac3ce3d8ee52b84aaa75721 | refs/heads/master | 2020-04-06T11:34:22.514773 | 2018-11-22T22:04:25 | 2018-11-22T22:04:25 | 157,422,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,789 | py | #Matthew Zhang
#CS 21, Fall 2018
#archery.py
#Recieved help from: Jennifer Courter
#NOTICE: This program requires the graphics.py library (by John Zelle) to be in the
#same directory as this file in order for this program to work. You can find this file
#in my SMC-CS21 repository.
'''This program is a simple target ... | [
"noreply@github.com"
] | mtz99.noreply@github.com |
c8b1a7c535d268967bc462278ef3b30a730b9d78 | 503dfa12f03fea8b91f5fda466e4ac908ced90c7 | /usbparse.py | 0d35741f80615c2e72f851be7a8fb049b9fc8729 | [] | no_license | zpon/wiresharkusbkeyparser | f27b691983b30e6adc20166a53b4469066666a1c | 6fa78e7e50a678e3e6c962a4696317ea8165beb8 | refs/heads/master | 2021-08-31T20:28:53.405242 | 2017-12-22T19:10:00 | 2017-12-22T19:10:00 | 115,143,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,167 | py | import json
# Extract key usb key sequence presses from json file extracted from Wireshark
map = {0x29: 'Esc',
0x1E: "1",
0x1F: "2",
0x20: "3",
0x21: "4",
0x22: "5",
0x23: "6",
0x24: "7",
0x25: "8",
0x26: "9",
0x27: "0",
0x2D: "_ / -",
0x2E: "+ / =",
0x... | [
"zpon.dk@gmail.com"
] | zpon.dk@gmail.com |
13601ff9ed0074b7699add94bfa94c0fe19bcc6f | 55173732ce1f2537a4fd8a6137b2a813f594b250 | /azure-mgmt-network/azure/mgmt/network/operations/public_ip_addresses_operations.py | 201db931d63a076b1711d33da7767604e20a72d1 | [
"Apache-2.0"
] | permissive | dipple/azure-sdk-for-python | ea6e93b84bfa8f2c3e642aecdeab9329658bd27d | 9d746cb673c39bee8bd3010738c37f26ba6603a4 | refs/heads/master | 2020-02-26T15:32:39.178116 | 2016-03-01T19:25:05 | 2016-03-01T19:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,253 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. All rights reserved.
#
# 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
e318e51ef7f358fc3b23853c9ebb8a8f74f2da9a | 56fd3c73d9c3c820f498fb00eecc6174f5b09bf6 | /droplet/server/benchmarks/centr_avg.py | 1d213517a50b7de939ad3b8a6ebf981212b69106 | [
"Apache-2.0"
] | permissive | jegonzal/droplet | 97cf4479c21e29db2ac4f22822772f0d25be6a22 | aff149dfed53f9ae89356927f1ea9cab391582d6 | refs/heads/master | 2023-06-01T04:50:58.940546 | 2019-12-06T19:29:28 | 2019-12-06T19:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | # Copyright 2019 U.C. Berkeley RISE Lab
#
# 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 agree... | [
"cgwu0530@gmail.com"
] | cgwu0530@gmail.com |
f0090a94f38698ea763536d63249a7d5839a3e59 | 72e3f45cbcbcabcc812cbef5cce8ec678c0259ca | /07_classes_objects_methods/07_04_inheritance.py | 4be4e8bd02dcf6c3f8d076f6daa20f63551db87a | [] | no_license | Dansultan/python_fundamentals-master | 7c5d0b035305ebe48047738240316bac1ad6bf17 | b2136197c1a0e6cc1178835f03d67949a9e1a801 | refs/heads/master | 2023-04-24T15:47:42.589840 | 2021-05-13T18:50:59 | 2021-05-13T18:50:59 | 348,490,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | '''
CLASSES AND INHERITANCE
=======================
1) Define an empty Movie class.
2) Add a dunder init method that takes two arguments "year" and "title"
3) Create a sub-class called "RomCom" that inherits from the Movie class
4) Create another sub-class of the Movie class called "ActionMovie"
that overwrites... | [
"dansultan@MacBook-Pro-de-Dan.local"
] | dansultan@MacBook-Pro-de-Dan.local |
46de838fef043d21eeca44c08bd4d05ed8ee7015 | daa1c5798e14292ca20eabd7fb8a2e9c9e762557 | /exams_app_2/proc.py | d5c6759ff3e3f2341916c42f0b08f0249a27cdad | [] | no_license | siliconcortex/curiousweb | 9f1811b2c605f3484c40cc0fc465e74047e9a6ec | def40532bbedee8a6484e29edb4861bf3072101b | refs/heads/master | 2023-05-07T12:55:31.696105 | 2020-08-18T07:30:50 | 2020-08-18T07:30:50 | 258,177,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | from django.shortcuts import render
from django.urls import reverse_lazy, reverse
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.views.generic import (View,TemplateView,
ListView,DetailView,
DeleteView, CreateView,
... | [
"lesliecaminade@gmail.com"
] | lesliecaminade@gmail.com |
71265a5e90e44d029f9280247964038d7fae1212 | c8ccd9a88d2b8ffabcad451325eaca62641fb69a | /tests/demo/test_demo_attachments.py | 367eb390ecfa3814166c90ccefaf6984f291bc33 | [
"Apache-2.0"
] | permissive | DenisRybas/didcomm-python | 262fd9c1cccd796b982cf44a66e140928c06111f | d7e83428f086d1080aaa8a9643495ca442ef9722 | refs/heads/main | 2023-07-13T03:33:41.676188 | 2021-08-13T07:59:13 | 2021-08-13T07:59:13 | 398,283,959 | 0 | 0 | Apache-2.0 | 2021-08-20T13:23:30 | 2021-08-20T13:23:30 | null | UTF-8 | Python | false | false | 1,596 | py | import pytest as pytest
from didcomm.common.resolvers import ResolversConfig
from didcomm.message import Attachment, Message, AttachmentDataJson
from didcomm.pack_encrypted import pack_encrypted
from didcomm.unpack import unpack
from tests.common.example_resolvers import ExampleSecretsResolver, ExampleDIDResolver
ALI... | [
"noreply@github.com"
] | DenisRybas.noreply@github.com |
6f406af0ebe5605030000fd6e116b32ce2fc6ace | 767318c4ddf2713a8a035aa3bf68cd8260409aa0 | /user/views.py | 133ddf546ee61d6d46fd72f919a732c56b5965ac | [] | no_license | sag-coder/travelbooking | 704573b145ca04587bbaf2415f4bbdb6ad50b26f | dfc482ca01d1be324aba900075b2a64dc2fd1d88 | refs/heads/master | 2023-06-11T23:22:44.114545 | 2021-07-10T23:47:37 | 2021-07-10T23:47:37 | 384,562,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | from django.shortcuts import redirect, render
from django.contrib.auth.models import User
# Create your views here.
def registration(request):
if request.method == 'POST':
u_name = request.POST['name']
u_email = request.POST['Email']
u_password = request.POST['passwor... | [
"sagar@sagars-MacBook-Pro.local"
] | sagar@sagars-MacBook-Pro.local |
2e3b4717d69eea84a3a94a60133f762eca2a5b35 | 518a0639f9124f90acbd2f6a2d7b326bed94b74f | /yuyitos/proveedor/views.py | 40658e82a342b3b539f0340e06bcba8e3916ded9 | [] | no_license | QuesoCaliente/Yuyitos | 02bef4eaf796997446cd011de7715e1487755466 | 050c521bca8d3b518203bdd971397520b9b7273f | refs/heads/master | 2023-01-14T03:20:19.696898 | 2020-11-14T21:23:37 | 2020-11-14T21:23:37 | 311,866,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | from django.shortcuts import render, redirect
from .forms import proveedorForm
from .models import Proveedor
# Create your views here.
def ProveedorView(request):
if request.user.is_superuser:
if request.method == 'GET':
proveedores = Proveedor.objects.all()
return render(request, '... | [
"brianc.contacto@gmail.com"
] | brianc.contacto@gmail.com |
29a9842ac9f42c23747bdc22f5baf796550a87b4 | 4fa05e478a93e335937dcc0c818c24f88894756b | /mytest/mytest/settings.py | 83096acd9bcc316683f184ecf85a115c9e578e35 | [] | no_license | Power098/scrapy | 57bd60f6e02e14c41d077d4491c637beb57fa477 | 4ee791fb931ad2c15a28727ad841955f81572898 | refs/heads/master | 2023-02-08T11:01:39.772447 | 2019-01-19T04:54:00 | 2019-01-19T04:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,068 | py | # -*- coding: utf-8 -*-
# Scrapy settings for mytest project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics... | [
"731102171@qq.com"
] | 731102171@qq.com |
3039a726a53e46d69960dc5a985c38af2ab28ff0 | 31f8ba92d7fb4bb85bffa4e9680bd62562b40443 | /harriet_ex03.py | 38a3fde0541ad8cd77663c104cabcd911a45958f | [] | no_license | hpellis/learnpythonthehardway | 234dcf1632d3bde047d6f8bb1383f7a67777d334 | 61f49deb58e2f636132fea6b97d682c68efce3a3 | refs/heads/master | 2020-04-09T08:44:39.267484 | 2018-12-09T13:52:13 | 2018-12-09T13:52:13 | 160,206,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | print ("I will now count my chickens:")
print("Hens", 25+30/6)
print ("Roosters", 100-25*3%4)
print("Now I will count the eggs:")
print(3+2+1-5+4%2-1/4+6)
print("Is it true that 3+2 < 2-7?")
print (3 + 2 < 5 - 7)
print("What is 3+2?", 3+2)
print("What is 5-7?", 5-7)
print ("Oh, that's why it's False.") | [
"harriet.p.ellis@gmail.com"
] | harriet.p.ellis@gmail.com |
990f465d9b3d5cbc973d46bf7e267342d1e0da70 | 4b660991e5c9c93c83dccccdd3ea91531201e8a3 | /DSA/stack/stock_span.py | 68bfcc16d33dc9d68ee0b7ef5dc9ea8b56b4958d | [
"MIT"
] | permissive | RohanMiraje/DSAwithPython | 2a1515fa5f9e5cc76b08a3e6f0ce34e451fb6f4b | ea4884afcac9d6cc2817a93e918c829dd10cef5d | refs/heads/master | 2022-09-24T08:57:04.695470 | 2021-10-21T01:06:06 | 2021-10-21T01:06:06 | 238,381,770 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | def naive_stock_span(array):
i = 0
j = 0
n = len(array)
while i < n:
j = i - 1
span = 1
while j >= 0:
if array[j] <= array[i]:
span += 1
else:
break
j -= 1
print(span, end=" ")
i += 1
def stock_... | [
"rohanmiraje19@gmail.com"
] | rohanmiraje19@gmail.com |
11d46a008f45fa1dc37f75dcd0ef7713244499e9 | 5aad5ca0071ca8fbf7572b3f439168c6c6dbe118 | /proto_longlong.py | 17b26c1fb78a6e71f7bc1966b1722ec231c3f374 | [] | no_license | kleskjr/assembly_sequences | 72d024d1a59a7fd670db1d8d9735ad50fd6266c8 | 216a78eee7abffc460e8bda989d6f4a59e60c8e5 | refs/heads/master | 2021-01-20T12:55:19.400324 | 2017-05-05T23:59:11 | 2017-05-05T23:59:11 | 90,425,279 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 67,464 | py | #import matplotlib
#matplotlib.use('Agg')
import numpy as np
import brian as bb
from brian import ms, second, Hz, mV, pA, nS, pF
#from np.random import rand,binomial
from time import time, asctime
import warnings
import nekvo
import sys
### some custom modules
import plotter
import calc_spikes
### some brian optimiz... | [
"kleskjr@gmail.com"
] | kleskjr@gmail.com |
408baf62fd58bba6a2a32daabee9d13f1bdf89d9 | 5905b96fcbd1283fa3bfe601c4ca46cc04a49c86 | /flask_blog/views/views.py | 15bb2959e4ae9fc24e237f180a2568e4984606df | [] | no_license | UsamiYuta/MyFirstFlask | 24663cd0d8fa862aeb83369d7cfe10b83f261215 | 793d58b4d588e8678e51c3463eb924cd59bc8fa9 | refs/heads/master | 2023-03-25T10:22:35.180610 | 2020-07-11T20:34:39 | 2020-07-11T20:34:39 | 277,211,326 | 0 | 0 | null | 2021-03-20T04:47:26 | 2020-07-05T01:28:19 | Python | UTF-8 | Python | false | false | 1,185 | py | #flask_blog/views/views.py
from flask import request, redirect, url_for, render_template, flash, session
from flask_blog import app
from functools import wraps
from flask import Blueprint
view = Blueprint('view', __name__)
def login_required(view):
@wraps(view)
def inner(*args, **kwargs):
if not session.get(... | [
"Shoegazer.mac@gmail.com"
] | Shoegazer.mac@gmail.com |
a694498244b2f987b91044fe9e8527f37185aeaa | 56d2b775030257efc45ef3fe8d985c03a4d66819 | /Cryptography I/ps1/crypt-ps1.py | 8c74d6ba80fc5cc465252101ca837014c5039da3 | [] | no_license | JackLJohnson/Coursera | ce32df54d2ee4bc4ed12cdc999380aed7ed252a1 | 5a252e16ce16ad9596275f5defbb315ad475581d | refs/heads/master | 2020-05-29T11:24:30.626564 | 2013-02-14T13:28:04 | 2013-02-14T13:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py |
# Coursera - Cryptography I Assignment 1
# Takes 11 encrypted messages using the same key as input
# Outputs the plain message (decrypted) of the last messageas its result
def crypt_PS1():
# Function which decrypts the ith byte of the last message and returns the character
def decrypt(ithChar):
# Array to... | [
"chen.jyr@gmail.com"
] | chen.jyr@gmail.com |
be93b92dd6e2d9a58bcb9f8188d0f98692c84a1b | 59a80194dda97551e484c0d8495a078af240053d | /Intersection of Two Arrays II.py | d1ac3a2b1a6df29130919c6a67a6acdf0b5b4be0 | [] | no_license | huiyi999/leetcode_python | 8c3af97410925109838c6fc7f5fecccd07ffa178 | 3fe8c2298a52a15fadec0693e00445d875c4b6ea | refs/heads/main | 2023-06-18T21:36:22.873645 | 2021-07-14T20:27:50 | 2021-07-14T20:27:50 | 386,067,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | from collections import Counter
from typing import List
class Solution:
def intersect(self, nums1: List[int], nums2: List[int]) -> List[int]:
nums1.sort()
# print(nums1)
nums2.sort()
point1, point2 = 0, 0
res = []
while point1 < len(nums1) and point2 < len(nums2):... | [
"chenhuiyi940830@gmail.com"
] | chenhuiyi940830@gmail.com |
d97740207b681235aadc14a7e95abf2ffa3591c8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03723/s535719247.py | 6c7b08f059627e21dffe82343469805c282a0c89 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | import sys
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
de... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
600a649688e691955f9144a174da283aa3094f1e | 0c9dabd0c701e3115c8d5fa260dd1e997b98e67d | /practice_for_byte/project/backup_ver2.0.py | 3200b8abc602c09b89c043380596028dc4d86273 | [] | no_license | chenstarsQ/My-Python-Study-Note | f6b1f18bab8682146532f43c7abeb0db2055ad18 | cb27d815bf8dc5b651ca6237b9d15de05056eea6 | refs/heads/master | 2020-03-22T15:47:58.409540 | 2019-01-18T01:40:22 | 2019-01-18T01:40:22 | 140,279,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | import os
import time
# 1. 需要备份的文件与目录将被
# 指定在一个列表中。
# 例如在 Windows 下:
source = ['D:\\pythontest\\backup" "test\\*']
# windows cmd 无法识别空格
# 在这里要注意到我们必须在字符串中使用双引号
# 用以括起其中包含空格的名称。
# 2. 备份文件必须存储在一个
# 主备份目录中
# 例如在 Windows 下:
target_dir = r'D:\pythontest\backup'
# 3. 备份文件将打包压缩成 zip 文件。
# 4. 将当前日期作为主备份目录下的子目录名称 \\... | [
"1140330611@qq.com"
] | 1140330611@qq.com |
6e1da8652bee2bb74fde05769ed4be4bc302ebaf | 3db9e0af75640bbe4fe12c5a26dcb65d8065102b | /libs/neuroneap/cell.py | 52c820451cb2c76a49c63da3483765bbace615dc | [] | no_license | maikia/kink_paper | 8e8b8f16167c60a74a0094492c6404a92801d35b | fffe754dfa0e32a8c86afce7267afdff8534134f | refs/heads/master | 2021-01-13T04:56:17.339238 | 2017-02-08T09:50:39 | 2017-02-08T09:50:39 | 81,143,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,077 | py | #!/usr/bin/env python
#coding=utf-8
import neuron
import numpy as np
h = neuron.h
def integrate(tstop, i_axial=False, neuron_cells = None):
"""Run Neuron simulation and return time and 2d array of
transmembrane currents (n_pts x n_segs). If i_axial is true
return in addition axial currents.
For part... | [
"maja_ka@hotmail.com"
] | maja_ka@hotmail.com |
ec40995ecdd28d2d7cdcdcb8a3a996140b25c97b | 9164601fac2aff95bb702daef82c44321b621891 | /snake.py | 15397348ae8861857b95d7ffb9062a73057fb2b2 | [
"MIT"
] | permissive | sari21-meet/meet2019y1lab7 | 96e66f54a88f52e0d85f9196408e5e95fbee3fd9 | e8d40521fb85a2c8eae828ec14da954ffe75cec0 | refs/heads/master | 2020-06-21T01:15:15.243675 | 2019-07-31T09:30:23 | 2019-07-31T09:30:23 | 197,307,653 | 0 | 0 | MIT | 2019-07-17T03:23:40 | 2019-07-17T03:23:39 | null | UTF-8 | Python | false | false | 2,785 | py | import turtle
import random #We'll need this later in the lab
turtle.tracer(1,0) #This helps the turtle move more smoothly
SIZE_X=800
SIZE_Y=500
turtle.setup(SIZE_X, SIZE_Y) #Curious? It's the turtle window
#size.
turtle.penup()
SQUARE_SIZE = 20
START_LENGTH = 6
TIME_STEP = 100
#I... | [
"sari21@meet.mit.edu"
] | sari21@meet.mit.edu |
9f89f81d07d666adf16af5e8fd133b4b5c8fcfab | 2132772ed2853ba888e08a9cff5d9d9892399fea | /L8.py | 805908f035ceee3e2f5a7bffb019be07dbd63f8d | [] | no_license | Oxotka/PythonChallenge | 60c64b1ccf5b3793fcb15b6e170140fa77f9398b | 1ec1607364536da9d2882f2e2bfed1fb1604f159 | refs/heads/master | 2020-12-30T16:59:02.340707 | 2017-07-28T19:41:19 | 2017-07-28T19:41:19 | 91,045,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # http://www.pythonchallenge.com/pc/def/integrity.html
#
# un: 'BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084'
# pw: 'BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00\x03$ \x00!\x9ah3M\x13<]\xc9\x14\xe1BBP\x91\xf08'
import bz2
un = 'BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x... | [
"NikitaAripov@MacBook-Pro-Nikita.local"
] | NikitaAripov@MacBook-Pro-Nikita.local |
a40c65b34602f58cbe008b1ecf9249e2c1434ae4 | 5aa25c61c48d6beb1f82286723c0abf2343fd175 | /023/modular.py | bf0ebde5efc5c26ae8c31c7fa138144cf0f5323c | [] | no_license | zyc-glesi/python_learn1 | 049e2d352c6ea52aa6cf2f03f686b0f8b4318b3c | a5ce152d99930b4177548f0859e05cd9d114b88f | refs/heads/master | 2020-04-13T04:24:27.501515 | 2018-12-24T07:47:39 | 2018-12-24T07:47:39 | 162,960,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # coding:utf-8
# 模块 -- 调用方法一 import
import my_module
celsius = float(raw_input ("Enter a temperature in Celsius:"))
#fahrenheit = c_to f(celsius)
fahrenheit = my_module.c_to_f(celsius)
print "That's ",fahrenheit," degree Fahrenheit" | [
"1978059479@qq.com"
] | 1978059479@qq.com |
b851a5b8ccc2cd22a07815d7205f0ce4dcca053e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2607/60829/292430.py | 2e4958a0c203ae5543f917b8ac682343e24cd616 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | def a(x):
res=[]
for i in range(len(x)):
res.append(int(x[i]))
return res
def judge(x):
res=[]
for i in x:
if not i in res:
res.append(i)
if res==[0,1,2]:
return True
else:
return False
n=int(input())
for p in range(n):
count=[]
s=a(str(inp... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
ad82487eacdf683b2dff2039c0d655bed4d66016 | dbffbef3d280a355173ea3be3bb320bca1ac1091 | /ParserSber.py | b54e1d3d1d609189bfa361bda023282b4bb246d6 | [] | no_license | Vladislav-Aksentev/ParserBanks | cd07523144f543af3f512893dc2e5819a0ec2ed4 | a057802fe6625e8d75bdaf57e1594300691e9b7f | refs/heads/master | 2020-12-27T07:46:59.690092 | 2020-02-02T19:06:02 | 2020-02-02T19:06:02 | 237,819,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import requests
from bs4 import BeautifulSoup
import csv
def get_html(url):
r = requests.get(url)
return r.text
def write_csv(data):
with open('csvs/Sberbank.csv', 'a') as f:
writer = csv.writer(f)
writer.writerow((data['items'], data['requirements']))
def get_data(html):
soup = Be... | [
"ieniki@yandex.ru"
] | ieniki@yandex.ru |
5480491a1faab2e525745a17580f633148b44a1a | f86142ddebbee80bb7bf018228da5825755388e9 | /old/player.py | 350c017f63dcb9c680a79918d9a37994c14c5113 | [
"Apache-2.0"
] | permissive | K-Fet/FirstArcadeGame | db0cb2d02e1960e7b13da3efc8ec588b1f2ebd10 | 7ff319f37c84a985c13f19eb4cc1ed0e24d065b0 | refs/heads/master | 2021-08-10T21:54:36.596393 | 2018-10-28T09:09:56 | 2018-10-28T09:09:56 | 141,492,563 | 0 | 0 | Apache-2.0 | 2018-10-28T09:09:57 | 2018-07-18T21:33:52 | Python | UTF-8 | Python | false | false | 216 | py | import arcade
from MyGame import *
import math
from data import *
class player(arcade.Sprite):
def __init__(self):
super().__init__("Image/kfet.png",SPRITE_SCALING_PLAYER)
self.center_x=50
self.center_y=50
| [
"mesjtarbes.direction@aplb.lan"
] | mesjtarbes.direction@aplb.lan |
4a30125a018a387720baa5484485dc68a3ac943e | 3c34110f40eccfaf7bc77c85e39fcf8d6b20f75d | /observations/__init__.py | 256f028630205ebde45547f7417448cf4c57579f | [
"Apache-2.0"
] | permissive | zhangxt/observations | 8776d9fcebdb459b0b10a2efc45545c6dfa6ee5f | abce0bfb4149f6494b6042a33493e85adce1a706 | refs/heads/master | 2021-01-01T18:35:15.404564 | 2017-07-25T01:06:38 | 2017-07-25T01:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from observations.boston_housing import boston_housing
from observations.celeba import celeba
from observations.cifar10 import cifar10
from observations.cifar100 import cifar100
from observations.enwik8 import ... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
9c5a3b6964145da1b7d2482285a5d325b214cd0a | ddac7346ca9f1c1d61dfd7b3c70dc6cd076a9b49 | /dftfit/db/query.py | 111ed1bd948964e63ffb558b31de439c6953d8ca | [
"MIT"
] | permissive | gvenus/dftfit | f8cf5e9bef5a173ff0aa7202bacbfee0df61bd14 | a00354f8f0d611bf57c6925f920c749d8628cf98 | refs/heads/master | 2023-03-17T18:58:52.287217 | 2019-10-20T04:07:44 | 2019-10-20T04:07:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,229 | py | import pandas as pd
import numpy as np
from ..potential import Potential
def potential_from_evaluation(dbm, evaluation_id):
"""Construct potential from single evaluation id
Parameters
----------
dbm: dftfit.db.table.DatabaseManager
dftfit database access class
evaluation_id: int
in... | [
"chris.ostrouchov@gmail.com"
] | chris.ostrouchov@gmail.com |
a26a9d7148fa2971bac599ec0b5ad65d747475c3 | c3b90f783156ea91768e950e477b48ae08e3807c | /library/modules/learning/language_tools/spellchecker/4english/_tr_spell.py | cc213a340ef9593d783fdd29ecb0bddac4068fc2 | [] | no_license | burakyldrm/calisma | b11688f30a46c0f1ad01f4b5348a92fbfd39904d | 30ef63c753e6c2dbba6715941f8eaf049dbd6f3f | refs/heads/master | 2021-05-03T14:37:32.645469 | 2018-02-15T21:18:01 | 2018-02-15T21:18:01 | 120,460,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,143 | py | """Spelling Corrector in Python 3; see http://norvig.com/spell-correct.html
Copyright (c) 2007-2016 Peter Norvig
MIT license: www.opensource.org/licenses/mit-license.php
"""
'''
edited for tr. 1) tranined with tr dataset; 2) letters in edit1() are tr characters; 3) uppercase/mixed case handling added.
dicle
'''
######... | [
"burak.yldrm@hotmail.com.tr"
] | burak.yldrm@hotmail.com.tr |
3f0f9e6f118825a4388d3351f8201d4e06e293b1 | 1d321b9d9d8b094f4be2b3ddfb0c9dccef571100 | /special_char.py | acf70aef01c28a8c9c7d33be80ddb941e8e07066 | [] | no_license | lkogant1/Python | fe78cc10c1c4b5ffa6ff8e2ddd12b052a5ddc137 | dba157eba3a5b0f8e9a97c59a61b6a925b232b69 | refs/heads/master | 2020-03-14T15:01:35.327628 | 2018-05-15T15:24:39 | 2018-05-15T15:24:39 | 131,666,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #special characters
print("welcome to xyz")
#backslash \
print("welcome \\ to \\ xyz")
#single quote \'
print("welcome \' to \' xyz")
#double quote \"
print("welcome \" to \" xyz")
#bell \a
print("welcome \a to \a xyz")
#backspace \b
print("wel\bcome to x\byz")
#newline \n
print("welcome \n to \n XYZ")
#carriage retur... | [
"koganl001@gmail.com"
] | koganl001@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.