blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cae575ac11edcb3fd67e9ac513d89d54df1466d3 | 9b66589e00a519aef34e1dc1d5a6f9933a29350d | /web-app/myPdajProject/student/views.py | a7b6972abb60d4e9537bfc59997416249c75c6e2 | [] | no_license | ivanIndjic/PDAJ2020 | 50da7f9ddcae68c3d1c125e9d52076c3e0622349 | d3d2274e13f43f4947adf92f223a50aa4343bbcd | refs/heads/main | 2023-02-12T13:21:04.136564 | 2021-01-03T15:15:34 | 2021-01-03T15:15:34 | 316,608,490 | 0 | 0 | null | 2021-01-03T15:15:35 | 2020-11-27T22:03:39 | Python | UTF-8 | Python | false | false | 2,033 | py | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from .models import Student
from .serializers import *
# Create your views here.
class StudentAPI(APIView):
def get(self,request):
students = Student.objects.all()
serializer = ... | [
"ivan@kali.ivan"
] | ivan@kali.ivan |
c92425105870b039e770a6a229d77457f47a5146 | a3ffed2f05cad8879c269f8943d1253e748f187c | /DjangoProject1/first_app/urls.py | 28d2569c474b652f34875f0d5c23c7fd7ed4f41b | [
"MIT"
] | permissive | gugabfigueiredo/DjangoBootcamp | 0c7c1d72d228c2d7fc22a005ee54cfc519343915 | cfd55a87cc3d8a8e70800e04e1414abdc9a98a07 | refs/heads/master | 2021-05-16T09:43:26.628640 | 2017-09-25T16:55:14 | 2017-09-25T16:55:14 | 104,571,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | # -*- coding: utf-8 -*-
from django.conf.urls import url
from first_app import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^help/', views.help, name='help')
] | [
"gugabfigueiredo@gmail.com"
] | gugabfigueiredo@gmail.com |
e51e1b2cb531dc47f108bf6ac05eec546e5a2d54 | 9243063862af8a7def0b2630cf57f909b3e02994 | /CookieCompApi/users/api/viewsets.py | 50f8c6c3472a86f196298d56cb1cae5195acfaf7 | [] | no_license | rodolfocbarroso/projeto-programacao-comercial | 715d474dd0a47a0b26b6409d123b5cb5cd438861 | 57ac9d5501df58c65442e18392b86b21b96adcbd | refs/heads/main | 2023-02-02T03:11:19.138746 | 2020-12-15T03:05:55 | 2020-12-15T03:05:55 | 313,403,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from rest_framework.viewsets import ModelViewSet
from django.contrib.auth.models import Group
from .serializers import UserSerializer
class GroupViewSet(ModelViewSet):
queryset = Group.objects.all().order_by('name')
serializer_class = UserSerializer
| [
"rodolfoc.barroso@hotmail.com"
] | rodolfoc.barroso@hotmail.com |
a38cc7faac158cb13452fdfdea3ff56459e19da8 | 5f833550140da00745528ac6b018b51737f5d904 | /prod/gen-py/demo/dm_service.py | 65c232db12902bab6be4e1a8bebdb486521ab32f | [] | no_license | lajanugen/DM_feb16demo | b17eb023aa0c5a7644cf230d354346bb0d43d7b4 | debad148f83411e1683a964918509112e4355042 | refs/heads/master | 2021-01-11T21:05:44.759245 | 2017-01-17T19:11:39 | 2017-01-17T19:11:39 | 79,242,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 6,289 | py | #
# Autogenerated by Thrift Compiler (0.9.2)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
... | [
"llajan@diae1.eecs.umich.edu"
] | llajan@diae1.eecs.umich.edu |
b88349d1542353d788525c8182f69c7fc5de5058 | 5bd1f160308a7f692fec346610ddc0de8ae24550 | /Tree/height.py | 8f49f01f8df6abc3a87a26c93e002cc18cf5cf9e | [] | no_license | sprataps/HackerRank-Data-Structures | dec6a2cc7c79733f0f9d92f363ef7e9b27368be1 | 52f586ecba0a1fc8e2bd6e22244a7738d39b2b27 | refs/heads/master | 2021-07-04T21:48:03.389995 | 2017-09-25T03:45:38 | 2017-09-25T03:45:38 | 103,877,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | class Node:
def __init__(self,info):
self.info = info
self.left = None
self.right = None
// this is a node of the tree , which contains info as data, left , right
'''
def height(root):
if not root:
return -1
return 1+(max(height(root.left),height(root.right))... | [
"siddharthpratap92@gmail.com"
] | siddharthpratap92@gmail.com |
238cf01519fb73b7e7b01cd4d52adf1b0bae281c | 356bcb1e1de65ebcb064aab50a4a245fcbda51b6 | /pyworkflow/tests/em/programs/__init__.py | dfd18131ed2fab7fd29f27eb07df12b0f85a491b | [] | no_license | EyeSeeTea/scipion-web | 260d6339b1ccf400d208b395b7ed4db4f01759b4 | 18797bc15f6667adb42a307c411d32d45bab2b7d | refs/heads/web-master | 2020-06-03T09:38:36.251023 | 2017-04-10T13:56:31 | 2017-04-10T13:56:31 | 94,125,511 | 0 | 0 | null | 2017-06-29T14:14:27 | 2017-06-12T18:02:05 | C++ | UTF-8 | Python | false | false | 1,101 | py | # ***************************************************************************
# * Authors: J.M. De la Rosa Trevin (jmdelarosa@cnb.csic.es)
# *
# *
# * This program is free software; you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software F... | [
"delarosatrevin@gmail.com"
] | delarosatrevin@gmail.com |
b41b45264469af30ff43edafc563bf91b0dc79a0 | 1e6118d7cf3c1efe26186e5825093b3933c2aed3 | /Projects/TipCalculatorForDean.py | c75d9d1c47fb5107790212d1126b29c48c530491 | [] | no_license | Mkurtz424/n00bc0d3r | 6ce9120761175bafbd3c85923a310dd0609f2c39 | 066736c0580f38624239755e9650fdb16632c6f8 | refs/heads/master | 2021-01-10T19:26:43.164522 | 2013-05-05T16:43:24 | 2013-05-05T16:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | """
YO BRO
LET'S COMMENT ON SOME SHIT UP IN HERE.
This is a simple tip calculator!
It asks the end-user for the following:
-Meal Cost
-Desired Tip Percentage
It then gives the user this information:
-Tip Amount
-Total Meal Cost
It also asks if the user would like to
run the program again. If the user says
'Q', then it ... | [
"mkurtz424@gmail.com"
] | mkurtz424@gmail.com |
57457c0ab96d2597939e2439ed38bd8bd5a8c0ff | 320fd1a99fec74d8813e87d0f9f9ba3bcdd1d8da | /balancer/exception.py | 514095af4d66064862060e04c104b288813ae872 | [] | no_license | yinyangxu/openstack-lbaas | 1ddaf0111a35e496ba6088018826220c399588da | 12c26262c77125ce0ae75a15f25b2fcae52308bf | refs/heads/master | 2020-04-07T17:33:29.789038 | 2012-07-18T10:24:20 | 2012-07-18T13:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc.
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Piston Cloud Computing, Inc.
# All Rights Reserved.
#
# Lic... | [
"yorik.sar@gmail.com"
] | yorik.sar@gmail.com |
a1f7239ed88d8a406b87852ca8acdb3d1be0a969 | bf9305e4da7fc84ad677ccf6e819d2852d53f389 | /django-testing/django_testing/tests/students/test_courses_api.py | b9af0f94da7b388ef4f0966b5f3e02e3d9852fbb | [] | no_license | SergueiKozlenko/HomeworksDjango | 601166c4cab4a5d921db34610907e7beec2d4d80 | 26e20eb52dfb901f4a60376627f10146c733856b | refs/heads/master | 2023-06-01T13:41:27.937068 | 2021-06-05T22:53:40 | 2021-06-05T22:53:40 | 371,978,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,090 | py | import pytest
from django.urls import reverse
from rest_framework.status import HTTP_200_OK, HTTP_201_CREATED, HTTP_204_NO_CONTENT
import random
@pytest.mark.django_db
def test_course(api_client, course_factory, student_factory):
"""Тест получения 1го курса (retrieve-логика)."""
student = student_factory(_qu... | [
"genesis.biconsulting@gmail.com"
] | genesis.biconsulting@gmail.com |
4504a6ef89e70bac99856812b32bedbf3a4c7ba1 | bdb59e37af0382808c60bae510d046f8b48e3a4c | /Code_SocketProgramming/client_TCP.py | e05491f4a67465f53a100bf5d4e22aa2f09029b4 | [] | no_license | yiuj/CSCI353 | b5045cbf817b40d70667f42f7a57190d077035b1 | 1998eb75ba703ff7b1459d2c0b612ac2280eab26 | refs/heads/master | 2020-08-03T05:46:20.209788 | 2019-09-30T01:23:18 | 2019-09-30T01:23:18 | 211,642,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | import socket # Import socket module
def getSocket():
s = socket.socket() # Create a socket object
port = 12345
s.connect(('localhost', port)) # Establish connection/handshake
return s
if __name__ == "__main__":
sock = getSocket()
try:
print "... | [
"yiuj@usc.edu"
] | yiuj@usc.edu |
1feb1388a5a8490f192460e55ed0d5d57a889e48 | 1747f184407824adc03186de9204742bf6d150ce | /faiss/__init__.py | fa1a6050d3bc10286af8a6a1b298a5f77c63f3f3 | [
"BSD-2-Clause"
] | permissive | humanfirewall-iot19/server | 855a6a98f25d7fd13cd2c80f67b7c37df40f6913 | ccd0834549b09834e8c24d49ca2d3ab761d26d8c | refs/heads/master | 2020-05-20T13:00:30.836029 | 2019-06-29T10:05:12 | 2019-06-29T10:05:12 | 185,585,428 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,423 | py | # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD+Patents license found in the
# LICENSE file in the root directory of this source tree.
#@nolint
# not linting this file because it imports * form swigfaiss, which
# causes a ton of useless warnings.
imp... | [
"andreafioraldi@gmail.com"
] | andreafioraldi@gmail.com |
6b9e4f5dc88728c885f456e770c902959ab99226 | 31d2fadeb43c4634c29b517741cfce60a96fac3c | /src/handlers/telegram_only/telegram_examples_dir/inlinekeyboard.py | 8b4a0d32d2fcc13dcb10ae3dd690e2fb2ecc7773 | [] | no_license | Ar-Kareem/dynamic_telegram_bot | 1b443bdfc7f6abdd7d85d30287ad2d07e97a4412 | a3b0f8771a63f70e95786b528fb61304d93ecac3 | refs/heads/master | 2023-06-10T21:01:44.376021 | 2021-07-01T22:07:43 | 2021-07-01T22:07:43 | 329,928,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | """
Basic example for a bot that uses inline keyboards.
"""
import logging
import os
from functools import partial
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, Update
from telegram.ext import Updater, CommandHandler, CallbackQueryHandler, CallbackContext
from src.core.actions import TelegramBotIni... | [
"abdulrahman_3000@hotmail.com"
] | abdulrahman_3000@hotmail.com |
cfec3790dfcf8355b5573d1f82ff37d5126137b6 | f29de0f2c4839e266242e57900b1e97488d97a68 | /has-more-vowels/has-more-vowels/hasmorevowels.py | 3942f7bf58dc7916bd2f4696b79b3cb6f4255783 | [] | no_license | Supreethamg/code-challenges | 5e951ef3826f164e0d97bf55d72a75a1dedf469a | b376bcd50a3f45fa30db5ae55e180a46f04d5454 | refs/heads/master | 2022-12-25T11:23:01.242408 | 2020-09-30T06:45:22 | 2020-09-30T06:45:22 | 297,492,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | """Does word contain more vowels than non-vowels?
If the word is over half vowels, it should return True:
>>> has_more_vowels("moose")
True
If it's half vowels (or less), it's false:
>>> has_more_vowels("mice")
False
>>> has_more_vowels("graph")
False
Don't consider "y" as a vowel:
>>... | [
"supreethamg@gmail.com"
] | supreethamg@gmail.com |
b0aefdcf2c2db6779f6677518c901550f3e59888 | 8079a6cfca1de1ddfb7d5ac3b215d81cfba36184 | /count_tags_xml.py | f64485c9069f3b660ebf3b731e2d3fff0f6d3f61 | [] | no_license | tonogeneral/python | e764a366fbf126a3bd1a5734396c38084a1e7d3b | a4f3bc3848f6c19a26260b57452013ee028a2b42 | refs/heads/master | 2023-02-04T12:20:57.369914 | 2020-12-16T16:13:35 | 2020-12-16T16:13:35 | 281,011,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | import urllib.request, urllib.parse, urllib.error
import xml.etree.ElementTree as ET
import ssl
#api_key = False
# If you have a Google Places API key, enter it here
# api_key = 'AIzaSy___IDByT70'
# https://developers.google.com/maps/documentation/geocoding/intro
# Ignore SSL certificate errors
ctx = ssl.create_defau... | [
"tonogeneral@gmail.com"
] | tonogeneral@gmail.com |
6933509e67333ddc4393c9e71a72720bdb5c74d8 | d8bf68df624e5a50324527baf44ca610340b060d | /sniffersapp/projects/models.py | 7b6880af9a6d233b3aac629f739f0adb8647d23d | [
"MIT"
] | permissive | jamesokane/Oneworksite-Application | 0aadd4661e09c7448b465c967377f8058df82f65 | 1749ffa89430be75394ae0d43905f3dd30a24fc6 | refs/heads/master | 2022-12-15T21:13:30.697889 | 2018-11-09T02:55:18 | 2018-11-09T02:55:18 | 157,323,318 | 0 | 0 | MIT | 2022-12-08T01:02:11 | 2018-11-13T05:06:01 | JavaScript | UTF-8 | Python | false | false | 1,935 | py | import datetime
from django.db import models
from django.conf import settings
from ..connections.models import Company
from shortuuidfield import ShortUUIDField
class Project(models.Model):
status_options = (
('Open', 'Project Open'),
('Closed', 'Project Closed'),
)
created_user = models... | [
"james@oneworksite.com"
] | james@oneworksite.com |
db22f1613ecfb0ae9b171db68f83c9a8d0f77dca | 10e8c2d72750386a89ee0cd53511ca6152acc0e2 | /blog/migrations/0001_initial.py | e85eb079c4f8fe5f305a1e57ca409ee0d975959a | [] | no_license | goldogob/my-first-blog | 8fdfe22ee263d1090a783a3781d629e981e3eaca | 640258fa894d8ec6a5da61f3b5fa54cacc97103b | refs/heads/master | 2020-03-31T05:12:32.499310 | 2018-10-07T09:44:30 | 2018-10-07T09:44:30 | 151,937,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # Generated by Django 2.1.2 on 2018-10-07 02:58
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"abdinasir_308@hotmail.com"
] | abdinasir_308@hotmail.com |
f34189295dea001181d92eeb0fca188de1f693c7 | 0faafb167fb778e7f3a094ade994e74e7b7a8cc4 | /dataHandlers/accParser_append.py | c2f968fe6887cf0aef24ac1ebd28f8338845a7be | [
"MIT"
] | permissive | aritraghsh09/morphML_reloaded | f5825d9a6124cc1c788ff10128afc10ca9416d45 | 85c3da4dcf43db1bd621bba64d1a5720937ad661 | refs/heads/master | 2021-05-02T10:44:55.177097 | 2019-09-03T15:34:45 | 2019-09-03T15:34:45 | 120,798,948 | 0 | 0 | MIT | 2019-04-08T20:54:56 | 2018-02-08T18:13:41 | Python | UTF-8 | Python | false | false | 1,631 | py | ####################################
# accParser_append.py
#
# To use this, you must first have run accParser at least once for that particular run folder. This tries to open the old out file and append stuff to it.
# Used when there are separate epochs for a single run.
# !!BE CAREFUL!! -- THIS WORKS ONLY WHEN FILES A... | [
"aritraghsh09@gmail.com"
] | aritraghsh09@gmail.com |
567c734c8c30c7425d8a8d2bc60d18af42bda97e | 9c7e7e4a23e95b8de1869e7111cf25973d019742 | /pretix_swap/migrations/0001_initial.py | 3751ed4ab1c547be6734832f854df711ccc7f31a | [
"Apache-2.0"
] | permissive | rixx/pretix-swap | f8ce05e2346de3cfa4de57316e4c9bbde013ad4f | 8b796e5cf8372968d3f64ad0a34e954164edd60e | refs/heads/main | 2023-06-21T06:55:04.395432 | 2021-06-28T22:04:26 | 2021-06-28T22:04:26 | 343,238,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | # Generated by Django 3.0.11 on 2021-03-02 13:57
import django.db.models.deletion
import i18nfield.fields
from django.db import migrations, models
import pretix_swap.models
class Migration(migrations.Migration):
initial = True
dependencies = [
("pretixbase", "0174_merge_20201222_1031"),
]
... | [
"r@rixx.de"
] | r@rixx.de |
5e8be2330606ad2f82c90f8a283f6a92921edf3d | eff48acf9644e41b4b8739ad3f40eda8a2821a81 | /qz_day14/qz_day14_1_内置函数.py | 8f212ba7041a9490092b7893b7dfab021991cc2a | [] | no_license | renhang0214/learn_python | 11e082d127605173de4208b9f26b12f6bbbfa05d | fac6662c1ca1da1547963d7f75d6152e7a562775 | refs/heads/master | 2021-01-01T19:13:01.505427 | 2017-07-27T16:11:35 | 2017-07-27T16:11:35 | 98,537,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | # /usr/local/bin/python
# -*- coding: utf-8 -*-
# Author: Ren Hang
# 内置函数
# __import__()用于导入模块
# getattr 用于寻找模块的指定对象
# a = __import__(‘b’) # b为模块名,b是字符串 ==>> 导入模块b并重新命名为a
# c = getattr(a,’d’) # d为模块中指定对象 ==>> 找到模块中命名为d的对象
# d() ==>> 执行d
# getattr(a,’b’, c) # 从a模块中导入b。c参数可不写表示找不到报错;c为None表示找不到不报错,返回None。
# hasattr... | [
"297096995@qq.com"
] | 297096995@qq.com |
e5e948b4178f1f925deb48c1204a54d6f6f323c3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03088/s550393525.py | d662712473fa4b56d2c4e3a870ac0937453f7bfe | [] | 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 | 874 | py | N = int(input())
dp = [[0]*64 for i in range(N-2)]
# 3進数で管理
mod = 10**9+7
d = dict()
d2 = dict()
d2[0] = 'A'
d2[1] = 'G'
d2[2] = 'C'
d2[3] = 'T'
for i in range(64):
k = i
ret = ''
for j in range(3):
ret += d2[k % 4]
k //= 4
d[i] = ret
for i in range(64):
if d[i] == 'AGC' or d[i] =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
299d57b3c36a34de2b7b36fa4962f0e792851130 | 2c0c50a3de7eecf4baabdcfd80589d31f99ee653 | /third-party/meme_4.9.0/scripts/glam2scan2html | 62110490e012d8a2fbec49b9b7268eb75af2d0ae | [] | no_license | xfLee/denovochipseq | 0f4669b730c8c009041c4055f6839b3b2bd01c3c | 042988f447438eb725170b62d616f27396339795 | refs/heads/master | 2021-01-21T23:45:42.909409 | 2015-07-27T00:14:01 | 2015-07-27T00:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | #!/opt/python27/bin/python
# Read GLAM2SCAN output: write an HTML version of it
import fileinput
version = ''
commandline = ''
alignments = []
state = 0
for line in fileinput.input():
if state == 0:
if line.startswith('Version'):
version = line
elif line.find('glam2scan') != -1:
... | [
"yuhaow.thu@gmail.com"
] | yuhaow.thu@gmail.com | |
5cfaab7eb46ff501a77a9d3785b4645591d3c17b | 14a1e119756bc032b8d0d60a863823c3a4fa3b25 | /CenterNet3D.py | 9a7d478818d59361db5c4f28efca8870d9d8d4dd | [
"MIT"
] | permissive | DylanHsu/CenterNet-tensorflow | 093c2ef4c66bb3982fa4224faef1ea10fe144d38 | 106f6415c412dbab94fcfb72ed5d57b0aeaeb5e1 | refs/heads/master | 2020-09-24T03:56:06.804284 | 2020-04-06T15:28:25 | 2020-04-06T15:28:25 | 225,656,155 | 0 | 0 | MIT | 2019-12-03T15:41:14 | 2019-12-03T15:41:13 | null | UTF-8 | Python | false | false | 19,692 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import numpy as np
import sys
import os
class CenterNet3D:
def __init__(self, config, data_provider):
assert config['mode'] in ['train', 'test']
assert config['data... | [
"hsud3@mskcc.org"
] | hsud3@mskcc.org |
85163a8a79493073b5ada17fabb8ef264d431e27 | 06f52df1993d2a856663863aa7bd0fc63e25b10e | /bot.py | 0d1f05504ca357c2cd8d55e7a39731e8199e226b | [
"MIT"
] | permissive | nullhandler/Android-Bot | 2695d27b01fbecd1204deb576fd7e8fcb37bfc78 | 1864c57d551f5d7629857d9d4b3491e6b13339aa | refs/heads/master | 2023-03-09T19:39:20.886029 | 2018-11-12T19:48:07 | 2018-11-12T19:48:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | # -*- coding: utf-8 -*-
import os
import telegram
from telegram.error import NetworkError, Unauthorized
from time import sleep
from telegram.ext import CommandHandler, MessageHandler, Filters
from telegram.ext import Updater
myToken = os.environ['TELEGRAM_TOKEN']
# Add the commands and reply commands in the comman... | [
"peratchiselvank@gmail.com"
] | peratchiselvank@gmail.com |
45b40277437dd06c433bf68ccd3ed8437144d618 | 4fb10fd28bf10e6931252b519c09af6ff257f6f0 | /tests/test_rotate_array.py | 55d982714d44da198c7a4037868e8fa33ed3d022 | [] | no_license | bliaw/algorithms_python | 42b00ac668e4050c015cc1c9e34fff628c776b7a | ad27231c2c30a35d55f75e60f745288230abf3de | refs/heads/master | 2020-08-17T06:48:42.605995 | 2019-10-16T21:59:07 | 2019-10-16T21:59:07 | 215,627,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | """Test rotate_array."""
from hypothesis import assume
from hypothesis import given
from hypothesis import strategies as st
import pytest
from algorithms.rotate_array import RotateArray
@pytest.mark.parametrize('input, input_k, expected',
[([1, 2], 11, [2, 1]),
([... | [
"aiden@aidenlaw.com"
] | aiden@aidenlaw.com |
2a5d0a8638430e8dd2add02f4ca10ea6642afd69 | 33be4ac2c05477530b326decf6883a6f8392db32 | /__tests__/test_table.py | 2fbdacd91e1da9b2adbc76311c09444f29c79ab3 | [] | no_license | leo-ware/logic | bbffd30ec7c75642dd8e21ca67bcce9c48201e99 | a99c427fa386d48c7a34b0a0de7fffb57ee84ba3 | refs/heads/main | 2023-04-13T06:55:45.507489 | 2021-04-24T05:03:12 | 2021-04-24T05:03:12 | 356,954,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | from src import *
from anything import Anything
x, y = variables("xy")
Leo = Term("Leo")
Declan = Term("Declan")
Milo = Term("Milo")
Henry = Term("Henry")
sibling = functor("sibling")
father = functor("father")
foo = LinearTable([
sibling(Leo, x) <= sibling(Declan, x),
sibling(Leo, Milo) <= language.YES
])
... | [
"leoware@minerva.kgi.edu"
] | leoware@minerva.kgi.edu |
e5a91252c372b130711f02d13ad05728d33ce7d1 | 49c8131fe6e1b37f3d21483cbb5bf4cd6449611b | /habitat_baselines/utils/visualizations/utils.py | 27ae0209f1e0cb455b8da6b3868a7f58a5f59c08 | [] | no_license | jyjang0421/VisualNavigation | 63c5d5082f51dc7085f3ac587ca8fa87b193c05e | ac681c30cfd6e034400d1229f1235bc22c62fa7a | refs/heads/main | 2023-09-05T01:11:51.526280 | 2021-11-07T17:22:10 | 2021-11-07T17:22:10 | 425,567,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import cv2
import torch
from habitat_baselines.utils.common import (
tensor_to_bgr_images,
tensor_to_depth_imag... | [
"jyjang0421@naver.com"
] | jyjang0421@naver.com |
c61e2d038be8353a38749035d85ca92ac2d8a449 | 1a3362c92082ac8c65ebfcd0cbc548b7aab14514 | /tests/test_events/announcement_published/test_announcement_published.py | bf898177735cb91ad6cd240679e729c92dff1964 | [
"Apache-2.0"
] | permissive | henning-roos/eiffel-graphql-api | a8829d010380fc13ea130b375f610e11997fa27e | 9bffe27478a088e5438762e0104d1901c7baab01 | refs/heads/master | 2022-10-10T05:19:00.377557 | 2020-02-05T13:23:22 | 2020-02-05T13:23:22 | 264,891,498 | 0 | 0 | Apache-2.0 | 2020-05-18T09:29:07 | 2020-05-18T09:29:06 | null | UTF-8 | Python | false | false | 5,424 | py | # Copyright 2019 Axis Communications AB.
#
# For a full list of individual contributors, please see the commit history.
#
# 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.apac... | [
"tobiaspn@axis.com"
] | tobiaspn@axis.com |
cb2060b44ea1196495278c47516362886016ec01 | 9d291ff8ad0a455b8b38065546e1c9a6617d36cf | /python/cqtest/hw.py | a09cf8f585e0fa274a6a9599c48d971cc7db1593 | [
"BSD-2-Clause"
] | permissive | seekindark/helloworld | 7128b8d8b6ebdc79c2ec3aa17137fb2a8e18885e | 3f36e040399a998e43c63bca0586fe517b7fef69 | refs/heads/master | 2023-05-26T22:04:08.714917 | 2023-05-13T01:31:06 | 2023-05-13T01:31:06 | 193,409,142 | 0 | 0 | BSD-2-Clause | 2019-09-27T08:07:02 | 2019-06-24T00:31:59 | C | UTF-8 | Python | false | false | 28 | py | print("Hello World,",2022)
| [
"fei_n_chen@163.com"
] | fei_n_chen@163.com |
983fc36a0c5cf2655d4920fc4370fc7da8ed6fb1 | e838ed306684b103b3d6ac6aa72fda321caf3632 | /flappybirds.py | ac1a9a1805016954673047e21eefd81e6ae7ebc7 | [] | no_license | harika1101/Retro-fun-house | 102d1e1b922212870d5c649161c2c72b84439d93 | e4931d1159d4553856256696160ed6d865322170 | refs/heads/main | 2022-12-27T19:36:21.419550 | 2020-10-05T05:37:46 | 2020-10-05T05:37:46 | 301,194,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,640 | py | import pygame, sys, random, digiweb
from PythonInsideHTML import PIH
def draw_floor():
screen.blit(floor_surface, (floor_x_pos,450))
screen.blit(floor_surface, (floor_x_pos + 288,450))
def create_pipe():
random_pipe_pos = random.choice(pipe_height)
bottom_pipe = pipe_surface.get_rect(midtop =... | [
"noreply@github.com"
] | harika1101.noreply@github.com |
c38cf65e1e52694035fbdf163d9836a8c32b5204 | 74db18a388236f83a46a36a6bb32b99983323823 | /flight_bot/src/model/user_model.py | 0efa2b6193040d8544365a9cce209bc01ab73bf6 | [] | no_license | guilevieiram/100_days | e0a5e9f931b92d0b23e6b12109a85d3d055a9470 | e259a55bfdad4800f0754a1ac12172c20c9377b0 | refs/heads/main | 2023-09-03T21:21:17.795417 | 2021-11-01T00:01:09 | 2021-11-01T00:01:09 | 383,873,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,464 | py | from abc import ABC, abstractmethod
from dataclasses import dataclass, asdict
from typing import Union, Optional, Any
from src.decorators import log
from src.model.db import DataBase
@dataclass
class User:
"""Dataclass to encode a user."""
first_name: str = ""
last_name: str = ""
e_mail: str = ""
phone: str = ""... | [
"guilhermevmanhaes@gmail.com"
] | guilhermevmanhaes@gmail.com |
c2c3d509ac459bd3bb36a4e114ea7c7800b0df1e | 8edf0fe4ef80faeb40ddcf3486988864a631dd61 | /text_gmail_api.py | 98ae693c894d3a38f0a70475b4965aafea569dcf | [] | no_license | pritul2/Alert_APIs | 54ce72705f252bf63d3e73d6bb2adc2b198eb4ca | 607ea7076dceaf89ee0a793beda9acebff172ab6 | refs/heads/master | 2020-11-29T11:25:12.507975 | 2019-12-26T04:37:59 | 2019-12-26T04:37:59 | 230,103,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | '''
1) enable 2 step verification
2) go to enable app password
3) Generate the APP password
'''
import smtplib
import os
#setting the env. variables#
SENDER_EMAIL_ADDRESS = "sender address"
EMAIL_PASSWORD = "app password"
RECEIVER_EMAIL_ADDRESS= "receiver address"
#setting up the mail server and smtp port number#
with... | [
"noreply@github.com"
] | pritul2.noreply@github.com |
819b491b627b3288f3b1beef011973ec50ecc21b | 60ce73bf2f86940438e5b7fecaaccad086888dc5 | /working_scrapers/Kentucky_perry.py | e8b7877b0405e86c4b2fbbf7255b77f7b2ad7a96 | [] | no_license | matthewgomies/jailcrawl | 22baf5f0e6dc66fec1b1b362c26c8cd2469dcb0d | 9a9ca7e1328ae549860ebeea9b149a785f152f39 | refs/heads/master | 2023-02-16T06:39:42.107493 | 2021-01-15T16:37:57 | 2021-01-15T16:37:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,260 | py | #!/usr/bin/python
'''
This is an template script
'''
from urllib.request import urlopen, Request
import pandas as pd
import os
import time
import numpy as np
from datetime import datetime
import datetime as dt
import sys
from io import StringIO
from joblib import Parallel, delayed
import requests
from jailscrape.comm... | [
"matthewgomies@Matthews-MacBook-Pro.local"
] | matthewgomies@Matthews-MacBook-Pro.local |
dc6c425b31fb7d5e373fcca16b4cca613081850b | 5f181e84305f507264945459924f0b40aa30a271 | /locus_level_score/classification/feature_extraction.py | 35c4dfeb573f50c0cb51ef11c10b8025e9aa22bc | [
"MIT"
] | permissive | HealthVivo/ABE_NonCoding_functional_score | 6e3d56b92b21946518b6fd7c8050e8fd66d9784b | 87db4000d7ee030e3ed813774e03f4d902ced587 | refs/heads/master | 2023-03-01T22:05:19.929521 | 2021-02-04T21:01:08 | 2021-02-04T21:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,283 | py | import numpy as np
import os
import pandas as pd
from Bio.Seq import Seq
from Bio import SeqIO
try:
from StringIO import StringIO ## for Python 2
except ImportError:
from io import StringIO ## for Python 3
import uuid
from joblib import Parallel, delayed
import argparse
import matplotlib
matplotlib.use... | [
"yli11@nodegpu132.cm.cluster"
] | yli11@nodegpu132.cm.cluster |
93c54ba4b5d31db14bb0a47e1fb2f880b943e7e8 | 937ed32710aba405bcd9ec7f8f5c78ddeaf72bc9 | /projects/ingsoft/biblioteca/reservas/urls.py | 990f849c5dc8cef9e3612691ed7a11a726c05e10 | [] | no_license | arcegk/biblioteca | 51104f98169ff5c786aa32a85e76cd8a9c650fad | 741e3273e86f4e97148e2320291a0a0587fead96 | refs/heads/master | 2021-01-15T23:46:13.019594 | 2015-11-13T18:18:06 | 2015-11-13T18:18:06 | 46,137,007 | 0 | 0 | null | 2015-11-13T17:30:14 | 2015-11-13T17:30:14 | null | UTF-8 | Python | false | false | 238 | py | from django.conf.urls import patterns, url
from .views import *
urlpatterns=patterns('',
url(r'reserva_registro/$',reserva_registro, name = 'reserva_registro'),
url(r'reserva_consulta/$',reserva_consulta, name = 'reserva_consulta'),
) | [
"stevenbetancurt@hotmail.com"
] | stevenbetancurt@hotmail.com |
bbac79a283a0e0e2460705d1117a4a86d695565a | b42bdf7e439ce959c851b37ba1bb764a92779163 | /venv/Scripts/easy_install-3.6-script.py | 6dd7402ed579e8ca2d9347664802d8c03c3bc6e8 | [] | no_license | paulduval30/GrapheProject | 069df240936bb6205e840fd5d9ef52f2db7b686e | 428ab99dc6ac5ca749b2f553f82603d689fb64b7 | refs/heads/master | 2020-04-08T23:28:03.162684 | 2018-12-28T22:47:18 | 2018-12-28T22:47:18 | 159,825,711 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | #!C:\Users\pauld\PycharmProjects\GrapheProject\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | [
"carotte@outlook.com"
] | carotte@outlook.com |
0534afcacc176683783f7b7e7eafe90f61bd904b | 57ee0d71639215c5a3736939381c713596dd0ef1 | /lesson4/lesson4_4.py | a842006f2d8e7588f014aadfe0a47a4078bfb413 | [] | no_license | dilya123/pythoMonth1 | e90a7758f8f1615489d3cced3834baeb12d189ad | 5336ea3f5dcc3410ed696645cc0196eda7113c7c | refs/heads/master | 2023-06-27T00:56:17.464053 | 2021-07-29T14:00:09 | 2021-07-29T14:00:09 | 381,046,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | names = ["Maruf", "Temirlan", "Seyto"]
print(names)
names.append("Sultan")
print(names)
names.remove("Sultan")
print(names)
for i in range(5):
name = input()
names.append(name)
for i in names:
print(i)
| [
"daniyarflash.m01@gmail.com"
] | daniyarflash.m01@gmail.com |
1e55966be921e9a8d0857f8429f9b089099ccaba | ae1c0b745dd759d741569558e754646bc7fa1c86 | /Pythonprog/Python1.py | 0afe49cc65de9bc1ce1a394c2d0c17fc0892fa9f | [] | no_license | NAGA6699/Nagarjuna_i_Transform_DevOps_Assignments | a284be1230052ca7bdf9e80f4695725c5b1c135d | cdeded676b2edd06833419be0a29c4171e86bfa0 | refs/heads/master | 2023-08-23T16:42:06.664608 | 2021-07-24T13:39:21 | 2021-07-24T13:39:21 | 389,105,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import re
f=open("Actualdata.txt")
num=list()
#c=0
l=f.read()
print(l)
n=re.findall('[0-9]+',l)
for i in n:
num.append(int(i))
print(sum(num),len(num))
##
#print(sum(num),len(num),num)
| [
"VENNAPUSA-NAGARJUNA.REDDY@CAPGEMINI.COM"
] | VENNAPUSA-NAGARJUNA.REDDY@CAPGEMINI.COM |
0e0275cf428a67a90944af9e04ea11d7cd635d90 | b21c3e8621e0f20d5f8a86e17e11aac221cb59a7 | /studentsdb/urls.py | c31ded6d3b232eff7c36b598ff8ff630077706e8 | [] | no_license | SviatStrakhov/st_db | 64e852523e354fee40faa2312f29f787b48267c5 | 3c6ace28228233ba681c74d86c62f2cb687f6783 | refs/heads/master | 2020-12-30T15:09:23.106154 | 2017-05-19T15:13:01 | 2017-05-19T15:13:01 | 91,117,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | """studentsdb URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"svoharts@gmail.com"
] | svoharts@gmail.com |
4966a3f5d0449b77c881c78bcc2137881aa21ae3 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/models/prewarmed_encoder_pool.py | 8da7630b67d41bfa0dd3425c382138e1ce51c897 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 12,366 | py | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
from bitmovin_api_sdk.models.bitmovin_resource import BitmovinResource
from bitmovin_api_sdk.models.cloud_region import CloudRegion
from bitmovin_api_sdk.models.prewarmed_encoder_di... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
10633cacba3a9240db613dca72ff6eb3a8f19adc | 29fc11636bf5053feb113ad837ec42ffe3f09bfd | /Terra/Bug_25/_mapping.py | cceb0075f51f4610781ef1def67a81168a521f6d | [] | no_license | deyh2020/Bugs4Q | 8446db4a8efcf3541ba740b7d658b6812d56fe3e | b6e306e12bd1c5fdec126655ad008c386340ab57 | refs/heads/master | 2023-05-31T03:41:28.576877 | 2021-06-17T15:08:03 | 2021-06-17T15:08:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,622 | py | # -*- coding: utf-8 -*-
# Copyright 2017, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
# pylint: disable=invalid-name, inconsistent-return-statements
"""
Layout module to assist with mapping circuit qubits onto ... | [
"zpz2393247079@gmail.com"
] | zpz2393247079@gmail.com |
4c3ae5d9175b6d3dfd6c1d550c0293f6c0646ba1 | 678999c17480f902023c1c08db21b23dd9dd66fd | /user/migrations/0002_auto_20190121_1206.py | 7b31a26157fba00065137b53fc9726e9e44a8ccd | [] | no_license | leocristino/django-vuejs-api | 423efb5859b6b63d8b806749bb646c9b3ba51361 | 72a342664ced409f28aec7d3d30a75017b9093fa | refs/heads/master | 2020-04-18T07:57:22.938058 | 2019-01-24T15:51:30 | 2019-01-24T15:51:30 | 167,378,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | # Generated by Django 2.1.5 on 2019-01-21 14:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='email',
),
... | [
"leo_cristino@yahoo.com.br"
] | leo_cristino@yahoo.com.br |
3e45d3ca7391b768fff91c4ebbdcfba94405a1b2 | 99fbb577cb5edb60cf31401d5127d739f571d334 | /src/storfox_framework/grpc.py | 56a7dcbd6683ac2fdffa04221d062212c043d6c7 | [
"Apache-2.0"
] | permissive | storfox/storfox-framework | 0c93df7058b00e645524b702cd23ba00cc6fbf99 | ffe8a89cb9abb203d696c6b24467f97834bd92a0 | refs/heads/main | 2023-03-07T16:57:29.632454 | 2021-02-19T14:01:33 | 2021-02-19T14:01:33 | 339,478,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import typing
import asyncio
from grpclib.utils import graceful_exit
from grpclib.server import Server
def run_forever(handlers: typing.List[typing.Any], host, port):
async def start():
server = Server(handlers)
with graceful_exit([server]):
await server.start(host, port)
... | [
"bekhzod.tillakhanov@gmail.com"
] | bekhzod.tillakhanov@gmail.com |
8347b63b3084d8d3c89dadf0d3338a8b97aa8f3b | b192fa5cca5faaace36b3cac52d67bd4b50d881c | /libs/myflick/db/models.py | 4b965ff92c534dc1947e81f2a3edc52aba6a424e | [] | no_license | mitemitreski/myflicks | f9ae3501607e3d321f7812731766c73f6fa6df3e | c95addd564d71c2267fbf029060d14848c225c7e | refs/heads/master | 2021-01-18T02:11:51.298371 | 2013-11-09T16:35:20 | 2013-11-09T16:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,844 | py | from datetime import datetime
from sys import stderr
from json import loads as json_loads
from json import dumps as json_dumps
from random import shuffle
from werkzeug.urls import url_quote, url_quote_plus
from sqlalchemy.sql.expression import func, and_
from sqlalchemy.orm.exc import NoResultFound
import requests
fr... | [
"b.petrushev@gmail.com"
] | b.petrushev@gmail.com |
132af75dcb792056a588ce1774127ea575113a40 | 1ce535cff909700ba348f71294a211c4726b9470 | /adapters/rabbitmq.py | 1346c10d4fd277bd33b416407faf3258e7e9609f | [] | no_license | WilliamMolina/python_testing | dfa66036e7802f7a19669bec23e5ae838346166d | 7325c35c9531b3f7d6a4de7177213431715de667 | refs/heads/master | 2020-07-29T03:43:58.757020 | 2019-09-19T22:06:52 | 2019-09-19T22:06:52 | 209,656,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from util.util import my_print
class RabbitMQ(object):
@classmethod
def connect(cls, user, password):
my_print(user, password) | [
"wmolina98@gmail.com"
] | wmolina98@gmail.com |
61b677b51b7bebc1c8cc8e05f097dc085aeec9df | cc7b4e71b3c27240ec650a75cc6f6bbab5e11387 | /crdb/urls.py | 1c725c9a22b9ce806c2359100497cf8be837a680 | [
"MIT"
] | permissive | jsayles/CoworkingDB | 0cdada869d950a28cfef20d1b9c1eb3eb4d7b1c2 | 78776910eba0354a7fd96b2e2c53a78e934d8673 | refs/heads/master | 2023-02-22T23:11:19.040799 | 2021-12-28T19:13:39 | 2021-12-28T19:13:39 | 883,951 | 3 | 0 | MIT | 2023-02-15T17:59:10 | 2010-09-02T18:36:43 | Python | UTF-8 | Python | false | false | 1,967 | py | from django.conf import settings
from django.contrib import admin
from django.urls import path, include
from django.views.generic.base import RedirectView
from django.contrib.auth import views as auth_views
from django.http import HttpResponse, HttpResponseRedirect
from crdb import views, api
app_name = 'crdb'
urlpa... | [
"jsayles@gmail.com"
] | jsayles@gmail.com |
a98c4f8f8a17d49a9ab1ab91e53471e81ff2909b | bda804b2922af42b25fd066ba5fb172b7acf8477 | /doigetabonus.py | f5e62c745b3d3cd3000d9fcf43dcd907e928ea5b | [] | no_license | kammitama5/Distracting_KATAS | c8fb813afee3a8527320c794dff5274c61551bbc | d10984bef26fada09a6ba0a8493ef640f22b2acc | refs/heads/master | 2020-06-27T19:09:55.518148 | 2018-05-02T04:14:44 | 2018-05-02T04:14:44 | 74,521,719 | 0 | 1 | null | 2017-08-10T04:15:40 | 2016-11-22T23:17:00 | Python | UTF-8 | Python | false | false | 162 | py | def bonus_time(salary, bonus):
if bonus == True:
s1 = salary * 10
return '$' + str(s1)
else:
return '$' + str(salary)
| [
"noreply@github.com"
] | kammitama5.noreply@github.com |
a12d20d29e3840bb48e7f2d3bc435d0bc15ed2ff | ceadb36233359cee0fcaa0f849e59c0039d5a87f | /modules/kkpandas/kkio.py | 31ab79af8d63371cbc2dcdffa16594d805ce4037 | [] | no_license | Mia9469/Rodgers2014 | df1a6150f2fa0e3470293d868a2d46f0bd8d6065 | 390b6089c429877dfea9c56de153bbea0380c20f | refs/heads/master | 2021-06-04T08:02:06.087375 | 2016-07-10T00:17:44 | 2016-07-10T00:17:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,956 | py | """Methods to read KlustaKwik-formatted spike times into dataframe.
Low-level
---------
These are just simple (but efficient) wrappers around pandas reading
methods that add on column names, etc.
read_resfile
read_fetfile
read_clufile
load_spiketimes
Medium-level
------------
from_KK : auto finds all relevant files... | [
"xrodgers@gmail.com"
] | xrodgers@gmail.com |
d20720bc0a10e59361208c0e07e618e0d84769f0 | c6c142f46daba7ab31f7a9a233fefbf56f5e1473 | /scripts/colormap.py | 55402b2b68bdc24354fd0c174d33240488840ff6 | [
"Artistic-2.0"
] | permissive | fluffyfreak/demoscene | c111c5de615f57db69b32c7706dcb930caecaaa8 | af5c06ab2b8ebf42994a4903c8c3c05cc288b4b7 | refs/heads/master | 2022-02-03T23:50:27.515797 | 2019-07-20T11:40:57 | 2019-07-20T11:49:11 | 198,051,701 | 1 | 0 | null | 2019-07-21T12:08:59 | 2019-07-21T12:08:58 | null | UTF-8 | Python | false | false | 4,122 | py | #!/usr/bin/env python -B
import Image
import argparse
import os
import json
from quantize import Quantize
IMG_GRAY = 0
IMG_CLUT = 1
IMG_RGB24 = 2
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='Generate color map required by some pixel effects.')
parser.add_argument(
'-c', '--... | [
"krystian.baclawski@gmail.com"
] | krystian.baclawski@gmail.com |
9ddab87be24b61ccdd222e1ab7cdb6aca5d98451 | 6996f7af93a4a48e2db880c906acd4ceaabe8fcb | /20200127.py | ebc66eb3e2f03fee18e6649c76f4b7d3b5f68c07 | [] | no_license | MantaCoeno/MantaCoeno | 0de472d2cd43ec52c7d56a08604d280850af3d48 | 510f63dc6d554b6c01d19f749ec7bb017525d861 | refs/heads/master | 2020-12-19T07:23:33.325742 | 2020-01-28T20:01:40 | 2020-01-28T20:01:40 | 235,662,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | """Пейзаж из как минимум 5 статических фигур"""
import graphics as gr
def draw_land(window, color_land, weight, height):
my_land = gr.Rectangle(gr.Point(0, height) , gr.Point(weight, 0))
my_land.draw(window)
my_land.setFill(color_land)
return 0
def draw_sky(window, horizon_height , weight, ... | [
"lexamal@inbox.ru"
] | lexamal@inbox.ru |
9b3d1fe21bedcf96752c64d8ee91c9feb8a95628 | 3504c73d6b5cd49d18d9ea91da77b558f41e45bc | /client/app.py | 5361d4de3a75492716aceee54c9e4d4a5b998ee0 | [] | no_license | WokoLiu/python_oauth2_example | 351eec5634d34285fed19a7810ca821b6e1ddbc5 | e0bc86b30a9e4e12a9e275aa3a7316eaca402b4e | refs/heads/master | 2020-05-25T14:39:02.878603 | 2019-06-04T07:58:36 | 2019-06-04T07:58:44 | 187,850,043 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,743 | py | # -*- coding: utf-8 -*-
# @Time : 2019-05-20 12:21
# @Author : Woko
# @File : app.py
import os
from functools import wraps
import requests
from authlib.flask.client import OAuth
from flask import Flask
from flask import jsonify
from flask import redirect
from flask import render_template
from flask import sess... | [
"ylliu@hillinsight.com"
] | ylliu@hillinsight.com |
4c3908350c034494b0b10684dfc7e6b248e20a57 | 850b3c8fb4544b1185304f47cdbe66a6ea0b3f91 | /pegLoanerApi/serializers.py | cef6ccec7082ee0590ed9929f884339e954b8ca4 | [] | no_license | ehmd96/LoanManager | 7f29366490cd6172819a1470343354af52365d01 | e5dd17a8266c1c19589131e43e7cf23db276b018 | refs/heads/master | 2023-01-11T22:48:19.253401 | 2020-11-22T09:02:18 | 2020-11-22T09:02:18 | 314,994,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from rest_framework import serializers
from .models import Agent, Customer
class AgentSerializer(serializers.ModelSerializer):
class Meta:
model = Agent
fields = "__all__"
class CustomerSerializer(serializers.ModelSerializer):
class Meta:
model = Customer
fields = "__all__"
| [
"ehmd96@gmail.com"
] | ehmd96@gmail.com |
5c8a3b8efe3588a8ad92057563d18b3d7bc47a1d | 285d479edc1931276b5afb553e607bd07b085bcb | /cloth_manage/clothes/migrations/0005_auto_20210103_2100.py | 8decb540c4859498a1ecacd6c5a0d372f6d6e7f1 | [] | no_license | kimuson13/close-cloth | d0a794156f0c874a3273b6a2ae9dc6bf3591cce7 | 72a6158153ce2f37007fe50658359b8f5ded3a2d | refs/heads/main | 2023-05-28T22:48:10.892121 | 2021-06-12T09:45:39 | 2021-06-12T09:45:39 | 324,504,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # Generated by Django 3.0.4 on 2021-01-03 12:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clothes', '0004_auto_20210103_1006'),
]
operations = [
migrations.AlterField(
model_name='wanted',
name='priority',
... | [
"kimuson13@basket.com"
] | kimuson13@basket.com |
a4785e18190f295e7c02fc7cb26245184e76a00e | 868cd4895a8da17a7e3e2c8da0ec9e139f8d0c30 | /project/AI경진대회/submission.py | 710eb1881db844187d1d994c164ade2c2a9c836c | [] | no_license | inJAJA/Study | 35d4e410df7b476a4c298664bb99ce9b09bf6296 | c2fd9a1e1f3a31cb3737cbb4891d848cc802f1d4 | refs/heads/master | 2022-12-21T11:41:15.396610 | 2020-09-20T23:51:45 | 2020-09-20T23:51:45 | 263,212,524 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | import cv2
import glob
import numpy as np
from keras.models import Sequential, Model
from keras.layers import Dense, Dropout, Conv2D, MaxPooling2D, Flatten, Input
from sklearn.model_selection import KFold, cross_val_score, cross_val_predict, train_test_split
from keras.callbacks import EarlyStopping, ModelCheckpoint
f... | [
"zaiin4050@gmail.com"
] | zaiin4050@gmail.com |
70421ab0f7256c9fc8a3926b8edd9733b99a6420 | 4b4b2ca38d277b9d773e0a8464de8b3401d74f10 | /trans/wsgi.py | 3b681dbb884e77d5ac01d2f75c4e97dbd07168e7 | [] | no_license | ChanSeaThink/trans | 98b997993da380c921a83cb3a47acf6fafa52fe3 | 386bb27f633570133a272bda1bc77ba352b348ff | refs/heads/master | 2021-01-10T18:16:14.375155 | 2016-03-15T10:08:00 | 2016-03-15T10:08:00 | 47,160,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for trans project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTING... | [
"42406671@qq.com"
] | 42406671@qq.com |
5b6ddb51b3f2e37fbb6faaf3b35a7ab9bcad071d | ae177eca9ff64ba6471ec49d5dc41949615d3b17 | /flask/flaskexample/a_Model.py | dd07e02060f7f610d425cebb01a23c8b043a09b9 | [] | no_license | filipkos/HobbyHopper | cb716e16a4a4ad79889470cc34ff0a9cd99b98d1 | d0f9082c38f64a46dc56313c190cd0551683a2f2 | refs/heads/master | 2020-08-07T12:01:16.300668 | 2019-11-06T21:50:07 | 2019-11-06T21:50:07 | 213,443,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import numpy as np
from recommender import CosSimilarityRecommender
def ModelIt(fromUser = 'Default', topics=[], user = {}, csr = None, mn = 0, sig = 1):
lst = []
for k in user:
if user[k] == 1:
lst.append(k)
vec = np.array([t in lst for t in topics]).astype(int)
pred = csr.predict... | [
"filipkos@Filips-MacBook-Air.local"
] | filipkos@Filips-MacBook-Air.local |
bda7a198ec463810a64819f9a7c778d0665ab503 | 62bc7601dd5b436261fb81320247f1760c0ecdcb | /sql_queries.py | 6943875894e8fdc3544dbf0fe74783c5341b6657 | [] | no_license | augustovictor/sparkify-dwh | 5f793e036804755cbcb3c1139dfdc38972852814 | bf80e2c1d803ff3007515c498e55c3bf438ef825 | refs/heads/master | 2022-09-18T12:08:19.665988 | 2020-06-02T22:18:45 | 2020-06-02T22:18:53 | 266,589,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,579 | py | import configparser
# CONFIG
config = configparser.ConfigParser()
config.read('dwh.cfg')
# DROP TABLES
staging_events_table_drop = "DROP TABLE IF EXISTS staging_events_table"
staging_songs_table_drop = "DROP TABLE IF EXISTS staging_songs_table"
songplay_table_drop = "DROP TABLE IF EXISTS songplay_table"
user_table_... | [
"victor.costa@loft.com.br"
] | victor.costa@loft.com.br |
973ffbb7fa840003e341762399925dc4b527ad1d | ad2704933de4502ae9de91e6d915f9dbe010b446 | /take/chapter03/knock22.py | b5d6c37c700c0c28eba88eb6502335a499fb7d04 | [] | no_license | tmu-nlp/100knock2017 | 266e68917d8d5a7f5d0c064f1bc2da5fa402a253 | 629bd1155d0fe78cd9302ae9a7cdf0922b778fe7 | refs/heads/master | 2021-01-19T17:36:53.328997 | 2017-07-24T07:09:54 | 2017-07-24T07:09:54 | 88,334,932 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | import re
from knock20 import gen_uk_info
catName = re.findall(r'\[\[Category:(.*)\]\]', gen_uk_info())
for c in catName:
print(c) | [
"take"
] | take |
35f83edd99698a38e1d32d107366d68bea80c37d | 9360d1a9cef857f373785776651d22eb2bf4595a | /python/paddle/v2/framework/tests/test_image_classification_layer.py | b4eda13552e60f009ec910e3d21e9d77107133a1 | [
"Apache-2.0"
] | permissive | hyqskevin/Paddle | a2f34c1f1e2a99c9b49419bb73c783f60b919132 | e745bcfc5e611bac7fa0a550651d13768871bfb6 | refs/heads/develop | 2021-09-16T01:39:52.060357 | 2017-11-04T05:40:04 | 2017-11-04T05:40:04 | 109,517,080 | 0 | 0 | Apache-2.0 | 2018-06-14T12:13:27 | 2017-11-04T17:50:58 | C++ | UTF-8 | Python | false | false | 2,708 | py | import unittest
import paddle.v2.framework.layers as layers
import paddle.v2.framework.nets as nets
from paddle.v2.framework.framework import Program
def conv_block(input,
num_filter,
groups,
dropouts,
program=None,
init_program=None):
re... | [
"noreply@github.com"
] | hyqskevin.noreply@github.com |
c8652d17bcf61bbe3816e64b8c426634b51edab6 | 595c28386d827b3f6828cf2c17bf462fb4c3e56c | /app/main.py | 240a702eb5cc578a33f51a927cef373aa5902722 | [] | no_license | keyapi/fastapi-demo | 5107ffc65ad74d6602125c9115eaeb9a221858f0 | 9e3cab16197b002c92a8a7bc78200b2a0ea45bf4 | refs/heads/master | 2023-05-31T06:06:43.446548 | 2020-06-10T06:52:16 | 2020-06-10T06:52:16 | 265,177,805 | 0 | 0 | null | 2021-06-11T18:07:31 | 2020-05-19T07:34:16 | Python | UTF-8 | Python | false | false | 107 | py | from fastapi import FastAPI
from app.api.movies import movies
app = FastAPI()
app.include_router(movies) | [
"kaepyz@gmail.com"
] | kaepyz@gmail.com |
b474a110e0e2f5a297c632049c67fe7440b9f102 | cf574da1855619c5ee9b5b39e95df96e042f092b | /mastermind.v1.py | f5746a0b2fe1dcf32da356be31240bf77c041def | [] | no_license | ashroff12/Mastermind | 2399af7116caf0c56eee0e86df17753d3ed86adc | 9ada8d57261c3f8e83dce830d50862ba2bc56e11 | refs/heads/master | 2020-07-31T18:58:01.433104 | 2019-10-02T00:26:13 | 2019-10-02T00:26:13 | 210,719,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py | import random
import tkinter
root = tkinter.Tk()
COLORS = ['red', 'yellow', 'blue', 'lime', 'aqua', 'gold']
code = []
white = 0
black = 0
guess_count=0
current_guess = [''] * 4
color_picker = ''
def new_code():
global code
while len(code) <4:
r = random.randint(0,5)
if r not in c... | [
"noreply@github.com"
] | ashroff12.noreply@github.com |
9552c2393b09a5a75f719a8b09b833e868deb70b | fd31572c183304f1385a8e89782d44976106ead1 | /Prueba/backend/migrations/0010_auto_20181014_2126.py | 07cc2616ddb3c6945448c40197c17ff3e65df270 | [] | no_license | ThexCrack10/PruebaCargaMasiva | ddfac6d39532f3e13a09c0b34609642c5a7ea3ac | c996bcd8c5f5c81c5bce1f64143af83c02200c1f | refs/heads/master | 2020-03-31T15:47:55.583833 | 2018-10-16T02:33:03 | 2018-10-16T02:33:03 | 152,351,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # Generated by Django 2.1.1 on 2018-10-15 00:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0009_remove_categoria_flag'),
]
operations = [
migrations.AlterField(
model_name='codigoproducto',
... | [
"noreply@github.com"
] | ThexCrack10.noreply@github.com |
57dd2c9ed0a23098dd5744524a6738b64b207994 | 5e53250c6f72341d052ca3592301dedaa4aacfe8 | /Backend/FoodTruck/env/bin/pyrsa-decrypt-bigfile | e9e1679977210bff0a61d6fd92b9514a463873ee | [] | no_license | coder46/Uber-Food-Trucks | 3132a5b7d38a2531792618ac8dd4198e0929d8d0 | 6cd65629c451df20104c1ae43626302cb6c1f5e6 | refs/heads/master | 2020-12-14T09:51:02.438960 | 2017-06-21T18:58:29 | 2017-06-21T18:58:29 | 59,014,518 | 1 | 1 | null | 2016-05-22T20:20:11 | 2016-05-17T10:53:51 | Python | UTF-8 | Python | false | false | 246 | #!/root/GameServer/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import decrypt_bigfile
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(decrypt_bigfile())
| [
"faisal.iiit@gmail.com"
] | faisal.iiit@gmail.com | |
a30fe77305034b6938183425ed12f89ba43e1684 | 096be495ae3e995d884f6154c0e5a00348e49d1d | /companies-leetcode/google/arrays-and-strings/plus-one.py | 05ac6dcbe019121c0b43cf48075e1495e4eec2d0 | [] | no_license | JackMGrundy/coding-challenges | b81828efd580934226931735949c1fba1151dfac | 0ef3ef71d75ea20cd3079ad6aa3211f61efb7b7a | refs/heads/master | 2022-12-04T11:28:27.247546 | 2022-11-28T01:57:21 | 2022-11-28T01:57:21 | 163,903,589 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | """
Given a non-empty array of digits representing a non-negative integer, plus one to the integer.
The digits are stored such that the most significant digit is at the head of the list, and each element in the array contain a single digit.
You may assume the integer does not contain any leading zero, except the numb... | [
"jackmgrundy@gmail.com"
] | jackmgrundy@gmail.com |
08bea8286ae5e59331c5743477c15c69f9b9d292 | 55b877071f1dc660dae32bcb7eee6933327318f4 | /accounts/migrations/0003_auto_20211119_2108.py | 6e9e35e6e001cf6dac5cff000d4a0fd91e20c549 | [] | no_license | dnd-hack/backend | 61a18c3f35e8b447b6dfe65e1611b513250a7926 | 0a908b125141a217217dfe160a1367e30aed2c76 | refs/heads/master | 2023-09-02T18:26:41.110359 | 2021-11-20T07:25:36 | 2021-11-20T07:25:36 | 429,919,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Generated by Django 3.1 on 2021-11-19 21:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_auto_20211119_2102'),
]
operations = [
migrations.AlterField(
model_name='user',
name='nickname',
... | [
"julysein723@gmail.com"
] | julysein723@gmail.com |
c4c972137d674256036caab4316d51ab6eed3370 | 6bd5c04d9234233ab16a3cbd871f92b33522c817 | /project/SciProgHF/test/exacorr_exatensor_lambda/test | 296525b51fb1a92ba52cbbdf9899a39f16eb8bbe | [] | no_license | YHordijk/scientificprogramming | 61d897c0a45c267e4b66c786254b47e6da09b56d | c3545807781c5f83424d52ee0163fd2b61f82239 | refs/heads/main | 2023-04-01T01:32:46.561152 | 2021-03-28T17:53:20 | 2021-03-28T17:53:20 | 346,670,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | #!/usr/bin/env python
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from runtest_dirac import Filter, TestRun
test = TestRun(__file__, sys.argv)
f = Filter()
f.add(from_string = 'Final L1amp',
num_lines = 2,
rel_tolerance = 1.0e-9)
f.add(from_str... | [
"42876712+YHordijk@users.noreply.github.com"
] | 42876712+YHordijk@users.noreply.github.com | |
26574308c84e26256aab26abae95b62c2f9142a3 | 83ba5377cb46faac367919af70d5e7f9634aad54 | /pylesson9/lab9(2).py | b7e7f96e97919e1e65c4dd6606c5fccd0b9f0252 | [] | no_license | josephj02233/joseph0426 | 2547c885c6c1162d5bfa4aa7a2c61c82035f0176 | 202bf5a778738d5120464b8376a9ecde596731bf | refs/heads/master | 2020-05-23T10:08:15.497034 | 2017-01-30T03:01:46 | 2017-01-30T03:01:46 | 80,389,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | mylist = ["joseph","ben","hanna","nicole","lala"]
def first(mylist):
for i in mylist:
print(i[0])
first(mylist)
| [
"josephkuo@Josephde-MacBook-Pro.local"
] | josephkuo@Josephde-MacBook-Pro.local |
484dfaad65bf0e7d37f06d6b654e76afa6b3f4ca | 679884a99e45dada95d5206707c625bce7c56535 | /migrations/versions/f580e944c99f_add_security_fields_to_member_table.py | b35b2c6eac0ab740c32c23d3b36a1f4c099b2fc9 | [] | no_license | cgil/trie | 87eaadd43a0348aa5f2ef3b045dd32f4e0170dce | 71a2532855c70302d9dbcb58cecc0ccb62b5ecd2 | refs/heads/master | 2021-12-14T04:08:39.588530 | 2017-08-06T21:56:38 | 2017-08-06T21:56:38 | 57,602,358 | 0 | 0 | null | 2021-12-03T03:17:40 | 2016-05-01T14:45:35 | Python | UTF-8 | Python | false | false | 1,121 | py | """add security fields to member table
Revision ID: f580e944c99f
Revises: c5b44fdcd4c5
Create Date: 2016-06-08 17:22:12.961146
"""
# revision identifiers, used by Alembic.
revision = 'f580e944c99f'
down_revision = 'c5b44fdcd4c5'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('memb... | [
"cgil1210@gmail.com"
] | cgil1210@gmail.com |
8f5e234e6a0017632d62fde22f59b64148ec8075 | 3516632c2279da5cf14464c702b580c049cb6494 | /lecture_3_inheritance/__init__.py | 2f3853f1e605eb0dadd05a2efb29dfc091906248 | [] | no_license | ivn-svn/May2021PythonOOP | 401a0f858946b3df8b93dd74b27d6f0b7f42c7d3 | 9d084dcbc8ff6851a751d537bfdbb5fd940904a0 | refs/heads/main | 2023-07-01T09:13:23.459677 | 2021-08-10T18:10:29 | 2021-08-10T18:10:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | class Person:
def __init__(self, name, age):
self.name = name
self.age = self.set_age(age)
def set_age(self, age):
if age <= 0:
raise ValueError("Age can not be negative")
return age
def sleep(self):
return "I am sleeping"
def __repr__(self):
... | [
"ines.iv.ivanova@gmail.com"
] | ines.iv.ivanova@gmail.com |
73a4f67632962c643879b6829a97c06adc540872 | 5e3ebc83bc3fe2f85c34563689b82b1fc8b93a04 | /google/ads/googleads/v5/services/types/customer_service.py | 5af3161dc3f4f93dd24c34b5537d8fbf46d71867 | [
"Apache-2.0"
] | permissive | pdsing/google-ads-python | 0ce70227cd6bb13a25cd13de0ca05c2636279ecd | ee2c059498d5679a0d1d9011f3795324439fad7c | refs/heads/master | 2023-05-04T18:39:57.412453 | 2021-05-21T16:38:17 | 2021-05-21T16:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,157 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | pdsing.noreply@github.com |
70a13b86cb33399e492395b061b0bff4685da789 | c5dfee744a946d09e889ba2ab76ceeb388bb270e | /lecopain/controllers/__init__.py | d392a0b76ef751f47bf8e3be4dc22e033f1e704f | [] | no_license | pigalon/lecopainPi | 665cc3ac17b7b6af5cc26b7bdbc055b15f3484d1 | 6fddf002290883524523598392935370465b0314 | refs/heads/master | 2023-02-21T23:11:30.960798 | 2021-02-13T19:55:45 | 2021-02-13T19:55:45 | 171,766,010 | 0 | 0 | null | 2023-02-15T23:45:10 | 2019-02-20T23:35:43 | Python | UTF-8 | Python | false | false | 79 | py | from flask import Blueprint
controllers = Blueprint('controllers', __name__)
| [
"pigalon@gmail.com"
] | pigalon@gmail.com |
d35e86abe3e8aef5654aeb497b85f223d6392106 | 360b6e66bf512b1ad4edbdf30adf0563622b8630 | /declensions.py | 6bca8456646cc793b1fc73a7a7402d960b31d17c | [] | no_license | wilson-ben/Latin | 07f4f85b994c1ef906bcb4ee6302aa20b9ebafd5 | 8599f5f81775bea681d594822cfc86212a553cb9 | refs/heads/master | 2020-03-31T05:20:42.482920 | 2018-10-07T13:13:32 | 2018-10-07T13:13:32 | 151,942,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | import inflect
import requests
from bs4 import BeautifulSoup
# Pull from www.thelatinlibrary.com/decl.html
# https://en.wiktionary.org/wiki/Category:Latin_appendices
# Not currently working.
def declenFunc():
dec_choice = input("Declension Number [1-5] : ")
if int(dec_choice) <= 5:
inflect_... | [
"bjwilson@protonmail.com"
] | bjwilson@protonmail.com |
ef4c0bc53bd6c1439cc2eaefeb4ca438cf482474 | bd178784528af48f377d0cbfba6cdb73438a4bb6 | /wscript | 91440deff0a8674d2ca9f391e72abf5615d036de | [
"MIT"
] | permissive | seem-sky/htmlscanner | f8c7146d259a3e2498ea9fc49ab40eca6b4e60d5 | f7cbb4d1d3ff9e8729cd864b8746dcc4a065629c | refs/heads/master | 2021-01-12T22:21:01.390314 | 2012-06-30T22:14:23 | 2012-06-30T22:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | from shutil import copy
srcdir = '.'
blddir = 'build'
VERSION = '0.0.1'
def set_options(opt):
opt.tool_options('compiler_cxx')
def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.target = 'htmlscanner'
... | [
"peter@jbaron.com"
] | peter@jbaron.com | |
8721ab24b3f8aa47415bbcf03d6be6c57135b38c | 4e144702ff35467136e6a0167c98b49c409d2c98 | /opensfm/dataset.py | c0056ae99279f91cca094ac2ebb34454df949851 | [
"BSD-2-Clause",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"GPL-3.0-only",
"Python-2.0"
] | permissive | YangJae96/KMU_Visual-SLAM | 50f894a86431e5257670f7a01905eceb4222e607 | 8fbbcdda58a5b349a344b580d22d13ab69ff53cc | refs/heads/master | 2022-12-08T15:51:57.200744 | 2020-03-18T07:05:30 | 2020-03-18T07:05:30 | 246,765,583 | 0 | 0 | BSD-2-Clause | 2022-11-22T04:40:03 | 2020-03-12T07:02:19 | JavaScript | UTF-8 | Python | false | false | 14,897 | py | import cv2 as cv
import os
from os.path import abspath, join, dirname
import copy
import logging
import argparse
import time
import sys
import numpy as np
import errno
import io
import json
import gzip
import pickle
import six
import networkx as nx
from opensfm import extract_metadata
from opensfm import detect_featur... | [
"savejwy@gmail.com"
] | savejwy@gmail.com |
3094fe984a24bf450f9bc8dcd44759ae5508af34 | b96d89f0c96cca14dee4746435cfb43cf307a05e | /library/api/db.py | d4a1162a1225bb026bc69df156e3b6b28dd7064a | [
"MIT"
] | permissive | SuperTucano/TcloudServer | 60b4b20ba1f67d3717dea7343744d18df7c3aa73 | 3b1edab9b16b21e106650b2c433df19ce123e2cc | refs/heads/master | 2023-03-19T07:54:07.688416 | 2021-03-04T02:47:33 | 2021-03-04T02:47:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | from contextlib import contextmanager
from datetime import datetime
# from flask_caching import Cache
from flask_sqlalchemy import SQLAlchemy as BaseSQLAlchemy
# from redis import StrictRedis
from library.api.exceptions import SaveObjectException
# from public_config import REDIS_HOST, REDIS_PORT, REDIS_DB, REDIS_PAS... | [
"mobile#3"
] | mobile#3 |
c9d7b717d2f910039ac2b9cd61e8e8c56ccd5d80 | 7cabf218f6fe777ed608c4db3597a5f1fe2c81db | /libs/boxes/blob.py | b3f165c7e6a9219264a5d82ae3b452e275029f3e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | choheemun/FastMaskRCNN | 6a71fde7cf46c3a2648ada3c82e6c6bd7fdba8b6 | bd97f02bb949dba8a61040c57e1a548351478716 | refs/heads/master | 2022-12-02T13:19:53.093607 | 2020-08-21T17:03:07 | 2020-08-21T17:03:07 | 288,670,057 | 0 | 0 | Apache-2.0 | 2020-08-19T07:58:57 | 2020-08-19T07:58:57 | null | UTF-8 | Python | false | false | 1,582 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Blob helper functions."""
import numpy as np
import cv2
from ..fast... | [
"shangchong90@gmail.com"
] | shangchong90@gmail.com |
42c7916877fd0a005e89532588c3b3dc34e60e58 | 548ee01beaed5f8da3433c33e21d6b362394fb97 | /Work/sadovod_7.py | e1ea032c9d77ec17d850ee96e39163177db2b8cc | [] | no_license | avto727/Parser_Python | fb5a50f685747f24ec940be68bb99d3aa9ea6e60 | e9a015ffda35f6bb47cf63aa792243064ec01cb1 | refs/heads/master | 2021-01-23T20:21:54.376540 | 2017-10-25T19:59:14 | 2017-10-25T19:59:14 | 102,853,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,860 | py | import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
from selenium.common.exceptions import ElementNotVisible... | [
"avto727@bk.ru"
] | avto727@bk.ru |
5570e3a8fbc46a067126b5eb098b3395a917270a | 72f55c6dd922f36caa22fd14df4ba081f0c647bd | /onnxruntime/python/tools/quantization/registry.py | 26c7daf299e046762ce87789bcc781e3dda29862 | [
"MIT"
] | permissive | mrshu/onnxruntime | dd78a19d878ca2307190267bef6a8dc612f03b11 | 335edaa2c485ba0dec877bf4cdbd652e2d5d105c | refs/heads/master | 2023-03-29T18:00:02.136409 | 2021-03-17T17:30:06 | 2021-03-17T17:30:06 | 348,849,243 | 0 | 0 | MIT | 2021-03-17T20:54:03 | 2021-03-17T20:54:02 | null | UTF-8 | Python | false | false | 2,300 | py | from .quant_utils import QuantizationMode
from .operators.base_operator import QuantOperatorBase
from .operators.qdq_base_operator import QDQOperatorBase
from .operators.matmul import MatMulInteger, QLinearMatMul
from .operators.attention import AttentionQuant
from .operators.embed_layernorm import EmbedLayerNormalizat... | [
"noreply@github.com"
] | mrshu.noreply@github.com |
1c60b60e915d1cbcec983ace5b6bf441fb4fd2da | 2dbb33661981c6dd0395f94b72640373afaaec9e | /test_vgg16.py | 629786b1f633a04c349e389c04082bb038f4287a | [] | no_license | drewlinsley/causal_clicktionary | 7dfe31e118665a2bcd6ed60559c581f2ddcafa56 | 09b1eb2439d6ad2ae32e4b121a9909f562c34423 | refs/heads/master | 2020-12-30T15:54:45.032415 | 2017-06-12T18:41:22 | 2017-06-12T18:41:22 | 90,798,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,628 | py | import os
import time
import re
import sys
import tensorflow as tf
import numpy as np
from argparse import ArgumentParser
from ops.data_loader import inputs
from settings import config
from models import baseline_vgg16 as vgg16
from glob import glob
from ops.tf_loss import class_accuracy
# Train or finetune a vgg16 w... | [
"drewlinsley@gmail.com"
] | drewlinsley@gmail.com |
0e8e463058c35e6a3e9ce2433aee64d9bacc0aaa | 431ade33986e3294f1bf793ef1aa590b15721a84 | /apps/members/views.py | 079457b0f6fe3db44991925d7e773c3d004fb95f | [] | no_license | seun-otosho/DjangoProject | f7332386e664058ff40df351ee08730f8d13cce2 | 6c82a0b0d4bad5a3bbfc1cb4daf222c5373427dd | refs/heads/master | 2023-07-16T06:18:23.082721 | 2021-09-05T03:09:42 | 2021-09-05T03:09:42 | 402,141,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | """Members app views"""
import json
from typing import Dict, Any
from django.forms.models import BaseModelForm
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
from django.views.decorators.http import require_http_methods
from django.views.generic import ListView, Cre... | [
"toloruntotosho@gmail.com"
] | toloruntotosho@gmail.com |
800168913aa297a0b123c6eb142f54bc47d5751d | bc263109d4ef4b5e6ff54f406c97156dea155558 | /hash-tables/missing-number-two.py | 198ebe45baad93079deb53910fbdb517b652817f | [] | no_license | ipeksargin/data-structures-algorithms | 0be048780f60174675d477b421d7cb2f8c376a56 | 73f4b519d849c44de2886e21776507d0e32349c3 | refs/heads/master | 2021-01-15T01:56:07.448018 | 2020-05-09T21:12:48 | 2020-05-09T21:12:48 | 242,839,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | #Time complexity is equal to O(n) (sorting function is ignored)
arrayOne = [7,2,5,4,6,3,5,3]
arrayTwo = [7,2,5,3,5,3]
def missingNumber(arrayOne, arrayTwo):
table = {}
#table is a dictionary and is created to store values of arrayOne.
for i in range(len(arrayOne)):
# if value already in the dictionary.
... | [
"noreply@github.com"
] | ipeksargin.noreply@github.com |
fbf27b9ff9f266361e7be470de1a3b47aba8c336 | e925d35110a2a7ff8579f97eb673f24f98bf63c7 | /misc_tools.py | 1595c4b310d93894b52d65a73e4ee5e2c0175c12 | [] | no_license | SiweiGong/mobile_robot_framework | b0918bba16cb2898a0f69f4e854c6a4fe3c6e0d6 | aca7e56152069a970a07288178d6be998b1f7938 | refs/heads/master | 2020-12-02T17:27:45.146574 | 2020-02-01T08:37:20 | 2020-02-01T08:37:20 | 231,074,491 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py |
import math
import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse
import numpy as np
def angle_diff(angle1, angle2):
return np.arctan2(np.sin(angle1-angle2), np.cos(angle1-angle2))
def error_ellipse(position, sigma):
covariance = sigma[0:2,0:2]
eigenvals, eigenvecs = np.linalg.eig(covar... | [
"gongsiwei1993@gmail.com"
] | gongsiwei1993@gmail.com |
91c7da877e877547098bf3d946bea2e2c5591e98 | 76f456fd719363695384347e88e482f3c3e6b756 | /site_scons/site_tools/compilation_db.py | be040a84d0e71cdfab2d3b8ae157f773f5bb6751 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | Silentd00m/lz4_stream | 11425866735d97cd259f3fbd19cde04b8c93dcb1 | dd7eaf580338bb15502b34987672eec87bbfd6a6 | refs/heads/master | 2021-09-01T12:52:28.308433 | 2017-12-27T03:31:32 | 2017-12-27T03:31:32 | 115,476,783 | 0 | 0 | null | 2017-12-27T03:20:48 | 2017-12-27T03:20:47 | null | UTF-8 | Python | false | false | 5,702 | py | # Copyright 2015 MongoDB 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 agreed to in writing, sof... | [
"laudrup@stacktrace.dk"
] | laudrup@stacktrace.dk |
28c7ad7cfbee7406630c4df8f7f5f21f5dc1b433 | e3a2b6499a8f094f18366b1183448925728a206f | /test/integration/simio_tables.py | bc0aac20c23eb6999b98017749cdb60f02922194 | [
"MIT"
] | permissive | mielgosez/simio-lisa | 01b394ab7ce333ad3b1d72a5ea9b1a518a253c2f | c0eb8d4e2a44e9cf4ed7bd7af4ab5cbff17daebc | refs/heads/main | 2023-08-16T01:47:15.605192 | 2021-09-30T16:22:13 | 2021-09-30T16:22:13 | 400,244,116 | 0 | 0 | MIT | 2021-09-30T16:22:35 | 2021-08-26T16:58:49 | Python | UTF-8 | Python | false | false | 2,199 | py | import os
from simio_lisa.simio_tables import SimioTables
def test_smoke_output_tables():
env_project_path = os.environ['SIMIOPROJECTPATH']
env_project_file = os.environ['SIMIOPROJECTNAME']
env_model_name = os.environ['MODELNAME']
env_export_dir = os.environ['EXPORTDIR']
if not os.path.exists(env_... | [
"mielgosez@gmail.com"
] | mielgosez@gmail.com |
0cdbf24a9061d6ee5c34d89b548326daf6223a2b | 1446727878165dbce3fa447922f5ba7de93ca700 | /rewrite_handler/parseFiles.py | 83289ed600942a5dbf77088a80541fc9231f5f56 | [] | no_license | ssrg-vt/sail2pvs | 3df218d17ad8e7a0043ade0f37be0642bcf780cf | 7d0c19440f375fd7bffee651254e5e20370f1bd6 | refs/heads/master | 2020-05-09T08:30:02.595080 | 2019-04-12T11:34:04 | 2019-04-12T11:34:04 | 180,994,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,687 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import re
import copy
from . import util
from . import parseDatatype
from . import parseFunction
from typing import List, Tuple
S_STATE, S_DATATYPE = range(2)
function_dict = {}
type_dict = {}
type_dict['list'] = (['T'], {'cons': '[T,list[T]]', 'null': ''})
... | [
"xxan15@vt.edu"
] | xxan15@vt.edu |
4d6e1be9f6135ef80a446ec3e15a01ac3270fa2e | 639130874cfa5ea1a696c8561b35e65f8d8c7778 | /yeti/core/entities/incident.py | ff49cd1205433fab39e0d914fb4a063875568080 | [
"Apache-2.0"
] | permissive | yeti-platform/TibetanBrownBear | 1e40ff7de97141f31f022cf4542a17fb64a0814c | 902db77e0f9dce7b8870ed653a8f7670864d146d | refs/heads/master | 2023-02-22T14:52:37.030298 | 2022-10-28T15:52:30 | 2022-10-28T15:52:30 | 114,285,124 | 11 | 11 | Apache-2.0 | 2023-02-16T06:10:46 | 2017-12-14T18:49:32 | Python | UTF-8 | Python | false | false | 832 | py | """Detail Yeti's incident object structure."""
from stix2 import CustomObject, properties
from .entity import Entity
@CustomObject('x-incident', [
('x_internal_references', properties.ListProperty(properties.StringProperty)),
('name', properties.StringProperty()),
('description', properties.StringPropert... | [
"tomchop@gmail.com"
] | tomchop@gmail.com |
62f1abdae4762392bf5b391e0b0155daf648a940 | d181c2d529d0e01359c9a7f4d3d2de97bcb9ab42 | /tutorial/spiders/nyu_spider.py | 1266efb77a5e9d7bf72a53ab028a88141f60faf3 | [] | no_license | gerardoxia/crawMyprof | 6c2ce98aecbf41c22e2c041a078a00f7080ab841 | 979e8dea99c16e25c656e503ef0228211c3a5f9a | refs/heads/master | 2021-01-10T11:20:13.137789 | 2016-04-02T19:18:36 | 2016-04-02T19:18:36 | 53,879,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | import scrapy
import re
from tutorial.items import ProfessorItem
class nyu(scrapy.Spider):
name = "nyu"
start_urls = [
"http://www.cs.nyu.edu/dynamic/people/faculty/",
]
def parse(self, response):
for index in range(1,50):
str1=".//*[@id='wrap']/div/div/div[2]/div/div/div[3]/ul/li[... | [
"gerardo.xia@outlook.com"
] | gerardo.xia@outlook.com |
b3d228c100561deccceefc1d80a27d2f3d80c0f2 | 5362ab432a03da3951d77d5c829ae952790f7f23 | /algm_682.py | bd3519ad5fa295d690f0400691e40c3c930d3c83 | [] | no_license | Xiweiy/leet | 5db77f9d8684476160a5f6940f211735745f1007 | 77e2693275bda9a206671ec1d2679910a9fb0fda | refs/heads/master | 2021-01-23T14:04:56.812917 | 2018-04-30T00:42:26 | 2018-04-30T00:42:26 | 58,281,993 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | class Solution(object):
def calPoints(self, ops):
history = []
total = 0
for i in ops:
try:
history.append(int(i))
except:
if i=="C":
history.pop()
elif i=="+":
... | [
"xiweiyan@Siddharths-MacBook-Pro.local"
] | xiweiyan@Siddharths-MacBook-Pro.local |
bc11f57f9885605837ee9220756d23631744cd5f | 877e698447f4371b5d43420fd281ecf60520f660 | /pyproject/student_grade.py | 792907e34abb269980b097c19ac239a5e93ae262 | [] | no_license | ankitm4/Contribute- | 20e1069ae272adc387ba5601f534b4b95ea3c93c | 4cfb5de30bfa1803ca156b139a359339f980ecb3 | refs/heads/main | 2023-08-16T05:34:17.718113 | 2021-10-07T12:58:39 | 2021-10-07T12:58:39 | 412,424,071 | 0 | 3 | null | 2021-10-05T16:12:05 | 2021-10-01T10:33:19 | Python | UTF-8 | Python | false | false | 703 | py | english = float(input(" Please enter English Marks: "))
math = float(input(" Please enter Math score: "))
computers = float(input(" Please enter Computer Marks: "))
physics = float(input(" Please enter Physics Marks: "))
chemistry = float(input(" Please enter Chemistry Marks: "))
total = english + math + computers + p... | [
"sabbugiri50@gmail.com"
] | sabbugiri50@gmail.com |
d30464daed017260d2c1af1c80a769545555f9dd | 66cff6c4ad4c5fd6ecdfb723614f0475e27a5b38 | /akshare/obor/cons.py | 7193fe79b7a18b2fb8aed9523a6bb5d9526bab10 | [
"MIT"
] | permissive | ifzz/akshare | a862501b314f2b5aeab22af86771dbeee34cfdb8 | 70cf20680b580c8bacab55a0b7d792d06e299628 | refs/heads/master | 2022-12-02T18:36:33.754645 | 2020-08-24T05:16:42 | 2020-08-24T05:16:42 | 289,834,570 | 1 | 0 | MIT | 2020-08-24T05:17:09 | 2020-08-24T05:17:09 | null | UTF-8 | Python | false | false | 8,220 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2019/9/30 13:58
Desc: 一带一路配置文件
"""
countries_dict = {
'obor_report_all': [
'中国',
'蒙古国',
'韩国',
'新西兰',
'东帝汶',
'新加坡',
'马来西亚',
'泰国',
'印度尼西亚',
'菲律宾',
'文莱',
'柬埔寨',
... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
663db3904d257f8945a91a4d06debc05572251ec | da622b0923c94e9fa6e52269492fb41b0c43df33 | /climate_app.py | b78aaa69d0d438fbe06b3c47952c83e0369603f3 | [] | no_license | ronbfernandez/sqlalchemy-challenge | e7a00935600ca8fd4fe6d3dbc800f908e7f139ad | 2f3d6187db218fb6c169dc2d4f3f9ea8deadca1a | refs/heads/main | 2023-04-07T01:52:30.754464 | 2021-04-16T19:27:33 | 2021-04-16T19:27:33 | 357,422,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,847 | py |
######################
# Import dependencies
######################
import pandas as pandas
import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
import datetime as dt
#Import Flask
from flask import Flask,... | [
"ronbfernandez@gmail.com"
] | ronbfernandez@gmail.com |
b208c49f7a5f1a04b28d5a11c3bd6d1d73cd42b2 | 3cd5e6706a7638bdc72750bfde977c4292e32d6f | /ch4/mysite/migrations/0003_product.py | 9fa04dbd7d41b371effecca17126a39408dbfb3c | [] | no_license | kairulin/Study-Django | 149a86227ae4179da3026186ae634c3167b621c6 | b478f96c349eb64286f05d2d567e510141c7575f | refs/heads/master | 2022-09-30T06:40:41.687626 | 2019-07-14T14:17:31 | 2019-07-14T14:17:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # Generated by Django 2.2.2 on 2019-07-01 09:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mysite', '0002_auto_20190701_1716'),
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
... | [
"10646033@ntub.edu.tw"
] | 10646033@ntub.edu.tw |
77b6e017c7e358defb524581e88e75f906ae18f7 | a097ecf40fee329cfa9e3f77e4b6e9e29a8f148a | /20_section/20_2.py | a6f1bce3a75f2d2201078b7309e5b1b92534cbb6 | [] | no_license | FumihisaKobayashi/The_self_taught_python | 1e7008b17050db3e615c2f3aa68df2edc7f93192 | 329d376689029b75da73a6f98715cc7e83e8cc2c | refs/heads/master | 2021-01-06T16:04:13.382955 | 2020-07-28T14:39:24 | 2020-07-28T14:39:24 | 241,389,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import urllib.request
from bs4 import BeautifulSoup
class Scraper:
def __init__(self, site):
self.site = site
def scrape(self):
r = urllib.request.urlopen(self.site)
html = r.read()
#unrlopen関数はWEBサイトのリクエストを行う。
#response.readメソッドを呼ぶとHTMLデータが、Responseオブジェクトから返す。
| [
"ruruku717@gmial.com"
] | ruruku717@gmial.com |
80d15851e50886a0953750ccc365cfa788a5dc34 | dfac2f15641a99278ae2e8549362f9fe05cbd75b | /PSET 2/paying-Fixed.py | 67c9849655c8e4950d81f76fd7ba6417fd9330fa | [] | no_license | Srishruthik/MIT-6.001x | a9dc5cde6be91902a65dee486c955f370dba56ee | 47731e6fc3937c0ff199928f15c534b11507d0ea | refs/heads/master | 2022-12-12T07:16:18.052947 | 2020-09-08T22:40:19 | 2020-09-08T22:40:19 | 281,755,489 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | balance = 320000
annualInterestRate = 0.2
current_balance = balance
monthlyinterest = annualInterestRate / 12.0
lowerBound = balance / 12
upperBound = balance * ((1 + (annualInterestRate / 12.0)) ** 12) / 12
while abs(balance) >= 0.01:
balance = current_balance
current_payment = (lowerBound + upperBound)/2.0... | [
"68618564+Srishruthik@users.noreply.github.com"
] | 68618564+Srishruthik@users.noreply.github.com |
b7e07d3962e41d243b3037ca5f0f2db1acfe6d78 | cc53c3d4df1feea254c44defac74fb5e86d8bbd8 | /schedule/schedule/tasks.py | 1aab91a1cafe8fa417b1f043b9127394e799f323 | [] | no_license | Maxbey/schedule-backend | 2fd82ea7627ec7e7671b58425100c07bf3924245 | 5013520ea79a7a3aab5b1d2dddbe55dff380a133 | refs/heads/develop | 2020-04-05T09:16:48.377689 | 2017-10-05T13:54:06 | 2017-10-05T13:54:06 | 81,668,153 | 0 | 0 | null | 2017-10-05T13:54:07 | 2017-02-11T17:13:30 | Python | UTF-8 | Python | false | false | 287 | py | from datetime import datetime
from celery import shared_task
from .builder import ScheduleBuilder
@shared_task
def build_schedule(date, term_length):
date_instance = datetime.strptime(date, '%Y-%m-%d')
builder = ScheduleBuilder()
builder.build(date_instance, term_length) | [
"mbeiner@crystalnix.com"
] | mbeiner@crystalnix.com |
5b7111b5f571a5291d0d691459eb3795303df796 | 55b57d64ec547869835334318f3059fbb507558c | /Fred2/Data/pssms/tepitopepan/mat/DRB1_1491_9.py | 529f9822dcb55f2f590e83101fb86aceb8378059 | [
"BSD-3-Clause"
] | permissive | FRED-2/Fred2 | 9845f6678d4011cb746c7a5a6f283eea68077a02 | b3e54c8c4ed12b780b61f74672e9667245a7bb78 | refs/heads/master | 2021-07-12T05:05:54.515427 | 2020-05-25T06:56:25 | 2020-05-25T06:56:25 | 16,275,425 | 42 | 35 | null | 2021-07-07T12:05:11 | 2014-01-27T10:08:11 | Python | UTF-8 | Python | false | false | 2,175 | py | DRB1_1491_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.98558, 'I': -0.014418, 'H': -999.0, 'K': -999.0, 'M': -0.014418, 'L': -0.014418, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.98558, 'V': -0.014418, 'Y': -0.98558}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, ... | [
"schubert@informatik.uni-tuebingen.de"
] | schubert@informatik.uni-tuebingen.de |
1bb9536caf5d22ac9551ca39916696001cf2e8f3 | c32a96bb06f46d4519f6db0ef6f4051491f007d3 | /day_8/puzzle.py | eba7f668934f4d1d0d6a974915ee431ff5e72507 | [] | no_license | noMad1717/aoc_2020 | ae01594a2b5a8483ad637957d4f8de1f449dfbae | 4741eb74990f370c0b993ee94decacd6cfda6973 | refs/heads/master | 2023-02-10T06:05:55.718854 | 2020-12-30T19:02:36 | 2020-12-30T19:02:36 | 317,627,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | """
Advent of Code 2020 - Day 8
"""
import util
def parseInstruction(inst):
parts = inst.split()
return parts[0], int(parts[1])
def executeInstruction(action, offset, nextInst, acc):
if action == 'nop':
return acc, nextInst + 1
elif action == 'jmp':
return acc, nextInst + offset
... | [
"erik.jonsson17@gmail.com"
] | erik.jonsson17@gmail.com |
91cec64cdb46a995121bc7bb0615b910cd8f8f32 | dda3bece634321edb4cfb6483c95eac83ca7cf35 | /lutin_ege.py | 7d34eb2a4b8f1534b292a524f901a4d08860f381 | [
"Apache-2.0"
] | permissive | BlenderCN-Org/ege | 6a6bf47b5f1b5365f28320ef24541f1f6fdf111d | 73558e63ec485e9e45015bf46ee4302f58fc8ebc | refs/heads/master | 2020-05-23T01:11:27.473726 | 2016-10-23T13:02:20 | 2016-10-26T21:47:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | #!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
def get_type():
return "LIBRARY"
def get_desc():
return "Ewol Game engine (based on bullet lib)"
def get_licence():
return "APACHE-2"
def get_compagny_type():
return "com"
def get_compagny_name():
return "atria-soft"
def get_maintaine... | [
"yui.heero@gmail.com"
] | yui.heero@gmail.com |
653f76c90b37e1c287509ee72476693d05375c91 | ceb8047b5c18a558eccf983ab6ac0b4340040f84 | /OpenCV_Python/pillow_crop.py | 80619d24cd5adcfad3053ba148e0fb97e634bef5 | [] | no_license | ksehan89/LinuxGUIEx | 9f8b97d86d88308db84f8ebf2185434d92670927 | 9728712cc70cceac5707bf31b081aa32f0a29f10 | refs/heads/master | 2020-07-16T11:12:10.673977 | 2019-09-09T09:28:39 | 2019-09-09T09:28:39 | 205,778,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from PIL import Image
# image open
im = Image.open('data/lena.jpg')
cropImage = im.crop((100, 100, 350, 350))
cropImage.show()
# save image to as .JPG
cropImage.save('data/lena-crop.jpg')
| [
"ksehan89@naver.com"
] | ksehan89@naver.com |
dda3cb403939ba5b2472fd6fcdc1003cb2dbcb42 | 4410bb34f5d210892fbdf225df2932892ad1d5c7 | /params.py | 6c4cda21c13bb572e96346821905b93fb3d8d983 | [] | no_license | hotpepper/CLION | 5a3e45cdd6b5dc06362187c30fc13c4de5e531ff | 8c2795d32edf55024cb8d87a5a93cd0444004034 | refs/heads/master | 2021-01-19T05:33:12.331720 | 2019-11-07T22:14:08 | 2019-11-07T22:14:08 | 87,434,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | from collections import defaultdict
__author__ = 'SHostetter'
# set up base globals
DB_HOST = # database host
DB_NAME = # Database
WORKING_SCHEMA = 'working' # 'working'
FINAL_SCHEMA = 'public'
ARCHIVE_SCHEMA = 'archive'
LION = 'lion'
NODE = 'node'
RPL = 'tbl_rpl'
RPL_TXT = 'RPL.txt'
VERSION = '18d' # '15b'
PRECINC... | [
"aasere@gmail.com"
] | aasere@gmail.com |
600bcfc54ec52a7e9ed018b6588b6f80e757078a | ec4eebc7be09002d1128d695b0b8eccb4296286c | /templates/library_project/hooks/post_gen_project.py | e75e0aa687d118230ce7f0f7979c63964ccebf40 | [
"MIT"
] | permissive | cmstead/python-automation | b11288b85b641aec0c12e32ff6dceabb85e13617 | 4238ebf76b2e0ef62e34f360c47447a775264b73 | refs/heads/master | 2023-03-27T13:09:11.244132 | 2021-04-02T22:18:13 | 2021-04-02T22:18:13 | 295,536,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from os import system
system("pipenv install --dev") | [
"cmstead@gmail.com"
] | cmstead@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.