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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ba31f6ee551ccdab61849ead5d95db11cb35504 | 7ea5c45401947eaa56c7abb571fc5968aa74abd1 | /python入门/day_9_函数/9-2-向函数传递信息.py | c81f629fd921a2bcc50119839a93ef863318ba1a | [] | no_license | jihongsheng/python3 | a901d47c7a46054360f5efe8087ad0f958981945 | 12e2d5bf29bc8c1d16f05e6afcbc6f70530d0d6d | refs/heads/master | 2020-05-16T22:18:50.210424 | 2019-05-14T00:53:39 | 2019-05-14T00:53:39 | 183,331,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | # -*- coding: UTF-8 -*-
# 只需稍作修改,就可以让函数greet_user() 不仅向用户显示Hello! ,还将用户的名字用作抬头。
# 为此,可在函数定义def greet_user() 的括号内添加username 。通过在这里添加username ,就
# 可让函数接受你给username 指定的任何值。现在,这个函数要求你调用它时给username 指定一
# 个值。调用greet_user() 时,可将一个名字传递给它,如下所示:
def greet_user(username):
print("Hello,%s!" % username)
# 代码greet_user(usern... | [
"6909283@qq.com"
] | 6909283@qq.com |
2b0ce6210932107f0a5bcb5e5e2b9fcb8b44dfb1 | 62bdde43ce88507530610a2b77d2ce0859eebc8b | /BOJ/mathematics/01676-팩토리얼_0의_개수/01676-팩토리얼_0의_개수-jiwoong.py | 3a451210c54a1ccdfad790cfe2f53a10c021a7f6 | [] | no_license | j2woong1/algo-itzy | 6810f688654105cf4aefda3b0876f714ca8cbd08 | 7cf6cd8383dd8e9ca63f605609aab003790e1565 | refs/heads/master | 2023-08-21T12:51:54.874102 | 2021-10-03T04:35:21 | 2021-10-03T04:35:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | import sys
input = sys.stdin.readline
N = int(input()) # N!
def fact(N):
if N == 1:
return 1
else: # factorial 구현
num = N * fact(N - 1)
return num
if N == 0:
print(0)
else:
num = str(fact(N)) # 문자열 처리로 0의 개수 count
cnt = 0
for i in range(len(num) - 1, -1, -1): # 뒤... | [
"j2woong1@gmail.com"
] | j2woong1@gmail.com |
4d36a1fe52245f8e1c029f1e0d036ca2a1b932c1 | b3a2ac9eb02a6eef9e6f3504afabc6400f894f56 | /clld/lib/latex.py | 325cb2c7397bf818455945818ba172a534d29a06 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | Anaphory/clld | 9f67c477e228eff05fdc7b7fa4310c703af02108 | bed1a6d08275a41fd7b5d13a0af19e4e538d186c | refs/heads/master | 2021-01-17T04:50:05.382411 | 2017-02-16T11:20:11 | 2017-02-16T11:20:11 | 66,831,136 | 0 | 0 | null | 2016-08-29T09:43:06 | 2016-08-29T09:43:05 | null | UTF-8 | Python | false | false | 15,747 | py | """
Character translation utilities for LaTeX-formatted text.
Usage:
- unicode(string,'latex')
- ustring.decode('latex')
are both available just by letting "import latex" find this file.
- unicode(string,'latex+latin1')
- ustring.decode('latex+latin1')
where latin1 can be replaced by any other known encoding, also... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
458af30fcbf8a51195ccfe3366dbf2663797500d | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL16APV_mMed-2500_mDark-20_ctau-5_unflavored-down_cff.py | a1176e87cc87095c340aa9cf5cc79a9acb526034 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,991 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
7a2be79cbb91cadb4e2dae87334243513712b700 | b9ccff33b9003c666d940dcab81e812f3cd9fa36 | /test.py | 866d57684b553cf78e50dbc2a407cdbfd85fe52e | [] | no_license | willdoescode/nim-math-computations-python | 10850ef4c50fdc5245c365c1a40ff69dc6fa7667 | e40b4ab335a32e8ba84b60a4dc1fbb1c98dd1fea | refs/heads/main | 2023-03-06T05:42:33.698655 | 2021-02-22T05:55:42 | 2021-02-22T05:55:42 | 341,094,723 | 16 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import math_computations
print('--- Add')
print(math_computations.add(5, 5))
print('--- Fib iterator')
for i in math_computations.fib(10):
print(i)
print('--- Fib func')
print(math_computations.fibF(10))
print('--- Is Prime')
print(math_computations.is_prime(2))
print(math_computations.is_prime(4))
print(math_c... | [
"williamlane923@gmail.com"
] | williamlane923@gmail.com |
c8eaaeff0e10a34dc8797ff71d4ae9cab3cf709f | b7400cf7509d8cc2383fe379b3cdf39155350510 | /AI/ML_practice/DiigitRecognition/DIgitRec.py | 7a25639c3add71e67451b34a03df6a7a99eaa2cc | [] | no_license | Rajesh-Khanna/Currently-Learning | 869f2637f70a14d8691b5675aa201e1d355bf578 | bddfa0257c5ce1b5c981adefe4fd4e5baffba89f | refs/heads/master | 2021-05-05T17:09:05.182197 | 2018-06-15T14:41:57 | 2018-06-15T14:41:57 | 117,344,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | from flask import Flask,render_template,request
from scipy.misc import imsave, imread, imresize
from keras.models import load_model
import numpy as np
import tensorflow as tf
import base64
import cv2
import codecs,re
app = Flask(__name__)
def convertImage(imgData1):
imgstr = re.search(b'base64,(.*)',imgData1).group(1... | [
"chrajeshkhanna82798@gmail.com"
] | chrajeshkhanna82798@gmail.com |
8d920587db820c1cc9ea9d02fb0bc8dfdba4d76b | 85fbaedbca8013b2af6ca1a7610865cd154d957f | /procurement/models.py | 65e390bae97c629f9c7102a2f05940a9e24589eb | [] | no_license | AshikurRahman-sec/Code_Breakers_NSU | 63be3789f7c161a66e758ecad33948de4ff73702 | f129963ca8da7fcb11f0ee04903fabaf25db7719 | refs/heads/master | 2022-12-22T11:28:38.215571 | 2020-09-24T01:49:30 | 2020-09-24T01:49:30 | 297,012,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | from django.db import models
# Create your models here.
from django.db import models
from django_currentuser.db.models import CurrentUserField
# Create your models here.
class Sales_Manager(models.Model):
user = CurrentUserField()
order_code = models.CharField(max_length=11, blank=True, null=True)
product... | [
"ashik129603@gmail.com"
] | ashik129603@gmail.com |
1a27b7cb18413d5522bf3d1a3fb9298b4be330c4 | 6810a482759afd585db7bb0b85fd0416f0450e6d | /Open Kattis/sibice.py | f2d6c7c2fb3679fd80f435ba5541e145a8be4611 | [] | no_license | BenRStutzman/kattis | 01b000ac2353c8b8000c6bddec3698f66b0198ef | 005720f853e7f531a264227d0d9aaa19d4d7cf1b | refs/heads/master | 2020-07-15T23:52:45.785021 | 2019-11-09T03:28:06 | 2019-11-09T03:28:06 | 205,675,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | import sys
import math
[num, box_length, box_width] = [int(num) for num in sys.stdin.readline().split()]
diag = box_length**2 + box_width**2
for i in range(num):
match_length = int(sys.stdin.readline())
if match_length**2 <= diag:
print("DA")
else:
print("NE")
| [
"tysorx89@gmail.com"
] | tysorx89@gmail.com |
9d1544e03e6517060106ba3d8555c94351c4e3c9 | b5fb45288ed2a204692051ab78e72d8aa6e5accd | /argo_data_scripts/util/count_concurrent.py | d13a0c91034e0cdcecb1c9531b3779cf08de3da0 | [
"Apache-2.0"
] | permissive | nithinksath96/MMdetection_TensorRT_FP16 | d4987f003798f5d6d4fe5bde2f30dd5ee2e8596d | c8379b209d4deeff9350baf5bbedfc95fb8941f4 | refs/heads/master | 2023-02-13T20:00:21.834541 | 2021-01-06T09:24:20 | 2021-01-06T09:24:20 | 327,260,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | # given rt_ series input, count the max number of concurrent jobs
# current implementation only applies to inf results, where processing starts immediately
import argparse, json, pickle
from os.path import join, isfile
from tqdm import tqdm
import numpy as np
from pycocotools.coco import COCO
import sys;... | [
"nsathish@compute-0-32.local"
] | nsathish@compute-0-32.local |
9efc6155568b3d9233b7ce966d249f50faa2e6f5 | d0fe73d675e7a7a4b1c5ccfbe3fce46f62af4b27 | /plugin/__init__.py | 2f5b4348bd8f74b3b4921f1f9c23e71d2c5a9ba4 | [] | no_license | nguyenvulebinh/OCR-Seq2Seq-Language-Model | 872f99fc2c161e78669c27976e66f9a0fd5195aa | 92198cfce04578e794ccc34ae0aacb33f0033bac | refs/heads/master | 2022-06-28T22:51:54.819120 | 2020-05-12T04:01:58 | 2020-05-12T04:01:58 | 188,793,839 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import plugin.criterions
import plugin.models
import plugin.modules
import plugin.tasks
import plugin.data
| [
"nguyenvulebinh@gmail.com"
] | nguyenvulebinh@gmail.com |
60e9e905c443d1eefe82333a9c6785ebea1e4fd7 | 30a8319e110be273752024ba053fbec9c04556ef | /posts/migrations/0001_initial.py | 267ac7e0a8fd4a33c04c3ec1e515020b4f80cd07 | [] | no_license | Sighovie/django-blog | 534a35c31fdc74cfbb177f60d1a8c5e6d3d95308 | 62c6de8ae3d409d45c6ece1a7e90a3913c569760 | refs/heads/master | 2020-03-22T04:16:29.185117 | 2018-07-04T12:21:28 | 2018-07-04T12:21:28 | 139,486,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-16 00:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateMo... | [
"ighovie@yahoo.com"
] | ighovie@yahoo.com |
f2c1c16ed0e8f4f8e07a11d1f183c67fd64566e0 | 79817c4585739a2dcec53ed92937f050a58e526f | /scripts/workflow_batch_nuclear.py | b9877571f845b9139d2663fb52958e9ce3e81423 | [
"MIT"
] | permissive | nickborodinov/simsdata | acf47ed508d63065052cea7a999c6cde07a97f49 | 618f9952b8978624c85f4e3a4c080c4ce9f10a1c | refs/heads/master | 2020-07-24T23:26:14.295536 | 2019-09-12T15:28:34 | 2019-09-12T15:28:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 16 15:26:08 2016
@author: iv1
"""
import datetime
#%%This code won’t work from Python console
#!!! Clean import procedure with __init__.py file etc.
from SIMSmodel import SIMSmodel
from SIMSdata import SIMSdata
verbose = True
#%%
#print('start time = %s'... | [
"ni1@ornl.gov"
] | ni1@ornl.gov |
a5c96eee31895f0ff5c1ced0b9c2665be4c5955b | 74c40d538ed19e5ab5a3859c000dd89c5d13719e | /python/problem12.py | 478b984d9aa3570d47505a163832014f616e8c4a | [] | no_license | ataylor89/projecteuler | 1fb8489d7526a00fb29cd1536e13ba0d2db65716 | 6dd84c25bec2454def48c3de41a55452e9b692e8 | refs/heads/master | 2021-01-19T06:59:00.002284 | 2020-01-14T02:29:07 | 2020-01-14T02:29:07 | 31,574,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | #!/usr/bin/python
import math
def num_divisors(n):
num = 0
m = int(math.sqrt(n))
for x in range(1, m):
if n % x == 0:
num += 2
return num
t = 0
incr = 1
found = False
while not found:
t += incr
incr += 1
if num_divisors(t) > 500:
found = True
print t
| [
"rolyata47@gmail.com"
] | rolyata47@gmail.com |
cb808db14099e13ce15d190e7cae0d30f64b264c | cfd7d6fca2d547d0bee617ed22ffcb31a655cc43 | /machine-learning/AdaBoost.py | 5b6fd7cb95cb6b75d79cf5dcc3b485e346f40bac | [] | no_license | AnonymousMB/Machine-Learning-in-action | cada512dbecf87c2bd74eb4d3a6a085579e9fc32 | d1e0b1dc8be5e959d62e563bf54e3851aa5ae7d9 | refs/heads/master | 2020-03-19T15:56:37.695438 | 2017-08-14T03:29:09 | 2017-08-14T03:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,073 | py | # coding=utf-8
from numpy import *
from matplotlib import pyplot as plt
import math
class Data():
total = None # 样本总数
featureNum = None # 特征数量
def __init__(self, weight, num, feature, label):
self.weight = weight # 权值
self.num = num # 序号
self.feature = feature # 输入特征
... | [
"1304137697@qq.com"
] | 1304137697@qq.com |
a27806e252e67dc407b440d4781e0d23bf86fc34 | f3827ae39e077daf5507959a13d1ac4a782fe084 | /src/accounts/urls.py | c29e329060e8daed823e775738b48945589f62da | [] | no_license | achiengcindy/ExtendingDjangoAuth | c6bc2c5360d90378d7d96efb3132506ad10349d9 | 19214ef7ef9ccdcc66e4ec15fa9e22e5fd5e24f3 | refs/heads/master | 2020-03-26T20:09:34.687774 | 2018-08-28T19:32:46 | 2018-08-28T19:32:46 | 145,308,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | from django.urls import path
from .views import register, home, edit, activate, account_activation_sent
urlpatterns = [
path('', home, name='home'),
path('register/', register, name='register'),
path('edit/', edit, name='edit'),
path('activate/<slug:uidb64>/<slug:token>)/', activate, name='activate'),
... | [
"achiengcindy36@gmail.com"
] | achiengcindy36@gmail.com |
702fb4c5e14061b0357f79b59aab9e34ee74c5ae | e708ae6207ca775fe6f5106ea971c994b29ffac0 | /examples/shrec17/dataset.py | a5c07eee3fcfc1e87c9f3610656ea664095326d1 | [
"MIT"
] | permissive | arewellborn/s2cnn | 6f4304cd22456bfaefe7623e53ac7b8afda22471 | fd734b845f1d313ce13a6f1161c8fa383b28a9e5 | refs/heads/master | 2021-05-23T14:24:31.276613 | 2021-01-20T04:37:53 | 2021-01-20T04:37:53 | 253,338,038 | 0 | 0 | MIT | 2020-04-05T21:43:51 | 2020-04-05T21:43:51 | null | UTF-8 | Python | false | false | 11,432 | py | # pylint: disable=E1101,R,C
import csv
import glob
import os
import re
import numpy as np
import torch
import torch.utils.data
import trimesh
import logging
logging.getLogger('pyembree').disabled = True
def rotmat(a, b, c, hom_coord=False): # apply to mesh using mesh.apply_transform(rotmat(a,b,c, True))
"""
... | [
"geiger.mario@gmail.com"
] | geiger.mario@gmail.com |
d8832437a0ce7966d9012653aa4dfd7f4afcf599 | 647d4205fdf7e576f51b7b78e1a7a1eb757bfe0a | /config-template.py | 368fc1b3820ddaa269eecda6facba2dc27dbdb1c | [
"MIT"
] | permissive | starspritechippy/dino-crawler | 7bcde25ec90ab6430ace167ab87bdec80054872f | b8b6fdcacaaacd71b8e114b5ae352418f5f12f5d | refs/heads/main | 2023-07-18T08:24:38.546225 | 2021-08-23T18:45:01 | 2021-08-23T18:45:01 | 399,184,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | webhook_url = "https://discord.com/api/webhooks/<webhook ID>/<webhook token>"
last_comic = "https://dinosandcomics.com/wp-content/uploads/2021/07/664-768x768.png"
| [
"maxhey4@gmail.com"
] | maxhey4@gmail.com |
a64677e2553fb31f8afef9181eea2a53a382be70 | 50be66fb32a6a0a7ac2575ff801bfa3dbe229f7f | /res/frmMainConfiguration.py | 9918dc5f1442a2bf013700ad5343085b585d4d6b | [] | no_license | Neurobotics/PyCorder | dab6005e191709248017f85d07d5cb6618b5c744 | cac419156ce556a224c5bfed65b61247340c1cc1 | refs/heads/main | 2023-06-09T23:34:09.850604 | 2023-06-06T11:44:46 | 2023-06-06T11:44:46 | 650,094,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'frmMainConfiguration.ui'
#
# Created: Wed Jun 05 12:00:50 2013
# by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_frmConfiguration(object):
def set... | [
"a.belokopytov@neurobotics.ru"
] | a.belokopytov@neurobotics.ru |
893e8fe174a50abd522cf3c9b3ee2d02621afd1a | bc611aa0e9e41d764135c54a99f8dc2ef4889a6b | /17.knights/cavalry.py | 817be18274a43c9a1e6f1bfeec124ca811237c33 | [] | no_license | Albert13-Cao/AMT | 0f691ac28d2c1f2704776de029664644300ac23a | 4b5265b0dcd5947885bb57928c90405204be009f | refs/heads/main | 2023-06-25T22:28:10.185340 | 2021-07-23T12:04:31 | 2021-07-23T12:04:31 | 384,116,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | #1. read all lines into a dict. dict key = number, value = repetitionive times
with open("cavalryin.txt") as cavalryin:
current_line = 0
troops = 0
cavalry_dict = {}
for line in cavalryin:
current_line += 1
if current_line == 1:
troops = int(line)
else:
t... | [
"84270297+Albert13-Cao@users.noreply.github.com"
] | 84270297+Albert13-Cao@users.noreply.github.com |
8a8977321a0f440069acd184f18d33fa63785950 | 8385ac9da3f7802877957ac03724558fb51cef91 | /map-marketingcloud-worker/venv/lib/python3.8/site-packages/kasasa_common/aws/s3/__init__.py | e2654b34999491263f674cabb53db3db173b92d3 | [] | no_license | databar-team/nbc | eb0487db6a9b9adcd16e79db11f3cfea0624bc60 | 7076953c0014a540e379ca4d239ca4d87d9d709e | refs/heads/master | 2023-03-26T16:48:18.527998 | 2020-06-09T16:51:17 | 2020-06-09T16:51:17 | 261,843,904 | 0 | 1 | null | 2021-03-25T23:49:54 | 2020-05-06T18:20:03 | Python | UTF-8 | Python | false | false | 117 | py | from .s3_helpers import get_s3, get_bucket_and_key, get_secrets
__all__ = [get_s3, get_bucket_and_key, get_secrets]
| [
"Vladimir.Zivkovic@nbcuni.com"
] | Vladimir.Zivkovic@nbcuni.com |
688b268d42bcb22b3788bb577d61ca6e4f601485 | f7a9c306b07ad116f3a5d9826725702156e5e9a9 | /libinit.py | 6ee14571f8420f6f3ee256b374441fcbd92c6924 | [] | no_license | Leocodefocus/pylib | 43c76fa2ca0747ccfa65a87d9688c9d5484a10d1 | 71ea60faf3bbcd8bc2cc1333e30cb7f0b9834c30 | refs/heads/master | 2021-01-15T12:02:16.646120 | 2017-11-21T09:42:24 | 2017-11-21T09:42:24 | 99,640,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | #!/usr/bin/python
#!-*-coding:utf-8-*-
def init_cve():
item={}
item['vul_id']=''
item['type']=''
class logs:
def __init__(self):
self.logs = {}
self.init_log()
self.sql_ = "insert into actionlogs(ymdtime,vulname,action,starttime,endtime,ps,exception,excpinfo) values('{}','{}','{}... | [
"noreply@github.com"
] | Leocodefocus.noreply@github.com |
90528c4992035d806fe712ac226293dbf241b7b2 | 0ad9bff18e87f4b65cf78c3ca1c3de3d283c12f9 | /pygame_basic/2_background.py | 2fd0219ea29b36429449ad865fee13e1aef3aa05 | [] | no_license | ggpp0909/practice | 3fe80a8c1b276718c98c6d832ff694bbb8bca2d2 | 3208a44ef6e66a4e78c221e87d1a539e36cf99d6 | refs/heads/main | 2023-06-02T17:35:43.859266 | 2021-06-18T16:18:30 | 2021-06-18T16:18:30 | 367,926,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | import pygame
pygame.init() #초기화 (반드시필요)
#화면 크기 설정
screen_width = 480 #가로크기
screen_height = 640 #가로크기
screen = pygame.display.set_mode((screen_width,screen_height))
#화면 타이틀 설정
pygame.display.set_caption("JYN") #게임이름
#배경 이미지 불러오기
background = pygame.image.load("C:/Users/Administrator/Desktop/python workspace/pygame_... | [
"noreply@github.com"
] | ggpp0909.noreply@github.com |
93f62cf5f45ff291e916702ee1bf494550bd12fe | bcfbec72fc84b618adcab3aa15e4cff281668286 | /crypto_track/settings.py | afe88c3075ccd194b6fd4197d8d064498b8eb054 | [] | no_license | anshuUnity/crypto-price-tracking-app | 93c93f9b52d88598a234e1946b5e1173b8fc4c82 | c34af627b792ae6b645b11c643074151777ac4f5 | refs/heads/main | 2023-08-29T03:20:33.879980 | 2021-10-18T13:55:13 | 2021-10-18T13:55:13 | 376,506,134 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,794 | py | """
Django settings for crypto_track project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pa... | [
"50448283+Ankit2099@users.noreply.github.com"
] | 50448283+Ankit2099@users.noreply.github.com |
dccd970756dc1a92c51f3b0d83dbe879beba3315 | 0f708fc31d7fa92cbbf02696cf911e9f7a409aef | /build/lib/TEF/auto_set_dtypes.py | 4dd124f8e3f74f0e4e610040a227b824a0761e8d | [
"MIT"
] | permissive | tll549/TEF | 6af08d72ec0eaa3443986aab1d724d6d60b9799f | 8dc50b0d0966b782b04fcd9fc846c0756820782f | refs/heads/master | 2020-06-30T06:34:24.257028 | 2019-09-17T04:16:56 | 2019-09-17T04:16:56 | 200,756,742 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,342 | py | import numpy as np
import pandas as pd
import re
import io
def convert_column_list(columns, idx_or_labels, to_idx_only=False, to_label_only=False):
# assert sum([idx is not None, labels is not None]) == 1, 'should only provide either idx or labels'
# if idx is not None:
# return [columns[i] for i in id... | [
"tll549@yahoo.com.tw"
] | tll549@yahoo.com.tw |
49db68fb8220b97f65446eeba1685fd45bd3468d | 78f5c537cb4d95771956f434a54d2cddb6078ff1 | /trial.py | 31e11ffec6b3ae933ed348d18289746742aedb46 | [] | no_license | sushmitapatil77/MachineLearing | 2dc569e4562a4196a868db0ce23f4fecea0285c8 | 407808322e4bec8327a959e582e6288f4484e15e | refs/heads/master | 2021-08-07T15:37:46.288680 | 2020-10-10T22:19:30 | 2020-10-10T22:19:30 | 226,447,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import cv2
import numpy as np
#import joblib
#import glob
#from tensorflow.keras.models import load_model
def test_model(x_test,facenet,clf,classifier_name):
#def test_model(x_test):
#facenet = load_model('models/facenet_keras.h5')
#clf = joblib.load('models/FaceNet-SVM-model.joblib')
x_test = cv2.resize(... | [
"sushmitapatil@mymail.mines.edu"
] | sushmitapatil@mymail.mines.edu |
e426afbf4816f4bfae3dada43aff40672af1d85d | 21b733c24abe27a806632eb1db213d7898887e89 | /pvCrawler/esConnector.py | b98412295de3142464f170d8fbb962c2f193367a | [] | no_license | Insomnia1437/PV_crawler | 9ce26adffe7440fe61f2650b77df676153eee8b9 | 5b0102f965ea8c83e1e769e367e1468a9a4c473c | refs/heads/master | 2020-11-25T09:22:01.392563 | 2020-05-27T14:21:58 | 2020-05-27T14:21:58 | 228,593,705 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | # -*- coding: utf-8 -*-
# @Time : 2020-05-15
# @File : esConnector
# @Software: PyCharm
# @Author : Di Wang(KEK Linac)
# @Email : sdcswd@gmail.com
from elasticsearch import Elasticsearch
def _generate_bulk_body(index, doc: list):
es_body = []
index_api = {"index": {"_index": index}}
for item in ... | [
"sdcswd@gmail.com"
] | sdcswd@gmail.com |
3c71a6ee23e30a3ca1c6838f6b7c3492e7a01f7e | 1892324f7bcb2273543a5b08d5dbf8a101d67803 | /examples/tiling_7.py | 30a37689e4124d0de32656c8af0fca09d4e2b82f | [
"MIT"
] | permissive | byewokko/penrose | b5b5266585969d5528e2f04b0a985c150f492e2b | f339a6f0a2c9b0486f0b46a517bb9b8907c4be07 | refs/heads/master | 2023-02-21T11:51:29.732515 | 2020-12-24T23:33:11 | 2020-12-24T23:33:11 | 302,706,319 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | import multigrid
from ntiling import TilingBuilder
from drawing.pil_draw_simple import Draw
palette = [
"#ffee7d",
"#b767ff",
"#44fadd",
"#fe91ca",
"#ffe0f7",
]
# palette = [
# "#7fb414",
# "#df0e62",
# "#127681",
# "#fac70b",
# "#092a35",
# ]
draw = Draw(scale=90, width=4*1280,... | [
"byewokko@seznam.cz"
] | byewokko@seznam.cz |
153c199e641bb7e75c52b7a481fbad9d3693ffa3 | d5bea21ab2005d4a0c42edbc5df8ddf52b859547 | /src/sbahn_ticker.py | 4cbf6532c318c43597435cde560dd490ce72adea | [] | no_license | tmbo/alexa-vbb-skill | 3eb0a5a7cab1149fab6cdb880fba900685518a0f | 3d18c49bb1f62f2ae4d3c6b7a80a9df561ef5fb1 | refs/heads/master | 2021-03-27T16:02:30.717173 | 2018-04-19T14:17:02 | 2018-04-19T14:17:02 | 110,363,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,300 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
from src import utils
from src import vbb
from src import speech
# --------------- Functions that control the skill's behavior ------------------
def get_welcome_response():
""" If we wanted to initialize the session to have some attributes we could
... | [
"tom@rasa.ai"
] | tom@rasa.ai |
5f61972788ba3a81ffa79a70e9b1f057fcd4a44b | ad12aa57066c2dc9623ea49bd670548d144acddc | /Framework for ML/ML/CLS_Attendence.py | e6ff1084e765c6bbdc8d0386695f2c28f21afe67 | [] | no_license | youssefsamy2014/MyProgML | 343233496e925bbdbbadcb2ba351f2f2aa767fcf | 894dea63a6d1ab43593e541f1d8b1dc19717916f | refs/heads/master | 2023-08-25T10:13:39.499943 | 2021-10-18T15:42:26 | 2021-10-18T15:42:26 | 337,539,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,915 | py | from models import Entity_list_user,Entity_list_Attendance
from DB import db
from cv2 import cv2
import datetime
import time
class CLS_Attendance():
def __init__(self,name):
self.name=name
def Attendence(self):
recognizer = cv2.face.LBPHFaceRecognizer_create()
recognizer.read("Assets... | [
"49346290+youssefsamy2014@users.noreply.github.com"
] | 49346290+youssefsamy2014@users.noreply.github.com |
b13a9ba21ec33550166e6db7b778ded67b72f63b | cdaa13ca7971ba3fa4ef279d181407db1d104677 | /162. Find Peak Element.py | bb0efb1e510e3abd54671274ddc01d5bd3baad6d | [] | no_license | jingweiwu26/Practice_code | e319726c960aea4caf6da16eb47a4ba6ab944207 | 3bab0224256c206fc459e53384fd3abf4a711fe2 | refs/heads/master | 2022-01-31T15:13:10.059963 | 2022-01-27T18:46:37 | 2022-01-27T18:46:37 | 81,012,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 12 23:38:31 2018
@author: Wu Jingwei
"""
class Solution(object):
def findPeakElement(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
size=len(nums)
for i in range(1, size-1):
if nums[i]... | [
"noreply@github.com"
] | jingweiwu26.noreply@github.com |
89a8fbb62948846a95711b7126edd32b131ca3a9 | bc0a7540636d9366c658e2446445467f98001cd9 | /tests/test_loadmat.py | 4414fc44cbe27a567585cb3851699df9ad95da85 | [
"MIT"
] | permissive | Austin-Crabtree/matfiles | 03c3b9511a531bdf210b7c1b3d0c69f642f56c7c | d95e987d358513181ef2a9b83e5709845187f4ab | refs/heads/main | 2023-03-20T05:31:07.733618 | 2021-03-20T02:14:10 | 2021-03-20T02:14:10 | 349,523,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import unittest
import numpy as np
from matfiles import loadmat
class MyTestCase(unittest.TestCase):
def test_simpleload(self):
case = {
'a': np.array([[116], [101], [115], [116]]),
'b': np.array([[ 1.], [ 2.], [ 3.], [ 4.], [ 5.], [ 6.], [ 7.], [ 8.], [ 9.], [10.]]),
... | [
"crabbyinatree@protonmail.com"
] | crabbyinatree@protonmail.com |
15e1353fdb1e0ca9c9a0029db24fc43e80b32a97 | e4386f2f2e48eb22287ed9cec8d51445f695fe96 | /stack.py | 29aa7947e15dd6b817870527180c055001d57909 | [] | no_license | sreenath-kada/Python | e1b726c984accfab2cb5415b8d5e4ec22b0ad2c0 | f232db76809126b145ed34604a964dc0a0498eea | refs/heads/master | 2020-05-04T10:37:59.337755 | 2019-04-03T19:33:57 | 2019-04-03T19:33:57 | 179,091,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | class Stack:
def __init__(self):
self.stack = []
self.iterations = 0
def stack_push(self, data):
self.stack.append(data)
self.iterations += 1
def stack_pop(self):
self.iterations += 1
if self.stack is None:
print("Stack is empty")
... | [
"noreply@github.com"
] | sreenath-kada.noreply@github.com |
76ec0bfa00c7191eecde64d7a553a7998771bae9 | 4b1a3db3249a51bcd2b9699edcb60c2716b2889e | /discharge.py | e851bc189eee5ad877ce01278d2da3087be6cfb8 | [] | no_license | shohei/tank-simulation | 799e7c8db543f639984dbadb1b41b83fc818b831 | d74b8d09eb1d5e1fa1fa61327f4fff35754ac5eb | refs/heads/master | 2021-01-02T09:14:46.709964 | 2015-07-29T13:48:52 | 2015-07-29T13:48:52 | 39,488,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#*** TANK PRESSURE SIMULATION ***
#*** AUTHOR: SHOHEI AOKI ********
#*** PROGRAMMED: 22 JUL 2015 ****
from pylab import *
##### PARAMETER AREA ############
gamma = 1.4
de = 2 #[mm]
Ae = pi*(de*0.001/2)*(de*0.001/2)#[m2]
T0i = (24 + 273.15) # Room temperature
R = 289 # J/(k... | [
"shoaok@gmail.com"
] | shoaok@gmail.com |
3fb764293b9870d147abe9b85e9cd11943995550 | 9849e98406768caba0cb9c9ac9300688fd012179 | /doc_gen/apps.py | 380b518525739e9a7d8a348feca6275b06dc5f92 | [] | no_license | Trevahok/Extractinator-9000 | 3cb4e1c6d20d355cef156c8e7f2ca57137b38188 | 131122fb25a6513dc765495fbe0622ad67ca29cc | refs/heads/master | 2020-04-29T10:29:21.700611 | 2019-05-18T11:17:56 | 2019-05-18T11:17:56 | 176,063,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from django.apps import AppConfig
class DocGenConfig(AppConfig):
name = 'doc_gen'
| [
"vighneshss@gmail.com"
] | vighneshss@gmail.com |
05a92429c41bbe7dfce417ff86c07367317dc447 | 973c2a5fd8c37497e91487a1cbc34a489a0d0108 | /bin/home.py | b6cc7a8204c700706c6dd305f0fba2869e72ce26 | [] | no_license | BBATools/PWCode | 24d3b730cf06b2ee2aa5edb59ea806c2a62b1ea3 | 6d2696962d65a799359395ee5528766cec5e0d13 | refs/heads/master | 2021-02-15T04:34:38.025770 | 2020-08-18T11:45:33 | 2020-08-18T11:45:33 | 244,863,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,970 | py | # MIT License
# Original work Copyright (c) 2018 François Girault
# Modified work Copyright 2020 Morten Eek
# 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 wi... | [
"mortenee@gmail.com"
] | mortenee@gmail.com |
df28bf7bc78ed48e41e24ccb8453cd99dda0ca8b | f543bd15eb3e746b379c735e6a1e44b32ca52e26 | /pokeswsh-raidreset.py | eea6e1bd3d27c74381a9b46321aeb04cad89c3bf | [] | no_license | suhamaHZK/pokeswsh-autotool | 899e004ebfb44f0731c733a49bde1d51c0d23e42 | 8c029431b6f6fe1dc508b637bfa6822b6c994c6b | refs/heads/master | 2021-01-04T18:17:13.703578 | 2020-02-23T04:51:18 | 2020-02-23T04:51:18 | 240,705,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,031 | py | ################################################################
# レイドバトルが始まり次第ホスト機をリセットします。 #
# インターネットに接続して「みんなで 挑戦!」を選ぶ直前まで #
# 手動で進めてから、本スクリプトを起動してください。 #
# #
# Switch本体やソフトの遅延によりうまく動かない場合があります。 #
# その場合は、適宜sleepの秒数を伸ばしてください。 ... | [
"suama.hiseki+github@gmail.com"
] | suama.hiseki+github@gmail.com |
5b9b6079ef1dc9a06651c23622225e22548e2446 | a637aef1a43af42d220bbc24e1ffca7667c355c4 | /2A- REST-Single-Site-KV-Store/test_assignment2a.py | 30b0b573ac9984811710e9541d2ad1ebc1131367 | [] | no_license | ebasaldu/Distrubuted-Systems-128 | 03fce33d32e9f91a0a49c438201c987ab2650671 | f0de41952154819ecc115b2e5c82a4892cd99b0f | refs/heads/master | 2021-01-07T17:29:55.555216 | 2020-02-20T02:30:04 | 2020-02-20T02:30:04 | 241,769,010 | 0 | 0 | null | 2020-02-20T02:11:41 | 2020-02-20T01:48:33 | Python | UTF-8 | Python | false | false | 4,715 | py | ###################
# Course: CMPS128
# Date: Spring 2019
# Assignment: #2A
# Author: Reza NasiriGerdeh
# Email: rnasirig@ucsc.edu
###################
import unittest
import subprocess
import requests
import sys
import random
import time
hostname = 'localhost' # Windows and Mac users can change this to the docker v... | [
"noreply@github.com"
] | ebasaldu.noreply@github.com |
c96dffd7ff8bf676991e5042380792fef8003cfb | 44b968d41a0b18cc23be9f74fd1783208422d548 | /backend/env/bin/sqlformat | 0c9977ed4ca2512d976e9e9e0071f5b95d320168 | [] | no_license | cbovino/CrossfitCMS | 2c42b50122f7cbce639e4204851f86d9926730e2 | 5488faa5d079643f8e0b342a9c42e1b7a3c5e377 | refs/heads/master | 2023-01-08T14:34:03.105586 | 2020-02-27T19:27:42 | 2020-02-27T19:27:42 | 218,548,075 | 0 | 0 | null | 2023-01-05T08:30:21 | 2019-10-30T14:35:53 | Python | UTF-8 | Python | false | false | 254 | #!/Users/connorbovino/djreact/backend/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"connor.bovino@gmail.com"
] | connor.bovino@gmail.com | |
ae71635fa891932e6bb80ee24c7fe03119cda96c | 3d17d0da384c12b9232d4acd3174305e27dece6e | /analyse.py | c31b18cf0df2beac53ab9b39dac6a245121e8a0c | [] | no_license | takuto-mikada/openpose-golf | 7a794b20998e9c987635c30db9158019829a74ae | 362130fb2c99c2aa8ef374e4bee140cb87c59804 | refs/heads/main | 2023-02-11T04:23:18.141440 | 2020-12-16T13:23:03 | 2020-12-16T13:23:03 | 321,701,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | import json
import cv2
import math
import numpy as np
import matplotlib.pyplot as plt
import os
nameList = ["hideki_01", "hideki_02",
"mcllroy_01", "mcllroy_02", "mcllroy_03", "mcllroy_04",
"rose_01", "rose_02",
"spieth_01", "spieth_02", "spieth_03",
"thomas_02",
... | [
"tmdu.mikada@gmail.com"
] | tmdu.mikada@gmail.com |
67cf38dc2257b719682391c2d54996982c9b8db1 | c7faef6d4c0a965032a37953f34373816ce092c1 | /Products/MetaPublisher2/library/compatibility/historical.py | f458599fd708f8b30dc7109289df426da19247b0 | [
"ZPL-2.1"
] | permissive | sfluehnsdorf/MetaPublisher2 | 2d52a6baf1822a94ba12f66c86760953dd1cead4 | 4688baa9182919a8f8da8a0afbd68997e4453708 | refs/heads/master | 2019-01-01T23:22:04.677296 | 2013-06-23T12:03:46 | 2013-06-23T12:03:46 | null | 0 | 0 | null | null | null | null | ISO-8859-3 | Python | false | false | 37,321 | py | # -*- coding: iso-8859-15 -*-
# ============================================================================
#
# M e t a P u b l i s h e r 2
#
# ----------------------------------------------------------------------------
# Copyright (c) 2002-2013, Sebastian Lühnsdorf - Web-Solutions and... | [
"sfl@luehnsdorf.com"
] | sfl@luehnsdorf.com |
3d8932d7ae7a374fb4a9079e524d480316a6f5d4 | 817ff801938d25776b2564b3087c8a3c674da1a7 | /NUP153_AnalyseComplex/WT_Minimization/chainBCP/WT_chainBCP_Minimization_6.py | 93b4c101aa994d29251e3c4bc96938fd94e7bad9 | [] | no_license | yanghaobojordan/HIV1-Capsid | b22e21a9ad530ae11f128f409e298c5ab68871ee | f44f04dc9886e660c1fe870936c48e0e5bb5adc6 | refs/heads/main | 2023-04-09T01:27:26.626676 | 2021-04-23T18:17:07 | 2021-04-23T18:17:07 | 360,968,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | from pyrosetta import *
from pyrosetta import PyMOLMover
from pyrosetta.toolbox import cleanATOM
from pyrosetta.toolbox import get_secstruct
from pyrosetta.teaching import *
from pyrosetta.toolbox import get_hbonds
from pyrosetta.toolbox import mutate_residue
from pyrosetta.rosetta.protocols.relax import *
from... | [
"yanghaobojordan@gmail.com"
] | yanghaobojordan@gmail.com |
9f4a4daa608a920aafce684a30429bf510d9d867 | b381b5ce79ec03e281cba7e6ea253b286205fba1 | /openstack/map_reduce/v1/job.py | 2ab8baab2c33c86bccb1719887437cb769f0ca27 | [
"Apache-2.0"
] | permissive | sun363587351/python-openstacksdk | 972eedc24199c3b8a15bd21accd29a6ec70febdb | f9e055300b1c79637d7b6a791168427f27322d73 | refs/heads/master | 2020-12-02T19:23:01.771376 | 2017-07-05T13:24:47 | 2017-07-05T13:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,901 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"iampurse@vip.qq.com"
] | iampurse@vip.qq.com |
dbbb78de7586a3fd69f564f7384cb29ca7f56999 | 5793b470eea39ba99ff4d16325d462440647b77d | /System/Threads/thread-count.py | e0c36329cec628396bc4ee866d2c6f9daca41c6c | [] | no_license | zhongjiezheng/python | 01a99438fc4681817d4d0e623673afa1e488864c | 5c5725ad0e75d07e016b64d79eddf3d88a524fa0 | refs/heads/master | 2021-01-17T11:57:12.373343 | 2015-07-08T09:04:48 | 2015-07-08T09:04:48 | 35,549,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | """
thread basics: start 5 copies of a function running in parallel;
uses time.sleep so that the main thread doesn't die too earlly--
this kills all other threads on some platforms; stdout is shared:
thread output may be intermixd in this version arbitrarily.
"""
import _thread as thread, time
def counter(myId, count)... | [
"zzjie1991@gmail.com"
] | zzjie1991@gmail.com |
3d58e2a7aa91b20b65c15e42b5bcc9ed7e707215 | 04e58ca58d96355e6439d60b3b632b36d82b1855 | /Framestore/main.py | 329c156972b969d3c251791f6283428086b900dd | [] | no_license | tommyhooper/legacy_python_utils | 325f2b7590e30ec2248f9d4159fb4e824307e88e | a8734fa74171d928b08cfe783fa0e02ac6185a4d | refs/heads/master | 2020-12-05T13:05:00.809230 | 2020-02-13T21:11:16 | 2020-02-13T21:11:16 | 66,403,853 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,054 | py | #!/usr/bin/env python
import glob
import os
import stat
import sys
import time
import re
import traceback
import Queue
import threading
import commands
from datetime import datetime
from wiretap import Wiretap
from A52.utils import print_array
from A52.utils import diskutil
from A52.utils import numberutil
from A52.ut... | [
"tommy.hooper@a52.com"
] | tommy.hooper@a52.com |
54d19de6307807e13be2af90d2467614f5e2ac64 | be8f53156948411266926ea17fb6d9f22722e877 | /Orders/logic/order_logic.py | aae666f78186d805f06717e73d90685fa119766c | [] | no_license | vrusi/booking-backend | ba38932df2d90c257a2ce438123e4c1c17156c7d | d4ef6871fbc48fdbd86370ca404f1769f17dec1a | refs/heads/master | 2023-04-12T07:08:21.756997 | 2021-04-29T23:56:59 | 2021-04-29T23:56:59 | 353,716,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | from Orders.models.models import *
from Orders.parsers.order_parser import OrderParser
class OrderLogic:
parser = OrderParser()
def get_list_orders(self, user):
try:
orders = Order.objects.filter(booked_by=user)
except Exception as e:
raise e
api_... | [
"me@vrusinkova.com"
] | me@vrusinkova.com |
44a276ef4ae63143025b692f8fde27074f5976e9 | dc723ba04d723b077a723bebb02813b8009f6e9e | /system/services/frontend/infrastructure/healthcheck-scheduler/job.py | 490be2831c4e6c2e3dfb7ff1382c5c0d4ba14f38 | [] | no_license | ngelsevier/preprint | e33247cb589d3de505f219d0242a3738d5455648 | 0a6a57bc962c29e277f105070977867280381d85 | refs/heads/master | 2020-03-20T23:42:53.825949 | 2018-06-19T08:06:36 | 2018-06-19T08:06:36 | 137,859,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import requests
SEARCH_STRING = 'Effects of the Real Plan on the Brazilian Banking System'
EXPECTED_RESULT_STRING = '<em>Effects</em> <em>of</em> <em>the</em> <em>Real</em> <em>Plan</em> <em>on</em> ' + \
'<em>the</em> <em>Brazilian</em> <em>Banking</em> <em>System</em>'
def lambda_handler(e... | [
"r.ng@elsevier.com"
] | r.ng@elsevier.com |
371c7cef5ddbf0037f98ef6c94c7bbf264689628 | 97f79eb45dbc420f6d37f7c13f2c32011aa2a0fe | /flickr/models.py | be01fd2ab9ee0a6e42e961cfe5a0c6e7e453e5e1 | [] | no_license | pfig/feedify | 312264a8de58ef0411aee215c34e7486c3819977 | dc87f0e0fec1cb647750f7f14917c965f7d2635e | refs/heads/master | 2021-01-16T20:59:49.224137 | 2012-11-27T22:50:29 | 2012-11-27T22:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,843 | py | from django.db import models, IntegrityError
from django.conf import settings
from django.core.cache import cache
import urlparse
import urllib
import datetime
import oauth2
import uuid
import json
import time
EXTRAS = "date_upload,date_taken,owner_name,icon_server,original_format,description,geo,tags,machine_tags,o_... | [
"tom@movieos.org"
] | tom@movieos.org |
ddb8374329c0329407245961714ca9183b79aea4 | 0cdd45b2c9ad9153ddae010978e2ff1fc1b9c71e | /danci/settings.py | c61f326ef6434a6b92d0963e5034d77bea76fbd7 | [] | no_license | kiss3256/danci | 3777f4f22b36b310331a27f3bfae63288431f2ec | 660a368e9a14a1c997035b736806d7f9662d1dd3 | refs/heads/master | 2020-05-03T14:36:07.302490 | 2019-05-08T01:41:45 | 2019-05-08T01:41:45 | 178,682,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,057 | py | # -*- coding: utf-8 -*-
# Scrapy settings for danci 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/... | [
"leytonxu@gmail.com"
] | leytonxu@gmail.com |
7630c8e792dffc9e7609a9b24099e964e7a48df0 | c29a713e84be273b8e0b91634c0045ed40de9105 | /contrib/config-example.py | 7a51046ddca630a43091b64fe513b0ff31a956e5 | [] | no_license | jane-hnatiuk/tranliterator | 2e6b79631cb4850660d945662e83e70e15427f4f | 6f2797bbe4efe38044c08e8840ccfb07b92c4619 | refs/heads/master | 2021-01-19T12:03:33.670853 | 2017-01-24T20:05:10 | 2017-01-24T20:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | class Config(object):
DEBUG = False
CSRF_ENABLED = True
class ProductionConfig(Config):
DEBUG = False
TRANSLATOR_ID = 'id_prod'
TRANSLATOR_SECRET = 'secret_prod'
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
TRANSLATOR_ID = 'id_dev'
TRANSLATOR_SECRET = 'secret_... | [
"k.scherban@gmail.com"
] | k.scherban@gmail.com |
ee31fca9e13eace1152029a6fef01b99c5d8aadf | 1b3eb66d1c8e9947849bf14870e736d14488d8be | /TM_des_cbc_0_vis.py | c810df25e58308f9382e0996485f76245186f5b6 | [] | no_license | AntonAlbertovich/cipher-visualization | 87721d6c47c9d9a17111cc52c06337e2b4d1aed3 | 2aa8022daaad136e423514e93a9824c5b28a8074 | refs/heads/master | 2020-08-03T14:20:19.827975 | 2019-10-08T20:30:03 | 2019-10-08T20:30:03 | 211,783,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | import matplotlib.pyplot as plt; plt.rcdefaults()
import numpy as np
import matplotlib.pyplot as plt
objects = []
performance = []
with open("TM_des_cbc_0.txt", "rb") as f:
available = False
temp = ""
for line in f:
print(line)
try:
this_per = int(line)
temp = th... | [
"noreply@github.com"
] | AntonAlbertovich.noreply@github.com |
2d25dc2c818efe033ad59ee1eb11f2c8ccfde452 | 1ea966542e28e24b2f3f7d5e0352cbdc110a979a | /Algorithm/Programmers/Programmers_2개이하로다른비트.py | 9a1ef5bccf76215078cf0ce46a5b4b707c54eb9b | [] | no_license | yunhacho/SelfStudy | 9ff7002362f6e9d8fe7d1ca3ccf94ee96726f635 | 99912af3df014a6864893c9274dbf83ff9ed05a8 | refs/heads/main | 2023-08-25T06:56:21.116419 | 2021-10-28T07:35:09 | 2021-10-28T07:35:09 | 360,470,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | def solution(numbers):
binarys=[]
for n in numbers:
b='0'+ bin(n)[2:]; i=len(b)-b[::-1].find('0')-1
binarys.append('{}{}{}'.format(b[:i],'1' if len(b)-1==i else '10',b[i+2:]))
return [int(b, 2) for b in binarys] | [
"jyh_5530@naver.com"
] | jyh_5530@naver.com |
a5bdaa8e9a727c27b7d64b956d252fd66588dfe7 | b516a1d0791bba8010ad0a8616c4be259589ce5c | /anidb/model.py | 5bc42d2d56d81688209b35883f85b3d6baba68c2 | [] | no_license | p0psicles/pyanihttp | 769cd585a9351deea6ca5c7ad8af5aa32fcaee37 | 6a67899e4491afd6b020edb7781e37b2781ad1df | refs/heads/master | 2021-01-17T19:59:33.580955 | 2012-02-26T20:09:55 | 2012-02-26T20:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,563 | py | __all__ = ["Anime", "Category", "Title", "Episode", "Tag"]
class Entity(object):
def __init__(self, id):
self._id = int(id)
@property
def id(self):
"""The id of this entity"""
return self._id
@id.setter
def id(self, value):
self._id = value
class Titled(object):
... | [
"themineo@gmail.com"
] | themineo@gmail.com |
7fa32c3ea39a48ed635213b68a5c69b5931edf48 | 5211ed7c50556c904fce461cfc412e3679934feb | /bin/thresholder.py | 5e97b186aa11169b860bcbf4878f6837262e7218 | [] | no_license | WalterBrito/Social-Website | 1d4cb261656bc0e5326a5cc0bef723766610103e | 988a5c9335861f3e5a288e131d6c6184acba9ad8 | refs/heads/master | 2021-01-09T20:33:03.217470 | 2016-07-20T13:42:13 | 2016-07-20T13:42:13 | 62,829,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | #!/home/fedora/Projetos/env/bin/python3
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates how a 1-bit BitmapImage can be used
# as a dynamically updated overlay
#
try:
from tkinter import *
except ImportError:
from Tkinter import *
from PIL import Image, ImageTk
import sys
#
# an image v... | [
"fedora@localhost.localdomain"
] | fedora@localhost.localdomain |
2bae3b5a04eecfdea7f941579f8042efea19fa28 | ef1b77f02623178fd6a24fe459d452f17c47009c | /posts/views.py | b35b2157e8f9a585bdb8d9e247cdb648cf8247f3 | [] | no_license | praveen-stox/mb-app | 24bb2404e6c9ce6b666f1419ae94699f0e942b19 | 2c24873f3be575e48e223bc6609f4e68839b91fd | refs/heads/master | 2023-06-25T02:32:54.277101 | 2021-07-19T17:03:11 | 2021-07-19T17:03:11 | 387,536,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from django.shortcuts import render
from django.views.generic import ListView
from .models import Post
class HomePageView(ListView):
model=Post
template_name='home.html'
context_object_name='all_posts_list'
# Create your views here.
| [
"praveen.matlab@gmail.com"
] | praveen.matlab@gmail.com |
924a3f8ab9aff1788f8b5f5653b579ab4b7aebbb | e93f117a0c538341b2fc49009149a64009fad3f5 | /uw_gws/utils.py | df681f867b26e8714ec0c18b407e089bb0467a62 | [] | no_license | abztrakt/uw-gws | 8cf8bafe4875bc0e95dfd117de9b47e2d97eee66 | cfe88c0575cb9d63ff48be10b8a69cd9fcb1d713 | refs/heads/master | 2021-01-01T18:41:34.903300 | 2015-06-17T18:34:57 | 2015-06-17T18:34:57 | 10,850,175 | 0 | 0 | null | 2013-09-12T21:37:43 | 2013-06-21T19:03:43 | Python | UTF-8 | Python | false | false | 4,213 | py | import httplib
from django.conf import settings
from django.contrib.auth.models import User,Group
import xml.dom.minidom
def get_group_info(group):
'''
Returns the information of a group via Groups Web Service in XHTML.
@return (dictionary,boolean)
'''
URL = settings.URL + 'group/%s/' % group
... | [
"mnnguyen@uw.edu"
] | mnnguyen@uw.edu |
745b47f4b9653e1adb5938a611487ad9e3201e35 | 303bac96502e5b1666c05afd6c2e85cf33f19d8c | /solutions/python3/944.py | bd687a861c6ef672174fcc914271cffea1314b06 | [
"MIT"
] | permissive | jxhangithub/leetcode | 5e82f4aeee1bf201e93e889e5c4ded2fcda90437 | 0de1af607557d95856f0e4c2a12a56c8c57d731d | refs/heads/master | 2022-05-22T12:57:54.251281 | 2022-03-09T22:36:20 | 2022-03-09T22:36:20 | 370,508,127 | 1 | 0 | MIT | 2022-03-09T22:36:20 | 2021-05-24T23:16:10 | null | UTF-8 | Python | false | false | 138 | py | class Solution:
def minDeletionSize(self, A):
return sum(any(a[j] > b[j] for a, b in zip(A, A[1:])) for j in range(len(A[0]))) | [
"cenkay.arapsagolu@gmail.com"
] | cenkay.arapsagolu@gmail.com |
4da391e6845015007b01093614347747e5b52720 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R4/benchmark/startPyquil309.py | b9a32c54bbe98a26e0fe98284c0b30b521a3eef5 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | # qubit number=4
# total number=12
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(1) # number=2
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
99bd86ca470ce752e248ec45820f5d1e977e210f | 4d6db4761fe07f2bfc2801400608cb0b6a814dfe | /copy_file.py | 185a9b067de0c8156660745d001a010cad243279 | [] | no_license | jacekfigiel/Organize-your-folders | 2b7266d44c227a151d8a77705a99a43c69e2eb19 | 4942d3ef788a23feeee711805e03bddbbdd3622e | refs/heads/main | 2023-07-16T22:54:53.316051 | 2021-08-30T10:16:01 | 2021-08-30T10:16:01 | 401,299,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from pathlib import Path
import shutil
import os
# you can move specific type of file using this program
source_folder = r"C:"
target_folder = r"C:"
for file_name in Path(source_folder).glob("*.txt"):#you can chnage file type
shutil.move(os.path.join(source_folder,file_name), target_folder) | [
"jacekfigo1988@gmail.com"
] | jacekfigo1988@gmail.com |
9c2e5b9526c6eadce1fc38a03bb4c1f15495d7bc | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_create_security_group_option.py | 0f2264525c7e8c7ce51ffcb365afd1fd1693468f | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,837 | py | # coding: utf-8
import pprint
import re
import six
class NeutronCreateSecurityGroupOption:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b78c69393969e3f18725cef9e420f118fdf82b4b | 66b1a09e3e8b7ece4c703bf02a33824c57c105f1 | /Skyline.py | 8ba36699c801c7a04044fa7136af8a191db11238 | [] | no_license | jordibosch20/telegram_bot | 9bb0e3f53a2dcd1e6e3a14d9ab2fe53060cf26b1 | 88ab088f37ec46085e779c477a0dcfa0d27da852 | refs/heads/master | 2022-09-24T19:19:22.611328 | 2020-05-30T00:15:29 | 2020-05-30T00:15:29 | 265,609,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,766 | py | import matplotlib.pyplot as plt
import matplotlib.patches as patches
import matplotlib
import time
class Skyline():
def __init__(self, edificis=[]):
# Per defecte si no passem el parametre edificis s'inicialitzara a []
self.edificis = edificis
# Dues funcions estatiques que ens ajudaran a ord... | [
"jordiboschbosch@hotmail.com"
] | jordiboschbosch@hotmail.com |
29b676ce8dc99a99fd0ba0e02214b71f254f7431 | 88bd64de181325ea877a644f2e99cfba54e8168c | /old-version/influence/closed_forms.py | 43908c4b4b87efeeb68fd297f18af11945289934 | [
"MIT"
] | permissive | joyivan/46927-Project | bb3132d627837a6066106466096d8ff32e620e31 | 366693a13d8ee1daad91364640792524f4664c04 | refs/heads/master | 2020-04-18T10:06:35.034984 | 2018-05-05T17:40:05 | 2018-05-05T17:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | import numpy as np
def I_loss_LinearRegressionCf(X_tr, Y_tr, X_te, Y_te):
n_tr, p = X_tr.shape
n_te, _ = X_te.shape
beta_hat = np.linalg.inv(
X_tr.T.dot(X_tr)).dot(X_tr.T).dot(Y_tr)
H_inv = (n_tr/2)*np.linalg.inv((X_tr.T.dot(X_tr)))
I_loss = np.zeros((n_tr, n_te))
for i in range(n_tr):... | [
"zed.yang@outlook.com"
] | zed.yang@outlook.com |
48b6b7cb9368a9db6760084e0982e05ee92758d6 | 04142fdda9b3fb29fb7456d5bc3e504985f24cbe | /mmcv/ops/masked_conv.py | 919702e9cbd04b9e1f5c93147bcced8a1be38c61 | [
"Apache-2.0"
] | permissive | open-mmlab/mmcv | 419e301bbc1d7d45331d67eccfd673f290a796d5 | 6e9ee26718b22961d5c34caca4108413b1b7b3af | refs/heads/main | 2023-08-31T07:08:27.223321 | 2023-08-28T09:02:10 | 2023-08-28T09:02:10 | 145,670,155 | 5,319 | 1,900 | Apache-2.0 | 2023-09-14T02:37:16 | 2018-08-22T07:05:26 | Python | UTF-8 | Python | false | false | 4,851 | py | # Copyright (c) OpenMMLab. All rights reserved.
import math
from typing import Optional, Tuple, Union
import torch
import torch.nn as nn
from torch.autograd import Function
from torch.autograd.function import once_differentiable
from torch.nn.modules.utils import _pair
from ..utils import ext_loader
ext_module = ext... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
190a872e028d3bf0081c8c7d8339ab39d3feadfb | a7b345e3115b97f4a221eb7b68eef8499dcddde7 | /DNbookproject/settings.py | 847e5400ad5f5f73a700ece9198eabc783d16a9a | [] | no_license | 2hwa-jang/SystemDesign2019 | 776b961899a4909d42c5b44194f9548f77d4ea76 | 8138e911a2d6fd7bcc5451e0a8d285435c521639 | refs/heads/master | 2023-04-06T18:38:11.168936 | 2019-09-21T01:59:47 | 2019-09-21T01:59:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,228 | py | """
Django settings for DNbookproject project.
Generated by 'django-admin startproject' using Django 2.1.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import... | [
"twoflowersj@likelion.org"
] | twoflowersj@likelion.org |
72405dd20f4b5a3f7da69513ae47ad06ab5a9a70 | 91d8fdf776930ef6bbc895281d10d466426f8dc8 | /lab_3/main/urls.py | fc723cb75091e03c50cd4a1d5877f7a14a668e57 | [] | no_license | Vetal-V/IK-31-Vrublevskyi | 07f26d2c9c2522dd43523b810c97d128bb907837 | e2185e90f4dc64ca1113ececa2692ce3c0511dcc | refs/heads/master | 2022-12-12T03:13:15.213288 | 2019-11-25T22:27:05 | 2019-11-25T22:27:05 | 206,574,884 | 1 | 5 | null | 2022-12-08T06:47:32 | 2019-09-05T13:48:01 | Python | UTF-8 | Python | false | false | 155 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.main, name='main'),
path('health/', views.health, name='health')
] | [
"54945817+Vetal-V@users.noreply.github.com"
] | 54945817+Vetal-V@users.noreply.github.com |
2d9c12e09ff90491664a3c8d3d90a9344e80deb5 | 5deeb3618189cca6f66e91d1ddcb3ce63dede8ff | /sample/migrate_rt.py | ed0011eddd2cc8ae4f2a36454b4aa83d5b7c6be4 | [
"MIT"
] | permissive | AzureAD/microsoft-authentication-library-for-python | f157efc1ec6c6d91a132f3dc8dc4742d7a309b78 | bba6b146d6fca64d43eaf313da654c0570ccd497 | refs/heads/dev | 2023-09-03T14:34:20.487126 | 2023-08-23T08:10:18 | 2023-08-23T08:10:18 | 67,243,113 | 717 | 188 | NOASSERTION | 2023-09-12T16:46:21 | 2016-09-02T17:45:26 | Python | UTF-8 | Python | false | false | 2,851 | py | """
The configuration file would look like this:
{
"authority": "https://login.microsoftonline.com/organizations",
"client_id": "your_client_id",
"scope": ["User.ReadBasic.All"],
// You can find the other permission names from this document
// https://docs.microsoft.com/en-us/graph/permissi... | [
"rayluo@microsoft.com"
] | rayluo@microsoft.com |
a5603e0af4ea367bc20eb9e4e323f02202057014 | 2976c5e9c534ace3e25674ace113ed3d920cc05c | /segment/tests/test_video_segment.py | 79e414c4fc2170204cced6bb9221cbc46aefa015 | [] | no_license | nstanger/process_podcast | cc1d5d3813dc002b52a2cf169bf2d378bfb83952 | 16761c7dc62b036decedd67c24529d198b9d2a85 | refs/heads/master | 2021-08-28T15:47:49.280134 | 2021-08-23T10:30:30 | 2021-08-23T10:30:30 | 68,779,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | import unittest
from segment import VideoSegment
from segment.tests import SegmentSharedTestCase
class VideoSegmentTestCase(SegmentSharedTestCase):
"""Test the VideoSegment class."""
EXPECTED_TYPE = "video"
EXPECTED_TRIM = "trim"
EXPECTED_SETPTS = "setpts"
def setUp(self):
"""Set up for... | [
"nigel.stanger@otago.ac.nz"
] | nigel.stanger@otago.ac.nz |
9d8f4764c428aeb806bc2a0181ea73ec56947e39 | 25c1df7ee36377eb98e197da79005fc80c6d37a7 | /imageprocessing/noise.py | b22603ff3777d3af477161fba0c211779daf8cfb | [] | no_license | hbzhang/computervisionclass | 08f628877da84a2e9b198663a940b4da9f1cb900 | 78222ba8fe43641bf663daf334bfbe20b3863929 | refs/heads/master | 2020-09-05T12:10:06.936668 | 2019-11-19T12:15:11 | 2019-11-19T12:15:11 | 218,754,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from scipy import misc
import numpy as np
import matplotlib.pyplot as plt
from scipy import ndimage
face = misc.face(gray=True).astype(float)
face = face[230:290, 220:320]
face = face + 0.5*face.std()+ np.random.random(face.shape)
smooth = ndimage.gaussian_filter(face, 2)
filtered = ndimage.median_filter(face,2)
plt.... | [
"hbzhang@vt.edu"
] | hbzhang@vt.edu |
e2fc3bb25435503cc25f03d7a8b9f78264677b50 | 23cf8f26d17d760fc3a937ad3a56ebc72520d458 | /find digits.py | 3118e71fee3a2c15027bdd1bb438ffc0162b0e7e | [] | no_license | ab6995/algorithm-codes-in-python | 2157f122e0578798c48c6c37356355e1f74963af | 445d8e75dda2af4ff0e64453bbea8555c444a982 | refs/heads/master | 2021-01-21T20:33:38.676200 | 2017-06-19T01:54:36 | 2017-06-19T01:54:36 | 92,246,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 5 15:08:12 2017
@author: ashishbansal
problem:
Given an integer,N, traverse its digits (1,2,...,n) and determine how many
digits evenly divide N (i.e.: count the number of times N divided by
each digit i has a remainder of 0 ). Print the number of evenly
divisible di... | [
"noreply@github.com"
] | ab6995.noreply@github.com |
23857be0068cb1b58270601d7ea42d5393abbad8 | 2dfbb97b47fd467f29ffb26faf9a9f6f117abeee | /leetcode/84.py | a8c43f1a9b98fb79e9c45be4a3ddfa8e973b06fe | [] | no_license | liuweilin17/algorithm | 0e04b2d36dfb6b7b1b0e0425daf69b62273c54b5 | d3e8669f932fc2e22711e8b7590d3365d020e189 | refs/heads/master | 2020-12-30T11:03:40.085105 | 2020-04-10T03:46:01 | 2020-04-10T03:46:01 | 98,844,919 | 3 | 1 | null | 2018-10-05T03:01:02 | 2017-07-31T03:35:14 | C++ | UTF-8 | Python | false | false | 4,644 | py | ###########################################
# Let's Have Some Fun
# File Name: 84.py
# Author: Weilin Liu
# Mail: liuweilin17@qq.com
# Created Time: Fri Sep 27 11:00:23 2019
###########################################
#coding=utf-8
#!/usr/bin/python
# 84. Largest Rectangle in Histogram
class SegmentNode:
def __in... | [
"liuweilin17@qq.com"
] | liuweilin17@qq.com |
829d0ce6be6a5c845838862167b457e1546ae0e6 | e1e3a1d7fbb3de1e0baf0f9cbd47fa84472bf830 | /1431 Kids With the Greatest Number of Candies.py | c8ea14aec7f07917acae91c7ce0a6ba0d69026ff | [] | no_license | ihseo/leetcode | dceafca7ea3fdc3fb7e4893a29d9675bfb68c6f5 | fad74d8040546553743df3b4556b39466516389c | refs/heads/master | 2023-01-06T19:52:26.515176 | 2020-11-08T18:40:36 | 2020-11-08T18:40:36 | 289,858,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from typing import List
class Solution:
def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
output = []
max_candies = max(candies)
for num in candies:
if num + extraCandies >= max_candies:
output.append(True)
else:
... | [
"inhyukseo1@gmail.com"
] | inhyukseo1@gmail.com |
9714bf6b0dc7ce455e2b0df2c5143bb88161a1a6 | bbe684bcef13f561603779c79d77d303cedf3a94 | /brewmaster/urls.py | 594bf84e0ce188dce72f55db58ab4a8807335537 | [] | no_license | mkuch90/BrewDuino | 464506b0c5acbf6a0b608ceb7f0077db26a35c76 | 0b69cac7b7781b7218d0eeadd45a233a0fb55362 | refs/heads/master | 2020-12-25T17:34:09.317599 | 2016-08-22T01:15:28 | 2016-08-22T01:15:28 | 33,043,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'brewmaster.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^brewery/', include('brewery.urls', namespace='brewery')),... | [
"mkuch90@gmail.com"
] | mkuch90@gmail.com |
6c00c973d704931def41279998e890951055fc40 | 3b964e140fd2d912353257897031d22771509382 | /program 8/Wumpus World.py | 76ca924bfb07861a75416848d45d13f92e1f37f8 | [] | no_license | adarrah/CS-101 | 72c4528ca0d75405f5274b5e79eaf8aef3d9848c | 7b1e58328c5bb1a61f2b4412d349380551bfa56b | refs/heads/master | 2021-07-04T16:13:03.627006 | 2017-09-26T21:46:37 | 2017-09-26T21:46:37 | 104,941,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,979 | py | import random
## creates an OffMapError that can be thrown
class OffMapError(Exception):
"""Error raised if user attempts to go off the map"""
pass
## creates cell class for the map in wumpusworld.py
class Cell(object):
## initialize base variable
has_wumpus = False
has_gold = False
has_pit... | [
"a.darrah2016@gmail.com"
] | a.darrah2016@gmail.com |
d2430ad0aef9831b0b7820b8fd81409d3462449f | 9974b280251db24fe418ddcfdc6e6ad56e773274 | /test2.py | a6deb0272431072270e03b3de84a02ecc2a45d55 | [] | no_license | CFP106022106/10720PHYS290000 | 8b96ca3f3dbe8ef9356f9d66fcb1d9fd35618abe | c30426695be85af8f9164b8af99aab2b56b02a69 | refs/heads/master | 2020-04-27T11:55:34.393792 | 2019-04-21T08:19:49 | 2019-04-21T08:19:49 | 174,314,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py |
def censor(text, word):
return(text.replace(word, '*' * len(word)))
print censor("this hack is wack hack", "hack")
print 'test'
| [
"noreply@github.com"
] | CFP106022106.noreply@github.com |
64d2739c958463fe01893743172e5b7fa905a74f | c39bdc5f7c3c59b628b4fb92fcdd95527f562933 | /cifar10_train.py | 2d4f28b98c6c921fa5e7c1612395f8b0c8af23e2 | [] | no_license | weixun2018/cifar10_serving | d6e8eddf2843d5cd9e12c91336f30b723e2c13bf | 1fd639b4fbfb5d35249fbc2045e666d2b1ebdfb2 | refs/heads/master | 2020-03-24T02:39:26.092176 | 2018-07-26T03:49:34 | 2018-07-26T03:54:29 | 142,385,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,802 | py | # Copyright 2015 The TensorFlow Authors. 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 the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"weixun@caicloud.io"
] | weixun@caicloud.io |
268fbaffa9b674513dd7b5d44308a1d04c4f2120 | c760bb1a1cb5d0003ae97d855dd2f295b6c25235 | /alpha.py | 042f998dfb4edcc16acf33cff52ffb308e7e24d9 | [] | no_license | azeem6755/Star-Cast-Recommendataion | 1b9c2797e30aa3c5a923cecac9451cfe59ff4350 | e6cae892a4dbbbf90982da20656d3fa6ab60f033 | refs/heads/master | 2023-02-18T20:26:25.880008 | 2021-01-21T18:29:02 | 2021-01-21T18:29:02 | 204,743,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,589 | py | from PyQt5 import QtWidgets, uic
#import time
import pandas as pd
import numpy as np
from mlxtend.frequent_patterns import association_rules
import random
def eval_func(a):
return eval(str(a))
def mul_func(a):
return int(a)*500
def make_list(a):
return list(a)
def div_func(a):
return a/... | [
"noreply@github.com"
] | azeem6755.noreply@github.com |
161c6671e458fed554bf825c179cc4b7abb336c1 | 96aab9f77de8170ae93004d699bd0b11e820b2d4 | /rest/app/user/urls.py | c0b6dccc152b56208b129bc04563ca5b6a09e9fd | [] | no_license | JasoSalgado/rest-app | 8dbc842d6de0ec705fd04bc94e79ee75ad80f2e2 | 3d1662800bd1e98142a0edca244c82498cc4832b | refs/heads/master | 2022-11-15T15:25:44.135084 | 2020-07-16T14:58:59 | 2020-07-16T14:58:59 | 280,182,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from django.conf.urls import url
from rest.app.user.views import UserRegistrationView, UserLoginView
urlpatterns = [
url(r'^signup', UserRegistrationView.as_view()),
url(r'^signin', UserLoginView.as_view()),
] | [
"jaso_98@hotmail.com"
] | jaso_98@hotmail.com |
bb929042988bad316efb3fc70aa8a31053d755a3 | 3964a8103441a7b881c76cd8fcb7658ad2649657 | /venv/Scripts/vba_extract.py | f551ad8f242375a951d1850a3cce4ac5cfb765a3 | [] | no_license | cjdeguzman95/PythonWeek | d780b90701ef75f386c404e821990d835b6ae53e | 2d49e6132c27b3e2c0d57bb517f34ce2e216a08e | refs/heads/master | 2023-08-16T12:58:19.149820 | 2023-08-05T22:11:16 | 2023-08-05T22:11:16 | 247,747,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | #!C:\Users\CJ De Guzman\PycharmProjects\cj1\venv\Scripts\python.exe
##############################################################################
#
# vba_extract - A simple utility to extract a vbaProject.bin binary from an
# Excel 2007+ xlsm file for insertion into an XlsxWriter file.
#
# Copyright 2013-2020, John M... | [
"cjdeguzman0@gmail.com"
] | cjdeguzman0@gmail.com |
74f36f53030f6a252bb12ac60a94b33ac37cbf15 | e02d75afc9e98769a4b651d4ad5730e88a585d19 | /34.py | 6fec48402ea5e849623843ac01bfe7feedd20b3f | [] | no_license | bio33/euler | 07b718fcc675a33c0377c76c9489b5fe92d4b675 | 36250ff49c0119c4250dbe4b60829fe319c651fd | refs/heads/master | 2020-05-30T13:45:58.244747 | 2019-09-26T15:35:00 | 2019-09-26T15:35:00 | 189,769,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # upper bound - > 2540161 (9!*7) reason being thats the maximum sum of factorials can go of each digit as 9999999
def memoize(f):
memory = {}
def helper(x):
if x not in memory:
memory[x] = f(x)
return memory[x]
return helper
@memoize
def fact(n):
if n <= 1:
return 1
else:
return n * fac... | [
"noreply@github.com"
] | bio33.noreply@github.com |
658a507fcf159ac4b48d14cc5cca2cfada4e319d | 3c2a197bf32e72444c5f36559ad0cb9b64035516 | /codeskeleton/value_generators/random_int.py | d9aac5df824e8d25278a8ef6f114953e6b7a0a9f | [] | no_license | appressoas/codeskeleton | c538bbfccf19735464dc42996b754cf9199a14a3 | 604011cb27c47b02d325379895bc23b543797216 | refs/heads/master | 2021-01-19T19:24:21.100020 | 2017-06-26T09:34:45 | 2017-06-26T09:34:45 | 88,417,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import random
from .registry import GENERATOR_REGISTRY
def random_int(from_int=0, to_int=999999999):
return random.randint(from_int, to_int)
GENERATOR_REGISTRY.register(generator_name='random_int', function=random_int)
| [
"post@espenak.net"
] | post@espenak.net |
d00b8b7df65a8b3580c1cdb5492a2d1e59ab941e | 767a7116d4bdc2a8d52cbd74cb677862c6f40ac5 | /T3/APF.py | 2fd903ba790926219a9cc03c09ab38b358ed9075 | [] | no_license | lorenaelias/LFA | fc85bbd14f2719d6b26928417803f4dc9772511d | d64864cd361dbdb381611948ca2b619c65101bf7 | refs/heads/master | 2022-01-30T05:06:46.250637 | 2022-01-15T19:54:48 | 2022-01-15T19:54:48 | 181,799,032 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,388 | py | class APF:
def __init__(self,nomeArq,flg):
if flg:
arq = open(nomeArq, 'r')
self.Q = arq.readline().rstrip().split()
self.S = arq.readline().rstrip().split()
self.T = arq.readline().rstrip().split()
self.q0 = arq.readline().strip()
... | [
"noreply@github.com"
] | lorenaelias.noreply@github.com |
4389fe895f258da6df6e190350867e47b798783f | ee3b81258db93cad6d155fa30af7dda9aa1410d6 | /convert_vid_to_images_&audio_&text.py | acfc2e8fa4c81e48c0ca8a5055355fd53eec727f | [] | no_license | CS-Rorita/speech-to-text | c3a50456f03f531057f347e005ad8ed5a2d5b260 | 91e22be60586dc0df66ac325fb58e4cdd028c79e | refs/heads/master | 2022-11-02T07:35:30.228990 | 2020-06-23T13:27:23 | 2020-06-23T13:27:23 | 274,397,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py |
# Program To Read video
# and Extract Frames
import cv2
import os
# Python code to convert video to audio
import moviepy.editor as mp
import speech_recognition as sr
# Function to extract frames
def FrameCapture(path):
# ==================================================================================... | [
"noreply@github.com"
] | CS-Rorita.noreply@github.com |
58c0521573ba490ab6ced88ab69a77ffb44197a3 | 7fd3c972968416c27982194220e8f83f88bda99a | /Algorithms_LinkedLists/Code/206_ReverseLinkedList/v1_1.py | 3ecd4e0aaaae2ea9a80b1e04d4cb30f33f5fff2b | [] | no_license | AKHeit/LeetCode | a5093271eb1d9e27776e6b491f972be607802a72 | d91f60431aa7767d1a854e0e27a26023fc8ec45c | refs/heads/master | 2021-09-02T13:08:27.073505 | 2018-01-02T22:49:07 | 2018-01-02T22:49:07 | 113,120,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,402 | py | """
Problem: 206 reverse linked list
Level: easy
Tags: linked list
Technique: iterative, recursion
Status:
Problem Description:
reverse a linked list
To do:
fixed the broken recursive calling
"""
#Definition for singly-linked list.
class ListNode:
"""
Comment out while running in LeetCode
Keep while ... | [
"heitman.alexander@gmail.com"
] | heitman.alexander@gmail.com |
df1b483b12a18f285047ae7d1f7b07f90b38e4ab | a43504f11666edffa9497630d9fcad31566b4349 | /app/bot_engine/request_makers.py | 7c475e770f2ee3cf8dc298e5fc7d6fa180ffd930 | [] | no_license | korid24/shop_list_webhook_bot | 4896d0e731679815b043ba4c997651fe4f3682a9 | efe359b42a8b625ea78b855664358937419a1785 | refs/heads/master | 2022-12-29T09:51:16.212730 | 2020-10-22T10:16:20 | 2020-10-22T10:16:20 | 306,046,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,933 | py | import json
import requests
from typing import List, NamedTuple, Optional, Union
from config import AUTH_TOKEN, BASE_URL
# from local_utils import write_json
from bot_engine.utils import path_to
HEADERS = {
'Content-type': 'application/json',
'Authorization': 'token {}'.format(AUTH_TOKEN),
'Accept-Language... | [
"korid24.dev@gmail.com"
] | korid24.dev@gmail.com |
a67206d5ae73c680d0c58a0ec7396e287f72750f | d5e3d72f2f21a4a326e953a79aae97ad5109623e | /machinelearninginaction/Ch10/kMeans.py | b4957253b0939348c82737eea7f6547ef7fd1cb0 | [] | no_license | thatwaylw/pycl | 37006e7b4657faa8181476564c19304e7da2c3c6 | d253da71e9154b592bf58a72f012185ffff2dd85 | refs/heads/master | 2020-07-04T13:22:10.002414 | 2019-08-16T10:27:37 | 2019-08-16T10:27:58 | 202,297,713 | 0 | 0 | null | 2019-08-14T08:57:35 | 2019-08-14T07:27:42 | Python | UTF-8 | Python | false | false | 8,646 | py | #coding:utf-8
'''
Created on Feb 16, 2011
k Means Clustering for Ch10 of Machine Learning in Action
@author: Peter Harrington
'''
from numpy import *
def loadDataSet(fileName): #general function to parse tab -delimited floats
dataMat = [] #assume last column is target value
fr = open(fileNa... | [
"laiwei.lw@gmail.com"
] | laiwei.lw@gmail.com |
0ffac56bcad2e24caca6937b282f7b1ad0456549 | ad3c845b93724fa37b88a09b0f776e3d5719bca0 | /mylogs/notes/admin.py | a9a714f116f2f9f71f248ea53908575fbf56bcf1 | [] | no_license | VSpectrum/My_Logs | ffc3adfca5bb22b628cfd958badf1a22179faa78 | 9df444ea89c8030ec8638057b661c0a7e2aa1812 | refs/heads/master | 2021-01-22T06:23:22.907453 | 2017-06-13T16:26:50 | 2017-06-13T16:26:50 | 92,547,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
from notes.models import Log
class LogDisplay(admin.ModelAdmin):
def time_seconds(self, obj):
return obj.date.strftime("%d-%b-%Y | %H:%M:%S")
time_seconds.short_description = ... | [
"vgooljar@sunnygroup.com"
] | vgooljar@sunnygroup.com |
17ff71f9320ed1b5a19d7b730f0302b2113591eb | 196f7e3238f961fb5eba7a794f0b0c75d7c30ba1 | /Python自动化运维技术与最佳实践/2业务服务监控/213对比nginx配置文件test.py | 9cc58a6e05df6dd2f918590e93150457966d7b24 | [] | no_license | Liaoyingjie/Pythonlearn | d0b1b95110017af7e063813660e52c61a6333575 | 8bca069f38a60719acac5aa39bd347f90ab0bfb1 | refs/heads/master | 2020-04-08T07:35:07.357487 | 2018-04-12T16:44:43 | 2018-04-12T16:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | #!/usr/bin/python
import difflib
import sys
textfile1='nginx.conf.v1'
textfile2='nginx.conf.v2'
def readfile(filename):
try:
fileHandle = open (filename, 'a+' )
text=fileHandle.read().splitlines()
fileHandle.close()
return text
except IOError as error:
print('Read file E... | [
"godzoco@qq.com"
] | godzoco@qq.com |
a69b7932bdbaf598e483e8e989db6149b82fd61c | b650ecac89df96d01b3371806b931858eaa202cc | /io_scene_gltf2/blender/imp/gltf2_blender_skin.py | b2b39a2b94764e627b2e5bd93979c919ba73d9a1 | [] | no_license | yazici/blender-addons | a92a87e6f96d130cf32c94227cbd5623fe129ad9 | 85bda1d3f7d20766561ef73c864a4a6872d93a23 | refs/heads/master | 2020-04-25T18:26:34.571420 | 2019-02-25T15:48:03 | 2019-02-25T15:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,427 | py | # Copyright 2018 The glTF-Blender-IO authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"julien.duroure@gmail.com"
] | julien.duroure@gmail.com |
7a021ccaf3c670c98dfc5155d1cbd84b76bfd436 | 2caf6885511af24443e22aaa43cd679d694f6f80 | /note/my_note/first_month/day06/do_it.py | ec11f1b1af222ae157ca35960d3fb73a0a203e08 | [] | no_license | nandadao/Python_note | 7f9ba54a73af05c935b4f7e24cacb728859a6c69 | abddfc2e9a1704c88867cff1898c9251f59d4fb5 | refs/heads/master | 2020-11-25T18:29:50.607670 | 2019-12-19T01:28:02 | 2019-12-19T01:28:02 | 228,793,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # dict_like = {
# "qtx":["编码","看书","跑步"],
# "lzmly":["看电影","编码","美食","唱歌"]
# }
#
# # for i in dict_like["qtx"]:
# # print("qtx",i)
#
# # 所有人的爱好
# for item in dict_like:
# for i in dict_like[item]:
# print(item, i)
dict_city = {
"北京":{
"景区":["天安门","天坛","故宫"],
"美食":["驴打滚","豆汁"... | [
"1361335953@qq.com"
] | 1361335953@qq.com |
cc972351c9723f12cac29a568a4b3609c43b5fe0 | a43763ff378a39f50af967dd90ff898e969e88e7 | /Lista_Prof_Fabio/Algoritmos_Exercicio-03-REPETICAO-FOR/fb_ex3_q10.py | e86692c6afa50f7ffb885fa3171aa20a16feec99 | [] | no_license | marcosaraujo2020/ifpi-ads-algoritmos2020 | 801ec1858958a0ab51f050c42e4067fefb8cc106 | 608ed133c6e57a4cfe84bf5d301dd44e057ffc47 | refs/heads/master | 2023-01-12T04:36:07.524983 | 2020-11-20T21:21:09 | 2020-11-20T21:21:09 | 246,123,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | def main():
limite_inferior = int(input('Informe um valor para ser o limite inferior: '))
limite_superior = int(input('Informe um valor para ser o limite superior: '))
numeros_impares(limite_inferior, limite_superior)
def numeros_impares(inferior, supeior):
print(f'Os números ÍMPARES no intervalo de {... | [
"marcosaraujo2015.1@gmail.com"
] | marcosaraujo2015.1@gmail.com |
0600e81657f4533c2756ea97761353143be27172 | 02bc72dd34f1cb9642d1b336a7552e86e08c875f | /density_model_demo.py | e7d488c99b8d2787f1832c7c410c8db2ad40262e | [
"MIT"
] | permissive | JFlommersfeld/Actomyosin-contractions-in-soft-pillar-rings | b3061ef0449f7ee11c5cc441b893f70d2dc0fa4e | 0f8e9375f53da432a9cc54a208e5655bc80f9f45 | refs/heads/main | 2023-08-03T11:09:26.000857 | 2021-09-16T15:03:04 | 2021-09-16T15:03:04 | 407,205,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | import numpy as np
from calculate_contraction_dynamics import calculate_contraction_dynamics
from plotting import plot_tip_displacement_and_velocity, plot_peak_velocities, plot_final_forces
from auxiliaries import discretize_curve, velos_numerical
# first we analyse the contraction dynamics for a single pillar stiffn... | [
"noreply@github.com"
] | JFlommersfeld.noreply@github.com |
edbb85dd0ca6063541942d239e131754ea2518a0 | 13d6d302b111ef375e28a8685c141b0c61a9b4f1 | /day9/code.py | a2dc45636323322b7bb5485f1e76f23d7864670c | [] | no_license | eireneapostol/codeadvent | 7aaa7e90275e95309329f26bcf3323579e7db8e4 | 183a8a9077cca16666ef1205cfd2e3316ccef1b6 | refs/heads/master | 2021-04-25T06:04:40.453486 | 2017-12-20T16:03:40 | 2017-12-20T16:03:40 | 113,890,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,120 | py | '''
--- Day 9: Stream Processing ---
A large stream blocks your path. According to the locals, it's not safe to cross the stream at the moment because it's full of garbage. You look down at the stream; rather than water, you discover that it's a stream of characters.
You sit for a while and record part of the stream ... | [
"apostol.irina.mihail@gmail.com"
] | apostol.irina.mihail@gmail.com |
ee1f5ea3b1d1fc59071b32fb3800848e91e8dce8 | 597d30748afff316d245af4dd145909c107a6631 | /Cryptology/generator.py | 8e45903d8bca3a7c353bfb6c669a8cb1de83a1e7 | [] | no_license | rp25/oldClassWork | 7605fbb31a4cebb4b60d5ff5f146f27e0714a0ec | ddf3300c49585f4438999a0d422e15c452c97618 | refs/heads/master | 2021-01-12T00:03:08.811392 | 2017-01-11T17:14:38 | 2017-01-11T17:14:38 | 78,660,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | #!/usr/bin/env python
# Original version by Will Morgan
# Modified to produce unique integers by Chris Marron
# (as well as some other modifications)
from random import randint
from sys import argv
def generate_unique_ints(num, lower, upper, file):
""" Generate a file of unique, random integers """
""" ... | [
"rajanpatel625@gmail.com"
] | rajanpatel625@gmail.com |
6b85c86bf9fae1f69daae94816bb8f44e26688c3 | d54e7f950115a00028f23c6b9d71cfcb2431d406 | /turtle1.py | 68bfd5d131d3f3eeb56a5f9f5f82d69d5e710d65 | [] | no_license | candy2882/MindX-D4E12 | 6ded560353af199e067805af1e7963a99cfd52be | a6a225b659f54132967cd4ece6dc5b0383486d2a | refs/heads/master | 2022-08-03T08:33:50.724458 | 2020-05-25T11:01:21 | 2020-05-25T11:01:21 | 266,748,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from turtle import *
speed(-1)
color('blue')
a = 200
for i in range(20):
for j in range(2):
forward(a/2)
left(90)
forward(a)
left(90)
for j in range(2):
forward(a/2)
left(90)
left(50)
mainloop() | [
"noreply@github.com"
] | candy2882.noreply@github.com |
1b2fee2d23cfabd911deb5fc04a15adcd4198f21 | 89175668a2d04910a8e75d98a6c9b1a102d7b43a | /basedbot/dbot.py | 6aa8bdf16a39e7b5f7a1aab6babcc9b2a5af473a | [] | no_license | Laurox/TUMbot | db0a6c5cea15cbbc550555d1c183b3dd71f14a61 | 1c277e9e28ea2466bdb14db16d38882977a05c04 | refs/heads/master | 2022-12-29T15:56:01.131294 | 2020-10-09T12:45:19 | 2020-10-09T12:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | import os
from pathlib import Path
import discord.ext.commands
from .dbmgr import DatabaseManager
from .confmgr import ConfigManager
class DBot(discord.ext.commands.Bot):
def __init__(self, **options):
super().__init__(**options)
self.db = DatabaseManager(os.environ.get('DBOT_DBPATH', "db"))
... | [
"timschumi@gmx.de"
] | timschumi@gmx.de |
e38dccdb0d54d9999e361b5feba35a1683826052 | 1da6288279a9702bf86f3ba00c96a29248a370e7 | /LightChaserAnim/testing/katana3.0_develop/Viewers/ExampleViewer/python/__init__.py | 503141073666f9167e0f6d013eefcc9ea4350778 | [] | no_license | lovejunjie1/aWorkingSource | b6ca7e8322143dbdeabea9f42c23cce0bcb32070 | 2c82878d2e93900175a96af0d579ef0d2ef1913e | refs/heads/master | 2020-05-20T09:41:03.964408 | 2019-03-29T09:49:29 | 2019-03-29T09:49:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # Copyright (c) 2016 The Foundry Visionmongers Ltd. All Rights Reserved.
"""
Python package implementing a Example Viewer tab with simple drawing of mesh
geometry data as points. This tab uses a C++ library to perform the actual
drawing.
"""
# Append the Example viewer library to the path to allow it to be imported
im... | [
"xukai@lightchaseranimation.com"
] | xukai@lightchaseranimation.com |
16a9ab45a648bf3879f29429dc097c418725dfe2 | 3e9b4f8d1a5a2fec968e69cabddd2c6703bf5b4f | /backend/instagram/migrations/0001_initial.py | 26f693d957167c5dc0d25cf16934197a5c7c213c | [] | no_license | Sim-JH/Django-React | 6c425dfef78d41e558f315d4a38f9c6ee04720d7 | cfb25040cc46f85821c8cdfc67ecbf0318e0c301 | refs/heads/master | 2023-04-22T04:58:01.392028 | 2021-05-15T19:51:49 | 2021-05-15T19:51:49 | 367,717,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | # Generated by Django 3.0.13 on 2021-04-05 09:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"saide0032@gmail.com"
] | saide0032@gmail.com |
f28ffb38ea8f0fe9f3305d4b12da3031869b709a | 0ef29103334cdb6a7d4a68f03401f1a8bc7e532e | /Red Cell Foundation/hospitals/migrations/0004_hospital_user.py | b53bd9a4dd755f972a06ba92e5bd6cf339ff8424 | [] | no_license | dhyey6602/iweb | 43344538a9a20765dd4c936d3ae1560e2f959b88 | df4430536630f2fcff118597d3c662e793ee3da2 | refs/heads/master | 2020-08-10T23:02:51.442335 | 2019-10-11T13:09:18 | 2019-10-11T13:09:18 | 214,439,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Generated by Django 2.2.4 on 2019-10-05 01:58
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('hospitals', '0003_remove... | [
"dhyey6602patel@gmail.com"
] | dhyey6602patel@gmail.com |
2d9da259fdc14b8cb5bf137e5ab76ab8e8182a96 | c019093a2474b92bda1b9fcab0ae750937aedc1c | /jaxlie/manifold/_manifold_helpers.py | 9bfeaae7af619693187e8bbe93f513efab7291ad | [
"MIT"
] | permissive | mfkiwl/jaxlie | 6c8a83d367299592a68bb80c7dc9816e9e006f09 | 4dbe16f3c1d1cfda30e0418ef5d1e1772cf9f537 | refs/heads/master | 2023-07-13T17:11:16.693321 | 2021-08-31T18:51:33 | 2021-08-31T18:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,652 | py | from typing import TypeVar, cast
import jax
from jax import numpy as jnp
from .. import hints
from .._base import MatrixLieGroup
from .._se2 import SE2
from .._se3 import SE3
from .._so2 import SO2
from .._so3 import SO3
T = TypeVar("T", bound=MatrixLieGroup)
@jax.jit
def rplus(transform: T, delta: hints.TangentVe... | [
"yibrenth@gmail.com"
] | yibrenth@gmail.com |
8f95d383d94a707bbe4cd0c6783b1979d805c91d | 53cd3aae3cd5a8cfd373f0cf5c3a3346591e95a6 | /app.py | b6ab8f3a30c6b41a48b76178f98462e72e360579 | [] | no_license | zqqqqz2000/teacher-management-server | bfb958245a6affd04b3d3cf8047dcd9f756db244 | f1e552db4bbd471ab97987614978af581314891e | refs/heads/master | 2023-01-22T06:14:10.453562 | 2020-11-22T11:20:32 | 2020-11-22T11:20:32 | 313,501,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,481 | py | from flask import Flask
from flask import request
from flask_cors import CORS
import datetime
from dao.check import Check
from dao.finance_office import FinanceOffice
from dao.salary import Salary
from dao.submission import Submission
from dao.teacher import Teacher
from global_var import db
from utils.token import wit... | [
"zqqqqz2000@sina.cn"
] | zqqqqz2000@sina.cn |
3d29d9e0401b41f679f4562eeccb15214d879b8a | 48965c88ac5820834951452963c6f4fd76f6c7b5 | /capstone_backenv/bin/django-admin.py | a2324b8fdfa0f62e8c53edf0bf9eb90ca66d5e00 | [] | no_license | krishnaneupaney/capstone_back | 1ee602a60ecf0626c29c2b6a66743a584342651d | da13af60fc05ab042838b1b1c253ca02e1fbc036 | refs/heads/master | 2023-05-01T15:37:48.023860 | 2021-05-21T01:51:25 | 2021-05-21T01:51:25 | 367,676,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | #!/Users/krishnaneupaney/Desktop/SEIR_Erica/capstone/CapstoneBackend/capstone_backenv/bin/python3.9
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise I... | [
"krishnaneupaney000@gmail.com"
] | krishnaneupaney000@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.