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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7be7946325865916e8d492c49c6cba7b59e69b5f | 5bc6e835828af6910aee7142eb9c5b3c16da9c1b | /user_mgm/urls.py | 06b7e8ec0cf406ec9cc47eb042708bffee3a3910 | [] | no_license | fr6nco/easyatt_api | d294f5af6ca439649b51fd52256673b3d799ee4a | 9eeccb5a0111d72fed5fc157896aeb734e8e597a | refs/heads/master | 2020-07-30T23:14:13.772723 | 2016-11-21T17:55:47 | 2016-11-21T17:55:47 | 73,617,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | __author__ = 'thomas'
from rest_framework import routers
from views import UserViewSet, GroupViewSet, UserProfileViewSet
user_mgm_router = routers.SimpleRouter()
user_mgm_router.register(r'users', UserViewSet)
user_mgm_router.register(r'groups', GroupViewSet)
user_mgm_router.register(r'profiles', UserProfileViewSet)
... | [
"tomas.boros92@gmail.com"
] | tomas.boros92@gmail.com |
936b3abfafeee8de92355161e81f2cf35625caf2 | 2d8d7fef8f914f1b2337ee5d6a2e7c61dab9ec4e | /基础知识/1.语法基础/13.dict字典-增删改查.py | 8ea74ff8b009cb80334f8c2c6f4eb2ba593b1051 | [] | no_license | kuaikang/python3 | bb5bb8d807c4a8818b18f0d4e598232cc73ab3af | 60ca72662c7a6e718190ffa6139a129c1412a3fb | refs/heads/master | 2021-04-28T10:32:25.416550 | 2018-07-06T01:59:47 | 2018-07-06T01:59:47 | 122,068,697 | 13 | 11 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | print("字典是key-value的数据类型".center(50, "-"))
print("字典是无序的,key不能重复")
info = {"stu1": "tom", "stu2": "jack", "stu3": "lucy"}
print(info)
# 添加
info["stu4"] = "bob"
# 修改
info["stu1"] = "zhang"
# 删除
# info.pop("stu2") # 标准删除方法
# del info["stu3"]
# 查找
print('-----',info.get("stu11")) # 不存在的时候返回
# print(info["stu0"]) # 不存在时会报... | [
"359405466@qq.com"
] | 359405466@qq.com |
f8938e7c7df3a92df60e420a4429cb058096a7e6 | 4be5c172c84e04c35677f5a327ab0ba592849676 | /python/data_structures/array/sll/sll.py | dbdb9af0a8277d797c590e960437f9b0ac88de97 | [] | no_license | niranjan-nagaraju/Development | 3a16b547b030182867b7a44ac96a878c14058016 | d193ae12863971ac48a5ec9c0b35bfdf53b473b5 | refs/heads/master | 2023-04-06T20:42:57.882882 | 2023-03-31T18:38:40 | 2023-03-31T18:38:40 | 889,620 | 9 | 2 | null | 2019-05-27T17:00:29 | 2010-09-05T15:58:46 | Python | UTF-8 | Python | false | false | 5,315 | py | '''
A SLL implemented using regular arrays
SLL corresponding to
78 -> 10 -> 41 -> 36 -> 21
is represented below
| Index | Node | Node |
| | data | next |
|-------+------+------|
| 0 | 10 | 7 |
| 1 | | |
| 2 | 36 | 9 ... | [
"vinithepooh@gmail.com"
] | vinithepooh@gmail.com |
9b1336a598319774d6c7b2b0860e876c933a8cbc | c1fe97208afe479b7ae1ee67d69866a6911564ca | /Login/profilecreate/forms.py | 99f047fe4e0523e89dce7b7d71637698624e0c1c | [] | no_license | jaindhairyahere/Python_Django | a0a46c57b6ca60d0942ae181fe28ea56bb1ee948 | f170a2e38b78df698a02821a454a3baea0c358a6 | refs/heads/master | 2020-06-18T09:17:56.364928 | 2019-11-02T18:34:12 | 2019-11-02T18:34:12 | 196,249,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | from django import forms
from django.contrib.auth.admin import User
from .models import Alumni
from django.core import validators
def check_PhoneNumber(value):
if len(value) != 10:
raise forms.ValidationError("Not a phone Number")
class UserForm(forms.ModelForm):
password = forms.CharField(widget = forms.PasswordI... | [
"jaindhairya2001@gmail.com"
] | jaindhairya2001@gmail.com |
fc218140677c128fba861bf35809bb1816831d70 | ff8b2f7e9f425ac15e0f5c4f112e93e099575851 | /examples/callbacks/kill.py | 79a448a726982cae7b884e7884320103c60e1d43 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | dandyvica/clf | 62796e7da2cf1bcedcb2bcc0535901bfdbf7926c | 0774f971a973d89688a72f7283e251c7a429e946 | refs/heads/master | 2023-03-15T21:21:16.389788 | 2021-03-15T18:16:29 | 2021-03-15T18:16:29 | 257,052,271 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | #!/usr/bin/python3
# simple script to kill a process by ID
import os
import sys
print("killing PID " + sys.argv[1])
os.kill(int(sys.argv[1]), 9) | [
"dandyvica@gmail.com"
] | dandyvica@gmail.com |
d8d4c3e1b701acafe9efd4fe2960a78aae112f26 | 811adf2308db28dd363df945d3411d9346a26037 | /detimakerlab/technician_api/apps.py | 1fd1d50d20cfe92401acd42b68fe06e121812352 | [] | no_license | ProudBloom/DETI-MakerLab | bccb66d77f1c951f549d5eed193fa3c7a81dea0a | 7a589e01ba44bb3c6a2f2b62cf284b19eaaa8064 | refs/heads/master | 2022-12-12T06:55:53.140303 | 2020-07-01T23:26:12 | 2020-07-01T23:26:12 | 251,323,974 | 3 | 0 | null | 2022-11-22T05:32:41 | 2020-03-30T14:06:18 | Python | UTF-8 | Python | false | false | 204 | py | # from django.apps import AppConfig
from detimakerlab.wiki.apps import WikiConfig
class TechApiConfig(WikiConfig):
name = 'detimakerlab.technician_api'
verbose_name = 'DETI MakerLab Technician'
| [
"jakub-sztompka@wp.pl"
] | jakub-sztompka@wp.pl |
c07743d2aedbb0f9497d4c5805792898a3fae1fb | e6eba7f115aab8146c79ea063dc0322a91a13fb8 | /Base.py | 734ca9986fcaaceee45d919644609c46ac741c6d | [] | no_license | Joneyviana/GuiEditorImage | 6c16c156088a084338671f91b01a42b48f766a45 | 774a8e33bddad215ad7b46e55f621852f21335c4 | refs/heads/master | 2021-01-11T19:10:18.303985 | 2017-01-18T11:04:33 | 2017-01-18T11:04:33 | 79,330,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,107 | py | import sys
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from ChangePixelColor import AlterPixelsColor
from PIL._util import isPath
from PIL import Image
import cStringIO
LastImages = []
def ImageContent(image):
buffer = QBuffer()
buffer.open(QIODevice.ReadWrite)
image.save(buffer, "PNG")
stri... | [
"arcistiel@gmail.com"
] | arcistiel@gmail.com |
8775e6087f613879bdafb31e8d5f438e81729aab | 3ce5a582e3b34015788291aecadc2f2180391fdd | /models/covidCrushers/test2.py | 650fd39630d6c8b6e4f420d843d5c9d60a84371a | [] | no_license | liu-yijia/pasyndsurv | 4c3585b0fb53b947cfb8caa110f29a648a321ac0 | 67879e1e2af858a880c931bca5f2bce73c1c5a6c | refs/heads/master | 2022-11-14T05:30:41.108686 | 2020-06-12T18:18:51 | 2020-06-12T18:18:51 | 269,444,553 | 1 | 0 | null | 2020-06-12T18:18:52 | 2020-06-04T19:15:49 | Python | UTF-8 | Python | false | false | 7,343 | py | import matplotlib
import pandas
import scipy
import numpy as np
import sklearn
import tkinter as tk
from pandas import read_csv
from pandas.plotting import scatter_matrix
from matplotlib import pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.model_selection import cross_val_sco... | [
"noreply@github.com"
] | noreply@github.com |
dc81de425f76b47badf1ca41c91aa5eca3618300 | 35450961471c5c8f9e6170742038a4c55da0c565 | /venv/Lib/site-packages/SeleniumLibrary/__init__.py | 9669947e3bd8591916c47b174250ee937f3d0d47 | [] | no_license | Anum-Zargar/Robot_Framework | c8c6b3f2de2e9b185a37ee6e2d92c28ab068adc0 | c8ba84574be27faad22f2d6df54d7d01d71c98b7 | refs/heads/master | 2022-12-11T06:59:27.416401 | 2020-06-17T22:14:51 | 2020-06-17T22:14:51 | 273,075,629 | 0 | 1 | null | 2022-11-29T14:30:16 | 2020-06-17T20:50:29 | Python | UTF-8 | Python | false | false | 32,079 | py | # Copyright 2008-2011 Nokia Networks
# Copyright 2011-2016 Ryan Tomac, Ed Manlove and contributors
# Copyright 2016- Robot Framework Foundation
#
# 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 Licens... | [
"zargaranum@gmail.com"
] | zargaranum@gmail.com |
062c4a79c23472bd16daa9db27065b03ae208248 | dc897e8ddf4f1e3db06aade7255120bf1bdff6b2 | /ied_test.py | a1d1af3c5d61685eddbb8822ed4bf176eb207ab0 | [
"Apache-2.0"
] | permissive | Tachyu/PythonCodes | ba53d48df6e6b37cc9d4736151b564cd9f207506 | 5d1030216bdfa435dde7fed74b1e8b5379fbd7e8 | refs/heads/master | 2020-03-26T08:47:35.112105 | 2016-07-11T02:38:42 | 2016-07-11T02:38:42 | 61,085,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | #encoding:utf-8
import re
import string
import sys
import os
import io
import urllib
import urllib2
import cookielib
from bs4 import BeautifulSoup
import requests
import getpass
import pytesser
from lxml import etree
from pytesser import *
import lxml.html.soupparser as soupparser
import splinter
import time
import ra... | [
"icbmdf5@hotmail.com"
] | icbmdf5@hotmail.com |
d71c9c60f03eda0db5bcef742e32902c5decbdd8 | 4a1553b662151d1903d314707ea8fcce9ee3c8b4 | /app/modules/Language/jinjaFilters.py | 9d7658587370fba80298b94130f96500cd2c766f | [
"Apache-2.0"
] | permissive | VadymHutei/ukubuka | 1c150116a440eca79450b50257c48d3583ee5731 | 54acb5611d88487ab1808f320e56a861216a2ae2 | refs/heads/master | 2023-09-04T03:19:17.705098 | 2023-08-20T10:47:29 | 2023-08-20T10:47:29 | 285,374,103 | 0 | 0 | Apache-2.0 | 2023-06-03T19:26:26 | 2020-08-05T18:35:15 | Python | UTF-8 | Python | false | false | 371 | py | from flask import g
from modules.Language.Translator import Translator
def _(text):
translator = Translator.getInstance()
return translator.get_translation(text, g.current_language.code)
def view(x):
if x is None:
return ''
if isinstance(x, bool):
return 'yes' if x else 'no'
retu... | [
"hutei@live.com"
] | hutei@live.com |
7a4ccc2502dab8ff8f1958d5055642f4c92c18ce | bd9a09a3f1a8b2b5166c540ada93cc5b30591605 | /scanner/plugins/cms/piaoyou/piaoyou_six2_sqli.py | eec921a1b177ff73dbc2f527350a99da77615bf5 | [
"MIT"
] | permissive | iceyhexman/onlinetools | 3cb6e349fc30c515f96429abeab5fbcc430ac0cc | 61f2df7ff8e6ad97ca7901728c3ab749679a2bd0 | refs/heads/master | 2023-08-06T19:31:51.328657 | 2022-10-28T04:01:38 | 2022-10-28T04:01:38 | 119,565,769 | 1,662 | 358 | MIT | 2023-03-31T14:34:13 | 2018-01-30T16:51:46 | Python | UTF-8 | Python | false | false | 1,390 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: 票友机票预订系统6处SQL注入2(绕过)
referer: http://www.wooyun.org/bugs/wooyun-2015-0116851
author: Lucifer
description: multi sqli。
'''
import sys
import requests
class piaoyou_six2_sqli_BaseVerify:
def __init__(self, url):
self.url = url
def run(self):
... | [
"834430486@qq.com"
] | 834430486@qq.com |
b236e0c11fc37eed554b3d35e1d8c803382a3255 | 7c15b4c4abd0a9c5c81eb26b93e6361b4e6beec8 | /snacseq.py | 4dc54304e8c2afb8764098faafd3ea086c601d0d | [
"MIT"
] | permissive | Ritkuli/rnapoly | 09aa36710b125255e87d115416c37876fc1b55a8 | 035ddf0a8856d0570ccc0098efd40cd301409544 | refs/heads/master | 2022-06-29T05:01:34.538596 | 2020-05-08T11:32:59 | 2020-05-08T11:32:59 | 146,246,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,567 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
""" Generates the primary structure of a SNAC file.
Author: Antti Elonen
"""
from lib.utils import read_snac, write_snac
from tempfile import NamedTemporaryFile
from shutil import copyfile, SameFileError, which
import argparse, sys, subprocess, itertools, re, pkgen, os
scri... | [
"antti.elonen@aalto.fi"
] | antti.elonen@aalto.fi |
e8fd21f3579159233e436a65823810533632748f | 0d01a5ae075b575543192ab96757262cac06ddf9 | /course1/3/test2/test4.py | 596a22e469807c172e7bb91f1f745c89d3c06f68 | [] | no_license | kuzma-long/tornado | dbae2047ec8de16c1b76964984c67ebfea15e3e7 | f0c39eb6b007b8a962dc3ff0538a9b47b9bf5e84 | refs/heads/master | 2022-04-23T03:46:14.027407 | 2020-04-24T13:50:30 | 2020-04-24T13:50:30 | 258,523,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | #coding=utf-8
from tornado.httpclient import AsyncHTTPClient
import os
from tornado.ioloop import IOLoop
def parse(con):
import bs4
bs = bs4.BeautifulSoup(con,'html.parser')
h4List = [h4.text for h4 in bs.select('ul.foot_nav.main h4')]
for h in h4List:
print h
def handle_response(response)... | [
"1320506880@qq.com"
] | 1320506880@qq.com |
ef64ae302d2804d146e23cda8af9a5147e9f7291 | 0809acb967c8d4a426b50e3b71ed209924c215d4 | /bin/pydoc3.6 | ce6da8beac8559e1e35f704396ae6aacb91d9a63 | [] | no_license | baoxin1100/my_note | bdb41f4a001af655a119d9d6dee1ddb085653c01 | 950a111f72134f1caaaa83ec03b0f590d74eac5c | refs/heads/master | 2022-11-04T08:57:46.223585 | 2018-05-25T11:33:22 | 2018-05-25T11:33:22 | 134,817,814 | 0 | 1 | null | 2022-10-18T01:34:52 | 2018-05-25T07:11:24 | Python | UTF-8 | Python | false | false | 109 | 6 | #!/Users/baoxin/anaconda3/envs/mynote/bin/python3.6
import pydoc
if __name__ == '__main__':
pydoc.cli()
| [
"baoxi1100@126.comn"
] | baoxi1100@126.comn |
09c980886b2c12d79fd3414e73666392604c709f | 0eb726b988037e20a01122a8c0c04fcb8264730a | /relations/predict.py | cc1843a272f54587f6de07b992b8f6d5458ec641 | [] | no_license | MPMG-DCC-UFMG/M01 | 1e501023340401e16e51e2e7a2021280df8f884a | 5ef207caee91db2b12d3de161e08010cf418adcb | refs/heads/master | 2023-06-29T22:09:36.767045 | 2023-04-18T14:27:36 | 2023-04-18T14:27:36 | 237,273,270 | 1 | 0 | null | 2023-06-12T21:33:43 | 2020-01-30T18:03:30 | Python | UTF-8 | Python | false | false | 2,908 | py | from relation_featurizer import RelationFeaturizer
from feature_encoder import FeatureEncoder
import numpy as np
from sklearn.svm import SVC
from name_gender import NameGenderClassifier
from entity import Entity
import json
import sys
import joblib
from train import segments2features
import time
ngc = joblib.load("dat... | [
"fabiano.belem@a3data.com.br"
] | fabiano.belem@a3data.com.br |
f1b125e0dd779b2ae99e07617aee37500edcfb64 | 5f0cf1ab3afcfb6dea05eb76ad2ce51cd423d3e3 | /Module4/Nestedif/test _under_10.py | 14173e9974308a5cde7f836190d6bd2121088d05 | [] | no_license | TylerWuebker/Module5 | dc7ef74ecc46bc9223e1f79d835fe3734a931a60 | 039d513f988bf2689d61ac695f57d95ea5c4a4b5 | refs/heads/master | 2022-12-22T03:33:29.050841 | 2020-09-20T21:51:18 | 2020-09-20T21:51:18 | 297,125,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | import unittest
from Module4.Nestedif.coupon_calculations import calculate_price
class MyTestCase(unittest.TestCase):
def test_something(self):
self.assertEqual(True, False)
def price_under_10(self):
result = calculate_price(9, 5, 10)
self.assertEqual(result)
result = calcu... | [
"noreply@github.com"
] | noreply@github.com |
b3ebc8a27c31fa9cd57c61c836b4936981b37e07 | cac36cd5a5b0b1d5ee25284c41d6cebe40f63293 | /hw/hw2/hw3.py | 258434932d51c02358fc300d87f7e07a6124e699 | [] | no_license | sls88/python_epam_2021 | ae18d76154a00aff28773961a990da07736ba76c | d2b36912189004b578af99986363775442b4a8bd | refs/heads/master | 2023-04-18T16:32:10.951193 | 2021-05-03T17:12:11 | 2021-05-03T17:12:11 | 342,913,438 | 0 | 0 | null | 2021-05-03T17:12:12 | 2021-02-27T17:16:06 | HTML | UTF-8 | Python | false | false | 496 | py | """Homework 2.3."""
import itertools
from typing import Any, List
def combinations(*args: List[Any]) -> List[List]:
"""Return all possible lists of K items where the first element is from the first list, the second is from the second and so one.
Args:
*args: sequences
Returns:
The retur... | [
"sls8@ya.ru"
] | sls8@ya.ru |
e946bbe4ccbf8914231a25812913ff77829d1f28 | 545afb3cfe89f82b558faa5b5b28c28b8e3effce | /venv/Lib/site-packages/grpc/_plugin_wrapping.py | 6c925826d6f4cb8b3a86acd5ac23cf15ebe0b1e0 | [
"MIT"
] | permissive | parthpankajtiwary/keras-groundup | 24ad45a4b872e6d77fff8a6f4a3a6d60124a0628 | 0df0844e7d9dca741fad0965761a12f72ee51f07 | refs/heads/master | 2022-11-09T22:34:35.716466 | 2019-10-01T11:01:59 | 2019-10-01T11:01:59 | 210,914,101 | 0 | 1 | MIT | 2022-10-25T06:47:55 | 2019-09-25T18:31:49 | Python | UTF-8 | Python | false | false | 3,527 | py | # Copyright 2015 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... | [
"parthpankajtiwary@gmail.com"
] | parthpankajtiwary@gmail.com |
097fdc51b7b8f88218e0e7c4b16e8ff64388cb6f | af702aaa09ca0247e94ddaa2bbf44aec089b0fd3 | /M5HW1_DistanceTraveled_James.py | 81f8197789736f5fcfc9a97e64750e95a7db7e4f | [] | no_license | whtstang/cti110 | 4e8711dd1e1676bf1a7b37b36afa37ad592f2f10 | c5f271a0df6be061d0308bf913ecc6b18609cf2d | refs/heads/master | 2021-01-23T17:37:32.025055 | 2017-12-10T13:34:31 | 2017-12-10T13:34:31 | 102,770,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | speed = float(input('What is the speed of the vehicle in mph? ',))
print()
time = int(input('How many hours has it travled? '))
print()
print("Hour","\tDistance Traveled")
print("--------------------------")
for hour in range(1, time + 1):
distance = speed * hour
print(hour,"\t", distance)
... | [
"noreply@github.com"
] | noreply@github.com |
fb72da97ff94d8fe57c51f64cf2a0588bf5ff668 | e656fc26c1db9d83cd9e31bf331fd559fa79eed7 | /HW2_task1/soal1.py | b2733b1776bb96c05bef210bdab6a79f4f13ea38 | [] | no_license | Hencya/HW2_TASK | 3a8ac5339d5ecaa8496e83b3346138b36aeca77f | 0ebdf6f07f670c8139d8bb222bf2bf3440ea13c4 | refs/heads/master | 2023-02-07T09:13:32.110542 | 2020-12-25T14:33:40 | 2020-12-25T14:33:40 | 313,668,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | arrBerat = []
bMin = 0
bMax = 0
def hitungMinMax(arrBerat):
global bMin, bMax
# Definisikan Proses Mencari Berat Maximum Dan Minimum
arrBerat.sort()
bMax = arrBerat[0]
arrBerat.reverse()
bMin = arrBerat[0]
def rerata(arrBerat):
total = 0
for berat in arrBerat:
... | [
"noreply@github.com"
] | noreply@github.com |
9855a9a453ba14cf06e3fe967deea374c8fe1a86 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-677.py | bb26289d2195905caac5c6473919fe4679455e63 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,911 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
96b53ad14c61bbeaeb9979cb5b30373e18c22a2d | cf2d9043bac56f517bc57ade42485aa014216891 | /src/Doc2vecFlask(test_s).py | 27373a2a348970e5e984128b9cbf22a6852bd007 | [] | no_license | kookmin-sw/2018-cap1-23 | 0a33d084f73db1e9215ce8531cc2b2b644fbc3e0 | 8368f25d42f3fd250fd56a7798feafe221c0a343 | refs/heads/master | 2021-01-24T11:37:31.288018 | 2018-05-29T08:23:10 | 2018-05-29T08:23:10 | 123,095,005 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | #-*- coding: utf-8 -*-
from flask_restful import Resource,Api
from flask import Flask, redirect, url_for, request, render_template,send_file
import json
from flask_jsonpify import jsonify
import gensim
import sys
import imp
import matplotlib.pyplot as plt
from wordcloud import WordCloud
imp.reload(sys)
app = Flask(__n... | [
"js03110@naver.com"
] | js03110@naver.com |
5906c756260db6abcf6065a201f1b04d6f2538d4 | a7329cb1f861f77f94555d88694bfc8611b9c41a | /FinanceBot/router.py | 1b3775b0fca1b615bb29bb749a8a440942c02cab | [] | no_license | MakFrogz/FinanceBot | 32dc4b63f1d2e159b1bf39b922207f235617f85d | 2ee5b1a95271396efb6d3acf7880357873cbdf5d | refs/heads/master | 2021-02-12T19:49:08.030900 | 2020-03-24T15:48:33 | 2020-03-24T15:48:33 | 243,997,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,004 | py | import telebot
import config
import keyboard
import group
import user
import bill
import debt
import alert
bot = telebot.TeleBot(config.toker)
alert.set_bot(bot)
@bot.message_handler(commands=['start'])
def call_start(message):
if user.check_user_online(message.from_user.id):
bot.send_message(message.fro... | [
"badxpioneer2013@gmail.com"
] | badxpioneer2013@gmail.com |
97375c3f3fdecd0617e4ac35de0722dba8621c7a | c566dac231c77c35b416923e8dcdc6649e8cef6d | /kennel/pet/models.py | 927898b2009331dc566839d856e46c2dce4adf46 | [] | no_license | mikemonte/kennel | d4afff2588bad3d2f5ad047001287ec519251790 | e13b0218166e1f64c59a4d695875ad717c75d6cb | refs/heads/master | 2021-08-30T16:25:24.785270 | 2017-12-18T16:25:32 | 2017-12-18T16:25:32 | 114,654,728 | 0 | 0 | null | 2017-12-18T15:08:29 | 2017-12-18T15:08:28 | null | UTF-8 | Python | false | false | 6,610 | py | # import bcrypt
import datetime
import random
from django.db import models
from django.contrib.auth.models import User
from django.forms import Textarea
from django.core.validators import MaxLengthValidator
from django.utils.baseconv import base36
from django.utils import timezone
from django.template.defaultfilters i... | [
"aaron.yy.lelevier@gmail.com"
] | aaron.yy.lelevier@gmail.com |
d0c779498c9d8e53cd888fe9dcb4e438b84509d2 | 9128a17938fd7f2ee28be6156752edfabc728a61 | /aoc2020/src/day17/solution.py | 4f50cf34abc390cfa1814cf474cbd710626339b1 | [
"Apache-2.0"
] | permissive | loociano/advent-of-code | d646877164b454e6ed8f8367544ebaccf9c903c2 | 6f31dbb1a0ea56e3a101524167cf06a8e3c0dd19 | refs/heads/master | 2022-12-23T20:45:25.269868 | 2022-12-17T22:36:58 | 2022-12-17T22:36:58 | 225,250,156 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,853 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | [
"luc@loociano.com"
] | luc@loociano.com |
cac6e790129dd2c63adfa57d869f1e9279304a3e | 58b1019e78338c0f5b5f9ddbaefb2155c0324b73 | /main.py | a2b4d09fc8a90f165eb3873c95e65460bc030765 | [] | no_license | Alpharius61/TestPygame-master | 1bed7e254966d7eb51c2928c6f761632702678ad | 2173962a8b28c2298198d61aec24164d638395e4 | refs/heads/master | 2023-08-29T06:17:48.255275 | 2021-11-15T08:40:13 | 2021-11-15T08:40:13 | 428,179,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | import pygame
from Game import Game
if __name__=="__main__":
pygame.init()
game = Game()
game.run() | [
"monlouis.gael@gmail.com"
] | monlouis.gael@gmail.com |
f0af40b807555df49c70d1410197dbfebf56faea | 46d2bb5c6d2ea91ac8a3fda0168cc99501b1abe4 | /middleware/client_test.py | 23a21e179175a2942d8e6f0cd79747b4b0f65bdf | [
"Apache-2.0"
] | permissive | Time1ess/VES | 2fe0a1c3371e243a377ad6a31df5d3b4651ddf4d | fe608b8ae469f81cc23b1ea30f02a1e68fac13ee | refs/heads/master | 2021-01-18T21:36:21.864535 | 2016-06-15T12:21:42 | 2016-06-15T12:21:42 | 52,199,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | #!/usr/bin/python
# coding:utf-8
# Author: David
# Email: youchen.du@gmail.com
# Created: 2016-04-04 14:10
# Last modified: 2016-04-11 10:01
# Filename: client_test.py
# Description:
import socket
import time
import sys
import select
from random import randint
def Check_Identity(data):
if data == "VES":
r... | [
"youchen.du@gmail.com"
] | youchen.du@gmail.com |
6855d9d4aeb1b74d8304550ed224ea30deaaec6e | a586767465040752f7c00245ba1d1c9f901a41ec | /pastvina/migrations/0003_auto_20210307_1554.py | 7a5d9fddae52c5f766b1c9c5e131c308ed34dcf9 | [] | no_license | N-trophy/logika-2021-pastvina | c59bc4191c24eca776a2a3f384c6cf790b1f1f72 | f6c73341105698b9207c9b86efbe5874f3f5d011 | refs/heads/master | 2023-04-07T16:31:18.535454 | 2021-04-03T15:32:08 | 2021-04-03T15:32:08 | 343,763,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # Generated by Django 3.1.6 on 2021-03-07 14:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pastvina', '0002_auto_20210306_1550'),
]
operations = [
migrations.AddField(
model_name='teamlivestockhistory',
name... | [
"kur3cka.martin@gmail.com"
] | kur3cka.martin@gmail.com |
404b968ff64eb2a52f714670ed700af2d9d39f9b | 4ff884c54b46555c3f64fe1e5db4c83ff0d758f9 | /scrappedcode.py | 0f3aef4862a0746da7f70f3a09a830a75dd32c70 | [] | no_license | thallia/scratchy | 47ed6d498db7b2bf82181781acacb551a915b583 | 2952a90b51ecb630442950a6dd4071dd90c782b0 | refs/heads/master | 2021-05-02T06:06:56.340667 | 2018-03-15T21:34:48 | 2018-03-15T21:34:48 | 120,852,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | # this is for code that I scrapped but still want to reference for later ~ thallia
arg1 = messageargs[1].strip()
try:
arg2 = messageargs[2].strip()
except Exception:
arg2 = None
try:
arg3 = messageargs[3].strip()
except Exception:
... | [
"thalliatree@gmail.com"
] | thalliatree@gmail.com |
048a86bca1e12c2e1715e14e72e254414c481537 | 27a031a48145f6e41a996e37851d63ca41b3d3cb | /home/views.py | d45bd5b606958a6709930030f8df8587943061b1 | [] | no_license | ishaandwivedi1234/Bussified | 2f302f2ae5547359550be6d01fe893c02939b12a | a93519e0245b7aa21da9f9d64910e664f5e3ce58 | refs/heads/master | 2023-02-23T07:27:54.053583 | 2021-01-21T10:52:56 | 2021-01-21T10:52:56 | 331,598,176 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 36,475 | py | from django.shortcuts import render, redirect
from home.models import Customer, Bus, Operator, Ticket, Seats
from django.contrib import messages
from datetime import datetime
from home.custom_models import Result, Bookings, UserAcount, OperatorAccount, BusOperatorResult, checkRunning, OperatorDashboardInfo
from django.... | [
"ishaan.dwivedi99@gmail.com"
] | ishaan.dwivedi99@gmail.com |
8dd2e0625d7cddc0360585244105d243400bfd8c | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6010/504006010.py | f720a213c867cbaeb745d5d7e34ed4a67527b198 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 844 | py | from bots.botsconfig import *
from records006010 import recorddefs
syntax = {
'version': '00601',
'functionalgroup': 'CC',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 0, MAX: 99999, LEVEL: [
{ID: 'N2', MIN: 0, MAX: 2},
{ID: 'N3',... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
ee20781f732fe4bbdf9de7846c7ffd27e4af6e19 | 6ebd7e393e549b5ffd291ce86f43d7080b854f68 | /scripts/label_image.py | 86a1fbd9d5a9c79358d7dd0cb19cae7edaee1fb9 | [
"Apache-2.0"
] | permissive | matthewnaranjo/eclipse_image_classification | 5f6c35c8cef52c20aad9e7e61e840a417541b4dd | c83020043ea4fb586aaf33ed0384061aaa1bcb72 | refs/heads/master | 2021-04-27T01:12:20.377643 | 2018-04-02T21:39:51 | 2018-04-02T21:39:51 | 122,669,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,314 | py | # Copyright 2017 The TensorFlow 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 required by applica... | [
"mattnaranjo@Matts-MacBook-Air.local"
] | mattnaranjo@Matts-MacBook-Air.local |
5e9365cd8fcdc3c33017a4fb7808aa0e14bf48f8 | 2e3e256bcc0086a61cbb0e082dc61290196e35d2 | /dragon/common/custom_backend_auth.py | c06f172b49bf3edcc9fa4ad9cf008c2682719502 | [
"Apache-2.0"
] | permissive | miradam/openstack-workload-disaster-recovery | 79dcdb15ebf95d89157751c750a5dbab1557b942 | 854a3952bb9278cc08017ada97ff150b12b1c687 | refs/heads/master | 2020-03-24T15:36:46.808591 | 2016-12-15T12:32:17 | 2016-12-15T12:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (C) 2012, Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | [
"OSHRITF@il.ibm.com"
] | OSHRITF@il.ibm.com |
0d363f252fcf73180c930510c4fa22a128bb11ec | 4bf660a29c444f64af07dca51cc8028482f37fe1 | /validus/mathutils.py | 1ff5f422fc9bcbe8f79414addaed3f334cefe6d2 | [] | no_license | bartholomewdavid/Validus | b5ad031fbbc83b88b0bc017143caf8162b2211dd | 6df5bbd04db09883905587acbc9632a3739b99b9 | refs/heads/master | 2020-03-28T04:18:06.904316 | 2018-09-06T19:05:56 | 2018-09-06T19:05:56 | 147,706,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | import math
def daily_return(previous, current):
"""
Calculate daily return on investment
:param previous: The previous Mid
:param current: The current Mid
:return: The return on investment
"""
return (current / previous) - 1
def average(inputs):
"""
Returns the average value for ... | [
"bartholomew.david@gmail.com"
] | bartholomew.david@gmail.com |
c0f8a552fa1f8d7a7d30908f2da65ca75d275e45 | ee6a926ba1525c21b50555954d24d7672503d641 | /backend/graphs.py | e90c901315214e88f4b5d60c2d11c794fab0b06c | [] | no_license | GrennanM/urbanForecast | 9416dc650e3687bb6b89d2f0ff6e88791856b355 | 07f115c5754db4f5028ce979f32ead5fb57974db | refs/heads/master | 2020-04-23T04:15:46.332873 | 2019-04-11T15:53:37 | 2019-04-11T15:53:37 | 170,903,088 | 0 | 0 | null | 2019-03-01T18:10:50 | 2019-02-15T17:28:40 | C | UTF-8 | Python | false | false | 1,610 | py | from firebase import firebase
from datetime import datetime
from settings import *
import pandas as pd
import matplotlib.pyplot as plt
# get readings from Firebase
firebase = firebase.FirebaseApplication(myUrl, None)
weatherResults = firebase.get('/weather', None)
# get current times, wave heights, wind speeds
dateT... | [
"grennama@tcd.ie"
] | grennama@tcd.ie |
ecb752b165352589a7fc6e6655d83d8db7f090ae | 0e74487aeeff55336bad1d497301d222a25b2f11 | /examples/binning/random_prices.py | 91d8ce82f1c3ca20f7015ae25549ea2f27b4369e | [
"Apache-2.0"
] | permissive | jkramarz/winton-kafka-streams | 4586665cca641cac4c369b5ccff4292905d7075f | 22526da71454a8b9c7bba53e4f59f645535de602 | refs/heads/master | 2021-09-10T03:47:35.226707 | 2018-03-20T22:23:32 | 2018-03-20T22:23:32 | 126,088,504 | 0 | 0 | Apache-2.0 | 2018-03-20T22:05:41 | 2018-03-20T22:05:41 | null | UTF-8 | Python | false | false | 2,495 | py | """Provides simple class to compute (reproducible) random prices"""
from random import Random as _Random
from math import fabs as _fabs
from collections import namedtuple as _nt
_STATE = _nt('_STATE', ['last_price', 'random', 'iter'])
class RandomPrices(object):
"""\
Provides iterable class producing rando... | [
"sknollmann@gmail.com"
] | sknollmann@gmail.com |
d2e34a1213dcdddbe9a9b87e7aaf4dc1b8b73f44 | c1374d5d9ade40c5a256e64c4acd3c93627ef572 | /DAImageScraper/DAImageScraper/settings.py | 8482900f1d0e0d94f315a4ba97d509827a827597 | [] | no_license | hueyning/DA-scraper | c0c8934e592fd10956aab7252b7252bb28fc5748 | 08f5409334a4aed5b87db33486b59aac88590fee | refs/heads/master | 2020-05-01T12:35:51.728647 | 2019-09-23T22:34:01 | 2019-09-23T22:34:01 | 177,469,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,531 | py | # -*- coding: utf-8 -*-
# Scrapy settings for DAImageScraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/lates... | [
"hueyning@minerva.kgi.edu"
] | hueyning@minerva.kgi.edu |
0f8ccd549f87de8e4ad0939efc5e00ec6bae56ce | 59bccc3e51a75d75553816750f28b1852a1a92c3 | /scraper/installer.py | 842e0ef67259fe04f46c6306f92af440260cdccb | [
"WTFPL"
] | permissive | I4-Projektseminar-HHU-2017/i4-projekt-wissenstechnologien-juma-1 | 7f537f98b3281b11dac27f9c9eee094776788c47 | 2ac42913d1b670dfcd5eb77fad2a61287c605c0f | refs/heads/master | 2020-12-30T12:00:46.673851 | 2018-10-23T21:07:48 | 2018-10-23T21:07:48 | 91,489,533 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | import sys
import subprocess
import os
def create_launch_bat():
print("Checking requirements...")
requirements_fulfilled = True
python_exe = sys.executable
if not python_exe:
raise SystemError("Python executable does not exist. Please make sure Python (at least 3.5) is installed.")
run_... | [
"MarcoKluin@gmx.de"
] | MarcoKluin@gmx.de |
ec7fd9f24f61deae25f0c874e280ffff6ed26835 | ec7e1bca8e98d3f72e89bbf8b2df471172e4d1cb | /app.py | 70f224f3e38f7395446fb42f73515425f88182fb | [] | no_license | matheusferreira195/flask-tm-course | 70ab3a30f9cb2c37721595c79915bc5bb9246e3e | 76a7f0999144bdc0103cc294c49d8e459012a371 | refs/heads/master | 2023-01-11T07:09:45.169777 | 2020-11-18T22:53:57 | 2020-11-18T22:53:57 | 314,078,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from flask import Flask, render_template
from data import Articles
app = Flask(__name__)
Articles = Articles()
@app.route('/')
def index():
return render_template('home.html')
@app.route('/about')
def about():
return render_template('about.html')
@app.route('/articles')
def articles():
return render_te... | [
"matheus@auraconsultoria.com.br"
] | matheus@auraconsultoria.com.br |
5f35df87aae5279935c77bb28bafc91d4f8ffdd4 | bc34f3e65628fd6e061df07075ee6a8e2bfe9933 | /timercalling.pyw | 0b2cf2145e3df195ce22f4d97c3d5c77386d9496 | [] | no_license | PreshConqueror/Timer | d86ae360b5e074dbafe1973fb77df5e8de63c8d0 | ec80773bf613e337ba253eaf9bd776cee57ae5bc | refs/heads/main | 2023-07-18T02:41:16.778489 | 2021-09-02T13:47:55 | 2021-09-02T13:47:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | pyw | #CALLING SOURCE CODE
#IMPORT FROM PYQT5
import sys
from timer import *
from PyQt5.QtWidgets import *
class MyForm(QtWidgets.QDialog):
def __init__(self, parent=None):
QWidget.__init__(self, parent)
self.ui = Ui_Dialog()
self.ui.setupUi(self)
# create pyqt5 app
... | [
"chosendestiny3@gmail.com"
] | chosendestiny3@gmail.com |
96eb7f9c392480ce695793869b7a14859de7d146 | f0afc06b8f73a762514eaf1931b54da91bcd2d47 | /leads/views.py | 7307fe2e9cb6f4a2e715b00e23c6922cef2dc418 | [] | no_license | joshlsullivan/tria-facebook-leads | 4e925d92f332597e9d45fb4913eba43dba605ac2 | d092010f484e351c5117902d9e7b040411265c08 | refs/heads/master | 2021-03-27T10:49:34.360736 | 2016-10-19T23:34:44 | 2016-10-19T23:34:44 | 71,027,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django.shortcuts import get_object_or_404, render
from django.views.generic.edit import UpdateView
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.contrib.auth.decorators import login_required
from .models import Leads
from client.models import Client
f... | [
"josh@misllc.com"
] | josh@misllc.com |
a216e6e27226559c893a544e64f063b65a73dc33 | e3bbbb5018baad3cd2a2daf10e315a2e12aec974 | /ichnaea/async/schedule.py | 129cd2fffdcfed4b50627ec2d05e94d081463a88 | [
"Apache-2.0"
] | permissive | ingle/ichnaea | 5980de0532b012af7e48fa89bad7516adb84d24e | ed467538b6e61cf7c7921cd4aacb32ee039d13aa | refs/heads/master | 2021-01-17T14:23:32.369530 | 2016-01-12T20:29:38 | 2016-01-12T20:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,476 | py | """
Contains the `Celery Beat schedule
<http://celery.rtfd.org/en/latest/userguide/periodic-tasks.html>`_.
"""
from datetime import timedelta
from celery.schedules import crontab
from ichnaea.models import (
CellShard,
DataMap,
WifiShard,
)
def celerybeat_schedule(app_config):
"""Return the celery ... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
9c0840e858c444ea844208b24a2948f9ad7256f6 | aad4481e8a54e311982d638c1b42a86180726970 | /examples/event-loop-stuff/timeout-clock.py | b5a2076df4b5ee032662cafab72effec9061d0ae | [
"Unlicense",
"Zlib"
] | permissive | jiangguoqing/tkinter-tutorial | 5639b11cfc2f339df3776410dbd7078ee07fac54 | c6fee61ee915cf0894125e5b5eeb7249237d3a6b | refs/heads/master | 2021-05-05T12:02:13.912298 | 2017-06-18T10:51:33 | 2017-06-18T10:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | import tkinter as tk
import time
# this must return soon after starting this
def change_text():
label['text'] = time.asctime()
# now we need to run this again after one second, there's no better
# way to do this than timeout here
root.after(1000, change_text)
root = tk.Tk()
label = tk.Label(root, t... | [
"akuviljanen17@gmail.com"
] | akuviljanen17@gmail.com |
9f6d0fddbebae41ca992645569b3c8693d68ca58 | 0e90c5bb9daf370479f0612cbea05a349b30d9d1 | /oscg_stock_request/__manifest__.py | ae57f532286a73fd284cb1975173b26a95563b3e | [] | no_license | OSCG/oscg_stock_request | 3ca98516b69480d5ee2f3c356ee1dae0641649f8 | 5e2e4b2760c3b3bd777e35051d9e5a4cd7ed3ea2 | refs/heads/master | 2020-03-27T01:06:02.432638 | 2018-09-02T16:08:59 | 2018-09-02T16:08:59 | 145,681,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | # -*- coding: utf-8 -*-
{
'name': "Stock Request",
'description': """
Enable to create request for stock purchase from your branch companies or retail shops etc.
""",
'author': "OSCG",
# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/... | [
"tanysysu@163.com"
] | tanysysu@163.com |
56bb1b8a3d238c6c89226c5276b91e8649ac0852 | 660e3a2bb5f127908549d52ebc62d0d67725f832 | /Algorithm_python/최소반복.py | 289ccfc40280f63b62c7f53a788273646c84b529 | [] | no_license | dygksquf5/python_study | b56f8548bea7e31a484301bb97ddefe44d931c80 | 282126b0104dae9f9f8f63e613cc968a2f998ef1 | refs/heads/master | 2023-02-21T03:46:16.673962 | 2021-01-24T14:08:47 | 2021-01-24T14:08:47 | 294,593,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | # 주어진 수가 커서, 나머지 테스트케이스는 전부 에러ㅓㅓㅓ
def solution(arr):
answer = 0
id = [0] * len(set(str(arr)))
visited = [False] * len(id)
for i in range(len(arr)):
if not visited[arr[i] - 1]:
id[arr[i] - 1] = i
visited[arr[i] - 1] = True
continue
if visited[arr[i]... | [
"66229916+dygksquf5@users.noreply.github.com"
] | 66229916+dygksquf5@users.noreply.github.com |
33d8a1fd782376a2d6d82fbca4bc5cf20bd13f39 | a42190f711a36387c2a4cfac90a691755bfa8945 | /PAPC/models/layers/pointnet2_basic_layers.py | 95f784b6a6a658ef7cdf9efce24dba7728503863 | [
"MIT"
] | permissive | dreamplayer-zhang/PAPC | ae2215db50d41daf8311951476adb2e54ddb8351 | befac7ae88d9a7e0c0718bc1dd27b2377c1f3066 | refs/heads/main | 2023-08-31T17:09:36.363337 | 2021-11-13T05:10:02 | 2021-11-13T05:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,733 | py | import paddle
import paddle.nn as nn
import paddle.nn.functional as F
import numpy as np
def Categorical(y, num_class=16):
"""
1-hot encodes a tensor
"""
new_y = np.eye(num_class)[y,]
new_y = paddle.to_tensor(new_y).transpose([0, 2, 1]).astype('float32')
return new_y
def pc_normalize(pc... | [
"1564758299@qq.com"
] | 1564758299@qq.com |
718f7a3de5fabd24e2bf63d11e7356d7b3444a4f | a3b46d9f8a24843d18f7fb618843f7804f5e876e | /IOT.HC/Entities/EventTriggerInputDeviceSetupValue.py | 2398c9601814ce546af74e03378edaa3404f16d5 | [] | no_license | LeDucThang/IOT | c3caeea5d504ce037ef8d220f8c120e77a4ec8ed | cec3ffb0a8a748705b39c3dd6ffa2a15df30b9db | refs/heads/master | 2023-04-01T19:23:11.436696 | 2021-04-09T10:16:37 | 2021-04-09T10:16:37 | 356,227,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py |
class EventTriggerInputDeviceSetupValue:
def __init__(self): | [
"thangld19@fpt.com.vn"
] | thangld19@fpt.com.vn |
c2873b4c18984e09fdefaf83ccb2155502194f6e | 37ec695c98adee66364aa26046b8db9dfd38afce | /BasicCourse/practice4-4.py | cd6547b0f60de843fb3d76415424fce46c2679be | [] | no_license | douglasdl/Python | 5d6c1569416d7a19a6aea34431ce11c4de9df9a9 | c0d84e761b91358c21f6bbfc5f06f59b2afa2d55 | refs/heads/master | 2023-06-29T09:17:40.751320 | 2021-07-28T12:18:10 | 2021-07-28T12:18:10 | 281,894,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # coding: utf-8
# Fibonacci
n2 = 0
sum = 0
for n1 in range(1, 10 + 1):
sum = n1 + n2
print(str(n1) + " + " + str(n2) + " = " + str(sum))
n2 = sum
# Vertical
print("")
for number in range(1, 9 + 1):
print("九九の" + str(number) + "段")
for n in range(1, 9 + 1):
print(str(number) + " × " + st... | [
"douglas_san@hotmail.com"
] | douglas_san@hotmail.com |
1e509116af24c44fe7bc64a8a1dbb3979633616e | a976a6d7c992347fbfb833d3b25db3b84652fa89 | /Dynamic Programming/Edit Distance (Easy).py | 1bd0905d9d7577c482b231041a71a2371eebff9e | [] | no_license | AvyayAgarwal/Competitive-Coding | 48004e0afea4d8bc200e31ad34f81506fa47f686 | 31a282dd3099f277b9396df758cb55b41228b93c | refs/heads/master | 2023-04-03T00:21:01.979861 | 2021-04-04T21:28:52 | 2021-04-04T21:28:52 | 260,911,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # 72. Edit Distance - Hard
# Tags - String, Dynamic Programming (DP)
class Solution:
def minDistance(self, word1: str, word2: str) -> int:
len1 = len(word1)
len2 = len(word2)
dp = [[0 for _ in range(len2+1)] for _ in range(len1+1)]
for i in range(len1, -1, -1):
... | [
"30388692+AvyayAgarwal@users.noreply.github.com"
] | 30388692+AvyayAgarwal@users.noreply.github.com |
ed8db23c3a0c8f9fbbd3d3e1d4607e116873f600 | 261c0d4c0756380bc9ef00b8bf4a2592d5863a74 | /max.py | 54260f0625ae00d170be9ac04e132af87fa3893a | [] | no_license | 170030976/lab7 | acbc29cbe7b66125f3af601479cb3110a15cf4cb | 1c1c69bfeb96aafcf12c5dc9088326bae48031c4 | refs/heads/master | 2020-12-04T22:58:56.955631 | 2020-01-05T14:22:02 | 2020-01-05T14:22:02 | 231,928,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py |
# Python3 program to find maximum
# in arr[] of size n
# python function to find maximum
# in arr[] of size n
def largest(arr,n):
# Initialize maximum element
max = arr[0]
# Traverse array elements from second
# and compare every element with
# current max
for... | [
"noreply@github.com"
] | noreply@github.com |
cd515ac2fb82afb70c385e634c68f7f523290d90 | 1097ed333a4000634e68a590ee6ffc6129ae61e3 | /287.寻找重复数.py | f7574fcf8c3ef85cc24ac1beab25979bd36b19d0 | [
"MIT"
] | permissive | AutuanLiu/Code-Storm2019 | 1bbe890c7ca0d033c32348173bfebba612623a90 | 8efc7c5475fd888f7d86c3b08a3c1c9e55c1ac30 | refs/heads/master | 2020-04-23T07:03:08.975232 | 2019-10-24T08:56:26 | 2019-10-24T08:56:26 | 170,995,032 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | #
# @lc app=leetcode.cn id=287 lang=python3
#
# [287] 寻找重复数
#
# https://leetcode-cn.com/problems/find-the-duplicate-number/description/
#
# algorithms
# Medium (60.60%)
# Likes: 246
# Dislikes: 0
# Total Accepted: 17.2K
# Total Submissions: 28.4K
# Testcase Example: '[1,3,4,2,2]'
#
# 给定一个包含 n + 1 个整数的数组 nums,其数字... | [
"autuanliu@163.com"
] | autuanliu@163.com |
ed3556874e717bbaf477fea4cadc0f06772d039c | 5e324af46c554b88b97ee26886b05c88457ff0f5 | /core/settings/production.py | 0514fd109ac361f269a79a6f0a4dcb5a3202ba61 | [] | no_license | doubleclickdetroit/dindintonight | 1bda8851e49782d4dc16ca77d46e4b1f431c2b52 | 9769e1a96730b02511d25af8828b075dff5c35b5 | refs/heads/master | 2016-08-04T22:01:08.083566 | 2014-07-26T18:58:58 | 2014-07-26T18:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | """Production settings and globals."""
from os import environ
from base import *
# Normally you should not import ANYTHING from Django directly
# into your settings, but ImproperlyConfigured is an exception.
from django.core.exceptions import ImproperlyConfigured
def get_env_setting(setting):
""" Get the envir... | [
"rgarrison3@gmail.com"
] | rgarrison3@gmail.com |
42b8cbb0317df50cd02652b2dfab0c2529c22f93 | 46867e0d39a81255e5105277741f56ba693de69d | /art/acas.py | fa050e7ceee83bec88b0e44b63fbb0b47c521ec8 | [
"MIT"
] | permissive | RU-Automated-Reasoning-Group/ART | 165ee53fe873b6e2c822ca67bcd1a5e387c47084 | 58e92cb0faab6deb8e310e571bbac689c2f0eeb4 | refs/heads/master | 2022-11-27T11:44:37.335504 | 2020-08-05T07:24:53 | 2020-08-05T07:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,187 | py | """ Information needed for evaluation of ACAS Xu datasets. """
from __future__ import annotations
import datetime
import enum
import sys
from itertools import product
from pathlib import Path
from typing import List, Optional, Tuple, Iterable, Sequence, Union
import torch
from torch import Tensor, nn
from diffabs i... | [
"xuankang.lin@gmail.com"
] | xuankang.lin@gmail.com |
e6431a198596e29f0c09f76ebbce970955e1947b | d50cfc3b4b458ce237d690e6680c0a97f1e6f4f2 | /json2json.py | 39c9b8f848015c0de9e607c7adb1dcc94590cdef | [] | no_license | sheffier/ml_nlp_vqa | d7fc23226a5acbcfe3f6d68533c5f428a12bf625 | c6b6cb7d2e684636de3b2ab41ebd72d627774137 | refs/heads/master | 2021-12-14T00:13:49.656751 | 2021-11-22T12:52:46 | 2021-11-22T12:52:46 | 199,274,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | import json
import re
with open(r'C:\Users\user\Desktop\University\TAU\year1\NLP\project\nlvr\nlvr2\data\dev.json', 'r') as f:
examples = [json.loads(line) for line in f.readlines() if line]
base = {
"info": {
}
}
with open('train2014QuestionsForSNMN.json', 'w') as dq:
image_questions = {
"qu... | [
"tal.lance92@gmail.com"
] | tal.lance92@gmail.com |
a9dee7dc116775c6704014ece12ad4d8a9abc01e | 2e4ba3b532fa6904a0de745d34d0017e2c3dcc1a | /2-Exp_Cavendish/macro/g_measure.py | 60df8009de13f5a66d5c138725755235627c066b | [] | no_license | zazasa/LAB_IF_2015 | f6393f1966abc62f5d46b33e147391ae8c1b8b70 | d7b1f34ca97acc5e8b3bccb6a1697b15ff18f716 | refs/heads/master | 2021-01-10T01:42:33.055242 | 2016-01-12T18:29:08 | 2016-01-12T18:29:08 | 46,729,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Salvatore Zaza
# @Date: 2015-12-09 10:45:54
# @Last Modified by: Salvatore Zaza
# @Last Modified time: 2015-12-15 18:43:25
from utils import *
import numpy as np
from uncertainties import ufloat
a1 = show_plot('../data/151209_forzata_1.txt',False,False,0.0... | [
"salvatore.zaza@gmail.com"
] | salvatore.zaza@gmail.com |
309296c11e4d90148c9ae14407ab0a0e5055ee9d | b0be556c99dac4886fbe66bf454ae146ba3b69a5 | /Table Reservation Syst/reservationapi.py | 8b269c7bb900e8f687fc587d3cdbc1d33d2c9c6e | [] | no_license | DishaJethva/Web | 69c31cda3cd2b3293f320aa35c03ab4a33fdc5f9 | ca708cfc22b3de9ec25e1f3eb8794e253e779189 | refs/heads/main | 2023-07-15T17:36:49.017252 | 2021-08-15T05:50:30 | 2021-08-15T05:50:30 | 396,005,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,194 | py | import json
import itertools
from flask import Flask, jsonify, request
def combinations(noOfPeople, table, tables):
def capacity(noOfPeople, tableCombinations):
caplist = []
for i in tableCombinations:
# checking if combination of tables is possible according to the number of pepole
... | [
"noreply@github.com"
] | noreply@github.com |
2760b5814cad450d9abb3e2a923dd253fca8d94f | ec50e0f401cbcb0eddadf38d576f434688df1be6 | /supplier/urls.py | c9fb7ffd0f5470cea3f32775c2480f429b0914d5 | [] | no_license | ayush180/djangoProject2 | ecbd1d74843be87b56e6bac457797c51f9e2ca9a | 6cdc58592b6e8ee517a2f095557e16dfbce7e41f | refs/heads/master | 2023-06-20T11:10:31.028099 | 2021-07-17T11:20:42 | 2021-07-17T11:20:42 | 381,335,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from django.urls import path
from .views import *
urlpatterns=[
path("new/", NewSupplier.as_view(), name="supplier-new"),
path("view/", ViewSupplier.as_view(), name="supplier-view"),
path("update/<int:pk>", UpdateSupplier.as_view(), name="supplier-update"),
path("delete/<int:pk>", DeleteSupplier.as_view... | [
"ayush180670107041@gmail.com"
] | ayush180670107041@gmail.com |
eb884160b46e9b642bf272c7dd14832b474646d7 | b5e4958bd1c4770297108947e7b7441020b2e9cc | /topi/tests/python_cpp/test_topi_relu.py | f214266351210bcd11b71be64cdebdfc98b25ba6 | [
"Apache-2.0"
] | permissive | Markz2z/tvm | 06a20dcdf76111b64242940323ba998432ffbffb | 3921b938c2a14017c2624f149983e86a7f9a4e94 | refs/heads/master | 2021-09-07T22:13:37.234511 | 2018-02-27T23:14:58 | 2018-02-27T23:14:58 | 124,998,633 | 1 | 0 | Apache-2.0 | 2018-03-13T05:45:19 | 2018-03-13T05:45:19 | null | UTF-8 | Python | false | false | 2,070 | py | """Test code for relu activation"""
import os
import numpy as np
import tvm
import topi
from topi.util import get_const_tuple
def verify_relu(m, n, dtype):
A = tvm.placeholder((m, n), name='A', dtype=dtype)
B = topi.cpp.nn.relu(A)
assert B.dtype == dtype
a_np = np.random.uniform(size=get_const_tuple(A... | [
"tqchen@users.noreply.github.com"
] | tqchen@users.noreply.github.com |
f1d0e4bc2bf2a727d168359cf8886cbca2f8e324 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20190406/example_tinyloop/06generator.py | d865c30ed0ec9c763671dcf57f05205d0cd393bb | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 240 | py | def f():
x = yield 1
print("@", x)
y = yield 2
print("@", y)
return x, y
itr = f()
v = next(itr)
print("!", v)
v = itr.send([v])
print("!", v)
try:
print(itr.send([v]))
except StopIteration as e:
print(e.args)
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
e00306396822e7d1da12953f91f4e293e9e8af15 | d1a6e0931b3608bf8bf42915cc7d85bb309d0dd7 | /myenv/lib/python3.6/hmac.py | 6b50bec84710b70d56d02daaae7e01c0c39c265a | [] | no_license | jirlock/linebotrichard | 8f45cb2bb123bbef2e3c99631f82c7ddbd118196 | 1916d336964ab1c5e1a228a55532d72a62552dca | refs/heads/master | 2022-12-22T12:44:02.953895 | 2017-07-01T10:25:19 | 2017-07-01T10:25:19 | 95,957,333 | 0 | 0 | null | 2021-06-01T22:02:14 | 2017-07-01T10:22:47 | Python | UTF-8 | Python | false | false | 45 | py | /Users/keijiro/anaconda/lib/python3.6/hmac.py | [
"jirlock@gmail.com"
] | jirlock@gmail.com |
8043ea253f293dd5d6b1719cd3e77b196455e1cc | 9b415bc6a6beb1121f23c8e5a90acb2a1a139fca | /Leander_Stephen_D'Souza/RPi to Arduino UART image/Base64- Encode_Decode.py | 5b38d9d46ebc3b4af1fcd6e98429a2aa171ce261 | [
"MIT"
] | permissive | leander-dsouza/MRM-Tenure | e3b59095f2836dccc36b478e577c18a914a704b5 | 3f372ffeeb12b04f4c5c636235db61725d47c3c6 | refs/heads/master | 2021-05-17T04:57:12.857895 | 2020-08-25T05:06:58 | 2020-08-25T05:06:58 | 250,635,086 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import base64
image = open(r'/home/leander/Desktop/tennis.jpg', 'rb')
image_read = image.read()
image_64_encode = base64.encodestring(image_read)
image_64_decode = base64.decodestring(image_64_encode)
image_result = open(r'/home/leander/Desktop/tennis2decoded.jpg', 'wb') # create a writable image and write the dec... | [
"leanderdsouza1234@gmail.com"
] | leanderdsouza1234@gmail.com |
f0968c48b9322c2b2c1a742846b3b5b2d7d08c33 | 5826560b3680c25dc72ee9ad6c70ce808484f05c | /.pycharm_helpers/python_stubs/cache/86a884ee175ecd0a910b406b767da18000d6bf77dca5a0ba9962bdaf55684d8b/_asyncio.py | d6111313b955355040a4ad2b33cc611bb9d008ed | [] | no_license | yangzsc/Pancake_test | c98e8caacd1e82c80fdfeb1e94fbf84783100864 | 22bd0bbcdbd04dc4201057696eaeaf27117e1dcc | refs/heads/master | 2020-12-27T18:46:15.112829 | 2020-02-29T03:57:18 | 2020-02-29T03:57:18 | 238,009,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,452 | py | # encoding: utf-8
# module _asyncio
# from /usr/lib/python3.6/lib-dynload/_asyncio.cpython-36m-x86_64-linux-gnu.so
# by generator 1.147
""" Accelerator module for asyncio """
# no imports
# no functions
# classes
class Future(object):
"""
This class is *almost* compatible with concurrent.futures.Future.
... | [
"zhaoshuchen2018@gmail.com"
] | zhaoshuchen2018@gmail.com |
899ec6116816b71a713d48628809e69bd28e6745 | 459a2d27392b004a0b292706c70d0b15244ab6a3 | /Project/15-scrapy/num4_lanrentuku/num4_lanrentuku/spiders/main.py | 7babae1b7e8ad83fdb8861b434f23d01216300aa | [] | no_license | Dengdi21/myspider | e8dc30fe4e3124ddedb574c95dfda3cf822e495e | 81a7ddae5627e592eb694dc4cbd06dc9eb8ef8b3 | refs/heads/master | 2020-09-09T08:53:17.824307 | 2019-11-29T09:29:34 | 2019-11-29T09:29:34 | 221,404,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | from scrapy import cmdline
cmdline.execute('scrapy crawl lanrentuku'.split()) | [
"chumu@chumudeMacBook-Air.local"
] | chumu@chumudeMacBook-Air.local |
125c3704580ab191e18752d015463c136b6ad06e | 46a7c05b1ddd98d264a1579802f203175075e6dc | /izracun_deliteljev.py | 8f11f4e77518bc04b78c831054b3fe3faccd7911 | [] | no_license | rok-povsic/Lekcija12 | 7aadb0d13b8ebc3c735ea7ef59b6715215a6fb08 | a2d17d06a10ec03d0140cb47f85bcacd0b1bfb57 | refs/heads/master | 2021-01-10T05:15:28.013261 | 2016-04-04T16:45:53 | 2016-04-04T16:45:53 | 55,428,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | x = int(raw_input("Vnesi stevilo: "))
for i in range(2, x/2 + 1):
if x % i == 0:
print i
| [
"rok.povsic@gmail.com"
] | rok.povsic@gmail.com |
e323660b45a8c48733e8329da83fca79f22f39b7 | 73d77f0b8ab1622f33f9ec5f2fab7735c059a418 | /blog/forms.py | 30b23d6e06d0d11afc7eb92253ef439151a02d64 | [] | no_license | kpatel923/test_site | 836dcbb251425cc43a31ac4f189aefc73ec75775 | 3fecb59590bf951b506e96560b346a4d6500d06c | refs/heads/master | 2023-03-04T12:03:03.006078 | 2021-02-16T13:22:48 | 2021-02-16T13:22:48 | 339,406,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | from django import forms
def should_be_empty(value):
if value:
raise forms.ValidationError('Field is not empty')
class ContactForm(forms.Form):
name = forms.CharField(max_length=80)
message = forms.CharField(widget=forms.Textarea)
email = forms.EmailField()
forcefield = forms.CharField(... | [
"bobdoe945@gmail.com"
] | bobdoe945@gmail.com |
43b6ce6cceabe1e527d08133bda8568d38084a2c | 8156f7278a568531f808edfa3cb9cc64090eba17 | /dmhy/getTracker.py | e56307b6feebcbc45cfbffcc4109d0bd8007886d | [] | no_license | DeSireFire/My_Spyder_Pool | 8ef3cfad7911e9e66e0993fb3fa73d10d75e4a7d | ead5d90fd8d532c3f96fb02ac8a1aa15697d8196 | refs/heads/master | 2023-04-06T00:41:12.706009 | 2021-04-29T13:20:59 | 2021-04-29T13:20:59 | 109,140,291 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,351 | py | import requests
URLS = {
'trackers_best':'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt',
'trackers_all':'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt',
'trackers_all_udp':'https://raw.githubusercontent.com/ngosang/trackerslist/master/trac... | [
"1025212779@qq.com"
] | 1025212779@qq.com |
90808b4b439a3198ca5c89ac90beea63481f565b | 23dfa05473d3d38db540b739cc54dfca5a737376 | /disentanglement_lib/data/ground_truth/mpi3d_multi_test.py | 1b59e2d4ef9ab253ba03515832162cb2f4363aa7 | [
"Apache-2.0"
] | permissive | travers-rhodes/disentanglement_lib | 4d1a8030acc334c9bcc8091c838842bf5aeb1d80 | 73d4b995e88efdd5ffbe98a72e48a620c58f4dc7 | refs/heads/master | 2023-05-08T21:31:18.520376 | 2021-05-28T03:48:33 | 2021-05-28T03:48:33 | 367,069,686 | 0 | 0 | Apache-2.0 | 2021-05-27T14:55:35 | 2021-05-13T14:12:01 | Python | UTF-8 | Python | false | false | 2,558 | py | # coding=utf-8
# Copyright 2018 The DisentanglementLib Authors. All rights reserved.
# Copyright 2021 Travers Rhodes. 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
#
... | [
"tsr42@cornell.edu"
] | tsr42@cornell.edu |
a1bf4a67906fca883e9d2295694c85338f38907a | 905c3c3e4143e0aad6ecdbf8b7d5e895c81a95fa | /weather/views.py | c514f19744706c8e2d0da51b55a209b3e3725339 | [] | no_license | VishalMakwana01/WeatherApp | f21eceafb16be70fe1518a934c2b892614fe8567 | 375e451519d18d95d33a020f4c90106e227c91ed | refs/heads/master | 2020-05-09T14:02:31.141549 | 2019-04-16T09:05:25 | 2019-04-16T09:05:25 | 181,179,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,800 | py | import requests
from django.shortcuts import render
from .models import City
from .forms import CityForm
def index(request):
url = "http://api.openweathermap.org/data/2.5/weather?q={}&units=metric&appid=52859687c521455b0ba8c720194b5b19"
if request.method == 'POST':
if '_add' in request.POST:
... | [
"vishal.makwana3@gmail.com"
] | vishal.makwana3@gmail.com |
41ee940aa7008ad60208d0b573b4f8bcbeb8e2de | 1fc0cc24dfb0231f35a99ae6ced7b01bb2814830 | /allure-python-commons/src/_hooks.py | 0ff19a27d3a1dc95c07b291ce48cafc0848d7cd4 | [
"Apache-2.0"
] | permissive | allure-framework/allure-python | 54dd07bbde954c0a75b47443ea5fa892a730da29 | 200b7175218f27fef576d77c2ec791d0ea5ebe90 | refs/heads/master | 2023-08-23T09:14:15.292120 | 2023-08-08T16:19:36 | 2023-08-08T16:19:36 | 79,346,720 | 672 | 261 | Apache-2.0 | 2023-08-25T09:58:13 | 2017-01-18T14:17:16 | Python | UTF-8 | Python | false | false | 2,412 | py | from pluggy import HookspecMarker, HookimplMarker
hookspec = HookspecMarker("allure")
hookimpl = HookimplMarker("allure")
class AllureUserHooks:
@hookspec
def decorate_as_title(self, test_title):
""" title """
@hookspec
def add_title(self, test_title):
""" title """
@hookspec
... | [
"noreply@github.com"
] | noreply@github.com |
f0c660265b92498d1ba0c1172e8fe861bbba7312 | 4649cce3d8da661ddb204428e21f714a502d36f9 | /src/ensae_teaching_cs/faq/faq_pandas.py | e7794b4e40526ab1f81f343648af19a2bd63b895 | [
"MIT"
] | permissive | xugonglei/ensae_teaching_cs | 10a7b97003e7d833dd0faaae939813bf1e134575 | f06d4ce7ea24338b5b217f6c46ff7980eac7e653 | refs/heads/master | 2020-04-30T11:10:47.368520 | 2015-10-29T21:41:23 | 2015-10-29T21:41:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,936 | py | # -*- coding: utf-8 -*-
"""
@file
@brief Quelques problèmes récurrents avec `pandas <http://pandas.pydata.org/>`_.
"""
def read_csv(filepath_or_buffer, encoding="utf8", sep="\t", **args):
"""
Calls function `read_csv <http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html?highlight=read_cs... | [
"xavier.dupre@ensae.fr"
] | xavier.dupre@ensae.fr |
55b99d12391bca0cafdf5b7dfcaaebc676aa797e | dac55854247e35ed583c4c5461bfe33ff734d6ac | /Python/Web_Scraping_with_Python/3/test.py | c1f11da591169157d230fc2986ae76704be50da3 | [] | no_license | andyRon/note-exercise | 1beb712746a6bdcb7f8b9c66aa224f5f325907b0 | 98df95d249c9ae13d9c1af82a9a41e0c4b82e1c2 | refs/heads/master | 2021-01-23T09:54:16.691226 | 2020-12-19T03:17:54 | 2020-12-19T03:17:54 | 23,666,645 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from link_crawler import link_crawler
from scrapecallback import ScrapeCallback
from disk_cache import DiskCache
# link_crawler('http://example.webscraping.com/', '/(index|view)', max_depth=1, delay=0, scrape_callback=ScrapeCallback())
link_crawler('http://example.webscraping.com/', '/(index|view)', max_depth=1, dela... | [
"randy.njfu@gmail.com"
] | randy.njfu@gmail.com |
74639bf3d90ed6d85e037c60fbb61a4a25c0f628 | d1b48feb526c1af96c56a4a76f1e32aa2063af97 | /archived_201117/currentPaperspaceVersion/multiD_embed_numerical_LSTM_5_params.py | 5d072c6739c9f368178dac065e071173dff6341a | [] | no_license | csainsbury/nEqOneTrial | 79f344537e18e25b172c95f6a611e1ba37f80845 | 71924f55b7757bb07f5bdf54a8ea89f38280165f | refs/heads/master | 2021-09-15T18:57:33.216638 | 2018-06-08T16:05:23 | 2018-06-08T16:05:23 | 107,871,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,579 | py |
from keras.layers import Input, Embedding, Reshape, merge, Dropout, Dense, LSTM, core, Activation
from keras.layers import TimeDistributed, Flatten
from keras.engine import Model
from keras.models import Sequential
import numpy as np
import pandas as pd
from sklearn.preprocessing import StandardScaler
sc = Standard... | [
"chris@sainsbury.im"
] | chris@sainsbury.im |
1a7add79983d9aaaa4ac9d383db387f438a20b30 | 3abe14e934f775aca6dba588a9da5c908808daec | /setuptools/tests/test_depends.py | e0cfa88049d7ab7e93b8af06cdac45ee96c0714d | [
"MIT"
] | permissive | IronLanguages/setuptools | e1d6d6aaf990a2691f79ce3a4ca21b87e2f10a1a | 20aa9400b3d44df952c362217d3c5a1c3988467f | refs/heads/master | 2020-03-19T04:21:15.955081 | 2018-06-02T13:26:55 | 2018-06-02T13:26:55 | 135,819,098 | 2 | 1 | MIT | 2018-06-02T13:17:01 | 2018-06-02T13:17:01 | null | UTF-8 | Python | false | false | 374 | py | import sys
from setuptools import depends
class TestGetModuleConstant:
def test_basic(self):
"""
Invoke get_module_constant on a module in
the test package.
"""
mod_name = 'setuptools.tests.mod_with_constant'
val = depends.get_module_constant(mod_name, 'value')
assert val == 'three, sir!'
assert 's... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
f04be6f6148ca178ed9fccab35e7ab9fb0323250 | 3150c29fa4adba48eb106fc231823a2a8e532484 | /clients/queries.py | 65aeb0ba63127f2070af62b59986cc0bac31055f | [] | no_license | ACONCEPT/mvp_consumer | 6e8fab53687bb7c5182ec7ee36a3377987ce9723 | 3d2fb724eb9dac18af893d4b664d5cb453f2109b | refs/heads/master | 2022-12-13T15:05:20.374603 | 2018-04-30T20:45:16 | 2018-04-30T20:45:16 | 131,062,998 | 0 | 0 | null | 2022-12-08T02:11:51 | 2018-04-25T20:59:15 | Python | UTF-8 | Python | false | false | 1,982 | py | #! usr/bin/env python3
from postgres_cursor import get_cursor, execute_query, commit_connection, close_cursor, execute_cursor
import json
def main():
pass
def get_base_table_descriptions():
base_table_names = get_base_table_names()
base_query = "select * from {} where 1 = 2;"
result = {}
for table i... | [
"ubuntu@ip-172-31-10-80.us-west-2.compute.internal"
] | ubuntu@ip-172-31-10-80.us-west-2.compute.internal |
981d4f6edff17b9280625e9c16e2766033a4c6f2 | 845cf37d4ad3fa456d026cb2e16616d87c8d1e9a | /tele2/tele2/wsgi.py | 15dd86432fa50f2e51dfb0a6bf59de8e07d737c6 | [] | no_license | Sadykhov/telegram_double | b86b7199a606a6f5890dd45c90741b4c8f5b84cb | 9ea368e0d041c268171f6ae1dd22d5d85741fc57 | refs/heads/master | 2023-06-20T12:10:17.931352 | 2021-07-11T09:37:53 | 2021-07-11T09:37:53 | 384,908,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for tele2 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"karamsadykov@mail.ru"
] | karamsadykov@mail.ru |
89df1cb944bf91d1a930a6131458fbb5de75dc62 | 16f8b0908918b0802c8bf714c5c07d2df777a8cb | /libtests/turtledemo.py | 2d4443df8889d93221181eb96d4cf14e625c5243 | [] | no_license | iCopy-X-Community/icopyx-community-tests | 603263ecf282b13620a94b88af1e27d8bca0d979 | e33b267a0a3b7d37f72882d8cd8fbe2708ebbdf9 | refs/heads/master | 2023-07-05T20:15:10.328900 | 2021-08-05T10:40:46 | 2021-08-05T10:40:46 | 393,003,664 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | #!/usr/bin/env python3
# Can be run on host too
# iCopy-X: Run with
# sudo service icopy stop
# DISPLAY=:0 sudo xinit /usr/bin/python3 turtledemo.py
import time
import platform
import tkinter as tk
import turtle
from PIL import ImageTk, Image
import keymap
import hmi_driver as hmi
def keydbg(event):
print("MyD... | [
"phil@teuwen.org"
] | phil@teuwen.org |
c8e6a1a4552d1c64297ed1c2af5bb967b2d01139 | c97796ace1b8df4b20e169be11d89857bd9191ba | /python/model.py | 5dd54bf1b0fab834ab41aa97ce0a2841fe98a410 | [] | no_license | vincuk/FHDPM | b228b1d26c0e094ce9ff905902be9627b54fd467 | bf386b39fc04b103c60725ad2320119d31c2c4e1 | refs/heads/master | 2021-01-09T22:38:33.363454 | 2017-08-09T12:51:16 | 2017-08-09T12:51:16 | 92,736,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,782 | py | import numpy as np
import pandas as pd
import scipy.sparse as sp
from scipy.sparse.linalg import spsolve
from multiprocessing import Pool, cpu_count
from python.earnings import earnings_constants
from python.utility import utility_constants
from python.distributions import ZDISTRIBUTION
from python.parameters import J... | [
"vincuk@tut.by"
] | vincuk@tut.by |
262dee03cbd286e032744622bfbce20bc34e191e | e68dedcc8b8b2adbd12b5f4697655df4588a6652 | /DNFaceRecognition/Z_Area.py | da7a3cbe419b5d2c3557e4e3e3e62ebc1a1a2fd2 | [
"MIT"
] | permissive | Lyle-zhang/LaserQt | ceb60083636c60857f92d368554c628f5a09b095 | b879a9b4599be55e81c5f9e834c6264927a7ee99 | refs/heads/master | 2020-07-19T15:10:27.946408 | 2016-11-14T09:56:34 | 2016-11-14T09:56:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | from PIL import Image, ImageDraw, ImageFile
import numpy as np
import random
import matplotlib.pyplot as plt
class Z_Area:
def __init__(self, numNeurons):
self.numNerons = numNeurons
self.response = np.zeros(numNeurons)
self.Y = []
self.sampleY = np.zeros(numNeurons)
def setY(self, Y):
self.Y = Y
... | [
"summychou@gmail.com"
] | summychou@gmail.com |
d9913b842722589bf2287186a9de5d841c977eba | e0f9e1e8dbe947f9a56dc2caa417ed60c066d060 | /Tensorflow/baseline_orig.py | 18ee751b00b79d66bb28e9fadad1f9b6b180cdc3 | [] | no_license | pranshu93/Architectures | f7238e69b1c87d1f47237d7b22d99331c30b4fc8 | 7ea20fbeaa5c50b991ead5cffffc1132e46bead3 | refs/heads/master | 2020-03-24T11:07:55.898837 | 2018-07-29T05:42:21 | 2018-07-29T05:42:21 | 142,676,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,274 | py | from __future__ import print_function
import tensorflow as tf
from tensorflow.contrib import rnn
import numpy as np
import timeit
import os
from thread import start_new_thread
import sys
pid = os.getpid()
def hard_thrsd(A, s):
A_ = np.copy(A)
A_ = A_.ravel()
if len(A_) > 0:
th = np.percentile(np.ab... | [
"pranshu93@gmail.com"
] | pranshu93@gmail.com |
cd4b78a67da8c633aa6cefbb9aba8904d3068e17 | d3561d8db9689ab45f0ec18a64af3cb4a86a06db | /cau3.py | e572cd287c564d19a117c0f4f4c7a9021b4aca96 | [] | no_license | hoangngocquy98/napbt | e1ff084096d2b882bfa0dc85dd30f20a68cec2a8 | 9421d712ad6292c8ab8423a0a00e36ec322a39c9 | refs/heads/master | 2020-05-16T23:01:33.549083 | 2019-04-25T03:56:34 | 2019-04-25T03:56:34 | 183,352,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | s=input('nhapchuoi:').upper()
for a in s:
print(a)
| [
"noreply@github.com"
] | noreply@github.com |
84850b548f4474ded535f29cf17787faf719136c | 36b7139a9ba0a0fb0181605950b26aa2971c8c35 | /lib/nms/nms.py | 1fe8085e32d290ebd507f2797b7eb7ade7b18821 | [
"MIT"
] | permissive | Re3write/deepresolution | 845962d27cae4a1a7bd6929ebedf6211f2e2e1f8 | 2ad7e67beae89d181a5c7c9bcf553b65c6327faa | refs/heads/master | 2020-04-28T21:26:16.515656 | 2019-03-14T08:48:50 | 2019-03-14T08:48:50 | 175,581,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,215 | py | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Modified from py-faster-rcnn (https://github.com/rbgirshick/py-faster-rcnn)
# ------------------------------------------------------------------------------
from __future__ imp... | [
"1936929110@qq.com"
] | 1936929110@qq.com |
41a66a232063e2ebb8e8c98b51591d350d5ea36c | e6d4c8a843cd5be7cc18cf01fce814fc6dd31116 | /lib/markdown.py | ea2f4410e3e4f4bfbe9b8a72798cf00eb68e664d | [
"MIT"
] | permissive | contentful/the-example-app.py | 5a97e105b5e40a02db1fcd23a8b7f47a420e366d | 48597edd47414097535636cd1118a87c368b0ce5 | refs/heads/master | 2023-01-31T04:23:49.004745 | 2023-01-18T09:27:51 | 2023-01-18T09:27:51 | 112,584,112 | 17 | 40 | MIT | 2022-01-21T18:59:42 | 2017-11-30T08:13:37 | Python | UTF-8 | Python | false | false | 343 | py | import CommonMark
from flask import Markup
def markdown(text):
"""Filter for turning text into markdown.
:param text: String to be transformed.
:return: Transformed html string.
Usage:
{{ 'Some *markdown*'|markdown }}
"Some <strong>markdown</strong>"
"""
return Markup(Common... | [
"noreply@github.com"
] | noreply@github.com |
f19d3f111f347eb3e4604b81fcb9bab284fc546e | 14f0c35a5095647281adb7eb6be1ef865f8e6a02 | /district/partner.py | a5bb82234c1c36f0ad1a340c54bd9ad3be6241b1 | [] | no_license | funkring/addons-funkring-extra | 9075bcb52561957ca3b7003b803e8442152ca1b7 | e473d4a313a36d97df6dbbd280951a534dd37955 | refs/heads/master | 2022-04-03T06:43:08.694839 | 2020-02-02T23:45:13 | 2020-02-02T23:45:13 | 106,341,217 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | # -*- coding: utf-8 -*-
#############################################################################
#
# Copyright (c) 2007 Martin Reisenhofer <martin.reisenhofer@funkring.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | [
"martin.reisenhofer@funkring.net"
] | martin.reisenhofer@funkring.net |
f4085e913c544b9b4919f4733051da4f02611719 | f9420af4f39c2ff114cfdc936910ddeb9d3861d4 | /app/emotions/views.py | 06c780b37498a257b9b63544bac4c91f860d94c5 | [
"MIT"
] | permissive | adiptdevtomar/emotions_backend | 1d4dea13eebdb2a563d68c88ba09ee07aaaad259 | c31e688629cdd4a9f4f44657ec36bef169f95f1e | refs/heads/main | 2023-06-22T20:48:07.887894 | 2021-07-20T09:32:14 | 2021-07-20T09:32:14 | 387,730,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | from django.shortcuts import render
from emotions import serializers
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework import status
import tensorflow as tf
import pandas as pd
import pickle
class Predict():
def predict_new(sentence):
model = ... | [
"adipt.dev.tomar@gmail.com"
] | adipt.dev.tomar@gmail.com |
3f194cac2416d5e78c49d3ca123252eb4de5fddb | b4be6163a69c6251a8149a58fe5e7c18daec1b4d | /Ex1018.py | 4590aea9ebb3ed6051819b720c809a1cfdad2ac2 | [] | no_license | bielzfreitas/ExUriPython | ab5e1da3f6f5b222639b4f5f45d10234797c83ab | 0c07da71a14b2061ec056e14b2216c76503381cd | refs/heads/master | 2022-02-23T00:43:11.333698 | 2019-10-23T15:58:33 | 2019-10-23T15:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # Leia um valor inteiro. A seguir, calcule o menor número de notas possíveis (cédulas) no qual o
#valor pode ser decomposto. As notas consideradas são de 100, 50, 20, 10, 5, 2 e 1.
#A seguir mostre o valor lido e a relação de notas necessárias.
ent = int(input())
print (ent)
n100 = int(ent / 100)
n50 = int(... | [
"noreply@github.com"
] | noreply@github.com |
65982eac7ec7777b55dd3abde5ad1b74ec997123 | 518bf84273776f472d08e46f15b29bab57f43d35 | /entity/ShipPart.py | 900fb02b2c46abce5c4ffed200ac572a9f1f88ec | [] | no_license | markjoshua12/throwaways | 81ab2efde93281483550c984e1ed0a48bf620456 | 10fdd81eb7a553581dda9773cb46aff786bb6b08 | refs/heads/master | 2022-12-18T00:56:43.449856 | 2020-09-27T00:03:02 | 2020-09-27T00:03:02 | 297,106,328 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import pymunk
import arcade
from graphics import Textures
from entity.Entity import Entity
from tiles import Tile
class ShipPart(Entity):
def __init__(self, ship, x, y, tile):
super().__init__(0, 0)
self.texture = Textures.get_texture(tile, 4)
self.ship = ship
self.x = x
... | [
"mark.joshua121001@gmail.com"
] | mark.joshua121001@gmail.com |
3f2c45d2485f3b00380efee12c3a6f5d51afd6bd | 4e7e455a87526367af15f945045f7c7b1280364e | /DummyBot/sc2/constants.py | 90faa07b1445b79f65b9ed64867819d83a1b0dee | [
"MIT"
] | permissive | ProfessorQu/TooManyStalkers | 1882c007b57257d59605687e30dde2e54eb0e70f | 366c49b0b59fbf72ccb4e80e94c737056c95311a | refs/heads/main | 2023-05-22T01:19:51.425945 | 2021-06-07T13:22:34 | 2021-06-07T13:22:34 | 363,627,631 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,241 | py | from .data import Alliance, Attribute, CloakState, DisplayType, TargetType
from .ids.ability_id import *
from .ids.buff_id import *
from .ids.effect_id import *
from .ids.unit_typeid import *
from .ids.upgrade_id import *
from collections import defaultdict
from typing import Dict, Set
mineral_ids: Set[int] = {
RI... | [
"quint@dasookwat.com"
] | quint@dasookwat.com |
8f531582e923fb0fb0831e88beb903ecdecbc8a3 | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190119190257.py | 89fe9b62ef2019192a357e1a4849c612a4a637d1 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,985 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
74181cfa74ae35c7c13033e73dd6978c8ffce412 | 07f837d8c5236fe5e75ef510cd296814452370ce | /py/h2o_jobs.py | 311baeb46561a756eefb1ed044efe40f6157e30d | [
"Apache-2.0"
] | permissive | vkuznet/h2o | 6f9006a5186b964bac266981d9082aec7bc1067c | e08f7014f228cbaecfb21f57379970e6a3ac0756 | refs/heads/master | 2021-08-28T11:37:52.099953 | 2021-08-10T22:43:34 | 2021-08-10T22:43:34 | 20,032,996 | 0 | 0 | Apache-2.0 | 2021-08-10T22:43:35 | 2014-05-21T18:46:27 | Java | UTF-8 | Python | false | false | 9,555 | py | import time, sys
import h2o, h2o_browse as h2b
def pollStatsWhileBusy(timeoutSecs=300, pollTimeoutSecs=15, retryDelaySecs=5):
busy = True
trials = 0
start = time.time()
polls = 0
statSum = {}
# just init for worst case 64 nodes?
lastUsedMemBytes = [1 for i in range(64)]
while busy:
... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
c03e87ec7816e07b685894a92fa3274d5414db6c | e80393d0e32358d68e60b5119406c654d2373e1f | /encoding/models/aca2.py | 83cbbae9f07d7dbe332b8679537ef97e0f8d8c86 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | yougoforward/Fast_psaa | 3e333fb31743bda7684cc0bdae378bf40d839f63 | 68e99cd5bcf3bf5ab45ea604c3898fabc458c020 | refs/heads/master | 2022-11-04T02:01:03.694010 | 2019-11-30T07:53:01 | 2019-11-30T07:53:01 | 224,800,023 | 1 | 1 | NOASSERTION | 2022-10-26T23:53:43 | 2019-11-29T07:27:43 | Python | UTF-8 | Python | false | false | 7,162 | py | from __future__ import division
import torch
import torch.nn as nn
import torch.nn.functional as F
from .mask_softmax import Mask_Softmax
from .fcn import FCNHead
from .base import BaseNet
__all__ = ['ACA2Net', 'get_aca2net']
class ACA2Net(BaseNet):
def __init__(self, nclass, backbone, aux=True, se_loss=False,... | [
"908865817@qq.com"
] | 908865817@qq.com |
fe5f40458d76c13c306f9075bfdf202f337cf233 | 32afcaed8a821e65e72313e808a5ef74a8066545 | /random_data.py | 01d23c028e827c545fad6ae90f24ebc5d3c1a87a | [] | no_license | augieafr/uts-software-testing-sdp-metrics | 979ebbe33efc4607139619bc90a68a472c11cbab | 33c98f887218f1303d565b783f3fbbac1d1b9315 | refs/heads/main | 2023-08-27T11:58:03.472572 | 2021-10-13T16:22:10 | 2021-10-13T16:22:10 | 416,742,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,138 | py | import itertools
import json
import os
import random
import unicodedata
import uuid
from collections import defaultdict
from typing import Type, Union
from unittest.mock import patch
from django.conf import settings
from django.contrib.auth.models import Group, Permission
from django.contrib.sites.models import Site
f... | [
"noreply@github.com"
] | noreply@github.com |
ff69c7aa23648e047da913f57e8d61b4bd292bde | d2e13f3f7283307bc62eb4a103833aa3f26542fb | /p05_Trapezoid_Area/Main.py | 0b87698fce5e7b6e4e10b85c9b2f68a4cae136ad | [
"MIT"
] | permissive | RadoslavEvgeniev/Python-Simple-Calculations | 93ec7aec80d0f9e36f8313fd3a8147d03b529ded | 070f7608751cb8022d1dcc1cffc4a0772751a95b | refs/heads/master | 2021-05-15T23:32:52.290517 | 2017-10-14T08:46:49 | 2017-10-14T08:46:49 | 106,912,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | baseA = float(input())
baseB = float(input())
height = float(input())
area = (baseA + baseB) * height / 2
print(area)
| [
"r.evgeniev.ivanov@gmail.com"
] | r.evgeniev.ivanov@gmail.com |
a05ccbcb518a182caa4947b3f2cc7efb563a96ab | 22769ac2526c6d564acc918327e489e38659dabd | /django_website/settings.py | 6b68cb2a0031ea3cfc5bfbf8328c0fa479ee21a0 | [] | no_license | LondonUZ2001/django_website | 30f831c02382ac4db92b47d1924c19cd642972e5 | fc19bc7600218e8cb8652a663695c6b3ff53fa29 | refs/heads/master | 2022-11-13T15:08:35.170266 | 2020-07-02T18:21:13 | 2020-07-02T18:21:13 | 276,176,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,186 | py | """
Django settings for django_website project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | [
"alivooy13@gmail.com"
] | alivooy13@gmail.com |
b1bc5027b84c5e0063ef0dc615b6207100b4b9a3 | feb14cc02cc682bb04fada1d1252b2d630bce4aa | /sol/migrations/0014_ministrybackground.py | 933998a9ed8794c9e3fb5649a0b42a419152fadd | [] | no_license | t4christ/springoflife | 60d5da1cf78e3c757f3ce34f99235e96a4fec6e2 | 8545b726c8011dc289a70c8325316d7782fadf9c | refs/heads/springs | 2022-12-14T06:17:14.291983 | 2021-08-23T20:17:54 | 2021-08-23T20:17:54 | 178,239,265 | 0 | 0 | null | 2022-12-08T00:50:29 | 2019-03-28T16:10:46 | JavaScript | UTF-8 | Python | false | false | 825 | py | # Generated by Django 3.0.8 on 2020-08-14 10:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sol', '0013_auto_20200807_1257'),
]
operations = [
migrations.CreateModel(
name='ministryBackground',
fields=[
... | [
"bakaretemitayo712@gmail.com"
] | bakaretemitayo712@gmail.com |
c26ce4af3e3326663a505c3563633472e49af3ec | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW06_20210715232125.py | 82e83460b2b3572ef7ede77011ce58249bbfcda0 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,842 | py | """
Georgia Institute of Technology - CS1301
HW06 - Text Files & CSV
Collaboration Statement:
"""
#########################################
"""
Function Name: findCuisine()
Parameters: filename (str), cuisine (str)
Returns: list of restaurants (list)
"""
#########################################
########## WRITE FUN... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
7b4aa4cd3f177df0ef1398abce7592376aa10dd9 | 9459937f627a77a19f0acce54273986a7b48edd5 | /fsfsd/eval.py | dff075e9bddf56f5b887f7e2d6d653ca607387b1 | [] | no_license | opsingh46/lab | 6867287f20954b2b4a57ed59e18bf37ca9eaac33 | 8ff9f183bcee7af852be39fecbbbb6df933fcad9 | refs/heads/master | 2020-09-14T09:31:12.679828 | 2019-11-21T05:52:15 | 2019-11-21T05:52:15 | 223,091,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,275 | py | import csv
import random
from math import sqrt
def loadDataset(filename, split, trainingSet=[] , testSet=[]):
with open(filename, 'rt') as csvfile:
lines = csv.reader(csvfile,delimiter=',')
next(lines)
dataset = list(lines)
for x in range(len(dataset)-1):
... | [
"noreply@github.com"
] | noreply@github.com |
af8822c01c2eae258d213fcd4fb4dabd0f0f483b | 9a9e0398f26cee9864d48c4618c0a482e5475e83 | /Python/code/design_browser_history.py | 21040767673ace8a3036f93a95df6462006bd225 | [] | no_license | CNife/leetcode | 92693c653bb41780ee431293286c3e909009e9b0 | 7cdd61692ecb52dd1613169e80b924dd39d35996 | refs/heads/main | 2021-06-22T21:22:12.997253 | 2021-03-18T07:07:15 | 2021-03-18T07:07:15 | 206,955,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | from typing import List
class BrowserHistory:
def __init__(self, homepage: str):
self.stack: List[str] = [homepage]
self.pointer: int = 0
def visit(self, url: str) -> None:
if self.pointer < len(self.stack) - 1:
self.stack[self.pointer + 1] = url
del self.stack... | [
"CNife@vip.qq.com"
] | CNife@vip.qq.com |
6e5c1b6b90f3961a988d8bfcdf41f2994f72480b | b6c4c71dd1544bfc6bc364b4242e9b76401e7372 | /ebicochineal/yukicoder/g81.py | 2e1d5cfc8ad06f1f4c36fda82b6ff2d262b58410 | [] | no_license | ebi-cp/golf | b248f9a7b1a09e6d6c90e141ae5ce1cacbf7c665 | 4ea8f8456fd926051aadc1e88e4014585f483997 | refs/heads/master | 2020-03-17T20:53:06.910302 | 2019-06-20T01:47:59 | 2019-06-20T01:47:59 | 133,932,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | #! /usr/bin/env python3
from decimal import*
print('{:.10f}'.format(eval("+Decimal(input())"*int(input()))))
| [
"yz94588@gmail.com"
] | yz94588@gmail.com |
3c145b8ef4e538afdc8b05b7dc35000c6cd14bde | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/321/107581/submittedfiles/jogoDaVelha.py | b5f5699b08831f08b81685112bfe8cf9f27f5873 | [] | 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 | 962 | py | # -*- coding: utf-8 -*-
from jogoDaVelha_BIB import *
# COLOQUE SEU PROGRAMA A PARTIR DAQUI
print('Bem vindo ao JogoDaVelha do grupo 8 [Iara, Ingrid, Luiz Otávio, Tatiane]\n')
a=nome()
b=solicitaSimboloDoHumano()
sort=sorteioPrimeiraJogada(a)
if sort==0:
if b == 'X':
c = ' O '
else:
c = ' X... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.