blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8212462617b51d5afbf32fbe0aa6e02ac157b1de | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/760.py | c9ed44a45ad2596edbd1cbaff02c0ff2ac596d1c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | def opera(case_list):
sat = []
for e in case_list:
sat.append(int(e))
t = sum(sat)
standing = sat[0]
invites = 0
s_list = []
count = 0
for i in sat:
if i > 0:
s_list.append(count)
count += 1
if s_list[0] == 0:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
dc4154411cebb62610fc115629ae97554429cfad | 4e52ac2399187040720003a3381d30102f376b36 | /users/tests.py | 5ab660b8493b6d104fdf1727d3a22dabd8046a9b | [] | no_license | drobchak1/starnavitest | 5908758c1f7e35dc65e4af617eced68111a5ef61 | 1779655e2a24dee1242a60a8d3c42e1346f2b325 | refs/heads/main | 2023-05-30T05:47:51.992585 | 2021-06-14T09:16:52 | 2021-06-14T09:16:52 | 375,025,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase, APIClient
from .models import User
class AuthTests(APITestCase):
def test_api_jwt(self):
"""
Ensure we can register user and create post using JWT-token.
"""
url = reverse(... | [
"drobchak.iv@gmail.com"
] | drobchak.iv@gmail.com |
679abec5a4e844e55bb688b91516ae2c3e017cd0 | 843cd7e662071d1aeb0acb1c9024bce1cbc49415 | /LTP1-2020-2/PRATICA03/programa01.py | 76c526ba186f4b6d5165a0d96146500dad983b0b | [] | no_license | diego-mr/FATEC-MECATRONICA-0791821037-DIEGO | c1b7c78a1a58c907ec491d72826dc1a2f73f65c5 | e3b5006e6b31739bbdad75c3a617f8fdbb549dbc | refs/heads/master | 2023-01-14T05:05:21.658363 | 2020-11-24T12:22:32 | 2020-11-24T12:22:32 | 292,006,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | # Isso é um comentário em python
# A função print escreve coisas na tela
print('ola Mundo')
| [
"noreply@github.com"
] | diego-mr.noreply@github.com |
ce721d4ba20589c27e7803b042e5ba246649e551 | 0d06d5768d3b91719078043ff8b8b01758b4618d | /bsp/rockchip/rv1108/SConscript | 0a22d7ca51baee247397c00b13ccb9a2a16b03fe | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | h-hys/new_rk2108 | de71255c205cf13d8d9069e7bde84a30ddb06cbc | a899e5e4512e5fc7dbb70cdea19257291e9ff042 | refs/heads/master | 2023-02-09T09:34:35.995623 | 2021-01-06T08:07:42 | 2021-01-06T08:07:42 | 327,238,676 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | # for module compiling
import os
Import('RTT_ROOT')
cwd = str(Dir('#'))
objs = []
list = os.listdir(cwd)
objs = SConscript(os.path.join(cwd, 'HalSConscript'), variant_dir = '.', duplicate=0)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + ... | [
"374122506@qq.com"
] | 374122506@qq.com | |
06fd2a02b8abf201b60c6ad2a418b5f86b9a642d | 697cdbb683ee7a1aff5092f2afa9a462dd26874f | /main.py | fab78b64d8cabf3ed0cf3bdec1e8b73cb2e889a8 | [] | no_license | chenyilin0110/DE_Ackley | 68a85c99142d9f1ac5ffa76299363816d9122bd5 | 7a3de80fe663720a717c07b54b6bedd132d47ac3 | refs/heads/master | 2020-04-24T22:16:01.181077 | 2019-03-10T07:54:27 | 2019-03-10T07:54:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | import numpy as np
import random as rand
import sys
from Mutation import mutation
from Crossover import crossover
from Selection import selection
from Fitness import fitness
import time
Ud = sys.argv[1]
population = sys.argv[2]
dim = sys.argv[3]
F = sys.argv[4]
CR = sys.argv[5]
iteration = sys.argv[6]
Ld = float(Ud) ... | [
"a0989735018@gmail.com"
] | a0989735018@gmail.com |
b3c8fe1b01b4f346e6e37e7e6392529a4e721425 | 70822bf16524420a098dd44e785deadc9b8b0510 | /users/models.py | b12f7813f8d0077079a4c4b00f74d635abfb322b | [] | no_license | Will-Sargeant/Django-Boiler-Plate-Email-UserModel | 28cb1fc21197f706ff66aa23ead308568d1bd8fb | 62c91145e679bee5da37aea14648dfd731870e9b | refs/heads/master | 2021-09-24T18:16:52.049909 | 2019-12-28T01:18:26 | 2019-12-28T01:18:26 | 230,534,912 | 0 | 0 | null | 2021-09-22T18:18:30 | 2019-12-27T23:59:53 | Python | UTF-8 | Python | false | false | 926 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.utils.translation import gettext_lazy as _
import datetime
from .managers import CustomUserManager
class CustomUser(AbstractBaseUser, PermissionsMixin):
id = mo... | [
"will@docpostie.com"
] | will@docpostie.com |
b537ff8a73e8ae1e495b410aacca8edcf82d38a9 | 1b8951a5128a1c36fe3aece5a9c1d8dda039f67d | /sum_divisors_3.py | 8453ccde96b3e9a1b79c41ee0a06d82bc7dc689f | [] | no_license | AndrePina/Python-Course-Work | 89cf03209f0d447940685fad899064670bc9dc0c | 49e39496327be0a3a3381040ba39874855cf1c2f | refs/heads/master | 2022-12-08T22:41:24.591888 | 2020-09-12T11:30:27 | 2020-09-12T11:30:27 | 294,930,576 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # Fill in the empty function so that it returns the sum of all the divisors of a number, without including it.
# A divisor is a number that divides into another without a remainder.
def sum_divisors(n):
sum = 0
divisor_1 = 1
x = 1
# Return the sum of all divisors of n, not including n
while x < n :
if n % d... | [
"aapina427@gmail.com"
] | aapina427@gmail.com |
8b9613542d6316a2175fc90b8151e4c82c1b1256 | f9729802d62bc72df4a6e59c3f49d4bd1fc92043 | /docs/conf.py | da4780f8311665e03ef2fa834069cce5e50e6c75 | [
"MIT"
] | permissive | wefner/emaillib | 50a63e7394d3a09dad3f58b6964335ff1ce298cb | 2a00a3c5d4745898b96e858607b43784fa566fac | refs/heads/master | 2021-06-28T17:51:56.269015 | 2017-09-18T17:27:11 | 2017-09-18T17:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,411 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# emaillib documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# au... | [
"costas.tyf@gmail.com"
] | costas.tyf@gmail.com |
5877b18dbdd8fd46256cb5a59833e6b8f5fa5236 | b7577adc65c91dcf1877dadf07f79e76b4409b54 | /evolving_enemies.py | 8da10ac21ed5ffb878fa3f083f126493b97e2a22 | [
"MIT"
] | permissive | NeonInc/Adaptive-Gameplay | 3fdf134b308f3e084ecf18285a69f8efb9ab39cd | 783797eb0c9e567f1620fb66292ffe6c0a96524a | refs/heads/master | 2020-06-05T15:38:31.262789 | 2019-12-03T12:12:58 | 2019-12-03T12:12:58 | 192,474,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,846 | py | import random
import pygame
import math
import os
import pygameMenu
from pygameMenu.locals import *
# *****************************************************************************
# Info text for the About Menu
# *****************************************************************************
ABOUT = ['Evolving Enemies... | [
"noreply@github.com"
] | NeonInc.noreply@github.com |
20438ca260c2e4f2b4b61fc4b437bb30e8f75350 | 3645e93b899a53a74a456250d95fb63de19513bf | /test.py | 1a8ce91ae02c59b760d5184762f135f3f04d5f4a | [] | no_license | lafftar/headfull-browser-pagescreenshot | 82e41bef2518709de8512cb8f252b347318555c8 | e9ce7e5fa60d202ffbb3f19d05a436264d2bb8c0 | refs/heads/master | 2022-11-25T15:47:08.661774 | 2020-08-02T09:21:01 | 2020-08-02T09:21:01 | 284,429,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,586 | py | from re import sub
from time import time
from io import BytesIO
from PIL import Image
from main import init_chrome
from selenium.common.exceptions import NoSuchElementException
def calc_height_and_scrolls(scroll_height=3700, max_height=1000):
# when the scroll_height is not prime.
for ideal_height in range(m... | [
"tibabalase@gmail.com"
] | tibabalase@gmail.com |
3186cf988967384dfea7e14a0e164a35f8ed2815 | 302336c942159316dde35428a12db42829ad3047 | /capture/asgi.py | 90a62ac86668a47ff5f5b497f9a4a1a2cf52e6a2 | [] | no_license | vishnuteja1000/django-photographer-website | d57a9ab937e6a87ddfca2c6f70a50fc3986809d2 | fe5b48bc95405ff38af78e48bade2341eff31432 | refs/heads/master | 2022-11-18T15:33:11.673418 | 2020-07-18T05:46:50 | 2020-07-18T05:46:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for capture 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_SETTI... | [
"sajib1066@gmail.com"
] | sajib1066@gmail.com |
f4434d0474136df5cbcc1a860c3ed344ae31b615 | ee369616696694bd952e9271c9734dacb3955407 | /counting vowels in strings.py | 13ba9df1dd380aec28aae32721e6577ae8ac1d5b | [] | no_license | Shankar1528/Summer-Internship | a77efb614f3b4f77870f0f0ae46cf5162553dd1b | a844bb7612d28356b82759cdf1b83843811fae33 | refs/heads/master | 2022-10-24T13:35:34.864709 | 2020-06-17T07:38:11 | 2020-06-17T07:38:11 | 265,574,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | def vowel_count(str):
count = 0
vowel = set("aeiouAEIOU")
for alphabet in str:
if alphabet in vowel:
count = count + 1
print("No. of vowels :", count)
str = "GeeksforGeeks"
vowel_count(str)
| [
"noreply@github.com"
] | Shankar1528.noreply@github.com |
683dc7de73c620ecfe6cdae4bc85ed8c09f792b5 | 9fd876c0e04c58312d9a528df5f815128f3711be | /test/1_scrap_beauti_err1.py | 13d76cb4f2519cfe9cfbf0ca1873e28d8bfe15c7 | [] | no_license | Felixsh19/python_datamining | 2c9b6fa7f5f07faa04d02d644569d8c14c11601f | 12b76beb2115425e9c4983c36c1d089c0e9b3299 | refs/heads/master | 2021-01-20T14:24:00.288359 | 2017-06-03T12:57:41 | 2017-06-03T12:57:41 | 90,606,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | #网页可能不存在及服务器错误的情况
from urllib.request import urlopen
from urllib.error import HTTPError,URLError
from bs4 import BeautifulSoup
def getTitle(url): #捕捉异常
try:
html = urlopen(url)
except (HTTPError,URLError) as e:
return None
try:
bs0bj = BeautifulSoup(html.read())
... | [
"noreply@github.com"
] | Felixsh19.noreply@github.com |
ac40d8d902f38f23ede1851f3b163c1ed72c880c | 2ebd8275f377e9993b69b10f2ccf3953bde3eeb8 | /genertic/recommendation/migrations/0008_populations_user.py | b7e2147b1c890c4ec220b9396f4f2a2ae51742cd | [] | no_license | Earnn/Recommendation-System | d5c614d316fb38a500723e8e7d6864fb0130efc4 | 59d32673db29091935d91c64c4ff021317d4947a | refs/heads/master | 2021-05-11T00:55:13.336966 | 2018-03-21T10:48:37 | 2018-03-21T10:48:37 | 118,313,960 | 0 | 1 | null | 2018-03-21T09:40:34 | 2018-01-21T07:29:10 | CSS | UTF-8 | Python | false | false | 611 | py | # Generated by Django 2.0.2 on 2018-03-06 16:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('recommendation', '0007_a... | [
"akanip2@gmail.com"
] | akanip2@gmail.com |
4a37049bdd2a5eb1ab32b0f6c0feabcf07e1d909 | 0bc9bff4fd4bd72b0ad681b79f0e39cdb9fc9dc0 | /voximplant/management/commands/vox_call_list_download.py | 7ea6954170db7d549c13f6340aae7c904ee5af68 | [
"MIT"
] | permissive | telminov/django-voximplant | bc4fcb53147d9a318857b8213934217ebfc8fdef | a0165498d1727039e26f77724079033c252a3611 | refs/heads/master | 2020-05-22T01:16:43.631059 | 2017-09-13T04:41:47 | 2017-09-13T04:41:47 | 58,752,532 | 4 | 2 | null | 2017-09-13T04:41:48 | 2016-05-13T15:39:03 | Python | UTF-8 | Python | false | false | 395 | py | # coding: utf-8
from django.core.management.base import BaseCommand
from ... import tools
class Command(BaseCommand):
help = 'Get call list detail'
def add_arguments(self, parser):
parser.add_argument('--id', dest='call_list_id', type=int)
def handle(self, *args, **options):
call_list_id... | [
"sergey@telminov.ru"
] | sergey@telminov.ru |
1818596c5ad8da3b50be846123ee1b1a949d7e0b | 6d86315ee2383e768ff6856b06271fcc116f5e1f | /tests/.locust/lib/python3.8/site-packages/locust/test/test_runners.py | d5b6ae3dba457863c37d9884fc0493a149a92020 | [
"MIT"
] | permissive | iDataist/Deploy-a-Flask-Machine-Learning-App-to-Azure-App-Services-with-a-CI-CD-Pipeline | 8663e4100f7890fcc9cd98e11fdfb86221f1be61 | adc580eebc0f1064a7b1fb23d150a2c6cd7a71ea | refs/heads/main | 2023-06-14T04:20:57.497234 | 2021-07-12T15:50:21 | 2021-07-12T15:50:21 | 363,522,798 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 64,875 | py | import mock
import unittest
import gevent
from gevent import sleep
from gevent.queue import Queue
import greenlet
import locust
from locust import runners, constant, LoadTestShape
from locust.main import create_environment
from locust.user import User, TaskSet, task
from locust.env import Environment
from locust.exce... | [
"huiren16@gmail.com"
] | huiren16@gmail.com |
dbcece8b142ebd4d2acf78f79ac9e5a07c15cad7 | 4aadd3b54d847559948ad736420ee4313dd2d2a9 | /main.py | beac7dbd881da4296ca003c00e95fc06a50e0def | [] | no_license | Xingxu1996/ADML | 339186616ce247083f500bdd7dba9550eb057ca7 | f0aefd91c4e26a3f59b665917bc2a43b06161582 | refs/heads/main | 2023-04-30T13:14:47.805896 | 2021-05-15T06:14:15 | 2021-05-15T06:14:15 | 367,554,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,753 | py | import scipy.io as io
import torch
import torchvision
import os
from sklearn.metrics import confusion_matrix
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
from torch.optim import lr_scheduler
import torch.optim as optim
from torch.autograd import Variable
from mtrainer import *
import numpy as np
from datahd import *
cud... | [
"noreply@github.com"
] | Xingxu1996.noreply@github.com |
bd162ea5c30a6a6a8905b5c33e0068e0a0a682ec | 20cdaa9c53e80fe93718fe989d3c14192cf86e04 | /dgp/utils/torch_extension/pose.py | 184bfe1a8b6894df27cedc9a1a0f51e2d11b651c | [
"MIT"
] | permissive | parallel-domain/dgp | d84de3a9ed14cf1cdbe8903251e20ca1a696f4a1 | ee21c27b3423a23527a28b8433c96ea800315337 | refs/heads/master | 2023-06-27T23:02:46.296109 | 2021-08-03T01:30:41 | 2021-08-03T01:30:41 | 268,911,939 | 0 | 0 | MIT | 2021-08-03T01:30:42 | 2020-06-02T21:24:44 | Python | UTF-8 | Python | false | false | 19,649 | py | # Copyright 2019 Toyota Research Institute. All rights reserved.
"""Torch utilities for rigid-body pose manipulation.
Some of the rotation/quaternion utilities have been borrowed from:
https://github.com/facebookresearch/QuaterNet/blob/master/common/quaternion.py
https://github.com/arraiyopensource/kornia/blob/master... | [
"wwwrrry612@gmail.com"
] | wwwrrry612@gmail.com |
367a3facb1999817f6db62d7395cf8ba714284bf | 3e563bd01bf57fa73818e9ddbd61bc15acae3d61 | /library_service.py | 069d08e78dcbb065c75b5daeff3416c3af19d3aa | [] | no_license | jancvek/library-check | 08032548fd6c3a742ad2c039f0bfdca7e73be705 | 5614cab69a205b74c670b67165526e7f9c92402c | refs/heads/master | 2021-06-28T03:00:18.009735 | 2020-10-31T14:05:03 | 2020-10-31T14:05:03 | 228,236,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | import time
import datetime
import smtplib
from email.message import EmailMessage
import os
currPath = os.path.dirname(os.path.abspath(__file__))
parentPath = os.path.dirname(currPath)
libPath = parentPath+'/jan-lib'
# tole moramo dodati da lahko importamo py file iz drugih lokacij
import sys
sys.path.i... | [
"jan.cvek@gmail.com"
] | jan.cvek@gmail.com |
da4d7b80c470a5ea6762ba816acdd9922c6b0eaf | 05a211233ccb01ecd2c12367548cba65bbdbc5d9 | /examples/02relative/app/en/__init__.py | 771d13b64c475a7ca1ad41ba952a579d17934208 | [] | no_license | podhmo/miniconfig | 94ee7fa6345816daa83a74b1cbfb40592f221fbb | 4cee752fd965c8094ed9d1ff1c33e531e88e479c | refs/heads/master | 2021-05-21T11:49:14.836184 | 2021-03-13T14:06:27 | 2021-03-13T14:06:57 | 26,328,967 | 3 | 1 | null | 2020-07-09T19:24:51 | 2014-11-07T16:58:28 | Python | UTF-8 | Python | false | false | 157 | py | def includeme(config):
config.include(".spring:include")
config.include(".summer")
config.include("./autumn")
config.include("../en/winter")
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
0b359de6edb5995644e1b492351b5a6eff68069c | 1020a87ba3569c879478b6a88f73da606f204c34 | /tests/generator/test_compression.py | c5c000d40ba6e08eaf9ff7457e1ef520b8fa4ca6 | [
"Apache-2.0"
] | permissive | MIGPOOL/test-blockchain | deeceaa5d7c6d24e528092ef32036aff8149baff | 567fd1265b6a27f2f4e21c7787e39072e4b7c085 | refs/heads/main | 2023-08-22T03:27:19.638361 | 2021-10-26T22:42:42 | 2021-10-26T22:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,156 | py | # flake8: noqa: F501
from dataclasses import dataclass
from typing import List, Any
from unittest import TestCase
from greendoge.full_node.bundle_tools import (
bundle_suitable_for_compression,
compressed_coin_spend_entry_list,
compressed_spend_bundle_solution,
match_standard_transaction_at_any_index,
... | [
"83430349+lionethan@users.noreply.github.com"
] | 83430349+lionethan@users.noreply.github.com |
95769dc3343484a36dee41a90380214fab208a59 | 5761f160cdbd97b8c69601cd85bf41788b257ace | /Laboratorios/resorte_euler.py | b773c2a5be31fd94b0f6761d8d3acfcd73b2e572 | [] | no_license | daavera/METODOS | 3c63d7636ad880cad96cc6ef4f488c4e7663af58 | 775b47de08bf729e1388be46b61c5456f4524098 | refs/heads/master | 2020-12-02T05:24:41.789369 | 2017-07-30T18:00:34 | 2017-07-30T18:00:34 | 96,900,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
g = 9.8
k = 42.0
mu = 0.15
m = 0.25
h = 0.001
min_t = 0
max_t = 5
n_points = int((max_t - min_t)/h)
t = np.zeros(n_points)
x = np.zeros(n_points)
dx = np.zeros(n_points)
x[0] = 0.2
dx[0] = 0.0
def func_prime_1(t,x,dx):
r... | [
"da.avila@uniandes.edu.co"
] | da.avila@uniandes.edu.co |
193b3e6cc93d153726e8746368d795219d71f305 | a3775815cab7a6ece5f52a0147df3f306255aa99 | /code/python/archive/c0112_plot_truncate.py | f4df66adcad81fe9192323685661eb4872a0a541 | [
"MIT"
] | permissive | jesnyder/MeasuringStress | d7c5c900f6f4fb38d3c2ea2d31285b2ab8db8455 | c512bc352cc71e5a354980d3d509f03abec71e79 | refs/heads/main | 2023-05-29T04:16:28.155977 | 2021-06-10T01:35:08 | 2021-06-10T01:35:08 | 375,521,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,749 | py | from c0101_retrieve_ref import retrieve_ref
from c0101_retrieve_ref import retrieve_ref_color
from c0101_retrieve_ref import retrieve_sensor_unit
from c0102_timestamp import timestamp_source
from c0109_retrieve_meta import retrieve_meta
from c0111_retrieve_analyzed import retrieve_analyzed
import os
import m... | [
"jesyndre@gmail.com"
] | jesyndre@gmail.com |
8a3197965c72c05d02eb89c22ae9fd6abe9a2727 | 2331d06694b8b56ce0894f7353a2c6a4a869bb01 | /fimod/models/__init__.py | 6be4a62514cbe0226131db2c85112dcd1bee50c0 | [
"MIT"
] | permissive | Miksus/Fimod | da2bbb0d23f96e85976ccb1edb1cabc8495fb147 | 357ae2fa5693cf5170046c7387e47bafa591b3b8 | refs/heads/master | 2020-05-17T13:24:47.541762 | 2019-05-11T17:38:34 | 2019-05-11T17:38:34 | 183,734,221 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | from .instruments import * | [
"koli.mikael@gmail.com"
] | koli.mikael@gmail.com |
6da8896820cb21775182cc8b2f30d43f369eae43 | 803176d4f2798989623c62f091f0d5cca687aad3 | /sorting_recursive.py | 7d2426d95ea2377f69e96f89c1c668f1d448098d | [] | no_license | Tylerholland12/CS2-1 | 79986bb437e4c517d80eb9ba198226cea3e83471 | a095d23c48c19926ad6fd9be55fb980904dcc495 | refs/heads/main | 2023-01-31T00:20:48.603002 | 2020-12-08T14:33:42 | 2020-12-08T14:33:42 | 304,582,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,944 | py | #!python
def merge(items1, items2):
"""Merge given lists of items, each assumed to already be in sorted order,
and return a new list containing all items in sorted order.
TODO: Running time: ??? Why and under what conditions?
TODO: Memory usage: ??? Why and under what conditions?"""
# create new e... | [
"tyler.holland@students.makeschool.com"
] | tyler.holland@students.makeschool.com |
e966da96ef00655ecfcb50ad075270f801c7e332 | b25fe1ee3ddf0ae068fe25a2a9d579543719c4b5 | /camera_calibration.py | 73db067d199904def97f90b083ea36040e1a11dc | [] | no_license | Erazor1980/CarND-P4 | feda18b7be46835d025db8221b314d5730442922 | 0326dea0e43437320553c2d6b119a2dfbcdfcc52 | refs/heads/master | 2021-01-01T04:23:25.309347 | 2017-07-17T21:49:34 | 2017-07-17T21:49:34 | 97,169,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py | import numpy as np
import cv2
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import glob
# pre-calculated values -> for faster debugging / coding
'''
Camera matrix:
[[ 1.15396093e+03 0.00000000e+00 6.69705359e+02]
[ 0.00000000e+00 1.14802495e+03 3.85656232e+02]
[ 0.00000000e+00 0.0000... | [
"lukas.caup@gmx.de"
] | lukas.caup@gmx.de |
d4ef6a2a9b9e68b2b0415bead6910121e684520d | 7800e7fe29d2806696b56e172528db63b8cfa729 | /accounts/migrations/0003_talent_user.py | 7035e27bcf15cd45613a8584a79653b58a2137c2 | [] | no_license | brandondelpozo/startuptalentlive | 0f418f0f88ac871f72148bde719103d05b08e9ad | bfdffa515a86cb95193a6a90f9dce6028e705c96 | refs/heads/main | 2023-07-17T18:18:46.594514 | 2021-09-02T17:42:30 | 2021-09-02T17:42:30 | 334,286,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | # Generated by Django 3.0.6 on 2020-10-11 23:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('accounts', '0002_remove_... | [
"branzzel@gmail.com"
] | branzzel@gmail.com |
7138ed2a849354335f6674e80424ccc1659246e3 | 307e52d79c9068a2648ae82bbe11cd58733bba37 | /Convert/ConvertTruth.py | 2688385564e86b4c2474fb0ca6454547eb8a182e | [] | no_license | greatofdream/Recon1t | 0aa775c43dcfa5b3da7b5894e2567fbe8e7b2991 | 80e58ba3c2c23f1efa962d02fcb2205a95aa716f | refs/heads/master | 2022-11-09T14:12:55.747488 | 2020-06-09T02:43:24 | 2020-06-09T02:43:24 | 263,953,536 | 0 | 0 | null | 2020-05-14T15:31:27 | 2020-05-14T15:31:26 | null | UTF-8 | Python | false | false | 2,440 | py | # Convert ROOT file to HDF5 file
import numpy as np
import ROOT
import sys
import os
import tables
# Define the database columns
class TruthData(tables.IsDescription):
E = tables.Float64Col(pos=0)
x = tables.Float64Col(pos=1)
y = tables.Float64Col(pos=2)
z = tables.Float64Col(pos=3)
px = tables.Fl... | [
"839566105@qq.com"
] | 839566105@qq.com |
0404207e24a8631d8b813ddd8d7e3dafffc06b32 | 0415ece6fa136346b7d450e1b3d6ca83b57abbad | /pset6/similarities/similarities/helpers.py | c866cc8c8cbed3a4989e70fbbbd86d177b57845f | [] | no_license | dishiinboxru/HarvardComputerScienceFifty | b18c19cd3804ad7299665ad3b0aed7253279554a | a5fa1da7d910cb7af31caecff5efcfed05678400 | refs/heads/master | 2022-04-16T15:59:52.968918 | 2020-04-16T16:17:16 | 2020-04-16T16:17:16 | 256,265,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | import io
from nltk.tokenize import sent_tokenize
def lines(a, b):
set1 = set()
set2 = set()
# library to work with strings
s = io.StringIO(a)
t = io.StringIO(b)
for line in s:
set1.add(line.rstrip())
for line in t:
set2.add(line.rstrip())
list1 = list(set1.intersec... | [
"dmitrii.shimanskii@griddynamics.com"
] | dmitrii.shimanskii@griddynamics.com |
ba5d12e3a9f281a603a4f3fc0b6ae61ff59e2ad6 | b05bd7c104a51910c6ed9d6f0e8d039ffa108f2b | /carros/migrations/0004_auto_20201204_2106.py | c25e4f02c0364f388b0077ad46c71811b1b44762 | [] | no_license | BrunoVittor/TesteGregory | 76e12585d4532dc8ab4836c567b5ba56469139e5 | 2c7e3afdb2a62d0464189153a9ab150d69d89083 | refs/heads/master | 2023-04-01T22:56:49.422893 | 2021-03-31T22:49:59 | 2021-03-31T22:49:59 | 334,147,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.2 on 2020-12-04 21:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carros', '0003_auto_20201204_2103'),
]
operations = [
migrations.AlterField(
model_name='carros',
name='ano',
... | [
"bv.everit@itmss.com.br"
] | bv.everit@itmss.com.br |
1aa463d09d68651a8092b00176506f2a9cc07477 | 0a717438a8f828d5ad0ad7dffab53a4f5ecef970 | /ml_trading/ex02.py | 3b33821d52550004671ecb76744ad3e0328a431c | [] | no_license | swjo207/finance_study | 009a2ba0e27298f945bd00e8a656920050487196 | e4ed0cc5cce70781f94d82c680159b789364aea5 | refs/heads/master | 2020-12-24T19:28:06.558566 | 2016-06-01T12:14:38 | 2016-06-01T12:14:38 | 58,996,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import requests
from bs4 import BeautifulSoup
from stockcode import StockCode
def downloadCode(market_type):
url = 'http://datamall.koscom.co.kr/servlet/infoService/SearchIssue'
html = requests.post(url, data={'flag':'SEARCH', 'marketDisabled': 'null', 'marketBit':market_type})
return html.content
def parseCodeHT... | [
"swjo207@gmail.com"
] | swjo207@gmail.com |
689fa8405d8adf818c5b3563f60186d16fa9f9f1 | 3b07655b0da227eec2db98ab9347c9e7bdbc3ffd | /scielomanager/editorialmanager/notifications.py | 076258bb112ce9c91be83ae60a0fc14ce5db7541 | [
"BSD-2-Clause"
] | permissive | scieloorg/scielo-manager | a1b7cc199e5f7c4d4b34fd81d46e180028299d7d | 0945f377376de8ef0ada83c35b4e2312062cdf45 | refs/heads/beta | 2023-07-12T08:23:59.494597 | 2017-09-28T18:39:39 | 2017-09-28T18:39:39 | 1,778,118 | 9 | 5 | BSD-2-Clause | 2023-09-05T19:42:58 | 2011-05-20T19:41:53 | Python | UTF-8 | Python | false | false | 3,509 | py | # coding: utf-8
import logging
from django.core.exceptions import ObjectDoesNotExist
from scielomanager.tools import get_users_by_group_by_collections, user_receive_emails
from scielomanager import notifications
logger = logging.getLogger(__name__)
class IssueBoardMessage(notifications.Message):
EMAIL_DATA_BY... | [
"juan.funez@gmail.com"
] | juan.funez@gmail.com |
44f150c666e75aa32b284dd253d435323b5f0de0 | 7dba60ae27ff247705607839348f017b85f5da16 | /nyumbax/migrations/0010_remove_hood_user.py | 9bd48cf28d900417152b7edac6e33f76bd08d027 | [
"MIT"
] | permissive | BwanaQ/nyumba-kumi | 7edccb6745ede6d9f6faf5bd8c0dcf6e24726991 | c264b0941c77a4d7175a2dc5380723bea1acf380 | refs/heads/master | 2023-04-05T09:32:34.867456 | 2021-04-13T15:54:16 | 2021-04-13T15:54:16 | 356,136,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.2 on 2021-04-13 04:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('nyumbax', '0009_rename_name_hood_title'),
]
operations = [
migrations.RemoveField(
model_name='hood',
name='user',
),
... | [
"thunjawax@gmail.com"
] | thunjawax@gmail.com |
bb7bd7965485c691b95bcf7005e93b16f68e6785 | 7fd3c972968416c27982194220e8f83f88bda99a | /Algorithms_LinkedLists/Code/566_ReshapeMatrix/v0.py | 4dc8e8d4bb77e9a4f4c635e299c5331e7412b4c6 | [] | no_license | AKHeit/LeetCode | a5093271eb1d9e27776e6b491f972be607802a72 | d91f60431aa7767d1a854e0e27a26023fc8ec45c | refs/heads/master | 2021-09-02T13:08:27.073505 | 2018-01-02T22:49:07 | 2018-01-02T22:49:07 | 113,120,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,395 | py | """
Problem: 566 Reshape Matrix
Level: Easy
Tags: Basic, Math
Technique: Simple Math
Status: Accepted
Problem Description:
In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data.
You're given a matrix represented by a two-di... | [
"heitman.alexander@gmail.com"
] | heitman.alexander@gmail.com |
42ae7af6024d205e88ad2aa61c2d8c5c3a071dc3 | 92cc5c61799e93446d6562a6cc9fb74e9220c6c7 | /mac-graph/cell/mac_cell.py | a159f0e137574775b4d6c51682a27dc300eb9ca7 | [
"Unlicense"
] | permissive | houqp/mac-graph | 2728c89605b71e7ac610303e7100797787f0fa30 | ae91e5708d2a63d157a397b608acf720f4c4d840 | refs/heads/master | 2020-03-22T20:41:10.786619 | 2018-07-11T19:20:41 | 2018-07-11T19:20:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py |
import tensorflow as tf
from .read_cell import *
from .memory_cell import *
from .control_cell import *
from .output_cell import *
from ..util import *
class MACCell(tf.nn.rnn_cell.RNNCell):
def __init__(self, args, features, question_state, question_tokens, vocab_embedding):
self.args = args
self.features =... | [
"david@sketchdeck.com"
] | david@sketchdeck.com |
24a2295b2bcd8c27d0e2679b57d06861944a3c4c | fb5d1d93c7432912f7f5e1d9ff50309f49bf6b16 | /computeIonpairstat.py | 4759b29657ec89821751cf212070247ea465b370 | [] | no_license | Eileencaraway/Joyjit-s-Python-Script | 0089635bdd8609d9ae28aa03f0029304d16542b0 | 48c29fa7f1a0060b7fc5b791ce635e1ecdeb2e98 | refs/heads/master | 2021-09-20T15:21:14.717982 | 2018-08-11T06:56:57 | 2018-08-11T06:56:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,234 | py | #!/usr/bin/env python
import sys
import os
import StringIO
import math
import numpy
from numpy import *
from histogram import *
#####################################################################################
#####################################################################################
"""
The script com... | [
"noreply@github.com"
] | Eileencaraway.noreply@github.com |
adff1f364ab90a5fe4e91a4602dacc1549f8b535 | 5d189a062dc0118c9c5915264d9646d6f747e08f | /oauthlib/oauth2/rfc6749/endpoints/pre_configured.py | c2f33afd68a4a2c2e68970663c3f6e0729e007ec | [] | no_license | Zhuoli/SocialComp.HW3 | a19a4c930e2976d7043ddd42c778857737e45c55 | 3a178328c99ef38fe0ab0c10955d73363d2e2bfd | refs/heads/master | 2020-04-28T13:33:31.017149 | 2013-11-14T15:33:44 | 2013-11-14T15:33:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,066 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
"""
oauthlib.oauth2.rfc6749
~~~~~~~~~~~~~~~~~~~~~~~
This module is an implementation of various logic needed
for consuming and providing OAuth 2.0 RFC6749.
"""
from ..tokens import BearerToken
from ..grant_types import Authori... | [
"ruanqizhen@gmail.com"
] | ruanqizhen@gmail.com |
7a6721be75418ccf2e20180da4156ca261b1a8a8 | 7573f7485a5039f6374d5740009cc33ecf83ef62 | /lishengchun/uploadsets.py | 278e553db694d23144ae2d88742e55d0574ca6a1 | [] | no_license | hugleecool/lishengchun | 5323eb851b7d8b007655f2e2d1ba92026861a134 | 7c1ebb4bc746320f3c7605045a8300220c97cb39 | refs/heads/master | 2021-01-18T13:22:36.737105 | 2014-02-15T10:58:29 | 2014-02-15T10:58:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | # coding: utf-8
from flask.ext.uploads import UploadSet, IMAGES
workimages = UploadSet('workimages', IMAGES) | [
"hustlzp@qq.com"
] | hustlzp@qq.com |
8113e1b93465b1d107bce5ef77cae82100458f29 | e08bc87afbc165ed0cd27afe2c7908323e08cd8b | /blogs/urls.py | 18127f13d374ebe6529a203214700d2a661a6a70 | [] | no_license | Code-Institute-Submissions/mcranter-Pwdr-Brand_JulyResub | 6060c341e973253a3a45d5df0d3dbe3e4581b811 | 6d9d1f347fd31b34d64f184a540b22ea0b3bba33 | refs/heads/master | 2023-07-01T09:19:28.618767 | 2021-07-25T11:54:03 | 2021-07-25T11:54:03 | 390,705,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from django.contrib import admin
# Register your models here.
from . import views
from django.urls import path
urlpatterns = [
path("", views.post, name="blogs"),
path("detail/<slug:slug>/", views.post_detail, name="post_detail"),
path("add_blog/", views.add_post, name="add_post"),
path("edit_blog/<sl... | [
"mcranter@gmail.com"
] | mcranter@gmail.com |
d102939de5fab1bba6d0f25bad66b355c377e36b | 3d7cd241d86da789528ebd18cd436932b52f136e | /complaints/urls.py | 04620e0d9c8699d2ad910ec6ab4a5df3d5b3eeb0 | [] | no_license | Arpit-X/ACL | 323bd09228abd61acf785f7eb627d8b1b29ce35a | 3d116e2c03f737caa676bd35bac1945e0e304d8b | refs/heads/master | 2020-04-26T07:52:55.267484 | 2019-03-03T12:21:38 | 2019-03-03T12:21:38 | 173,406,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from complaints import views
router = DefaultRouter()
router.register(r'', views.ComplaintViewset)
urlpatterns = [
path('', include(router.urls)),
] | [
"arpit.gupta@ibigroup.com"
] | arpit.gupta@ibigroup.com |
2728120e2c4541f55d6851e56129bb3006d29142 | 71db6c302492c470f90c63a9dd57181337674a18 | /ch3/bai3.24.py | 2859708e19671a2202817314990f41fd21f12bae | [] | no_license | huybv1999/PythonSolution | 44dd474890bdea4a7bfc108a7d13eeaaca06f36e | 54fff433bb370e4b1cb4f980660a6f77fdb4d3af | refs/heads/main | 2023-01-19T23:55:06.867269 | 2020-11-30T15:25:53 | 2020-11-30T15:25:53 | 305,415,533 | 0 | 0 | null | 2020-11-28T19:54:12 | 2020-10-19T14:40:54 | Python | UTF-8 | Python | false | false | 292 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 5 18:15:36 2020
@author: huybv1998
"""
n = int(input("nhap 1 so n : "))
for i in range(1, n):
sum1 = 0
for j in range (1, i):
if (i % j == 0):
sum1 += j
if (sum1 == i):
print(sum1)
| [
"noreply@github.com"
] | huybv1999.noreply@github.com |
0a2d71946f7a3beb7d3039832ef4d851ca101ab9 | 6da19be45ff986768eb820f11691977cb3c84772 | /Python/5_Advance_buily_in_functions/501_generator_example/app.py | f86cf0322af9c70c5287d5b23541ecb63ab41ed6 | [] | no_license | alexp01/trainings | 9e72f3a571292b79d2b1518f564d2dc0a774ef41 | 9d8daee16f15e0d7851fab12ab3d2505386a686c | refs/heads/master | 2023-05-04T23:37:13.243691 | 2023-05-02T08:02:53 | 2023-05-02T08:02:53 | 272,425,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py |
# https://www.udemy.com/course/the-complete-python-course/learn/lecture/9445596#questions
# yield can be used to temporary stop a function, so that you can coninue it afterwards
def get_100_numbers() -> int:
i = 0
while i < 100:
yield i
i +=1
# yield is like a return, but it will also rememb... | [
"34630182+alexp01@users.noreply.github.com"
] | 34630182+alexp01@users.noreply.github.com |
ecf131c42e0620bb2b477ded3c859a74ccab5c4d | 049c5b8b38960692a40a46f41c91a39137437fcd | /perfect.py | 2513bedd8798d203bf322a2abb7b34e72e720835 | [] | no_license | sanketmakh/PROJECT | 95e3c79f8bf6c4533d6beec0f0a141afe7ba4dc9 | 4cfecb6702f7dc9af1fb3502b2a9414e214bbae8 | refs/heads/main | 2023-06-18T23:51:52.500055 | 2021-07-10T04:49:23 | 2021-07-10T04:49:23 | 384,611,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,149 | py | # Health Management System
# Total 6 Files, 3 For exercise and 3 For for diet
# 3 clients - Harry, Rohan and Hammad
# write a function that when executed takes as input client name
# one more function to retrieve exercise or food for any client
import datetime
def getdate():
return datetime.datetime.now(... | [
"noreply@github.com"
] | sanketmakh.noreply@github.com |
3c9b520785fce67713ca22c75212273d02f94a2b | a61f9f5f7ef89ac77adc6d4a9363952b1487bedf | /alex28/alex28/asgi.py | 97411a6f4b507ad09a01f7c56706eef724e4d5ce | [] | no_license | Poojakulkarni18/AdvanceDjango | 6937b92e3a430086025eca4883a59c16386883c6 | 32994b1776e29469dcfbccd87e1e56ca1cbcb84a | refs/heads/main | 2023-04-16T06:38:10.920228 | 2021-04-21T10:56:21 | 2021-04-21T10:56:21 | 360,131,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for alex28 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_SETTIN... | [
"pooja.kulkarni1811@gmail.com"
] | pooja.kulkarni1811@gmail.com |
3aa84a12c555bb02030d3ec9127a6ee3676a3089 | 3086b5195cb4dbb27aa73a24f6bf964440dff422 | /tools/fileinfo/detection/packers/pe-pack/test.py | 0d3de334959002d7c06f44c3a66d04733d5aa5ee | [
"MIT",
"Python-2.0"
] | permissive | avast/retdec-regression-tests | 8c6ea27ce2f5d0dfa6e6c845c38b56fa5bdfcc23 | 6662fed9d73cb7bc882ea69fd2429d5464950e39 | refs/heads/master | 2023-08-31T05:53:16.967008 | 2023-08-07T13:33:00 | 2023-08-15T08:33:07 | 113,974,761 | 7 | 10 | MIT | 2023-08-15T08:33:08 | 2017-12-12T10:11:00 | Python | UTF-8 | Python | false | false | 295 | py | from regression_tests import *
class Test(Test):
settings = TestSettings(
tool='fileinfo',
input='fact_rec.ex'
)
def test_correctly_analyzes_input_file(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output.contains(r'.*PE-PACK \(1\.0*')
| [
"petr.zemek@avast.com"
] | petr.zemek@avast.com |
a19cd68debaab447420fbebc41cf433078095bc9 | 794075998ca79c106cdfa145c508a2564414f9e7 | /flask-nlp-api/nlp/clean_html.py | cada7c0718cbcf1207062dbee65e7c6e3351c886 | [
"MIT"
] | permissive | dr-jgsmith/flask-nlp-api | 814ab8cfb95ab20fd378642a17e5e3e4bdeb8851 | bc47594a0b200271ff71d1637ae76338d3b3912c | refs/heads/master | 2020-06-01T07:15:29.648678 | 2019-06-07T06:44:25 | 2019-06-07T06:44:25 | 190,694,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | import re
def clean_html(html):
"""
Remove HTML markup from the given string.
:param html: the HTML string to be cleaned
:type html: str
:rtype: str
"""
str_html = str(html)
# First we remove inline JavaScript/CSS:
cleaned = re.sub(r"(?is)<(script|style).*?>.*?(</\1>)", "", str_htm... | [
"justin.smith@directharvest.io"
] | justin.smith@directharvest.io |
7a3b0b6c87c357aadf257f4f44f512d2f2a6cd10 | 46c33a3f955f5130aea0c8bea19c1439665b7d3a | /code/filt_key_kmer.py | 5b3ddb66fbd15eec434c2939676373520e59167f | [
"Apache-2.0"
] | permissive | ZjGaothu/KmerTR | c078a1af2c2acd7276cff74ee8c2722210c5f96c | cfaa7169c0f40401d8cdcbf9c8107ad3bb3d103e | refs/heads/main | 2023-05-25T19:52:41.515682 | 2021-06-06T13:18:34 | 2021-06-06T13:18:34 | 364,833,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | import numpy as np
import pandas as pd
import argparse
def seq2kmer(K,sequence):
seq = sequence
encoding_matrix = {'a':'A', 'A':'A', 'c':'C', 'C':'C', 'g':'G', 'G':'G', 't':'T', 'T':'T', 'n':'N', 'N':'N'}
kmer_mat = []
for i in range(len(seq)-K+1):
sub_seq = seq[i:(i+K)]
sub_seq = list... | [
"noreply@github.com"
] | ZjGaothu.noreply@github.com |
0022ed38288d5e7eca8753a6954b82996e2bc701 | 29a82a7622ed99208ea84a6421c60f17a2b6e0ee | /ryd assignment.py | 7e6a21479beb31e0ff2930b916f4046a1393c239 | [] | no_license | bioinfonerd-forks/extract-text-from-pdf-using-python | a87b3f321580426674af6ca4fc2461ed43138867 | 5cc49df12c185184ddf77de59d06e1af2c70c662 | refs/heads/master | 2022-11-06T19:22:36.158719 | 2020-07-04T16:33:46 | 2020-07-04T16:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | #-*- coding: utf-8 -*-
import PyPDF2 as pdf
file=open('The_Living_World.pdf','rb')
file
pdf_reader=pdf.PdfFileReader(file)
pdf_reader
help(pdf_reader)
pdf_reader.getIsEncrypted()
pdf_reader.getNumPages()
i=0
while i<pdf_reader.getNumPages():
pageinfo=pdf_reader.getPage(i)
text=pageinfo.extractText()... | [
"noreply@github.com"
] | bioinfonerd-forks.noreply@github.com |
1822516576499b6b4080fe2d76be4ae5758b4db8 | c9c26f132573da48c5122ffeb8da44d24b10ae01 | /snr/core/task_queue.py | 876f268e080d4895bc71308af907084a7267a97f | [
"MIT"
] | permissive | sfshaw/SNR | 549bdd887e4e1f4b70a37cb07f4a159fdadfab52 | 593b7b78a91e23e0fcb03985b72f29a66101579c | refs/heads/main | 2023-07-24T12:59:34.331611 | 2021-09-07T03:50:21 | 2021-09-07T03:50:21 | 301,933,814 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | import logging
import queue as que
from typing import Optional
from snr.prelude import *
from .contexts import Context
class TaskQueue(Context, AbstractTaskQueue):
queue: que.Queue[Task]
def __init__(self,
parent: AbstractContext,
task_source: TaskSource,
... | [
"sfshaw@calpoly.edu"
] | sfshaw@calpoly.edu |
6bfdd123693cf5516a29996bfd135ee882ad1c7e | 60655d0db682b16d01913363e7c9239b30afc705 | /processors/errors/error_main_loop.py | 96a886432c5face5a40bcb362e5fac65362270b6 | [
"Apache-2.0"
] | permissive | ARLlab/Summit | b7fab84525d3257b746eb158be7ee43039823e80 | 1aa0d85cedebe85fab969df004409cc8f28595b3 | refs/heads/master | 2022-12-10T02:29:01.427830 | 2020-04-19T01:07:11 | 2020-04-19T01:07:11 | 171,544,780 | 0 | 4 | Apache-2.0 | 2022-12-03T01:07:56 | 2019-02-19T20:30:12 | Python | UTF-8 | Python | false | false | 5,372 | py | from datetime import datetime
import datetime as dt
import asyncio
from summit_errors import Error, NewDataEmail, sender, send_processor_email
PROC = 'Error Processor'
def new_data_found(processor, last_data_time, logger):
"""
Resolution function to be passed into Error objects.
:param processor: str, i... | [
"brendano257@gmail.com"
] | brendano257@gmail.com |
71455ed344306de3849479f4255343f938f388b0 | d769be9ec6a69429bd158890190cfbdfb5657402 | /sbdhmi.py | 8e2472d98a87c2c134a0d3114f3e82c1efb5b321 | [] | no_license | jwreplogle/sbd | 85bec400f17e81f9897dc2efc0237eaf02c278bd | 51165f96e88b5e4d8d6c88ecf14fd7f0939674bc | refs/heads/master | 2020-04-21T13:33:13.083722 | 2019-02-11T15:28:46 | 2019-02-11T15:28:46 | 169,602,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | import subprocess
import os
import sys
def uupdt():
#Installs updates and software
os.system('clear')
subprocess.call("sudo apt-get install x11-xserver-utils libnss3 unclutter", shell=True)
subprocess.call("sudo apt-get update", shell=True)
subprocess.call("sudo apt-get dist-upgrade -y", she... | [
"noreply@github.com"
] | jwreplogle.noreply@github.com |
608ce75c1b12446acf0c7964552cd6c63b9473e8 | e9a08404751aee4891ed01fc7ef42c05761e853a | /py_send_sms.py | e55e59af7551b4a42d2c1ce9b7ea2db88e580a6a | [] | no_license | kathirm/TNPLTRPA | 8eed651ff46a02bcfe5de48153ec198751ee6c20 | db170bd8ad686543188c6aac82d2e9c12c72b0e7 | refs/heads/master | 2022-12-17T10:26:27.049538 | 2020-07-24T09:35:43 | 2020-07-24T09:35:43 | 171,221,067 | 0 | 0 | null | 2022-12-08T06:21:54 | 2019-02-18T05:35:17 | Python | UTF-8 | Python | false | false | 1,257 | py | from twilio.rest import Client
import string, time
import random
def otp():
try:
chars = string.digits;
password = ''
for i in range(4):
password += random.choice(chars)
except Exception as eR:
print "OTP Generation exception eror: %s"%eR
return password
def sm... | [
"mkathir@terafastnet.com"
] | mkathir@terafastnet.com |
db499f2486f725b4c37aca12284a9f0c46c5c8e5 | 28cd5213b0b2815877de0d80882ba33ae12faaa1 | /Hate Speech/FeatureFunctions.py | d29c88c9d017a23d30d553b40c5fb7a26eada264 | [
"MIT"
] | permissive | davidpomerenke/HS-Detection-Project | 954b1c157fc7b5e2ed7c89618476058919b15618 | 480174581077a48ceee2609385ffd2a6fa0b55da | refs/heads/main | 2023-04-01T20:29:26.555046 | 2021-03-24T01:27:16 | 2021-03-24T01:27:16 | 350,909,183 | 0 | 0 | null | 2021-03-24T01:28:38 | 2021-03-24T01:28:37 | null | UTF-8 | Python | false | false | 10,871 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
# In[1]:
import pandas as pd
import numpy as np
import pickle
import sys
from sklearn.feature_extraction.text import TfidfVectorizer
import nltk
from nltk.stem.porter import *
import string
import re
from vaderSentiment.vaderSentiment import SentimentIntensityAnaly... | [
"58326589+carstengieshoff@users.noreply.github.com"
] | 58326589+carstengieshoff@users.noreply.github.com |
003bdc64d2887c85bbcf686d048131d20e7ac8d5 | d34d0bb4497c14b6433d303e557895ab926e1717 | /lib/bin/rstpep2html.py | bd8256da8484511c241ec36ab35aa68d527b0bd5 | [] | no_license | mujahed85/gcp-ml-wav | 6f24a17140e39a60f0e8adb2bccd020864f84b37 | f7cd6adb8fbbbd5d2d4eed009ee62f9b51fd2d12 | refs/heads/master | 2020-07-05T06:00:04.558778 | 2019-08-22T18:13:41 | 2019-08-22T18:13:41 | 202,544,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | #!/home/sandyreddy_it4/15aug/appengine-helloworld-python-master/venv/bin/python2.7
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML fro... | [
"mujahed.mca@gmail.com"
] | mujahed.mca@gmail.com |
b170bf1a5dd2f6564204d32a76592625f9e5c628 | ac7c02f29a837fdd67d2bdc77bba182080e98ed8 | /codekata/3rdcharacters.py | ce51088ffcd802a6c7f48e27801cff822fabc6db | [] | no_license | YaminiNarayanan-359/guvi | 7630c309a86365e4367fda1ddab4e966e7d1ac5b | a52b6353100b4e9b83a003e6a327fbfb174daac4 | refs/heads/master | 2020-06-03T00:08:00.389609 | 2019-07-16T06:59:53 | 2019-07-16T06:59:53 | 191,355,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | d=input()
for i in range(0,len(d)):
if(i%3==0):
print(k,end="")
| [
"noreply@github.com"
] | YaminiNarayanan-359.noreply@github.com |
1650c2935a075c9cb78b47b63d329943587999d2 | 8e4a2a7152e4b25641d72e930de8842732bcf53a | /SNAPOTT/04FrameworkPushOver/python/recorder.py | e964ef9584a7a78f411e7f7776a69321d95e79c5 | [] | no_license | Mengsen-W/OpenSeesFiles | 9b9e8865a2b802047e419c5155aff5c20ac05937 | cda268d37cd17280dc18ada8c7f1b30af0b2bd6b | refs/heads/master | 2021-12-23T23:21:28.369076 | 2021-12-22T13:14:53 | 2021-12-22T13:14:53 | 239,237,550 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | '''
* @Description: recorder
* @Author: Mengsen.Wang
* @Date: 2020-05-29 15:27:00
* @Last Modified by: Mengsen.Wang
* @Last Modified time: 2020-05-29 15:27:00
'''
import os
import openseespy.opensees as ops
from log import logger
def recorder_create(filedir="output"):
'''
recorder create\n
P... | [
"mengsen_wang@163.com"
] | mengsen_wang@163.com |
452e5e6b02de1e49f606a3ca71389a5b1c0c71f7 | 3654f75d57d47de0613a7d506e727f5ce306081a | /使用协程下载斗鱼首页中所有的图片.py | 8ed93808f4c14a74b7fc62d23e5c779a88074c37 | [] | no_license | YuZiHao666/douyuPaChong | 98b158250bb28ee5dd2ea6e5a811f35fead50ffd | 2de23e0976cb0e9ca6ce584ae2b7696484c72cdd | refs/heads/master | 2021-04-27T00:04:52.647278 | 2018-03-04T01:58:48 | 2018-03-04T01:58:48 | 123,747,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | import urllib.request
import re
max_retry_count = 3
def down_img(url):
"""https://rpic.douyucdn.cn/live-cover/appCovers/2017/10/24/12017.jpg"""
for i in range(max_retry_count):
try:
response = urllib.request.urlopen(url)
# bytes
data = response.read()
... | [
"your_email@154813536@qq.com"
] | your_email@154813536@qq.com |
520d8b4de76bc22b176016cd250e44aa8922ed31 | 3a8c2bd3b8df9054ed0c26f48616209859faa719 | /Challenges/binaryTreeRightSideView.py | 5ba301ff4e30397260ef87ec8389c5ebedd932f9 | [] | no_license | AusCommsteam/Algorithm-and-Data-Structures-and-Coding-Challenges | 684f1ca2f9ee3c49d0b17ecb1e80707efe305c82 | 98fb752c574a6ec5961a274e41a44275b56da194 | refs/heads/master | 2023-09-01T23:58:15.514231 | 2021-09-10T12:42:03 | 2021-09-10T12:42:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | """
Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
Example:
Input: [1,2,3,null,5,null,4]
Output: [1, 3, 4]
Explanation:
1 <---
/ \
2 3 <---
\ \
5 4 ... | [
"bennyhwanggggg@users.noreply.github.com"
] | bennyhwanggggg@users.noreply.github.com |
c63925b4f49420c2678dd91c07d5abf368b8d26c | d26947e52adb2bf46c707fb392ef4e8de270c250 | /python/venv/bin/easy_install | 6c3edb735d0ced379a4aaa0bb3729cd83149088c | [
"MIT"
] | permissive | valer23/robot | 1df8182b14873f8f315ed4d95e242cc788f27c51 | 23bc23e8d699c449e6150ce24ed7a083180734b2 | refs/heads/master | 2020-07-30T20:53:25.623295 | 2019-09-24T07:45:28 | 2019-09-24T07:45:28 | 210,352,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/home/valerian/Proj_maj/test_python/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"valerian.bart@gmail.com"
] | valerian.bart@gmail.com | |
da7780b102a9f8cfb62380fdbba97429eb064418 | 9f0704a088c7af65412f63208e0b9cf4d619de80 | /Clustering/Hierarchical_Clustering/hierarchical_clustering.py | a773672b87827eecc360f7dca604912399de3fa7 | [] | no_license | ChavezCitlalli/MachineL. | 6b34fdb50ade9b9ce0f5fe2946cbe25b9d886b08 | f0ce7b961783a2ea27f04feacdd1ad9b992fc697 | refs/heads/master | 2023-07-02T00:38:06.137753 | 2021-08-09T17:48:43 | 2021-08-09T17:48:43 | 394,386,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py |
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Mall_Customers.csv')
X = dataset.iloc[:, [3, 4]].values
# y = dataset.iloc[:, 3].values
import scipy.cluster.hierarchy as sch
dendrogram = sch.dendrogram(sch.linkage(X, method = 'ward'))
plt.title(... | [
"zaydacit@hotmail.com"
] | zaydacit@hotmail.com |
3f343c058cf96d33a5d3b5c7981b91edc0493874 | 7773ea6f465ffecfd4f9821aad56ee1eab90d97a | /python/testData/surround/SurroundWithWhile_after.py | 43e32582970098345e4768f7e4af14d29e5282d9 | [
"Apache-2.0"
] | permissive | aghasyedbilal/intellij-community | 5fa14a8bb62a037c0d2764fb172e8109a3db471f | fa602b2874ea4eb59442f9937b952dcb55910b6e | refs/heads/master | 2023-04-10T20:55:27.988445 | 2020-05-03T22:00:26 | 2020-05-03T22:26:23 | 261,074,802 | 2 | 0 | Apache-2.0 | 2020-05-04T03:48:36 | 2020-05-04T03:48:35 | null | UTF-8 | Python | false | false | 76 | py | def foo():
while <selection>True</selection>:
print "hello"
| [
"yole@jetbrains.com"
] | yole@jetbrains.com |
177e0fb844c10dfa74004b38b345e8812b831e03 | 0ce9226dc0622e1edd93e57dcf2e88eaf77cedd6 | /leetcode/explore/October/11_subsquence_disnct.py | f9dff5ee942c4736487a7c15ad7c7a7aeeb83767 | [] | no_license | minhthe/algo-and-ds-practice | 6b09fc2174d58f8ba39ceabd80e2525ab95fe7ea | 3a9b882af8412859f204569ca11808b638acf29d | refs/heads/master | 2023-01-31T18:49:31.773115 | 2020-12-18T06:26:47 | 2020-12-18T06:26:47 | 298,933,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | '''
Greading approach: if the char you want to add, and this char not the last,
-> consider will add later not NOT to achive lexicographical order
'''
class Solution:
def removeDuplicateLetters(self, s: str) -> str:
last_index = {c: i for i,c in enumerate(s)}
stk = []
for i, c in enumerate(s):
if c in ... | [
"minhthe.007@gmail.com"
] | minhthe.007@gmail.com |
38ae7891771e0d7a34e5992b2f10f7d7e243b10b | 28162b53e25817f00c8d91a1d41c0bf0c8f861d1 | /tala_project/wsgi.py | d6e797136534217944eee05acbe8b7ba3dc8459c | [] | no_license | TiredPhilosophile/tala_v2 | 668d8dcbfe575a631ed220560f53c4abc983237a | 2fd675100090abe38f3cdca5f6dbe6cdca823a32 | refs/heads/master | 2021-01-15T13:19:41.353312 | 2015-06-11T05:02:37 | 2015-06-11T05:02:37 | 36,107,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | """
WSGI config for tala_project 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.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tala_project.settings")
#from dj... | [
"hashimchau@gmail.com"
] | hashimchau@gmail.com |
8ce4f5afef09eb0a197dfb39a5bd0108bbf94797 | 9153dab91ab4a897059e1f92a22cc2d92d49aa21 | /helloworld.py | 169864d82d1d62954ae57358caaafc9e3b8a4bc2 | [] | no_license | mksekibang/BCN48 | d10bdff9410c62b71af961f50f3bd73c0b6b24e2 | c08c4c2f4987923e03bb9bd12559f7fccf2253d0 | refs/heads/master | 2020-06-06T16:26:50.809993 | 2012-11-06T01:09:02 | 2012-11-06T01:09:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,691 | py | #!-*- coding:utf-8 -*-"
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
from google.appengine.ext import db
import os
import voting
import crpt
class MainPage(webapp.RequestHandler):
def get(self):
param... | [
"dmitryshostakovich@gmail.com"
] | dmitryshostakovich@gmail.com |
f82b2ec22562e35971d6fe6f982dd9bbbb0b9b5c | 6663cffcb75cc2433c1eaae7e92ccd2977cd8f19 | /connect to mysql.py | 862ab8554332aa64f9aea62ee67ec2dac13a8626 | [] | no_license | LennyLenny/python-file | 8440680944bebcfdad6e5759f4c4c36a4dc0e086 | b06fd6fb156f478a21c4d61062a382adf287fa7d | refs/heads/master | 2020-04-28T03:17:58.023664 | 2019-03-11T05:31:28 | 2019-03-11T05:31:28 | 174,931,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import pymysql
>>> conn = pymysql.connect(host='localhost',user='root',password='root',db='movielist')
>>> a = conn.cursor()
>>> sql = 'SELECT * from `movie_rate... | [
"791086166@qq.com"
] | 791086166@qq.com |
cda6a6e5e1b60598a1893d844bcba02707ddbbb7 | 282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19 | /Malware1/venv/Lib/site-packages/scipy/spatial/setup.py | 17994e6fb084330c7b91f8e312a70465a528a0ff | [] | no_license | sameerakhtar/CyberSecurity | 9cfe58df98495eac6e4e2708e34e70b7e4c055d3 | 594973df27b4e1a43f8faba0140ce7d6c6618f93 | refs/heads/master | 2022-12-11T11:53:40.875462 | 2020-09-07T23:13:22 | 2020-09-07T23:13:22 | 293,598,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ccb99ae81e55c20bfd073d894471ea6c5a51f1cc27e19fea1bd2ebdfa959f8cd
size 2935
| [
"46763165+sameerakhtar@users.noreply.github.com"
] | 46763165+sameerakhtar@users.noreply.github.com |
121d743af8ee8b7ac6eff95e4756e10c11b93dfc | 78e93ca71a54bd11b6f51ef3936044e08782c7e3 | /batchkit_examples/speech_sdk/work_item_processor.py | cb1108528d05baf51c553dc4922e2052d930bdf2 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/batch-processing-kit | c0134e1e395fdf7f2938101cea542dbb8d3c1f1f | 8b0a5492361ff9473ab66c2f64aaccd5340f2f62 | refs/heads/master | 2023-09-02T01:54:36.226987 | 2022-10-27T03:40:34 | 2022-10-27T03:40:34 | 265,635,442 | 29 | 19 | MIT | 2023-06-02T10:38:06 | 2020-05-20T17:14:45 | Python | UTF-8 | Python | false | false | 1,170 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import multiprocessing
from typing import List
from batchkit.logger import LogEventQueue
from batchkit.work_item import WorkItemRequest, WorkItemResult
from batchkit.work_item_processor import WorkItemProcessor
from batchkit_examples.speech_sdk.... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
66ff066deef611e0bc8dba47f853afe25757b4be | 62f14fe947513ddf1e4ca8c26ae5d02099abd6cc | /tests/test_compressible.py | a49ff3d21e1e7f78b038956e6e933a00ac0f8d32 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bencleary/fluids | 79d993366cea94a87cbc3ac3e5f01311fa81956e | b1d0e00877b36c14c52d7d32c45f9359c0366459 | refs/heads/master | 2022-11-08T02:47:02.896748 | 2020-06-20T14:41:10 | 2020-06-20T14:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,252 | py | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, 2017 Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
8c1b72abd6090fc6d7b1f0f79362a9bd829c531a | c0b02bf77168b5770a86e8beb341738083a253a7 | /api_server/master_server/models.py | 3e9e65f3860d1b2d1fdda575e4607778aa2af3b5 | [] | no_license | nhoss2/pymada | 61fe4df9c107b66df14bf1384716f370e6d23102 | ec537e938a593e830ca82249b82531a881430dd5 | refs/heads/master | 2022-12-13T20:44:09.745576 | 2020-05-27T17:05:46 | 2020-05-27T17:05:46 | 204,399,744 | 0 | 1 | null | 2022-12-08T09:31:54 | 2019-08-26T05:06:07 | Python | UTF-8 | Python | false | false | 2,034 | py | from django.db import models
class UrlTask(models.Model):
task_states = (
('QUEUED', 'QUEUED'),
('ASSIGNED', 'ASSIGNED'),
('COMPLETE', 'COMPLETE')
)
url = models.TextField()
json_metadata = models.TextField(null=True)
task_result = models.TextField(null=True)
task_state... | [
"nafis@labs.im"
] | nafis@labs.im |
bbefec74ec05c8be2358eb6d37693b79a119f68a | a4830a0189c325c35c9021479a5958ec870a2e8b | /routing/migrations/0022_auto_20160819_1523.py | 9a72cd9f00d71edcf95d1e679496d2ced9546eee | [] | no_license | solutionprovider9174/steward | 044c7d299a625108824c854839ac41f51d2ca3fd | fd681593a9d2d339aab0f6f3688412d71cd2ae32 | refs/heads/master | 2022-12-11T06:45:04.544838 | 2020-08-21T02:56:55 | 2020-08-21T02:56:55 | 289,162,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-19 15:23
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('routing', '0021_fraudbypasshistory_outboundroutehistory'),
... | [
"guangchengwang9174@yandex.com"
] | guangchengwang9174@yandex.com |
681d7bd02ccb0578a7842aa55f7bc5a99400f534 | 0859a864b1270164fe44a878ab12cfb3302c36bf | /abc159/a.py | fe00ff3096ace83f6c7f54a99fa07d13cf37865b | [] | no_license | wataoka/atcoder | f359d49ab6e0db39c019d9f6d2e8b92d35f723c4 | b91465dd5f655d05b89485fc7ad222283c5958f5 | refs/heads/master | 2021-04-15T06:02:59.593965 | 2020-05-11T04:38:23 | 2020-05-11T04:38:23 | 126,754,342 | 0 | 0 | null | 2020-02-28T02:31:03 | 2018-03-26T00:51:12 | Python | UTF-8 | Python | false | false | 106 | py | def rC2(r):
return int(r*(r-1)//2)
N, M = list(map(int, input().split()))
print(rC2(r=N) + rC2(r=M)) | [
"wataoka@stu.kobe-u.ac.jp"
] | wataoka@stu.kobe-u.ac.jp |
96488cf113baf9488bed5f39de99090512a92017 | e1d9187552b25ef8835d1c5219e35edc7d6c1139 | /price_parcer.py | b2ccb7075fc975bfc1fb519c8c6c5700faf46a16 | [] | no_license | iamishalkin/airbnb | 63b6338cdb323ebc2b6bf4a535e9c36258ff7b4c | 40bea3547f1c7a281b39345f7dcb1e2a7d75171f | refs/heads/master | 2021-01-19T20:29:49.373930 | 2020-04-14T09:47:16 | 2020-04-14T09:47:16 | 88,510,755 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,983 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 13 11:26:47 2017
@author: ivan
"""
import requests
import json
import pandas as pd
BASE='https://api.airbnb.com/v2/search_results?client_id=3092nxybyb0otqw18e8nh5nty&_limit=18&sort=1&locale=ru-RU'
price_range=[300,400,500,600,700,800,900,950,1000... | [
"noreply@github.com"
] | iamishalkin.noreply@github.com |
9434fd3c1d1715f323f8d9c6fc8f1097ccd9a93e | 0cdcee391e178092d7073734957075c72681f037 | /hackerrank/si/si-smaller-element-left-side.py | 10a600c468bd60c31b9b74c6e23fe144363e00bf | [] | no_license | hrishikeshtak/Coding_Practises_Solutions | 6b483bbf19d5365e18f4ea1134aa633ff347a1c1 | 86875d7436a78420591a60b716acd2780287b4a8 | refs/heads/master | 2022-10-06T18:44:56.992451 | 2022-09-25T03:29:03 | 2022-09-25T03:29:03 | 125,744,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | #!/usr/bin/python3
# Find 1st smaller elements on left side
class Solution:
# @param A : list of integers
# @return a list of integers
def prevSmaller(self, arr):
N = len(arr)
s = [-1] * N
b = [-1] * N
top = -1
top += 1
s[top] = 0
for i in range(1,... | [
"hrishikesh.tak@oneconvergence.com"
] | hrishikesh.tak@oneconvergence.com |
588bbf7a72dd67ac3e076650b05aeb73ce05b950 | b1a48bc7b2ce2aa1f400382f2a275a384e8be2a2 | /ptd_client_server/client.py | bab3221d4ab0ae73715cb6085761c43a2488f8a8 | [
"Apache-2.0"
] | permissive | xzfc/mlcommons-power | d281b654591ee203b27444ee5a3b37a20c0b5530 | af35f05f8e17d9f3ba15385ea622c6afbb66799d | refs/heads/master | 2023-02-24T03:55:31.833505 | 2020-12-18T09:34:56 | 2020-12-18T09:34:56 | 320,599,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,263 | py | #!/usr/bin/env python3
# Copyright 2018 The MLPerf Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
"albert.safin@xored.com"
] | albert.safin@xored.com |
ce8172e73f8dbe5b64f6896e1a018ef2b910b9f3 | c60b5d841e3a1e79a15335bbd3c4e8128d77ad94 | /Main.py | a24a78f4fffd69710ce8577be465d245e04fed02 | [] | no_license | ClaudiuChelcea/Presentation-Website | fbc035dd79eb036fde7475ff4b52ad229999777e | 89fc48814dc33085a59e148889424b0dcb86b222 | refs/heads/main | 2023-06-13T00:15:50.205264 | 2021-07-12T14:04:49 | 2021-07-12T14:04:49 | 331,597,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,694 | py | from flask import Flask, render_template, request
from flask_mail import Mail, Message
# The webpages are:
# Home: http://127.0.0.1:5000/index
# Contact: http://127.0.0.1:5000/Contact
# Configure email
app = Flask(__name__)
app.config['MAIL_SERVER'] = 'smtp.gmail.com'
app.config['MAIL_PORT'] = 465
# ~~~~... | [
"noreply@github.com"
] | ClaudiuChelcea.noreply@github.com |
4133d8de12e950deab0ef7eb66dff3ef852e342b | 5cc1421f5280c4c869e5df5b936f4d629693d0f1 | /main.py | 139b340dbacec7bbaa8633419be07b3aeef61f1e | [
"MIT"
] | permissive | zhangxujinsh/MTCNN-VS | 96c38479fa6e6aa5dea0e855cddcf8548ea7872d | 42d79c0a8954493fd8afb4a6665584da9a8b9c6e | refs/heads/master | 2020-07-11T01:51:40.142178 | 2016-10-29T02:13:57 | 2016-10-29T02:17:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # coding: utf-8
import mxnet as mx
from mtcnn_detector import MtcnnDetector
import cv2
import os
import time
def testimg(detector):
img = cv2.imread('test.jpg')
t1 = time.time()
results = detector.detect_face(img)
print 'time: ',time.time() - t1
if results is not None:
total_boxes = res... | [
"1293830063@qq.com"
] | 1293830063@qq.com |
0d6192d9c96cea55cce85588b2f9354cbdb21b81 | b7ddb90ae9fbcf831edb2495e7e65b9cebb0498e | /RawrfenServer/coord.py | cb195b7aee34367aa3d3008886876b742b540f69 | [] | no_license | Astarisk/RawrfenWeb | c60ee04e0e6e5c57ff662bc903cacaaa308c2882 | 227d49cc074e81f4c3df272750225fd00211d6eb | refs/heads/master | 2023-03-09T11:52:38.425461 | 2022-12-16T18:19:06 | 2022-12-16T18:19:06 | 138,544,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | class Coord:
def __init__(self, x, y):
self.x = x
self.y = y
def __str__(self):
return "({0} {1})".format(self.x, self.y)
def __repr__(self):
return "Coord({0} , {1})".format(self.x, self.y)
def mul(self, f):
return Coord(self.x * f.x, self.y * f.y)
class Co... | [
"astarisk@gmail.com"
] | astarisk@gmail.com |
ad867cae223caa2d23bb5107206d641e399b3f90 | e70238ae0e2fc3cec3659b3ddac84d48f87b8dad | /.svn/pristine/ad/ad867cae223caa2d23bb5107206d641e399b3f90.svn-base | 41944f2510338a6d2a1e2de80eaff5acc6713fee | [] | no_license | rzk1/cp2k-mcgill | 8cc92ae6097265644b9014657c7c4f220dfc2c35 | 56e0ed32a825e5e82004bdcef707e24c25f56a43 | refs/heads/master | 2021-01-20T17:40:15.918278 | 2019-07-11T18:08:13 | 2019-07-11T18:08:13 | 64,575,680 | 2 | 2 | null | 2019-08-07T17:38:51 | 2016-07-31T03:47:36 | Fortran | UTF-8 | Python | false | false | 4,433 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# author: Ole Schuett
import sys
from os import path
#===============================================================================
def main():
if(len(sys.argv) != 3):
print("Usage: bcast_tmpl_coverage.py <lcov_in.info> <lcov_out.info>")
print("Broadca... | [
"rustam@khaliullin.com"
] | rustam@khaliullin.com | |
479b96bffec928063f8a1b56155e43ecb94f2fa9 | fa4bc02ccbc8cdd8d09507b96f40f3bb4b8b7549 | /DashApp/pages/map.py | d81d3c133441b6948452388851efb20561e1897a | [
"MIT"
] | permissive | violet-love/quake-ds | 1800d1a3df222413728a757d09ce294219c1dd5f | 8dfdcd48c80b0310a97808668677a5baf636122d | refs/heads/master | 2021-03-11T03:37:16.924918 | 2020-03-10T02:49:29 | 2020-03-10T02:49:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.express as px
import plotly.graph_objs as go
import requests
import pandas as pd
from app import app
column1 = dbc.Col(
[
dcc... | [
"eyvonne@users.noreply.github.com"
] | eyvonne@users.noreply.github.com |
23763377163d76db4dd43f0f81a90b02e45179da | 50debf18fe2fda56780aecfa81004fc351301fc7 | /carbike/apps.py | 4f2443f8058b15c5fb3a4a632dac25ea4d71076c | [] | no_license | koumaron/carbike | 97d52626f1aa0317eac1bed701c5a46241715d7b | bbbe41d64b77e28256d4483bd3f83ca255b6e068 | refs/heads/main | 2023-02-18T23:12:16.701550 | 2021-01-20T06:12:25 | 2021-01-20T06:12:25 | 331,205,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.apps import AppConfig
class CarbikeConfig(AppConfig):
name = 'carbike'
| [
"noreply@github.com"
] | koumaron.noreply@github.com |
8d85aaa01325ea01f6ece159131b127ef9047799 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=26/sched.py | 1613dd9b0c794754a75a5de64bc5ac7319aa1a66 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | -X FMLP -Q 0 -L 3 95 400
-X FMLP -Q 0 -L 3 66 300
-X FMLP -Q 0 -L 3 54 175
-X FMLP -Q 1 -L 2 53 200
-X FMLP -Q 1 -L 2 50 200
-X FMLP -Q 1 -L 2 44 175
-X FMLP -Q 2 -L 2 34 125
-X FMLP -Q 2 -L 2 34 175
-X FMLP -Q 3 -L 1 33 175
-X FMLP -Q 3 -L 1 31 200
28 150
25 175
24 125
20 200
20 150
18 15... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
ba1619c95c501c1725a03a9611066e17c4f2a417 | 8b51fbf7473328cd5f7cdf5cc4d1fdb45fc020e0 | /config.py | 8c70a0cd2694f7a43d4c9dcd8b1e545a55dcab70 | [] | no_license | akesling/turntable | 46e058049c1f2a210a5fdef2f8a8340aefdf344d | 7d2caba99df97040597b31b3f9103f022834d57b | refs/heads/master | 2021-01-13T02:22:59.205735 | 2013-06-28T19:40:52 | 2013-06-28T19:40:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | """
Read in config.yaml and appropriately set all the right values before kicking
the server into a runnable state
"""
def configurate(runner_class):
return runner_class()
| [
"ahkeslin@ncsu.edu"
] | ahkeslin@ncsu.edu |
7647f571a4f3a7aae87186379f8096ae77a5b759 | 3d904ce25b91fe6699b76b4a45f0f4e37438200f | /tests/test_slice.py | 9ded28fb242ee22c11a90ef34758d9d12ffb7a07 | [
"BSD-3-Clause"
] | permissive | mverleg/pyjson_tricks | 0dc91822a404e5d33dbd70fe23d903ebc9f7d36c | b79572f0397bc91a06f698e3e5cd9f435af84907 | refs/heads/master | 2023-09-01T22:03:19.157624 | 2023-08-19T11:57:05 | 2023-08-19T11:57:05 | 45,618,882 | 160 | 30 | NOASSERTION | 2023-08-19T11:57:06 | 2015-11-05T15:08:05 | Python | UTF-8 | Python | false | false | 461 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pathlib import Path
from json_tricks import dumps, loads
def test_slice():
original_slice = slice(0, 10, 2)
json_slice = dumps(original_slice)
loaded_slice = loads(json_slice)
assert original_slice == loaded_slice
def test_slice_no_step():
origin... | [
"claydugo@gmail.com"
] | claydugo@gmail.com |
4881f64525acb3d6be61b2f586019ec4effe954b | d39f42a4c6c49373a4c762f382101461cc75333f | /CheckingErrors.py | f877ea5f593703cec212d140d780dac128f7c486 | [] | no_license | anil3830/python | e5243db6d74b31e0c16a2eee90abd1d09062e163 | 30e177cd5f469541449da561fbc6fe0ade6ac76b | refs/heads/master | 2020-09-15T20:27:57.425691 | 2019-12-18T05:12:21 | 2019-12-18T05:12:21 | 223,550,861 | 0 | 0 | null | 2019-12-18T05:12:22 | 2019-11-23T07:41:50 | Python | UTF-8 | Python | false | false | 707 | py | #cheacking errors by using try, except , else, finally , key words
#ex multiple exception
'''try:
a=int(input('enter a value'))
d=int(input('enter d value'))
c=a/d
print(c)
except ZeroDivisionError as x:
print('the error is in',x)
##except TypeError as x:
print('the error is in',x)
except NameE... | [
"anilkumarjan1596@gmail.com"
] | anilkumarjan1596@gmail.com |
7451ee26f6d5e08fe204c925922a69b00af273e2 | bbc1e0f8e744d28660415d3d9348f43049222391 | /main/migrations/0027_auto_20200411_1429.py | 941f1b82974a2ef7082b60144217ae567bf2fc6c | [] | no_license | heronvas/website | 44b628edae251489218b4f1d1d689ec3fef952cd | f10ea7c3689f52fa6f51216590541f7786609125 | refs/heads/master | 2022-11-09T23:34:54.042537 | 2020-06-23T20:52:25 | 2020-06-23T20:52:25 | 274,256,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # Generated by Django 2.1.5 on 2020-04-11 08:59
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0026_auto_20200411_0331'),
]
operations = [
migrations.AlterField(
model_name='disco',
name=... | [
"heronvas897@gmail.com"
] | heronvas897@gmail.com |
665051f43c02a29b8087979305e3cca1abec9664 | fff02bef975f1ca5af8744bf1fe8fc98f2d838fe | /guessTheNumber.py | c1c60c673aa16e04968e58f497f83222d09adb86 | [] | no_license | mjcupial/PYTHON | 5aaa414694a97c9138bf5f03c72ba13e9d54492f | dfe000a1c3694fbcbbacdef54021f3519c71c801 | refs/heads/master | 2023-02-21T23:13:18.784731 | 2023-02-10T21:06:07 | 2023-02-10T21:06:07 | 82,818,336 | 1 | 0 | null | 2023-01-20T12:42:30 | 2017-02-22T15:11:17 | Python | UTF-8 | Python | false | false | 1,452 | py | # PC, just guess the number!
#
# The gamer chosses the number in previously defined range.
# The PC must guess what is the number!
# by mj.c
import random
decision = 'y'
while (decision == 'y' or decision == 'Y'):
print("Hi! I would like to guess your number! I would like to try...")
print("but fir... | [
"noreply@github.com"
] | mjcupial.noreply@github.com |
51094e4e71590548d90f213ebaed4ce7b2c32fbf | 513085337c4b73e3843caa6d1b9b6a74d62b5564 | /conf.py | eb84e4a08e82f8be30cc151a34b0394194fc273b | [] | no_license | Fklag/TS_ISN | 705f727888b172fbfede7ea8dc5854198c2adf0f | 9b9fd44dacbf16e8d963a0a16215521cbbceccc0 | refs/heads/master | 2020-05-17T01:07:51.695294 | 2015-06-17T10:12:10 | 2015-06-17T10:12:10 | 37,211,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,777 | py | # -*- coding: utf-8 -*-
import sys, os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('../mo... | [
"lycee.lagrave@free.fr"
] | lycee.lagrave@free.fr |
c6d89d295ee2dcc983253c82b25ad3252232ab12 | 733c19907e231cbc61603b1a644a78b2a113f6e3 | /rules/context.py | 53a196a65fb4251467489a0557b197e1a93dbdf1 | [] | no_license | wilysword/rule-reactor | 997be60b13c82f3bf58aa099f1e6780389608709 | 7ace02ed34da297bde3fccc41312ad6d8c89a5f6 | refs/heads/master | 2021-01-20T23:32:09.971508 | 2014-09-23T20:13:04 | 2014-09-23T20:13:04 | 38,435,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,236 | py | import logging
from copy import deepcopy
from django.db.models.signals import (
post_init, pre_save, post_save, pre_delete, post_delete
)
from .cache import RuleCache, TopicalRuleCache
from .continuations import ContinuationStore, NoContinuationError
logger = logging.getLogger(__name__)
class RuleChecker(objec... | [
"gphelps@verisys.com"
] | gphelps@verisys.com |
dbb15fa1a63e4b59e44ada51fc7db08061e74114 | 5a9f5fd278bed94afac4d3db1e5e2853f135f390 | /usermgt/models.py | 85bbf55ef313bd0d7a3ebc0f37980526f10edfb7 | [] | no_license | bihanviranga/OpenIntra-backend | afed82a2e68d809c6f3cd3a116852cab1fbaf255 | a2740fab9e98b121d735cc40a300cfd0e163ad46 | refs/heads/main | 2023-02-12T11:59:15.507286 | 2020-12-21T18:00:03 | 2020-12-21T18:00:03 | 319,279,906 | 0 | 0 | null | 2020-12-07T10:14:35 | 2020-12-07T10:14:34 | null | UTF-8 | Python | false | false | 817 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
"""
Inherited fields from AbstractUser:
username
password
first_name
last_name
email
date_joined
"""
email = models.EmailField(unique=True)
rol... | [
"bihanviranga@gmail.com"
] | bihanviranga@gmail.com |
2d10cde0506e07624d53ef566dd4a4a1997f78ca | 93d02a345c18508561284c65382b1388a8aac1bf | /Droid_apk_Inject0r.py | 4007e55e66b4376c256add164a1b3ced49307233 | [] | no_license | TH4X-Y/Droid_Inject0r | 5148e1422a595b434318efc4f9e937555246d8cb | 206fc97fcb577214cd3c96a8d2b9a8a766c77b84 | refs/heads/master | 2021-09-06T10:25:55.594246 | 2018-02-05T14:33:56 | 2018-02-05T14:33:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,601 | py | #!/usr/bin/env python2
''' Python Script .. inject malicious apk file into original apk [Created by : @Y4SS3R005]'''
try:
import os,sys
import subprocess
from pwn import log
from time import sleep
from xml.dom import minidom
from argparse import ArgumentParser
except ImportError as e:
rais... | [
"noreply@github.com"
] | TH4X-Y.noreply@github.com |
cc2a881d553a0a3c1080c3d0507a4ed1361e3294 | f69262312c39583f9d95d4952bc3813019ab83d6 | /Python/easy/0645_set_mismatch.py | 56efed8d3f79161c7ee67167164d09dc1171c34d | [
"MIT"
] | permissive | CalmScout/LeetCode | 7de7159071780a09185d3e6d6f8fe57f1b11870f | 3e863c4e4029bd3e101af27754de1417293fd300 | refs/heads/master | 2022-12-20T21:48:14.467733 | 2022-12-14T16:03:49 | 2022-12-14T16:03:49 | 134,153,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | """
The set S originally contains numbers from 1 to n. But unfortunately, due to the data error,
one of the numbers in the set got duplicated to another number in the set, which results in
repetition of one number and loss of another number. Given an array nums representing the
data status of this set after the error. ... | [
"popovanton567@gmail.com"
] | popovanton567@gmail.com |
e9c6a490422bade7bff0ccdc363ca4f326b7f8bb | 55821cab06b431b3b253df77559800b9f84ed2a7 | /models/place.py | a918d531769a7e7fed34aacbe57ca9ec87ce9dab | [] | no_license | kaci65/AirBnB_clone | 1fa2f1721d752635dd895de09fcedc194612ca91 | b2c03583aab891fde5e87e7e34b40bcf2aa7ebb6 | refs/heads/main | 2023-03-11T08:23:08.811811 | 2021-02-28T20:41:17 | 2021-02-28T20:41:17 | 340,441,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | #!/usr/bin/python3
"""Place module"""
import models
from models.base_model import BaseModel
class Place(BaseModel):
"""place class inheriting from BaseModel"""
city_id = ""
user_id = ""
name = ""
description = ""
number_rooms = 0
number_bathrooms = 0
max_guest = 0
price_by_night = ... | [
"wanjikukarugi@gmail.com"
] | wanjikukarugi@gmail.com |
04c160f0b2359b01e9a2909241bf75c9ca9c4a3a | 5b4f1557c0eda22108cf22c399b8d08dceabe315 | /dags/etl_scripts/transfers_scraping_etl.py | cdaaf39953ba49dc3e66f1d771d50ac71a4b6eb6 | [] | no_license | leonardopanatta/transfermarkt-webscraper-airflow | 0121d512f6379c88bda6c7ad5b4e00ddae7ef95e | 7b0ad4613dfdc62d7a9e306f9865ca7889772764 | refs/heads/master | 2023-05-13T17:04:42.555721 | 2021-06-07T20:49:53 | 2021-06-07T20:49:53 | 371,493,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,685 | py | # -*- coding: utf-8 -*-
import glob
import os
import pandas as pd
import requests
import csv
import logging
from bs4 import BeautifulSoup
from pathlib import Path
from datetime import datetime
from airflow.hooks.S3_hook import S3Hook
class TransfersScrapingETL():
def __init__(self):
self.local_data_path... | [
"leopanatta@gmail.com"
] | leopanatta@gmail.com |
d3ee2879bf5bdc43bc294030aaa16552cfce248e | d71fcc639bcf9d80233d0a58b351f94d81d37bc6 | /sspai.py | 075ac160d4c6aa5b475e1747c09911be9240d191 | [] | no_license | awesome-archive/sspai | 8ff20894c09ec327e6d96cea8ffc254baa7b0922 | 0f3533707fc9351cd55541da49610d7bddd75e15 | refs/heads/master | 2021-12-24T03:39:18.460968 | 2017-12-05T14:53:09 | 2017-12-05T14:53:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | import time
import json
import os
import requests
from pymongo import MongoClient
base_url = 'https://sspai.com/api/v1/articles?offset={offset}&limit=10&type=recommend_to_home&sort=recommend_to_home_at&include_total=false'
false_url = 'https://sspai.com/api/v1/articles?offset=9980&limit=10&type=recommend_to_home&sort... | [
"yan199219dang@gmail.com"
] | yan199219dang@gmail.com |
ba0bfd1f20f77d0b6b66bea68f6e18d7e70c9071 | a84f271df045516f516a1da4acc76eb9d61825b4 | /survey/exporter/tex/latex_file.py | a7ddc714199da7e2514d71d47e13fd207491c898 | [
"MIT"
] | permissive | TheWITProject/MentorApp | a28263791c78d3d5b680bf5b514d4b685442113c | 2f08b87a7cde6d180e16d6f37d0b8019b8361638 | refs/heads/master | 2022-11-23T22:44:29.237363 | 2020-05-24T16:25:27 | 2020-05-24T16:25:27 | 237,828,254 | 0 | 0 | MIT | 2022-11-22T05:54:06 | 2020-02-02T19:59:07 | Python | UTF-8 | Python | false | false | 2,071 | py | # -*- coding: utf-8 -*-
import logging
from builtins import open
from datetime import datetime
LOGGER = logging.getLogger(__name__)
class LatexFile:
""" Permit to handle the content of a LatexFile """
def __init__(self, document_class, document_option=None, header=None, intro=None, footer=None, date=None,... | [
"aisha.manasia@gmail.com"
] | aisha.manasia@gmail.com |
d6d3e38f6d727b711d14a8cf13a3acf935cdda72 | 18239524612cf572bfeaa3e001a3f5d1b872690c | /clients/client/python/test/test_submit_self_service_login_flow.py | b4e8c0a3a77a374f30e918234b71717beae63d3c | [
"Apache-2.0"
] | permissive | simoneromano96/sdk | 2d7af9425dabc30df830a09b26841fb2e8781bf8 | a6113d0daefbbb803790297e4b242d4c7cbbcb22 | refs/heads/master | 2023-05-09T13:50:45.485951 | 2021-05-28T12:18:27 | 2021-05-28T12:18:27 | 371,689,133 | 0 | 0 | Apache-2.0 | 2021-05-28T12:11:41 | 2021-05-28T12:11:40 | null | UTF-8 | Python | false | false | 1,198 | py | """
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v0.0.1-alpha.3
Contact: support@ory.sh
Generated by: http... | [
"3372410+aeneasr@users.noreply.github.com"
] | 3372410+aeneasr@users.noreply.github.com |
af0372a202a347f36ad234e05ae02fbd63fda42e | ed1478f6407ae7757a1f24574abedeef63e59969 | /tgs/code/util_scheduler.py | 51cb7a6b531cabac1fea9791dc64001c039abfd0 | [] | no_license | gmcgsokdeuvmt/tgs | fee49704879d658078c2c3367d55a87b02645f6d | b439de777ed109c14d2c472e31a5733a5bd108cc | refs/heads/master | 2020-03-31T19:33:15.799620 | 2018-10-16T02:02:22 | 2018-10-16T02:02:22 | 152,502,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | from torch.optim.lr_scheduler import *
class EarlyStopping():
"""
Early Stopping to terminate training early under certain conditions
"""
def __init__(self,
min_delta=0,
patience=5):
"""
EarlyStopping callback to exit the training loop if training or
... | [
"mochimochi.morst@gmail.com"
] | mochimochi.morst@gmail.com |
7c25270962adc5f1744fd005343ac44f54a83485 | 1cb7192307a2f59ecad127a65f1c6c37a9947cb9 | /docker-compose/product/api.py | 5f66e10ac7cea9f8144f22471eca0a47ff56ac86 | [] | no_license | m2a9x45/simple-docker | cf7287d99e10831223ede39edfc90de142ea06d5 | a32334eff4094a7cd074ea44c602868a6f700a40 | refs/heads/master | 2023-05-11T06:57:11.411464 | 2020-05-16T01:29:14 | 2020-05-16T01:29:14 | 264,322,819 | 0 | 0 | null | 2023-05-01T21:40:33 | 2020-05-15T23:48:58 | PHP | UTF-8 | Python | false | false | 432 | py | from flask import Flask
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
class Product(Resource):
def get(self):
return {
'products': [
'Ice cream',
'Chocolate',
'Fruit',
'eggs'
]
... | [
"noreply@github.com"
] | m2a9x45.noreply@github.com |
d9f5e5fc71fc1991b3a18b54effd065ae5806c57 | 726d614bab8a5ee7f0bdae0cb63f59d24bc9cccd | /py/entry_objects.py | d20202231220daede80e540b253eee93a87117f2 | [] | no_license | TritonSE/TSE-Newsletter | d47381df85d681f41fcc9ba5b179c7e4d0df205e | 4de09a3da764b9785a8e646ee45726fcd9a50534 | refs/heads/main | 2023-05-03T08:23:47.517580 | 2021-05-29T21:02:56 | 2021-05-29T21:02:56 | 322,511,298 | 0 | 0 | null | 2021-05-29T21:02:57 | 2020-12-18T06:38:17 | HTML | UTF-8 | Python | false | false | 2,780 | py | class Entry:
"""
Each section on the newsletter, such as upcoming events and milestones, can have multiple entries.
This class is used to represent a single entry which consists of a title, a description, and details regarding logistics.
Attributes:
1. title (string) - The title of the entry.
2.... | [
"noreply@github.com"
] | TritonSE.noreply@github.com |
679b56d7e69148380eea52a77a6f54987348114c | 896ae2c9853793c9cb3b2cfd771be2927c09e2eb | /Library/evalH.py | 0e071bbf6b5653d890bb5008e64787250a03b612 | [
"MIT"
] | permissive | JustinBonus/Borja-Amies | 23adb713cc8f1a8051d73e4cce0c12a083dd0f49 | 5560879df9bc0cc8da2f6273b161c30f82702e1e | refs/heads/main | 2023-01-25T04:31:22.648032 | 2020-12-11T23:20:48 | 2020-12-11T23:20:48 | 320,693,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | def evalH(param, kappa):
#s = evalH(param, kappa) returns the value of H=h*kappa^m (AKA exponential hardening moduli)
if kappa < 0:
s = 1.0e-10
return s
s = param.hh*(kappa)**param.mm
return s
| [
"noreply@github.com"
] | JustinBonus.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.