blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
905e5ad9d40829a09ffd8ae82ec1f3d48323b05e | 9c3cbc02b62b19fa9cca1a034b8512d659470010 | /qlearning_maze/Robot.py | 92024a6063264759f9ca7de112d3b7f1d5d559af | [] | no_license | SongShawn/MachineLearning | b3da75e68416d3257bce634b930b568ae781076d | b7330eff9ce511dc3e99f41bff8a4c702620d454 | refs/heads/master | 2022-12-05T14:37:52.851134 | 2019-07-09T09:11:18 | 2019-07-09T09:11:18 | 157,948,562 | 0 | 0 | null | 2022-11-22T01:39:22 | 2018-11-17T03:53:15 | Jupyter Notebook | UTF-8 | Python | false | false | 5,454 | py | import random
import numpy as np
import math
import os
import copy
class Robot(object):
def __init__(self, maze, alpha=0.5, gamma=0.9, epsilon0=0.5):
self.maze = maze
self.valid_actions = self.maze.valid_actions
self.state = None
self.action = None
# Set Parameter... | [
"SongShawn@github.com"
] | SongShawn@github.com |
fdfac35692f100cf285576edc13121121d0f7283 | f2174a48badf14fbedf8da3c8a5f83f0c8e4ae16 | /SPConvNets/trainer_3dmatch.py | a377a87ac475049f2b9e6d381967245da8998f4a | [
"MIT"
] | permissive | XYZ-99/EPN_PointCloud | e766aa9c4f9fce378492c660ef7f702278c591eb | db91de7e537fae480077aff8d9fd0df9bb45903c | refs/heads/main | 2023-05-07T09:10:19.626723 | 2021-05-18T02:23:53 | 2021-05-18T11:56:00 | 367,233,494 | 0 | 0 | MIT | 2021-05-14T02:58:30 | 2021-05-14T02:58:30 | null | UTF-8 | Python | false | false | 9,546 | py | from importlib import import_module
from SPConvNets import FragmentLoader, FragmentTestLoader, PointCloudPairSampler, Dataloader_3dmatch_eval
from tqdm import tqdm
import torch
import vgtk
import vgtk.pc as pctk
import numpy as np
import os
import os.path as osp
class Trainer(vgtk.Trainer):
def __init__(self, opt)... | [
"chw9308@hotmail.com"
] | chw9308@hotmail.com |
70e6f1310dd58ca95bbcd6e0f5213a0df17dcfba | 4b9014cf4ed3bb512e7de1fccd04b8945fcb19a6 | /enemy.py | 3f968e71899624f89fce0ad4601f6281e293ae1d | [] | no_license | supreme1902071/1902071.github.io | e640ffe0ec099353f091be35dfef50f199a9fa60 | ac33263fa37c469165c8175fc9aefe2a3c176fd5 | refs/heads/main | 2023-06-07T22:53:02.961934 | 2021-07-01T09:21:40 | 2021-07-01T09:21:40 | 381,974,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,691 | py | import pygame
from random import * # 创建随机数模块
class SmallEnemy(pygame.sprite.Sprite):
def __init__(self, bg_size): # 构造函数,传入对象和背景大小
pygame.sprite.Sprite.__init__(self) # 调用父类(Sprite)的构造函数
self.image = pygame.image.load("images/enemy1.png").convert_alpha() # 创建图像
# 加载摧毁图片
... | [
"1017110347@qq.com"
] | 1017110347@qq.com |
714954d08ba02518407e7f3e2aed040adb3d741f | 53a48e74508e615173493436eb34b7f8f6eefd96 | /web_api/project/schema.py | eb8bf79a81e863204db9ed39ca6fcb98781c1675 | [] | no_license | williamstrong/ForestArtBackEnd | 4f82cb3b663c586238b3f9d6421ece8227f4755a | f2d69547d948e731b1b87b5acd17ae52156614e6 | refs/heads/master | 2020-03-22T17:10:41.809137 | 2018-08-23T18:30:57 | 2018-08-23T18:30:57 | 140,378,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | import graphene
import image_api.schema
class Query(image_api.schema.Query, graphene.ObjectType):
pass
schema = graphene.Schema(query=Query)
| [
"william.strong@me.com"
] | william.strong@me.com |
ecfe49b03baa1334ccc75a2b3bdbf0eb1e4e241a | 4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422 | /_0163_Missing_Ranges.py | b5c8d5b3ad79b18657c10fbcb233bf4e9f0f2ccd | [] | no_license | mingweihe/leetcode | a2cfee0e004627b817a3c0321bb9c74128f8c1a7 | edff905f63ab95cdd40447b27a9c449c9cefec37 | refs/heads/master | 2021-06-19T07:46:46.897952 | 2021-05-02T05:13:17 | 2021-05-02T05:13:17 | 205,740,338 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | class Solution(object):
def findMissingRanges(self, nums, lower, upper):
"""
:type nums: List[int]
:type lower: int
:type upper: int
:rtype: List[str]
"""
res = []
for x in nums:
if x == lower:
lower += 1
elif lo... | [
"10962421@qq.com"
] | 10962421@qq.com |
4aa90e4762ebc9bc01901de23e573ec8e5b9bca2 | da9942c175c7289ff9ad1e8de0fb817ff2103292 | /62.py | 3a9dc97ed2467f894184da448ff2fe60116df59a | [] | no_license | db2398/set7 | 325acf2415642a82b6c0efb48142ed65208f6049 | fa5a2e4b75344368225e60da7a1acf27c522c692 | refs/heads/master | 2020-06-14T14:33:04.014545 | 2019-07-03T11:18:53 | 2019-07-03T11:18:53 | 195,027,788 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | t=input()
sd=set(t)
if(sd=={"0","1"}):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | db2398.noreply@github.com |
df297e6f7f59c6368f32e5ccd5de786138cb5f86 | 71a3616c900f1b2e385b37904c279ed63b09a150 | /code/function.py | b96e804efb5d73b6d159c1e4606a9472bab57ce6 | [] | no_license | svoss/masters-thesis | 21c7fd88e685310c74af8f9dce0357c71f1fe30f | 23c86a87aa1ee3376c3b825a5ebc9fe6b3b662f8 | refs/heads/master | 2021-03-27T20:41:15.310349 | 2017-09-05T11:26:18 | 2017-09-05T11:26:18 | 87,936,350 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import numpy
from chainer import cuda
from chainer import function
from chainer.utils import type_check
class MultiTaskLoss(function.Function):
"""Padding of an array"""
def __init__(self, factors):
self.factors = factors
self.factors_xp = None
def check_type_forward(self, in_types):
... | [
"svoss@i-sti.nl"
] | svoss@i-sti.nl |
843082097c900a540cea7686d7ee120b302d66b2 | 7a9cfd7b5a0047b58c0db1ab2d72af7edd714691 | /Regular Expressions/Regularexpression.py | ef1008ada9136935c2bd344570d0aaa2b6906751 | [] | no_license | nareshkodimala/Python | 230571d3603b55c109a5ca06c1bacf7a31283d88 | 0d340003c613692ecbefa64252858793407e6f87 | refs/heads/master | 2022-02-25T06:34:36.299009 | 2019-07-22T09:33:33 | 2019-07-22T09:33:33 | 197,910,128 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #this re.match() which finds only first matched string otherwise it gives None
# import re
# st="this is regular expresstion"
# result=re.match(r"this",st)
# print(result)
#
# which is gives matched name as it is by using group
# import re
# st="example of print name only"
# result=re.match(r"example",st)
# print(res... | [
"nareshkodimala111@gmail.com"
] | nareshkodimala111@gmail.com |
52bf7e4630283924775a27166d4d67d3905e5f2f | 9496842de3b1e530a25369a3beb360674346dd8e | /ex075.py | c326147534347373331e5c5d98864f7a52b4bb03 | [] | no_license | zuko56/Projetos_Python | 3e8a16080d5c158ff5f46d874653db462e8daa5f | 4ee3b609c0749b23facc35e48104d4ed272d4103 | refs/heads/master | 2020-05-15T06:03:16.224070 | 2019-04-23T14:18:48 | 2019-04-23T14:18:48 | 182,115,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | num = (int(input('Digite um número: ')), int(input('Digite outro número: ')), int(input('Digite mais um número: ')), int(input('Digite o último número: ')))
print(f'Vc digitou os valores {num}')
print(f'O valor 9 apareceu {num.count(9)} vezes')
if 3 in num:
print(f'O valor 3 apareceu {num.index(3) + 1} posição')
el... | [
"noreply@github.com"
] | zuko56.noreply@github.com |
8b778933bd82b1063c33bf1c3d6bfb6f56edd624 | ba3f38205d104afc33895b9a95a0e4603aaad79b | /faceborder/1.py | 9b0df2f0cac0b767a133e1b4dbf46b69d6fe1f24 | [
"MIT"
] | permissive | Jegan-Novitech/SkyLark-Novitech | 6705644facd013b2e902fefad3dde789ba738f3e | a7a9abdabf6567d28a4a2d926c42a45703d7f3d1 | refs/heads/master | 2023-01-19T09:10:47.873619 | 2020-11-24T05:21:42 | 2020-11-24T05:21:42 | 315,524,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,835 | py | from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.models import load_model
from imutils.video import VideoStream
import numpy as np
import argparse
import imutils
import time
import cv2
import os
img2 = cv2.imread... | [
"jegan@coitor.com"
] | jegan@coitor.com |
78f3e15ccac39d903ff575b24f5014d82f7f72b0 | 5ae5a01e71c6c82daf329df34ebdf4713986e588 | /djangoproject2/helloworld_project/settings.py | c570de6bad441bc83613e85c6a8fca1486ea6d48 | [] | no_license | rupeennaik/DjangoLearnings | aac9cbfc937c722eaa600209130ff91d82e9b6b1 | c84ca5df2ed3baf0686ba7c6c5f09663b9f4c404 | refs/heads/master | 2023-05-01T05:57:11.653928 | 2019-11-29T17:19:10 | 2019-11-29T17:19:10 | 222,110,470 | 0 | 0 | null | 2023-04-21T20:41:57 | 2019-11-16T14:23:40 | Python | UTF-8 | Python | false | false | 3,234 | py | """
Django settings for helloworld_project project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
i... | [
"rupeennaik85@gmail.com"
] | rupeennaik85@gmail.com |
eec8fe6e2f22fd18ff0f380dd0c780a1162a9cc0 | 3721d5d0c6f041323db876f1fa167b0f1f7878cf | /polls/views.py | 0ec3cc718dc4174aff399eefed5159d22f9563b5 | [] | no_license | SemieZX/mysite | e76e7964dbed8728f6efea161a3c3b83b6361964 | 06e6b1d577b2da1c91e717dea82a2462309e660d | refs/heads/master | 2023-06-09T19:45:50.204551 | 2021-06-29T15:51:04 | 2021-06-29T15:51:04 | 381,083,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("This is paul's poll web")
def detail(request, question_id):
return HttpResponse("You're looking at question %s." % question_id)
def results(request, question_id):
... | [
"18846031359@163.com"
] | 18846031359@163.com |
a149aaf98e52f7341e3dcc68f0efb14590b43c19 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02700/s274282920.py | 922c558418997e6ed17552a908b8b8cb32996882 | [] | 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 | 168 | py | A,B,C,D = (int(x) for x in input().split())
while True:
C -= B
if C <= 0:
print('Yes')
break
else:
A -= D
if A <= 0:
print('No')
break | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d850054b9c83525bc9a607e92ae0868b85845841 | 7d23614beeb6d9cdd9b1b7fe74d8919043b00985 | /hadoop/mapreduce/distinct_values/map.py | dd9bdd3085534eecdf577d5f10ff9fea7afa7723 | [] | no_license | AnastasiiaNovikova/stepic | 427c9cb97d944be16878015007bc4108946f74f4 | 5d311ea0e4d71c81161564a634d0011f9f2fc671 | refs/heads/master | 2021-05-07T16:18:24.346156 | 2016-04-08T19:08:35 | 2016-04-08T19:08:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import sys
for line in sys.stdin:
(key, values_str) = line.strip().split("\t")
values = values_str.split(",")
for value in values:
print(key, ",", value, "\t", 1, sep="")
| [
"mike.plekhanov@gmail.com"
] | mike.plekhanov@gmail.com |
76986032d06fbe9028e167dcf91e9552021d58ec | f9951087552808bdb5b045f627c7b3eb0a7019cc | /homeworks/hw03/src/widgets.py | 5c99146ce06a2685dff092dc9838d7ffb85631c3 | [] | no_license | ZaydH/cmps242 | 6933f7ba2b3609669b898d2afcbea17a4aa85c19 | d618d0a7b06998a4b8a43fc41c36e1b3094d6153 | refs/heads/master | 2022-03-02T11:31:54.598754 | 2019-09-11T00:36:05 | 2019-09-11T00:36:05 | 105,210,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,922 | py | from IPython.display import Javascript, display
import ipywidgets
import const
def run_all(_):
# noinspection PyTypeChecker
display(Javascript('IPython.notebook.execute_cells_below()'))
k_slider = ipywidgets.IntSlider(
value=10,
min=2,
max=20,
step=1,
disabled=False,
continuous_update=False,
orien... | [
"zhammoud@ucsc.edu"
] | zhammoud@ucsc.edu |
b56a9efa0e36bccedee67abd895b45d54be4114e | a259b8e6fbac1bc4ff26e18e6709829ca1eb1f3d | /a02_TextCNN/word_cnn.py | 4abe6257a679f75f96fc73a93cde539a3dddd251 | [] | no_license | godkillok/daguan | 37fef2fcb3b47b9a73dfc137e148bc90ba083bfc | c28c4bf8bc4cae22fc1b6491e5e46e5de7a5caf6 | refs/heads/master | 2020-03-25T00:20:35.446593 | 2018-12-02T16:24:53 | 2018-12-02T16:24:53 | 143,181,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,922 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import numpy as np
import re
import os
import json
# for python 2.x
# import sys
# reload(sys)
# sys.setdefaultencoding("utf-8")
flags = tf.app.flags
flags.DEFINE_string("model_dir", ".... | [
"fujianhaowawa@163.com"
] | fujianhaowawa@163.com |
6b854b39440765b0f5c80e3c3f73c5fdf6d4f8b8 | 4d10250b7ce80730414468e5e0060a207253a6d0 | /jplephem/test.py | bc8ec152f0e375d2117b0930f489d0e20a305d78 | [] | no_license | NatalieP-J/python | c68fdb84a6c9c432b34e57ae4e376f652451578a | c74bcfabde4704939550875bc42fc3e8a5dbc5bf | refs/heads/master | 2021-01-23T03:08:06.448979 | 2013-08-21T04:04:11 | 2013-08-21T04:04:11 | 10,916,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | """Tests for ``jplephem``.
See the accompanying ``jpltest`` module for a more intense numerical
test suite that can verify that ``jplephem`` delivers, in a large number
of cases, the same results as when the ephemerides are run at JPL. This
smaller and more feature-oriented suite can be run with::
python -m unit... | [
"natalie.price.jones@mail.utoronto.ca"
] | natalie.price.jones@mail.utoronto.ca |
c3b4cea182ae3b16c34f84f478d79d361164906d | 05a194d887c0ab9f1bc0041ac2287f1b8dff2bd6 | /src/sms/schemas/send.py | 5584fe7ca7f3f1fcd221c25cb8d821aa3cdc8dc1 | [] | no_license | athletictools/sms-gateway | d70842890b5e7a471e48eaa13a4ff90d855e725a | ed89ccc88579b3260db8f010a3606952afe55080 | refs/heads/master | 2023-05-03T01:22:55.027935 | 2021-05-26T11:01:07 | 2021-05-26T11:01:07 | 366,818,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from typing import List, Optional
from pydantic import BaseModel
class Message(BaseModel):
id: str = None
phone_no: str
text: str
class SendRequest(BaseModel):
messages: List[Message]
| [
"evtatarintsev@ya.ru"
] | evtatarintsev@ya.ru |
5b08c298bbe51fb0bf56a0b0df1fd5e0e280b3cd | ab741694f394a50b6085102fbbbcd7fff336a604 | /5/part_two.py | 4192b1cc0a778f56ef325f24195b079d568f6287 | [] | no_license | KDercksen/adventofcode18 | aa7259fdb2ba153c6d6586986e21cd9e3a316468 | 54feeb5c5b82b7b117c887a9a459b50ad0726efe | refs/heads/master | 2020-04-09T02:09:29.840314 | 2018-12-10T10:09:59 | 2018-12-10T10:09:59 | 159,930,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from string import ascii_lowercase
def react(text):
i = 0
while i < len(text) - 1:
if abs(ord(text[i]) - ord(text[i + 1])) == 32:
del text[i : i + 2]
i -= 1
else:
i += 1
i = max(i, 0)
return len(tex... | [
"mail@koendercksen.com"
] | mail@koendercksen.com |
d5a140b811fe5a8c23c9eb3d8e15902576a1fd05 | cde24904de0830ee9f58c16969683f6eed76883b | /Chapter 7/number-analysis-program.py | 4d19979f969ecfc0b5ce2efdd957f9c991d438e1 | [] | no_license | stephenmoye/Python-Programming-Projects | d205ee34a99c4a4ee4555fe7b751e8576e665d40 | 5e8a6562ad86d4647af9deda7fb1386f1a100b0f | refs/heads/main | 2023-01-22T15:40:20.378504 | 2020-12-10T05:24:53 | 2020-12-10T05:24:53 | 320,168,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | # Number Analysis Program
# Design a program that asks the user to enter a series of 20 numbers. The program should store
# the numbers in a list then display the following data:
# The lowest number in the list
# The highest number in the list
# The total of the numbers in the list
# The average of the numbers in the l... | [
"stephenmoye@gmail.com"
] | stephenmoye@gmail.com |
a72dbf230d91deba8ed46f91784cde7bfef572d9 | ced1774c423247543413cb2d8bf2183bfe90b5a8 | /markovly.py | e6a7da219e30949b3837ea1948b2bd9ad2738a40 | [] | no_license | leegenes/markovly | 39eb5b8fdf0b580215ac2b272bd8d2deaeac1356 | 05f8c85c175e212c91f1f094686f12bdf80eddb3 | refs/heads/master | 2022-12-20T00:45:28.920488 | 2017-11-10T19:54:35 | 2017-11-10T19:54:35 | 99,361,418 | 0 | 0 | null | 2022-12-08T00:42:16 | 2017-08-04T16:32:19 | Python | UTF-8 | Python | false | false | 2,801 | py | from random import choice
class Markovly:
def __init__(self, text=None, n=None, token_type="word"):
self.text = text
self.ngram = n
self.token_type = token_type
self.tokens = None
def tokenize(self):
if self.token_type == "char":
text_pieces = list(self.tex... | [
"haugenlee@leegenes.local"
] | haugenlee@leegenes.local |
c345de227b11ef2439e018bdd985a7e7f822347e | 66ad57b680fb7cb1b9835319477510709ed9f9de | /Ejercicio3.py | 97807574241307f01d7b11063ec1383057c0d9c6 | [] | no_license | ayanez16/Tarea-1-Estructura | d919ee9ec69dcb6afd404a643e4aa87b9619bb43 | c61cbb6e195f3aeeb41db296212bb740a28fc619 | refs/heads/main | 2023-06-08T03:13:45.011628 | 2021-06-30T02:41:23 | 2021-06-30T02:41:23 | 381,538,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | #Un vendedor recibe u sueldo base mas un 10% extra por comision de sus ventas.
#El vendedor desea saber cuanto dinero obtendra por concepto de comisiones por las tres ventas que realiza en el mes y el total que recibira
#en el mes tomando en cuenta su sueldo base y sus comosiones.
class Ejercicio3:
def run():
... | [
"noreply@github.com"
] | ayanez16.noreply@github.com |
f59468a5e4143f0ff367cdc65d13c1808e6f1233 | 09f6c19a9b5717ba50f3cdefa914b0399939a58e | /1_introduction/fraction.py | 54a4090a92adc00772a998e3e6214998fcc53b90 | [] | no_license | prestidigitation/algo_and_data_struc | ca5f16fec8553290d8e8e4136397569eebb8a1fd | 2ec6e178dee47e46e1be181fc66ddb6998c02df7 | refs/heads/master | 2021-01-10T04:38:36.071922 | 2016-10-25T19:10:51 | 2016-10-25T19:10:51 | 46,324,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | def gcd(m, n):
while m % n != 0:
old_m = m
old_n = n
m = old_n
n = old_m % old_n
return n
class Fraction:
def __init__(self, top, bottom):
self.num = top
self.den = bottom
common = gcd(self.num, self.den)
self.num = top // common
se... | [
"alexander.c.rowland@gmail.com"
] | alexander.c.rowland@gmail.com |
3671b258e8174b8e885023dbabd7a1416204cfd8 | 1cbc5c6771901edc3a304d312cbf5a4fd2c931a6 | /pandora-ckz/pandora/paypal/standard/pdt/admin.py | d7f16cb27ac0cf62d8174d023ef13ae549fc6858 | [
"MIT"
] | permissive | williamlagos/django-coding | ed2a3dff2bf0bf36c1d799ad5746a2a1bd633726 | 246dc1aba32eae0b035c407de3e8fe954606b776 | refs/heads/master | 2023-03-29T05:39:15.311890 | 2020-12-11T01:13:22 | 2020-12-11T01:13:22 | 17,301,344 | 0 | 0 | MIT | 2021-03-31T20:18:54 | 2014-02-28T22:07:36 | Python | UTF-8 | Python | false | false | 2,270 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from string import split as L
from django.contrib import admin
from paypal.standard.pdt.models import PayPalPDT
# ToDo: How similiar is this to PayPalIPNAdmin? Could we just inherit off one common admin model?
class PayPalPDTAdmin(admin.ModelAdmin):
date_hierarchy = '... | [
"william.lagos@icloud.com"
] | william.lagos@icloud.com |
de309f144a2f38cb7e70445e21b178ee03526f31 | 3a7eeceb14859c4cf9f612f0c04e9c5efafb7191 | /solutions/using-loops/exercise_15a.py | cf4f9637333d72259bafe93146565a8d85ebef05 | [] | no_license | cs50puyo/check50ap | ebd998fcbca8489a89dc71e40ca3fcec014c8011 | 6fd220c5e8434e84e2cd90af178fb6ca5b705659 | refs/heads/master | 2020-03-10T02:00:58.819373 | 2018-05-02T18:31:58 | 2018-05-02T18:31:58 | 129,125,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | SIZE = 7
i = 0
while i < SIZE:
j = 0
while j < SIZE:
if i >= j:
print('T', end='')
j += 1
i += 1
print()
| [
"luisvf@bandofcoders.com"
] | luisvf@bandofcoders.com |
b3ba9461e231113f9206accdb8553163b1022ef2 | 7ca659eefd6eeddb4f2f1f40d6cd99a5a9a99504 | /AUInference.py | a0765ada710622e392e9c33b2ca001c59f4f94c6 | [] | no_license | JaineBudke/fake_emotion_analysis | 519071893dc1cbad6a77135e73955c5568827271 | 53d5c3dc7adeac280d95eafbb2b39ee9da6466c2 | refs/heads/master | 2020-07-29T11:42:40.871359 | 2019-10-15T22:11:14 | 2019-10-15T22:11:14 | 209,786,749 | 0 | 0 | null | 2019-10-15T22:11:15 | 2019-09-20T12:35:00 | Python | UTF-8 | Python | false | false | 4,404 | py | import numpy as np
class AUInference:
shape = np.empty(68)
neutral_shape = np.empty(68)
features = {}
neutral_features = {}
def __init__(self, shape, features, neutral_shape, neutral_features):
self.shape = shape
self.features = features
self.neutral_shape = neutral_shape
self.neutral_features = neut... | [
"jainebudke@hotmail.com"
] | jainebudke@hotmail.com |
b416e000c05055c966ef50e7bead35df903c7b05 | 8b8a06abf18410e08f654fb8f2a9efda17dc4f8f | /app/request_session.py | f6a0cb38f59f5353b537a1d430baac107a5c80f0 | [] | no_license | corporacionrst/software_RST | d903dfadf87c97c692a821a9dd3b79b343d8d485 | 7a621c4f939b5c01fd222434deea920e2447c214 | refs/heads/master | 2021-04-26T23:23:27.241893 | 2018-10-05T23:21:34 | 2018-10-05T23:21:34 | 123,985,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | from sistema.usuarios.models import Perfil
def getPerfil(request):
return Perfil.objects.get(usuario=request.user)
# def getStore(request):
# return Perfil.objects.get(usuario=request.user).tienda
def OKadmin(request):
if request.user.is_authenticated():
if "ADMIN" in Perfil.objects.get(usuario=request.user)... | [
"admin@corporacionrst.com"
] | admin@corporacionrst.com |
d93b089cdb366b97b6e9780bb893d5dff97c7b9e | 73f5b5b136ac4cda1a55489e1757366dea916867 | /run_seq2seq.py | 9e651c3421a832b0e019f9efefe89a73f3dee965 | [] | no_license | dowobeha/pytorch_examples | 9c4b4a808be9864c34cf5fd805f495a8592a9eff | b13886e23503862cbab90db75879ec79f0844ef7 | refs/heads/master | 2020-07-26T00:05:52.752334 | 2019-10-04T19:33:44 | 2019-10-04T19:33:44 | 208,463,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,522 | py | from typing import List, Tuple
import torch
from torch.utils.data import DataLoader
from data import PigLatin
from seq2seq import EncoderWithEmbedding, DecoderWithAttention, verify_shape
def run_model(*, path: str, saved_encoder: str, saved_decoder: str, batch_size: int, device_name: str) -> None:
from torch.nn... | [
"dowobeha@gmail.com"
] | dowobeha@gmail.com |
28baac5a621d65ae8bfeae46ed657209afc3d95a | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/shared/utils/requesters/tokenrequester.py | 1ace65ad86b0304adeff25edcc9173651083c9f2 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,878 | py | # 2015.11.10 21:29:45 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/utils/requesters/TokenRequester.py
import cPickle
from functools import partial
import BigWorld
from adisp import async
from constants import REQUEST_COOLDOWN, TOKEN_TYPE
from debug_utils import LOG_CURRENT_EXCEPTION
from T... | [
"info@webium.sk"
] | info@webium.sk |
08aaabf095c1e32c30f69a14352a7fc8688d018d | 62e5ad135fb48354a7ba3c9c58f61e156a228c18 | /XianyuCrawler/asyxianyu.py | 6967f507ec248e4d419c150975ba4e8bbe3aa26d | [
"MIT"
] | permissive | mn3711698/ECommerceCrawlers | 70abba3baebb389b0ab4d3e007f207bc82bd94c4 | c6964ba058e3a194bc37fe1674c9f71840f95d63 | refs/heads/master | 2020-11-24T12:30:42.004909 | 2019-12-03T03:35:10 | 2019-12-03T03:35:10 | 228,143,883 | 3 | 1 | MIT | 2019-12-15T07:13:16 | 2019-12-15T07:13:16 | null | UTF-8 | Python | false | false | 6,746 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__author__ = 'AJay'
__mtime__ = '2019/4/26 0026'
"""
import asyncio
import aiohttp
import time
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__author__ = 'AJay'
__mtime__ = '2019/4/24 0024'
"""
#-*- coding:utf-8 -*-
import time
import requests
import os
import js... | [
"1599121712@qq.com"
] | 1599121712@qq.com |
773e5d4335160199bf2a416ed4a155016341821d | d90a9cdfb8feb3a5e12f689aefcd39727ab3a05b | /wordlist/create_sqlite_db.py | f57e4d5d89b41ce3ccc479d9c9f804d5373d445c | [] | no_license | etuardu/mnemofon | b40034aac800a67c2220a415bb274d3686c3aa4c | d153015d4011465e96dcf4049576d4abc2340dee | refs/heads/master | 2021-08-08T21:23:30.926939 | 2021-01-30T00:42:38 | 2021-01-30T00:42:38 | 82,075,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | import word_2_digits
import sqlite3
WORDLIST_FILENAME = "diz"
def words_gen():
with open(WORDLIST_FILENAME) as wordlist:
for word in wordlist:
yield word.strip()
conn = sqlite3.connect('diz_ita.db')
c = conn.cursor()
c.execute("CREATE TABLE words (word text, digits text)")
for word in word... | [
"edonan@gmail.com"
] | edonan@gmail.com |
0b85630a9123b498e5f50e15d65fb027b4057127 | 1c6b5d41cc84c103ddb2db3689f61f47eaa2c13b | /CV_ToolBox-master/VOC_2_COCO/xml_helper.py | c97bb05d81b946aa96ae1e1ee0c4209f0f9cc9a7 | [] | no_license | Asher-1/DataAugmentation | e543a93912239939ccf77c98d9156c8ed15e1090 | c9c143e7cccf771341d2f18aa11daf8b9f817670 | refs/heads/main | 2023-07-01T22:49:10.908175 | 2021-08-13T10:01:56 | 2021-08-13T10:01:56 | 395,602,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,300 | py | # -*- coding=utf-8 -*-
import os
import xml.etree.ElementTree as ET
import xml.dom.minidom as DOC
# 从xml文件中提取bounding box信息, 格式为[[x_min, y_min, x_max, y_max, name]]
def parse_xml(xml_path):
'''
输入:
xml_path: xml的文件路径
输出:
从xml文件中提取bounding box信息, 格式为[[x_min, y_min, x_max, y_max, name]]
... | [
"ludahai19@163.com"
] | ludahai19@163.com |
9537234e130166034003d3a6fedd1c33e3c0ffc5 | 4dd786e85f2feee1024e20560a018924784abc11 | /bwt/lyndon/lyndon.py | 8e81e3d16003b691d9f88dbb4723603f88b4aa5d | [] | no_license | ushitora/bwt | c3c74b5da416d37df61a80be209df25322be84ce | 9a2b339f7af4ca16501acf46d1e4958eda5c69c1 | refs/heads/master | 2020-06-27T02:32:43.781286 | 2019-08-01T07:00:30 | 2019-08-01T07:00:30 | 199,820,940 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | def longest_lyndon_prefix(w):
"""
Returns the tuple of the longest lyndon prefix length and the number of repitition for the string w.
Examples:
abbaa -> Returns (3, 1)
abbabb -> Returns (3, 2)
"""
i = 0
j = 1
while j < len(w) and w[i] <= w[j]:
if w[i] == w[j]:
... | [
"sidebook37@gmail.com"
] | sidebook37@gmail.com |
0f24fe0e1003f8b0742368eac725fc370ae0b63b | aba6c403aa4b8fe1ba19d14669062172c413e29a | /Sem 4/ps/3.py | 7bd99c4fc5c2e88eda79317c6e645e3ebf5bcb73 | [] | no_license | rsreenivas2001/LabMain | 3aa38526a40eb0496ab27dbdbfefde966077a6a6 | 249adc5f3189169cf9ed696e0234b11f7d2c028d | refs/heads/master | 2021-07-06T19:21:30.819464 | 2021-04-05T17:07:49 | 2021-04-05T17:07:49 | 232,073,123 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | def frequency(str):
cnt = dict()
for ltr in str:
if ltr not in cnt:
cnt[ltr] = 1
else:
cnt[ltr] += 1
return sorted(cnt.items())
if __name__ == '__main__':
x = input("Enter String : ")
print(frequency(x)) | [
"rsreenivas2001@gmail.com"
] | rsreenivas2001@gmail.com |
c6a869682bd9bb5ff7d2e5ab7409e52b380e3514 | 748be6cf181d029d7616ce70b2ffcbb5524c578d | /mapreduce/runner.py | 12b7077b8aa2823ae8c2cf3ca56d04c730069f86 | [] | no_license | insomniacdoll/personal-python-utils | 343fc739ea31130f968a543e5ee03fa5467c4113 | 80661f53ceac00b29de40c45cdc62b274f4a5d98 | refs/heads/master | 2021-01-01T15:24:59.224129 | 2015-09-27T08:44:21 | 2015-09-27T08:45:12 | 27,001,964 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 1,384 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Author : insomniacdoll@gmail.com
import sys
import os
from utils import *
"""适用于streaming的 简单mapreduce框架
如果需要join请参见join_runner.py
"""
def run_mapper(mapper):
for line in sys.stdin:
line = line.strip('\n')
keyvalue = None
try:
... | [
"insomniacdoll@gmail.com"
] | insomniacdoll@gmail.com |
32fa5d654b8d77496ae5bd3378511c8de453eb12 | f39538277bbfa7d27c50134e7fc30a8d0d8d6249 | /TIPA_library/utils/pca_basic.py | 9a069779319bd38d83ed6ea40056734a4abcd231 | [] | no_license | deepneuroscience/TIPA | e835683117cbe5468649cde071f07f1e83e74071 | c14bbd3355be38b5f8e48f9ba1497ac8aea62032 | refs/heads/master | 2023-06-12T23:04:39.981220 | 2023-05-31T18:47:16 | 2023-05-31T18:47:16 | 204,941,025 | 14 | 4 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import numpy as np
from sklearn.decomposition import PCA
''' This is an example code for PCA projection
'''
def pca_basic(t2d_data_sequence):
# pca_input: 2184*(240*320)
t2d_data_height = t2d_data_sequence.shape[0]
t2d_data_width = t2d_data_sequence.shape[1]
t2d_data_sequence = t2d_data_sequence.... | [
"noreply@github.com"
] | deepneuroscience.noreply@github.com |
af6411894235babd02c92b06e8b27ff6dbf8d1af | 986e50caf0b48b9423114e56c18b6edbf50c0aaa | /mp3scrap/spiders/mp3crawl.py | 5d4ea622654e2da8426d5a1a4ebe4cc0eeb4558d | [] | no_license | arun-shaw/songsmp3-scrap | 6b7906331893ff3d91da0703c6624b10b25db110 | 5e5e5a09f1a81f7f28ffbd0de69cc0440d0f46ae | refs/heads/main | 2023-01-05T14:34:15.706912 | 2020-11-03T06:18:24 | 2020-11-03T06:18:24 | 309,592,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,891 | py | # -*- coding: utf-8 -*-
import scrapy
from ..items import Mp3MovieItem,Mp3SongsItem
class Mp3crawlSpider(scrapy.Spider):
name = 'mp3'
#allowed_domains = ['https://www.songs-mp3.net/']
start_urls = ['https://www.songs-mp3.net/5/indipop-mp3-songs.html']
domain = 'https://www.songs-mp3.net'
def pars... | [
"noreply@github.com"
] | arun-shaw.noreply@github.com |
a504526e7afcb6817c2878fa279d32e1dfc65ac6 | 72f5adc4b6f79dd40e975c86abcdbd3d0ccada86 | /venv/bin/pip3.7 | 3786525abb997c921a0c0979436550edefdc7960 | [] | no_license | katrek/flask_vacancy_parser | 77101604ec5bfeb47c009b9d8329b42d9d30bf4a | bbea4ae860bb78f7264b05e92c6664f8e4c4b3cf | refs/heads/master | 2023-01-11T11:58:09.275448 | 2019-08-29T06:36:53 | 2019-08-29T06:36:53 | 204,666,913 | 1 | 1 | null | 2023-01-03T12:19:03 | 2019-08-27T09:22:35 | Python | UTF-8 | Python | false | false | 420 | 7 | #!/Users/artemtkachev/PycharmProjects/flask_parser2/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"akatrek@gmail.com"
] | akatrek@gmail.com |
61725cec442d9ec8f82600d63aa62acb08937b54 | 21a58adb30eb54a344ae185891df7cf235396b6d | /Proyecto1/urls.py | e6070fd51d182c9d11ecf5ee9e9967df6398c1ce | [] | no_license | Erisjimver/django_proyecto1_practica | a460800a6439ccb7981eeb7415fd798d94625c5a | 1d236510c074a03f42a7d35922ff973d0da2f532 | refs/heads/master | 2020-08-06T16:27:24.992895 | 2019-10-06T05:05:44 | 2019-10-06T05:05:44 | 213,073,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | """Proyecto1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"erisjinver@gmail.com"
] | erisjinver@gmail.com |
03771c28af243c41e09a09630addbf700d35abaa | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /tools/android/native_lib_memory/parse_smaps.py | c167a327bfe8764e6dce320d671e151267c9aba7 | [
"Zlib",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"APSL-2.0",
"MIT",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 9,429 | py | #!/usr/bin/python
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Parses /proc/[pid]/smaps on a device and shows the total amount of swap used.
"""
from __future__ import print_function
import argpars... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
b73a8cf022db3964618300301bbb49bcdb1c282b | 10e3055ddf9c4e05b6f86fd1f0ee35309b3869be | /venv/bin/django-admin | 58c83d104f78ae24243d363e36bd3794f1295ae1 | [] | no_license | JKangel/xinpianchang | b1cc4963a4c7cee781a9364d41ce51a913fb7536 | e032375fc0fe978968f182555e36fa1d702cf27f | refs/heads/master | 2020-04-07T08:59:32.606515 | 2018-03-07T07:25:32 | 2018-03-07T07:25:32 | 124,197,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | #!/home/kangel/Learn/python/spider/xpc/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"j_juyongkang@163.com"
] | j_juyongkang@163.com | |
3b0564723412a2e743aabfd1ee3406838a99e044 | 4762906f4e2465026975a009665295c806f5a887 | /src/utils.py | a9eba8d6b8706e0569f151032508a8f52bd0477e | [] | no_license | sahil-m/dvc_session | 7c9e5c19f883da7be62f6f3c2d067e371d4af886 | ac44e1a160d35c8f5f0399a195dbea13a0b5da6f | refs/heads/master | 2022-05-30T00:26:43.735740 | 2020-05-04T08:02:27 | 2020-05-04T08:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import os
import matplotlib.pyplot as plt
import pandas as pd
import yaml
from dagshub import dagshub_logger
from joblib import dump, load
from sklearn.metrics import plot_confusion_matrix
from yaml import CLoader as Loader
def log_experiment(out_path, params: dict, metrics: dict):
with dagshub_logger(metrics_pa... | [
"Puneetha_Pai@external.mckinsey.com"
] | Puneetha_Pai@external.mckinsey.com |
6978dadae7ce2b51d7b567621e71a595e4bfc48f | da8d3c7a115768e796a0521d5400471ccb74cd1b | /photo/migrations/0012_auto_20200609_1002.py | 67b4a934743851b8729ceea082ea58cb91601ca5 | [] | no_license | malindu97/CS50Final | e52d386f0e15e310d5300550b27f0356dc9aed3f | d73d262e91f381a0bb719656f4760221d9aee499 | refs/heads/master | 2022-10-15T13:19:57.354559 | 2020-06-10T10:48:15 | 2020-06-10T10:48:15 | 271,025,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | # Generated by Django 3.0.6 on 2020-06-09 04:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('photo', '0011_auto_20200608_1615'),
]
operations = [
migrations.AddField(
model_name='images',
name='num_vote_down',... | [
"malindu.wick97@gmail.com"
] | malindu.wick97@gmail.com |
b1bd40fc3759540023329a1f40f62d02ebafc9e5 | f46df32e8e38370dc540952b9ab0a98477c65bc4 | /controllers.py | c5b03166bbc26d890b1c03f5b0132f6198b0229e | [] | no_license | suejungshin/zesty-api-backup | 95cac13da4b238e4f7d7b860f44372d3e1ef3547 | 835000fc2772aa22462f60dbe24c97675f9770d0 | refs/heads/master | 2022-12-07T09:21:07.758774 | 2020-03-25T06:50:53 | 2020-03-25T06:50:53 | 249,881,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | py | import models
import io
import geojson
import json
import urllib.request
from PIL import Image, ImageDraw
from pathlib import Path
path = Path.cwd()
def translate_coords(arr, bounds, size):
lon0 = bounds[0]
lat0 = bounds[1]
lon_scale = size[0] / (bounds[2] - bounds[0])
lat_scale = size[1] / (bounds[3]... | [
"suejungshin@Suejungs-MBP.attlocal.net"
] | suejungshin@Suejungs-MBP.attlocal.net |
aeb43f727bef3568d5d61348436f69e824c7c388 | e08caa6d3db87282ff88e31885be602f5a8f7607 | /week5/mytree.py | 83783646560af7261c07927238ed17b97891e87a | [] | no_license | alice-yang94/GetAheadProgram | c66ac732c6f467251a73246f906f9e774d8b783b | 9cc6a8904020d99ec648943b51051f4261e03ddf | refs/heads/master | 2022-04-04T08:45:36.212499 | 2020-02-17T12:12:01 | 2020-02-17T12:12:01 | 232,677,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | class Node:
def __init__(self, val, ifTerminate, children = None):
self.val = val
self.ifTerminate = ifTerminate
self.children = {}
self.depth = 1
if children is not None:
for child in children:
self.add_child(child)
self.depth = ma... | [
"aliceyang94@hotmail.com"
] | aliceyang94@hotmail.com |
9d274b04439cb4d82b16c15b0a53226f81f8972c | 94d7214427c44eb42a5202421cb4b1a11d8a9a07 | /travelism/agencies/models.py | eda988a32d4836422cb1be2cbb92d90282a4b0da | [] | no_license | alisoliman/travelism | 1357c8b3ad21fe00c9cd0007c9f45c0d5be5e8c7 | 4de747d430758c5cf6d586ce994c093e42c5341e | refs/heads/master | 2020-11-26T20:54:34.124100 | 2020-02-13T10:27:05 | 2020-02-13T10:27:05 | 229,203,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from django.db import models
# Create your models here.
class Agency(models.Model):
name = models.CharField(max_length=128)
brief = models.TextField()
cover_picture = models.ImageField()
rating = models.FloatField(default=0)
def __str__(self):
return self.name
| [
"ali.soliman95@gmail.com"
] | ali.soliman95@gmail.com |
bfee922efb85a81a17dfa95c624fc265aa22db08 | 3f0a5787dc4a417648ae4297724aed5a8fa0d318 | /005-ray/10-ray-serving-tutorial/app.py | a20835200875abc2f60d5877f8c486428cea8957 | [] | no_license | AndersonJo/code-snippet | d6d55574ff77e1c9d68f6f2e735096264ddac3ad | 856d97ac617ea2ae45b301a14a999647abec1a0c | refs/heads/master | 2023-05-10T19:44:21.953081 | 2023-02-16T13:12:51 | 2023-02-16T13:12:51 | 177,695,307 | 2 | 1 | null | 2023-05-01T21:46:50 | 2019-03-26T01:51:17 | Jupyter Notebook | UTF-8 | Python | false | false | 1,413 | py | from ray import serve
from starlette.requests import Request
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer
@serve.deployment(num_replicas=2, ray_actor_options={"num_cpus": 1, "num_gpus": 0})
class Translator:
def __init__(self):
# Load model
self.tokenizer = M2M100Tokeni... | [
"a141890@gmail.com"
] | a141890@gmail.com |
64d649aba8a3b3ae9ccf92ddc4d8ba2c1699a86b | d72d43d32f4f191a2e292b95decfa3979c585b64 | /bubbleSortIterationCount.py | f1e4a1d7b126c4d5e20418f7ed19dcb9bc9859a3 | [] | no_license | Maxyee/Python_Basic_Codes | 38db3cf9bf35f217c5c485f77e561d355b7cad5b | a14b17ad622f2bbfa774823b3400c263717a0e6f | refs/heads/master | 2020-03-22T01:42:03.614491 | 2019-06-17T08:28:54 | 2019-06-17T08:28:54 | 139,323,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | def print_swaps(arr):
swaps = 0
length = len(arr)
for i in range(length - 1):
for k in range(length - i - 1):
if arr[k] > arr[k + 1]:
arr[k], arr[k + 1] = arr[k + 1], arr[k]
swaps += 1
print(swaps)
N = int(input())
a = [int(x) for x in input().split()... | [
"eyaminkhan00@gmail.com"
] | eyaminkhan00@gmail.com |
f6dffe88f3099ec4366c017e88d66f5268532180 | 4029d6780b91725bd14592ce07e1f7e4f069c8f2 | /Main.py | 7f7a1e1130609541fef8d28a7b26074c288f03bf | [] | no_license | AdamJSoftware/Convert_CSV | c31b5d79bc6265fb55a09384d95af5357879ce57 | 576fe307035f4a999e3cb18b492a0ba56f834588 | refs/heads/master | 2020-05-30T23:10:06.705308 | 2019-06-03T19:18:04 | 2019-06-03T19:18:04 | 190,009,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | import GUI
if __name__ == '__main__':
GUI.main()
| [
"42972871+ViteloSoftware@users.noreply.github.com"
] | 42972871+ViteloSoftware@users.noreply.github.com |
8ecf7bb0305c592d0b6011e7db8ef79bcf6f8662 | 7844d638111af81f9c8ff77b3808b27a130454e0 | /kws_test/feature/dct.py | 4a58bca56dce4b9644ff979a0dc33c79cdd177c0 | [] | no_license | tu1258/kws_test | 1bb9d664f967744aab2b8537dd6fe4bebb50f17d | b39bda2dc7a7ab0ce1c2d1c8e6a069159a44e9da | refs/heads/master | 2022-12-23T14:21:12.550151 | 2020-09-30T08:35:40 | 2020-09-30T08:35:40 | 299,853,532 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | # coding=utf-8
# Copyright 2020 The Google Research 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 applicab... | [
"noreply@github.com"
] | tu1258.noreply@github.com |
d01e43573608281fc31233bbcdb6aa0b8621b9ca | 63d722cfc5749049c72e1f3c075ce95b99baa257 | /lessonOne.py | ae73b87186208ddbb0df14ce55cb9c7f546b46aa | [] | no_license | kdkimmer/hello-google-app-engine | d90b415dee0eeb78dc6e6c1086b667c104615358 | a9f70a1e8ff1b4104d6269b4f2c035210b20e0fb | refs/heads/master | 2021-01-20T17:20:16.908502 | 2016-08-21T19:56:29 | 2016-08-21T19:56:29 | 65,671,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | import webapp2
form="""
<form method = "post" action= "/testform">
<input name="q">
<input type="submit">
</form>
"""
class TestHandler(webapp2.RequestHandler):
def get(self):
q = self.request.get("q")
self.response.write(q)
#self.response.headers['Content-Type'] = '... | [
"sageykat-123@yahoo.com"
] | sageykat-123@yahoo.com |
f0d8fc5a6739e6510b5819ce8a9f6155c79f922b | f8b5aafac15f408a48fabf853a918015c927e6fe | /backup/virtualenv/venv27/lib/python2.7/site-packages/openstackclient/identity/v3/role.py | 0376070907d96274184e4a7d75690462833415c3 | [] | no_license | to30/tmp | bda1ac0ca3fc61e96c2a1c491367b698d7e97937 | ec809683970af6787728c2c41f161f416155982a | refs/heads/master | 2021-01-01T04:25:52.040770 | 2016-05-13T16:34:59 | 2016-05-13T16:34:59 | 58,756,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,740 | py | # Copyright 2012-2013 OpenStack Foundation
#
# 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 la... | [
"tomonaga@mx2.mesh.ne.jp"
] | tomonaga@mx2.mesh.ne.jp |
be480facdbf7f43c654461fa2321b830698119e3 | 25112bd560d94eb34d1b11c5e074435e08e521d5 | /space_invaders.pyde | 365f9cde2b07576a917211e2aa9985fde344bd10 | [] | no_license | villa-version/space_invaders | 586bdb09b3604f6cd09c37f0e06012aa2d0221d4 | 3a66f72182230ee8535b6ec37b28a26a84a8e328 | refs/heads/main | 2023-03-20T06:03:43.573906 | 2021-03-07T11:36:22 | 2021-03-07T11:36:22 | 341,692,041 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | pyde | from MainConstructor import MainConstructor
main_constructor = None
add_library('minim')
def setup():
size(800,600)
imageMode(CENTER)
rectMode(CENTER)
ellipseMode(CENTER)
textSize(24)
minim_music = Minim(this)
mainMenuSound = minim_music.loadFile('sound/soundForSpaceInvMainMenu.wav')
... | [
"volinetsilia@gmail.com"
] | volinetsilia@gmail.com |
03b4afb727f1ffbae815e5573669e969ac331f09 | bf164105f07c4412160cc76eccef106344b36fe8 | /code/setup.py | 82056f7917168b45959aa945008a721faa189685 | [] | no_license | adhuri/DICYRT | 67d36da2f8f76ce1db6bee75f415642f3b9d68ea | cd456129f9b9645aec04dd61272a67735cb50585 | refs/heads/master | 2020-04-18T01:31:07.261263 | 2017-03-19T06:12:24 | 2017-03-19T06:12:24 | 67,916,708 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | __author__ = 'ANIKETDHURI'
class DICYRT():
"""
Contains config details for :
MongoDB
"""
| [
"aniket.dhuri@gmail.com"
] | aniket.dhuri@gmail.com |
26d15922d0ecfedcaf2173747381f0a5c15f707c | 12bbad5d5f81f0c9b11fc9db3dee69b901f44469 | /api/models.py | b9eb84a065c44cc4f0ff0d856770f641198a8578 | [] | no_license | youflox/news | d5e0432e57093d6f4c49015d361ffe01cbd1c48e | e0e829727ac046f36fdeaf9335002c1c2c83684d | refs/heads/master | 2023-01-08T21:07:11.295421 | 2020-11-06T07:47:57 | 2020-11-06T07:47:57 | 309,968,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Article(models.Model):
title = models.CharField(max_length=200)
description = models.CharField(max_length=200, blank=True)
paragraph = models.TextField(null=False)
author = models.For... | [
"youflox@gmail.com"
] | youflox@gmail.com |
48dd32f18373f2b389e32630ded0044734fd4b19 | 4d44674625100e62be2bb5033339fb641bd454ac | /snippet/example/python/project/project/db/sqlalchemy/models.py | 782d92b417a09747274a173923da7001f80a4da4 | [
"MIT",
"Apache-2.0"
] | permissive | xgfone/snippet | 8b9004a649d2575b493a376c4b4f3d4a7c56a4b0 | b0b734dd35478b7ef3e6193623981f4f29b6748c | refs/heads/master | 2022-03-18T12:41:09.033144 | 2022-02-20T15:26:35 | 2022-02-20T15:26:35 | 41,615,643 | 158 | 61 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | # coding: utf-8
from __future__ import absolute_import, print_function, unicode_literals, division
import logging
from sqlalchemy.ext.declarative import declarative_base
from oslo_db.sqlalchemy import models
from sqlalchemy import create_engine
from sqlalchemy import Column, String, Integer, DateTime
from sqlalchemy.... | [
"xgfone@126.com"
] | xgfone@126.com |
d20d839db4208ddee9e1c7dd031a34f7f551e9a3 | 709dd4adba6ab990162660bf426ebb4cf8e35dca | /app/controller.py | 78ae4136b5d540cae15fd2cc3072443274f4c5f2 | [] | no_license | johnbomba/giz-tteller | ffefab0fa06bb99d91f6e6815d36d1c460679b05 | 441f6d10eefe15362cd0727165e4fd2e59ba393a | refs/heads/master | 2020-09-13T13:01:51.821679 | 2019-11-20T19:53:41 | 2019-11-20T19:53:41 | 222,789,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | from app import view # imports from module folders are relative to the file being executed by python3 since main.py is at the top level, imports need to come from app. even for the files inside of app
from app import model
def run():
model.load()
while True:
user_account = login_menu() # return... | [
"bomba.john@gmail.com"
] | bomba.john@gmail.com |
a1f9f2880c5805d0642099f67fac1e61760b9185 | c342d39a064441d7c83b94e896dfbac1dc155666 | /setup.py | cc22030282c6d003af194c2c298389e898f5d44d | [
"MIT"
] | permissive | arsho/generator | a67d876bf9dded9bacdbd50a9ab3999f90c81731 | 5dc346850ec99a47ca7c074e3e5dec0b5fff30e2 | refs/heads/master | 2021-01-01T16:54:41.955771 | 2017-07-21T14:37:34 | 2017-07-21T14:37:34 | 97,951,569 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | # -*- coding: utf-8 -*-
from setuptools import setup
def readme():
with open('README.rst', encoding='utf8') as f:
return f.read()
setup(name='generator',
version='0.0.1',
description='Generator is a package for generating strong password and check strength of user defined password.',
long_... | [
"shovon.sylhet@gmail.com"
] | shovon.sylhet@gmail.com |
8f09ee1c175eaa67db58c061ed1f27c69414af94 | 20ade86a0c0f0ca6be3fae251488f985c2a26241 | /exp/analyze_5.py | d038d5fa9c073324d036a898b7df5cf86f573c6a | [] | no_license | adysonmaia/phd-sp-static | 69344fdd4edb4c216e4b88b0193308b33a30e72c | 79038d165c19f90e1f54597f7049553720f34c74 | refs/heads/master | 2023-04-14T15:59:07.414873 | 2019-10-24T07:56:37 | 2019-10-24T07:56:37 | 355,110,847 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,099 | py | import csv
import numpy as np
import scipy.stats as st
import matplotlib
import matplotlib.pyplot as plt
DPI = 100
Y_PARAM = {
'max_dv': {
'label': 'Deadline Violation - ms',
'limit': [0.0, 10.0]
},
'dsr': {
'label': 'Deadline Satisfaction - %',
'limit': [40.0, 100.0]
... | [
"adyson.maia@gmail.com"
] | adyson.maia@gmail.com |
b6a9c5e223340c1cbc33d718e31f775d955b1a8d | f0d9477c3079ff955b826c8ba2f4d043c17c012c | /home/models.py | c9c0352949dd5d3c6c652faf271cd3fd4fb9b767 | [] | no_license | embshao/junkfund | f19859b4f561da79c47b3dbc0dfea98c923fa25b | e32d47fe0d248b9b47cfb1dc32602b57869df81b | refs/heads/master | 2020-04-06T17:30:57.855468 | 2018-12-06T08:07:10 | 2018-12-06T08:07:10 | 157,661,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from django.db import models
from wagtail.core.models import Page
from wagtail.core.fields import RichTextField
from wagtail.admin.edit_handlers import FieldPanel
class HomePage(Page):
body = RichTextField(blank=True)
origin_statement = RichTextField(blank=True)
mission_statement = RichTextField(blank=Tr... | [
"embshao@Emilys-MacBook-Pro.local"
] | embshao@Emilys-MacBook-Pro.local |
17d235e0928561692d73711efe48d58fd5d371fa | 06aa3ec3262f6dd6866ea194ed6385f8e53509bf | /manuscript_codes/AML211DiffALL/remove_nonexistent_fromAnnotatedcsv.py | 409adfbaa7c37d20329ae26f43f38331d13472ce | [] | no_license | KuehLabUW/UPSIDE | 95ce078382792d1beb0574c3b19c04e467befa58 | 3c90de9677f24e258800cb95bce6cb528f4ad4ac | refs/heads/master | 2023-07-13T15:58:07.963672 | 2021-08-30T21:14:48 | 2021-08-30T21:14:48 | 329,134,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 23 16:21:25 2019
this script concatenates fluorescent data and subim data from separate csv files
and return a merged csv file for all positions
@author: phnguyen
"""
import pandas as pd
import os
csvs_dirname = '/media/phnguyen/Data2/Imaging/CellM... | [
"kuehlab@uw.edu"
] | kuehlab@uw.edu |
1ab07df2d4cec989d96642020c6ad40a27c362f8 | 20931bf9e3f24b4acd5fcbf5e50cfa77d61b25e5 | /msds510/src/write_csv.py | 781e934c9c33dcd19dea2bd7420addb247c003b2 | [] | no_license | Yasa-Mufasa/School-Work-DSC510 | db273878c367038e4dd541c8365ee0c1ec577a7f | 7f8334a830e3347bfafa408f8d901afd6e083c13 | refs/heads/master | 2020-03-30T18:23:07.401211 | 2018-10-14T06:33:05 | 2018-10-14T06:33:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | import sys
import csv
def argumentExists(index):
try:
sys.argv[index]
except IndexError:
return ''
else:
return sys.argv[index]
def fixHeader(headerToFix):
corr_category = headerToFix
corr_category = corr_category.lower()
corr_category.strip('\n').stri... | [
"noreply@github.com"
] | Yasa-Mufasa.noreply@github.com |
aed8838692f1449833f1bc080c28906f17883d7e | 807d1039976331aaed823d9afda8e29ee4232694 | /app/api_github.py | 30baea0e8e8b0ff4a981adec46cc2dd2a13a68ae | [
"MIT"
] | permissive | bemanuel/PUGMA-bot | 0b31165cb2b08c5f38dc01fc2d4a598b0398212c | e2cb11d57ec7409c62a4c61d2b1250e4e8b8e9a9 | refs/heads/master | 2020-03-30T04:36:59.962128 | 2018-08-25T08:43:24 | 2018-08-25T08:43:24 | 150,753,080 | 0 | 0 | MIT | 2018-09-28T14:32:27 | 2018-09-28T14:32:26 | null | UTF-8 | Python | false | false | 885 | py | import requests
import json
class Github:
def __init__(self):
self.user = 'pug-ma'
self.repository = 'meetups'
self.base_url = 'https://api.github.com/repos'
def _name_encontro(self, index):
if len(index) == 1:
index = '0' + index
return requests.utils.quo... | [
"lucasinfologos@gmail.com"
] | lucasinfologos@gmail.com |
7b20eeb2fb379e209c3fb4674150a090949fec81 | 8398073ca4e7b4e9894f037ff87c5c2a2c2d7658 | /sorting/quick_sort.py | a4352435158fd2ae6b27e8c59f6f03df82c5e54c | [] | no_license | mtvillwock/cs | 9c78262e29c23eabdecd4778c163140c0a1c0061 | 7f4f0236ecc1769ac84bbebdaf5cd3fcbd65f8f7 | refs/heads/master | 2020-03-31T19:16:33.000451 | 2015-12-29T22:47:53 | 2015-12-29T22:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | #!/usr/bin/python
# Quick Sort class that allows for O(lg 2 n) to O(n^2) sorting of items,
# depending on where pivot picked happens to be within context of all sorted items
# Low memory overhead as it simply swaps items during comparisons
class QuickSort:
def __init__(self, items):
self.items = items
def ... | [
"geeosh@gmail.com"
] | geeosh@gmail.com |
b39f7d7bc5979960cc3a326e3a5e41d319fc3636 | 16c5a7c5f45a6faa5f66f71e043ce8999cb85d80 | /app/honor/student/listen_everyday/object_page/history_page.py | 014714a71b529b852af33e51e693c88f7b3b6757 | [] | no_license | vectorhuztt/test_android_copy | ca497301b27f49b2aa18870cfb0fd8b4640973e5 | f70ab6b1bc2f69d40299760f91870b61e012992e | refs/heads/master | 2021-04-03T19:26:48.009105 | 2020-06-05T01:29:51 | 2020-06-05T01:29:51 | 248,389,861 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,494 | py | # coding: utf-8
# -------------------------------------------
# Author: Vector
# Date: 2018/12/17 16:11
# -------------------------------------------
from selenium.webdriver.common.by import By
from app.honor.student.login.object_page.home_page import HomePage
from conf.base_page import BasePage
from conf.decorat... | [
"vectorztt@163.com"
] | vectorztt@163.com |
94cf848c42259d154818b2ce9d25437a2bfb5767 | 1b8fea84247058843b1a21aa148a5dcfd5c2ba2b | /app/tournament.py | 9813ec5c540609bcf04275950486ca4bac23bde9 | [] | no_license | aguijarro/tournament_web | 251735dedbc34f65d7d99d0db12060c0e71197c6 | 3b0179a87c21d5556d43f40cca0da494f6c09ee9 | refs/heads/master | 2021-01-10T14:58:47.620453 | 2016-01-28T13:56:08 | 2016-01-28T13:56:08 | 50,531,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,168 | py | #!/usr/bin/env python
#
# tournament.py -- implementation of a Swiss-system tournament
#
import psycopg2
def connect():
"""Connect to the PostgreSQL database. Returns a database connection."""
return psycopg2.connect("dbname=tournament")
def reportTournaments():
"""Returns a list of tournaments register... | [
"aguijarro@vic-data.com"
] | aguijarro@vic-data.com |
ad7f555c1cf2c1b37ed92c22ebdd1a203ddce1bc | 477800f35c1f7eb2134a1219a4b289bc23831398 | /qcache/qframe/pandas_filter.py | dbe68782ad62183cfdea360ada6132d96177ff98 | [
"MIT"
] | permissive | tobgu/qcache | c10686027a4bff07ae07d64731bfcd780b3d43e3 | 331cd23f69a44824f86e0912f796cbc54e03b037 | refs/heads/master | 2023-08-26T10:58:54.569583 | 2019-01-05T22:30:03 | 2019-01-05T22:30:03 | 43,605,709 | 44 | 3 | MIT | 2023-08-14T21:53:01 | 2015-10-03T16:31:22 | Python | UTF-8 | Python | false | false | 4,697 | py | from __future__ import unicode_literals
import operator
import numpy
from qcache.qframe.common import assert_list, raise_malformed, is_quoted, unquote, assert_len
from qcache.qframe.constants import COMPARISON_OPERATORS
from qcache.qframe.context import get_current_qframe
JOINING_OPERATORS = {'&': operator.and_,
... | [
"tobias.l.gustafsson@gmail.com"
] | tobias.l.gustafsson@gmail.com |
7345f22226c66c1e13ad3c5e6f25e48b5eab1585 | 9f42533560a924b702a951255156eabe14db67bf | /frontend/services/connect_service.py | ce2ce4954eab98e0ac0873e64b923b1d6f5a48f3 | [] | no_license | rJunx/RAID5 | 82c011072c72d50293720ff5669bde9df0721ce2 | 5c20c57d593c941d3409956461331996ec8e637d | refs/heads/master | 2020-05-19T07:50:19.594666 | 2017-06-03T21:44:53 | 2017-06-03T21:44:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,669 | py | #!/usr/bin/python
## @package RAID5.frontend.services.connect_service
## Module that implements the ConnectService class. Service brings a disk
## back online to a volume.
#
import errno
import logging
import os
import socket
import time
import traceback
from block_device.services import update_level_service
from com... | [
"royzohar25@gmail.com"
] | royzohar25@gmail.com |
ead62ea3fed82a2e6b2323190722d00bd0d01a78 | d8438d98a1103b4f7fc8fa84c0ee5521fef8a5d1 | /jingdong/pipelines.py | a434947aca050d4eacdd7b596c52b38bca8667c1 | [] | no_license | dgh0707/items | 6c171c2bf1485c27ea6b6c14178a255c6fcfd026 | 9b109bc4197fb1518110d8a5fb4d839615b35171 | refs/heads/master | 2020-04-30T06:02:20.243072 | 2019-06-18T04:26:12 | 2019-06-18T04:26:12 | 176,640,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,857 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymysql
class JingdongPipeline(object):
def __init__(self):
# self.conn = pymysql.connect(user='root', pas... | [
"815060473@qq.com"
] | 815060473@qq.com |
035067ece4ae3373879cbb19730d1349f123b2b5 | c61616a2d328cbe8f1980160d6769d7b13059de4 | /Python/analisador.py | ac85733a3a1d23748a2466a7bd426cb48df8bd07 | [] | no_license | jms05/BioLab | 01ef2b2f6983752525dacf37595ef2152848ed35 | eb05e56ec301b28f09df72b79964b58a6de99f84 | refs/heads/master | 2021-01-12T09:29:50.940398 | 2017-01-20T11:43:33 | 2017-01-20T11:43:33 | 76,168,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,341 | py | from Bio import SeqIO
import requests
from io import StringIO
import re
from Bio.Blast import NCBIWWW
from Bio.Blast import NCBIXML
from Bio import ExPASy
import urllib
from Bio import SwissProt
from Bio.SwissProt import KeyWList
from Bio import ExPASy
import os
import random
from urllib.request import urlopen
DN... | [
"joaomsilva@outlook.com"
] | joaomsilva@outlook.com |
c1d6c1b5976bb6b865327038010437c766ab107a | 0ac0387f701e10a3d5d1fd42287ae8ab4b76be11 | /MAN_CNS/CNS_Dumy.py | 85836a3282ecf9d7837abaa5496211a87d6505d3 | [
"Apache-2.0"
] | permissive | LeeDaeil/CNS_Autonomous | 676e6f091c4e25d4f9b52683d119bae1ea4289a5 | 2ae3688cfd654b9669893e3cdf4cdf1ac0748b9f | refs/heads/master | 2021-06-19T11:09:38.550032 | 2021-01-06T07:45:29 | 2021-01-06T07:45:29 | 144,431,774 | 2 | 0 | null | 2018-11-10T15:38:05 | 2018-08-12T02:24:15 | Python | UTF-8 | Python | false | false | 7,812 | py | from CNS_UDP_FAST import CNS
import numpy as np
import time
import random
class ENVCNS(CNS):
def __init__(self, Name, IP, PORT, Monitoring_ENV=None):
super(ENVCNS, self).__init__(threrad_name=Name,
CNS_IP=IP, CNS_Port=PORT,
Remote_I... | [
"dleodfl1004@naver.com"
] | dleodfl1004@naver.com |
8976b9d0a19b96ac46f5c6b8646da091f81333ad | 4ddcec92fd322d2ecd89aaf323a59de5b628dc7d | /main.py | ceed23be1d12732750ed64d4d668d38383d8bacf | [] | no_license | ldev/ldevirc | cbf63a16df7f8417fa4a32597ef10153ef1195b5 | 776ab1732027c98be3c668b07e37b20bbfb20517 | refs/heads/master | 2016-09-11T02:09:02.500477 | 2014-02-19T09:12:09 | 2014-02-19T09:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,502 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This is a python bot written by Jonas Lindstad (LDEV)
# You are free to use this code, which is licensed under the "WTFPL license".
#
# ---------------------------------------------------------------------
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# ... | [
"jonaslindstad@gmail.com"
] | jonaslindstad@gmail.com |
9981c922ae16ac4a813895e536e8827db3022216 | 4f9d0b10aad4adeefaa76c73a6f9cc5b45a26ec6 | /Ecom/migrations/0004_remove_orders_customer.py | 7c2fbed9d40dfd990a84ba0a703f0f5b0a8738c2 | [] | no_license | Bhawan-Sharma/ABshopEcommerce | 967213b11f3766386680c4e01053163c884353cf | 47a86795f7b2ba95f05d8cff6469a8377275eda1 | refs/heads/main | 2023-07-27T01:42:28.479598 | 2021-08-28T13:50:22 | 2021-08-28T13:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Generated by Django 3.0.8 on 2021-08-27 05:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Ecom', '0003_orders_product'),
]
operations = [
migrations.RemoveField(
model_name='orders',
name='customer',
),
... | [
"83630093+Alfacito@users.noreply.github.com"
] | 83630093+Alfacito@users.noreply.github.com |
091a06320d8b36532cf76359942de1eec908b433 | 4a5aa5683a039a06a8af1fd21055eb4702e4dfdd | /same-tree.py | f30e147bd5d369bbd50ac46b75185312e13a5caa | [] | no_license | Fliv/my-leetcode | 8ed03461f492d874c90dc820909bec9ad659a963 | a45002fb06954fbff790317a9fbb6f79adebf367 | refs/heads/master | 2021-01-11T04:33:35.909269 | 2017-07-05T11:10:04 | 2017-07-05T11:10:04 | 71,137,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # 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 isSameTree(self, p, q):
"""
:type p: TreeNode
:type q: TreeNode
:rtype: bool
"""
... | [
"415071280@qq.com"
] | 415071280@qq.com |
da830d452062851dbe34843842810de0095e6f06 | 496ea91f6bcbcf0b1468f447107e5dc56bf571ef | /lesson/02_blog2/1_python/2_dictionary/dic2.py | a920d6c8e3a8bc3e8fe0df19589efc4a576b55fa | [] | no_license | remopro-pro/webbasic | 8e9d7d32f2df2b275b1012cc6e6d54f433c13186 | 1acf0f0db5861b9103475cdce0f8b7db39e9a97f | refs/heads/master | 2022-12-11T13:41:57.519862 | 2020-09-10T10:55:13 | 2020-09-10T10:55:13 | 279,002,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | user = {"name": "磯野", "age": 18}
user["name"] = "フグ田"
print(user["name"])
user["job"] = "会社員"
print(user)
| [
"hirfujit@yahoo-corp.jp"
] | hirfujit@yahoo-corp.jp |
737f7c4f3db32fbbc32c0d5f8ed335fc3f63e82b | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20200504/example_egoist/walker.py | 519c662fb68e00489ebc5b0bbaa8f85170fd985e | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 42 | py | ../../20200503/example_metashape/walker.py | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
a9f60f3ed1fe3f516a90a7101d86cf5d08986545 | 3b80ec0a14124c4e9a53985d1fa0099f7fd8ad72 | /realestate/urls.py | 11e290ebf235d7ae4d3ce6986f61c81f4176ded0 | [] | no_license | aayushgupta97/RealEstate_Django_TTN | ec4dde7aa3a1bcfa4d88adb5ea7ebb20127e7489 | 9af7c26c85c46ac5b0e3b3fad4a7b1067df20c47 | refs/heads/master | 2020-05-04T08:09:03.917026 | 2019-04-18T08:30:05 | 2019-04-18T08:30:05 | 179,041,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from pages import views as page_views
urlpatterns = [
path('properties/', include('properties.urls')),
path('', include('pages.urls')),
path('admin/', admin.sit... | [
"aayushgupta2097@gmail.com"
] | aayushgupta2097@gmail.com |
fc2f5b4eaf1d9c7e2539b1ef43e5b12ba9fbe924 | 38fecea29fa82eb203fd964acd54ffacc7e4c388 | /chapter03/page048_colored_grid.py | 9a62621c8c535c213b8b8c6e2da4ef4c1286ade9 | [] | no_license | mjgpy3/mfp-python3-examples | 3c74f09c6155e9fbf35bd8ec104bdfe4429b9f4b | 09547141d25859fe93a6a0e70c828877ee93f736 | refs/heads/master | 2020-12-03T18:38:30.411800 | 2020-01-18T20:42:20 | 2020-01-18T20:42:20 | 231,431,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python3
from page040_grid import Grid
class ColoredGrid(Grid):
# Cannot do specific property setters in Python
def set_distances(self, distances):
self.distances = distances
farthest, self.maximum = distances.max()
def background_color_for(self, cell):
distance = self.distances[cell... | [
"mjg.py3@gmail.com"
] | mjg.py3@gmail.com |
c70e8a10944cccf8e5bdfde937bf2c8263a1b00e | 85f065d6eff8b04f412aab0a5c0615ced0efb408 | /third/mosesdecoder-RELEASE-3.0/scripts/training/wrappers/conll2mosesxml.py | 69ee4f73713f3d45fdc14e82c10b72cec238a4ed | [] | no_license | antot/posteditese_mtsummit19 | 976a099fe6ade6c0a57672c6f82d6f490fe18afa | b344d9134c749fab8681928da49f4894cf1fb696 | refs/heads/master | 2020-06-08T12:50:42.308562 | 2019-06-22T12:31:09 | 2019-06-22T12:31:09 | 193,231,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,589 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Rico Sennrich
# takes a file in the CoNLL dependency format (from the CoNLL-X shared task on dependency parsing; http://ilk.uvt.nl/conll/#dataformat )
# and produces Moses XML format. Note that the structure is built based on fields 9 and 10 (projective HEAD and RELA... | [
"a.toral.ruiz@rug.nl"
] | a.toral.ruiz@rug.nl |
ae3daa75051224632560f48bca4435780cfa44ae | 25f31909afa432e49b0a77fc469cd9d6e6d72d70 | /lab assingnments/ex3.py | ac8385051f315bd51e2ce999da6107490ff67fd6 | [] | no_license | VenkySVR/Python-DataStructures | 7d13e044b705fd232db9f0997981ee11f9fb88ad | bac0e1697f4da00b93c9fc879f027ddb7371e252 | refs/heads/master | 2021-04-19T19:52:05.154734 | 2020-05-09T10:50:57 | 2020-05-09T10:50:57 | 249,631,604 | 1 | 0 | null | 2020-05-06T17:14:54 | 2020-03-24T06:37:05 | Python | UTF-8 | Python | false | false | 1,363 | py | # problem 1
s = 'Beautiful palace'
print(s[:])
print(s[::])
first_five_chars = s[:5]
print(first_five_chars)
third_to_fifth_chars = s[2:5]
print(third_to_fifth_chars)
# problem 2
py_string = 'learn python'
slice_object1 = slice(-1, -6, -1)
slice_object2 = slice(1, 6, -1)
slice_object3 = slice(1, 6, 1)
print(py_stri... | [
"venky.s.vr13@gmail.com"
] | venky.s.vr13@gmail.com |
55d82652cc45328f27233924c8696a251ed8e11d | dc0f89b49e01a1885660779ad169fcb65889854a | /dictionaries.py | 48fe83757b1d1b5e121f083229520d8382063b7e | [] | no_license | quhao0994/python_work | 9fc99f14dd7a706903cf1172b3b881ce283c620d | bc6fbebcda8ca1542571787ea9e96a0490dc6919 | refs/heads/master | 2020-04-08T22:23:43.011660 | 2020-01-12T08:00:24 | 2020-01-12T08:00:24 | 159,785,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | monthConversions = {
"Jan":"January",
"Feb":"February",
"Mar":"March",
0:"zero"
}
print(monthConversions["Jan"])
print(monthConversions.get("Luv","not a valid key")) | [
"noreply@github.com"
] | quhao0994.noreply@github.com |
dc570a665616fbf6bb0a3acf033b6e2d00c998c3 | 0275a3c5b7477be0095999ff53c67e7eb9b1be47 | /separate_process.py | 8ff50f0bfa53473f67239ef68781b76a3455df60 | [] | no_license | amiecorso/scripts_simblock | 6800a91e717e86cba459235250f3d4f475b38081 | 975d954287d791e6a3125533c77b9ba0bae8392b | refs/heads/master | 2020-09-05T09:33:26.312161 | 2019-12-06T02:03:22 | 2019-12-06T02:03:22 | 220,058,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | import driver_simblock
RESULTS_DIR = "/Users/amiecorso/scripts/results/"
driver_simblock.process_results(RESULTS_DIR, "patch.csv")
| [
"acorso@cs.uoregon.edu"
] | acorso@cs.uoregon.edu |
fc7241d3c097b1d4ec4a17558bbeb948d4440761 | ccc8cd0979095de2d2644be06c596f33ed1b4072 | /integration_tests/suite/test_dird_documentation.py | bb9d3888040bc28b3f6d92bed419dd1c635abdbe | [] | no_license | TinxHQ/wazo-google | 13373b3b5357ceb0a1d62c129818176265a4acc9 | d8a115ddd7bd76595adaf834c87a043c96dc53a4 | refs/heads/master | 2021-03-22T05:19:33.535426 | 2019-08-07T14:51:38 | 2019-08-07T14:51:38 | 113,173,511 | 0 | 0 | null | 2019-08-07T14:51:39 | 2017-12-05T11:28:08 | Python | UTF-8 | Python | false | false | 736 | py | # Copyright 2019 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later
import pprint
import requests
from hamcrest import assert_that, empty
from .helpers.base import BaseTestCase
class TestDirdDocumentation(BaseTestCase):
asset = 'documentation'
def test_documentation_erro... | [
"pcm@wazo.io"
] | pcm@wazo.io |
4aaf7f9daeeb93706d4bbb8c3bd8d49f690c0c93 | d9b3289354d8f75ae8dd9988a89b08596bd4cae9 | /pgadmin/pgadmin/browser/server_groups/servers/resource_groups/__init__.py | 336fe7d01d25a73d9bfd68a2da083098d2be10c2 | [] | no_license | DataCraft-AI/pgdevops | 8827ab8fb2f60d97a22c03317903b71a12a49611 | f489bfb22b5b17255f85517cb1443846133dc378 | refs/heads/master | 2023-02-10T05:44:00.117387 | 2020-01-22T13:40:58 | 2020-01-22T13:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,471 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
"""Implements Res... | [
"denis@lussier.io"
] | denis@lussier.io |
00aae4ffd01e0585a48b1869dd2c4e3f247a73a2 | 13911dd9a588439ba96fe810ffb64e1a20bfb3d1 | /part2/.~c9_invoke_Cz2UO2.py | ef2992c5635c3941c2e10d3bf9e5f5f83ff0ec42 | [] | no_license | derrickeckardt/tweet-classification | e1997e0f2c4c743c8054c5c7424e686910673ee6 | 558663eb2aeccc14551ffcb1af5f341a56c60759 | refs/heads/master | 2020-10-01T02:21:25.035216 | 2018-11-27T05:11:16 | 2018-11-27T05:11:16 | 227,432,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | #!/usr/bin/env python
#
# CS B551 - Elements of AI
# Indiana University, Fall 2018
# Assignment 2, Part 2 - Tweet classification
#
# Completed by Derrick Eckardt
# derrick@iu.edu
# import libraries
import sys
import pandas as pd
from collections import Counter
training_file, testing_file, output_file = [sys.argv[1],s... | [
"derrick.eckardt@gmail.com"
] | derrick.eckardt@gmail.com |
de0beb1610545ee78ac1dcc707d7fc40e2c1a0fb | 748bbab674d1a5ae6a59bfd4ac22efcb4355e82a | /Prog-II/Back_Front/back/modelo.py | 500e048c4dda6a3d2bb759c389dc9ab5b947b11b | [] | no_license | Lima001/Tecnico-IFC | 8819114a35080eb914a2d836a0accbf79d3268d8 | 771fa39dd6046a9d92860fbde70c10dcecd975a3 | refs/heads/master | 2021-02-07T01:31:04.929420 | 2020-06-24T02:09:38 | 2020-06-24T02:09:38 | 243,967,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from peewee import *
arq = "dados.db"
db = SqliteDatabase(arq)
class BaseModel(Model):
class Meta:
database = db
class Cachorro(BaseModel):
nome = CharField()
idade = IntegerField()
raca = CharField()
if __name__ == "__main__":
db.connect()
db.create_tables([Cachorro])
dog1 = C... | [
"limaedugabriel@gmail.com"
] | limaedugabriel@gmail.com |
0dabd218576ed96dbe4a021fce762f03727b90ae | b4948c322401435a02370dd96708399fda4a48fc | /demo/simple_code/test_pass.py | 453fa756db68194cdd14c29692c9fa5fb24807be | [] | no_license | fengbingchun/Python_Test | 413e2c9bb844a5b3641e6e6daf37df277589006e | eaedcd55dbc156b685fa891538e1120ea68fa343 | refs/heads/master | 2023-06-21T02:28:07.310364 | 2023-06-11T04:46:29 | 2023-06-11T04:46:29 | 99,814,791 | 7 | 6 | null | 2022-09-30T00:38:06 | 2017-08-09T14:01:48 | C++ | UTF-8 | Python | false | false | 428 | py | # Blog: https://blog.csdn.net/fengbingchun/article/details/125242357
# 1. empty function
def func():
pass # remember to implement this
func()
# 2. empty class
class fbc:
pass
fbc()
# 3. loop
num = 5
for i in range(num):
pass
# 4. conditional statement
a = 5
b = 10
if (a < b):
pass
else:
print("b<=a")
for l... | [
"fengbingchun@163.com"
] | fengbingchun@163.com |
032d7f9ebb27b22f4c6751ff173017cf28bac592 | 8c74fad72d58787895d5397737990e37e3a4756d | /test/test.py | 63a3dbcc48c48169972a8a722b3aed5f2a572888 | [] | no_license | xiaoye-hua/kaggle-TalkingData-AdTracking-Fraud-Detection-Challenge | b36ebb98af6d25cd7110fe0f2e508818c713a78f | 1d54384fbd1ef3badf649f016ffa89a1901c0e04 | refs/heads/master | 2020-03-14T22:42:38.083160 | 2018-05-06T15:27:06 | 2018-05-06T15:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15 | py | print('haha')
| [
"huag@kth.se"
] | huag@kth.se |
fa791cbb653d2472098d0a3b028680e2bc9b6414 | 61432a6d3b25e5b3142fe1f154acf5764bc2d596 | /custom_report/controllers/controllers.py | 0d654793e8486cc3dde196ee71832650723dcae7 | [] | no_license | halltech-ci/tfc_agro | 8c2c7911901e8c7bcf548fb05ca8f7891ab4ef51 | a737dfdccfca51136cb01894a00f21f5365a771a | refs/heads/master_1 | 2020-12-22T08:59:40.507801 | 2020-08-17T21:20:18 | 2020-08-17T21:20:18 | 236,734,216 | 0 | 3 | null | 2020-05-09T23:19:24 | 2020-01-28T12:50:00 | Python | UTF-8 | Python | false | false | 788 | py | # -*- coding: utf-8 -*-
from odoo import http
# class CustomReport(http.Controller):
# @http.route('/custom_report/custom_report/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/custom_report/custom_report/objects/', auth='public')
# def list(self, **kw):
# ... | [
"maurice.atche@halltech-africa.com"
] | maurice.atche@halltech-africa.com |
23e561b64b11252fe6b05b45353e2c3062ea8061 | 5d542e06668faebe3c391661215227a39e303f23 | /COPM1405/comp1405_f17_101071063_a3.py | 4bdb83008a31c13b3ac9661fe21235f2d61ddcb7 | [] | no_license | zivvvvvwang/COMP1405_Assignment | a565b345cdad54166f7810dc97d3f92d0ec57cc1 | 70902a838b85122bd05afd420344102d0ab80857 | refs/heads/master | 2021-01-03T02:58:18.972703 | 2020-02-12T00:25:29 | 2020-02-12T00:25:29 | 239,892,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | # ============================================================
#
# Student Name (as it appears on cuLearn): ziwen wang
# Student ID (9 digits in angle brackets): <101071063>
# Course Code (for this current semester): COMP1405A
#
# ============================================================
from comp1405_f17_assistant... | [
"noreply@github.com"
] | zivvvvvwang.noreply@github.com |
79610c15babdc1b86af4beba5ba9479ee4ae7927 | dffd4899b346fb48fbb1cfe529e6e17d3196676a | /select.py | af726ff92c19f8ed56376e2df0ab37c645372994 | [] | no_license | MySonIsZhaGou/sorting | 3166c03cf2f983905b5a88dd1146a4fcf01940ea | c6600f1479b6f76b7010561a1de07d496c8b0e06 | refs/heads/master | 2021-01-23T03:59:56.510511 | 2017-04-06T01:36:14 | 2017-04-06T01:36:14 | 86,145,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from numpy import random
array=random.randint(0,100,10)
print array
def select(array):
min_num=array[0]
for i in range(len(array)):
min_num = array[i]
for j in range(len(array)-i):
if array[j+i]<min_num:
min_num=array[j+i]
temp=j+i
a... | [
"noreply@github.com"
] | MySonIsZhaGou.noreply@github.com |
211b498888127f1226c08e00b409a8281cbe53d4 | 27953af4264bf68ccfeef3eac7b31f7b401e6345 | /DeepSwapPackages/image_augmentation.py | 89a78ad2727d943d4a586015e25a1e6d3bab158d | [] | no_license | rezabonyadi/deep_end_to_end_face_swap | ad0d931060fc51da0b99ffc51bffc69b1b62baa0 | 11fbb66c83e9fb41f22f56bad35e27fe8f8a3c42 | refs/heads/master | 2021-07-07T11:06:18.341839 | 2020-08-23T03:15:46 | 2020-08-23T03:15:46 | 174,415,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | import cv2
import numpy
from DeepSwapPackages.umeyama import umeyama
# from skimage.transform import warp, AffineTransform
#
# def randRange(a, b):
# '''
# a utility functio to generate random float values in desired range
# '''
# return numpy.random.rand() * (b - a) + a
#
#
# def randomAffine(im, rot... | [
"Rezabny@gmail.com"
] | Rezabny@gmail.com |
3771885ffc07cb6353782e4ba2a5ce9c33480434 | d2af44cdecdf48f9edb052fdc29d406edb2ccfad | /utils/metrics.py | e82dd9cda80f23613143a4e8ab4e3d258bf361d2 | [] | no_license | zx3Leonoardo/3d-medical | e3122f9e1f4602add26f97d9c258c5ff63a5b54c | 9ec045fbbb0980679fb624db769cf096ed1ab8f8 | refs/heads/main | 2023-07-16T20:03:42.947066 | 2021-08-26T02:17:15 | 2021-08-26T02:17:15 | 390,895,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | import torch.nn as nn
import torch.nn.functional as F
import torch
import numpy as np
class LossAverage(object):
def __init__(self) -> None:
self.reset()
def reset(self):
self.val = 0
self.avg = 0
self.sum = 0
self.count = 0
def update(self, val, n=1):
self... | [
"57-qinzixin@163.com"
] | 57-qinzixin@163.com |
37a4e1551a9674af83ec7b85906f69f911224ef7 | 1ffaa803ef08794a25cd0f74f738222bcd9f7e76 | /Python_Prog/Largest_number.py | 42dceb426a78415087d0a426a6f78233eb6beed5 | [] | no_license | vysagh00/Python-programs | 75d188809eb1ae78eeb59f377ef24a06d13a9337 | c1b2b64115ebd46e91133109eb90dea60bd3a5b0 | refs/heads/main | 2023-08-26T12:34:00.783796 | 2021-10-28T16:59:40 | 2021-10-28T16:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
num3 = int(input("Enter third number: "))
if (num1 >= num2) and (num1 >= num3):
largest = num1
elif (num2 >= num1) and (num2 >= num3):
largest = num2
else:
largest = num3
print("The largest number is", largest) ... | [
"noreply@github.com"
] | vysagh00.noreply@github.com |
a1607a63fe213a683271e64ccc48df84cac8cdf2 | 1a7dee4f8328a6be57e867d4bb165d176b4c2e1a | /laplace_v2.py | 8d7f5ff176d3e1694a31d55bb2a41bceb8a77906 | [] | no_license | Atroxon/laplace | 9c2513ac16c6d0aa888e0ab6acdd1508303be334 | 26302cb2ca176e86bf7dbb32fbe93ce17fceba15 | refs/heads/main | 2023-01-14T08:42:16.242661 | 2020-11-10T23:30:06 | 2020-11-10T23:30:06 | 311,795,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,102 | py | import cv2 as cv
import matplotlib.pyplot as plt
import numpy as np
import copy
test_files = ['images/3.jpeg']
AVG_kernel = np.array([[1,1,1],[1,1,1],[1,1,1]])
L_kernel = np.array([[0,1,0],[1,-4,1],[0,1,0]])
E_kernel = np.array([[-1,-1,-1],[-1,8,-1],[-1,-1,-1]])
def main():
open_imgs = import_images(paths=test... | [
"danielsalinas.t@gmail.com"
] | danielsalinas.t@gmail.com |
1c76c0d73c6d00dda9f771fd4eb96c5024ac5792 | 0ab40aa11442ef5868438844ca193a88cc2ab0af | /Crosstalk/analyze_cross_talk.py | 10c923b7c414428f9d01a510ade08e2d6b0559f8 | [] | no_license | nischalmishra/TEMPO_python | 2d85b0a401e776e4a1ae65920bd7553a3896170a | 643a9577fd6686ec32d85205b5988ec757eec4c8 | refs/heads/master | 2020-07-20T10:20:40.333931 | 2019-09-05T14:26:36 | 2019-09-05T14:26:36 | 206,623,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,238 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 19 10:38:50 2017
@author: nmishra
"""
import os
import numpy as np
import matplotlib.pyplot as plt
from scipy.io.idl import readsav
from mpl_toolkits.axes_grid1 import make_axes_locatable
import pandas as pd
def read_outlier_mask():
outlier_mask= np.genfromtxt(r'C:... | [
"nischal.mishra@gmail.com"
] | nischal.mishra@gmail.com |
66da12d1a46b2363ec995ed6684e46458403d42d | f027db78eb8e44c7d5994531157e910dabe37a6c | /Deep Learning/Unsupervised Learning/Self Organizing Maps (SOM)/Hybrid Supervised-Unsupervised Fraud Detection Model/mega_case_study_improved.py | 484cb9e198bfc6e49dbfc918085cf98a404f247e | [] | no_license | jamesawgodwin/PythonMachineLearningTemplates | e6d8ac678ca483a49a2e73dc079faad9bba25147 | 320f76dabbd988f1c56774e89b5baf9b2767d10d | refs/heads/master | 2021-08-08T17:44:35.442494 | 2020-04-19T04:03:51 | 2020-04-19T04:03:51 | 158,993,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,304 | py | # Mega Case Study - Make a Hybrid Deep Learning Model
# Part 1 - Identify the Frauds with the Self-Organizing Map
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Credit_Card_Applications.csv')
X = dataset.iloc[:, :-1].v... | [
"james.a.w.godwin@gmail.com"
] | james.a.w.godwin@gmail.com |
a58b76fab4d8fa60abf11ac71cab242a7beccad6 | c5a1c95e9d8ce937f71caf8340cf11fe98e64f56 | /day9/problem5/[이재형] 하샤드 수.py | ff36e229a9d9bb46a7cac28263c8e782cc36fcf6 | [] | no_license | Boot-Camp-Coding-Test/Programmers | 963e5ceeaa331d99fbc7465f7b129bd68e96eae3 | 83a4b62ba2268a47859a6ce88ae1819bc96dcd85 | refs/heads/main | 2023-05-23T08:21:57.398594 | 2021-06-12T16:39:21 | 2021-06-12T16:39:21 | 366,589,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | def solution(x):
a = []
for i in range(len(str(x))):
a.append(int(str(x)[i]))
if x % sum(a) == 0:
return True
else :
return False
| [
"noreply@github.com"
] | Boot-Camp-Coding-Test.noreply@github.com |
1e1a220013ea65a97547f55b52bf0e6e8ba7ee32 | 4b742f57981b3db902e7048fe05faf263ff52138 | /base/migrations/0010_pgpkey_passphrase.py | 174c1f9c2f96097e66f55808d6348a2d55d10933 | [
"MIT"
] | permissive | erichuang2015/Hiren-MailBox | eace0c90b5815f3e4a660dfda75910256704db96 | ff4cad0998007e8c9a2a200af3a2e05a3d947d12 | refs/heads/master | 2020-04-02T01:31:55.680288 | 2018-09-13T15:21:46 | 2018-09-13T15:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 2.0.4 on 2018-05-22 04:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0009_auto_20180504_0501'),
]
operations = [
migrations.AddField(
model_name='pgpkey',
name='passphrase',
... | [
"git.pyprism@gmail.com"
] | git.pyprism@gmail.com |
dc0cd9bf59857e086726029d8ff6c6aa608de145 | 51464779b985f9e4e67279eea4bf022fa8b687e6 | /data/tools.py | e8067a800b1ebca972f374a637592ca7df76b585 | [
"CC0-1.0",
"WTFPL"
] | permissive | xinmingzhang/pyweek22 | 2b1ef5b11cfbf5c14d5b3d4ee0315d7a86eb98b0 | 07ef583507d5971b7e55dcd66cee22dc6f36f134 | refs/heads/master | 2020-04-17T18:43:29.846741 | 2016-09-10T07:55:00 | 2016-09-10T07:55:00 | 67,858,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,906 | py | """
This module contains the fundamental Control class and a prototype class
for States. Also contained here are resource loading functions.
"""
import os
import copy
import pygame as pg
class Control(object):
"""Control class for entire project. Contains the game loop, and contains
the event_loop which pa... | [
"252004372@qq.com"
] | 252004372@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.