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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d6f400c8e900cfa2adabecd58ef963c067396287 | 1abdbf49bf7c75ebf75f6d30e6c04747c84b927d | /models/pacient/profession_history.py | 4619c59e2a40a8c1852547525dc9b78a032afd9a | [] | no_license | JoseMOrellana/neuro_app_api | 160577a0de1efa20934c1ee150d34abb591295ee | 46797375afc66392452a08f28ee6ebee716d8c14 | refs/heads/master | 2022-11-20T01:18:46.880451 | 2020-07-24T13:33:07 | 2020-07-24T13:33:07 | 262,230,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | from db import Column, Integer, ForeignKey, String, Date
from models.abstract_models import BaseModel
from .profession_type import ProfessionTypeModel
class ProfessionHistoryModel(BaseModel):
__tablename__ = "profesion"
profession_type_id = Column("tipo_profesiones_id", Integer, ForeignKey(ProfessionTypeMod... | [
"jose.mom.1304@gmail.com"
] | jose.mom.1304@gmail.com |
4c795c026fff52696fabaad9bcac64c4f44ed866 | 2ad59884af3eef1d1e691ce3619627d2770f3788 | /website/theses/migrations/0009_auto_20170805_0851.py | e3adc63aaab0bb7a4b77e7ca88d4ce4f3f723b39 | [] | no_license | ea-czech-republic/efektivnialtruismus.cz | ee9058021bc86cda2ab52c7988f9c85e9605865b | 77e142e0689eab491493109c804c3bc9c0bf6d58 | refs/heads/master | 2022-03-22T21:47:53.383690 | 2022-02-22T13:02:02 | 2022-02-22T13:02:02 | 72,468,463 | 14 | 20 | null | 2022-01-24T22:35:25 | 2016-10-31T18:57:45 | Python | UTF-8 | Python | false | false | 1,370 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-08-05 08:51
from __future__ import unicode_literals
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.embeds.blocks
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = ... | [
"hnykda@gmail.com"
] | hnykda@gmail.com |
6eddd42a5519b03d2935288ced48109a65ebb949 | e4868d19343a26e17896aa30246741d6e9b02797 | /receive.py | 93b67f5339b5b9ade23122941679b43734111d21 | [] | no_license | georgeredinger/WiFly_SPI_UDP | 68fd35fa549e494d6562022ff388491332a027a3 | 9b9c180968fbc956e39e971158254d2de4548dc3 | refs/heads/master | 2020-06-26T03:20:58.175217 | 2013-05-23T14:22:46 | 2013-05-23T14:22:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import select, socket
#port = 5005 # where do you expect to get a msg?
port = 55555 # where do you expect to get a msg?
bufferSize = 1024 # whatever you need
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('<broadcast>', port))
s.setblocking(0)
while True:
result = select.select([s],[],[])
msg = ... | [
"george@georgeredinger.com"
] | george@georgeredinger.com |
ea8f3fefee0c524940d86a4601d4086cee9338d2 | 75db7f09ce965d89611ffd53201611ef427f65a7 | /buddysuite/tests/test_databasebuddy/test_db_ui.py | c15a2839664ca924dd030dd2102e212d389cf0f2 | [
"LicenseRef-scancode-public-domain"
] | permissive | ctSkennerton/BuddySuite | d217e645002dffa85ff09025536382b943d9917f | d920eec0d5a2e30dd896b0474c3ede79e29e0c13 | refs/heads/master | 2021-01-17T17:30:08.119258 | 2017-02-24T23:01:35 | 2017-02-24T23:01:35 | 82,962,634 | 0 | 0 | null | 2017-02-23T19:20:57 | 2017-02-23T19:20:57 | null | UTF-8 | Python | false | false | 46,031 | py | import pytest
import os
import re
import sys
import argparse
from copy import deepcopy
import buddy_resources as br
import DatabaseBuddy as Db
def fmt(prog):
return br.CustomHelpFormatter(prog)
parser = argparse.ArgumentParser(prog="DbBuddy.py", formatter_class=fmt, add_help=False, usage=argparse.SUPPRESS,
... | [
"biologyguy@gmail.com"
] | biologyguy@gmail.com |
509fee19ac22160dda30942e1f3bc043af305a98 | 7584585becdb21bd13a64340fe484e9ff09b2661 | /another_project.py | 131ed5859423001ee7469c86014daacff81e8ea5 | [] | no_license | LahavNanovel/hello-world-usage | cc55fa4e5c79a6aeed18af5ca95b8c06c91431b0 | f0bb8124e021d133c7454f673f868bbb5e8e27dd | refs/heads/master | 2023-03-09T11:57:21.252352 | 2021-02-22T12:42:44 | 2021-02-22T12:42:44 | 341,181,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | from helloworld.main import print_hi
print_hi()
| [
"lahav@nanovel.co.il"
] | lahav@nanovel.co.il |
4e6f7728e1ccc0ee08f9eab26f26539c32f245f1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02779/s326665097.py | af3b88d1cfb1a25941fa607ee97b983b715cf65f | [] | 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 | 221 | py | from collections import Counter
n = int(input())
a = list(map(int, input().split()))
c = Counter(a)
new = c.values()
for i in new:
if i != 1:
re = "NO"
break
else:
re = "YES"
print(re)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7cad7992eeac85db66f3ce5104c3ea5578c661fc | 892ff205c217f3ff0a0e3aef17aa037828b0383a | /IMDB Scraper/updateDB.py | e4b679138418d99bb44767cba1564febfab37519 | [
"MIT"
] | permissive | MTashreeqWaggie/Video-Store-Management-System | f73cce2a268344511735d73ddb8fdb9da98db8cb | 72ccccd9541780d0a416b73a65ad0158be58bd32 | refs/heads/main | 2023-04-29T01:42:33.834367 | 2021-05-23T19:24:14 | 2021-05-23T19:24:14 | 283,135,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from store.models import Product
Product.objects.update(poster = "")
f=open("forDownloads.tsv", "r")
movies = f.read().splitlines()
for i in range(0, len(movies)):
if(i == 0):
continue
lst = movies[i].split("\t")
id = lst[0]
relativePath = "/store/static/images/"+id+".jpg" # dean to... | [
"TashreeqWaggiie@gmail.com"
] | TashreeqWaggiie@gmail.com |
a626adc7102a1a6b908acacffa6e1e0b37933a75 | 8e75c045b657680591b787bf9a1506dd3aed2415 | /address_plate.py | 8fd3b10fe9450a242099fca07b72db71b257c271 | [] | no_license | SergeyFromOdessa/address_plate_modern | 87c97bc3431700ced539ece56149264c89a8a61d | 08ccaa98050b247fe38fae9e7b167ca6a388debc | refs/heads/master | 2022-11-10T22:17:44.826529 | 2020-07-06T08:38:09 | 2020-07-06T08:38:09 | 277,486,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,542 | py | from argparse import ArgumentParser
import io
import pickle
import re
from reportlab.pdfgen import canvas
from reportlab.lib.colors import PCMYKColor
import sys
import textwrap
def pt(mm: float) -> float:
""" mm to pt
"""
return mm*2.834645669 # 72/25.4
def _load_path():
with open('paths' + '.pkl',... | [
"sergey@example.net"
] | sergey@example.net |
7c9721087d190c93ec3d0570b7653a0bc525aae6 | 530596633f680ef842d594b58dd4b1016e2a86ff | /mapclient/controllers/proxy.py | a5bc06ca259b2097fbd227b3b33002a7c08048b8 | [] | no_license | PublicaMundi/MapClient | 5c770a124efdfe092228fc7a51c5485ef702734b | a526738e5b5a5e01ae3cd9c7275730e2cd6668b3 | refs/heads/master | 2016-09-06T08:30:15.528118 | 2015-12-02T11:09:16 | 2015-12-02T11:09:16 | 26,762,602 | 0 | 1 | null | 2016-02-23T16:51:47 | 2014-11-17T15:21:08 | JavaScript | UTF-8 | Python | false | false | 5,501 | py | import logging
from pylons import config, request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
from pylons.decorators import jsonify
from mapclient.lib.base import BaseController, render
import urlparse
import requests
log = logging.getLogger(__name__)
MAX_FILE_SIZE... | [
"yannis.kouvaras@kupa.gr"
] | yannis.kouvaras@kupa.gr |
310e69fe2834a6bb85c8c684f7ddfd3ff3c07bea | ccd2851c8eec6c5b9175afc847bf300fe6a0d3d0 | /ninfo_plugins_splunk_bro/bro_user_agents/bro_user_agents_plugin.py | b02bf1548eb075314bdd7e21ad2a9408af32e0e1 | [] | no_license | JustinAzoff/ninfo_plugins_splunk_bro | fdeb6eda7fd7af4aa8208481aef2547af5461d86 | 526f6f3541ac87165f8c5d0c97019247569d03ae | refs/heads/master | 2020-09-12T20:33:00.326776 | 2014-02-18T14:03:49 | 2014-02-18T14:03:49 | 14,694,629 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from ninfo.helpers.splunk import SplunkBase
class useragents(SplunkBase):
"""This plugin returns recently seen user-agents as detected by Bro for this IP"""
name = "bro_user_agents"
title = "Recent User Agents"
description = "Recently seen HTTP User Agents"
types = ['ip','ip6']
TEMPLATE = "hou... | [
"justin.azoff@gmail.com"
] | justin.azoff@gmail.com |
db24493564bfe520bdc8dd75ca9947696ec68c4b | 8cf2d365516014d50e9149dea3fc96e4ef84e0d6 | /old/sample_hw_code/onewiretemp.py | 59dcaafcd5d21f0077027db1c2f850e7a4e32353 | [
"MIT"
] | permissive | mikeschmidt69/fermonitor | 242e343a47cccb94b6e9ba5e4753b6fdf2752055 | 1c1785f25cffc7d14bfca11fdc5e5ef6c20d59ce | refs/heads/master | 2021-06-14T07:14:40.087467 | 2021-03-17T17:57:47 | 2021-03-17T17:57:47 | 170,920,399 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,521 | py | #
# Copyright (c) 2019 Michael Schmidt
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, d... | [
"47675124+mikeschmidt69@users.noreply.github.com"
] | 47675124+mikeschmidt69@users.noreply.github.com |
a57e3e77d893b00ed27294b3bfd85f27a0e37ff0 | 704fda0d0e05f66f0c4f3c17cc4b39e2b0bc6220 | /homework5/task1.py | abca4dc5606ab449987bfe8f42e4a8d55ed56536 | [] | no_license | humantom88/geekbrains-python-basics | 71eae1be4f8b1d757db17200d64d2b14ea51d83f | ebde8e0a9b92386f2a5b994a880184adde8c7454 | refs/heads/master | 2021-05-17T10:48:56.788147 | 2020-04-23T09:51:10 | 2020-04-23T09:51:10 | 250,743,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # 1. Создать программно файл в текстовом формате,
# записать в него построчно данные, вводимые пользователем.
# Об окончании ввода данных свидетельствует пустая строка.
print('Введите текст: ')
with open('task1.txt', 'w') as f:
is_input_over = False
while not is_input_over:
user_string = input()
... | [
"Belov.A.Andr@sberbank.ru"
] | Belov.A.Andr@sberbank.ru |
4f0239fbe754bec4f62ac564b2eec8efa2ff6483 | 554999891c412bfb684e678db9237784b3e94e13 | /model_image.py | 4888a0a3c3104f09d24dda71346efcfa4bd3c29b | [] | no_license | alherondelle/Large_Satellite_Image_AutoEncoder | 9c5ee37d6ebbc5b0566916859a03b8b6c07e9123 | 5e1321c2419cbefc13d0c9c5e5678420b69d8205 | refs/heads/master | 2023-01-18T21:16:15.233479 | 2020-11-27T16:57:07 | 2020-11-27T16:57:07 | 304,578,907 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,189 | py | # -*- coding: utf-8 -*-
import glob
import random
import cv2
import os
import torchvision.transforms as transforms
import torch
import random
import pickle
from tqdm import tqdm
from torch.utils.data import Dataset
from PIL import Image
import numpy as np
import torch.nn as nn
import torchvision
from torch.autograd i... | [
"agathe.lherondelle@mines-paristech.fr"
] | agathe.lherondelle@mines-paristech.fr |
5033788886ca0a031be15dcc3ead9afa0c97c340 | 22e37de74bbd859791dccb147284527ebd6674e3 | /image_handler.py | 05ccb9bc709d2e4bbcbc61b4e59867ebdab9528d | [] | no_license | fnrcum/pjing_client | 719fd997beafb65d4490032a414124dad093c19f | b0dc51d7dd8da969544844b3c19773a816aff600 | refs/heads/master | 2020-07-26T12:30:06.307678 | 2016-11-15T12:40:58 | 2016-11-15T12:40:58 | 73,721,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | import pygame
class ImageHandler:
def displayImage(self, screen, px, topleft, prior):
# ensure that the rect always has positive width, height
x, y = topleft
width = pygame.mouse.get_pos()[0] - topleft[0]
height = pygame.mouse.get_pos()[1] - topleft[1]
if width < 0:
... | [
"nicolae.farcas@softvision.ro"
] | nicolae.farcas@softvision.ro |
eedd37c21608b7c9d5ea2db1adf565b669952301 | 51492dcfd3398c5201e6428317b9b52ec4fd3259 | /easy/246.py | 4b5243aa347dbb9d5f21e8094484de9478a97b2c | [] | no_license | ntupenn/exercises | 682f1a52c51278a929fa5adfdcb8e8404f6012dd | d0edb8b909f94c1e2dfaaa63f6a7c4e3e09236e4 | refs/heads/master | 2021-05-14T13:17:49.209577 | 2018-02-02T08:35:26 | 2018-02-02T08:35:26 | 116,435,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | '''
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).
Write a function to determine if a number is strobogrammatic. The number is represented as a string.
For example, the numbers "69", "88", and "818" are all strobogrammatic.
'''
def isStrobogrammatic(num):
... | [
"xuanzhang1118@gmail.com"
] | xuanzhang1118@gmail.com |
aca8286bd93b871eb0b572ac027266f46511234a | 7405aff080f8f9f915c1989dc7eb5a16d0e3c54c | /data_viz.py | 1a9f146a9a1a844f9ab1678c4b80909a02920f11 | [] | no_license | peter-haferl/reddit_hockey_sentiment_analysis | 9dc3cbca3e7f05b0550fdcfda7bc30c733e7aa17 | a341f8cdd623758fa3eedcb8dc9c4a3c3f9b3596 | refs/heads/master | 2022-03-30T18:43:45.113783 | 2020-01-30T21:32:30 | 2020-01-30T21:32:30 | 212,584,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,092 | py | '''
Functions for visualizing data for EDA
'''
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from IPython.display import display, Markdown
from sklearn.preprocessing import MinMaxScaler
# game_data = ['num_comments', 'num_fights', 'attendance', 'len_game', 'corsi_for%',
#... | [
"peter.haferl@gmail.com"
] | peter.haferl@gmail.com |
d091376ea903c1328ac580659f780419ba14131f | 5f834f8aa0603f4f7adc56fdcd5e227538931f81 | /diab_logisReg.py | 2ce02d3f7c7d13896c4c7c0870cb4b25f1af7a59 | [] | no_license | Kamal-prog-code/HealthCare | d9a613bcb315a04b14feead97bb4367034f91606 | 2d2fe464a5d25c1373634663dc1eaf07a9064a30 | refs/heads/main | 2023-01-20T22:17:55.157525 | 2020-12-05T20:50:03 | 2020-12-05T20:50:03 | 318,627,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | from pyspark.ml.feature import VectorAssembler
from pyspark.sql import SparkSession
from pyspark.ml.feature import StandardScaler
from pyspark.ml.classification import LogisticRegression
from pyspark.mllib.evaluation import BinaryClassificationMetrics
from pyspark.ml.classification import RandomForestClassifier
import ... | [
"karrerajisyam123@gmail.com"
] | karrerajisyam123@gmail.com |
63cf4e7fc790f00047e1d1b4a59e089134a6a4ce | 1113e8eec4ccbbcd00c6a9b5466c5239b6f0eb03 | /cpos/foundation/_callable/core.py | d5bcbc5bd5bde2ddfb68fa7a980ecfe3e94c65cb | [] | no_license | yizhong120110/CPOS | a05858c84e04ce4aa48b3bfb43ee49264ffc5270 | 68ddf3df6d2cd731e6634b09d27aff4c22debd8e | refs/heads/master | 2021-09-01T17:59:53.802095 | 2017-12-28T05:43:06 | 2017-12-28T05:43:06 | 106,247,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,495 | py | # -*- coding: utf-8 -*-
import textwrap
import sys
import os
from ..substrate.utils.logger import logger
from ..substrate.interfaces import Clarified
class Callable(object):
def __init__(self, py_code, fragment_name=''):
self.d = {'py_code':py_code,'fragment_name':fragment_name}
def run(s... | [
"yizhong120110@gmail.com"
] | yizhong120110@gmail.com |
67aa07a8f93c0131c8362599c6407214f99ced5f | b485f081e215a98e2f1de2fb0af0b057c10325d1 | /indigo_prod/controllers/__init__.py | 1b8d1182901c2ba830c5f3fbcaadd5627d72c48d | [] | no_license | suningwz/gestion_rma-11 | ae08eaf9b9b0785213eccd07e3046064afc4bc76 | 40089a1211376ed6211982ba1dbe0b9f52ceb233 | refs/heads/master | 2023-01-21T10:25:21.835163 | 2020-10-20T08:38:57 | 2020-10-20T08:38:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # -*- coding: utf-8 -*-
from . import sales_report_export
from . import sales_report_by_invoice
from . import stock_pick_item
from . import sales_report_outstock_item | [
"odoo@ibasuite.com"
] | odoo@ibasuite.com |
85f48c4129634010b6d34d68fcf2d5be232d965c | 8315a79787fe8ccab90d8da9e6e3c47b4fd9ea2d | /desafio49.py | 0402720616afcac79a497a2a417c139079a400a6 | [] | no_license | lmdpadm/Python | 371b51f4172ef2e7016e3c3ce1bbd13fc5ec5966 | ab0f77c9bd35ea6933a4bf3c67ec5816f4195fc8 | refs/heads/main | 2023-08-07T13:13:39.785067 | 2021-09-23T00:34:28 | 2021-09-23T00:34:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | numero = int(input('Escolha um número e falaremos sua tabuada: '))
for c in range(1, 11):
print('{} x {} = {}'.format(numero, c, numero * c))
| [
"noreply@github.com"
] | noreply@github.com |
bfb90c8755e3b83e9062e88376453a3cfeeee7ec | 9c2edc273db48dcb6d31a937510476b7c0b0cc61 | /pyopengl_sample/tutorial1.py | 0fd92b98d815dd26d6457ba6f9ac33791867e7e0 | [] | no_license | miyamotok0105/python_sample | 4d397ac8a3a723c0789c4c3e568f3319dd754501 | 77101c981bf4f725acd20c9f4c4891b29fbaea61 | refs/heads/master | 2022-12-19T22:53:44.949782 | 2020-05-05T05:09:22 | 2020-05-05T05:09:22 | 81,720,469 | 1 | 0 | null | 2022-11-22T02:22:55 | 2017-02-12T11:15:08 | Jupyter Notebook | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/python
from OpenGL.GL import *
from OpenGL.GLUT import *
def draw():
glClearColor(1.0, 0.0, 0.0, 0.0)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
glFlush()
glutSwapBuffers()
glutInit(sys.argv)
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH)
glutInitWindowSize(320, 240)
g... | [
"miyamotok0105@gmail.com"
] | miyamotok0105@gmail.com |
0014b564e562601e559c862a93e27d19ae0a5e54 | 0a06bd445cb3d9a870dca9234c016f8c2dfabf80 | /tcr | 6422914050f5b1a08648bedd450e11efd3c42f0e | [] | no_license | abailly/greed-tcr | 1f32c0e898fa3a8272686df3db4a58e63481a636 | dcd1c94519f4f3b4ebfd78e1e3f3de12e0931df0 | refs/heads/master | 2021-04-10T15:44:32.899713 | 2020-03-21T09:26:46 | 2020-03-21T09:26:46 | 248,943,933 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | #!/usr/bin/env python3
# -*- mode: python -*-
import os
import sys
import argparse
import select
import shlex
import subprocess
import sys
import signal
import time
def run_tests():
return os.system("stack install --fast --test")
def tcr():
if run_tests() == 0:
os.system("git commit -a -m \"working\... | [
"arnaud.oqube@gmail.com"
] | arnaud.oqube@gmail.com | |
7df32f5bb38ea86305dd99079c299814ae898f32 | fe625bc907b35a6c11b0884371b05d1e96cbc499 | /second/utils/config_tool.py | 962e66b1f9bcd0b9f1f4f5bcffd3eb1b617616cb | [
"MIT"
] | permissive | robin2002/second.pytorch-1 | 9425c2ccf5c522e70de8788f837f1406a09382ff | 886f69a82445e914567b05e99dc9844d0091aee1 | refs/heads/master | 2020-09-26T12:45:24.095875 | 2019-11-21T07:35:05 | 2019-11-21T07:35:05 | 226,257,485 | 0 | 1 | MIT | 2019-12-06T06:03:43 | 2019-12-06T06:03:42 | null | UTF-8 | Python | false | false | 2,509 | py | # This file contains some config modification function.
# some functions should be only used for KITTI dataset.
from google.protobuf import text_format
from second.protos import pipeline_pb2, second_pb2
from pathlib import Path
import numpy as np
def change_detection_range(model_config, new_range):
assert len(n... | [
"scrin@foxmail.com"
] | scrin@foxmail.com |
c1c766fca27a06c59babb1f5f5421cb0c6eb6bcf | 73e8c699b64f94548adfb3a2b2761c9999859835 | /witch_pay.py | 3edc2a46c55bf4137fdadd132db59f11adf7ea4b | [] | no_license | IamJenver/mytasksPython | 075e4d4d799cb46ebebaaee464530867aff07262 | 7e4db635884e962a5ff3ba33bc446077972acdc1 | refs/heads/main | 2023-03-15T17:13:13.411716 | 2021-03-08T15:22:31 | 2021-03-08T15:22:31 | 325,975,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # Всем известно, что ведьмак способен одолеть любых чудовищ, однако его услуги обойдутся недешево,
# к тому же ведьмак не принимает купюры, он принимает только чеканные монеты.
# В мире ведьмака существуют монеты с номиналами 1,5,10,25.
price = int(input())
counter = 0
while price - 25 >= 0:
counter += 1
pric... | [
"jenver@yandex.ru"
] | jenver@yandex.ru |
3dd8d95954d8afc63d0f4d3db7a8c16611722f2d | eb2a6898e7860a5df49f6cd1fb8d45e36b429520 | /fxinterview/urls.py | cdb2cb6d0e83aac454ed1318e2c84f9a9263fb70 | [] | no_license | chenfeiyude/fxinterview | 8abe0b077fa0535a38ce5f1bc547ae215f091773 | 3f35bbd7e800c06e8f756d817e4ea3600e3e6aa6 | refs/heads/master | 2021-07-13T01:04:35.097239 | 2020-08-14T13:59:10 | 2020-08-14T13:59:10 | 242,867,200 | 0 | 0 | null | 2021-03-25T23:25:28 | 2020-02-24T23:36:36 | JavaScript | UTF-8 | Python | false | false | 1,187 | py | """fxinterview URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"chenfeiyu0402@gmail.com"
] | chenfeiyu0402@gmail.com |
f5fa8e0a2925359dcd9fd458a986011562317b58 | f824b00bebe8cd409ae3fe49be40ccc5df7d06a0 | /WEB(BE)/firearm/apps.py | 03f2827fb22ba338d93cc9acb1d1b53556cd13dd | [
"Apache-2.0"
] | permissive | hspark15429/CLOUD_WEB_Blo-my_Byzantium | a7d2a9318fa9aeb21ca2fe97230eefd3325cc0c7 | 38d9da16c79714d41988008dd2a71ada6f2df3f9 | refs/heads/master | 2023-08-18T07:43:40.266548 | 2021-10-20T23:02:32 | 2021-10-20T23:02:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.apps import AppConfig
class FirearmConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'firearm'
| [
"noreply@github.com"
] | noreply@github.com |
fa50dff68c05675c2c7debb98f9a5b3d75c46c85 | 24331f07b0848c0921142bb12c6d1fbb3cc240bb | /web/ndn_client.py | db6e092283b2f41ad36e55bb492e7c2241148791 | [] | no_license | shockjiang/rms | 3c79a66a7e87705c079b737aa52b4897a9e392b2 | 19a6278ba7a7628b958d538bd15e29d4f81786e8 | refs/heads/master | 2020-03-26T01:18:01.276178 | 2015-06-09T01:35:10 | 2015-06-09T01:35:10 | 37,102,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,820 | py | #! /usr/bin/env python
# -*- coding=utf-8 -*-
import Queue
import thread
import threading
import json
import urllib
import time
from binascii import hexlify, unhexlify
import pyndn
import common.security as security
import common.statuscode
from common.settings import get_host,log
import webconfig
class RMSAuthExcep... | [
"shock.jiang@gmail.com"
] | shock.jiang@gmail.com |
a56e63d9aeb1c1faec33a03654624c5820c1539b | 17b7862ae66d7c4dacecd70e14fc80ccbb19c9f7 | /System_Monitor.py | a3f2ee6c1024904513e737a8729b95ccc50e58e6 | [] | no_license | zongxj/pyscript | 1a4e188ee18a36a2b8d3fecd5f06790538de32d3 | af82d004b27c72fa0ed8170f4415021e1263c03d | refs/heads/master | 2021-07-15T06:06:37.725891 | 2020-06-17T10:27:32 | 2020-06-17T10:27:32 | 127,864,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | # coding:utf-8
import psutil
import time
# 获取当前时间
now_time = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
print(now_time+'\n')
###############################
# CPU信息
###############################
# 查看cpu所有信息
Cpu_Time_1 = psutil.cpu_times()
print(Cpu_Time_1)
# 显示cpu所有逻辑信息
Cpu_Time_2 = psut... | [
"zongxj_cn@foxmail.com"
] | zongxj_cn@foxmail.com |
b1480d429e722377d42d9397f4d3dd57384079cc | 0add471d82edab23894421dc17429da39b92cc73 | /heaviside/ast.py | db8d24717141b5929f91b3a0e6c2f4d5e1c6f583 | [
"Apache-2.0"
] | permissive | MHova/heaviside | fac09ae7608306665ee01a46baa2197dc81d649d | 9ee9e69343c58124b8c7a119888a195794978cd6 | refs/heads/master | 2020-05-30T10:08:11.110234 | 2019-05-30T20:16:52 | 2019-05-30T20:16:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,872 | py | # Copyright 2016 The Johns Hopkins University Applied Physics Laboratory
#
# 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 ... | [
"Derek.Pryor@jhuapl.edu"
] | Derek.Pryor@jhuapl.edu |
b25f51bd9909f386f89f3058a2323e1d1b8c133f | 6c2608bc87b522da77c792e20330989de17b3005 | /Chap-7/ex179.py | 43c10f227985eb4652d2196644fcc6bc8c504dfe | [] | no_license | AleByron/AleByron-The-Python-Workbook-second-edition | 8a0b408c1bbd90c82e6b837fc898ee10341ca8fa | 491b2fd394aa04e29a4b2dbe9a615c547e239028 | refs/heads/main | 2023-01-13T21:01:17.757669 | 2020-11-11T01:29:28 | 2020-11-11T01:29:28 | 306,487,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | def square(n,g):
if 0<n-g**2<10**-12:
return g
else:
g = square(n,(g+(n/g))/2)
return g
def main():
n = 32
g = 1
print(square(n,g))
main() | [
"noreply@github.com"
] | noreply@github.com |
a58699037dba96bd3c8ee980bfc1ecf6a13aa983 | 32d47968bf1801661b785a1d72d2e21fb9686aaf | /lane_det/lane_line.py | 16c62a5f1dfc86e3097199b63707d0132ec217d1 | [] | no_license | janardhan5455/lane-detection | b466f62e3770617d6ce3497c55e8f8a174d1db7d | 483559b92b435759f6e74b6969fb69d1e15e8722 | refs/heads/main | 2023-03-26T18:25:35.445837 | 2021-03-28T05:03:57 | 2021-03-28T05:03:57 | 352,244,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | import cv2 as cv
import numpy as np
import matplotlib.pyplot as plt
car_cascade = cv.CascadeClassifier('cars.xml')
def canny(img):
grey=cv.cvtColor(img,cv.COLOR_BGR2GRAY)
blur=cv.GaussianBlur(grey,(5,5),0)
canny=cv.Canny(blur,50,150)
return canny
def lane(img):
height=img.shape[0]
... | [
"noreply@github.com"
] | noreply@github.com |
c666a6a03fd34d2025c018b75a0c275d8bbf4105 | 1b74a36d701985e37d4452a5daddbe617db237d8 | /test.py | 8e063c3f95d584cbf30b87796e9480ee6a8564f8 | [] | no_license | kayo289/syaberu_eakon | 0d5a184946356cf7611f1ddcd90298211e1f0006 | c72e7157d0d5b370ebf8e3f89379866c7b40d612 | refs/heads/master | 2023-05-30T05:47:45.616115 | 2021-06-17T11:50:45 | 2021-06-17T11:50:45 | 377,072,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,876 | py | #!/usr/bin/env python3
import pandas as pd
import numpy as np
from datetime import datetime as dt
from matplotlib import pyplot as plt
from scipy import stats
from mlxtend.evaluate import cochrans_q
from mlxtend.evaluate import mcnemar_table
from mlxtend.evaluate import mcnemar
import itertools
plt.rcParams['font.famil... | [
"kayokapi@icloud.com"
] | kayokapi@icloud.com |
950b52d7c89a1d9123e575f28cbf268da0e15cca | 5544c8f087646cc937aec6dd05f6ad9359347b13 | /Python数据处理/Numpy学习/数组统计.py | 68478e7aa4e7c04f6498f8043e13a7625692a185 | [] | no_license | liuyangNB/shiyanlouPy | b74b98baa70f83536a0584ee6907de74a4c77845 | 0ba28dfeadf2ff34062dd5257aa296edfaa4bd36 | refs/heads/master | 2021-04-02T01:32:25.183156 | 2020-03-18T12:48:30 | 2020-03-18T12:48:30 | 248,229,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | import numpy as np
#统计数组中位数
a = np.array([[1,4,3],
[6,2,9],
[4,7,2]])
print("中位数:np.median(a,axis = 0)\n",np.median(a,axis=0))#axis = 0 是对列做处理,投影到x轴 ;axis = 1 反之
#统计平均数
print("平均数:np.mean(a,axis=1)\n",np.mean(a,axis=1))
#统计各个行的的加权平均
print('加权平均:np.average(a,axis=0)\n',np.average(a,axis=... | [
"liuyang.nb@outlook.com"
] | liuyang.nb@outlook.com |
59ccd0e1e483b1dae9d770a68bd9587c99f73706 | 4c4aad4539175e5cb8c988a3a03605547b9e4869 | /fitnessClub/login_view.py | e0ea23a1e750c9c7aff06eb32b09f04fc7844744 | [] | no_license | purplum/fitness-course-registration-system | 4cdafe31ae9d21dbb2c5dee21d964a45c2303834 | 9ea00eca46ec19be20c9ca9689fbf948f0ae612f | refs/heads/master | 2020-04-22T03:47:16.369027 | 2018-08-14T14:23:21 | 2018-08-14T14:23:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from back_end import Login
def login_view(request):
return render_to_response("login.html")
def log(request):
if request.method == 'POST':
user = request.POST
conn = ... | [
"shellystar11@outlook.com"
] | shellystar11@outlook.com |
2bc1c55aa465d41767f5a4a17e88f2902fa650a2 | 115b5356242176b8873ae7e43cd313e41cbd0ee6 | /webstuff/webscraper/tidytext.py | 057e7c3a5a8d77e0574b55b38fb0fe5b7a3b444a | [] | no_license | squeakus/bitsandbytes | b71ec737431bc46b7d93969a7b84bc4514fd365b | 218687d84db42c13bfd9296c476e54cf3d0b43d2 | refs/heads/master | 2023-08-26T19:37:15.190367 | 2023-07-18T21:41:58 | 2023-07-18T21:42:14 | 80,018,346 | 2 | 4 | null | 2022-06-22T04:08:35 | 2017-01-25T13:46:28 | C | UTF-8 | Python | false | false | 976 | py | from BeautifulSoup import BeautifulSoup
import re
page = open('out2.txt','r')
for idx,line in enumerate(page):
parts = line.split(';')
for part in parts:
#print part, '\n'
if part.startswith('var point = new GLatLng'):
print "\n", part.lstrip('var point = new GLatLng')
m = re.... | [
"jonathanbyrn@gmail.com"
] | jonathanbyrn@gmail.com |
8e291920bc9258758fe57e54877cada173a13eef | 63bf6161532eefa72aa3be8b01cde601b08507dc | /python-mapping-example/fhir_model_generator/tests/model/slot_tests.py | ad3cec096349f05c2c4414e7b0a4ae6fc7aac7a8 | [
"Apache-2.0"
] | permissive | Healthedata1/mFHIR | 4ef370b87e03e973918e5683977d32fe262655bc | 1b4ea441cfa08b661416a3badedf7e90f2809163 | refs/heads/master | 2022-12-10T21:07:03.948406 | 2021-06-18T01:58:23 | 2021-06-18T01:58:23 | 129,964,251 | 9 | 5 | null | 2022-12-09T05:23:54 | 2018-04-17T20:57:15 | HTML | UTF-8 | Python | false | false | 6,767 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.1-9346c8cc45 on 2020-02-10.
# 2020, SMART Health IT.
import os
import io
import unittest
import json
from model import slot
from model.fhirdate import FHIRDate
class SlotTests(unittest.TestCase):
def instantiate_from(self, filename):
... | [
"ehaas@healthedatainc.com"
] | ehaas@healthedatainc.com |
ac0b29e663018b4fc53d6e6982827e701c021ea5 | 5d0833882aba2278a587e7292e46b6367ff0b9ec | /leetcode/editor/cn/grpc_test/async_streaming/server.py | 4a864b37b528baf4ceddbff78081083e82ffd395 | [] | no_license | GitZW/LeetCode | d52bcfd2273e9dfdd3e8f66530db398257ed73c8 | cb2cd758f6c8a0a38f10a6884f70a2413b2204c5 | refs/heads/master | 2023-04-11T05:21:24.318139 | 2021-04-30T10:22:47 | 2021-04-30T10:22:47 | 263,698,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,423 | py | # Copyright 2020 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"474268013@qq.com"
] | 474268013@qq.com |
1ab114a1176d26d3b841fc5fe2d183ecb240649b | e09f6fd52886e1d3be89b0552104d487ab78e0b7 | /outliers/enron_outliers.py | 18aec494f20e66f3d657bfd6a67b44e958e24889 | [] | no_license | tompxu/udacity-introtomachinelearning | a80f4d67f8836f77e508968f5d10af89c9f06d93 | f47df7f90e0718cd9d27b539eb79f268d1f49a79 | refs/heads/master | 2020-03-16T20:02:30.806512 | 2018-05-10T19:19:57 | 2018-05-10T19:19:57 | 132,943,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!/usr/bin/python
import pickle
import sys
import matplotlib.pyplot
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
### read in data dictionary, convert to numpy array
data_dict = pickle.load( open("../final_project/final_project_dataset.pkl", "rb")fix_imports=True )
feature... | [
"pengxu.tom@gmail.com"
] | pengxu.tom@gmail.com |
97c37aff4c9011d545041e6eae31ed60bd41ca37 | 11a278464db208eb7549b434a90d494b15d99af0 | /utils/misc.py | 5f66aeab52f0b0e7bd8b1f94f5d6c216b8352b06 | [] | no_license | kuafu1994/quantized_training | 65b503c0a2d54f9f4ab3dc3e963b13bcd1b1d424 | 9164d24834c897886f7543f687f521f76c67ed92 | refs/heads/master | 2021-02-14T20:49:06.271151 | 2020-03-24T18:26:02 | 2020-03-24T18:26:02 | 244,833,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | import random
import numpy as np
import torch
torch_dtypes = {
'float': torch.float,
'float32': torch.float32,
'float64': torch.float64,
'double': torch.double,
'float16': torch.float16,
'half': torch.half,
'uint8': torch.uint8,
'int8': torch.int8,
'int16': torch.int16,
'short':... | [
"1534472093@qq.com"
] | 1534472093@qq.com |
7d972446eb1d879cf62519229177e8b1c0ec47c5 | 2733461324b1602373a5973846942952b77951d2 | /Functions/Solution11.py | bb1ac36341c96635c80e29d53d876ac10e7d4588 | [] | no_license | Suyen-Shrestha/Python-Assignment | a14ececd2fcdd600004774cb8267b02b6665eb0e | 438cecb9d9e3f42e788743c87ebe830381061360 | refs/heads/master | 2022-11-12T10:25:32.517165 | 2020-06-28T05:31:47 | 2020-06-28T05:31:47 | 275,513,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | adder = lambda x: x + 15
multiplier = lambda x,y: x*y
print(f'The result after addition of 15 to a number: {adder(5)}')
print(f'The result after multiplication of x and y numbers: {multiplier(7,8)}') | [
"suyencrestha@gmail.com"
] | suyencrestha@gmail.com |
71b4898b2f07742091ba582a11d90f4317314a77 | 3c5885d48435dec194144afffb8fd4930fcb2bcf | /escapeartist/server/callbacks.py | 04aec18fa3ee814090402e7eaf7ff3b7a4f34603 | [] | no_license | Mnsk44/pentti-the-escape-artist | 6912e39dfe3fef23d1e5e7b0c76b82341a46baa2 | bb7998e03ead1468e7ab16a08dac63699b26d77e | refs/heads/main | 2023-07-03T05:43:15.993580 | 2021-08-09T04:02:47 | 2021-08-09T04:02:47 | 393,693,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,091 | py | """
Callbacks for dash app
"""
import base64
from io import BytesIO
from dash.dependencies import Input, Output, State
import dash_core_components as dcc
import dash_html_components as html
from character.bfspentti import BFSPentti
from character.randompentti import RandomPentti
from character.righthandpentti import... | [
"teemuj.mannikko@gmail.com"
] | teemuj.mannikko@gmail.com |
5eb992d258e71c062dad176eb8359025dccfd6c0 | b93ec4b9d0a72c94544c873891b15cdf4c48f04c | /online-store/backend/migrations/0001_initial_online_store.py | 30fdc6a232c93d3c0d7a1387174cd657aa482496 | [] | no_license | TmLev/microservices | cef9a7a2f6d14cbe59988f03873e5a74a3b32353 | ef31cba8656b66d8fdbdd6a947bcf00a3ad3f92a | refs/heads/master | 2023-03-27T11:44:30.882769 | 2020-06-13T07:47:11 | 2020-06-13T07:47:11 | 245,378,240 | 1 | 1 | null | 2021-03-30T14:22:24 | 2020-03-06T09:25:18 | Python | UTF-8 | Python | false | false | 217 | py | # Generated by Django 3.0.4 on 2020-03-26 17:51
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
]
| [
"leva.bugatti@gmail.com"
] | leva.bugatti@gmail.com |
3b97278167640c790740fbd6e9a435d1e87ce6e0 | baaa8c9486e02f4232f4926cf4e1a2eeee1199b4 | /accounts/admin.py | 2395fb1f93dfca90cba93acc7edf2da53b6c172c | [] | no_license | bondarenkoav/helpdesk | b2be867605d484c34aaea4d8bea876c633947f14 | 866ea2dc6ee5182d6310d800b301270b38490fd2 | refs/heads/master | 2023-01-08T09:44:15.852016 | 2022-12-28T10:53:39 | 2022-12-28T10:53:39 | 93,615,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from accounts.models import Profile
class ProfileInline(admin.StackedInline):
model = Profile
can_delete = False
verbose_name = u'Профиль'
verbose_name_plural = u'Профиль'
... | [
"printex.orsk@gmail.com"
] | printex.orsk@gmail.com |
5dcb61257b2836cf5cfd57455cb6d8fd50373f9d | 05d232f50ee12a8a837f077d7e70b13e404e9031 | /Amazon_web_scrapping.py | 5ae6d15441c66b963ef9ff70c804031d2c017048 | [] | no_license | Nidhig631/AmazonWebScrapping_Using_Python | 6c020a96dad58997e4f107ee5fda608aa910d29c | 4551196c50deede477e5f4beae8abf9a2288a88f | refs/heads/master | 2023-07-18T18:52:41.028857 | 2021-09-03T12:49:46 | 2021-09-03T12:49:46 | 401,325,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | from bs4 import BeautifulSoup
import requests
import smtplib
import time
import datetime
import csv
import pandas as pd
# Connect to website
URL = 'https://www.amazon.in/Designer-Unicorn-Engineer-Because-Official/dp/B08JFBP1ZF/ref=pd_rhf_dp_s_pop_multi_srecs_sabr_4/262-0019943-4855247?pd_rd_w=0rikd&pf_rd_p=217ae98b-13... | [
"nidhig631@gmail.com"
] | nidhig631@gmail.com |
a81b7c82c7f94ef1f25c412191abe2385f31780f | b3f7b53a6c0f9abb4b5947f490abc962855eedd8 | /problem/urls.py | 4b76531205caa265418618e9acdabdf64469b85d | [] | no_license | 17611165193/shiqing | e43dfd9640451e83fa4fc0d0c056a04746720766 | e4f8949f9c8b8578d21106da647524d091827484 | refs/heads/master | 2022-12-12T18:12:26.312807 | 2018-09-18T06:44:20 | 2018-09-18T06:44:20 | 149,234,968 | 0 | 0 | null | 2022-12-08T02:48:14 | 2018-09-18T05:44:13 | Python | UTF-8 | Python | false | false | 1,693 | py | """thing_app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"liuwei19990123@163.com"
] | liuwei19990123@163.com |
8efffa090b5cb44f5c8c49eb3255299505942f0c | 7920395f149cfdd5731946ea53526bb64d463660 | /lgbCategoricalSelector_v3.py | fd75c16fcf6b0d2ec929ab04768c995ca45f1446 | [] | no_license | mohsinkhn/Avito_kaggle_clean | f5229ea231e25cbf8d5b9cd53301ad6554298364 | 4a42493eb441d2956cc9e39aafdbfa02be7d2564 | refs/heads/master | 2020-03-20T13:11:05.583060 | 2018-06-24T16:08:51 | 2018-06-24T16:08:51 | 137,449,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,811 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 16 13:32:23 2018
@author: mohsin
"""
import gc
import os
from copy import copy
import pandas as pd
import numpy as np
np.random.seed(786)
from utils import *
from sklearn.model_selection import KFold, cross_val_predict
import logging
import mat... | [
"mohsinjackspiro@gmail.com"
] | mohsinjackspiro@gmail.com |
4c3ccf66b8fd7068c014cb41c62600b23d532d8f | af1004cc4cb93eab7fa55e7fc287e53490831a0d | /FirstScript.py | 1b18c9076359a6e43fe4623d023efa8cbc5ad39e | [] | no_license | ljairaj/Python | 11687230468a253570768fb0d275c9ca4b36541c | 499c14e510cbd8826dc2aca50b6c5052501ad5b9 | refs/heads/master | 2020-03-15T15:17:48.489802 | 2018-05-05T02:55:51 | 2018-05-05T02:55:51 | 132,208,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,574 | py | import sys
import random
import os
c = "LJR"
x, a, b = 'foo', 10, 1000.0001
# sys.stdout.write(x+"\n");
# print("\n\n\n\n");
# print(c);
# # Code to check prime number
# iVal1 = 2
# iMax = 30
# while (iVal1 <= iMax):
# # print("\nInput Value:"+str(iVal1))
# iVal2 = 2
# isPrime = 0
# while (iVal2 <= ... | [
"jairajl@yahoo.com"
] | jairajl@yahoo.com |
eaac79b7de8e57f814c859d5578d8f629cec856d | 767cf0d423216279ecae831fe323530f0b0b1d51 | /neuralbj.py | 0efdb6b0f24f86468550982bd3cefa325c8fc9a4 | [] | no_license | lowkeyluke/BlackjackAI | caa4df0992f659926675f4043ede8a60deba713a | e0d1edde2e655b017ed932ee6db1cc43c87e0fd2 | refs/heads/master | 2021-07-29T15:04:53.078149 | 2021-07-17T06:33:13 | 2021-07-17T06:33:13 | 106,197,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | """Neural net without game:
Immutable data (non-updating).
Used solely for testing"""
import numpy as np
# activation function: sigmoid
def sigmoid(x, deriv=False):
if deriv:
return x*(1-x)
return 1/(1+np.exp(-x))
# input data, X. Data is replaceable
# [player total, dealer upcard]
X = ... | [
"noreply@github.com"
] | noreply@github.com |
0d918889f8d20d3a4695849eb65eab1ae2ad9c9d | edfd1db2b48d4d225bc58be32fbe372a43415112 | /team-task/airflow2.0/dags/efirmant/lesson3.challenge2.py | ea755ca01b0b78617310f0d87c4b0b0748206373 | [] | no_license | rwidjojo/airflow-training | ed83cb9e97ca85ef06de1426f2f41014881a1f22 | ac82040d8ddc3859df5576eee08d397e824016f1 | refs/heads/main | 2023-08-12T21:01:17.672059 | 2021-01-04T09:17:48 | 2021-01-04T09:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import logging
from datetime import timedelta
from airflow import DAG
from airflow.utils.dates import days_ago
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator
from airflow.hooks.postgres_hook import PostgresHook
owner = 'efirmant' # Replace with you... | [
"nurcahyopujo@gmail.com"
] | nurcahyopujo@gmail.com |
2587d997b84fcb7ae2a6db87804428a88199fe81 | 3914c6b0a7913181cda205a60354e4f0cf2ec63e | /src/Voluntariado/asgi.py | 50108c6ee85e036c734e095588d4141441f9ce77 | [] | no_license | amado-developer/Voluntariado-API | 74c8cf8452b2616a9ce5131fae473440d6745d08 | ff7453ac53b0e1ae2988dc7a499731303e93755d | refs/heads/master | 2023-01-13T16:08:03.895866 | 2020-11-12T18:13:05 | 2020-11-12T18:13:05 | 287,809,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for Voluntariado 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_... | [
"amado_developer@hotmail.com"
] | amado_developer@hotmail.com |
736235745f10fb292372559ad9387d0047365fb5 | b3f122622c041622d89af596c3a9862391331a9d | /cms/templatetags/cms_tags.py | ba2f8b88c64e7ff01707867eca8253f36f35d1e5 | [] | no_license | noxan/django-mini-cms | b6b229f4add63582ef6d976e766a4102e3fa02c7 | c833e62571fd232ca5c6bc8278a5629c2886e9f1 | refs/heads/master | 2016-09-09T17:50:03.314904 | 2012-09-09T22:05:38 | 2012-09-09T22:05:38 | 4,614,741 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | from django import template
from django.core.urlresolvers import reverse
register = template.Library()
class BreadcrumbsListNode(template.Node):
def render(self, context):
page = context['object']
builder = []
builder.append('<ul class="breadcrumb">')
parent = page.parent
... | [
"noxan@redmoonstudios.de"
] | noxan@redmoonstudios.de |
d9506c0977e5d9a1415e1c9fbc0b2a18b8bdbc3e | e1d3233af9a37e4f961acd571bd309e209e579ae | /manager/migrations/0003_auto_20190217_1939.py | a8a618c566cda2ea973cdf1181824c8c3ab532fe | [] | no_license | AkashUR/DesktopManager | 1e11b510b474e7c8d819a6f7617919a0af42ff83 | 0458b01781c083e1889a1db5f85685e1d50edcd1 | refs/heads/master | 2020-05-24T02:27:12.849967 | 2019-05-16T15:39:36 | 2019-05-16T15:39:36 | 187,054,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Generated by Django 2.0.2 on 2019-02-17 14:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manager', '0002_log_element'),
]
operations = [
migrations.AlterField(
model_name='log',
name='log_key... | [
"noreply@github.com"
] | noreply@github.com |
8764d59d46a5444c80f139b86086313daedfab35 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_44595.py | 4b502c0083653180de1a265b86c37f599c2c98b6 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,838 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
ad04b02073fbbefec4122752a9ebc0a119a99129 | 532285432469eb3b572f5d8c34bcb517a3b70c0f | /students/tfbanks/Lesson02/gridprinter.py | d2398c22d620023cfe504a298c6a31c45517a672 | [] | no_license | toddlikesbeer/Self_Paced-Online | 4e0d8099d4185e145e7aa2a95d7c8f269ee1c982 | 82ab4aa4900b7d3d3acabb1a4c3cf357ca7f5be7 | refs/heads/master | 2020-03-21T23:12:05.212294 | 2018-10-31T02:41:54 | 2018-10-31T02:41:54 | 139,172,267 | 0 | 0 | null | 2018-06-29T16:29:26 | 2018-06-29T16:29:26 | null | UTF-8 | Python | false | false | 796 | py | # This is the result of manual processes moved into function form.
# I cleaned up during the process and deleted the old methods so the end result is just the function
def grid (x,y): #Defines a function to print grid to specified dimensions
p = '+ ' # This prints a + sign
d = '- ' # This prints a dash
... | [
"tfbanks@gmail.com"
] | tfbanks@gmail.com |
482245b45b2db988d4939f10948afa5fc56c5af9 | e1fd9dcbdb7c63a9d72772202fd9462faf728b9d | /Comprehensions - Exercise/06. Matrix of Palindromes.py | 88c292f825dd455576f5caa37696b131d5eca2c3 | [] | no_license | AngelValAngelov/Python-Advanced-Exercises | be34c5903cce17100e9fa2f04bb2394b33fccb87 | a206207a9a64051c962789b100a7a8945b1b6f80 | refs/heads/main | 2023-07-14T05:52:40.959381 | 2021-08-26T20:52:07 | 2021-08-26T20:52:07 | 373,634,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | rows, cols = [int(x) for x in input().split(" ")]
matrix = [print(' '.join([f"{chr(97 + x)}{chr(97 + y + x)}{chr(97 + x)}" for y in range(cols)])) for x in range(rows)]
| [
"noreply@github.com"
] | noreply@github.com |
bd48767328d1904968baef929946d37d9b971dcd | 5e629210c351f369208155a11f395d47be9b837b | /conditionCompleteion/src/osd/objectService/unitTests/test_diskfile.py | 9dd7b4b3b27b4b0cd4619e36e37b004d5c54ebc0 | [] | no_license | confi-surya/pythonicPracto | 028f2a50bc595b90bee95b235ec9218da3e45fe5 | c366afd9ab54b8cacda767189f1a13efb5f961b2 | refs/heads/master | 2020-03-23T12:56:55.843408 | 2018-07-19T11:51:59 | 2018-07-19T14:37:13 | 141,572,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,853 | py | import cPickle as pickle
import os
import errno
import mock
import unittest
import email
import tempfile
import uuid
#import xattr
from shutil import rmtree
from time import time
from tempfile import mkdtemp
from hashlib import md5
from contextlib import closing, nested
from gzip import GzipFile
from eventlet import t... | [
"surya.singh@nectechnologies.in"
] | surya.singh@nectechnologies.in |
37a08b96698b20dd1fea9d7b61d6b4b83fbb7d5e | 2672a2b664ed12f190b68deb51476b451a524561 | /portal/config.py | e45d5065a743935fa64b17b3a1a2a8ea6266d98c | [] | no_license | LCBRU/genvasc_portal_web | 9a2a27b4a2ba0fb2db402efc96eea8b2ed0a86e6 | 11eb562a5e92fd05fd5a902b7e062a2813e7b3f7 | refs/heads/master | 2023-01-09T09:59:07.301366 | 2023-01-07T14:44:07 | 2023-01-07T14:44:07 | 132,786,398 | 0 | 0 | null | 2022-01-11T13:17:30 | 2018-05-09T16:45:40 | Python | UTF-8 | Python | false | false | 2,527 | py | import os
from dotenv import load_dotenv
# Load environment variables from '.env' file.
load_dotenv()
class BaseConfig(object):
REMEMBER_COOKIE_NAME = 'GENVASC Remember Me'
REMEMBER_COOKIE_DURATION = 1
MAIL_SERVER = os.environ['MAIL_SERVER']
MAIL_DEBUG = os.environ['MAIL_DEBUG']
SECURITY_EMAIL_... | [
"rabramley@gmail.com"
] | rabramley@gmail.com |
9ad7ba4a5f420ba40e95879c3c0394387d39de2f | 7274ce2b75d49a90c57e9220756bc9beb532c9e1 | /preprocess/transfer_vector/generate_vector/__init__.py | b9ea07c910bd9fb6029e1c6cbbd7fe574314dda0 | [] | no_license | chauncyzhu/textclassification | 4eb03f2b11abd67680daab24f373971ce33d89cd | 0b3960f748ba66278250132d8b16d189cabe4a3f | refs/heads/master | 2021-01-19T08:59:13.889878 | 2018-03-10T05:38:19 | 2018-03-10T05:38:19 | 87,704,238 | 2 | 0 | null | null | null | null | GB18030 | Python | false | false | 161 | py | # coding=gbk
"""
传入训练集和测试集,均为dataframe,如果训练集中有对应词则查找bdc值,如果测试集没有对应词,则为0
""" | [
"chauncyzhu@163.com"
] | chauncyzhu@163.com |
6ad33022849320f6b516dc75f13b791033e727d1 | 5f5d081a34c938d438d81217e0adcc7aef1a8491 | /ImplementationV1.0/process_image.py | 21b66ada5bb3bf837577d81aef29cb3d1a40ccbd | [] | no_license | dilisharanasinghe/depslipts_code | e8f7992ad2ec2e99d78e37342de2611dfe19640a | d4bd9427f328adcc2ef44566cfb73d10cdfcd713 | refs/heads/main | 2023-04-04T07:07:22.900565 | 2020-10-26T13:02:33 | 2020-10-26T13:02:33 | 304,830,346 | 0 | 0 | null | 2020-10-26T13:02:34 | 2020-10-17T08:17:20 | null | UTF-8 | Python | false | false | 8,167 | py | import cv2
import numpy as np
class ProcessImage:
def __init__(self, image_file):
self.__image_file = image_file
self.__original_image = cv2.imread(self.__image_file)
self.__total_image_area = self.__original_image.shape[1]*self.__original_image.shape[0]
self.__resized_image = None... | [
"dilisharanasinghe@gmail.com"
] | dilisharanasinghe@gmail.com |
707cbe0e861c502e1e391185502522c94bb8d7ad | 5d3a26f35eb9c074c43b90db2d1ff78a6c9198c2 | /Codes in book/PyLorenz.py | 9ab67c463a9e63a3b11deecce9a9f4da5da7c7af | [] | no_license | asukaminato0721/PyOpenGL-Practise | 3585364a4f99c2e6252d7e71864b6c12431289ed | d065fd1b6f8a4944c1eb5225f934eca6bee856a2 | refs/heads/master | 2023-09-04T11:17:31.003716 | 2020-07-04T17:20:50 | 2020-07-04T17:20:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | # PyLorenz.py
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
from random import *
from numpy import *
import sys
# Globals for window width and height
global width
global height
# Initial values of width and height
width = 500
height = 500
def init():
# White b... | [
"noreply@github.com"
] | noreply@github.com |
cdd399103ba43752763d8ad26be3a37a30b31469 | c898fb981d3be036fd5a3de68641b07c3d10b171 | /flask_jwt_router/testing/__init__.py | e2964b0155adcd52f7bfa5f095476bd6d8112dfb | [
"MIT"
] | permissive | joegasewicz/flask-jwt-router | 669226adf9c82a00d783319cbc0790c6190ad518 | 17ad0e184e5692d48ed7fefd35c0d8a5b435c189 | refs/heads/master | 2023-03-08T16:49:42.515425 | 2022-06-22T17:20:46 | 2022-06-22T17:20:46 | 191,003,928 | 40 | 9 | MIT | 2023-02-16T04:08:37 | 2019-06-09T12:30:31 | Python | UTF-8 | Python | false | false | 357 | py | """
jwt_routes = JwtRoutes(app, strategies=[Google])
class BaseJwtRoutes:
pass
class JwtRoutes(BaseJwtRoutes):
pass
# Usage:
if E2E_TESTS == True:
class TestJwtRoutes(TestRouterMixin, BaseJwtRoutes):
pass
jwt_routes = TestJwtRoutes(app, strategies=[GoogleTest])
else:
jwt_routes = Jw... | [
"noreply@github.com"
] | noreply@github.com |
3dd764efee547895b61b17074bef1e80ee82a562 | 9bb6795a12d6e042b962704dab9ec59d92d54e8f | /1_numpy/2_reshape.py | b5d60e8241460327f2b7b83d534050593e76005f | [] | no_license | kimsoosoo0928/Perfect_Guide | c5177037512cb06814f0bbfcb70a22d14c9ec1fb | 9b615d320957babb1a918fb38282062998a1e5c4 | refs/heads/main | 2023-07-18T12:29:03.353274 | 2021-08-29T00:31:28 | 2021-08-29T00:31:28 | 396,668,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | import numpy as np
array1 = np.arange(10)
print('array1 : \n', array1)
array2 = array1.reshape(2,5)
print('array2 : \n', array2)
array3 = array1.reshape(5,2)
print('array3 : \n', array3)
'''
array1 :
[0 1 2 3 4 5 6 7 8 9]
array2 :
[[0 1 2 3 4]
[5 6 7 8 9]]
array3 :
[[0 1]
[2 3]
[4 5]
[6 7]
[8 9]]
'''
arra... | [
"kimsoosoo0928@gmail.com"
] | kimsoosoo0928@gmail.com |
5277e41c0d4047c015a72bf855ef4d2d4ac53a48 | 958f24d5ac8fac8187d7a30f4abbd6df15297595 | /Facturacion/Facturacion/asgi.py | 2270532c585a7393766e4e3f54dbb5ec11964c30 | [] | no_license | daustariz18/Backend | 0b0b421885d4a35b8f985e75f597c5e04b091a92 | 880c16a99db68e4cf7e312c04b9e8cb2b50cc2a2 | refs/heads/master | 2023-08-24T01:26:58.608075 | 2021-10-07T15:27:16 | 2021-10-07T15:27:16 | 414,657,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for Facturacion 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"diusme@gmail.com"
] | diusme@gmail.com |
a214d38572ca60d8058ab74e572ca6b436b58734 | 773ad191e5b35af3b6248b8f43a3d50da6cfab94 | /toolbox/randbn.py | 61e4fe1af04f84214859207f461567810a32a1ce | [
"BSD-2-Clause"
] | permissive | lauralwatkins/toolbox | a792ab0a7123333a1c40fd1af8cec0dca17b6815 | f4c2e7c62f83ec98872f62bc5df7d947cf387d56 | refs/heads/master | 2022-09-30T03:15:37.318914 | 2022-07-19T22:24:30 | 2022-07-19T22:24:30 | 37,667,498 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | #!/usr/bin/env python
# --------------------------------------------------------------------------- #
# TOOLBOX.RANDBN
# Laura L Watkins [lauralwatkins@gmail.com]
# --------------------------------------------------------------------------- #
from __future__ import division, print_function
import numpy as np
from scip... | [
"lauralwatkins@gmail.com"
] | lauralwatkins@gmail.com |
42235200cd42835a18eff480fd8af3ec941c2501 | 2b115deaf8aec0f1478aac411a0973847a0b6148 | /fetch.py | 0737710c8fcb7355ea6e682830bde82f407adb54 | [] | no_license | Tiquiero/zhihu-python | 40d462a0396d083a6ae3345e5e7a8dff9f254a23 | 933c1ebc45f2385423ccc37a245428c5a3557ea7 | refs/heads/master | 2020-03-14T02:32:56.816000 | 2018-04-28T10:49:28 | 2018-04-28T10:49:28 | 131,401,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | import os
import re
import requests
def download(folder,url):
if not os.path.exists(folder):
os.makedirs(folder)
req = requests.get(url)
if req.status_code == requests.codes.ok:
name = url.split('/')[-1]
f = open("./"+folder+'/'+name,'wb')
f.write(req.content)
f.close... | [
"tiquiero@163.com"
] | tiquiero@163.com |
527ee2718e614521dae7fd5f0ad151d7657b6168 | b161ad0cc14ab5b146bc28f65afd8d536ba789bf | /test/sample/test_sample.py | 43820370b9e253d70b13bc584d25c996a6d70845 | [] | no_license | jdechol/python-data-structures | 2a48969a195930a0be1b472281e394348fcb9fab | 3c64b7a9ff60b5a0b890c194af233a1af17b9a4d | refs/heads/master | 2022-12-09T04:22:46.561654 | 2020-09-21T20:27:42 | 2020-09-21T20:27:42 | 295,358,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | from src.sample import sample
import random
def test_quicksort():
numbers = random.sample(range(1000), 1000)
actual = sample.quicksort(numbers)
numbers.sort()
assert actual == numbers
def test_is_palindrome():
assert sample.is_palindrome("abcba")
assert not sample.is_palindrome("ab")
ass... | [
"jechols@mavenlink.com"
] | jechols@mavenlink.com |
2a62194338b909a52a0de4280e79ec646882d92a | de2a6c2d179cb6d0c583b54e09d1bf29c0892af1 | /railway/package.py | d0795ea2e8ef57b18e40b531c0999900e45a9330 | [] | no_license | yyww322/RailWay | af6bf4a960e191811d63aed894285cebd2ba61cb | 00af82a3bf62341203956098ccac37972b9ab50f | refs/heads/master | 2021-01-10T01:40:31.582879 | 2015-11-16T09:13:27 | 2015-11-16T09:13:27 | 46,093,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | # -*- coding: utf-8 -*-
# __author__ = 'CoolYan'
from distutils.core import setup
import py2exe
setup(console=['RailWay.py'])
| [
"110161598@qq.com"
] | 110161598@qq.com |
21996a6ac30b58a0c8b012f9581fe26cfbfda0c6 | 2fcd914869a4ae3d80bf1e18c7f9247537dee5e2 | /exercicio 2.py | b73766e5bb953d7b9af48240ef8cf010add5c388 | [] | no_license | vinicius48/exercicio-1 | 75ea541ebe2466fb00b95962986cf827d37c6951 | ef1f9b3f81e554dbb80f0f6b1b2304fedea7afe2 | refs/heads/main | 2023-07-26T03:18:44.040604 | 2021-09-07T02:03:18 | 2021-09-07T02:03:18 | 401,657,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | matriz_a = [[1,2], [4,-1]]
matriz_oposta_a = [[0,0], [0,0]]
matriz_b = [[0,0], [0,0]]
for l in range(2):
for c in range(2):
matriz_oposta_a[l][c] = matriz_a[l][c] - matriz_a[l][c] * 2
matriz_b[l][c] = matriz_a[l][c] * (1/9)
print(matriz_b, '\n', matriz_oposta_a)
assert matriz_b != matriz... | [
"noreply@github.com"
] | noreply@github.com |
35b3b957199ad587d7397bee4b61229411c935e9 | 6015d4b07ac1a1b7c784b7c643ecc9e83d4d5972 | /python_lesson1/Part7_Control_Flow_Lecture.py | 7605da12076a07948a43e8ef113cff72b056aeec | [] | no_license | smiledt/Full-Stack-Web-Developer-Bootcamp | 38263bf779945aafb0b10dace169006f9fd2fa6d | 5963711613a358162e85b260de9bf54828203337 | refs/heads/master | 2021-02-16T06:06:56.626763 | 2020-05-11T03:30:13 | 2020-05-11T03:30:13 | 244,974,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,910 | py | #########################
#### CONTROL FLOW #######
#########################
# In this lecture we will cover Control Flow in Python, basically how to dictate
# our code behaves in whatever manner we want. Let's start with basic comparison
# Operators:
###########################
## COMPARISON OPERATORS ###
#########... | [
"dereksmilees@gmail.com"
] | dereksmilees@gmail.com |
eee3c44ee37f4d9e37e7c411d908b2b1856e371d | c13686e36daaf1ba70c4999d152e179c108726fc | /clean_data.py | 09f16f5ad94316da62dbe0304018b1de304b0409 | [] | no_license | ravishrawal/nlp_sentiment_analysis | 00b60a5bf09c64012edb0f18fda14bcae9f6cb9a | 844729cf3f654bd8676c88475239f8d6b2b0c138 | refs/heads/main | 2023-07-05T02:10:49.372417 | 2021-08-04T13:49:42 | 2021-08-04T13:49:42 | 390,898,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 29 20:14:06 2021
@author: ravishrawal
"""
from utils import *
base_path = "/Users/ravishrawal/Desktop/Columbia MS/Summer B/QMSS NLP/final_project/"
test = 'the work-life balance is great! Love teh culture here. a+, 5 stars'
# convert to df & rem... | [
"noreply@github.com"
] | noreply@github.com |
2e61a6b407a11d07039c7a7032357e40376f6e6b | 71fb04f723b46a1bf45295be239bcec25e07f98c | /examples/layers/preprocessing/classification/random_crop_demo.py | 0538205cbc1fc4928a66c42bb9231dcb97e275ea | [
"Apache-2.0"
] | permissive | keras-team/keras-cv | 9bca4479474e853ec3a1c541b8be20fea2447a1a | e83f229f1b7b847cd712d5cd4810097d3e06d14e | refs/heads/master | 2023-08-31T10:22:08.406394 | 2023-08-30T20:24:57 | 2023-08-30T20:24:57 | 265,079,853 | 818 | 287 | NOASSERTION | 2023-09-12T16:49:01 | 2020-05-18T22:39:21 | Python | UTF-8 | Python | false | false | 1,152 | py | # Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | noreply@github.com |
7fa50c182bf54b2fbf51441eefa0f324279633e7 | 1431b07074b96c7baa6a43a99717da2a658424af | /test/utils/Test_Zip_Folder.py | d6ecc3e784eaacfbffe1988284d8bf95e88f557b | [
"Apache-2.0"
] | permissive | almeidam/pbx-gs-python-utils | 054a7334070627bc27f682ed78c2986230d1cfab | 3f8987dd2d1fc27d1d262385280d7303009f5453 | refs/heads/master | 2020-04-30T10:44:46.179729 | 2019-03-20T13:59:01 | 2019-03-20T13:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | import json
from unittest import TestCase
from utils.Dev import Dev
from utils.Files import Files
from utils.Misc import Misc
from utils.Zip_Folder import Zip_Folder
class Test_Zip_Folder(TestCase):
def test__using_with__no_params(self):
with Zip_Folder() as (zip_file):
assert zip_file is No... | [
"dinis.cruz@owasp.org"
] | dinis.cruz@owasp.org |
3c533179afdb9f6b45b2c62b10cff66119de15bd | 1a6b22f2ec35a41b2a63766c157e028c16593203 | /tests/rules/test_compare.py | ff830a3f609b021b31cfc7dcba2d47c1fef1025d | [
"MIT"
] | permissive | WinterComes/arche | c4b442111276a824f9589c7ffd70e0cb99687bf1 | 6be3d7a4ec66f33f7af544aa7af4ea95c35bef2e | refs/heads/master | 2020-08-19T02:06:22.518094 | 2019-10-07T14:37:45 | 2019-10-07T14:37:45 | 215,862,662 | 0 | 0 | MIT | 2019-10-17T18:44:42 | 2019-10-17T18:44:41 | null | UTF-8 | Python | false | false | 3,833 | py | import arche.rules.compare as compare
from arche.rules.result import Level
from conftest import *
import pytest
@pytest.mark.parametrize(
["source", "target", "fields", "normalize", "expected", "more_stats"],
[
(
{
"one": list(range(5)) + ["42"] * 5,
"two": ... | [
"noreply@github.com"
] | noreply@github.com |
ab6068f680ca8ac16e86b2e3a8d6e25bf09fbe95 | 2ac571cc2ef034254913523f5785c18a31656ad8 | /feeds/serializers.py | 9e5ae46fa42eab97d9a1ae1a08d43592cfc6c720 | [] | no_license | Shivam1904/HTTP_200 | 1f17a69c432ba23c5dc23e183611a1e5134d9b20 | 3df6be2dcd2300968f039aae9de833b7c0e9e270 | refs/heads/master | 2020-12-31T03:16:45.023011 | 2016-05-18T21:09:55 | 2016-05-18T21:09:55 | 45,245,014 | 1 | 0 | null | 2015-10-30T10:37:11 | 2015-10-30T10:37:11 | null | UTF-8 | Python | false | false | 12,153 | py | from django.forms import widgets
from rest_framework import serializers
from feeds.models import *
from django.contrib.auth.models import User
from django.http import request
class UserSerializer(serializers.ModelSerializer):
username = serializers.ReadOnlyField()
password = serializers.CharField(style={'inpu... | [
"deshrajdry@gmail.com"
] | deshrajdry@gmail.com |
0fcbb9241779fdaf99e46611d4e1b9d0073cf95f | 0bee19447c1a93a95cc59980e9a38ad3ea71ba49 | /rnn_layers.py | 8ef7e5f62c6619d7de7af83718e403242404911b | [] | no_license | weilai0980/HeteroRNN | de4f078365bfa997b885bf64c9b6a654a1907f5a | 82421a2e2e5459752f5a5af416123ece551ce9b4 | refs/heads/master | 2020-04-25T12:44:31.891307 | 2019-04-19T20:56:06 | 2019-04-19T20:56:06 | 172,787,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,391 | py | import sys
import collections
import hashlib
import numbers
from tensorflow.python.ops import rnn_cell_impl
from tensorflow.python.ops.rnn_cell_impl import *
# local
from utils_libs import *
#from mv_rnn_cell import *
#from ts_mv_rnn import *
# ---- residual and plain dense layers ----
def res_lstm(x, hid... | [
"tian.guo0980@gmail.com"
] | tian.guo0980@gmail.com |
90adc3801f23ed865f8ce3373066f9a2a5ee43e3 | e2bd8debf59f71e2c7fabea03cc108618944b2b0 | /el_pagination/paginators.py | 6da5231fca53a0b0e1e586150ed4c8803e1d1b0e | [] | no_license | successar/Quizz | 874c7c8656c33973d5d4f9563073b0434573a333 | 2244ff13568db92e3ff88156982ec44c83418199 | refs/heads/master | 2021-01-21T13:11:45.960397 | 2016-05-11T10:34:48 | 2016-05-11T10:34:48 | 53,747,315 | 1 | 1 | null | 2016-05-07T15:00:41 | 2016-03-12T18:36:34 | Python | UTF-8 | Python | false | false | 4,359 | py | """Customized Django paginators."""
from __future__ import unicode_literals
from math import ceil
from django.core.paginator import (
EmptyPage,
Page,
PageNotAnInteger,
Paginator,
)
class CustomPage(Page):
"""Handle different number of items on the first page."""
def start_index(self):
... | [
"successar@gmail.com"
] | successar@gmail.com |
35ac429c2000eeba0d2ae7692c1779bd7d106feb | a61c6fece6fb5b8eef7ff9c68ec3315d9512ce1d | /History Maker/ultimate_history.py | 02b8f4946f170fb949dbdd58d47543ec889e9221 | [] | no_license | byte127x/random-things | cbd2cabf13e2e780b23843aaac949d4ce68019ff | d05f834e227f8a956bc7e88fbaf19a9040a3815a | refs/heads/main | 2023-07-15T15:12:09.380001 | 2021-08-21T00:54:24 | 2021-08-21T00:54:24 | 398,433,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,926 | py | import random as rm
print("Welcome To The Domination Controller\nThis program makes radical algorithms to decide which country should fade from existence!\n")
countries = ['Austria', "Belgium", 'Bulgaria', 'Croatia', 'Cyprus', 'Czech Republic', 'Denmark', 'Estonia', 'Finland', 'France', 'Germany', 'Greece', 'Hungar... | [
"noreply@github.com"
] | noreply@github.com |
81dba2963b823be8d1f748daa2d0969e48aeebcc | 73dd708f0a69b573f49854fa9416773558df4733 | /webApi_dotnet.py | 0d98e6082cffccf45e414334ccc4900052439394 | [] | no_license | jobFrancoNet/Shopper | 9c333cf724410430d2f268dba4a970e1f92d5785 | eb984e1cf18707f24466604ad8e30492e849fbc9 | refs/heads/master | 2022-09-23T11:08:22.480513 | 2020-06-05T18:58:10 | 2020-06-05T18:58:10 | 265,583,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import requests
indirizzo_webapi="http://localhost:57058/api/Values/1"
richiesta=requests.get(indirizzo_webapi)
jsondata=richiesta.json()
print(jsondata) | [
"aiutocorsi@hotmail.it"
] | aiutocorsi@hotmail.it |
5e991e4e3dc2696c8cfb6c76836a9bc9521137d2 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert-text-classification_for_PyTorch/transformers/src/transformers/models/marian/modeling_flax_marian.py | 9d8b44c5f9da84470baadab2b4eafaf3dfea6fd6 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 63,778 | py | # coding=utf-8
# Copyright 2021 The Marian Team Authors and The Google Flax Team Authors And The HuggingFace Inc. team. 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
#
... | [
"dongwenbo6@huawei.com"
] | dongwenbo6@huawei.com |
69acf6cb42853141e98f121c77a9d61f1f1a30cf | 2c926b4847a44c7f831d47ed0160751d3248e8f4 | /venv/lib/python3.8/site-packages/hubspot/automation/actions/models/single_field_dependency.py | f18ca6bf64e6504458c415ed11f6e4ab7e527d5a | [] | no_license | Women-in-Tech-Society/WITS_Site | c42cd2c9abe1b5515b80be82dc876a6c3842e42a | 5dbf22f5ee5a36358f6f279af4c13d86d31653c5 | refs/heads/main | 2023-05-11T02:34:05.531902 | 2021-06-01T01:05:12 | 2021-06-01T01:05:12 | 278,658,100 | 0 | 5 | null | 2022-11-22T18:41:35 | 2020-07-10T14:43:28 | Python | UTF-8 | Python | false | false | 6,688 | py | # coding: utf-8
"""
Custom Workflow Actions
Create custom workflow actions # noqa: E501
The version of the OpenAPI document: v4
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from hubspot.automation.actions.configuration import Configuration
c... | [
"mhuda@uwo.ca"
] | mhuda@uwo.ca |
0dd03e74709472bf5290b512b954f095a6b05aee | cccbe12d485747620a8409e660da1750c4f32701 | /director/migrations/versions/30d6f6636351_initial_migration.py | 2a603bfa87a78d580219061ab85f910ef91e76fe | [
"BSD-3-Clause"
] | permissive | keshabb/celery-director | 1c958ac87c67e507ac220209c9236cf8f822c08f | 95ece533ba2f4205932e1bb761f1acab977918c4 | refs/heads/master | 2021-01-05T10:09:25.908079 | 2020-02-07T18:16:30 | 2020-02-07T18:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | py | """Initial migration
Revision ID: 30d6f6636351
Revises:
Create Date: 2020-02-07 18:34:41.680883
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy_utils.types import UUIDType
from director.models.utils import JSONBType
# revision identifiers, used by Alembic.
revision = '30d6f6636351'
down_revisio... | [
"ncrocfer@gmail.com"
] | ncrocfer@gmail.com |
bd0535c661dbe01083d172e9b8c093b5dbd1bbfe | e4485d5a94a64b242be2e24b298d0e56f0b55027 | /day13.py | 1d2c5525247d5abf550c88038a75938876901e16 | [] | no_license | 13thZygrite/AdventOfCode2017 | 179158320c18819cc7124c05cf0daaf00833b720 | 0766bf4502cd0d15631423cbe7f1140e6fed07fd | refs/heads/master | 2021-08-31T12:37:46.302253 | 2017-12-21T09:33:02 | 2017-12-21T09:33:02 | 112,941,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | #!/usr/bin/env python
with open("input_day13") as f:
input = f.readlines()
split = [map(int, line.split(": ")) for line in input]
state = [[] for i in range(split[-1][0] + 1)]
for line in split:
state[line[0]] = [line[1], 1, 0] # Length, direction (1 down, -1 up), current pos
# Part 1
severity... | [
"themathsmassage@gmail.com"
] | themathsmassage@gmail.com |
7b76d82117448e96980ae3f51aa746e12feeb50e | 6a7a9d6201f2c4399aa8ebb5910a8d706b0a5111 | /examples/Shape Example/shape_model/server.py | 5f186ff1fd20885027bedf9aa904264d4e7fbb79 | [
"Apache-2.0"
] | permissive | josepic99/mesas | 5024177751d1c97fbc2dabd5e3fe230b23d5fb97 | 8453fe36b8536795ce5b80975fc9dbc604da42df | refs/heads/master | 2023-03-13T19:19:00.769987 | 2021-03-09T00:44:39 | 2021-03-09T00:44:39 | 345,835,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | import random
from mesa.visualization.modules import CanvasGrid
from mesa.visualization.ModularVisualization import ModularServer
from shape_model.model import Walker, ShapesModel
def agent_draw(agent):
portrayal = None
if agent is None:
# Actually this if part is unnecessary, but still keeping it f... | [
"jackiekazil@gmail.com"
] | jackiekazil@gmail.com |
0e4438de1d5d50a311c87a31e465c1c6dfd3901c | 84759a86f19a7a7eb8ccd618c3cf1a3ef3228b13 | /examples/python/murach_python/book_apps/ch14/product_viewer/product_viewer.py | d2f7ab1e5d17fe51f51b963d8efcf0e37e4ea7c5 | [] | permissive | mattgraham93/mattgraham93.github.io | 50a77c4dd40398a631e5c026f95c33268c8cc67b | 2b65735f87427c770187c21c873e5277019c3a5f | refs/heads/main | 2023-07-07T09:07:56.085470 | 2023-06-30T03:51:24 | 2023-06-30T03:51:24 | 154,541,498 | 8 | 0 | Apache-2.0 | 2020-08-08T16:53:18 | 2018-10-24T17:30:09 | HTML | UTF-8 | Python | false | false | 1,297 | py | from objects import Product
def show_products(products):
print("PRODUCTS")
for i in range(len(products)):
product = products[i]
print(str(i+1) + ". " + product.name)
print()
def show_product(product):
print("PRODUCT DATA")
print("Name: {:s}".format(product.name))
pr... | [
"matt.graham@bellevuecollege.edu"
] | matt.graham@bellevuecollege.edu |
4123cc56630e37945d21654123abf8df84261538 | bae78540696a58c5f43e3234b6dc16ccdb4adb03 | /node_attack/attackSet.py | 26c47fe2940a8621125bdec0c8d2649627f9e8e6 | [] | no_license | Gadishenhar/adversarial_gnn | 8996c08f4432ee19f13d3e0f28706a32a13a43ad | 79a0ef983028fa1007ecf8c1c009aa7e43cab83b | refs/heads/master | 2023-07-18T04:18:25.019267 | 2021-09-07T17:20:15 | 2021-09-07T17:20:15 | 357,277,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,654 | py | from node_attack.attackVictim import attackVictim
from node_attack.attackTrainer import test
from classes.basic_classes import Print
import copy
import numpy as np
import torch
# a wrapper that chooses a victim node and attacks it using attackVictim
# an attack can have 3 modes described in parameter attack_params
#... | [
"gadi.shenhar@gmail.com"
] | gadi.shenhar@gmail.com |
2a739b751d27912b4ec246d9d6c54a4b4576bb53 | 441ee516fa509a66eb6a6132ed0fbafeae1a06ae | /uploadf/models.py | ecd3c53d7d6062ba60639a19f3c1636e76875306 | [] | no_license | Shirhussain/FileUpload | 3237627020ec322d4097e757b64f9f0c64feb4e7 | 19d2e848d7d05fd46838f9140c0a5658bbca281a | refs/heads/master | 2022-08-26T13:26:23.859084 | 2020-05-27T22:02:36 | 2020-05-27T22:02:36 | 264,777,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from django.db import models
class Book(models.Model):
title = models.CharField(max_length=100)
author = models.CharField(max_length=50)
pdf = models.FileField(upload_to="mag/")
cover = models.ImageField(upload_to="mag/cover/", null=True, blank=True)
def __str__(self):
return self.title
def delete(sel... | [
"sh.danishyar@gmail.com"
] | sh.danishyar@gmail.com |
84fd92823d3da86ca06d1ea1bef72787f0cfac2b | 68d0032b178a00adca59929917ef83df28efa71f | /process_data.py | 5e8177eecf2c5950ac5cb35683876feba12fa9bc | [] | no_license | AbhishekTaur/Elman_RNN | 3243657406851eebd1487ba63b4446bce489cd01 | 6cc67b8130797d9869d82337590c66d6264520a3 | refs/heads/master | 2020-04-30T21:33:26.118837 | 2019-03-22T15:25:41 | 2019-03-22T15:26:10 | 177,096,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | import pandas as pd
data = pd.read_csv("sample/blackscholes-small-4-8-cleaned.csv")
keys = data.keys()
print("Key\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tValues")
for key in keys:
print(key, "\t\t\t\t\t\t\t\t\t\t\t\t\t", data[key].values[0])
| [
"abhishektaur123@gmail.com"
] | abhishektaur123@gmail.com |
d75ab97fb9184a24f45a05f01fc83903b2dc748e | 6f8aec72f983715b1dcc1e067e980a440440423a | /bruteguard/patterns/singleton.py | a9f7c0f51adf9d2ce958d11132938a6d7c1b1ffb | [
"MIT"
] | permissive | dcopm999/django-brute-guard | 41cef7c1f98b275c0ef2176424c8ef1e75002fdb | e4c629d81f1cc732ddae2a43042e92ea423884b8 | refs/heads/master | 2023-08-02T06:16:54.219332 | 2021-09-30T05:45:10 | 2021-09-30T05:45:10 | 409,435,237 | 0 | 0 | MIT | 2021-09-30T05:45:10 | 2021-09-23T03:32:47 | Python | UTF-8 | Python | false | false | 1,076 | py | from typing import Dict
class SingletonMeta(type):
"""
В Python класс Одиночка можно реализовать по-разному. Возможные способы
включают себя базовый класс, декоратор, метакласс. Мы воспользуемся
метаклассом, поскольку он лучше всего подходит для этой цели.
"""
_instances: Dict[type, type] = {... | [
"dcopm999@gmail.com"
] | dcopm999@gmail.com |
9bf099e4570aab4e3c827aba4cfa379cb7ad7196 | a86cb1d0cc2c01ccc5b7d03d25a1b98d4f8b66ca | /day_18/crawling_03.py | 08ce38608a68158041385e8770f169492843e3ce | [] | no_license | yongseongCho/python_201911 | 020efd812df909f6d1150c6a15a9a4fa6ee946b6 | f4696fac81a101d13a95ca0ca602e6478b4d2f58 | refs/heads/master | 2020-09-12T12:44:46.364259 | 2019-12-19T13:17:08 | 2019-12-19T13:17:08 | 222,429,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | # -*- coding: utf-8 -*-
from bs4 import BeautifulSoup as bs
html = '''
<td class="title">
<div class="tit3">
<a href="/movie/bi/mi/basic.nhn?code=181710"
title="포드 V 페라리">포드 V 페라리</a>
</div>
</td>
'''
soup = bs(html, 'html.parser')
# BeautifulSoup 객체의 find 메소드
# 태그의 이름과 속성의 ... | [
"noreply@github.com"
] | noreply@github.com |
f2c83f4d0fc2e94589608d3b0b8b4d950151f83d | 470d603645840c014d7c7f6da0727cf9b1b7f618 | /googleanalytics/utils/string.py | a6a7c42a72e0a31d672c5b9656b708e86d48053c | [
"ISC"
] | permissive | ranksense/google-analytics | 5f3982a625d3a4aced16503856e83a30a6d890be | a97f7750fa51320fb9f2917e56563ffff06ccdde | refs/heads/master | 2022-12-15T15:54:17.519653 | 2020-09-19T17:05:59 | 2020-09-19T17:05:59 | 287,854,525 | 2 | 1 | ISC | 2020-08-16T01:46:25 | 2020-08-16T01:46:24 | null | UTF-8 | Python | false | false | 1,065 | py | import textwrap
# Python 2 and 3 compatibility
try:
unicode = unicode
except NameError:
unicode = str
def format(string, **kwargs):
return textwrap.dedent(string).format(**kwargs).strip()
def affix(prefix, base, suffix, connector='_'):
if prefix:
prefix = prefix + connector
else:
... | [
"stijn@debrouwere.org"
] | stijn@debrouwere.org |
fbf9ee05f41aa879f6e8efe0d638a2ad5f92c86f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/53/usersdata/94/21421/submittedfiles/matriz2.py | 0d65cb52f0ea2e9536be7e87278cf3364bd3fd2d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def soma_diagonal_principal(a):
soma=0
for i in range(0,a.shape[0],1):
soma=soma+a[i,i]
return soma
def soma_diagonal_secundaria(a):
soma=0
for i in range(0,a.shape[0],1):
soma=soma+a[i,a.shape[0]-i-1]:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7b896b4589bf69f36141e6756328de16f68c4a47 | c98b6927dcea7fbab0d5d456a6530ade2d9c74a5 | /refresh.py | 5bedb43ab92f73e849c809c7aebc181dc7b4ced3 | [] | no_license | nrtdemo/AT | a8d41cf919165c8d25d3c5577d61b986bcd6a2f6 | 06a14c09c6dac3ea65ee5743c0055e34c3be3692 | refs/heads/master | 2021-04-27T06:10:15.442508 | 2018-04-25T14:41:59 | 2018-04-25T14:41:59 | 122,608,112 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cgitb
import cgi
from link.FortyFiftyGbE import FF
from link.PEbangkok import PE
form = cgi.FieldStorage()
cgitb.enable()
if __name__ == "__main__":
print "Content-type: application/json\n\n"
print
if 'link' in form:
Link = form['link'].value
... | [
"nrtdemo@hotmail.com"
] | nrtdemo@hotmail.com |
5cbebc094716ebcd2abe250c57520dee3117a1d0 | d7d25574246fd8585396a02ebd2ca8450e49b082 | /leetcode-py/leetcode1041.py | 44b0f6df2298740f5cbbebe712ae04d38cac1548 | [] | no_license | cicihou/LearningProject | b6b1de2300e574835f253935d0c0ae693b194020 | 3a5649357e0f21cbbc5e238351300cd706d533b3 | refs/heads/master | 2022-12-04T06:18:14.856766 | 2022-11-29T08:54:16 | 2022-11-29T08:54:16 | 141,606,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | class Solution:
def isRobotBounded(self, instructions: str) -> bool:
'''
lc 657 的变种
这个问题比较 tricky,其实更接近数学问题
实际上只要判断机器人最后是否面朝北,就可以知道是不是回到了原点
关于为什么 instructions *= 4 是最小限度的解释:
https://leetcode.com/problems/robot-bounded-in-circle/discuss/850437/Python-O(n)-solution-ex... | [
"houxi_zuel@163.com"
] | houxi_zuel@163.com |
01a0395d3c8609fa3ce667d63ab94888725a0929 | 5539827c951cdeda292bc660d7d825aa64f0cb76 | /GuliEdu/wsgi.py | 336349ebaa5ca1f825e0fb4f8b394ed97ebcd997 | [] | no_license | dzapologize/GuliEdu | f5ed626003b49f6eb7f5590adb3487121cfda10e | 4916486c4d548178ed50df906efbb08297477b08 | refs/heads/master | 2023-01-01T23:58:01.009774 | 2020-10-03T08:40:18 | 2020-10-03T08:40:18 | 299,006,299 | 0 | 0 | null | 2020-10-03T08:38:47 | 2020-09-27T10:23:15 | Python | UTF-8 | Python | false | false | 391 | py | """
WSGI config for GuliEdu 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"diaozheng@yunbangshou.com"
] | diaozheng@yunbangshou.com |
50d80d14dd6348c83c9f92ad9073c1f1fdbf0848 | ab204a9b476c82c2543debd5455864a619acfb3b | /Travelling/ckdproject1/wsgi.py | b76560a5ed5fdfa463f50ca05f19d504c4da5308 | [] | no_license | chandan9074/Travelling-Web | ba05a77ed576a198ec53241b791d1f74ccaf3687 | 246f21a319b9afd7da45942cc936b2f32f7790d8 | refs/heads/master | 2022-12-02T07:23:32.672957 | 2020-08-02T07:36:32 | 2020-08-02T07:36:32 | 284,413,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for ckdproject1 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"chandan15-11611@diu.edu.bd"
] | chandan15-11611@diu.edu.bd |
174ab03d35f1b83c388a52575470a997450147eb | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/centerface/dependency/centernet/src/lib/datasets/sample/multi_pose.py | 5f4ff97eb3a893a418e55fcd8f149478108e8a22 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 9,604 | py | """
MIT License
Copyright (c) 2019 Xingyi Zhou
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
14fe14d5b0927cec2aafdb55e5df8d1d80138460 | 3ee7db94e09183f9fa7cc854fdb03b661c1d0b8c | /landchina/middlewares/middleware.py | e601d02f4109a4399723d51ec5f5f3c4be5c18fb | [] | no_license | Eddy-zdz/landchina | 44425eac71cfad5d6d456d8a472117f086e5b30c | 85f26b8f4d8610dcce93abf6f1fd0da326e1ff17 | refs/heads/master | 2023-03-16T18:38:01.897874 | 2017-05-27T07:26:07 | 2017-05-27T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # encoding:utf-8ß
from random import *
from landchina.middlewares.user_agents import agents
class UserAgentMiddleware(object):
'''换user-agent'''
def process_request(self, request, spider):
agent = choice(agents)
request.headers["User-Agent"] = agent
| [
"yuhangzhan@YuhangdeMacBook-Pro.local"
] | yuhangzhan@YuhangdeMacBook-Pro.local |
cfbbe9fd87346ac41ce6d9352492c08480e4ec86 | 3cdbe5f5810a035ae168f8ff01c39f58c571e428 | /golf/migrations/0047_auto_20171013_0759.py | 3a2a55b2b3c56503895e31b0b55d1c431628e5d5 | [
"MIT"
] | permissive | kenrumer/scorekeeper | ebd6467e2ecde3da96bb08ef77a56f967cbde00e | c7f22676e84dfdf6ca3361c6ff56719f68fce31f | refs/heads/master | 2021-01-22T05:01:11.370869 | 2018-01-12T07:13:20 | 2018-01-12T07:13:20 | 102,276,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-13 07:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('golf', '0046_auto_20171013_0021'),
]
operations = ... | [
"kenrumer@gmail.com"
] | kenrumer@gmail.com |
c8fe58376e632a3abf6fabe21b845ea9bfca8392 | 493d5df9420ef94d9c5e82acb2d163e2a8c639b7 | /memo_app/forms.py | f9a73ac5260ef3004567845ec9abe38b54032eea | [] | no_license | reina0207/django | 0e3d6422c137be52978526128112ebf319e0f462 | c42744935043efdcc4b9f3f14641105d082d691a | refs/heads/master | 2023-08-13T14:10:59.979651 | 2021-10-17T01:48:48 | 2021-10-17T01:48:48 | 417,983,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from django import forms
from .models import Memo
class PostForm(forms.ModelForm):
class Meta:
model = Memo
fields = ['content']
widgets = {
'content':forms.Textarea
} | [
"you@example.com"
] | you@example.com |
34c0055b2c462a9631a4da5040691bbf2b848594 | 37b1734e625ef52d76bc32055c91943740a1ab64 | /test.py | 06ac45e8982057cf4d886cec21cfe7e70ed199ff | [] | no_license | coloz/ocr-py | 83458071572e5212a22f87b1ea4aef1d321aebcd | 0037a83e877dc81cfe82f57df3274e1811690162 | refs/heads/master | 2023-05-02T21:30:36.839077 | 2021-05-17T14:21:30 | 2021-05-17T14:21:30 | 368,213,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import cv2
if __name__ == '__main__':
video = cv2.imread()
ok, frame = video.read()
if ok:
cv2.imshow("tracker", frame)
while True:
ok, frame = video.read()
if ok:
cv2.imshow("tracker",frame)
k = cv2.waitKey(1) & 0xff
if k == 27:
... | [
"clz@clz.me"
] | clz@clz.me |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.