blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4ef0a5ad842febae7dc7d0f6b86210f665d8c52 | 71b7b6d84a61f514b038fac7741e6d16973fcaa9 | /devel/lib/python2.7/dist-packages/object_manipulation_msgs/msg/_GraspHandPostureExecutionFeedback.py | 239a1161abae63cd1fec56383bbec0f1c7153957 | [] | no_license | YiKangJ/perception_driven_ws | 15c02e523f1a708fe63b216d73019c8c2bde97a1 | 0a0f8fcbe3f5fed26439f449999b85f1e38c0f70 | refs/heads/master | 2020-04-01T19:47:48.372111 | 2018-10-18T06:17:57 | 2018-10-18T06:17:57 | 153,571,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | /home/jyk/perception_driven_ws/devel/.private/object_manipulation_msgs/lib/python2.7/dist-packages/object_manipulation_msgs/msg/_GraspHandPostureExecutionFeedback.py | [
"jinyikangjyk@163.com"
] | jinyikangjyk@163.com |
38ad82c1a122a32358a5cad4b79af8911d55b7e9 | fae68b144a7020d9731896cab5d62a97ce25ae91 | /image_augment.py | f40bdbedcb9a6163c36e3ee0a6dea31f1c328f5f | [] | no_license | brandon-castaing-ucb/SecuriBot | a3dc41591fe66dd51e99374cd9bc1661f49487e5 | fcd70e6f9c35fef9332b6c9a1adfa9002fcf9fa4 | refs/heads/master | 2023-07-24T23:21:42.365678 | 2020-01-21T03:38:58 | 2020-01-21T03:38:58 | 220,586,158 | 0 | 0 | null | 2023-07-06T21:47:10 | 2019-11-09T03:30:21 | Python | UTF-8 | Python | false | false | 3,726 | py | import sys, os, re, traceback
from os.path import isfile
from multiprocessing.dummy import Pool
from augmentations.fliph import FlipH
from augmentations.zoom import Zoom
from augmentations.blur import Blur
from augmentations.noise import Noise
from augmentations.translate import Translate
from skimage.io import imread,... | [
"bcastaing@berkeley.edu"
] | bcastaing@berkeley.edu |
8fd5e717b4d06d2f26535413e07fae832635769d | 72e463c26daf79b7d380db59a58849e3cd095a7e | /week7/day1_api.py | f7bcb6d95489339333501141914115cb6d9975ba | [] | no_license | tdhuynh/tiy_class_notes | dcc5454af63ca888cfdb99e85f4370cabce88f88 | a254d77f52cc438476d80ff58bfa9759de7826fa | refs/heads/master | 2020-04-15T12:19:30.045552 | 2016-11-09T14:30:06 | 2016-11-09T14:30:06 | 68,213,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | import requests
# result = requests.get("http://swapi.co/api/people/")
# # print(result.text)
# json_result = result.json()
# # print(json_result)
# # print(json_result["name"])
# for person in json_result["results"]:
# print(person["name"])
# result = requests.get(json_result["next"])
# json_result = result.... | [
"tommyhuynh93@gmail.com"
] | tommyhuynh93@gmail.com |
c76e7b57a50d1595e23179c5dde7838452d683e2 | 95789a6503101b98548570f48e80ae12b964fff1 | /rango/views.py | 5fb1ab348828e249de3637bdc7da82f5648f0859 | [] | no_license | NikolayBorovenskiy/How-to-Tango-with-Django | be7a2d0b8354f17e1ec98a7bc5714ea00b386f7a | f04c9e534c84de2b8885dbaaa5144f4d748c33a0 | refs/heads/master | 2020-05-14T15:49:32.317274 | 2015-08-09T06:46:07 | 2015-08-09T06:46:07 | 39,078,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,340 | py | from django.template import RequestContext
from django.shortcuts import render_to_response, render, redirect
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from rango.models import Category,... | [
"nikolay.borovenskiy@gmail.com"
] | nikolay.borovenskiy@gmail.com |
b540488509bc29117e14bf470b82eaab0f677a68 | 4c3ffe142d476c81d6886fa568646485996bddfe | /sms/texts/filters.py | 76fcb316cafd4da793b92bff35eac139a4c71fb0 | [] | no_license | mosesju/sms_django | 5c62e8fa83451ca7689289acb13acc8fddc9d5c4 | 64825c7b05c5a74242141a0479acd379ca1655e8 | refs/heads/master | 2022-07-26T10:33:10.502713 | 2020-05-16T08:36:26 | 2020-05-16T08:36:26 | 261,977,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | import django_filters
from .models import Text
class TextFilter(django_filters.FilterSet):
class Meta:
model = Text
fields = '__all__' | [
"e.julianmoses6@gmail.com"
] | e.julianmoses6@gmail.com |
1bf2158bc437ca181fbc66a1c3e55214a6f792ff | 7ed9b1d87012cd11ecc1625cadbea861223e82c5 | /plugins/devices/FakeCamera.py | cfad8329be69fc9640b4f45f25b6f0e84cc7df71 | [] | no_license | dsblank/pyrobot | 577bdcb1cd68777b76aaada11ff3d3c3c5231c38 | d9c19947767a97980ec31d2096ec157bafa55f0d | refs/heads/master | 2021-01-21T21:19:48.788998 | 2019-04-01T03:55:06 | 2019-04-01T03:55:06 | 94,819,207 | 2 | 2 | null | 2019-03-30T17:03:32 | 2017-06-19T20:43:18 | Python | UTF-8 | Python | false | false | 174 | py | from pyrobot.camera.fake import FakeCamera
from pyrobot.vision.cvision import VisionSystem
def INIT(robot):
return {"camera": FakeCamera(visionSystem = VisionSystem())}
| [
"doug.blank@gmail.com"
] | doug.blank@gmail.com |
20820d2999c8256213b38a1a0ee968ca846d22ce | 5242b58f4cfe6cb82834fa859a6a81e88033cc08 | /utils/login_required.py | 52a8ffbe3fd82e3b2c27641048af9dea82e8303b | [] | no_license | CollinChiang/ChatApp | 06a8128e986141e49221d6bdc270bc62475ef46e | bd1b25c53fde390ba4695e49e98e1d64ce1637e2 | refs/heads/main | 2023-07-07T16:59:38.681747 | 2021-09-08T02:59:31 | 2021-09-08T02:59:31 | 402,828,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from flask import redirect, session
from functools import wraps
def login_required(func):
@wraps(func)
def decorated_function(*args, **kwargs):
if session.get("user_id") is None:
return redirect("/login")
return func(*args, **kwargs)
return decorated_function
| [
"46460223+CollinChiang@users.noreply.github.com"
] | 46460223+CollinChiang@users.noreply.github.com |
474ab03160c08cfcd303d16a89320616f916a642 | 099ff999f3d80e8b6e47b85bda30b2499c442bfe | /gcp_hpo/smart_search.py | b3d85010e21db971af388784f4ceb38cc430242a | [
"MIT"
] | permissive | lucasiscovici/DeepMining | 7c0e32e83f03c83be7863316f669a0df1774b00a | db0a30a2cea7a525355f5d6246ccd07d4dfe4ce5 | refs/heads/master | 2020-04-30T08:32:44.756945 | 2018-07-03T18:25:05 | 2018-07-03T18:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,979 | py | """
Hyper-parameter optimization through randomized search, GP-based, and GCP-based.
"""
# Author: Sebastien Dubois
# for ALFA Group, CSAIL, MIT
# The MIT License (MIT)
# Copyright (c) 2015 Sebastien Dubois
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and asso... | [
"sdubois.sebastien@gmail.com"
] | sdubois.sebastien@gmail.com |
14878d495a08c0d015f2c65e2bc704123e4d4d3d | f5049260eb609e77be212b0d77dc32f283a2a498 | /Hobbies/Hobbies/wsgi.py | 1392c7d4c178e46636e80bcb034eb978499490d5 | [] | no_license | MrKreg/HobbiesProject | 35a6726c1be5d8044a1c170df1d43d5f631ffcdf | d13eeca5deec2d24500ac0a014efa77531f66b54 | refs/heads/master | 2020-04-13T15:50:04.938191 | 2018-12-27T22:51:25 | 2018-12-27T22:51:25 | 163,301,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # +++++++++++ DJANGO +++++++++++
# To use your own Django app use code like this:
import os
import sys
# assuming your Django settings file is at '/home/myusername/mysite/mysite/settings.py'
path = '/home/MrKreg/HobbiesProject/Hobbies'
if path not in sys.path:
sys.path.insert(0, path)
os.environ['DJANGO_SETTINGS_... | [
"taras.sheketa@gmail.com"
] | taras.sheketa@gmail.com |
fc155d1aea9ba0987c0503f3f248de84efbb9d67 | 359f7a903c35baafa372fd6f245a7390933d5c6b | /phygeograph/phygeograph/model/kddwei.py | 3fbd27d185978d7f9e05fc0f35a786a92f88559f | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | phygeograph/phygeograph | dd7c870ab32f941b372bfec4d532406389b8ae6f | a96ecbae25cd3c785685a840a079aafb30b4a1d4 | refs/heads/master | 2023-08-02T08:23:56.914452 | 2021-09-27T01:54:57 | 2021-09-27T01:54:57 | 409,607,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,185 | py | import torch
import scipy.spatial
def knngeo(x, y, k, batch_x=None, batch_y=None):
r"""Finds for each element in :obj:`y` the :obj:`k` nearest points in
:obj:`x`.
Args:
x (Tensor): Node feature matrix
:math:`\mathbf{X} \in \mathbb{R}^{N \times F}`.
y (Tensor): Node feature matr... | [
"phygeograph@gmail.com"
] | phygeograph@gmail.com |
8a8b8ba79006a28316ef9aa505f79d5b02b4b33a | 2481cde6506743565dff2b405a2396daf208ab3e | /src/ranking/management/modules/algorithm_yandex.py | 704ac764e959da19a6154d23d666eb6a1279c8cb | [
"Apache-2.0"
] | permissive | aropan/clist | 4819a3036d179595e4df8c646aff2ed593b9dad3 | 5c805b2af71acee97f993f19d8d4e229f7f5b411 | refs/heads/master | 2023-08-31T11:15:17.987776 | 2023-08-27T21:51:14 | 2023-08-27T21:52:16 | 187,111,853 | 276 | 35 | Apache-2.0 | 2023-09-06T18:42:53 | 2019-05-16T22:57:03 | Python | UTF-8 | Python | false | false | 586 | py | # -*- coding: utf-8 -*-
import re
from ranking.management.modules import yandex
class Statistic(yandex.Statistic):
def get_standings(self, *args, **kwargs):
standings = super().get_standings(*args, **kwargs)
if re.search(r'\bfinals?\b', self.name, re.I):
if 'medals' not in standing... | [
"nap0rbl4@gmail.com"
] | nap0rbl4@gmail.com |
2d80f7c9fbbe827f590fe956913c72d4b5e11451 | 0ce587a8932592fd989e0be9bf3ee65469875078 | /quantdsl/syntax.py | 6b91619504be69797bc17073add5820c3e8cf245 | [
"BSD-3-Clause"
] | permissive | caiorss/quantdsl | 98bdb73426a874e49ee71b7f030b528c4d479e02 | eaf72f5656628530e51a3ef4d0e83a903c55b86b | refs/heads/master | 2021-01-17T21:26:14.519914 | 2014-09-17T21:25:38 | 2014-09-17T21:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,662 | py | import ast
from quantdsl.exceptions import DslSyntaxError
class DslParser(object):
def parse(self, dslSource, filename='<unknown>', dslClasses=None):
"""
Creates a DSL Module object from a DSL source text.
"""
self.dslClasses = {}
if dslClasses:
assert isinsta... | [
"john.bywater@appropriatesoftware.net"
] | john.bywater@appropriatesoftware.net |
01f8f0584f0144c40fc052b2a100e5205895b8a8 | 0a484912bc857c037144f5f2ab8b56374eddb7ec | /image_upload/settings.py | 64d3fa84ef4ff0a4f2b23136e488e9356b320351 | [] | no_license | jeslin01/circleci-imageupload | fbb83c7363dd18c664ced390e8bb5a5f0b1fb0ff | 99183a323ca3204c7ab3d769d1133bfc143fc3f7 | refs/heads/master | 2022-12-12T22:43:30.167594 | 2019-03-30T06:39:08 | 2019-03-30T06:39:08 | 178,416,081 | 0 | 0 | null | 2022-12-08T04:55:16 | 2019-03-29T14:02:07 | Python | UTF-8 | Python | false | false | 3,547 | py | """
Django settings for image_upload project.
Generated by 'django-admin startproject' using Django 2.1.7.
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 ... | [
"ashish.g@synsoftglobal.com"
] | ashish.g@synsoftglobal.com |
8646a1f6a167a9781784fe5d0fd498c804a04f66 | bcc4f3188c6744530d8b05c47a83288bf520346e | /config.py | d8e673f496cdbc0b36766e3b8328a24a56db291d | [] | no_license | MikeSoft007/DukkaINC_ | deb31389e349b78bf4b3ee5e151686e013b6e57c | 100358cc9d8ad92481b21280b2ccb33481269713 | refs/heads/master | 2023-06-26T12:18:24.358905 | 2021-08-02T22:57:47 | 2021-08-02T22:57:47 | 391,277,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
# creating a configuration class
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
MONGO_URI = os.environ.get('MONGO_URI') | [
"mekpenyong2@gmail.com"
] | mekpenyong2@gmail.com |
8a97071f6de0931196876b2e68bc90a3e6b3f411 | 6acdc11c60e874e85adba173abb90f279049ab89 | /coding.py | 38bacad180c9b8b5d530c8e109dc4a1c43653658 | [] | no_license | bala977/balaji | 3ce9123709b1be1a24b8fd2235405e9a9be68382 | ba73e7591e7c86daef86081a15a19760dcac16b8 | refs/heads/master | 2020-06-11T16:58:56.256340 | 2019-08-05T10:03:27 | 2019-08-05T10:03:27 | 194,030,685 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #B
N1,P2=input().split()
if (int(N1)-int(P2))%2==0:
print("even")
else:
print("odd")
| [
"noreply@github.com"
] | noreply@github.com |
b5097dc639ce1b85de30e5898a505721e3bb28f1 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Deal Capture Examples/FPythonCode/MiniFutureInsDef.py | f25b228e0539ca28ceaaee4e44dc3bd4a628ca06 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,795 | py |
from __future__ import print_function
import acm, ael
def SetUpMiniFuture(definitionSetUp):
from DealCaptureSetup import AddInfoSetUp, CustomMethodSetUp
definitionSetUp.AddSetupItems(
AddInfoSetUp( recordType='Instrument',
fieldName='MiniFuture',
... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
a9d9e1b1168497075525714a3c133139ddf2971d | f3e01cec9dafab76911743281b9078d71a3f1201 | /python/example/client_threading_demo.py | f123e755238ccc556cb00f1dff62de7f6992a4fd | [
"Apache-2.0"
] | permissive | yinzhiyan43/harpc | ec31c765e6e31cd4cbd86dbd7583e8244b49667c | 0ca4e4e72bdea0d539852438b2e782cc9d87b83b | refs/heads/master | 2020-12-31T02:49:09.794181 | 2015-10-27T07:59:47 | 2015-10-27T07:59:47 | 47,240,224 | 2 | 1 | null | 2015-12-02T05:55:33 | 2015-12-02T05:55:33 | null | UTF-8 | Python | false | false | 1,719 | py | # -*- coding: utf-8 -*-
import threading
import logging
import time
from tutorial import TutorialService
from bfd.harpc import client
from bfd.harpc.common import config
threads = 15
req_num = 10
data = []
error = 0
for i in range(0,10240):
data.append(chr(i%64 + 32))
test_msg= ''.join(data)
logging.basicConfig... | [
"dongsheng.fan@baifendian.com"
] | dongsheng.fan@baifendian.com |
aee96f6de4e6fd2ecd47ec453c188c2895fc41c9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/173/usersdata/268/81652/submittedfiles/moedas.py | b3b9d67c5c88d783592b6b36e092be5012cfea8b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # -*- coding: utf-8 -*-
a=int(input('Digite o valor de a: '))
b=int(input('Digite o valor de b: '))
c=int(input('Digite o valor da cédula: '))
w=0
x9=0
while(w<c):
duvida= a*w
comprovacao= (n-a*w)
if (comprovacao%b)==0:
print(duvida)
print(b*(comprovacao/b)
if ((comprovacao%b)!=0) :
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a3836b9cc28eb0e6ec8bf9fd09847553c55d5a49 | 1b77f2c085e7c6c80359dc3ecee07ccbe3ffe502 | /tests/__init__.py | b076850ce129f3f11bca9048433050d239b6a19e | [] | no_license | hecttormendoza/front-odoo | 93c1e55ebbd09d999f5bd681ce1af627f3f81454 | 88350ca4867de19decaca078aac54744fc8226a3 | refs/heads/master | 2020-03-26T22:12:23.878965 | 2018-08-22T19:08:57 | 2018-08-22T19:08:57 | 145,440,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | from . import test_tour_teachers
| [
"hecttormendoza@gmail.com"
] | hecttormendoza@gmail.com |
b41041bcfcd4a8b7be11c744db2facf36c93d6c6 | 1acaf9a72cc49c0b707695c7131c94963312807a | /TOPfilter/StringSettleV7.py | fdfcddb30096b52f136abfa7cf8240378371bdca | [] | no_license | wblyy/Music_MetaGrabber | df201fd6e46467324567c3a08f68bc491902bcda | aed99b62c159bcc9ee982825f33ffbf58c6665ea | refs/heads/master | 2016-09-05T10:52:35.747895 | 2014-12-23T07:50:46 | 2014-12-23T07:50:46 | 26,156,496 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,363 | py | #-*-coding:utf-8-*-
#V7根据甲方需求的xls从QQ的更多json中拿歌,实现批量拿取批量入库,下一阶段再整合百度已有的歌单进行去重
#可以将甲方的需求看做一个二维数组
import urllib2# 使用库: urllib2
from mydbV1 import MydbV1
dbV1 = MydbV1.instance()
QQ_boundary=[
[1,179],
[2,344],
[4,94],
[5,355],
[6,86],
[7,95],
[9,306],
[12,263],
[13,170],
[14,55],
[17,18],
[18... | [
"wblyy0911@gmail.com"
] | wblyy0911@gmail.com |
a0556965cb02a37c5455038729b9fc1ee24bf7c7 | 27d2a191da28364cc921b097957f9e5b46514a2b | /res_net fusion/l.py | 13455f6fea3a09e34d0792c255814b1af2957a98 | [] | no_license | yesichao/works | 18513504150199a1eca48e861e452039da737d0f | 9c47ed1a26a205b135deeaa5fa70a350823ff88b | refs/heads/master | 2021-06-30T02:33:05.914134 | 2020-12-18T04:57:39 | 2020-12-18T04:57:39 | 204,428,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,316 | py | import warnings
import wfdb
import os
import numpy as np
import operator
from utils import *
os.environ["TF_CPP_MIN_LOG_LEVEL"] = '2'
warnings.filterwarnings("ignore")
data_path='D:/python/bwl res_net/MIT-BIH'
DS1=[101,106,108,109,112,114,115,116,118,119,122,124,201,203,205,207,208,209,215,220,223,230]
DS2=[1... | [
"noreply@github.com"
] | noreply@github.com |
cd7628ee316b36ef515d2a007cfa5fcc404713c9 | 83ca25974495f197a737b9f8c0b591a61a1fe595 | /moviebooking/movie/urls.py | 44ef0db5c5e8803fd20b16e931cdde89158ef3e0 | [] | no_license | ShazibHK/Django_MovieBooking | 0d6b044353348ee5d00a3cc274b3c670566b5e9d | 64abe1e34958b100c4d94adede71a66f5d61e40a | refs/heads/main | 2023-07-12T23:26:08.137343 | 2021-08-24T17:03:01 | 2021-08-24T17:03:01 | 399,532,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='movieIndex'),
path('', views.autocomplete, name='autocomplete'),
path('home_page2.html/', views.search_content, name='search_content'),
path('login/', views.customerLogin, name... | [
"mca.1919@unigoa.ac.in"
] | mca.1919@unigoa.ac.in |
b3589abd67feb9c0e4a4504c8763190db14f3597 | c08721ea0ab07fbf866b0612d315fed770a4e260 | /docs/source/conf.py | 5d8789ab32ae4f9a3d934bae3cd3c78ab84299bf | [
"MIT"
] | permissive | gunnarx/pyfranca | 84262c7f760eeeb60285fae401ff4f3d9b1d6f67 | d986e4b97229f9673d8349b2de77c541a9377faf | refs/heads/master | 2022-05-03T13:07:35.027609 | 2022-04-12T07:51:30 | 2022-04-12T21:15:10 | 88,442,258 | 3 | 1 | MIT | 2022-04-12T21:15:12 | 2017-04-16T21:00:37 | Python | UTF-8 | Python | false | false | 9,369 | py | # -*- coding: utf-8 -*-
#
# pyfranca documentation build configuration file, created by
# sphinx-quickstart on Mon Mar 13 03:43:16 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"zayfod@gmail.com"
] | zayfod@gmail.com |
b506ffdba484cd5f343426bd1f96c751004ba9fa | eaeb685d13ef6c58364c5497c911f3e2f8c49a43 | /Solution/922_Sort_Array_By_Parity_II.py | 09d03afec572e8518220ff839a03cf91f98b8253 | [] | no_license | raririn/LeetCodePractice | 8b3a18e34a2e3524ec9ae8163e4be242c2ab6d64 | 48cf4f7d63f2ba5802c41afc2a0f75cc71b58f03 | refs/heads/master | 2023-01-09T06:09:02.017324 | 2020-09-10T02:34:46 | 2020-09-10T02:34:46 | 123,109,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | class Solution:
def sortArrayByParityII(self, A: List[int]) -> List[int]:
ret = [0] * len(A)
pos_e = 0
pos_o = 1
for i in A:
if i % 2 == 0:
ret[pos_e] = i
pos_e += 2
else:
ret[pos_o] = i
... | [
"raririn.sandbag@gmail.com"
] | raririn.sandbag@gmail.com |
1aeb85afcb4a936df8b77f6a86713552f468588e | 200633e6583244f7b2c4d10464880c6e44e9003e | /Assignment3_ Ziyuan_Guan/seq_gram.py | 624f4ed36b407dd6b688acae52233fa120b0f8bf | [] | no_license | Chesterguan/BigData | 859a3f1f4b355cf848d53b030844e0c7c869964c | 9465ef27542b4cd1842c8f2213f1532878d21701 | refs/heads/master | 2021-09-11T14:29:26.254631 | 2018-04-09T01:28:53 | 2018-04-09T01:28:53 | 125,310,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | import keras
from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.layers import Embedding
from keras.layers import LSTM
import numpy as np
import copy
import random
import h5py
import csv
datas = []
labels = []
with open('train.csv... | [
"ziyuan.guan@ufl.edu"
] | ziyuan.guan@ufl.edu |
e6565fbb7fe151f4adbf8fb13de191e7f9e51300 | fed0e0bed42f6297aa6b92c4af9be15edf363535 | /models.py | 194d40065f650d67baf95c691d68177479af81b8 | [] | no_license | djwilder316/learningflask | 7d99572f77a8b4af39c845d4cf6e70a6132e5d58 | 2cbe4a0b37d2f274353e4806dc3e917467a73d9e | refs/heads/master | 2020-03-28T16:12:14.056789 | 2018-09-17T20:22:24 | 2018-09-17T20:22:24 | 148,669,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | from flask_sqlalchemy import SQLAlchemy
from werkzeug import generate_password_hash, check_password_hash
import geocoder
import urllib
import json
db = SQLAlchemy()
class User(db.Model):
__tablename__ = 'users'
uid = db.Column(db.Integer, primary_key = True)
firstname = db.Column(db.String(100))
l... | [
"djwilder316@gmail.com"
] | djwilder316@gmail.com |
d3c0c2506005e3610ea98dcccd01620e15a319f2 | 31ac0d992ebe3f8e40e31d48cb79a1708fa51b8f | /blogging/migrations/0003_auto_20200328_1255.py | 3a322781d46d6500db0d4bb8226bf21c4773ac24 | [] | no_license | franjaku/django-blog | 78a94f8a56d7083fbf43a084561619530f9d933b | 9da7dd0525519cfa378dcca834b62297f046cb46 | refs/heads/master | 2021-04-23T03:36:19.730623 | 2020-04-09T06:30:53 | 2020-04-09T06:30:53 | 249,895,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # Generated by Django 2.1.1 on 2020-03-28 19:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogging', '0002_category'),
]
operations = [
migrations.AlterField(
model_name='category',
name='posts',
... | [
"kulyckyf@umich.edu"
] | kulyckyf@umich.edu |
0e6e154633b3d4ca832a232c20e7f1a4740450f6 | e3c9877255b7591e3b12d12644fd13518a45b855 | /account_rbi/controllers/controllers.py | 0f31ed1992e8bac15980770a8ca0307391448360 | [] | no_license | fadynoor/rbi | c445e7a53462c104b1c59ebc19291d0293a3bb43 | ba956c42618cae7ad70f2ce22d10caa0847d7499 | refs/heads/master | 2022-12-26T17:18:00.448927 | 2020-09-25T10:40:25 | 2020-09-25T10:40:25 | 278,926,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # -*- coding: utf-8 -*-
# from odoo import http
# class AccountRbi(http.Controller):
# @http.route('/account_rbi/account_rbi/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/account_rbi/account_rbi/objects/', auth='public')
# def list(self, **kw):
# r... | [
"fady.noor@gmail.com"
] | fady.noor@gmail.com |
d82de8f764febc64cf530f2dc46b710cd433c73d | e05f8d36c70336a8714cc260c02fe85ecee2e62e | /subject/tests/functional/v1/test_api.py | cfca2ac0204a25f545c1ca0124f77b4b5b32a902 | [
"Apache-2.0"
] | permissive | laoyigrace/subject | eafa442b5d9ebf83c78a01ce3bb5d088d08d620d | e6ed989fdc250917a19788112b22322b73b3550f | refs/heads/master | 2021-01-11T00:06:54.790751 | 2016-10-24T02:13:32 | 2016-10-24T02:13:32 | 70,754,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,886 | py | # Copyright 2011 OpenStack Foundation
# 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 requ... | [
"yibo_grace@163.com"
] | yibo_grace@163.com |
ff00a04615743bcd931d99ee7f9a21cade5d3410 | 3ea3f46bd4d7231c5eb5c1e1c02625f5290cac76 | /heart/migrations/0003_auto_20170317_1846.py | 0573637431da4546fd61ccdbdfb05f3edf19ea1b | [] | no_license | moonclearner/simpleDjangoProject | 0340b0a744651bcc9dbd7a52b12c4827d40a7a5f | 51fc70d4c499aa64e82a6f02c913f44c45cad323 | refs/heads/master | 2021-01-23T01:41:25.481027 | 2017-04-11T14:29:09 | 2017-04-11T14:29:09 | 85,927,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-17 10:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('heart', '0002_auto_20170317_1841'),
]
operations = [
migrations.AlterField(... | [
"718857460@qq.com"
] | 718857460@qq.com |
40895ed0380296e8484501ac5322c0acb1c93e90 | 692b7a9f0902ce86c4a32582b309d20d12df1631 | /tcp_tests/fixtures/rally_fixtures.py | 45e828a31aa7814ed0a0d1c64ce4827b7d137660 | [] | no_license | dis-xcom/tcpcloud-devops-env | 10bee9ab3dc722a5fd4ed116bbe7d09439e3a6e4 | 9d3b4530458513157b3662089288f7d85c656226 | refs/heads/master | 2021-01-11T04:29:27.164184 | 2016-10-18T10:39:00 | 2016-10-18T10:39:00 | 71,150,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | # Copyright 2016 Mirantis, Inc.
#
# 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 ... | [
"dis@srv09-kha.kha.mirantis.net"
] | dis@srv09-kha.kha.mirantis.net |
6dbabae65ed075a12913a12e8af2019751371a24 | fdd2ed32e45ca3dcc978cf7e5af76d2afd8cb9f9 | /87.py | ecdbdd1ab3aee85a6e5da158c4511eb5ef0c7440 | [] | no_license | Narendon123/python | e5295e5b71867fd6a90d080c01e2db6930659f95 | cf0b3dd4ff4eb4d6d44f061b45d00baa25de5a38 | refs/heads/master | 2020-05-31T06:06:19.230781 | 2019-07-11T12:51:25 | 2019-07-11T12:51:25 | 190,134,515 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | w=input()
w=w.split()
a=int(w[0])
b=int(w[1])
i=1
while(i<=a and i<=b):
if(a%i==0 and b%i==0):
gcd=i
i=i+1
print(gcd)
| [
"noreply@github.com"
] | noreply@github.com |
286e6fc6fadb3b6f3acf790a8ff9b86949ce9f42 | c9b1e04ba65ba3e0af2a8ae86b88187b72bcaa0b | /.svn/pristine/28/286e6fc6fadb3b6f3acf790a8ff9b86949ce9f42.svn-base | 906aef8455f144197811b24c002a226a851f74cc | [] | no_license | feitianyiren/TaskCoach | 7762a89d5b521cfba0827323a9e8a91d1579810b | 0b7427562074845ac771e59e24a750aa5b432589 | refs/heads/master | 2020-04-08T04:56:35.491490 | 2016-01-12T13:29:03 | 2016-01-12T13:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,438 | import patterns, time, copy
import domain.date as date
class TaskProperty(property):
pass
class Task(patterns.ObservableComposite):
def __init__(self, subject='', description='', dueDate=None,
startDate=None, completionDate=None, budget=None,
priority=0, id_=None, lastModificationTi... | [
"hieronymus_schweiz@yahoo.de"
] | hieronymus_schweiz@yahoo.de | |
713482388b498523e139b006bdf1fc3b83d5e35b | 74a188c3470cba0d69c437fe1c1b93e63d8327b8 | /part1/lesson25_part1_demo/vacancies/models.py | 802551eb9eb98c818666f208309d34bf0b98c3c2 | [] | no_license | skypro-008/lesson25 | 81aa8155409ed600eab1aea0c454632a2822f051 | 2d2c91879cde763743a22477e813218e00cb5a76 | refs/heads/master | 2023-08-28T15:46:25.400658 | 2021-09-20T15:26:45 | 2021-09-20T15:26:45 | 407,803,797 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django.db import models
class Vacancy(models.Model):
text = models.CharField(max_length=1000)
| [
"aalmukhametova@gmail.com"
] | aalmukhametova@gmail.com |
8a33374b9c01ded55865a5c9464ca843e32074d6 | 37220d7b60d682eb1abf40326d061485581aab36 | /ajax/urls.py | b06af246996089bc8452ee5a25eabcdc705623a1 | [
"BSD-3-Clause"
] | permissive | lautarianoo/LautAvito | 547fba9a0bb3a65aac6132e00382a8876bca4a28 | 106dcb6f04230af2540bd3883c85713828cd051c | refs/heads/master | 2023-06-24T11:08:17.889875 | 2021-07-26T17:30:08 | 2021-07-26T17:30:08 | 377,897,865 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from django.urls import path
from . import views
urlpatterns = [
path('get_districts', views.get_districts, name='get_districts')
]
| [
"neonchick1"
] | neonchick1 |
9a3303167a28af09eda1b153ab50bdbab82cba7b | c91ef1310c905771477f11d5694b4991926152c5 | /mysite/blog/tests/test_views.py | 224c3168e12e378d809035801e136169f1eb3e36 | [] | no_license | Yuichi-kawasaki/python-blog | 248388ca142294eb937718801b8a02825f614c05 | 3f91618c0ebdb29cbfaab32d56fd727b39040879 | refs/heads/master | 2023-05-12T16:18:57.617116 | 2021-05-30T07:54:36 | 2021-05-30T07:54:36 | 372,155,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,674 | py | from django.test import TestCase
from django.urls import reverse
from ..models import Post
class PostListTests(TestCase):
def setUp(self):
"""
テスト環境の準備用メソッド。名前は必ず「setUp」とすること。
同じテストクラス内で共通で使いたいデータがある場合にここで作成する。
"""
post1 = Post.objects.create(title='title1', text='text1')
post2 = Post.objec... | [
"jiv.yu1.kawasaki@gmail.com"
] | jiv.yu1.kawasaki@gmail.com |
8c4e0732907c0a50c71b4fd46d7db075c8ad46a5 | 760fbdca58de7e2fb146ec60905ded7497b1812b | /ibm_whcs_sdk/insights_for_medical_literature/tests/integration/test_search_typeahead.py | ee752832dabdf1753e9150dd069ef924defa1b65 | [
"Apache-2.0"
] | permissive | dmansjur/whcs-python-sdk | c5d28742cefc65e19a7eb5de0027fe9f59b1e689 | 110a847c91d5779df91c6562394bde557ee132e5 | refs/heads/master | 2021-05-26T21:49:44.515561 | 2020-04-07T17:17:36 | 2020-04-07T17:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | # coding: utf-8
# Copyright 2018 IBM 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 applicabl... | [
"dcweber@us.ibm.com"
] | dcweber@us.ibm.com |
72627daf23c16323fb9cc7908b77948306504c43 | dee83fb6b0bd496b01dd0c216ee6e1a62012abe3 | /users/views.py | ddbf99c3ca818a3722abba0e5c78294208027386 | [] | no_license | RJustinePanopio/ems_proj | 82f56112ba3abf9e5548376b4deed92db04c0d47 | 4ea38eebc1fa4738c845570e96f8055238f2ed4a | refs/heads/master | 2020-04-04T18:00:33.016146 | 2018-11-08T04:04:53 | 2018-11-08T04:04:53 | 156,146,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic import CreateView
from .forms import ParticipantCreationForm
class SignUpView(CreateView):
form_class = ParticipantCreationForm
template_name = "signup.html"
success_url = reverse_lazy("login") | [
"20anime15@gmail.com"
] | 20anime15@gmail.com |
2bd347367d16337128c24e338d3460b3fa8647c9 | ebc4394518b59bab29fe23452c23918f3b3d93b7 | /agriculture/crop-yields/plot_topography.py | f950da826979b1eaf89377b64a22ee42afcaa3c5 | [
"MIT"
] | permissive | gkilleen33/rs-economics | a1673f041d66cf04db0d38940da230def05edeb8 | 4b1149925695c9fe801d22912d28a4c022ba9079 | refs/heads/master | 2021-07-05T05:16:12.753945 | 2021-06-12T18:49:22 | 2021-06-12T18:49:22 | 243,337,981 | 3 | 1 | MIT | 2021-03-20T22:55:33 | 2020-02-26T18:40:34 | Python | UTF-8 | Python | false | false | 2,283 | py | # -*- coding: utf-8 -*-
import ee
ee.Initialize()
###############################################################
# ENTER USER INPUTS HERE
###############################################################
plot_boundaries = ee.FeatureCollection() # Upload plot boundary data (e.g. using the Google Earth Engine consol... | [
"gradykilleen@gmail.com"
] | gradykilleen@gmail.com |
399c43ffe2bee74fd813a3ea733be816e7ba391b | f6f8323999c8ec13e14f9354a64f9a393f7ec032 | /volc/volc.py | 2c14c090661353f004dce8a2ee943c14611263a2 | [] | no_license | jrybicki-jsc/rusty | 8a3b0776428eca61f9a82af139df0bae7aedb923 | d6e1ef23f3abc2ca366d9f64e57efaff601eabbd | refs/heads/master | 2022-12-19T06:35:35.765175 | 2020-10-03T08:32:31 | 2020-10-03T08:32:31 | 267,676,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,842 | py | import sys
import math
import random
import pygame as pg
pg.init()
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
LT_GRAY = (180, 180, 180)
GRAY = (120, 120, 120)
DK_GRAY = (80, 80, 80)
class Particle(pg.sprite.Sprite):
gases_colors = {'SO2': LT_GRAY, 'CO2': GRAY, 'H2S': DK_GRAY, 'H2O': WHITE}
VENT_LOCATION = (... | [
"j.rybicki@fz-juelich.de"
] | j.rybicki@fz-juelich.de |
49c119a4c7491a7b5b8bcf0c18b0dbbd7e0c9b34 | 19ac8aa8ee916cef99ddc85b6565c4d6fbe40749 | /FunctionsAndFunctionalProgramming/functionalFizzing.py | 953c863c737f9d99921591c2b75d1cc537db621e | [] | no_license | Darrenrodricks/IntermediatePythonNanodegree | 53570bb1b97d9d10d6e6bd19d3a1f8f654a1cfe9 | 5e597fbe147c23b694fc9b354797e443f0a87a67 | refs/heads/main | 2023-06-25T18:54:38.962503 | 2021-07-28T17:15:44 | 2021-07-28T17:15:44 | 389,006,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import helper
"""Generate an infinite stream of successively larger random lists."""
def generate_cases():
a = 0
while True:
yield helper.random_list(a)
a += 1
if __name__ == '__main__':
for case in generate_cases():
if len(case) > 10:
break
print(case) | [
"noreply@github.com"
] | noreply@github.com |
0eb114fa558bb9e5f5e7d4a9501ddd53fa14a7b6 | a0dde47bec13e16d9e39ff6a5d321770d6fa8c80 | /app/conf/index.py | d31cac1eb0bb44104073fe9304d41982934896cb | [] | no_license | siddharthpanda99/FlaskService | 4ed397155ee1be1f8ce681b333d0291eed2c3cd0 | c93414eb4a77239802c0f662df7602ad02a6e7de | refs/heads/master | 2020-06-14T15:39:55.028554 | 2017-07-29T03:26:40 | 2017-07-29T03:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | from __future__ import print_function
from __future__ import unicode_literals
from flask_cors import CORS
from flask_httpauth import HTTPBasicAuth
from auth import configure_auth
from cache import configure_cache
from mongo import configure_mongo
from pubsub import configure_kafka
from subscribers import register_sub... | [
"b96705008@gmail.com"
] | b96705008@gmail.com |
29c5c69336a38d9dcf6b6df89d61cecd8ee4bc24 | 2a1885f175d863e425682e4fd697fe2a1bdfb2a1 | /memberactivityapp/migrations/0001_initial.py | 3d680bf25b4f0bbff2c202bfb9009133269ea547 | [] | no_license | Anshum4512501/fullthrottle_work | 133a7da214e7c80e690fb50c3af7c74f57c579ad | 8a076b7c61377e585f06bd314bccd9eb476c87d8 | refs/heads/master | 2022-11-28T23:36:54.771044 | 2020-08-12T10:04:04 | 2020-08-12T10:04:04 | 286,205,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # Generated by Django 3.1 on 2020-08-08 11:26
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Members',
fields... | [
"anshum45@gmail.com"
] | anshum45@gmail.com |
d5f638b16f492c7594a3fcea541c45e8aae9fab2 | 2435099201902a12689621baba62f7799a260ae3 | /backend/red_frost_25038/urls.py | 990009da86771f717c4f523d324c2d500dcb88a5 | [] | no_license | crowdbotics-apps/red-frost-25038 | eab0bada99927f8f7d76f4866bbcf042be762a0d | cfb48c84f707a558d0cf6405f5057371bdcb2778 | refs/heads/master | 2023-03-30T10:07:45.116090 | 2021-03-15T15:46:25 | 2021-03-15T15:46:25 | 348,029,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | """red_frost_25038 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')
Cla... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d7b6cc4e3530d46233da220faa7ff26f21edad7d | c761eca92ffd77f0473d5b8a211167965531f662 | /redash/__init__.py | 89c355dba1073b93ee4027093d3cbca47d0b076a | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | solutionrooms/testredash | 777cd1a7e24abcbf9de866e34f36d3530f1b68bd | 8decda0b55defd24fa627b24e7c5fcd377062617 | refs/heads/master | 2021-01-20T11:14:31.950310 | 2016-06-23T21:49:08 | 2016-06-23T21:49:08 | 61,838,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,948 | py | import logging
import urlparse
import redis
from flask import Flask
from flask_sslify import SSLify
from werkzeug.contrib.fixers import ProxyFix
from werkzeug.routing import BaseConverter, ValidationError
from statsd import StatsClient
from flask_mail import Mail
from redash import settings
from redash.query_runner im... | [
"jon.scott@solutionrooms.com"
] | jon.scott@solutionrooms.com |
4dfd9b395dbd48e56d02530c1187d3870308bd63 | 39f2d8e5e16cdb173e0c46c79fadee87db040cb3 | /spiderDigikeyMain.py | a2728dcd8e11cb264a3aa603fb266c31d6b61378 | [] | no_license | afrunk/spiderClock | 3345723c2604cfedf6d6adae97e86c405728012b | e046c2477c27e1ce772b9e6d5c169e1973c9e28f | refs/heads/master | 2020-07-06T19:46:08.025145 | 2019-08-27T14:18:19 | 2019-08-27T14:18:19 | 203,121,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,871 | py | # 爬取的时候需要修改的地方
'''
- 表名:
- get_html_sensor() 函数中更新链接状态
- read_all_urls() 获取链接存入数据
- get_images_new() 获取图片链接
'''
import requests
from bs4 import BeautifulSoup
import pymysql
import os
import time
# 链接数据库 切换时候修改db即可
db = pymysql.connect(host='127.0.0.1',
port=3306,
user='roo... | [
"afrunk7@gmail.com"
] | afrunk7@gmail.com |
251660ad7fcbe5e0382b980fc9d1abb986e30e43 | 33de81c7970f12926cbc4dc3cce3655898afcd55 | /collatz.py | 4a6b9437737fe827db6f9916e369ea19762cf5cb | [] | no_license | HazelIP/pands-problem-sheet | b62fcad87315ad5991b8dd1ffe7f9a55f1a6c92e | c13a58fbdb65e4f1e7a2efeef43ff4ba92688f00 | refs/heads/main | 2023-04-13T15:59:26.968861 | 2021-04-07T05:20:28 | 2021-04-07T05:20:28 | 334,283,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | # This program ask user to input any positive integer and outputs successive values of the below calculation
# At each step calculate the next value by taking the current value
# if the input is even divided by 2, if odd x3 +1
# end program while output = 1
# Author: Ka Ling Ip
def main(): #create a function called ma... | [
"g00398581@gmit.ie"
] | g00398581@gmit.ie |
d920e145be21cf8acf22577c83cf9016cdd89833 | e95c988f578064830c34708d11b16b4f0e72d468 | /src/calculator.py | 00ca1ab20a12d76f12c26c294ae027ff7dfcfd7b | [] | no_license | shishirajm/date_calculator | 780b002f0183b7fac3719a5f9c4e669909f347e6 | 5e0297a02da400ed20701fc26dea658ee79118a4 | refs/heads/main | 2023-03-11T12:34:15.882215 | 2021-02-27T18:09:09 | 2021-02-27T18:09:09 | 342,792,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from src.date import Date
def get_dates_diff(date1, date2):
try:
log(date1)
log(date2)
d1 = Date(date1)
d2 = Date(date2)
return d1 - d2, ''
except Exception as e:
log(e)
return -1, e
def log(msg):
print(msg)
| [
"shishirajm@gmail.com"
] | shishirajm@gmail.com |
0a454a6e9c041f2defd78711ff6565bca268f9b5 | f9c16bd4969d10f5f860205dcab5035f075209b8 | /pigat/spiders/pigat_cms.py | 69f32d5b523516e7007243342e349e05a4cd4963 | [] | no_license | cracer/pigat | 3ec3c64560846032e0f8d1645e21a9c1e99dc33d | 9a9082db8bd7f79d8960bc1e19b312093c32855b | refs/heads/master | 2022-12-29T13:20:34.469470 | 2020-10-14T05:23:46 | 2020-10-14T05:23:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,594 | py | import time
import json
import zlib
import requests
import scrapy
import pymongo
from bs4 import BeautifulSoup
from pigat.items import PigatItem_cms
class pigat_ip(scrapy.Spider):
name = 'pigat_cms'
def start_requests(self):
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100... | [
"1205613989@qq.com"
] | 1205613989@qq.com |
b79f48e5eac894729b2be9ba8b6dd039868089e1 | 97c3ee99b694e2bae1d84d13d2311bc4430f362d | /firmware/rm5.py | 90f51a071b63a1e0dfb3ee22f8b749c41a674c50 | [] | no_license | Technonautes/technotireuse | 2d9df1ae4aa0b42143ea4c541e6792e4ee436d38 | 3ac7edf5837842347d26b7f72a47ce5f128ef962 | refs/heads/master | 2020-04-20T17:11:17.117830 | 2013-02-24T00:04:13 | 2013-02-24T00:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from serial import Serial
s = Serial('/dev/ttyUSB0')
while True:
s.write(chr(0) + chr(29) + "\n")
print s.read(4)
| [
"gabe@squirrelsoup.net"
] | gabe@squirrelsoup.net |
6a3525a5768ae1cca9acf1b58bac76069208d3a9 | 1de26609eb6a84da6e431425ea76241dc54a270b | /旧的版本/0.76/o2oPrinter.py | 46de58383f53d7025a103c411706110d78c215b4 | [] | no_license | ZUXING/o2oPrinter | de3e56a2a6cdd7632f113f42a5aff6b7f7606f2c | 269a46e6188037c067529129ba5f2b1ca64d7d98 | refs/heads/master | 2022-12-23T06:41:17.348453 | 2020-09-19T15:08:09 | 2020-09-19T15:08:09 | 279,644,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import os
import win32api
import win32event
import win32process
import win32con
import win32print
#Version 0.76
#ChenGuanglin Software Studio & ZUXING
print("Codename:o2oPrinter")
print("在线打印机开始工作")
from win32com.shell.shell import ShellExecuteEx
from win32com.shell import shellcon
recvFilePath = 'o2oPrint\\'
while ... | [
"zuxingv@foxmail.com"
] | zuxingv@foxmail.com |
b2bfe60fd2757ea1c81ebdbf993288df5d87aa51 | b98e5b36afde16824ff7f24394a13db33498ab13 | /Ensaio_RAW.py | 19770e03d752ae6a95b7447be944fad7cdd0b333 | [] | no_license | GuilhermeMPPython/Calculab.py | 2ed15c675c72c71fe734a83e8cac0c3fe1649ad2 | f76fff1f205177f81baa054d3b03c443b870dfdf | refs/heads/master | 2020-07-01T07:22:04.177569 | 2019-08-09T14:53:59 | 2019-08-09T14:53:59 | 201,088,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 7 13:55:44 2019
@author: Guilherme MP
"""
import celula_p
import leishmania_p
import virgula
def ensaio_infeccao_RAW():
print (' ','='*38)
print('\t CÁLCULO LEISHMANIA')
print(' ','='*38)
leish_poco = round(leishmania_p.leishmania(),2)
print (' ','=... | [
"53872837+GuilhermeMPPython@users.noreply.github.com"
] | 53872837+GuilhermeMPPython@users.noreply.github.com |
195624fb20c54ced15a65be4c1af7cb329cc3b1c | 31f9333012fd7dad7b8b12c1568f59f33420b0a5 | /Alessandria/env/lib/python3.8/site-packages/django/contrib/staticfiles/testing.py | 754bd296574e9e20066c857e41043e1bb11bfcc3 | [] | no_license | jcmloiacono/Django | 0c69131fae569ef8cb72b135ab81c8e957d2a640 | 20b9a4a1b655ae4b8ff2a66d50314ed9732b5110 | refs/heads/master | 2022-11-15T22:18:57.610642 | 2020-07-14T14:43:16 | 2020-07-14T14:43:16 | 255,125,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | from django.contrib.staticfiles.handlers import StaticFilesHandler
from django.test import LiveServerTestCase
class StaticLiveServerTestCase(LiveServerTestCase):
"""
Extend django.test.LiveServerTestCase to transparently overlay at test
execution-time the assets provided by the staticfiles app2 finders. T... | [
"jcmloiacono@gmail.com"
] | jcmloiacono@gmail.com |
c4e5fb6ae2eebc51f64b8a0e86de608c5e28fba1 | c3cfcf8cd82626cb66019499471c7532b8559026 | /KNN/KNN.py | 4e13b46a68ac605c00ab5e9d2ec8105bfeeb9e2d | [] | no_license | shyheng/Machin_Learning | de7ee6d0e8f50789a7f065a2f0eb0fd7e4130a80 | 03d92c9935f2366bf571068cd133fe3734f5c183 | refs/heads/main | 2023-01-24T12:23:59.224756 | 2020-11-21T16:30:52 | 2020-11-21T16:30:52 | 314,854,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | import csv
import random
#读取
with open('Prostate_Cancer.csv','r') as file:
reader = csv.DictReader(file)
datas=[row for row in reader]
# 分组
random.shuffle(datas)
n=len(datas)//3
text_set=datas[0:n]
train_set=datas[n:]
# print(text_set)
# KNN
# 距离
def distance(d1,d2):
res=0
for key in ("radius","te... | [
"shy2210278285@aliyun.com"
] | shy2210278285@aliyun.com |
e02f4a0c5b78cca43171902e5b8212d0c9bf443a | 2fe18f4babd857381c2251f1c2437ccdae234dd8 | /bookmarks/bookmarks/settings.py | 273af7e947825b97a57cf7f7558397f12874a3f2 | [] | no_license | Akhtyrtsev/bookmarks | 62f23d87c9442aaa2f56c73dd52ddbf8e456f7e1 | c8c52f1a9d4674a7187ad2408af7c090424a9738 | refs/heads/master | 2020-07-03T23:17:44.547699 | 2019-08-15T12:27:04 | 2019-08-15T12:27:04 | 202,083,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | """
Django settings for bookmarks project.
Generated by 'django-admin startproject' using Django 2.2.4.
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/
"""
import os
... | [
"akhtyrtsev@gmail.com"
] | akhtyrtsev@gmail.com |
3038e558ef979265c039fb7fa0e2bd16093e2d0d | 2bda7591991e5be48f36fb22d562cc843d03ba73 | /src/main.py | b63f314209ff76f19897c5e34ac3e29a47039d39 | [] | no_license | julflore000/Thermo-Final-Project | b95857a1d35480f934fb5747d7fa8fe4f57eb852 | 8930a4126e6cc7e9348a55af8bba3904116eae23 | refs/heads/main | 2023-02-02T19:05:58.586166 | 2020-12-12T00:47:25 | 2020-12-12T00:47:25 | 316,055,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,467 | py | import pandas as pd
import numpy as np
import csv
import matplotlib.pyplot as plt
import math
import datetime
import seaborn as sns
def calculateEnergyGenerated(startDate,endData,keepRes = False):
""" generates the ROR electricity plant for a start date to an end date
start and end dates: must be in datetime fo... | [
"52216279+julflore000@users.noreply.github.com"
] | 52216279+julflore000@users.noreply.github.com |
93997a040bba25b98298ab1d27859cb7599ddd00 | 911790a1b0b9cdc0e2348e9cd849a68e9be67cab | /video_frame.py | 1a22f6848953516cfa2bb7d2aa04aff0a866fc9a | [
"Apache-2.0"
] | permissive | ANDROID564/pc_cyber_lab | 9dbff546e049b2e6ed5feb5f2c7aea18d0e8b322 | 704aa94ec74f78d9221f4c0f96cfa62a9e10d3ef | refs/heads/master | 2020-05-25T04:03:23.566675 | 2019-05-20T11:41:12 | 2019-05-20T11:41:12 | 187,619,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | '''
Using OpenCV takes a mp4 video and produces a number of images.
Requirements
----
You require OpenCV 3.2 to be installed.
Run
----
Open the main.py and edit the path to the video. Then run:
$ python main.py
Which will produce a folder called data with the images. There will be 2000+ images for exampl... | [
"noreply@github.com"
] | noreply@github.com |
b7a39781da795ef517cb03964f9dde5fd7e01f70 | 376a1b1be24210e8860662f3d499124ab25b30a7 | /src/Semestre_2019_2/2019_09_17_Underfitting_Overfitting.py | d51a59c9e3e524c6cafd95a9704fd9e2225451fe | [] | no_license | nocyamribeiro/EEL891 | 0aabcc456374c9b9005251d0342460c3eea1f5db | 2e265d71a2fba661843662047a83837e4aecf10d | refs/heads/master | 2021-01-06T05:35:57.075806 | 2019-11-19T03:42:16 | 2019-11-19T03:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,131 | py | #==============================================================================
# Underfitting e Overfitting
#==============================================================================
polynomial_degree = 3 # grau do polinomio usado no modelo
number_of_samples = 20 # numero de amostras de dados dispon... | [
"heraldo.ufrj@gmail.com"
] | heraldo.ufrj@gmail.com |
440d156989c7d14212ee7acec2a615fa1d0d34cc | f75f9c0e7192170a5846c0b726b10e645d5812b7 | /tests/test_models.py | 845a6eaf73b1e3765e21211184bc835c50c73de7 | [
"MIT"
] | permissive | mzbotr/betfair.py | 6feff7250fec38c31ef9c89fc15a057c935d7274 | dca804a4eaf999af54c53589e9559409fae26d6f | refs/heads/master | 2021-01-21T06:02:35.902807 | 2015-06-15T04:05:51 | 2015-06-15T04:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | # -*- coding: utf-8 -*-
import pytest
from enum import Enum
from schematics.types import StringType
from betfair.meta.types import EnumType
from betfair.meta.types import ModelType
from betfair.meta.models import BetfairModel
def test_field_inflection():
class FakeModel(BetfairModel):
underscore_separa... | [
"jm.carp@gmail.com"
] | jm.carp@gmail.com |
d4275b4c2da2fb0801bf73f1f333a1a8ad719ed9 | 6bd9d9366351cf2aa57a4fd23d0ed6a56b5270c7 | /Day6Noran.py | 7c4964125902231ac5a73cf92f9c5ccfcd4ad267 | [] | no_license | NoranAB/100daysofcodes | 671f6bfaf5c657f3d779843b5d05a33aa1bf28e0 | c716563f7388ff7cfd2044a0f6097178bc08705b | refs/heads/master | 2020-07-10T10:19:41.417762 | 2019-11-21T05:19:23 | 2019-11-21T05:19:23 | 204,239,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | #Example1
x = int(2) #x will be 1
y = int(3.6) # y will be 2
z = int("4") # z will be 3
print (x)
print(y)
print(z)
#Example2
x = float(2) # x will be 1.0
y = float (3.6) # y will be 3.6
z = float ("4") # z will be 4.0
n = float ("4.6") # n will be 4.6
print (x)
print(y)
print(z)
print(n)
#Example3
i = str ("sl") # i... | [
"noranoz41@gmail.com"
] | noranoz41@gmail.com |
da2379011ed33e44d8e763b226628d29407fa4b1 | 8111f7c7118c04357ff94678f3ec0fa0506337be | /Mysite/static/data/script/mysql_test.py | 0c4fc75e406f1f44e389708b13ae9b5d3a19034c | [] | no_license | Riners/Data-Visualization | 3b7ba0ef0d4aad8d5e97d18d41ebb3b62a65d6d8 | 3c308d06840c8a205afd7b25f186efffe9584403 | refs/heads/master | 2020-03-21T11:12:54.584843 | 2018-06-24T16:50:48 | 2018-06-24T16:50:48 | 138,494,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,137 | py | import pymysql
pymysql.install_as_MySQLdb()
db = pymysql.connect("193.112.0.249", "root", "Admin@123", "mysite", charset='utf8' )
cursor = db.cursor()
cursor.execute("SELECT VERSION()")
# data = cursor.fetchone()
# city = ['BJ','CD','GZ','HZ','GL','HF','LZ','NC','NJ','SH','SJZ','SZ','TJ','TY','WH','WLMQ','YN'... | [
"920113448@qq.com"
] | 920113448@qq.com |
fc9b8add7d7714e6e622faf7435163e9b948f206 | e04455817ed6a9497cb8b661a6d5780f211e4dd7 | /meetup_app/app/scheduler.py | 3aa6acbfbab76a55afdf75eda3a98ae44ec459cd | [] | no_license | smkukorea/meetup | 942dba2f3e302d3dbdc666acada365a88fe788d7 | c5bafd8e66484a6d2f371a91d0f4c88ec55ecc29 | refs/heads/master | 2022-12-13T12:10:51.856093 | 2020-01-15T21:49:46 | 2020-01-15T21:49:46 | 233,226,539 | 0 | 0 | null | 2022-12-08T07:02:47 | 2020-01-11T12:14:04 | HTML | UTF-8 | Python | false | false | 3,700 | py | from app.models import Event
from datetime import datetime, timedelta
class Schedule:
def __init__(self, event):
dates = event.dates.split(",")
self.days = [datetime.strftime(date, "%a") for date in (datetime.strptime(date, "%m/%d/%Y") for date in dates)]
self.dates = [datetime.strftime(dat... | [
"smkukorea@gmail.com"
] | smkukorea@gmail.com |
61511f49964ca71e6a0f6d8c8c5023828b810084 | 55909fd5282ea210f2221fc467f71f9ed41b0bef | /Aula 13/ex056.py | 5a65082bf9d2352ec7ab655f7557494215f5ccf6 | [
"MIT"
] | permissive | alaanlimaa/Python_CVM1-2-3 | 163ecd8c9145f2d332e6574d8923373b87a2e1f5 | 6d9a9bd693580fd1679a1d0b23afd26841b962a6 | refs/heads/main | 2023-06-18T16:07:59.930804 | 2021-07-20T16:22:01 | 2021-07-20T16:22:01 | 387,841,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | midade = Hmaior = nomevelho = contM20 = 0
for p in range(1, 5):
print('-=-' * 10)
print(f'{p}º pessoa ')
nome = str(input('Nome: ')).strip()
idade = int(input('Idade: '))
sexo = str(input('Sexo [F/M]: ')).strip()[0]
midade += idade
if p == 1 and sexo in 'Mm':
Hmaior = idade
n... | [
"alanlimabusiness@outlook.com"
] | alanlimabusiness@outlook.com |
f86e5caae131e7fb0503f683c8c5ebdba4847ccf | 2c40670b2f745eeac43c6f0b2c60581c36a30302 | /models/product.py | 4c0758320d0bc7da138e82cbd2aa89399b924b71 | [] | no_license | minsiang97/aroparts | a193beff24677c4ae43614e04d1b997d99014fca | f504017aa0cd2587a50dee1c4eaae39a6c46f515 | refs/heads/master | 2023-02-20T21:34:35.634658 | 2021-01-26T06:36:11 | 2021-01-26T06:36:11 | 321,933,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from models.base_model import BaseModel
from models.category import Category
from models.sub_category import SubCategory
import peewee as pw
class Product(BaseModel):
name=pw.CharField(unique=False, null=False)
chinese_name = pw.CharField(unique=False, null=True)
description_line_1=pw.TextField(null=True)
... | [
"ongminsiang@gmail.com"
] | ongminsiang@gmail.com |
780d129680d02e195525b521a06e2740039f7066 | 34aee9d503a16b5645b7a0057f5713d862076552 | /chap_4/c4_36_2.py | 10877b09e0410681888dcb931b766996c6e2b3d4 | [] | no_license | meshidenn/nlp100 | 05724788429325f0fe83997c175feeca070f2d7b | aa1543240595e84f7a125a80774d8b345308c1bc | refs/heads/master | 2021-01-13T07:55:07.732976 | 2017-04-17T15:16:49 | 2017-04-17T15:16:49 | 71,709,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | import c4_30_2 as p30
import csv
def mk_set(sentence):
buf = []
# for sentence in sentences:
for line in sentence:
buf.append(line['base'])
wset = set(buf)
return wset
def w_dict(wset,sentence):
wdict = {}
for word in wset:
wdi... | [
"hiroki@Hiroki-no-MacBook-Air.local"
] | hiroki@Hiroki-no-MacBook-Air.local |
91a3a764327f1035a70607756d25158415b24c6d | 327238868408aef99fb4342a8349b9e52f926db2 | /diya-stack.py | bd7dc0be8b1896110a99bdb7aa3dac0acb2c6aef | [] | no_license | veitsi/algomix | 7f8142f5b1808988431fa68a426790af86e4cc9d | a349239ec6068d1c85289174b84d579d70c7540f | refs/heads/master | 2016-08-08T23:25:13.906076 | 2016-02-26T12:14:07 | 2016-02-26T12:14:07 | 52,602,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | class Stack:
def __init__(self, size=10):
if size < 2:
return None
self.size = size
self.__stack = [None for i in range(size)]
self.__position = -1
def __str__(self):
return str(self.__stack[:self.__position + 1])
def push(self, x):
if type(x) !=... | [
"xtfkpi@gmail.com"
] | xtfkpi@gmail.com |
8d635e9d142e94d2d614b952b1484d4895c00490 | 930481737a3dae878d4db0f6ead9e43c710ccb8a | /QAMedicalKG/answer_search.py | 224afe8aebdf0c3643099cbe5a2634355f87bec5 | [] | no_license | zhoujx4/Knowledge-Graph | 9ccd544955d1e69ea7b748d31e9626d5a2928510 | 6759c380f368a915cf292fe90bf6d421e9a427a8 | refs/heads/main | 2023-04-16T21:53:40.759374 | 2021-04-21T10:41:09 | 2021-04-21T10:41:09 | 360,130,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,221 | py | from py2neo import Graph
class AnswerSearcher:
def __init__(self):
self.g = Graph("http://localhost:7474", username="neo4j", password="2012051171id")
self.num_limit = 20
'''执行cypher查询,并返回相应结果'''
def search_main(self, sqls):
final_answers = []
for sql_ in sqls:
q... | [
"zhoujx@gzsendi.cn"
] | zhoujx@gzsendi.cn |
169d1b34052601f7372457060040c76fbb71fe6b | 498d65615aeba1f7399344a32a23514e057fb30e | /decode_verify_jwt.py | 224caf0f4e6b9ae7531dc23017880f0ac6b66eee | [] | no_license | gautamamber/Blog-Serverless-chalice | 54fd128f76a3e918a170225bb49ded0874089a61 | e1735c5bb617bdb9720b5ecf847ea32833d7e5bc | refs/heads/master | 2020-08-04T15:17:44.405145 | 2019-10-02T14:33:32 | 2019-10-02T14:33:32 | 212,181,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | from urllib.request import urlopen
import json
import os
import time
from constant import Constants
from jose import jwk, jwt
from jose.utils import base64url_decode
region = 'us-west-2'
userpool_id = Constants.COGNITO_POOL_ID
app_client_id = Constants.COGNITO_CLIENT
keys_url = 'https://cognito-idp.{}.amazonaws.com/{}... | [
"ambergautam1@gmail.com"
] | ambergautam1@gmail.com |
14c96d4d72ae9dfe1358798816a363a197cb1919 | f8c6ae3401bba7521019a91dec17984a1500670c | /models/imagenet/resnet.py | 0f1e99f68b6cca2af2cf00e9498ecc7716324d78 | [
"MIT"
] | permissive | rs9899/Parsing-R-CNN | a9b10d164ff632d510734156fdcc003b799899f2 | a0c9ed8850abe740eedf8bfc6e1577cc0aa3fc7b | refs/heads/master | 2022-11-18T01:57:53.461316 | 2020-07-20T11:14:58 | 2020-07-20T11:14:58 | 277,079,950 | 0 | 0 | MIT | 2020-07-20T10:38:16 | 2020-07-04T09:34:04 | null | UTF-8 | Python | false | false | 15,079 | py | """
Creates a ResNet Model as defined in:
Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun. (2015 CVPR).
Deep Residual Learning for Image Recognition.
Copyright (c) Yang Lu, 2017
"""
import torch
import torch.nn as nn
import models.ops as ops
from utils.net import make_norm
class BasicBlock(nn.Module):
expans... | [
"priv@bupt.edu.cn"
] | priv@bupt.edu.cn |
26d7c06f88ff8b77fb6eb704335b28197ac7b3ac | 49c2492d91789b3c2def7d654a7396e8c6ce6d9f | /ROS/vrep_ros_ws/build/vrep_skeleton_msg_and_srv/catkin_generated/generate_cached_setup.py | 063f8efb2e5b20ed1335dd677a45fae2675a3513 | [] | no_license | DavidHan008/lockdpwn | edd571165f9188e0ee93da7222c0155abb427927 | 5078a1b08916b84c5c3723fc61a1964d7fb9ae20 | refs/heads/master | 2021-01-23T14:10:53.209406 | 2017-09-02T18:02:50 | 2017-09-02T18:02:50 | 102,670,531 | 0 | 2 | null | 2017-09-07T00:11:33 | 2017-09-07T00:11:33 | null | UTF-8 | Python | false | false | 1,508 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"gyurse@gmail.com"
] | gyurse@gmail.com |
94ebb85f7e1d639046a1fbace4b86ac3803e0d57 | 1118d761c307a6861e3469176a12a8cf7f9d440a | /forms.py | bc1e8eecf491633f3d5fc8f4cdf42518937b4847 | [] | no_license | Bendricks40/FlaskSocialNetwork | be2fac6a3fdb95c3870d0f6b9ebe6a0c74c6942a | 7ed8b197132d8127c533a0ea08bce42cfb0ce003 | refs/heads/master | 2020-08-05T14:02:40.798267 | 2019-10-03T12:56:56 | 2019-10-03T12:56:56 | 205,247,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | from flask_wtf import Form
from wtforms import StringField, PasswordField, TextAreaField
from wtforms.validators import (DataRequired, Regexp, ValidationError, Email, Length, EqualTo)
from models import User
def name_exists(form, field):
if User.select().where(User.username == field.data).exists():
raise... | [
"bendricks40@gmail.com"
] | bendricks40@gmail.com |
c867bd9e02a9a83c26a20ce87ccafeab9d03df8d | e1ee812a873da2f1aeba893f36d842ea4a8ea4b4 | /test.py | 6113e3f2d7725b4d4d394bbcecda68a492788ac8 | [
"MIT"
] | permissive | CanDenizKas/FizzBuzz-Game | 26125c018b56c7bf571e1e43deea88f286215429 | d1198d602bce8393c991867bdd1b011aba6ad785 | refs/heads/master | 2023-03-04T05:46:47.267568 | 2021-02-06T12:27:34 | 2021-02-06T12:27:34 | 335,057,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | i = 0
while i <= 99:
i += 1
if i % 15 == 0:
print("Fizz")
continue
if i % 3 == 0:
print("Buzz")
continue
if i % 5 == 0:
print("FizzBuzz")
continue
print(i)
| [
"candenizkas@gmail.com"
] | candenizkas@gmail.com |
1a13ca652346bb8acc24d400245201aa9439116b | af0d4f18b32cfc8f5d492eb0f8def373da318571 | /review.py | 1e1455183d8db667010f15639861908f17fd9d0c | [] | no_license | chbae/gitlab-review | e254beb61a646c031143332d2466227eace989c4 | 107fcfe5013695bf369642b698491d6b7c89a514 | refs/heads/master | 2020-08-11T02:10:22.792614 | 2019-10-11T15:16:43 | 2019-10-14T11:56:09 | 214,468,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | #!/usr/bin/env python
import sys
import json
import gitlab
def main(uri):
gl = gitlab.Gitlab.from_config('swfactory', ['/Users/chanbae/gitlab/gitlab.cfg'])
try:
gl.auth()
except Exception as ex:
print('Error: ', ex)
url = uri.split('/')
prj = gl.projects.get(url[3]+'/'+url[4])
... | [
"changhyeok.bae@daimler.com"
] | changhyeok.bae@daimler.com |
20a4283830b333bc30651ce8b8c49605032f23df | cb20aa7ca2d807d038d5e3c536a768f160d517f1 | /remove_motif.py | 168758d18d3760d7f109a9baaf9d68da5369d2d5 | [] | no_license | mathii/spectrum | dc393e3e1e425183112f7fc2a814fd3cd416936a | e9f0f990e8c0e5aac598886109bc5e89b15c3bc0 | refs/heads/master | 2021-01-10T07:15:47.871805 | 2020-06-02T15:02:15 | 2020-06-02T15:02:15 | 54,673,436 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | # Read a fasta file, and remove a motif
# Side effect of making everything uppercase
from __future__ import division, print_function
import argparse, re, sys
from pyfaidx import Fasta
motif="CC[A-Z]CC[A-Z]T[A-Z][A-Z]CC[A-Z]C"
motif_length=13
#############################################################################... | [
"iain_mathieson@hms.harvard.edu"
] | iain_mathieson@hms.harvard.edu |
84234c762e51c88b858dc53f8d5fe2e9486ed289 | 897bd4c42d285478ba00712d746712c91bae4d6c | /elgraiv_fbx_export_utils/properties.py | 6b56f61a7bf1d2ec8edcddc2f859c92b5aed47ad | [] | no_license | elgraiv-take/BlenderAddons | 5721dfd9bf941d26b0300ba332b8a672f5ef8b1b | d413abd1efb9bd0c4fcbba681f47da8021bb48b6 | refs/heads/master | 2021-07-01T04:11:28.051329 | 2020-12-01T17:42:02 | 2020-12-01T17:42:02 | 201,735,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | '''
Created on 2019/08/11
@author: take
'''
import bpy
class FbxExportItem(bpy.types.PropertyGroup):
item: bpy.props.PointerProperty(type=bpy.types.Object)
class FbxExportSet(bpy.types.PropertyGroup):
name: bpy.props.StringProperty()
save_path: bpy.props.StringProperty()
active_object_index: bpy.... | [
"4583273+elgraiv-take@users.noreply.github.com"
] | 4583273+elgraiv-take@users.noreply.github.com |
9121aa7623fa31fd8cad9ac6cd3485cb1656a44d | a36501f44a09ca03dd1167e1d7965f782e159097 | /app/modules/auth/params.py | c7dd1d359b51eb056962e44c9b871c1d299d8c4b | [
"Apache-2.0"
] | permissive | ssfdust/full-stack-flask-smorest | 9429a2cdcaa3ff3538875cc74cff802765678d4b | 4f866b2264e224389c99bbbdb4521f4b0799b2a3 | refs/heads/master | 2023-08-05T08:48:03.474042 | 2023-05-07T01:08:20 | 2023-05-07T01:08:20 | 205,528,296 | 39 | 10 | Apache-2.0 | 2023-08-31T00:18:42 | 2019-08-31T10:12:25 | Python | UTF-8 | Python | false | false | 2,162 | py | # Copyright 2019 RedLotus <ssfdust@gmail.com>
# Author: RedLotus <ssfdust@gmail.com>
#
# 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
#
# Unles... | [
"ssfdust@gmail.com"
] | ssfdust@gmail.com |
b321289a8645a6f9e9af0dad8ea7b4e5903efac1 | 3980ffc200867875e2dffaef5551397e99a434b0 | /PythonSem1/lista10.py | a8dd236a2faff6a4e8ac94a7bf2ed6a9f4fc78fd | [] | no_license | wiphand/git-repo | 10ff056d7f6048246c628a28360b2a85e36f9c3d | 03599508506e383e36d70c890439f53d3b1b3a72 | refs/heads/master | 2021-04-18T21:31:20.282174 | 2018-06-04T00:26:03 | 2018-06-04T00:26:03 | 126,590,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | s="send + more"# = money"
cyfry=[9,8,7,6,5,4,3,2,1,0]
dictMain={}
def analyze(s):
functions=[]
s=list(s)
iter=0
for x in s:
if(x.isalpha()):
dictMain[x] = dictMain.setdefault(x,cyfry.pop())
elif(x!=" "):
functions+=x
print(dictMain,functions)
return
... | [
"piotrus.kuczynski@gmail.com"
] | piotrus.kuczynski@gmail.com |
f135349869cce6877593dc177603adef88a8dd07 | 8eb2e7d0b82e26b8999c1e2f14b4fe0f7dfeab65 | /scripts/run_slim_bpr_cython_baesyan.py | 8262e9aefd632f8690b346aca92562dd0f270d73 | [
"Apache-2.0"
] | permissive | edervishaj/spotify-recsys-challenge | c8d66cec51495bef85809dbbff183705e53a7bd4 | 4077201ac7e4ed9da433bd10a92c183614182437 | refs/heads/master | 2021-06-28T14:59:02.619439 | 2020-10-03T09:53:50 | 2020-10-03T09:53:50 | 150,008,507 | 0 | 0 | Apache-2.0 | 2020-10-03T09:53:51 | 2018-09-23T17:31:20 | Jupyter Notebook | UTF-8 | Python | false | false | 7,642 | py | from personal.MaurizioFramework.ParameterTuning.BayesianSearch import BayesianSearch
from personal.MaurizioFramework.ParameterTuning.AbstractClassSearch import DictionaryKeys
from utils.definitions import ROOT_DIR
import pickle
from personal.MaurizioFramework.SLIM_BPR.Cython.SLIM_BPR_Cython import SLIM_BPR_Cython
from ... | [
"scarlattitommaso@gmail.com"
] | scarlattitommaso@gmail.com |
1a4b4f6a75b6fc31635917956efcfeab557469c3 | c251ab19f18cb53ab04cbac49ee7d1028955e997 | /PYSE_Lab2_part3.py | e0b6f355d5dbf59316d58eb607bed03f9afe99df | [] | no_license | MathiasGrun/ntnu | 6fd748cc7a212398aaaae8895280c8429c8657dd | f7a862b1349faa778b4c99f1df315a4dd487bbfb | refs/heads/main | 2023-01-02T12:57:55.328572 | 2020-10-23T16:21:32 | 2020-10-23T16:21:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,426 | py | import simpy
import numpy as np
import random
import matplotlib.pyplot as plt
env = simpy.Environment()
scheduled_interarrivals = []
actual_interarrivals = []
my_delay = 300 # Giving the delay a constant, this varies as we would like
t_landing = 60
t_takeoff = 60
my_ta = 45*60
e_weather1 = 3600
e_w... | [
"noreply@github.com"
] | noreply@github.com |
a2d5408b706e5474559c179247f09e0d735eb299 | 9c1d96b350b9d372a801962e99d7b86f36693ca5 | /Project Euler ~ Python/Euler015.py | 7c3e21f188d0bf5d7f68b3ca98e2d8e1b59ee980 | [] | no_license | CruzJeff/ProjectEuler | a4a7b6f5d2fa659c6153ee3a8a512791e3598d25 | cd4962847c8b68e0a789a264b781070b14153a78 | refs/heads/master | 2021-05-08T08:41:37.167457 | 2019-01-22T05:51:53 | 2019-01-22T05:51:53 | 107,064,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 20 01:15:08 2017
@author: User
"""
'''For number 15, for the 2 x 2 grid we have to go down 2 times, and
right 2 times to get to the opposite corner. From this we can see that
for an N by N grid, you would have to go down N times, and to the
right N times. So for a 20x20 ... | [
"shadowburai@yahoo.com"
] | shadowburai@yahoo.com |
e13f4165f0a7f3a7ad7b1cd021765f7c007adcc7 | 1973805c584194e97d5a5c152778d7b3bffa5f21 | /Entertainment_Center.py | e5221c179b361643794cf47b0f93c6ba48c3cc29 | [] | no_license | cgscreamer/FreshlyTomatoes | d09769b89f941b42b520f448bd6b188deab523e9 | a2479c791d0dd5445eef5d3350fada2dd0d2cebc | refs/heads/master | 2020-03-23T14:18:56.333355 | 2018-07-20T09:07:54 | 2018-07-20T09:07:54 | 141,668,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | import media
import fresh_tomatoes
toy_story = media.Movie("Toy Story",
"A story of a boy and his toys that come to life",
"https://images-na.ssl-images-amazon.com/images/I/91q0UP6%2BUTL._SY606_.jpg",
"https://www.youtube.com/watch?v=KYz2wyBy3kc"
... | [
"31764109+cgscreamer@users.noreply.github.com"
] | 31764109+cgscreamer@users.noreply.github.com |
22e4fd2f20807aa7d66e4e2d2f5ec4b4c33fde8a | 32b1e7ad31be02fd70ea8aec551a60933e5d4946 | /ICP_6/SVM_RBF.py | 90c24ed4756e5e5fb781c6242a3ef902f90ea0ae | [] | no_license | maturivinay/python_lee | 4a026b99ac5f151cfc5552fc9e62e3cbfbcad736 | 2cb223fe331616aba66f7a78acc6c4fe31389746 | refs/heads/master | 2021-07-22T04:05:39.246068 | 2018-12-11T00:31:05 | 2018-12-11T00:31:05 | 146,038,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | from sklearn.naive_bayes import GaussianNB
from sklearn.neighbors import KNeighborsClassifier
from sklearn.svm import LinearSVC
from sklearn.svm import SVC
from sklearn.datasets import load_iris
from sklearn.naive_bayes import GaussianNB
from sklearn.model_selection import train_test_split
from matplotlib import pyplot... | [
"31376403+maturivinay@users.noreply.github.com"
] | 31376403+maturivinay@users.noreply.github.com |
3b31d861b09cc17c98b649bb782694b94f71ca7c | 93c52ebe87f878e7fdfdf7132d8b1e0351985a73 | /predix/security/acs.py | 5ed5032f9bbd10dc54b9654c5ae4e91c37abfbc0 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | 8Mobius8/predixpy | 3811ee2884ef771452c8f3e666a7f954327e4129 | 26c712439d57c6a292f3c06c6977132ac7ec1974 | refs/heads/master | 2020-12-02T18:15:04.684916 | 2017-07-19T16:40:14 | 2017-07-19T16:40:14 | 96,503,734 | 0 | 0 | null | 2017-07-07T05:52:52 | 2017-07-07T05:52:52 | null | UTF-8 | Python | false | false | 12,354 | py |
import os
import uuid
import urllib
import logging
import predix.config
import predix.service
class AccessControl(object):
"""
Use the Access Control service to provide a more powerful authorization
framework than basic User Account and Authorization (UAA) service.
Access Control service provides a... | [
"jayson.delancey@gmail.com"
] | jayson.delancey@gmail.com |
c59ac3a4809a364611d8766dc31cc489c9434b3a | d261596c67a3ce9bae2373a321015fe62b088c5b | /BVE/BVEfd.py | 7af140139d6c757fed10a9d8d74a85ae08734606 | [] | no_license | mintDan/FluidDynamics | ada943d990a0301cce4d945a114b86abba9a0d4f | 5fc0a7be3eb1c4551c2918b2c3d3bbea643afc56 | refs/heads/master | 2021-07-21T04:07:02.680043 | 2021-02-13T08:54:23 | 2021-02-13T08:54:23 | 67,929,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,023 | py | """
Dan Krog
Numerical Solution of Barotropic Vorticity Equation
vorticity, Holton page 101,
Absolute vorticity eta,
eta = zeta + f
f is coriolis parameter, zeta is relative vorticity, zeta = nabla x (u,v)'
dzeta/dt + J(psi,zeta+f) = 0
where J is Jacobian operator
Barotropic fluid, pressure depends only only de... | [
"dankroga@gmail.com"
] | dankroga@gmail.com |
4cc745dedd64bfe8e4037da4f3c4b8f946bf51af | 14416ce6e18f3a456ce8a197ccfe7a3772959e01 | /used_car_price_prediction.py | cb28daad1632215077880b3dbf323efce0c1bfc8 | [] | no_license | tanya-suri/car-price-prediction | 0b08b00993c3b33734d63f22dc5d1f9bfd26d595 | 16e222c33c8851a99e28a3e36ba3e8d24ced5a7b | refs/heads/master | 2023-06-08T23:19:25.154160 | 2021-02-04T20:30:46 | 2021-02-04T20:30:46 | 336,060,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,975 | py | #!/usr/bin/env python
# coding: utf-8
# # By - Samiksha Bhavsar
# # USED CAR PREDICTION PRICE
# <img src="https://www.marketingdonut.co.uk/sites/default/files/styles/landing_pages_lists/public/usedcardealer1.jpg?itok=lSSEdwpY">
# # Problem definition
#
# This is the first step of machine learning life... | [
"tanya@invoid.co"
] | tanya@invoid.co |
927b2fe90bc09f83f8e059e2b52cb49cb5721c15 | d72e5bd9da5089b889ff4a02b3e7d0c3135e3aa4 | /googleAudioProject/userManagement/UserManager.py | ec008b740ad2dec7474609cfe1e95d9178fa51a3 | [] | no_license | BU-NU-CLOUD-F19/Google_Photos_for_Audio | b07c28827fdf50f913d11ee498ad41db57ad7be3 | 28e3c42ff10c1740af99d8924326958345406427 | refs/heads/master | 2022-12-17T00:26:38.681841 | 2019-12-08T03:12:42 | 2019-12-08T03:12:42 | 207,849,309 | 3 | 3 | null | 2022-12-08T06:42:28 | 2019-09-11T15:45:29 | JavaScript | UTF-8 | Python | false | false | 2,928 | py | from __future__ import print_function # Python 2/3 compatibility
import decimal
import boto3
import json
from boto3.dynamodb.conditions import Key, Attr
from botocore.exceptions import ClientError
import hashlib, binascii, os
import re
regex = '^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$'
def hash_password(password... | [
"martina.song@outlook.com"
] | martina.song@outlook.com |
f4779c12abf558854539a29d85de3a7952d33d97 | f59ea6a59360c3ee35e3bcc977279c505524df9c | /02-arrotondamento-fibonacci-pert.py | f85e6b8943713ce24271eaff0c085402fa6b989d | [] | no_license | WohthaN/MNS | e04de7409a2fe1155cb6907daea24bc836a2bdab | e3bb9011e527d7bd22cf42b71574d60383defcb9 | refs/heads/master | 2021-09-09T08:13:42.339718 | 2016-06-02T10:19:34 | 2016-06-02T10:19:34 | 125,193,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | from env import *
from bigfloat import sqrt, precision
z1 = (1+np.sqrt(np.float64(5)))/2 + 2e-15
z2 = (1-np.sqrt(np.float64(5)))/2
c0 = np.float64(1.)
c1 = (1-np.sqrt(np.float64(5)))/2
C = np.array([[1., 1.],
[z1, z2]])
c = np.array([c0, c1])
Cinv = np.array([[-z2/(z1-z2), 1/(z1-z2)],
... | [
"carlisamuele@csspace.net"
] | carlisamuele@csspace.net |
2afc98c9ae3f4253082cbcb99c14ea995ba0522c | 2c4ed4e0c582ca7366d5a94b2776c8d282e3de5c | /intranetcinepel/intranetapp/migrations/0018_auto_20200713_0947.py | 31c7646a5a245cc1d27d818928c3588ac8f7c700 | [] | no_license | LoicJu/IntranetCinepel | 3c96897cde92f31de95e1741863c799177adf73c | d5db31f3b0e1874f12982a859699e1c7261e3e8a | refs/heads/master | 2022-12-11T04:08:51.862568 | 2020-07-24T07:47:01 | 2020-07-24T07:47:01 | 292,315,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,971 | py | # Generated by Django 3.0.8 on 2020-07-13 09:47
from django.db import migrations
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('intranetapp', '0017_auto_20200713_0916'),
]
operations = [
migrations.AlterField(
model_name='template',
... | [
"loic.jurasz@he-arc.ch"
] | loic.jurasz@he-arc.ch |
c70fc9e56b15f82e28bb7112b30e33ba26b542dc | be11a2e3ba05fc6073a7a12eddc23b1f85608517 | /brainlit/utils/__init__.py | 7b55a77314a0e10791f2f62647b339a25dddce39 | [
"Apache-2.0"
] | permissive | DevinCrowley/brainlit | d2ac02e897b5932e9c013ac32c2e47ffaea7b14d | b206efe4a407bd96158ca8e664790267c2776cba | refs/heads/master | 2022-11-24T21:15:27.352637 | 2020-07-09T20:57:05 | 2020-07-09T20:57:05 | 278,587,299 | 0 | 0 | null | 2020-07-10T08:59:29 | 2020-07-10T08:59:28 | null | UTF-8 | Python | false | false | 172 | py | from brainlit.utils.ngl_pipeline import *
from brainlit.utils.upload_skeleton import *
from brainlit.utils.swc import *
from brainlit.utils.upload_to_neuroglancer import *
| [
"bvarjavand@gmail.com"
] | bvarjavand@gmail.com |
932c5570972676c8cbfdbea5edf2b2aa4bb2b139 | 49cf9d25147d2d87fb84fd52b5404bfffec36626 | /split.py | ed548305dcbc35fe7a3b46cb9f03a44ea5694790 | [
"MIT"
] | permissive | broxeph/ameryn | 5963a3bacf631440ea61de750154e881af9b0acf | e1289c280ca865ec84625b712adc52c536b4b174 | refs/heads/master | 2021-01-10T12:54:02.736411 | 2017-03-07T00:18:47 | 2017-03-07T00:18:47 | 47,580,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,011 | py | """
Splits wave files based on cues (markers) in header, optionally exporting to mp3/FLAC with ffmpeg.
(c) Ameryn Media LLC, 2015. All rights reserved.
"""
import struct
import warnings
import wave
import os
from sys import byteorder, version_info, exit
import multiprocessing
import logging
import csv
import numpy
fr... | [
"alex@ameryn.com"
] | alex@ameryn.com |
23e77f8d02e5d307347f08baca5d033626e01412 | 51b7b81cce1e8943926c531ad8763af8fd4074dc | /1260.py | 8280b9c478f211dddcdc27f39f47b057c9ca1dae | [] | no_license | goodsosbva/BOJ_Graph | f65598591b07ea2f637cba2644bdc81386afb36e | 34fe8bfec0543d9884869fe5ebbb536c6fcc3fbf | refs/heads/main | 2023-03-22T08:14:53.735351 | 2021-03-07T09:22:39 | 2021-03-07T09:22:39 | 338,587,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | N, M, V = map(int, input().split())
matrix = [[0] * (N + 1) for i in range(N + 1)]
for i in range(M):
a, b = map(int, input().split())
matrix[a][b] = matrix[b][a] = 1
visit_list = [0] * (N + 1)
def dfs(V):
visit_list[V] = 1 # 방문한 점 1로 표시
print(V, end=' ')
for i in range(1, N + 1):
... | [
"noreply@github.com"
] | noreply@github.com |
59d68b168bc022dcb37e44d8200e565c72a8f89a | 7dd1d47c99d1b4485f96c53b79049a342795fb6b | /app/core/migrations/0004_recipe.py | 414d3a799d601268beb68890d5d5d977ed26647c | [] | no_license | klaudiakryskiewicz/recipe-app-api | 1966f09c5c7d8e9364797b70f034d30f0170c167 | 19db17d6710f39ab98e0a19b8032aa54f54eff12 | refs/heads/main | 2023-06-01T04:35:13.359488 | 2021-06-08T14:14:09 | 2021-06-08T14:14:09 | 369,801,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | # Generated by Django 2.1.15 on 2021-05-26 16:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0003_ingredient'),
]
operations = [
migrations.CreateModel(
... | [
"klaudia.sandra.kryskiewicz@gmail.com"
] | klaudia.sandra.kryskiewicz@gmail.com |
a42609d3d57b7e0f3298e6dee88c7531e8b4df7b | 32c915adc51bdb5d2deab2a592d9f3ca7b7dc375 | /Chapter_11_programming_tasks/task_2.py | 57291c7a43269738ae347bef625ced59459b1aa2 | [] | no_license | nervig/Starting_Out_With_Python | 603c2b8c9686edcf92c1a90596d552b873fe6229 | d617ee479c7c77038331b5f262e00f59e8e90070 | refs/heads/master | 2023-02-25T07:14:12.685417 | 2021-02-02T18:45:00 | 2021-02-02T18:45:00 | 335,391,362 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import employee
def main():
name_of_employee = input('Enter a name of employee: ')
number_of_employee = input('Enter a number of employee: ')
annual_salary = input('Enter an annual salary: ')
annual_bonus = input('Enter an annual bonus: ')
data_of_shift_supervisor = employee.ShiftSupervisor(name_... | [
"solide@yandex.ru"
] | solide@yandex.ru |
463e8250d430cbb2b5411ccf886fc6006e203cb9 | 9ca223ad566c40efc0917f2a33bf13446102c5ae | /Prueba.py | 4f2ef40ec8589fd8714f917276f42a7bb1ca3148 | [
"Unlicense"
] | permissive | EstebanRiso/Python-IA | b1e65d7ab6e829e1c87e2308b348822830ae9de3 | 352186ae74fcdc3b1252918999413d0e11b7ae26 | refs/heads/main | 2023-01-15T15:31:47.371728 | 2020-11-18T20:54:34 | 2020-11-18T20:54:34 | 312,214,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py |
import Nodos
def principal():
Nodos.nombre='silencio'
print(Nodos.nombre)
principal() | [
"SteveRiso.2000@gmail.com"
] | SteveRiso.2000@gmail.com |
ed1a80133b79485d1c7d0125da7309754e321eea | d922b02070c11c19ba6104daa3a1544e27a06e40 | /DSA_Project/venv/Scripts/easy_install-3.8-script.py | d71594c04a3b333adb75b4777054c951680c802e | [] | no_license | viharivnv/DSA | 2ca393a8e304ee7b4d540ff435e832d94ee4b2a7 | 777c7281999ad99a0359c44291dddaa868a2525c | refs/heads/master | 2022-10-15T15:26:59.045698 | 2020-06-17T15:55:33 | 2020-06-17T15:55:33 | 273,020,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!C:\Users\vihar\PycharmProjects\DSA_Project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"52350934+viharivnv@users.noreply.github.com"
] | 52350934+viharivnv@users.noreply.github.com |
463b39f9e721b88b41a491bba21489eef81fe2d8 | ba63a484cf8859c0f46da90390cc23d7c4a85673 | /ur5_run_moveit_cpp/launch/ur5_run_moveit_cpp.launch.py | 93c8532c0550b357588cf720326dff9550148fee | [] | no_license | migueelnery/ur5_moveit2_demo | da9ade878742bd1492f652cebc526f76f520ea3f | 230a8773b3700f2ae9f218852867a6287e60d174 | refs/heads/main | 2023-03-06T19:06:18.684993 | 2021-02-19T06:06:49 | 2021-02-19T06:06:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,318 | py | import os
import yaml
from launch import LaunchDescription
from launch_ros.actions import Node
from ament_index_python.packages import get_package_share_directory
def load_file(package_name, file_path):
package_path = get_package_share_directory(package_name)
absolute_file_path = os.path.join(package_path, fil... | [
"floris.erich@aist.go.jp"
] | floris.erich@aist.go.jp |
c1a244e9a04e199b2cb55cf64972a4d7cd9cc23e | 2350760b49f2e3120ad2d998f5cf854c600367c7 | /utils/enhance.py | 92baa841c2399580ad0eff21ac378b264fa05bc7 | [
"Apache-2.0",
"Apache-1.1"
] | permissive | aishu-123-4/Automatic-License-Plate-Recognition | b7bd2e0af63574161dc13d8b9bcc8cc7dbd03a1b | 310797715d2705d302aeae55042b6415469785ed | refs/heads/master | 2023-04-22T22:52:07.919753 | 2021-05-14T06:18:17 | 2021-05-14T06:18:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,970 | py | import streamlit as st
import cv2
import numpy as np
from PIL import Image,ImageEnhance
crop, image = None, None
img_size, crop_size = 600, 400
# noise removal
def remove_noise(image):
return cv2.medianBlur(image,5)
#thresholding
def thresholding(image, rate):
return cv2.threshold(image, rate, 255, cv2.THRE... | [
"udaylunawat@gmail.com"
] | udaylunawat@gmail.com |
531c6a581cba14a68fb47c94fa6e897915406f86 | cb802b802e26d037c93f38f74a4b8cc4931b8e64 | /cart/admin.py | ecd02cb09153465d65bad46f56c01b014f9f9376 | [] | no_license | aadhil06/ecommerce | c3e2acc55c2808fc9daecd2ed91b79aa46c60455 | 52707eb7b1b205d4d3a6b7b336164736a008f65c | refs/heads/master | 2023-07-02T04:38:21.262112 | 2021-08-11T08:42:06 | 2021-08-11T08:42:06 | 394,891,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from django.contrib import admin
from.models import *
# Register your models here.
admin.site.register(cartlist)
admin.site.register(items) | [
"aadhilks007@gmail.com"
] | aadhilks007@gmail.com |
43569dfdaa6bacdb0b558ab38c03f2020ef7bfec | 8d1c7cc1e66c5ea717a876116424c4f1029fb21f | /pollster/polls/admin.py | 8b4709b2ca2f3c8c407167e7228e11e74b80f168 | [] | no_license | NickFoden/pollster | a5d58d78ae476f3576d54b384ac8900880ea1ee7 | 1cf327783af1bee4960c21c4728192ff3da26a6f | refs/heads/master | 2020-07-25T14:24:31.083072 | 2019-09-13T18:20:11 | 2019-09-13T18:20:11 | 208,322,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | from django.contrib import admin
from .models import Question, Choice
admin.site.site_header = "Pollster Admin"
admin.site.site_title = "Pollster Admin Area"
admin.site.index_title = "Welcome to the Pollster admin area"
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(ad... | [
"nickfoden@gmail.com"
] | nickfoden@gmail.com |
5bef409a74c946f0c10245a3696fedcf2ea6717c | 198e4e500f308978008374619cfd3b6d4e9ab3d9 | /pes/migrations/0004_player_manager.py | b1beeeb4cf3c43e0a5a623da82fafad355a2e0c3 | [] | no_license | UditChugh/pml | 4ffec91759d0b0e1cb00ad9ef73ef1a5c2fa7931 | d41cc8461876301e2bb25ea2870ca0bec39fcc4a | refs/heads/master | 2023-08-03T20:54:47.940878 | 2021-09-16T12:16:13 | 2021-09-16T12:16:13 | 289,675,466 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.1 on 2020-09-11 18:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pes', '0003_player_total_goal_diff'),
]
operations = [
migrations.AddField(
model_name='player',
name='manager',
... | [
"23udit@gmail.com"
] | 23udit@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.