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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5df53f8f08012827a1681f36a0798d9aada7ba7 | 36c53e8c914069832097fefe4d363a73947e805a | /gen_bert_index_data.py | 75d0e62cfe04baa74264737ab38ebf8288c269ef | [] | no_license | lvbu12/Bert-Training-and-News-Classification | 4a8385481e33c26a973ba863e73b9e2c72bad6ac | e3e14350d153a9d9350f92fe126450ae7c54ab88 | refs/heads/master | 2020-04-27T17:25:53.215961 | 2019-03-09T13:18:14 | 2019-03-09T13:18:14 | 174,518,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | # -*- coding: utf-8 -*-
from utils import get_chars, get_labels, flatten
import random
import collections
import os
import sys
class Dataset(object):
def __init__(self, filepath, char2idx):
self.data = open(filepath, 'r', encoding='utf-8').readlines()
self.char2idx = char2idx
self.chars ... | [
"lvbu_12@163.com"
] | lvbu_12@163.com |
1dedcfec3e6ba9a7ffcf495e0b17fc800287de3a | 94487c5ca4018dbcc614213f9b8ad1e741c5f967 | /weather_api/project_api/migrations/0001_initial.py | 564c245a9fe5054359cd0e736e2fd2024380f5d1 | [] | no_license | akanuragkumar/weather-api | 3c1ebe9d8e6d33caf14bdbf0dff7de3193cb7926 | 6e83b892f9f0a95a676c376bdd9587b1a4e67085 | refs/heads/main | 2023-05-09T10:01:15.642353 | 2021-06-08T03:14:53 | 2021-06-08T03:14:53 | 374,013,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | # Generated by Django 3.2.4 on 2021-06-06 03:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import jsonfield.fields
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(setti... | [
"akanuragkumar712@gmail.com"
] | akanuragkumar712@gmail.com |
2b976c4b62cef478a9116f1d5967dc385a9ff6f8 | c6a35b1c97b56e7364a87fe4d2da6acf2b2b315b | /accounts/urls.py | 464772dca54b980757b456a7a8a5fcde9a07bf11 | [] | no_license | Youssefmesalm/Back | 45727c28413b4b280d76a2c93b3ca27907267204 | 9d1af2c51218bd8ba3d8e732610776ab6efb95b4 | refs/heads/main | 2023-05-02T01:57:12.764221 | 2021-05-18T20:01:04 | 2021-05-18T20:01:04 | 348,503,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from rest_framework import routers
from .api import UserViewSet
router = routers.DefaultRouter()
router.register('api/user', UserViewSet , 'users')
urlpatterns = router.urls | [
"youssefmesalm@yahoo.com"
] | youssefmesalm@yahoo.com |
31bf08beefc0a527e97eba8fee68c0b2897a73f2 | 2926780ac13b74882b906d920968c00c48d7b181 | /simple_social_clone/simplesocial/posts/templates/posts/templates_project/templates_app/templatetags/my_extras.py | dc364df1917ba3813eff6e98ee1d4eccb8226e33 | [] | no_license | SodimuDemilade/my_space | 58aaf42701d277cd75de8fef64a55ce5b8f032b3 | 11918964bb382667746a63158869b2dd75bacaac | refs/heads/master | 2023-06-23T04:35:03.784930 | 2021-07-13T21:46:44 | 2021-07-13T21:46:44 | 385,739,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from django import template
register = template.Library()
@register.filter(name='cut')
def cutt(value, arg):
"""
This cuts out all values of "arg" from the string!
"""
return value.replace(arg, '')
# register.filter('cut', cutt)
| [
"demisodimu@gmail.com"
] | demisodimu@gmail.com |
ff3c86b1e31beb620025b6c5cc86da0482934f65 | 6e61b7ce4357f888cd0d46239a830548e5d10f89 | /Code/sam/python/lab10-simple_calculator.py | cfd11a50e626357a4769854092234083a505f6fb | [] | no_license | PdxCodeGuild/20170724-FullStack-Night | a42f612e686a906f312224dcd5d9c55cbcb4a81e | 24a6c9db8d65cf254e1b5a5d55dd00711065c048 | refs/heads/master | 2021-01-01T17:39:32.970027 | 2017-12-04T22:26:24 | 2017-12-04T22:26:24 | 98,124,598 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 799 | py |
i = True
while i:
user_operator = input('Choose an operator or type "done". ')
if user_operator == 'done':
i = False
print('Goodbye!')
break
else:
number_1 = float(input('What is the first number? '))
number_2 = float(input('What is the second number? '))
i... | [
"samanthagmoad@gmail.com"
] | samanthagmoad@gmail.com |
f62f9da25416f82c08df684907a3194f8a6ad1bd | fb35b1b84936483f7be308942dfbce361673ce0c | /app.py | 5e4cc69ed13a417411ec49cd8813b4ee40bae225 | [] | no_license | kudddy/aiow2v | a6efca27fd10e0354639652cf67473d1ef48bdc2 | c25b2a71749f36fa42f9e6b71abf4d2071fc313f | refs/heads/master | 2023-06-06T13:25:32.123614 | 2021-06-24T14:54:47 | 2021-06-24T14:54:47 | 379,942,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | import logging
from types import AsyncGeneratorType, MappingProxyType
from typing import AsyncIterable, Mapping
from aiohttp import PAYLOAD_REGISTRY
from aiohttp.web_app import Application
from aiohttp_apispec import setup_aiohttp_apispec, validation_middleware
import aiohttp_cors
from handlers import HANDLERS
from ... | [
"Zx0996750"
] | Zx0996750 |
7ad5e688b276555d2a1658f6873f0d4734303e43 | 886bde6c3515503f807ee535b36f84dc3aa9dc9d | /scripts/my_prepro_labels.py | dc9a2f88eda9b071bbbebeaae2b3e6deabd32a02 | [] | no_license | HELL-TO-HEAVEN/ChangeCaptioning | e29a6669f320afc0d071e4d5d38e4552bed9c3dd | 18acadcdb30fef34068b4a480b1bb88550ba4e81 | refs/heads/master | 2021-02-28T07:23:42.670785 | 2019-06-01T05:43:37 | 2019-06-01T05:43:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,441 | py | """
Preprocess a raw json dataset into hdf5/json files for use in data_loader.lua
Input: json file that has the form
[{ file_path: 'path/img.jpg', captions: ['a caption', ...] }, ...]
example element in this list would look like
{'captions': [u'A man with a red helmet on a small moped on a dirt road. ', u'Man riding a... | [
"37833335+Gospokid@users.noreply.github.com"
] | 37833335+Gospokid@users.noreply.github.com |
df741301da60c8b876eab10d4f48c04cd6520f23 | 1d68b987357a9117dffdc8509a899d06a76ce10d | /topk-evaluate.py | 2f750b1c930550bc6690f3d7f20b3e7953395025 | [] | no_license | LibreChou/cs224u | b4658aeabbb9dba7fea87dbb8f4eb9d40e3a252d | 4cb6f44e28cca6c3320ad86fc43b9e5ec701dbaf | refs/heads/master | 2021-05-30T07:37:52.475530 | 2015-06-10T23:16:34 | 2015-06-10T23:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,642 | py | #!/usr/bin/env python
"""
Usage: %(program)s model_prefix data_dir
Run model.
model_prefix should be something like "wiki_en" corresponding to the
filename prefix of the ESA model files, which must be in the current directory.
data_dir should be the base folder for the newsgroups data.
Example:
%(program)s --sa... | [
"mpercy@cloudera.com"
] | mpercy@cloudera.com |
edf007e0e120a8239499496e9b3be1ab66d056c3 | 6075856d8dd85af8c05fa6bb21bb2ed3070fb9e8 | /sql_load.py | ba47a7f3c88ba68c7fd187344bff2210856fbd9b | [] | no_license | jason82603/weather_python | a1a671f04f9f2544a0c15ea26a3b34e3041117ee | fd86481bce0f3a562b5294dc195a86f8764f9afa | refs/heads/main | 2023-07-16T02:37:07.847715 | 2021-08-15T15:30:45 | 2021-08-15T15:30:45 | 396,284,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py |
# -*- coding: utf-8 -*-
import pymysql
import datetime ,time
from sqlalchemy import create_engine
import sys
import pandas as pd
import csv
engine = create_engine('mysql+mysqldb://root:568912@localhost:3306/weather_report?charset=utf8', max_overflow=5)
#區碼導入
def sqloutput(religion_num):
infile_csv = './csv/compa... | [
"jason82603@gmail.com"
] | jason82603@gmail.com |
d26865da00497232313307d61128fc8a8a17324c | ab50920ebb8d9679230c13b8f91998e47e9f4f82 | /samples/server/petstore/python-aiohttp/setup.py | b6a25d8966e5416433cab58c51cbb254d1efcc14 | [
"Apache-2.0"
] | permissive | oxidecomputer/openapi-generator | f50ee17579b02a35d30894f16a4d98dc81f8b06b | f8770d7c3388d9f1a5069a7f37378aeadcb81e16 | refs/heads/master | 2023-08-25T09:24:27.666296 | 2021-02-25T15:36:35 | 2021-02-25T15:36:35 | 334,329,847 | 6 | 0 | Apache-2.0 | 2022-10-14T05:05:39 | 2021-01-30T04:46:13 | Java | UTF-8 | Python | false | false | 937 | py | # coding: utf-8
import sys
from setuptools import setup, find_packages
NAME = "openapi_server"
VERSION = "1.0.0"
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = [
"connexion==2.6.0",
"swagger-ui-bundle==... | [
"noreply@github.com"
] | noreply@github.com |
da16383d575f23739976c33d38d4718e16da28db | bf029b2e668e1e52541dfade8931d86846c67fc1 | /Basic/Quarantine.py | 3f147145aa682643aa857cf3a867462a4f4e72c3 | [] | no_license | trueazp/Python | 714d37e63c4a65de960fa24cfc24fab2be178610 | 686497d4b690d65b8c0491468393b2f761967e46 | refs/heads/master | 2022-12-13T21:33:47.201652 | 2020-09-16T23:14:27 | 2020-09-16T23:14:27 | 252,054,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # meoww
def stay_at_home():
print("eat")
print("code")
print("sleep")
print("repeat")
corona_virus = True
if __name__ == "__main__":
while corona_virus == True:
stay_at_home()
# stay home | [
"54744527+trueazp@users.noreply.github.com"
] | 54744527+trueazp@users.noreply.github.com |
bfea27733e3baaa41e1cf44c97e610c37ea4f198 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03049/s868278541.py | b3f9160fdd19cecfb8e58fc70735fa3e21e93802 | [] | 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 | 464 | py | n=int(input())
a_num=0
b_num=0
set_num=0
ans=0
for i in range(n):
s=list(input())
for j in range(len(s)-1):
if s[j]+s[j+1]=="AB":
ans+=1
if s[0]=="B" and s[-1]=="A":
set_num+=1
elif s[0]=="B":
b_num+=1
elif s[-1]=="A":
a_num+=1
if set_num==0:
print(ans... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2198b57e1a53959d68f9caf78bf428b825300e47 | 9b0f49d825658e9cb6b4bc3e7980016809506be1 | /SqlMaster/models.py | 6bab5fbc2b1c54844895f441c45706b68590995c | [
"Apache-2.0"
] | permissive | srstack/JustCloud | 29a4fe16c43beae511e210e44c6b600ac673defc | 328a0e96e4b549846f1944b86315e7aa87070fa9 | refs/heads/master | 2020-04-16T03:23:45.165598 | 2019-05-07T05:10:54 | 2019-05-07T05:10:54 | 165,230,466 | 3 | 2 | Apache-2.0 | 2019-02-26T05:04:37 | 2019-01-11T11:06:52 | HTML | UTF-8 | Python | false | false | 4,950 | py | from django.db import models
# Create your models here.
class Domain(models.Model):
name = models.CharField(max_length=30, verbose_name="域名", null=False, unique=True)
city = models.CharField(max_length=10, verbose_name="城市", null=False)
province = models.CharField(max_length=10, verbose_name="省份", null=T... | [
"39378935+srstack@users.noreply.github.com"
] | 39378935+srstack@users.noreply.github.com |
674aaa5d6a44b0485ab847af4392e2f00bde3c4c | e761cadf65705e1d6f8eaa03b980362b7e58d6be | /venv/bin/easy_install-3.6 | 2374b15e60e0558833aef31cd712aab3d42fa1cd | [] | no_license | alfonsho/word_count_project | 2397b4d87af493d6598551ff8fee1aedef9cd52f | e56420e08e7ec957c71345f46e6e72eba722fe30 | refs/heads/master | 2020-03-22T02:13:18.249410 | 2018-07-01T19:33:24 | 2018-07-01T19:33:24 | 139,357,253 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 458 | 6 | #!/Users/alfo/PycharmProjects/word_count_project/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"alfonsho@me.com"
] | alfonsho@me.com |
47bfe641e44add9a467cfbda95d5a088f6765ab0 | afadcf5a318ffbdd18966568fa6ba67b6ed2b5bf | /config/wsgi.py | e17c4b421924b29b70c3b91a03367e18408125a2 | [
"MIT"
] | permissive | we29758143/my_django_api | e9cb2f186218a9e909644502652829b7a7ad75ff | 0aee90dfc9b713bf5f5676065d17108639754063 | refs/heads/master | 2023-04-09T02:29:37.489492 | 2021-04-20T20:25:47 | 2021-04-20T20:25:47 | 359,941,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | """
WSGI config for my_django_api project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICAT... | [
"williamtks2@hotmail.com"
] | williamtks2@hotmail.com |
911c352e7b58e0f4dfa3bfa17b13bfb5b8ec5dae | 070923bfce1097299edc5db76eeab306113c274a | /player/set1/New Text Document.txt | 075286c39bb7947e30c9337ddd645a63a4071cc2 | [] | no_license | kirtigarg11/guvi | 0c0f9f5bb782131ff4a0afb8d253d4437a6ecaaa | de12897d35306b02c8701b11bcf08e7d3ce1b4b1 | refs/heads/master | 2020-04-22T20:37:41.933179 | 2019-03-06T15:22:01 | 2019-03-06T15:22:01 | 170,647,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | txt | print(input()+'.') | [
"kirti.garg_cs16@gla.ac.in"
] | kirti.garg_cs16@gla.ac.in |
87ddc1477a9a7a89f4da9f65c898d02fe5fc8d9f | dbcd5044f5b076740a2291a09a5464f90387545a | /check_db_connection.py | aefeaa005b94cf2890f54d8a7b995c811b2021ed | [
"Apache-2.0"
] | permissive | Guban1990/Python_training | 4ea12ab6a506702d7509211ce68e13865678e6a7 | e1e30937f0f4f06bd8d87ee5f1675350ec8aa440 | refs/heads/master | 2023-07-13T03:52:01.680905 | 2021-09-02T11:08:49 | 2021-09-02T11:08:49 | 279,603,084 | 0 | 0 | null | 2020-08-28T20:02:57 | 2020-07-14T14:09:28 | null | UTF-8 | Python | false | false | 908 | py | from fixture.orm import ORMFixture
from model.group import Group
db = ORMFixture(host="127.0.0.1", name="addressbook", user="root", password="")
try:
l = db.get_contacts_not_in_group(Group(id="408"))
for item in l:
print(item)
print(len(l))
finally:
pass #db.destroy()
"""import pymysql.curso... | [
"gubanov@restream.rt.ru"
] | gubanov@restream.rt.ru |
c10b740c35e4aab98ed0d1cef799df752e9a5609 | a28b0bb2c8d3d894a64f72b00dea3a499c6e1dcf | /examples/wikivote/wikivote.py | a4d5da7e68c85db7aa12ee1a01945b7a22a63029 | [
"MIT"
] | permissive | vlukiyanov/pt-splitter | 4a24e0d644abd2b37a15d5d13bd78526f88874ae | 6d0c930f556625965834c2eab8243ee501c6f99c | refs/heads/master | 2022-07-18T21:56:17.440411 | 2020-05-24T15:36:04 | 2020-05-24T15:36:04 | 179,951,145 | 3 | 0 | MIT | 2020-05-24T15:36:05 | 2019-04-07T10:40:31 | Python | UTF-8 | Python | false | false | 2,957 | py | from cytoolz.itertoolz import take
import networkx as nx
import torch.cuda as cuda
from torch.optim import SGD
from sklearn.metrics import roc_auc_score
from ptsplitter.deepwalk import (
initial_deepwalk_embedding,
initial_persona_embedding,
iter_random_walks,
lookup_tables,
to_embedding_matrix,
... | [
"noreply@github.com"
] | noreply@github.com |
5b185f80b83a5280fb92b99ea44beca47841c15f | 4dd9a44463e15c9dab6eb979315109087ab53754 | /api/Controller/routes.py | 10703f0395f7f885af44b957030c7e56bcdced83 | [] | no_license | SCcagg5/Genevasign | f5db6d5d5daef12f9db1f28d92c6a54a285fcf28 | 02c7708ee1fcbffff2b4905c0abbc74006c78fd2 | refs/heads/master | 2022-03-28T13:47:12.342147 | 2019-12-10T13:51:28 | 2019-12-10T13:51:28 | 218,754,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from .routesfunc import *
def setuproute(app, call):
@app.route('/test/', ['OPTIONS', 'POST', 'GET'], lambda x = None: call([]) )
@app.route('/login/', ['OPTIONS', 'POST'], lambda x = None: call([getauth]) )
@app.ro... | [
"eliot@LAPTOP-C7G3T243.localdomain"
] | eliot@LAPTOP-C7G3T243.localdomain |
2e614246165947855457aa478ad7a314ca6bddce | 094df889c7798097d7f8b0cfc6010060adc92320 | /download.py | 4c3584deab9ac89031d29aee037451068a0f4414 | [] | no_license | Tsukiyomi-Yaori/shiyanlou-code | 87cc48042afd0aa8231efd08fef207a0117c8f5f | 3a6e2bd32c239728b7e6f87526c33313e7474c29 | refs/heads/master | 2021-01-08T01:08:30.162336 | 2020-02-28T16:09:32 | 2020-02-28T16:09:32 | 241,869,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | #!/usr/bin/env python3
import requests
def download(url):
'''
从指定的URL中下载文件并存储到当前目录url:要下载页面内容的网址
'''
#检查URL是否存在
try:
req = requests.get(url)
except requests.exceptions.MissingSchema:
print('Invalid URL "{}"'.format(url))
return
#检查是否成功访问了该网站
if req.status_code == ... | [
"495380695@qq.com"
] | 495380695@qq.com |
388104b9683a9e7a868f3d95f1710fc0fe4db910 | cad6b588bd66675b31d88c4490a610a44c54084d | /openprocurement/auctions/lease/views/auction.py | e94280cba51093e7eb06dee9de06c57a50e0c839 | [
"Apache-2.0"
] | permissive | Scandie/openprocurement.auctions.lease | 389ffb4079a00e9d90cfa95ca9c1ca5e4b307e20 | 1b2b974ece7ca380b51221c2ddfa5b0ad9c1410a | refs/heads/master | 2020-03-25T11:46:34.119510 | 2018-07-05T12:48:54 | 2018-07-05T12:48:54 | 143,747,885 | 0 | 0 | Apache-2.0 | 2018-08-06T15:27:39 | 2018-08-06T15:27:39 | null | UTF-8 | Python | false | false | 7,681 | py | # -*- coding: utf-8 -*-
from openprocurement.auctions.core.utils import (
json_view,
context_unpack,
APIResource,
save_auction,
apply_patch,
opresource,
cleanup_bids_for_cancelled_lots
)
from openprocurement.auctions.core.validation import (
validate_auction_auction_data,
)
from openpro... | [
"api_service@sandbox-api"
] | api_service@sandbox-api |
e4ac9c67a39ce094715d70f29f349c94518af075 | d6f9a6adfd78ae3f835cb93114b0e15ce3a861ee | /backend/settings.py | cb65283c6e3ac47d6604b6c25f148049e9649b43 | [] | no_license | sreedom/travelogger | 479c1921236f7b945b01921994ce2397517a2ce6 | 8187c1322bd8f04da618a1d65950e9abc0af177b | refs/heads/master | 2020-04-30T17:12:03.260548 | 2013-04-05T04:56:38 | 2013-04-05T04:56:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,373 | py | # Django settings for backend project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'travello... | [
"sreeraj.a@inmobi.com"
] | sreeraj.a@inmobi.com |
a59e67e2f7499c2085d18c176ceba106f3d6e308 | ad0857eaba945c75e705594a53c40dbdd40467fe | /leetCode/number_of_papers_1780.py | dace9f5d455a28a9951f765e1c89a67e75850822 | [
"MIT"
] | permissive | yskang/AlgorithmPractice | c9964d463fbd0d61edce5ba8b45767785b0b5e17 | 3efa96710e97c8740d6fef69e4afe7a23bfca05f | refs/heads/master | 2023-05-25T13:51:11.165687 | 2023-05-19T07:42:56 | 2023-05-19T07:42:56 | 67,045,852 | 0 | 0 | null | 2021-06-20T02:42:27 | 2016-08-31T14:40:10 | Python | UTF-8 | Python | false | false | 1,602 | py | # Title: 종이의 개수
# Link: https://www.acmicpc.net/problem/1780
import sys
sys.setrecursionlimit(10 ** 6)
def read_list_int():
return list(map(int, sys.stdin.readline().strip().split(' ')))
def read_single_int():
return int(sys.stdin.readline().strip())
def check_all_number(matrix, start_x, start_y, length... | [
"yongsung.kang@gmail.com"
] | yongsung.kang@gmail.com |
a1e1e234ea2709bbb7c6bcee51b75c86b9c958f6 | 475ec339d85366aee2b01df72c9643babc5ed91c | /Mundo 2/desafio_061.py | e5f67a7f8842a5cf729fdeda98f9e9a96947fce1 | [] | no_license | AlfredoAndrade14/AprendendoPython | 15e2298052a8916dacf8a531ff49925e47eb02b6 | c39422d2b76bd747c3c3f60bf26ff4819ee21a2f | refs/heads/main | 2023-08-25T22:57:05.032738 | 2021-10-28T08:16:04 | 2021-10-28T08:16:04 | 301,789,253 | 5 | 14 | null | 2020-10-25T17:56:57 | 2020-10-06T16:30:30 | Python | UTF-8 | Python | false | false | 211 | py | primeiro = int(input("primeiro termo: "))
razao = int(input("razao: "))
pos = 1
while True:
conta = primeiro + (pos - 1) * razao
print("a{} = {}".format(pos, conta))
if(pos == 10):
break
pos += 1
| [
"noreply@github.com"
] | noreply@github.com |
f6e4b82f7b71e7c9c088f7d5198dcf164604aa4c | ce99427b6f79ca87d3869fe521b02fc59a48005b | /Django/BLOG/blog/urls.py | 4bd7b9cc6ee8b5688af113722440c65d62b972ab | [] | no_license | mateusoliveira43/estudos-Python | 99c3837559da922916301178e6722c3dcd20db9d | fe3d4a09264aaa50b38eb2c2a55b22ea2026bffd | refs/heads/master | 2023-02-13T04:45:14.078759 | 2021-01-16T14:16:06 | 2021-01-16T14:16:06 | 298,580,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | """blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"matews1943@gmail.com"
] | matews1943@gmail.com |
d28596a3b41c60b5e98f6cde6ebd4cf085d4d579 | 42cbf381d6d12b29a5212f3e8482ebde2067758b | /3 - Estrutura de Repetição/9nv.py | c87bfb1840eb522246d2b97d6b305cbc5d05d381 | [] | no_license | loristron/PythonExercisesLearnPython | d76d0f7d0b96b76ca463c0d431814a6ba74bbe74 | c98a903900b41733980a5a13017dc1901b1ecee7 | refs/heads/master | 2023-02-09T12:46:44.885145 | 2021-01-07T19:39:33 | 2021-01-07T19:39:33 | 327,707,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 25 13:11:08 2020
@author: loris
Faça um programa que imprima na tela apenas os números ímpares entre 1 e 50.
"""
lista = []
for n in range (1, 50):
if n % 2 != 0:
print(n)
lista.append(n)
print(lista)
| [
"loremmiranda@gmail.com"
] | loremmiranda@gmail.com |
9dfe8bd40de7649a1a8dc257c27d213c77e9277e | e329bde6259872205349470571448e1ad9309585 | /model_architectures.py | 439aed43727a8443cbe5dec8e2d2b0f47407e451 | [] | no_license | brandonclintonjones/2D_Segmentation | e292a28fc1e0cd494c13c775b5e896a2188fa224 | 4f12c0c5c6830095dfb203bcb17b6851773c1fcd | refs/heads/master | 2022-11-28T10:08:24.607051 | 2020-08-07T19:28:46 | 2020-08-07T19:28:46 | 285,685,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,039 | py | ###############################
###############################
###############################
###############################
#########
#########
######### CREATED BY: BRANDON CLINTON JONES
######### AND CARLOS ADOLFO OSUNA
######### APRIL 23, 2020
#########
#########
#########
##############################... | [
"brandonclintonjones@gmail.com"
] | brandonclintonjones@gmail.com |
08fc618ae201b8f3f9809dbf4cf9931b73ece1ac | 447a7f4135cd9aee20985de8507758d49b7720dd | /build_schedule.py | cfe62d3178c823c613f5d51e6516154cb620870d | [] | no_license | subotto/website | 1b36ed887852e43eff25a8e9e0522546d7003850 | 648701e42d52b8afdd61076ca84aadcf41286174 | refs/heads/master | 2020-07-21T20:20:11.307370 | 2018-03-28T19:36:46 | 2018-03-28T19:36:46 | 16,034,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/env python2
schedule = [l[:-1].split('\t') for l in open("schedule.txt").readlines()]
print "<?php"
print "$schedule = array();"
for line in schedule:
print """$schedule[] = array(
"time" => "%s",
"mathematicians" => "%s",
"physicists" => "%s"
);""" % (line[0], line[1], line[2])
print "?>"
| [
"mascellani@poisson.phc.unipi.it"
] | mascellani@poisson.phc.unipi.it |
dccdcdfd2e39d70e27eae488012112a1b51ee363 | 1f61891dd0e77da68e2388f08c995299827438f6 | /QR code.py | 285772321487ce11b1e432b86295b3b626c1f86f | [
"Unlicense"
] | permissive | SJISTIC-LTD/Create-and-Read-QR-code | 4ea2f0ed7c45e98e4ecdbc1b6422edd87d637a6c | 30c543e466b0db6d76a046837d2fc7f78d9aa53f | refs/heads/main | 2023-08-14T13:15:14.098066 | 2021-10-17T18:19:39 | 2021-10-17T18:19:39 | 418,218,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | pip install qrcode
#Import Library
import qrcode
#Generate QR Code
img=qrcode.make('Hello World')
img.save('hello.png')
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
qr.add_data("https://abhijithchandradas.medium.com/")
qr.make(fit=True)
img =... | [
"noreply@github.com"
] | noreply@github.com |
d12a4020fdd95b228aa01947da6345a6333cb4c4 | 67a78c33ef688973d62fcc5e2fd8b35c191494b4 | /src/io/utils.py | 87a822cabcf51a1b72b411824a893eb788b92944 | [] | no_license | steveneale/topic_modeller | e334b413358ba7a05e6ef45fbc63fc9f3105e238 | 0c79f3dd142214bd8970d82a4470c2a3664e2765 | refs/heads/master | 2022-12-09T17:49:44.583857 | 2019-07-26T23:54:11 | 2019-07-26T23:54:11 | 195,701,401 | 1 | 0 | null | 2022-12-08T05:51:32 | 2019-07-07T22:07:03 | Python | UTF-8 | Python | false | false | 1,066 | py | #!usr/bin/env python3
#-*- coding: utf-8 -*-
"""
'utils.py' (topic_modeller/src/io)
Input/output utility functions
2019 Steve Neale <steveneale3000@gmail.com>
"""
import os
import pickle
import pandas as pd
def load_from_file(file_path, split_lines=True, strip_lines=False):
with open(file_path, "r", encoding... | [
"steveneale3000@gmail.com"
] | steveneale3000@gmail.com |
3630c0d39ca65c8e113772a5e5e701a400b4eb9c | 4b8979934c5040a3ef0d3d39456b4f6bbece689c | /atd.py | e0f4f806aa673caa924c736aedc6a681db104bf0 | [] | no_license | selrahc13/Apple-Trailer-Downloader | b701f70ea061010e010031e6a861c3ab31b20034 | 0445e903c047ddced71fe40563b5d6345745fa6d | refs/heads/master | 2021-01-25T05:34:16.517709 | 2010-08-21T16:38:34 | 2010-08-21T16:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,992 | py | import base64
import datetime
from optparse import OptionParser
import os
import rfc822
import re
import shlex
import shutil
import string
import struct
import sys
import time
import urllib2
from xml.etree.ElementTree import ElementTree
from pkg.BeautifulSoup import BeautifulSoup
import imdb
from pk... | [
"dustin.wyatt@gmail.com"
] | dustin.wyatt@gmail.com |
9e2012281769750a83766197f67867136e065d83 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/baiduads/shield/model/update_b_shield_black_ip_request_wrapper.py | 5dddbab9eff0ff0dd58e237b6dbb103c6cfa1cf1 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 11,564 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
ch... | [
"tokimekiyxp@foxmail.com"
] | tokimekiyxp@foxmail.com |
f40c2d3d543d26cf3f9ce1489b9adb13b3062903 | 17b3248f33faa158e20243662181692e37bf3c17 | /Qt5Player.py | f6500d12d5a58f3ef4d4e990f1b36adbd992efa0 | [] | no_license | Axel-Erfurt/QFilemanager | 0e347605d07642e9879c600b76fe9702b181978e | 65e9e3ea14a9594bb34cb3fb08d41319598c8db5 | refs/heads/master | 2023-05-28T08:58:49.934052 | 2023-05-10T18:43:24 | 2023-05-10T18:43:24 | 203,257,923 | 18 | 14 | null | null | null | null | UTF-8 | Python | false | false | 16,982 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtGui import QPalette, QKeySequence, QIcon
from PyQt5.QtCore import QDir, Qt, QUrl, QSize, QPoint, QTime, QMimeData, QProcess
from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer, QMediaMetaData
from PyQt5.QtMultimediaWidgets import QVideoWidget
from PyQt5.Qt... | [
"noreply@github.com"
] | noreply@github.com |
2d07e3e7c688400917292198da3ca2366537e1a7 | cb919300d685bef47e73c08f87ef864ec43c626b | /gbe/migrations/0004_auto_20201224_1145.py | af779268696e0f18696fcc085d560b723c33ac3c | [
"Apache-2.0"
] | permissive | bethlakshmi/gbe-divio-djangocms-python2.7 | d5ca26897b388e632f0b7aba0165239d55adb0c3 | d43dd81bdac2ca068a1f14e1b4b0ae33e8d25c07 | refs/heads/master | 2023-08-31T14:36:43.577308 | 2023-08-28T13:02:36 | 2023-08-28T13:02:36 | 206,438,505 | 7 | 1 | Apache-2.0 | 2023-09-13T21:03:41 | 2019-09-05T00:18:03 | Python | UTF-8 | Python | false | false | 55,532 | py | # Generated by Django 3.0.11 on 2020-12-24 11:45
from django.db import migrations
init_values = [
{
'selector': '.gbe-header-band',
'pseudo_class': '',
'description': '''Boldly colored header bands with contrasting
text, such as above performer grids''',
... | [
"noreply@github.com"
] | noreply@github.com |
17538b0801d060811a2100feec9d1813ce772fcd | 0ec5cf9dca760f0c7574691a8c3b2f922b027241 | /generate.py | 95927604382df3efc75532ff634421ad2379321b | [] | no_license | AleksanderObuchowski/Markov-Chains-Messenger | 72dde047b1fd9b0a365e4de5228c9132d03cc419 | ada2b08f9868b001deea72ab64682d0e46692dea | refs/heads/master | 2020-03-15T18:28:47.626136 | 2018-05-05T21:14:30 | 2018-05-05T21:14:30 | 132,284,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | import sys
import random
import os
import json
def main():
length,filename = readArguments()
dictionary = loadDictionary(filename)
lastWord = "-------"
result = ""
for i in range(0,length):
newWord = getNextWord(lastWord,dictionary)
result = result + " " + newWord
... | [
"noreply@github.com"
] | noreply@github.com |
a7269b20a5c610f30c91b6222a8bdbb865b37e57 | 01ee737722510ba5baa7bc1d898de22777ffbd6a | /PhotoTaker.py | ca36464ed14bed06c9e5e2abaf6860d30b9d77d8 | [] | no_license | tckb/time-lapse-photography | 61622bc99cc3507d26b493a175c40307708ab73a | e8e6e806d366bd31c5caaf2ed59286d95357fa7f | refs/heads/master | 2021-01-23T21:39:07.098408 | 2013-07-31T21:11:51 | 2013-07-31T21:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,170 | py | import getpass
import os
import cv2
import time
import subprocess
class PhotoTaker:
daysofweek = ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
choices = ("Seconds", "Minutes", "Hours", "Days", "Weeks", "Daily", "Weekly")
def __init__(self, cm=False):
self.USER = ge... | [
"aa1ronham@gmail.com"
] | aa1ronham@gmail.com |
05a4721b459df9940953ad4a1017d56d9fd40f02 | a80920c853b51f34acfd37b260a872f4057a52ed | /daz1.1.4.py | 7ea7d3af0ed7fb0b9baa05a2df4c5f99dbefae5f | [] | no_license | yzhzbys/python-dazi | 366e32e9015e2cc97ddf19cf4f6f01d891fe1bef | 5df5800c76a13026634419c791d507d75f8ee440 | refs/heads/master | 2023-02-13T04:27:21.818283 | 2021-01-12T07:54:18 | 2021-01-12T07:54:18 | 330,923,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,253 | py | from tkinter import *
import string
import random
import time
import tkinter
import re
from datetime import datetime
hh =Tk()
hh.rowconfigure(1, weight=1)
hh.columnconfigure(0, weight=1)
tit1=Text(hh,fg='#78a2a1',wrap='none',bg='#68312e',state='disabled',width=77,height=1,font=('楷体',11,'bold'))
tit2=Text... | [
"noreply@gitee.com"
] | noreply@gitee.com |
3c1a0b539c6f6d96a5f568b0e93dea70e904ad93 | db6fd2ecbc8b725c48f8f983505f1643294a628b | /cmd/CommandShell.py | a54c098513e9b1ea95ae1650733912fa7c6cec93 | [] | no_license | weleek/python_examples | e1ed3b23115dd8ef0163194484c8ab0f118a2deb | 8ecdc3d662e106d89a3ca25b547f9f2fd2078162 | refs/heads/master | 2023-07-25T07:42:08.388414 | 2023-07-11T06:57:58 | 2023-07-11T06:57:58 | 203,959,963 | 0 | 0 | null | 2023-07-11T06:57:59 | 2019-08-23T08:44:12 | Python | UTF-8 | Python | false | false | 4,824 | py | # -*- coding: utf-8 -*-
"""Command Line Interface
Usage:
run -h | --help
run -i | --interactive
run start [process name]
run stop [process name]
Commands:
start Program Start.
stop Program Stop.
Options:
-v -V --version show version... | [
"weleek@gmail.com"
] | weleek@gmail.com |
27d0fcb1b8ffe87fa60bc957c1617a8b801e5f29 | c2777c1e132642ae033fd0eaeabb617823fc7e7b | /initial/number.py | f114b94ad6f66e7e630c11f9e6225b1a40f45119 | [] | no_license | Ludug323/python | 278e7c30f082e6e6e823e17b04e376cc4f2c98c2 | b822098059dd0be69c11b6dc0406134d1c321da3 | refs/heads/master | 2022-11-14T07:46:24.155364 | 2020-06-27T09:59:35 | 2020-06-27T09:59:35 | 272,355,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | #數字運算
x = 7/6#3/6=0.5 小數除法 3//6=0 整數除法
print(x)
x = 7//6
print(x)
x = 2**0.5
x = 3.5
print(x)
x = x + 1
print(x)
| [
"60188596+Ludug323@users.noreply.github.com"
] | 60188596+Ludug323@users.noreply.github.com |
59b2660370d66e34056e4768c0ea0fabd477cd5b | 7d77d49372973637f9ca9a03bfa47ff0f6aadd57 | /mathematics/root-finding/root_of_1d-function_using_secant-method/ro1dfusm.py | fb1280e50d2d60116c08dd5b942f38339e1b6c46 | [] | no_license | udy11/basic | 18309a65455deaae5c9d6af6a795df0a027fed15 | 8dd3d45b099a06d9ecb7a03ab296fd152f0256e9 | refs/heads/main | 2023-08-17T20:50:58.847732 | 2023-08-06T10:20:15 | 2023-08-06T10:20:15 | 492,775,065 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | # Last updated: 16-Apr-2013
# Udaya Maurya (udaya_cbscients@yahoo.com, telegram: https://t.me/udy11)
# Source: https://github.com/udy11, https://gitlab.com/udy11
# Function to find a root of a one
# dimensional function using Secant Method
# ALL YOU NEED TO DO:
# Specify two initial guesses x0 and x1,
# they must be... | [
"udaya_cbscients@yahoo.com"
] | udaya_cbscients@yahoo.com |
303b5b1e30a0347d0b5f6e3e7fefdc0086d6d2a9 | b142291a856847f29cb73281f71fd6d162fc8061 | /mwall/ws28xx-0.3.py | fc46625686649fc67b42fcd4148cdf8acaab1ae1 | [] | no_license | matthewwall/weewx-ws28xx | 6498353c563df60df9ef8126247693a92d92946b | bc86e6b016f9999ba8a8b6c860352244b0eb92b3 | refs/heads/master | 2021-01-17T11:36:12.631830 | 2016-04-17T05:37:22 | 2016-04-17T05:37:22 | 34,466,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169,172 | py | #!/usr/bin/python
# $Id: ws28xx-0.3.py 2357 2014-09-28 12:17:35Z mwall $
#
# Copyright 2013 Matthew Wall
#
# 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
# Foundation, either version 3 of the License, or any... | [
"mwall@picorino.local"
] | mwall@picorino.local |
69494011db6f576fb6ac7d0777a1dfb030eaad40 | 7847a3efcf248c260e161929a40469c3783abd0c | /tests/SampleSplitter_example1.py | 34095fcd61052935894a75495506047783ad8eb8 | [
"BSD-3-Clause"
] | permissive | paul-smiles/acoular | f8575f328c331c6334c46864178420482c0d5421 | 49647ff54150554422f44da90a80a0137ad82958 | refs/heads/master | 2023-02-16T09:50:03.823784 | 2021-01-03T23:40:21 | 2021-01-03T23:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | # -*- coding: utf-8 -*-
#pylint: disable-msg=E0611, E1101, C0103, R0901, R0902, R0903, R0904, W0232
#------------------------------------------------------------------------------
# Copyright (c) 2007-2019, Acoular Development Team.
#------------------------------------------------------------------------------
"""
Thi... | [
"kujawski.ad@gmail.com"
] | kujawski.ad@gmail.com |
0a6e42f7bbf25c493ed7c8c4a43b48bfa4bdac9c | 9553faf5286927bc52a64d43b5c01efa4b92f70e | /slicing.py | 2d305bbb5cb78177af0688773953c711f4e3e73b | [] | no_license | Mishrashivanand/Pythonmaster | 3f384c79bea9e3849a3ef36d6fe5af74e160ba14 | e0121827825504c5f78d19e6477038062da3607f | refs/heads/master | 2023-07-05T00:35:21.010715 | 2021-08-24T04:56:38 | 2021-08-24T04:56:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | parrot = "Shivanand"
print(parrot[0:6])
print(parrot[3:6])
print(parrot[:9])
print(parrot[5:])
print(parrot[:5] + parrot[5:])
print(parrot[:])
# ===================
print("Slicing with negative no.")
print(parrot[-4:4])
print(parrot[-4:-1])
# =================
print("Slicing with using step")
print(parrot[0:7:2])
pr... | [
"shivanandmishra14@gmail.com"
] | shivanandmishra14@gmail.com |
a6b3de13814493ba217c8efd7c3c78a34f6c9856 | dcd7eb9ee6cf2b78896a630fb2ebaa9470194971 | /blog/accounts/urls.py | 2621357d5562621a54ff38731e297135c9be5890 | [] | no_license | anuj-jaryal/django-blog | 0a10a275f421d9f8c23c0d2c4bad080d7d8ad8a7 | be90ed645bcaf02f8c12826da61869554e253c44 | refs/heads/master | 2023-07-17T14:54:44.018621 | 2021-09-03T06:44:02 | 2021-09-03T06:44:02 | 402,673,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | from django.urls import include, path
from . import views
from django.contrib.auth import views as auth_views
urlpatterns=[
path('login/', auth_views.LoginView.as_view(template_name ='accounts/login.html'), name='login'),
path('logout/', auth_views.LogoutView.as_view(template_name ='accounts/log_out.html'), na... | [
"anuj@ourdesignz.in"
] | anuj@ourdesignz.in |
d5b44d84be7c7901c1635edaa14a5f4c9d9321c6 | fa04309288a0f8b2daae2fd73c8224a1c0ad4d95 | /eventkit_cloud/utils/tests/test_wcs.py | 14f1277c8a48f019d673a0273edd556c62f11626 | [] | no_license | jj0hns0n/eventkit-cloud | 7bb828c57f29887621e47fe7ce0baa14071ef39e | 2f749090baf796b507e79251a4c4b30cb0b4e126 | refs/heads/master | 2021-01-01T19:45:32.464729 | 2017-07-24T19:01:24 | 2017-07-24T19:01:24 | 98,675,805 | 0 | 0 | null | 2017-07-28T18:16:34 | 2017-07-28T18:16:34 | null | UTF-8 | Python | false | false | 2,133 | py | # -*- coding: utf-8 -*-
import logging
import os
from mock import Mock, patch
from django.conf import settings
from django.test import TransactionTestCase
from string import Template
from ..wcs import WCStoGPKG, WCStoGeotiff
from uuid import uuid4
logger = logging.getLogger(__name__)
class TestWCSToGPKG(TransactionT... | [
"joseph.svrcek@rgi-corp.com"
] | joseph.svrcek@rgi-corp.com |
db978cb55308c9705010fe8e0799d0f3dfcee515 | 62ccdb11daefaecc8e63f235c7519cc7594f705a | /images/google-cloud-sdk/lib/googlecloudsdk/command_lib/compute/instance_groups/managed/rolling_action.py | 62c3d07cac5b5ba9303df7b4585f2a7c5fcf9414 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | hiday1979/kalabasa-mas | eccc869bfe259bb474f9d2a4dc4b8561a481f308 | 53a9818eb2a6f35ee57c4df655e7abaaa3e7ef5b | refs/heads/master | 2021-07-05T16:34:44.962142 | 2018-07-10T10:22:24 | 2018-07-10T10:22:24 | 129,709,974 | 0 | 1 | null | 2020-07-24T22:15:29 | 2018-04-16T08:27:13 | Python | UTF-8 | Python | false | false | 4,470 | py | # Copyright 2017 Google Inc. 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 applicable law or ag... | [
"accounts@wigitech.com"
] | accounts@wigitech.com |
639b345f0dd64741c9480a1203ddfbbc9fef7881 | 75f3bd9718c7e8f36b3b93a53295955b0de67c10 | /cgi-bin/register.py | d4b4a21d8fb683bf2e57a48e40afae994947df46 | [] | no_license | suenchunfung/csci4140assignment_1 | 7a10e262dd604e9ed3421b873e1aff82c8ec7e85 | e27bfd642e12437eaed9b40dafa794b49485726e | refs/heads/master | 2021-09-07T20:51:20.698174 | 2018-02-28T23:05:23 | 2018-02-28T23:05:23 | 122,481,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | #!D:/CSCI4140/python/python-3.5.4.amd64/python
import cgi, cgitb
import mysql.connector
import os
#connect tio the data basestring
userdb = mysql.connector.connect(user='alan', password='alansuen',host='localhost',database='accountdata')
cursor = userdb.cursor()
#get user 's entry
form = cgi.FieldStorage()
... | [
"noreply@github.com"
] | noreply@github.com |
34156a81e74b28c1ef78db596a80568585cedbfa | 835734b9bbe59130dd19cc0b921ae73ec65e9e28 | /tests/sequence_problems/test_open_reading_frames.py | 5e814dc9494fdd572bccacedef9cfa348f185cb0 | [
"MIT"
] | permissive | Vikdemen/RosalindPS | a588e76841692cffe2e3f45333b5875160e42e59 | 05cb3c2162e569bd92a99b9be127999cae1babf7 | refs/heads/master | 2022-04-09T18:49:28.885834 | 2020-03-06T22:11:17 | 2020-03-06T22:11:17 | 236,085,620 | 1 | 1 | MIT | 2020-03-02T02:03:13 | 2020-01-24T21:20:50 | Python | UTF-8 | Python | false | false | 547 | py | from rps.sequence_problems.open_reading_frames import get_possible_proteins
def test_get_possible_proteins():
fasta_sequences = [
">Rosalind_99",
"AGCCATGTAGCTAACTCAGGTTACATGGGGATGACCCCGCGACTTGGATTAGAGTCTCTTTTGGAATAAGCCTGAATGATCCGAGTAGCATCTCAG"
]
expected_proteins = {"MLLGSFRLIPKETLIQVAGSS... | [
"viktor.demen@gmail.com"
] | viktor.demen@gmail.com |
cdd55f8af17b80727f2dda56691dd14105158f6d | 9d374965105f8de9eda124aa347b2caf79e948e2 | /venv/bin/pip3 | 331ced65569ac4a97275c5d53ab22930ae17cc25 | [] | no_license | askvart/todolist | 4d6879fe4028a70a3627345927aa3c0912ccfd2b | f4b17b57458929b74c9d09629354630c2c0f170c | refs/heads/master | 2020-07-30T09:41:30.954550 | 2019-09-22T16:17:33 | 2019-09-22T16:17:33 | 210,177,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | #!/home/askvart/PycharmProjects/todoapp/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
s... | [
"askvart@gmail.com"
] | askvart@gmail.com | |
108a32ed3ade78f6a46e94da15d907ca749b279e | 71e3e2429385094f2d77d06c6de2a59f80c2ad69 | /file downloading/project40/asgi.py | 1cef47061134737b27dd6c6573c8c29ee306de1c | [] | no_license | hiitsRanjan/file-downloading | 153a797d1ef131635e000b22d12d8ab5783f3fbe | 82652fe394c2da3193e22d3288864e09904333a9 | refs/heads/main | 2023-02-17T20:29:08.023754 | 2021-01-19T11:06:35 | 2021-01-19T11:06:35 | 330,951,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for project40 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"gmhohanty890@gmail.com"
] | gmhohanty890@gmail.com |
3e3a1a5603e76c1b63c542ea26dd7461d1ec909d | e6ba92a23cbf92d8727e8a7a057e664d4873db40 | /extdirect/django/store.py | 4adb8baea09ef75a92b67bfe27905cb4a6f90145 | [
"BSD-3-Clause"
] | permissive | bitkeeper/extdirect.cherrypy | 0e4cd4c9b5abf538bad407fded5cf265b020392f | e725ad8fe7b8f3fc144d0e78778a054fc6b293c6 | refs/heads/master | 2020-04-01T21:47:26.146205 | 2010-09-22T14:06:41 | 2010-09-22T14:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py | from django.core.serializers import serialize
from django.core.paginator import Paginator, InvalidPage, EmptyPage
from metadata import meta_fields
class ExtDirectStore(object):
"""
Implement the server-side needed to load an Ext.data.DirectStore
"""
def __init__(self, model, extras=[], root='recor... | [
"santiago.videla@gmail.com"
] | santiago.videla@gmail.com |
5928094b2687fc804ce02fb2e9df0facf5960f5d | 76f05e9d10c6368d2866958db9ff5959c66a3177 | /polly/asgi.py | a1494a45269ed38148339cee0554a3302df7b5dd | [] | no_license | medvykes/polls | 3a093460a51bdbe806525c88b96026a4340e22af | 0fc06f1fe9e8393750b5e3f98c19abddb491fbde | refs/heads/main | 2023-08-01T07:23:37.052517 | 2021-09-03T17:16:40 | 2021-09-03T17:16:40 | 402,844,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for funny project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"61887497+medvykes@users.noreply.github.com"
] | 61887497+medvykes@users.noreply.github.com |
c7d90f35e98f547498e4ac58bd24c52bf0e03f4f | 9404b743f04a87626f117e394ed0877445f88efe | /DK_Project/market/urls.py | 0e353a9701ea3776ba2bdda7ad4315f8865da274 | [
"Apache-2.0"
] | permissive | xedporject/DK | 3497ddfb03521d856e3e9a1874e310db30d64fee | af8f9521011ac1ee0256db4863220abbbf9699ac | refs/heads/master | 2020-03-24T22:37:29.871222 | 2018-08-11T07:42:47 | 2018-08-11T07:42:47 | 143,094,839 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py |
from django.conf.urls import url
from rest_framework.routers import SimpleRouter
from market import views
router = SimpleRouter()
router.register(r'^goods', views.GoodsApi)
router.register(r'brand', views.BrandApi)
router.register(r'category', views.CategoryApi)
urlpatterns = [
url(r'^index/', views.index, nam... | [
"1367000465@qq.com"
] | 1367000465@qq.com |
19b14422c661048132ff074511e6e2f9dafaa607 | dd50c8e20eb21d7becd94ec04cf8084bb8998ce2 | /LiePinSpider/pipelines.py | d26a61abe248a6bd8f88a0f4e6d329e6a2d07ded | [] | no_license | pekeng/Tokenhouse | 4f9b4afce67ff998728cf87944a29fb8513316f3 | 1477ede1cefa7c43fbbde9fde18d81bf73ea3a57 | refs/heads/master | 2020-03-28T07:23:25.121993 | 2018-09-08T03:35:29 | 2018-09-08T03:35:29 | 147,894,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymysql
class LiepinspiderPipeline(object):
def process_item(self, item, spider):
return item
class Myli... | [
"1304677936@qq.com"
] | 1304677936@qq.com |
d51e0b54497d62f9511db1030a8af93fea2fdc67 | 931a3304ea280d0a160acb87e770d353368d7d7d | /vendor/swagger_client/models/get_fw_leaderboards_characters_active_total.py | 84445a28e19347e99ebfd6bf4119f7a6f4c946d2 | [] | no_license | LukeS5310/Broadsword | c44786054e1911a96b02bf46fe4bdd0f5ad02f19 | 3ba53d446b382c79253dd3f92c397cca17623155 | refs/heads/master | 2021-09-08T00:05:26.296092 | 2017-10-24T07:01:48 | 2017-10-24T07:01:48 | 105,143,152 | 0 | 1 | null | 2017-11-03T14:29:38 | 2017-09-28T12:03:19 | Python | UTF-8 | Python | false | false | 3,883 | py | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online
OpenAPI spec version: 0.6.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class GetFwLeaderboardsCharactersActiveTotal(object):
"""
... | [
"cyberlibertyx@gmail.com"
] | cyberlibertyx@gmail.com |
f2e96690da834c6acb105e680115e2c9711f39c0 | 80acc6e7e09024bf9a0f30d58be1835035dd0305 | /bonfire/bonfire.py | c96131deb0813b1ad91afaf678b4530da8735895 | [] | no_license | btbytes/2007 | 6f0c77683aefa81e9b03ea2edec03866c88d6b42 | a275dbd673196a95815e9d1b39a05cf7b204f9f5 | refs/heads/master | 2021-01-19T16:58:53.297440 | 2008-09-09T04:09:03 | 2008-09-09T04:09:03 | 32,154,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,604 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Bonfire website builder
======================
Generate HTML documents out of .rst files
and Mako templates.
Derived from Georg Brandl's Pocoo projects www site builder - sphinx.py
:copyright: 2006 by Georg Brandl, 2007 Pradeep Gowda
:license: GNU GPL.
"""
import s... | [
"btbytes@users.noreply.github.com"
] | btbytes@users.noreply.github.com |
ddc4ef2ae03062798fcdbc7a62554e3e6ef57781 | d9d76dc6f465d8b731e445469c9184ed8255aded | /Codechef/cheflr.py | 16fe5ed5bcdbd143616acac727e29b70cce9dd8a | [
"MIT"
] | permissive | hoodakaushal/Snippets | 40538b75a05a54ce650f192ad4f30bc74b15f4ba | 8944a11c3dee5d7839c209e7079af0f263cd10b1 | refs/heads/master | 2016-09-06T12:10:34.892279 | 2014-09-10T12:38:32 | 2014-09-10T12:38:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,669 | py | __author__ = 'hooda'
def node_num(path):
num = 1
x = 1000000007
for fork in path:
if num % 2 == 0:
# print("even")
if fork == "l":
num = (2 * num - 1)
# print("2x-1")
else:
num = (2 * num + 1)
# pri... | [
"hoodakaushal@gmail.com"
] | hoodakaushal@gmail.com |
ddb8c2fd44e293fa8451287a455f483138028bc6 | 9bf7d46fbe759ecb6497e2ead1a61e08234cf838 | /src/Functions/utils.py | bbcea471f603bbc0975b0f73ded6689ad8465d63 | [
"MIT"
] | permissive | amitsou/Multimodal-User-Monitoring | e682a2a78a7cb70dfc8fbcff8e4fcd212080dc08 | 178049485b4afe5fbf9511e74e4c2f78bd89d426 | refs/heads/master | 2023-05-04T09:56:43.386202 | 2021-05-31T12:16:05 | 2021-05-31T12:16:05 | 275,675,347 | 2 | 1 | null | 2021-01-09T17:13:35 | 2020-06-28T21:59:48 | Python | UTF-8 | Python | false | false | 18,628 | py | # -*- coding: utf-8 -*-
from serial import Serial
from datetime import datetime, timedelta
import pandas as pd
import collections
import argparse
import logging
import shutil
import serial
import time
import sys
import os
click_held = False
button = None
def parse_CLI():
"""CLI arguments
Returns:
nu... | [
"amitsou95@gmail.com"
] | amitsou95@gmail.com |
8e9d43ebc4e167e7f0bc8966d7f024720626f37e | fdb9bdc6c4ab2f14ba71e544493706d5e275899f | /fhir/resources/devicedispense.py | 964f6e14d09cf007d918ee4453586472cff99dad | [
"BSD-3-Clause"
] | permissive | nazrulworld/fhir.resources | 6ae8aea8180c611b0c5050759c6dcdf63e4cb061 | 1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3 | refs/heads/main | 2023-08-30T18:27:27.277249 | 2023-07-03T19:57:06 | 2023-07-03T19:57:06 | 165,297,877 | 256 | 83 | NOASSERTION | 2023-08-24T15:34:05 | 2019-01-11T19:26:41 | Python | UTF-8 | Python | false | false | 16,368 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/DeviceDispense
Release: R5
Version: 5.0.0
Build ID: 2aecd53
Last updated: 2023-03-26T15:21:02.749+11:00
"""
import typing
from pydantic import Field, root_validator
from pydantic.error_wrappers import ErrorWrapper, ValidationError
from pydant... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
32184d18843876ee3bb3bcb5944c60c4b0656baf | df46cf831cba3e2b91e794be6e03f0cbd1f2f8af | /p68.py | f1c6987177250a90ad65977fe9c4f9ad95a9d4d3 | [] | no_license | manjupinky/Phyton | 7653022f8a9b64f7213902c34998e7900f529b5e | 711bb5f491a904c1e35b4204223a90d8f3c16a6e | refs/heads/master | 2020-03-27T10:10:07.963601 | 2019-01-22T07:58:54 | 2019-01-22T07:58:54 | 146,399,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | l=int(input("enter value"))
if(l%7==0):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | noreply@github.com |
1855ff41f0680927d0fb741b4f92b16f35a8f8c3 | 87a68bc58c6255976a1ca66a3a44f0e9a2b1188e | /backend/new_app/migrations/0003_auto_20210123_1146.py | d50335c66c781fc37b3255c562e78a2d0028d1f5 | [] | no_license | LukovVI/jhfjhf | e86389c483cc38bc87345973f1f5a4801da22387 | 4cd433279b325866aec0a0ae8cb5219913770eb6 | refs/heads/master | 2023-04-01T13:45:07.836562 | 2021-04-11T10:50:37 | 2021-04-11T10:50:37 | 356,840,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # Generated by Django 3.1.3 on 2021-01-22 23:46
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('new_app', '0002_auto_20210103_0242'),
]
operations = [
migrations.AlterField(
model_name='message',
... | [
"61895305+qwertyFOREVER@users.noreply.github.com"
] | 61895305+qwertyFOREVER@users.noreply.github.com |
b59ab99fb40ed3daf44d3ca895f964f99c2c40c2 | 9e18b15cd87ad91fb656f80ad2ce052e081ad3b3 | /tests/__init__.py | 6b176b029469b47e5e1ac9754069f148a8c20f9c | [] | no_license | sneawo/asyncio-rest-example | fe03191ad291166cb22a6993563a0af86224054f | a18a6b3a4ce20d856f31c6f7f51a06adc0b3b981 | refs/heads/master | 2021-06-21T15:02:55.988469 | 2019-08-15T11:18:49 | 2019-08-15T11:18:49 | 202,528,110 | 8 | 4 | null | 2021-02-26T02:35:22 | 2019-08-15T11:19:38 | Python | UTF-8 | Python | false | false | 327 | py | from aiohttp.test_utils import AioHTTPTestCase
from app.main import init
from app.config import TestConfig
class AppTestCase(AioHTTPTestCase):
async def get_application(self):
return init(TestConfig())
async def tearDownAsync(self) -> None:
await self.app['db'].client.drop_database(self.app[... | [
"sneawo@gmail.com"
] | sneawo@gmail.com |
3dfaec274a449ba446b15980b0eb9dfcb8f0e0b2 | 02c378a8f3afdb3299325d997e488e2ee3879ad7 | /failover_gw/test.py | 5f49e22ccbbe5737d6d92a8b2c4cbfc8d0cd8a44 | [
"MIT"
] | permissive | ddowling/failover_gw | 2ab734b5c58ac10a56fd6ffa5eb7f97cd2fe7f4d | 6cd7f64dda0ac30a3b057095571008d95577d411 | refs/heads/master | 2021-06-27T11:48:09.624193 | 2020-10-28T06:23:22 | 2020-10-28T06:23:22 | 176,870,216 | 1 | 0 | null | 2019-03-21T07:45:37 | 2019-03-21T04:31:44 | Python | UTF-8 | Python | false | false | 860 | py | from arprequest import ArpRequest
ip = '192.168.90.1'
dev = 'ens33'
print("ip = ", ip, "dev = ", dev)
ar = ArpRequest(ip, dev)
print("Request returned", ar.request())
print("getHardwareAddress() = ", ar.getHardwareAddress())
print("getHardwareAddressStr() = ", ar.getHardwareAddressStr())
from pyping import Ping
for ... | [
"denis.dowling@raedyne.systems"
] | denis.dowling@raedyne.systems |
bd84e65dda55986bc282e7d3e83537a6731b2602 | a383c8d5f8f50d617af8b1e5cd6d211c6012d888 | /python/hjbbs/test.py | d5c69cc1049e7b24d907514c25cc6fae5d602729 | [] | no_license | qxj/jqian | ff15711ba4e5b17eb7d5a5b1e1d5d2d591b7d645 | 1e16fd46a6a0c633d9c7d9819238c98d479edfd3 | refs/heads/master | 2020-05-21T22:17:49.829583 | 2017-02-09T03:52:57 | 2017-02-09T03:52:57 | 32,244,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # -*- coding: utf-8 -*-
# test.py --- Time-stamp: <2010-07-08 12:51:31 Thursday by julian>
# Copyright 2010 Julian Qian
# Author: julian@PDDES.cdc.veritas.com
# Version: $Id: test.py,v 0.0 2010/07/08 04:50:26 julian Exp $
# Keywords:
from log import logger
logger.debug('Test Debug a = %s', 1)
logger.error('Test Erro... | [
"jqian@jqian.net"
] | jqian@jqian.net |
1bdd3f8a9b215240b0be7c93bcc5f130d6797050 | 7a16034d1fad2d402bef6c4d947aaba4a4cf35c8 | /wikidocs/pratice02.py | 92cb31ac16131c85d86d4082099961260e6c89b4 | [] | no_license | mungmange2/pythonstudy | 5bf24af634a5cda0b5915c11bcb215935f605005 | 48a5ab703859f572c776770677ae67363e10b0a4 | refs/heads/master | 2023-06-09T17:58:10.395418 | 2021-06-24T22:56:30 | 2021-06-24T22:56:30 | 381,248,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,109 | py | # 02장 연습문제
# https://wikidocs.net/42526
# Q01
print("---Q.01---")
korean = 80
english = 75
math = 55
print((korean + english + math) / 3)
# # #
# list = [80, 75, 55]
# print(sum(list) / len(list))
# # #
print("--------\n")
print("---Q.02---")
# Q02
if float(13 % 2) == 0:
print("짝수")
else:
print("홀수")
print... | [
"sohyun@vendys.co.kr"
] | sohyun@vendys.co.kr |
28314992041d5943d947c65c7469c6d091d08f02 | 0f201ad033df76bce7e968616ea135dd453cf081 | /clu/me/gen1/g2.py | 15552c88feb97c757ddbc5841dc7f84059dce83b | [] | no_license | noDefinition/works | 8d1faa47aa98eb8de97a082333b3518e92d8dd5d | 2f7f5d0534909e6ae1b19672d4edcc5ee0182729 | refs/heads/master | 2020-04-24T09:00:19.200685 | 2019-05-07T12:21:42 | 2019-05-07T12:21:42 | 171,849,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | from me.gen1.g1 import *
# noinspection PyAttributeOutsideInit,PyMethodMayBeStatic,PyPep8Naming
class G2(G1):
""" 判别器分别输入正例与重构(要求对二者使用同样的结构),输出概率值并比较 """
def define_denses(self):
super(G2, self).define_denses()
sc, ed, md = self.scale, self.e_dim, self.m_dim
self.DL_dis = MyDenses(ed,... | [
"devincdong@163.com"
] | devincdong@163.com |
fbb7584b6adb9e3442c396592bae7b6a93f49a97 | 7e3b9821ab5d75b7f013cb817bc6d655e06bed22 | /shell.py | b26876c3f689d557508429bd5add06ba3b7e59e9 | [] | no_license | zhangzhen796/day03 | 6120b57c55f862263d40c626ab998a80aee92e63 | 2372bfda04748a5cef7c854d996b8fb0e38cedaa | refs/heads/master | 2022-12-15T20:33:48.311337 | 2020-08-31T10:27:00 | 2020-08-31T10:27:00 | 291,682,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | import sys
import string
import keyword
first_str = string.ascii_letters + '_'
str = first_str + string.digits
def check_string(inp):
if keyword.iskeyword(inp):
return "%s is guanjianzi" % inp
if inp[0] not in first_str:
return "1 no"
for i in range(len(inp)):
if i == 0:
... | [
"zhangzhen@aliyun.com"
] | zhangzhen@aliyun.com |
b347a2aefd4be9913db6db41c8fabd5ac47b172a | eab1756b01717e81537133400f36aea4d7a0876f | /cifar/ray_sync.py | 46fcca4fe1782621341778e8127e5a3db497e151 | [] | no_license | bearpelican/cluster | d677fe392ac1196b77e3f8fb79e530ec8371080f | 2e316cf1def0b72b47f79a864ed3aa778c297b95 | refs/heads/master | 2020-03-21T06:52:57.514901 | 2018-08-10T10:20:26 | 2018-08-10T22:33:05 | 138,246,892 | 3 | 1 | null | 2018-06-22T02:51:07 | 2018-06-22T02:51:07 | null | UTF-8 | Python | false | false | 11,470 | py | # from https://gist.github.com/robertnishihara/87aa7a9a68ef8fa0f3184129346cffc3
# To run the example, use a command like the following.
#
# python sharded_parameter_server_benchmark.py \
# --num-workers=1 \
# --num-parameter-servers=1 \
# --dim=25000
from __future__ import absolute_import
f... | [
"yaroslavvb@gmail.com"
] | yaroslavvb@gmail.com |
11cb7e789ab84179e5ab4c03818628b3c19be50b | b3e9884c931479a9feb699a30a390f85bfa2d3cd | /src/models/items/views.py | 488b29a165ec273e5acb9ab1e1a202f40751cd08 | [] | no_license | dpw1/price-monitor | b05fd460dda6fe48f790a4a58e9de87d6b71db22 | b2f30ff98a949bcca3e2347b43b79e353264b5bd | refs/heads/master | 2020-04-16T08:38:05.072794 | 2019-01-12T20:18:17 | 2019-01-12T20:18:17 | 165,431,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | from flask import Blueprint, render_template, request, url_for
from werkzeug.utils import redirect
from src.models.items.item import Item
from src.models.alerts.alert import Alert
import src.models.users.decorators as user_decorators
item_blueprint = Blueprint('items', __name__, )
@item_blueprint.route('/<string:nam... | [
"diego.boarutto.fortes@gmail.com"
] | diego.boarutto.fortes@gmail.com |
b09c6e1074d997a3f178d5ee43d59926a97c4a30 | 812045c3ec6587827aeb18bde666237dfffc21ae | /tf_quant_finance/experimental/pricing_platform/framework/core/interpolation_method.py | 57fddd9fa9cd9a759018d3941917eee158a4cbf6 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | google/tf-quant-finance | 2062082c85e8679b71e69bbeb579fe338c1b0288 | 0d3a2193c0f2d320b65e602cf01d7a617da484df | refs/heads/master | 2023-08-31T01:58:15.415811 | 2023-08-15T07:37:46 | 2023-08-15T07:38:22 | 198,669,252 | 4,165 | 557 | Apache-2.0 | 2023-08-04T19:25:55 | 2019-07-24T16:09:50 | Python | UTF-8 | Python | false | false | 781 | py | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"tf-quant-finance-robot@google.com"
] | tf-quant-finance-robot@google.com |
81ae3cf4619b6801f526fe160ab1905e1015b058 | e405095912863eb5f4747bce811b085902d04f3f | /tests/api/test_register.py | 5febfbf16b8b4b1a2b539085485e6c2c0db3125a | [
"MIT"
] | permissive | mtmvu/django-rest-registration | 329690626e63a68a9d1ac1fe5f2fb004291fbf90 | 881fcb7144f2463469a9c1030de8b9d78ebff1b6 | refs/heads/master | 2021-05-08T20:12:33.677529 | 2018-01-30T22:42:32 | 2018-01-30T22:42:32 | 119,598,596 | 0 | 0 | null | 2018-01-30T22:42:33 | 2018-01-30T21:48:18 | Python | UTF-8 | Python | false | false | 11,167 | py | import math
import time
from unittest.mock import patch
from django.test.utils import override_settings
from rest_framework import status
from rest_registration.api.views import register, verify_registration
from rest_registration.api.views.register import RegisterSigner
from rest_registration.settings import registr... | [
"apragacz@o2.pl"
] | apragacz@o2.pl |
bd16b319ed4dcba3137983cd669010343712e3de | 3cb91e30e13a776157291ed12cc3a1c5016cbd0b | /tests/scripts/trajectory/parameter.py | af2971c157756e1eaefc39fda9c11e53fba0f6d7 | [] | no_license | juanmed/alpha_ai | 7b545fd63b29a3e9bde4a7fb9d6aeeffc89dc2b7 | 0c7ba285c6cd63f95bb5af2fa26af51b330c9866 | refs/heads/master | 2020-04-25T03:56:52.080914 | 2019-05-09T04:52:19 | 2019-05-09T04:52:19 | 172,494,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | #!/usr/bin/env python
import rospy
import numpy as np
# Trajectory parameter
order = 10
flat_output = 4
# way point checking
# inflation means the scale of virtual cube including way point
inflation = 2
# tolerance is like threshold to decide whether drone pass or not
tolerance = 0.3
ros_isrunning = True
if ros_... | [
"pdydgml93@google.com"
] | pdydgml93@google.com |
7e0667037c44de942b3814486bf6c27aec8611e8 | 72f20ed2decad165c1c48338741cbe24ee318eda | /mini_ic3.py | 17abf27054ac26a0d31faf8e6859ba339ca68c41 | [] | no_license | NerdonblooR/pic3 | 457917cf38f402bac980ece736b4a67b32ca4167 | ce459218791fafb965a7a7a3797ab0a41fd8c1e7 | refs/heads/master | 2020-11-23T23:39:26.791256 | 2020-01-18T21:12:16 | 2020-01-18T21:12:16 | 227,867,578 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,789 | py | from z3 import *
import heapq
import re
import json
import boto3
import pickle
import datetime
# Simplistic (and fragile) converter from
# a class of Horn clauses corresponding to
# a transition system into a transition system
# representation as <init, trans, goal>
# It assumes it is given three Horn clauses
# of th... | [
"njbbtan@gmail.com"
] | njbbtan@gmail.com |
02d357be02aff4280810f88b1334e5be84618ad8 | dabd7e42b063590513aa97e2c37c42aabe5b3d66 | /bookings/migrations/0008_settings.py | 9e7769d60e600c5db6d5d028bc7b33fbff0ca47f | [] | no_license | JsnSwny/Booking-System | 432357b031414e861d38ae38b2e518961961522a | 7100cf1a47f355a4baaa723c68fbe0ef37d70ef4 | refs/heads/master | 2023-05-20T04:58:29.469055 | 2021-06-07T10:11:01 | 2021-06-07T10:11:01 | 209,545,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # Generated by Django 2.2 on 2019-11-28 19:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookings', '0007_delete_settings'),
]
operations = [
migrations.CreateModel(
name='Settings',
fields=[
... | [
"jsnswny@gmail.com"
] | jsnswny@gmail.com |
de49832167eaa5ce137d611d48d18adc111306a6 | 5e61c2a6441a53412ab25de4ed227450d6a48038 | /lesson_003/01_days_in_month.py | c566ef901c3dbabd5e12899368ea4f0effd03727 | [] | no_license | AntonButyrin/SBhomeworks | 577584ba71110f709944270f5edd415247591fee | 100f1c1ca91bb69e55e819d9793b0f55d0ddb663 | refs/heads/main | 2023-03-01T12:00:23.124122 | 2021-02-01T13:09:08 | 2021-02-01T13:09:08 | 334,947,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | # -*- coding: utf-8 -*-
# (if/elif/else)
# По номеру месяца вывести кол-во дней в нем (без указания названия месяца, в феврале 28 дней)
# Результат проверки вывести на консоль
# Если номер месяца некорректен - сообщить об этом
month_number = {
1: 31,
2: 28,
3: 31,
4: 30,
5: 31,
... | [
"noreply@github.com"
] | noreply@github.com |
607d0391a5ca1d9afb87fe0ca87b84523daaf788 | c2dd97c9d51ce3a44cade6e1426564fbc67df10e | /userprofile/migrations/0004_auto_20180523_1407.py | c0c623481f95ba6e765740476c7b2d6999eca002 | [
"MIT"
] | permissive | Gigibit/ubildin | d15e6e6e376d8ce84adbb530ca99779ce4694215 | 7d0834d1a5432f0c00122159f3099cfedf398f10 | refs/heads/master | 2021-07-15T06:32:57.513918 | 2020-02-19T17:44:46 | 2020-02-19T17:44:46 | 241,682,709 | 0 | 0 | MIT | 2021-03-19T23:16:32 | 2020-02-19T17:40:07 | Python | UTF-8 | Python | false | false | 363 | py | # Generated by Django 2.0.4 on 2018-05-23 14:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0003_auto_20180516_1534'),
]
operations = [
migrations.AlterModelOptions(
name='profile',
options={'verbose_n... | [
"gigibit92@gmail.com"
] | gigibit92@gmail.com |
8dafa079019e6389f13ac0f9fa585da38ee8b52a | 19634dfd431c400807cbea50973daad8a8283646 | /src/entangled.py | 9cfd9b5c22110071b3164798de9c3d8e77c28723 | [] | no_license | tianer2820/Entangled | 592f5e85464481edd117e2dc1a629159a878d25b | 8902a629db918b2f0a06436cee7a07badc93e07d | refs/heads/master | 2022-06-01T04:31:18.924471 | 2019-10-29T04:42:55 | 2019-10-29T04:42:55 | 188,439,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | """
Main program
"""
from encript import encrypt
from key_gen import generate_key
from key_management import read_key_info, write_key_info
import os
import re
def realtime_mode(args):
keyname = args[0]
if not os.path.isfile(keyname + '.qkey'):
print('can\'t find key')
return
if os.path.i... | [
"tianer2820@163.com"
] | tianer2820@163.com |
742ac4cb0de10696de786121651155b128a26bc5 | 1e4c7e1c949bd6c396454dccab5a17ed543c5546 | /snippets/settings.py | 76d838983684016722954ac2dda015c565ddf7b5 | [] | no_license | Kennedy-Njeri/Registration-Token-Based-Authentication | 05f621f4e2a3445c6685af1e73921aee009f234b | 464629b94a831bb8e41ddbbea913c6e37d9f8217 | refs/heads/master | 2020-05-09T19:10:45.680297 | 2019-04-14T21:04:09 | 2019-04-14T21:04:09 | 181,367,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,620 | py | """
Django settings for snippets project.
Generated by 'django-admin startproject' using Django 2.2.
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
# ... | [
"mistakenz123@gmail.com"
] | mistakenz123@gmail.com |
b263c4ffc852c144f4043915f25493e9a48a2724 | df2ad917f861d791d6819bd9dac179f58dcbc583 | /questions/forms.py | 88892711fb511d6b4a845c144785e2fab35c0b4e | [] | no_license | ark85/TrackBackEnd2_project | ec419ae3d78596a8c780b47d7e4d9aa524b723b0 | ab99bd17ed50126e1e7b63fe59205c0cc3da4939 | refs/heads/master | 2020-03-31T06:22:29.663806 | 2018-12-17T23:47:02 | 2018-12-17T23:47:02 | 151,979,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from django import forms
class QuestionViewsForm(forms.Form):
sort = forms.ChoiceField(choices=(
('name', 'Name asc'),
('-name', 'Name desc'),
('id', 'Id'),
('author', 'Author')
), required=False)
search = forms.CharField(required=False) | [
"ark100295@yandex.ru"
] | ark100295@yandex.ru |
603e90a1a261eb5641311b929c34e4dbcffdaeb9 | 47334dfe26797df79b7fcd880fae31dc315f525f | /ICPC/2019/Southern/K_Magic_Lamp_2/generate_test.py | 2320f329c236c9c3ffcd7f097c43704a788d55dc | [] | no_license | chinhhi102/GiaiThuat | 08d787701ca47c9053d56978e3f0d7c451328d6f | 4f9fd2810fe4565e35d676c28762836d94d4560d | refs/heads/master | 2020-09-22T07:59:13.193561 | 2019-12-27T17:09:00 | 2019-12-27T17:09:00 | 225,110,911 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from itertools import permutations
from random import randint
n = 100
use = [False for i in range(n + 1)]
print (n)
k = n // 2
for i in range(1, k):
x = randint(1, n)
if not use[x]:
print (x, end = " ")
use[x] = True
for i in range(1, n + 1):
if not use[i]:
print (i, end = " ")
| [
"chinhhi102@gmail.com"
] | chinhhi102@gmail.com |
990910a7c0604e5ad4b193a947481295582b0a82 | 1393abb7d0750205a6fe252dd500e951cce2f284 | /svm_HandWrittenLetters.py | d95e1418ed255aef0b2f95a057764bc8d70be274 | [] | no_license | nm4archana/data-mining | 71d12df6ce9acb3423f7869517ef12900edf85e2 | b236e6409117b0f0d1a131876ace295988584404 | refs/heads/master | 2021-07-24T05:56:13.517865 | 2017-11-02T21:51:25 | 2017-11-02T21:51:25 | 109,322,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | import numpy as np
from sklearn import svm
from sklearn.model_selection import cross_val_score
import pandas as pd
"""
Date : Sep 25 2017
@author: Archana Neelipalayam Masilamani
Project Description:
Implemented Support Vector Machine using scikit-learn. Machine Learning in Python.
The dataset used is HandWritten L... | [
"nm4archana@gmail.com"
] | nm4archana@gmail.com |
ae2efdc26f66073cc42df3fde7a1cc79b763a0b1 | e6ce462bb17492a092fde16e44508ae17c15ac53 | /load_jetmet_tree.py | 800af5e8a470b16645f14c88adca6e53e5ea5058 | [] | no_license | siqiyyyy/jet_depth_analyzer | 8abf01aeac6effd12719164a60cbcc08498e6ffe | ebbda38b11d31d9541b36554a56b3f392a82580f | refs/heads/master | 2020-04-25T07:17:33.633741 | 2019-07-09T17:54:33 | 2019-07-09T17:54:33 | 172,609,847 | 0 | 0 | null | 2019-05-21T22:33:53 | 2019-02-26T00:49:02 | Python | UTF-8 | Python | false | false | 22,659 | py | import numpy as n
import ROOT
rhoall = n.zeros(1,dtype=float)
maxjet = 10000
#event information
nrun = n.zeros(1,dtype=int)
nlumi = n.zeros(1,dtype=int)
nevent = n.zeros(1,dtype=float)
npv = n.zeros(1,dtype=int)
rhoall = n.zeros(1,dtype=float)
rhocentral = n.zeros(1,dtype=float)
... | [
"yuansiqi0114@hotmail.com"
] | yuansiqi0114@hotmail.com |
b3ce66d5ab56ec78ae434f553712d4027996e0c8 | 7bf377472dea25a39933e34726dc581e8f7efb6f | /4_lr_analysis/get_lu_data.py | 393f8e9613fef98a48f8ad3e0c721ad64001b5b4 | [] | no_license | gordonje/deadly_work | 8fe655cca4fea522842609cfdc7fff1582cd4775 | cdd8586eaf71b643b2076ef4389333a64e04da8e | refs/heads/master | 2021-01-21T08:01:09.981286 | 2015-03-20T02:55:28 | 2015-03-20T02:55:28 | 21,902,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,707 | py | import getpass
import psycopg2
import requests
db = raw_input("Enter name of target database:")
user = raw_input("Enter your PostgreSQL username (this might just be 'postgres'):")
password = getpass.getpass("Enter your PostgreSQL user password:")
conn = psycopg2.connect("dbname=%(db)s user=%(user)s password=%... | [
"gordon.je@gmail.com"
] | gordon.je@gmail.com |
7c0079ea785618c2599e7afb0bff571e34ec667c | 3d74cb066e0bf01d422e5fc71ba0c1678873f465 | /main.py | e7a34c2cf51f4f9d0ed1d2a794ae667ca1b4b9cc | [] | no_license | jsuvanto/15-puzzle | 77af8f85bbbae197276c6d243cd275e6af1163f6 | 12682bc5fa0fd35bfc19ba2ccd298db7f7b41a9e | refs/heads/master | 2021-06-24T10:04:00.347360 | 2017-09-10T16:25:18 | 2017-09-10T16:25:18 | 103,012,063 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | import board
# TODO GUI:
# - move buttons
# - quit
# - reset
# - solve (requires a whole new function)
def main():
# Ask user for board size
try:
rows = int(input("Enter number of board rows: "))
cols = int(input("Enter number of board columns: "))
except ValueError:
pri... | [
"jsuvanto@iki.fi"
] | jsuvanto@iki.fi |
4eb866f5fb8682ab8fadaf4c89ab62399ada0266 | 9b8476110a0cc9952af771be0b1f99a0ff6d5272 | /canvasapp/apps.py | 7c11523751d652cc22b6755d3486d3cf2fe44627 | [] | no_license | salonishah331/CanvasPage | 9830a5815b81bf9d2075063ce47e2305eed15e3d | 5b1e3acc5afd51fb58ef2f147ef119a94ed31505 | refs/heads/master | 2021-01-14T04:29:59.802141 | 2020-02-23T22:20:02 | 2020-02-23T22:20:02 | 242,599,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class CanvasappConfig(AppConfig):
name = 'canvasapp'
| [
"salonishah331@gatech.edu"
] | salonishah331@gatech.edu |
ecf60a86f09334ed25b05b794995f4bcc03ae7b5 | 8f73568f02e4ef744841322f4b3f1321efb41261 | /environments/my_env/bin/django-admin | b56cb1201042f5f6a6176ee7fef5a8607d4cf910 | [] | no_license | aonreport2/cpebooklast | 4154839dff0f284f83233bae0ae329f818a5d92e | 6029ef3b99145dacf0685443778dbeae4a37628e | refs/heads/main | 2023-06-20T14:50:03.198971 | 2021-07-18T18:00:08 | 2021-07-18T18:00:08 | 380,532,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | #!/home/thanapat/Documents/newcpebook-master/environments/my_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())... | [
"aonreport2@gmail.com"
] | aonreport2@gmail.com | |
185170f4c8815d42a0eff3114ea6b35622bb1af3 | 62e1a1479ccdc2651f2e339cd657584c2f2fc62f | /move_mouse.py | 8788249862b5f01fdce09dbe885566eb2ac3d2b9 | [] | no_license | daniel-cretney/PythonProjects | d2075883c0ca5ab165749ace69e86e923215b168 | 17b6baefe8126b589cc18c05e0571f755dabd4e6 | refs/heads/main | 2023-03-13T19:53:04.624620 | 2021-03-02T20:21:02 | 2021-03-02T20:21:02 | 343,901,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import pyautogui
print(pyautogui.size())
pyautogui.moveTo(150,100, duration = 20)
| [
"noreply@github.com"
] | noreply@github.com |
6b0a7bd2d974d61447504b9f0b45adcff16dc291 | f4d710f68d715470905daa1245f3b9f4f4c4cef5 | /local_settings.py | da93c18c7fe1d80df9288fb1a2a37e53e9ee22de | [] | no_license | powellc/findhistory_me | c3044a894840e62f12bb2ee4dc0ad7dbe8a524fd | d72eb449eb0e15f0d62a46986ad8551ab1cb66ca | refs/heads/master | 2016-09-15T20:55:57.994241 | 2014-04-15T03:56:18 | 2014-04-15T03:56:18 | 10,428,262 | 0 | 0 | null | 2014-04-15T03:54:33 | 2013-06-01T20:46:48 | JavaScript | UTF-8 | Python | false | false | 658 | py |
DEBUG = True
AWS_ACCESS_KEY_ID = 'AKIAIC6KSWVHASDPKERQ'
AWS_SECRET_ACCESS_KEY = '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'
DATABASES = {
"default": {
# Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
"ENGINE": "django.db.backends.sqlite3",
# DB name or path to database fil... | [
"colin.powell@gmail.com"
] | colin.powell@gmail.com |
20d016d8c835bb90dcdfc491f101ee23416a4a9d | 0ccb70cd22862f5c1617113cec62fb4438093ce7 | /src/gamer/application/tests/fixtures.py | 1667dcd3275df70908ece80cd9b9f344daf4c45a | [] | no_license | socek/gamer | f4590a557819047158c1a8c0e9605632dbaac58c | 040216b44d38f2ab5a111cb55981645d331c2ba3 | refs/heads/master | 2020-09-13T09:42:26.427433 | 2014-10-26T19:44:17 | 2014-10-26T22:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | from haplugin.toster.fixtures import Fixtures as Base
class Fixtures(Base):
def __call__(self):
# example:
# self.create_nameless(Model, name=value)
pass
| [
"msocek@gmail.com"
] | msocek@gmail.com |
5958f2d96723eb9a20b3880f5670aec2ce17f23e | d904ecb1cf65ffbd2bd0332b46ae3c90a9d96158 | /Practiceself/practice02.py | 8c4c829dd45d487ddfda11cd8a41208e19f2d793 | [] | no_license | EraSilv/day2 | 9e1b5573017a6c3e3a4afa3cc0d19de10fcc4d34 | a1528897b150cd856d72e7ab387a1dbb5e0189ee | refs/heads/master | 2023-06-04T00:09:18.992833 | 2021-06-28T11:45:36 | 2021-06-28T11:45:36 | 368,862,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | my_list = [ 'Jan' , 'Feb' , 'March']
print(my_list[2])
# my_list.append('April')
# print(my_list[3])
#-----------------------------------SETS--------------------
# my_set = {'Jan', 'Feb' , 'March'}
# for element in my_set:
# print(element)
# my_set.add('April')
# print(my_set)
# my_set.remove('Jan')
# print(... | [
"erlan2766@gmail.com"
] | erlan2766@gmail.com |
5d5433366a37f373a7f314a8b25e6aa3f725b5ff | edbb5e98d97ffb9a8e516b6d3538e7e801977e8e | /stockosaurus-api/stockosaurus/stocks/serializers.py | c73ce30f64b043fdeb02a620abfd830360cdc2e0 | [] | no_license | kristian-ellis/stockosaurus | d732e5969b1087dc9f1bdeaf5597e64f1dfad079 | cc314d7cf057d683f593560dc1108407e1567777 | refs/heads/main | 2023-06-05T11:23:52.615152 | 2021-06-21T06:13:02 | 2021-06-21T06:13:02 | 378,759,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from rest_framework import serializers
from .models import StockPrice
class StockPriceSerializer(serializers.HyperlinkedModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = StockPrice
fields = ['id', 'price', 'time', 'ticker_symbol', 'owner']
def create(self, valid... | [
"sillesirk@gmail.com"
] | sillesirk@gmail.com |
c94a1a475e1b0bb0560958dde86555cbfa3e67a1 | e4c5ee30ec34cd464d20cbac4087732d71efa690 | /branch/migrations/0001_initial.py | 5d04a56defcb35418969ccb9a91642a641730562 | [] | no_license | Bvegasf/e.api | 8b1067d7f60cb26176698ee824f729f3712443e2 | 0f46637a2684cf33d0eeed95aec08bad1739f606 | refs/heads/master | 2023-04-19T15:15:13.282950 | 2021-05-07T20:09:52 | 2021-05-07T20:09:52 | 353,373,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | # Generated by Django 3.1.7 on 2021-04-07 21:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('location', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='... | [
"brayanjovegas@gmail.com"
] | brayanjovegas@gmail.com |
4d34fb5f2fcc168e6533e3ce8da19ea79db073f5 | 5a5903be0fe32048dfa90cd02334d28ab4a0b236 | /rating/migrations/Trigram_migration.py | f310dfc2ec742a6e47cc60c289456a1bc3f7ca35 | [] | no_license | faaizajaz/consultDB | 3719ad6a7d67ab70898e1dcd553d846be4865d60 | b0c6abe0877557b5118f8cd6a609f0c83fb5d66f | refs/heads/master | 2023-06-27T17:35:56.469423 | 2021-07-26T06:17:16 | 2021-07-26T06:17:16 | 315,247,592 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from django.contrib.postgres.operations import TrigramExtension
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rating', '0005_auto_20210602_0634'),
]
operations = [
TrigramExtension(),
] | [
"faaizajaz@gmail.com"
] | faaizajaz@gmail.com |
9b34c6eb8a68435e7d22837385604c8d8c0674b0 | dfa4bc19560164d81cc767cdc50136e06d33fb13 | /src/common/data.py | 8f2d7154d392cf50f2ff643dfe9506a56d7e7c3d | [
"MIT"
] | permissive | wdoppenberg/crater-detection | 2da7f7e9843171b63b073d013d7f193863165e07 | 471d1bc508dee873cc5d05329147dfc5314bc15d | refs/heads/main | 2023-06-06T11:46:50.748956 | 2021-06-22T07:42:15 | 2021-06-22T07:42:15 | 305,447,421 | 16 | 0 | MIT | 2021-06-07T22:02:33 | 2020-10-19T16:32:29 | Python | UTF-8 | Python | false | false | 6,705 | py | import datetime as dt
import os
import uuid
import h5py
import numpy as np
from matplotlib import pyplot as plt
from tqdm.auto import tqdm as tq
import src.common.constants as const
from src.common.conics import MaskGenerator
from src.common.surrender import SurRenderer
class DataGenerator(MaskGenerator, SurRendere... | [
"w_doppie@hotmail.com"
] | w_doppie@hotmail.com |
00686c1b3bbd8f8b1e0be4132b5f74e32b32863d | 8a2cbaece98bf32d315330246b8e19fa9c616789 | /workload/migrations/0007_teaching_subject_id.py | 9464633810edabb7f467411de34a89800d4430fd | [] | no_license | cn-class/workload | b6ab3f0fc80e83720c54f9de48184912a32f7529 | 535028874d1ecfab94aef2837e10f2aa44577de1 | refs/heads/master | 2021-06-19T11:42:34.584840 | 2017-07-23T15:14:06 | 2017-07-23T15:14:06 | 66,363,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-15 15:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('workload', '0006_auto_20170315_0916'),
]
operations = [
migrations.AddField... | [
"5610520172@student.tu.ac.th"
] | 5610520172@student.tu.ac.th |
d7893781c8869541e806fcbcbc353555c39f40fe | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_280/ch39_2020_03_31_00_53_54_201792.py | 47ea9f05865c88712d8501fe79b7fc7736d39472 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | def tamanho(x):
i = 1
while x != 1:
if x%2 == 0:
x = x/2
else:
x = 3*x + 1
i += 1
return i
nms = 1
ms = 1
x = 2
while 1 < x < 1000:
if tamanho(x) >= ms:
ms = tamanho (x)
nms = x
x = x + 1
print(nms) | [
"you@example.com"
] | you@example.com |
2bc832b1fce648d9a602d9d3e10c9770e92bf65d | 4a49d51b97271d61c1a34a472fd8ad22314e8a8e | /week6/assignment1/assignment1_8.py | 8419c4fdd6c82217e1b43a17b7bfe54cfe3e2406 | [] | no_license | RTae/CPE463 | edd7fda443cd00136e1cb43f313cc27b99905d17 | e44308b0dd40acd811d9ad98fa4a9ae2e0bfa9f2 | refs/heads/main | 2023-06-24T09:39:46.956556 | 2021-07-27T02:37:17 | 2021-07-27T02:37:17 | 330,554,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
img_table = cv2.imread("./images/circles.bmp")
img_table = cv2.cvtColor(img_table, cv2.COLOR_BGR2RGB)
# Define range for value to filter back and white out
lower_hue = np.array([0,0,40])
upper_hue = np.array([255,255,215])
# Convert image to HSV color sp... | [
"potae02@gmail.com"
] | potae02@gmail.com |
0082966d84900fd401c848fc452040242b8351db | 5fad4b8e82e2e9bc64910f9788335f442827c4dd | /evo/migrations/0001_initial.py | 3b8a7736eca16b3a304e76898d3702e2de8e8387 | [] | no_license | mmost12/pokemon | 2f373d37687f268e75374fd204f94f75fc599f9e | f4172147df2f2154b7e5e36cd49146b0145ece79 | refs/heads/master | 2021-01-10T22:52:31.082635 | 2016-10-09T18:28:37 | 2016-10-09T18:28:37 | 70,342,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-10-08 17:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Pokemon... | [
"carlsonwes@gmail.com"
] | carlsonwes@gmail.com |
6f272becb6a9c5882e84a26058b7d26e94968ef4 | 3ad616e2adfa7aa7d4c8e16d2daeb318e6823b8a | /player.py | 442ffefc44600bc6366b81190c4be3e48e0aa868 | [] | no_license | DavKle132/cs364_project01_klein | e058d59baa49ed494f9681016cf1b082c07109bc | 7aec15aec4070cc015e6542e90a84fbff583df86 | refs/heads/master | 2020-03-14T07:53:13.606130 | 2018-05-03T23:18:27 | 2018-05-03T23:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | import sqlite3
from playerGod import PlayerGod
from playerMatch import PlayerMatch
class Player:
def __init__(self, json, jsonPG, jsonM):
self.attributes = (
json[0]['Avatar_URL'],
json[0]['Created_Datetime'],
json[0]['Id'],
json[0]['Last_Login_Datetime'],
... | [
"klein.david@uwlax.edu"
] | klein.david@uwlax.edu |
064964e742e576e3039314cbce62c85970602318 | 2d87756794ab27a8a82ad6389f1678f0ed14f906 | /tests/unit/test_trainer_dict_params.py | b75ffe9f2d15f8385c2b39733f7865ad833640cc | [
"Apache-2.0"
] | permissive | blagojce95/ai-research-mamo-framework | a9e0f70896f686b1cb3a7526480cd0c26c8e2b29 | 7f3b5a5a9fb8b19c9eef453b81b03b6046a33bf2 | refs/heads/master | 2022-11-17T22:43:34.596561 | 2020-07-06T07:02:35 | 2020-07-06T07:02:35 | 277,468,836 | 0 | 0 | Apache-2.0 | 2020-07-06T07:10:47 | 2020-07-06T07:10:46 | null | UTF-8 | Python | false | false | 8,638 | py | import torch
import numpy as np
import os
import pytest
from dataloader.ae_data_handler import AEDataHandler
from models.multi_VAE import MultiVAE
from loss.vae_loss import VAELoss
from metric.recall_at_k import RecallAtK
from metric.revenue_at_k import RevenueAtK
from paretomanager.pareto_manager_class import ParetoM... | [
"taamucl2@um00698.home"
] | taamucl2@um00698.home |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.