blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
c927116099b54a05b03c90959b1cce574e84ed84
afc910035c034c6ca01f7c79a4ef15b2ba263e9d
/invites/migrations/0002_alter_invites_inviter.py
2d4c2866f69184d03883b1da4b9447fe089738bc
[]
no_license
HJLG/treasures
a2094e10cace9df6f29226324525c6e93df22829
e444aa5b352c071f97f70a53f18946c27512e7e3
refs/heads/master
2023-07-10T19:12:13.268788
2021-08-19T16:56:11
2021-08-19T16:56:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
# Generated by Django 3.2.6 on 2021-08-18 06:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('invites', '0001_initial'...
[ "huijialegerald@gmail.com" ]
huijialegerald@gmail.com
0072d7dd48d5db4a17994ff2550b4e628a58e0ed
f865fdd970f8e37ea2aa5157374af8c4d6ced987
/test/test_user_group_list_inner.py
16ac636b80338e722fd59c04d034837cc6c1eece
[]
no_license
gkeep-openapi/python-sdk
7e809448355bff535b3d64e013f001e9196c5e19
7c4f3785b47a110386ef10109619654522c95de5
refs/heads/master
2022-05-28T16:13:06.643958
2022-05-13T14:58:39
2022-05-13T14:58:39
235,536,010
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
# coding: utf-8 """ Gkeep API Gkeep API # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from models.user_group_list_inner import UserGroupListInner # no...
[ "gkeep-ci-jenkins" ]
gkeep-ci-jenkins
3d0a3c8a5c6e5b46f5dd89d596fcc0319355ccc3
3b504a983f1807ae7c5af51078bfab8c187fc82d
/client/Helpers/cleaner.py
c4d4630216831050d22fa945b6021c73c17ec2b3
[]
no_license
SEA-group/wowp_scripts
7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58
2fe54a44df34f2dcaa6860a23b835dcd8dd21402
refs/heads/master
2021-09-07T23:10:13.706605
2018-03-02T17:23:48
2018-03-02T17:23:48
117,280,141
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
# Embedded file name: scripts/client/Helpers/cleaner.py from debug_utils import LOG_TRACE, LOG_WARNING, LOG_ERROR import time import os from wofdecorators import noexcept @noexcept def deleteOldFiles(dirPath, days, ext): if os.path.exists(dirPath): allFiles = [ os.path.join(dirPath, f) for f in os.listdir(...
[ "55k@outlook.com" ]
55k@outlook.com
06aa64922809f256f59a8384624cf0bf5600fefe
ace029249e56decdc82770645cbe1904a1af8ec7
/django/django_orm/the_wall_p/apps/wall/views.py
7e9b9528bba1d7acbec79a6fa30425bbc8a77744
[]
no_license
CoraleeZ/Python-Stack-All-Assignments
1579e17d447afc0a56be6628db39ba13d6e2e1b3
993f4f3ed7ff8a22b8c4275cda037f7f925cb161
refs/heads/master
2022-11-08T06:17:31.668026
2019-03-24T02:59:29
2019-03-24T02:59:29
177,363,963
0
1
null
2022-10-15T01:50:04
2019-03-24T02:55:36
Python
UTF-8
Python
false
false
4,296
py
from django.shortcuts import render,redirect from .models import * from django.contrib import messages import bcrypt import datetime def index(request): pass return render(request,'wall/lr.html') def register(request): if request.method=='POST': errors=users.objects.basic_validator(request.POST)...
[ "helloqyzhang@gmail.com" ]
helloqyzhang@gmail.com
2c1a94b50ac37c3f75da9cf71ce6ccb720a8887a
de826f625e3f4a3f71c2341a3275a3b288ba5062
/lab/yun/miniterm.py
4787918ee4555d9d3c4f8f3d8bef28863a163261
[ "MIT" ]
permissive
sourceperl/pid-analyzer
aff4fba41dcd69baa116e5e92fb7afaea17019b3
f6637c1da3542f0e88ce29cc9f387ad1931c6959
refs/heads/master
2020-04-09T23:26:32.006227
2019-04-28T17:56:32
2019-04-28T17:56:32
160,656,825
0
2
null
null
null
null
UTF-8
Python
false
false
35,436
py
#!/usr/bin/python # # Very simple serial terminal # # This file is part of pySerial. https://github.com/pyserial/pyserial # (C)2002-2017 Chris Liechti <cliechti@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import import codecs import os import sys import threading import seri...
[ "loic.celine@free.fr" ]
loic.celine@free.fr
7fc1c487d6b98fa7925264d42daaf09f8bf42ccc
3b27ecb82639545fc564446295a45a5f0fa99920
/src/service/dynamo.py
85810f83f388b0cc8249512a44172c2581fc6257
[]
no_license
suyogmirgal/serverless-user-service
2ce6f5449fbbe4caf7b74ec46b367afd51b52f3e
f1ece95abeb445ceb0f74defab5c814c331aa51a
refs/heads/master
2023-01-31T22:17:50.818927
2020-12-16T16:18:48
2020-12-16T16:18:48
321,696,352
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
import boto3 import os import uuid def create_user(user_data): dynamo_client().put_item( TableName=os.getenv("USER_TABLE"), Item={ "id": {"S": str(uuid.uuid4())}, "email": {"S": user_data.get("email")}, "firstName": {"S": user_data.get("first_name")}, ...
[ "suyog.mirgal@arrkgroup.com" ]
suyog.mirgal@arrkgroup.com
d38fd7f0f8dd0b59d615a0c1fa227a31c6f535f9
2f27a99188314938eed1093deaa5ac84c29534c8
/freedmqtt/freedmqtt/MQTTClientUpdated.py
1834b68ff1e60e17e69d9afa5065a9e83e7892e7
[]
no_license
FREEDM-DGI/MQTT-Device
3f9ea4083355fa9af1dff03e8ece9e77db830351
0d8c1085b5656d9e1e38a2f7b68bbdf32f228911
refs/heads/master
2021-01-10T17:16:53.169156
2016-12-20T00:07:14
2016-12-20T00:07:14
51,873,288
0
0
null
null
null
null
UTF-8
Python
false
false
8,185
py
import os import sys import json from freedmqtt.log import log, datalog, DEBUG, EVENT, WARNING, ERROR, RX, TX from freedmqtt.DeviceProfile import DeviceProfile import re import jsonpickle import datetime import time import paho.mqtt.client as mqtt import multiprocessing import threading # from freedmqtt.jsonhandler imp...
[ "jcork2@mst.edu" ]
jcork2@mst.edu
0e8912bd96054715c06e4b8c14fbf301e2595ac2
f3248eb4020f60590443778df0c2148cad730445
/src/entitykb/crypto.py
ec6002825a9b66ddc65bc22d99347496d21926e3
[ "MIT" ]
permissive
mehdibenamorr/entitykb
1b380a94df333253fd9e19653fe1d4f3f9400d1e
61cf346a24f52fd8c1edea8827a816284ed6ecaf
refs/heads/master
2023-06-28T02:31:40.074794
2021-07-28T14:35:54
2021-07-28T14:35:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,622
py
import datetime import secrets from pathlib import Path import jwt from passlib.context import CryptContext from smart_open import smart_open # secret def generate_secret(length=32): return secrets.token_hex(length) # password one_way_hash = CryptContext(schemes=["bcrypt"], deprecated="auto") word_set = Non...
[ "ian@genomoncology.com" ]
ian@genomoncology.com
1d80569ab6308b0a536c1b107e3b293f42597286
5d41c8a9c6edd91ca484021f92b78f36e950de8e
/chapter_4.4.py
df03ab48f8d15c7a6ee190d8e28a907059164370
[]
no_license
dorabelme/Python-Programming-for-the-Absolute-Beginner
1242d3754d3bfdae519d2eb8486d359038b07fae
53a3f2abd76b255908d4a9b39cd89d447df6aef0
refs/heads/master
2020-05-02T23:12:56.089630
2019-03-28T20:11:32
2019-03-28T20:11:32
178,263,050
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
# Word Jumble # # The computer picks a random word and then "jumbles" it # The player has to guess the original word import random WORDS = ("python", "jumble", "easy", "difficult", "answer", "xylophone") word = random.choice(WORDS) correct = word print("There are", len(correct), "letters in the word.") for i in r...
[ "contact.dorabelme@gmail.com" ]
contact.dorabelme@gmail.com
028fa500181f6106d50fa5f983b86b8309a24421
892b4d1b7d415d6fbdba57e9e3e7d777b63b3264
/doc16.py
663fab40e8f7a8c6624c8b41d5ba0213866722d6
[]
no_license
mohseenxor/python-example
ea613485c8f855ce774c65d4e839ff1a8a220387
c39f936c554675eec4c92ffa10947448852da4f1
refs/heads/master
2022-07-28T09:27:54.721573
2020-05-21T05:03:02
2020-05-21T05:03:02
265,751,402
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
import math num = int(input("please enter the number to cal factorial of:")) try: result=math.factorial(num) print(result) except: print("cannot compute the factorial of -ve number")
[ "mohseenkhan.pathan@xoriant.com" ]
mohseenkhan.pathan@xoriant.com
3a84080e5495c75c744f14e91f2f7f3500efb62d
1c965aeda99fdda2047d80dcffa4f57f0b435ffb
/Database/database.py
ddcc90ba98f2d7ab816e0225e6aa608962c31d3a
[]
no_license
therealcorwin/P5_donnees_publiques_OpenFoodFacts
9cd94122060e1935479dd2c8b7354e7c7e054ebd
3d94e35572e5cd2aff2066089e18f23b413a2275
refs/heads/master
2023-04-03T09:59:51.803089
2019-03-06T08:31:07
2019-03-06T08:31:07
174,113,112
0
0
null
2023-03-20T13:17:10
2019-03-06T09:23:40
Python
UTF-8
Python
false
false
7,994
py
# -*- PipEnv -*- # -*- coding: Utf-8 -*- import records as rec from Config import constants as conf from Database.database_user import DataBaseUser from Api.search_category import ApiCollectingData class DataBaseCreator: """ This class has the responsibility of structuring the database, and ins...
[ "LyssProGm@gmail.com" ]
LyssProGm@gmail.com
01257fc2ed40115317bdb68fea86852b0aa4ef26
6bd21a64c5fbeba1682c3e65221f6275a44c4cd5
/vega/algorithms/nas/modnas/core/params/torch.py
9e51d3a56271c36ac7b805c9045a7e136db28898
[ "MIT" ]
permissive
yiziqi/vega
e68935475aa207f788c849e26c1e86db23a8a39b
52b53582fe7df95d7aacc8425013fd18645d079f
refs/heads/master
2023-08-28T20:29:16.393685
2021-11-18T07:28:22
2021-11-18T07:28:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,879
py
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
[ "zhangjiajin@huawei.com" ]
zhangjiajin@huawei.com
0cc7170517859af17328f8430a10f0b600a13273
d278e624f22039eada08d46e73554785aafefdc8
/svdtest.py
4b8f07068592015adf58d7c3d9122038602a8ca6
[]
no_license
rohithnamani/Predicting-movies-using-Matrix-factorization-method
8d10d934e402d9df4345a4c770f6a16c9f611e99
eadb208d9b26afef23789da7811e7998ce581ba4
refs/heads/master
2020-04-24T00:20:29.685164
2019-05-05T17:11:25
2019-05-05T17:11:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,543
py
""" Test file to check the working of recommender With 600 principal components preserving 92% variance of data. """ import csv import numpy as np def SVD(M): Mt=np.transpose(M) prd=np.dot(M,Mt) #Eigen Value Decomposition eigenvalue,eigenvec=np.linalg.eig(prd) #Indirec...
[ "noreply@github.com" ]
rohithnamani.noreply@github.com
076f711788bef03866cb89df6471ef751a2fcb9a
643d307a94510783a2de74d80b7a2dc3ebcd93ba
/docker-images/bb/bin/dsync
fd9062e8c2c415d7da2da676852a14bb3f8db6f1
[ "Unlicense" ]
permissive
NodyHub/docker-k8s-resources
f7da51847bf5ef30cd87436286d2bc4a467403eb
878c0a1d27ed4fbf6e8ad1c8d94c076c1a0699ad
refs/heads/master
2022-11-25T18:11:33.729341
2022-11-14T10:34:10
2022-11-14T10:34:10
255,587,236
19
13
null
2020-10-18T07:37:12
2020-04-14T11:11:56
Shell
UTF-8
Python
false
false
3,638
#!/bin/python import socket import ssl import sys import select #context = ssl.create_default_context() #request = "POST / HTTP/1.1\r\n" #request += "Host: %s\r\n" % hostname #request += "Content-Length: 4\r\n" #request += "Transfer-Encoding: Chunked\r\n" #request += "\r\n" #sanitize = "POST / HTTP/1.1\r\n" #san...
[ "github@janharrie.de" ]
github@janharrie.de
4cc0108ea66142669d75e2f3bcc6ae8b27046567
48eb6ec0a25019978f53c4a6ccd5c52ddb848b59
/DL_Board_Games/policy_gradient.py
35271f6ad5a4596bc37178620dce7a7356aa5c8f
[]
no_license
SadiCetinkaya/Deep_Learning_Fundamentals
2a7c66a7ce9799b2a450270435bccf0a9cc200f3
3dd38c2e446910062896f0cbb9295eb524606204
refs/heads/master
2020-04-13T05:02:26.720721
2018-12-24T11:58:31
2018-12-24T11:58:31
162,979,910
0
0
null
null
null
null
UTF-8
Python
false
false
3,809
py
import collections import numpy as np import tensorflow as tf from tic_tac_toe import play_game, random_player HIDDEN_NODES = (100, 100, 100) # number of hidden layer neurons INPUT_NODES = 3 * 3 # board size BATCH_SIZE = 100 # every how many games to do a parameter update? LEARN_RATE = 1e-4 OUTPUT_NODES = INPUT_NO...
[ "cetinkaya.sadi@gmail.com" ]
cetinkaya.sadi@gmail.com
9649113ecdc56ad32d934da6ba12724b88237bf0
fb35dbcbcf0ba811032a6aaf451aa4bdacf7dc24
/41.缺失的第一个正数.py
bd0f466ce2e4185a91138ae91c3dcc7bace0b59b
[]
no_license
wangkai997/leetcode
4bf00ac327249319fcbc2350cf1a0734896bb871
43d23f8465232182ef95eb4587386aed93847de7
refs/heads/master
2023-07-28T18:59:12.439360
2021-09-12T17:29:54
2021-09-12T17:29:54
345,692,039
1
0
null
null
null
null
UTF-8
Python
false
false
882
py
# # @lc app=leetcode.cn id=41 lang=python3 # # [41] 缺失的第一个正数 # # @lc code=start class Solution: def firstMissingPositive(self, nums: List[int]) -> int: def swap(nums,index1,index2): nums[index1],nums[index2] = nums[index2],nums[index1] n = len(nums) for i in range(n): ...
[ "wk15@mail.ustc.edu.cn" ]
wk15@mail.ustc.edu.cn
8addf74d122966e1108f617dd09bfe39aa164b1f
bf434761157d976483ffb69056e8fab26a46cfe0
/merge_sort/merge_sort.py
3583fd3849f669cccd41953af99cd8095ca04a7c
[]
no_license
sshukla31/misc_algos
ebfc690417b89b64bfd23aa20e95695163c0e9cb
2d95bcb5e4d6308665bac124a2cdf14ead310920
refs/heads/master
2020-05-18T15:11:42.533461
2017-01-07T02:16:08
2017-01-07T02:16:08
24,486,319
0
0
null
2015-09-04T19:08:21
2014-09-26T04:34:39
Python
UTF-8
Python
false
false
1,287
py
def merge_list(left, right): """ Merge left and right list. Compare elements of 2 list and sort them """ result = [] i = 0 j = 0 while(i < len(left) or j < len(right)): # Case 1: left and right list are non-empty if(i < len(left) and j < len(right)): if(left[i] <...
[ "sandeepshukla31@gmail.com" ]
sandeepshukla31@gmail.com
a4ba0dfc4b298c001e05f14b51f922ff7771eea3
c6feea761c286347a60e3d629ed1a93b8834b3d3
/torch/legacy/nn/WeightedEuclidean.py
cc71344a46af63d8137557ca251447079ad67fec
[ "BSD-2-Clause" ]
permissive
drdarshan/pytorch-dist
904d51d29cd4e008cd4a2b46a9126ebdd11fc0f7
6b821ece22e4d67dbe2d2f899672a08822769024
refs/heads/master
2020-04-06T04:00:42.918913
2016-11-09T02:50:17
2016-11-09T02:50:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,455
py
import math import torch from .Module import Module class WeightedEuclidean(Module): def __init__(self, inputSize, outputSize): super(WeightedEuclidean, self).__init__() self.weight = torch.Tensor(inputSize, outputSize) self.gradWeight = torch.Tensor(inputSize, outputSize) # each...
[ "adam.paszke@gmail.com" ]
adam.paszke@gmail.com
fefdfe40f2aca0d879b50f15b39baebb1bcc82d9
4d99350a527a88110b7bdc7d6766fc32cf66f211
/OpenGLCffi/GL/EXT/ARB/ES3_2_compatibility.py
ceaf8d75612d44872e51b4093a42ac9b70cd120a
[ "MIT" ]
permissive
cydenix/OpenGLCffi
e790ef67c2f6c9877badd5c38b7d58961c8739cd
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
refs/heads/master
2021-01-11T07:31:10.591188
2017-04-17T11:04:55
2017-04-17T11:04:55
80,312,084
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
from OpenGLCffi.GL import params @params(api='gl', prms=['minX', 'minY', 'minZ', 'minW', 'maxX', 'maxY', 'maxZ', 'maxW']) def glPrimitiveBoundingBoxARB(minX, minY, minZ, minW, maxX, maxY, maxZ, maxW): pass
[ "cdenizol@gmail.com" ]
cdenizol@gmail.com
dfbe54b21a82693c1f18b608653760f5d404f818
d8b68b17502771003293bcefae6ac890b50b1073
/Backend/music_Controller/settings.py
eff796cddff63c231b5a39e3dd75990d4430de49
[]
no_license
Bhavya0020/Party-Music-Controller-Using-React-And-Django
5ae1a2412f1da9b56f185708afbfc194d141919b
f6e7d33d59df551d2623b4e9e23acfd386bdcc00
refs/heads/main
2023-04-21T22:17:31.018776
2021-05-05T04:28:14
2021-05-05T04:28:14
362,118,105
0
0
null
null
null
null
UTF-8
Python
false
false
3,202
py
""" Django settings for music_Controller project. Generated by 'django-admin startproject' using Django 2.2.20. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ im...
[ "bhavya.learncode@gmail.com" ]
bhavya.learncode@gmail.com
6900c2fa1ec48b5e89d0c3b028d429e1f9f90a6e
74bb9d7f7430092b112fb1872539a418cbb39617
/create - コピー.py
ffe0c8c355d6e7375f2315b388e0b43771df9072
[]
no_license
KenshiroSugiyama/automation_account_create
a5f1f76adece10dc618f31688441d9d0ef46ff05
e6b07bb22923e00caa25a643d8a8f6ced57b64c5
refs/heads/main
2023-07-15T19:03:12.939029
2021-08-27T10:16:35
2021-08-27T10:16:35
400,468,371
0
1
null
null
null
null
UTF-8
Python
false
false
6,363
py
# coding: UTF-8 # PyAutoGUIをインポート import pyautogui import time import webbrowser # x = pyautogui.position() # print(x) #postman # pyautogui.click(x=1277, y=1054) #IE # pyautogui.click(x=993, y=1054) #personal_info_sheet # pyautogui.click(x=243, y=22) #API結果シート # pyautogui.click(x=590, y=23) ...
[ "ken4600223@gmail.com" ]
ken4600223@gmail.com
29e3dcf28d9875d7504d3ac59cdea11af21fd3bf
2845afa035e34c8b476c49caf2b4e2269ce88e69
/task_65.py
0614eb05daad31d0baa2e693ae283ee9b11e2080
[]
no_license
Alexandr-Potapov/brain_strings
00cf41cedd04d781e39c31c6504253ee3cdbd99b
220fe6ecc0b33a882b70ab8fcceefe76b63c0d54
refs/heads/master
2022-04-25T14:12:41.592942
2020-04-28T16:27:08
2020-04-28T16:27:08
259,691,766
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
"""Дан текст. Найти сумму имеющихся в нем цифр.""" import re def find_sum(text_from_user): numbers_as_symbols = re.findall('\d', text_from_user) return sum([int(number) for number in numbers_as_symbols]) from_user = input('Введите текст: ') print(find_sum(from_user))
[ "aleksu007@gmail.com" ]
aleksu007@gmail.com
ef86634c7ffd1a3b39bcf60de937866432db17a0
edb58186978e8b07a86eebefbd6cfbb69ab85eef
/astroimage/utilitywrappers/imagestack.py
87512ebbc3506e89e7d68053993be01427194562
[]
no_license
jmontgom10/AstroImage
2aa8d2dcf4eebaa21f9073c347e85a4f5052e83b
799218cfb077b9e105207f2acc023b8409b21c5a
refs/heads/master
2021-01-19T01:37:54.732617
2017-05-21T21:07:27
2017-05-21T21:07:27
48,810,762
1
0
null
2017-04-25T15:18:20
2015-12-30T17:00:34
Python
UTF-8
Python
false
false
88,792
py
# Core imports import copy import warnings import psutil from functools import lru_cache # Scipy imports import numpy as np from scipy import ndimage, signal # Astropy imports import astropy.units as u from astropy.stats import sigma_clipped_stats from astropy.modeling import models, fitting from astropy.nddata impor...
[ "jmontgom.10@gmail.com" ]
jmontgom.10@gmail.com
56ff0c923d0bebe7b7f141de3264c6715b572f0b
e56b5d35e502eb9cd6170ce2ff778c3a153e0df1
/gru/network.py
b4cd0cf20c21e4b8414ee2a305c5c87471c16f14
[]
no_license
fankib/STGRU
c84f2064cd2c3c66a4055f9b48af2a9f59561447
a562fb1b20c79afc54413ea31ce226273ac00bcd
refs/heads/master
2020-09-22T14:14:46.589655
2020-06-03T08:53:15
2020-06-03T08:53:15
225,234,660
0
0
null
null
null
null
UTF-8
Python
false
false
11,146
py
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from enum import Enum from gru import OwnGRU, OwnLSTM, STGN, STGCN class GRU(Enum): PYTORCH_GRU = 0 OWN_GRU = 1 RNN = 2 LSTM = 3 OWN_LSTM = 4 STGN = 5 STGCN = 6 @staticmethod def from_string(...
[ "benjamin.fankhauser@bfh.ch" ]
benjamin.fankhauser@bfh.ch
6a2266d3fe5ce2ebea74f20a616326857a830adc
0b189ca8e2bda62a816c4f519eec457dfd005830
/schema.py
275c205c7cad6869b55cbd22e0155425b7cdadd0
[]
no_license
katheich/graphene-django-basic-tutorial
d1ffaf96fb6a6f24766374281677108d692471e6
1bb15a392f0abf61ec273a757707e26637fe69b2
refs/heads/master
2023-04-08T15:27:12.910761
2020-02-08T11:16:50
2020-02-08T11:16:50
238,943,745
0
0
null
2023-03-15T18:02:44
2020-02-07T14:27:58
Python
UTF-8
Python
false
false
255
py
import graphene import ingredients.schema class Query(ingredients.schema.Query, graphene.ObjectType): # This class will inherit from multiple Queries # as we begin to add more apps to our project pass schema = graphene.Schema(query=Query)
[ "kathrin801@gmail.com" ]
kathrin801@gmail.com
f23b24f93a92453fdd1acc05b450f0c269959bd9
78c4a0b029ef1af4ac9ef90305eef85ef866ad35
/networking/dbus/mpris.py
c6cdf510fbed7188d58e45f5eae08f22f5144938
[ "MIT" ]
permissive
qeedquan/misc_utilities
7727e33e01a9f45275e3efdd165c90053d8ba10a
e8319e6572dd92efceebb5a2d52a00cb993492b2
refs/heads/master
2023-08-08T13:24:18.213741
2023-08-07T00:26:03
2023-08-07T00:26:03
46,625,839
10
3
null
null
null
null
UTF-8
Python
false
false
1,786
py
#!/usr/bin/env python """ https://specifications.freedesktop.org/mpris-spec/2.2/ https://amish.naidu.dev/blog/dbus/ Mainstream media players using this: audacious vlc parole media player """ import dbus import re player_path = "org.mpris.MediaPlayer2.Player" bus = dbus.SessionBus() def test_control(player): #...
[ "qeed.quan@gmail.com" ]
qeed.quan@gmail.com
aeb89ffab98427974b48d58dd4055f8cab16be78
52b40e35d86bf947a180bd960510771e01d4b36d
/packages/Python/lldbsuite/test/functionalities/data-formatter/swift-typealias/TestSwiftTypeAliasFormatters.py
22ab10c43e4d1778582fc03ae82e99b304fd2a9b
[ "NCSA" ]
permissive
k8stone/swift-lldb
99a6253959d3610a04c3009e2840860581fc7a93
952b49258a3ab0baa66ab02cf176fee0f5dc22ab
refs/heads/master
2021-01-17T07:00:15.564729
2015-12-11T21:01:05
2015-12-11T21:01:05
47,856,292
1
0
null
2015-12-11T23:36:05
2015-12-11T23:36:05
null
UTF-8
Python
false
false
3,756
py
# TestSwiftTypeAliasFormatters.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See http://swift.org/LICENSE.txt for license information # See http://swift.o...
[ "tfiala@apple.com" ]
tfiala@apple.com
3926e85a4e520c8c3d90ab7486085a7e4262c471
91efd185e9ac6a8cf0c717471531ed6acb758191
/tests.py
74d1042aa46fb79fa834c277943a97c980062c38
[]
no_license
aromaniello/globant_python_exercises
433605e26e23bf3845d35c4beda2aa27374e7db3
dc4b22feada6eb931f8083ea3c0ac41231ca23a4
refs/heads/master
2020-09-11T06:17:18.536639
2019-11-21T13:11:03
2019-11-21T13:11:03
221,968,336
0
0
null
null
null
null
UTF-8
Python
false
false
2,506
py
# Test addition m1 = Matrix([[1,2,3],[1,2,3]]) m2 = Matrix([[3,2,1],[3,2,1]]) result = m1.add(m2) print("\nAdding " + str(m1.matrix) + " and " + str(m2.matrix) + ", result: " + str(result.matrix)) if result.matrix == [[4,4,4],[4,4,4]]: print("Addition test successful") else: print("Addition test failed") # Test sc...
[ "agustin@romaniello.com.ar" ]
agustin@romaniello.com.ar
ae6b9987d4be539208bc25cd4cc81bbb43a6618a
b1ce15633def9819abd03c167a4bdfe603745a4d
/Blog_No3(BMI_Prediction)/visualize.py
828b33461957509a0dd6b6784edc44ce8133a57e
[]
no_license
onkkul/Blog_Programs
808d5b4705197641776c42fb3c51a8e840aa490e
313d7b321a423269f72f935a5c39b7a953cf0283
refs/heads/master
2021-10-19T04:34:34.400996
2019-02-18T04:18:30
2019-02-18T04:18:30
110,731,263
3
0
null
null
null
null
UTF-8
Python
false
false
1,560
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 29 16:40:39 2018 @author: NAIFE """ from matplotlib import pyplot as plt #daset of our model in the form of [height, weight] in inches and pounds respectivey X = [[62, 100], [67, 105], [67, 115],[72, 120], [72, 135],[76, 145], [76, 150], [58, 91]...
[ "noreply@github.com" ]
onkkul.noreply@github.com
c747f4aa592960b9ec52d42f96aefd7e187160d0
e603596e7750177b92eb9f0a70e0cb952177e52a
/utils.py
3a90e8bd49c940fe0102248dca2eda89515b3423
[]
no_license
XiaXuehai/Learning_FasterRCNN
30f90ef0e1d2f45fc6fe807e29f8bd4199a82818
7c2146cd7b5c548efa1d6cddf6ce2e8695e60fa3
refs/heads/master
2020-04-09T12:04:09.084777
2019-03-06T07:25:01
2019-03-06T07:25:01
160,334,661
1
1
null
null
null
null
UTF-8
Python
false
false
8,739
py
# coding:utf-8 import numpy as np def generate_anchor(side_lenth=16, strides=16, ratios=[0.5,1,2], scales=[0.5,1,2]): py = side_lenth / 2 px = side_lenth / 2 anchor_base = np.zeros((len(ratios)*len(scales), 4), dtype=np.float32) for i in range(len(ratios)): for j in range(len(scales)): ...
[ "609632889@qq.com" ]
609632889@qq.com
0a3269003082b9be357f4fa26660d672cf495707
3fef5bcfab73fa25d04ab796df419e9a17cccf73
/shapely/settings/testing.py
11f6d496e15f2856510cf60a517e87869acdea57
[ "MIT" ]
permissive
mhotwagner/shapely
e0d0dee722a93a24153740d64afff5dda550bdff
e23ad452b6afaf9c20898887f206aaf309d0ab12
refs/heads/master
2021-04-28T13:34:36.418729
2018-02-22T03:24:24
2018-02-22T03:24:24
122,108,441
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
from .base import * EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'shapely-testing', 'USER': '', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '', } } MEDIA...
[ "mhotwagner@gmail.com" ]
mhotwagner@gmail.com
8a48edd00838db3d482490bf620be9f0c0c3bc0a
c805a7a8cb0e9a1d625b54683b133d1be018f406
/test/ar_viewer/src/ar_parking_ws.py
f6fb81bab84d149716ae413fb21add9f37e6f48a
[]
no_license
cjw1090/teamD
8acb581ca23be81e62e318428e59a4636d8cb6da
57a91b50c8eef1b403cc76ba6f14fdc1773ee2e3
refs/heads/master
2023-09-01T04:01:10.178809
2021-09-26T16:25:25
2021-09-26T16:25:25
397,126,125
0
0
null
null
null
null
UTF-8
Python
false
false
6,013
py
#!/usr/bin/env python #-- coding:utf-8 -- import rospy, time, cv2, math import numpy as np from xycar_msgs.msg import xycar_motor from ar_track_alvar_msgs.msg import AlvarMarkers from tf.transformations import euler_from_quaternion class AR_PARKING: arData = {"DX":0.0, "DY":0.0, "DZ":0.0, "AX":0.0, "AY":0.0, "AZ...
[ "jaewon5359@gmail.com" ]
jaewon5359@gmail.com
d4f260b817c0f2a7aede086832374c46bc4a7e24
124033d85589734e7f96d01b06e6f5b46b09171f
/smartShop/smartShop/urls.py
a368378fe3c2bbb61b45200c9d6af93a34fe4c0a
[]
no_license
jimzers/smart-shop
e4a6ed66880b9a7b20b6bb1c73c2522f68bdece8
b6d4bf8356f7d84d1b024ab9944f1770a5238e69
refs/heads/master
2020-03-21T16:28:53.874191
2018-06-26T17:47:44
2018-06-26T17:47:44
138,772,469
0
0
null
null
null
null
UTF-8
Python
false
false
961
py
"""smartShop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') C...
[ "noreply@github.com" ]
jimzers.noreply@github.com
4803551477ac4de75cd92437530060e3939647eb
5b78602dd41bb226bc97e0acc60d2ec7dff10da4
/Temur_online_magazini/django_project/store/views.py
eee7e8aa18136dbae7c2e7d4278b708df4a94789
[]
no_license
developeryuldashev/Rest_Api_boshlang-ich
fac742823442d052930526b60dc613853e9a9773
a2f1b5cc104d53504a694d26ba8f492f0743e67e
refs/heads/main
2023-08-18T23:52:40.441378
2021-09-13T03:32:29
2021-09-13T03:32:29
393,358,090
0
0
null
null
null
null
UTF-8
Python
false
false
2,150
py
from django.shortcuts import render from rest_framework import viewsets, status from rest_framework.response import Response from .models import * import json from .serializer import * class CustomerView(viewsets.ModelViewSet): queryset = Customer.objects.all() serializer_class = CustomerSerializer class Catego...
[ "81365808+developeryuldashev@users.noreply.github.com" ]
81365808+developeryuldashev@users.noreply.github.com
c6b20abb49f52dddb7535d92c669b6e97f8a32f6
3344c2cd2cf23ba9bf10a3fc2b753d4d1b0407f4
/bisection recur.py
e1d9aab0911196f62cad0372d171d39bce8297e5
[]
no_license
Scunnered/Algorithms
d9072f3a21ad60303ab3ba389dd911aad6e30ed6
6e42cce3754676527eebfe8571df0ebc123ac12c
refs/heads/master
2022-11-15T14:08:09.041412
2020-07-08T12:36:55
2020-07-08T12:36:55
276,674,466
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
def bisection_recur(n, arr, start, stop): if start > stop: return f"{n} not found in list" else: mid = (start + stop)//2 if n == arr[mid]: return f"{n} found at index: {mid}" elif n > arr[mid]: return bisection_recur(n, arr, mid+1, stop) else: ...
[ "44169316+Scunnered@users.noreply.github.com" ]
44169316+Scunnered@users.noreply.github.com
3502ebb6f5c529c64734685213e4edf5dc9c5122
7ca5d7ba135854ad49add173412da1550b7b9383
/utils/asyncRequest.py
d78a8e2e5f3e18ae21541df725c54e3be2456321
[]
no_license
13699808294/CityWeatherService
74eb09ce2dae7567906b26183066896bd52c4308
999c5ebcc59981b082bc2757ed432864a24a3f6b
refs/heads/master
2021-01-01T23:50:24.474273
2020-02-10T00:45:24
2020-02-10T00:45:24
239,398,686
0
0
null
null
null
null
UTF-8
Python
false
false
895
py
import json from json import JSONDecodeError from tornado import gen, httpclient from tornado.httputil import url_concat from utils.my_json import json_dumps @gen.coroutine def asyncTornadoRequest( url:str, params:dict=None, body:dict=None, method:str='GET', headers:dict=Non...
[ "pcl5662828@yeah.net" ]
pcl5662828@yeah.net
c6bd163f0f2a94c7198fc64414ae5763cd95662a
52b5773617a1b972a905de4d692540d26ff74926
/.history/shortes_20200507175803.py
a9ff073099d18faa3c318c80098dbeee4aa276df
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
def find_short(s): length = [] for word in s.split(): length.append(len(words)) print(sorted(length)[0])) find_short("geek for geeks")
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
170abad341cd1da0093a8830aada909a78ca01fd
6713b3538360f5b96842140e723c17bf12327420
/python/IO/StringIO和BytesIO/StringIO.py
40e183eae167c2031400bfe887c698e2c8435711
[]
no_license
1065672881/Demo
9fec96be252881806e0d01e410635df67093cf07
44907288e04916dbfaf9e7f0a45aeaa344294dfa
refs/heads/master
2021-06-20T03:50:07.310099
2021-04-25T04:28:59
2021-04-25T04:28:59
207,975,453
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
# 很多时候,数据读写不一定是文件,也可以在内存中读写。 # # StringIO顾名思义就是在内存中读写str。 # # 要把str写入StringIO,我们需要先创建一个StringIO,然后,像文件一样写入即可 from io import StringIO f = StringIO() print(f.write('hello')) # getvalue()方法用于获得写入后的字符 print(f.getvalue()) # 要读取StringIO,可以用一个str初始化StringIO,然后,像读文件一样读取 f1 = StringIO('Hello!\nhi!\nGoodBye!') while True: ...
[ "1539211463@qq.com" ]
1539211463@qq.com
99c578f487e2bd0037e536cfefcca6c42c0b7b76
e46aceea32ffde8d4ce936539500639a57de50ae
/backend/file_service/app/api/models/file_request.py
ef734b1a6170dd6beb9a344e729f63464c311faf
[]
no_license
person0709/mongo-file-storage
653e109875888eda5ae8b5f4231247c2b88d922b
7c9775ba654b0053f5cd0b51d8fe484d8fd27dcc
refs/heads/master
2023-08-08T01:18:41.039737
2021-04-15T20:21:41
2021-04-15T20:21:41
351,797,595
0
0
null
null
null
null
UTF-8
Python
false
false
1,294
py
from typing import Optional from fastapi import UploadFile, File from pydantic import BaseModel, conint class BaseFileRequest(BaseModel): pass class ReadFileInfoRequest(BaseFileRequest): user_id: Optional[str] filename: str class UploadFileRequest(BaseFileRequest): user_id: Optional[str] file...
[ "person0709@gmail.com" ]
person0709@gmail.com
0fc588a170ae240fba84f25f932460125c67de1b
48523e13b15451542aa51ece14d2b3c6c4bb1b99
/Django_apps/teacher/migrations/0009_auto_20181123_0628.py
c93e5ce5b6d06afd8659042de9aa52c532c32d35
[]
no_license
ss-8y0/SchoolSystem
c7c64695b5ed7979e2d530941f4fbd178d95ca64
63298fa495a98c45175904da2820bcfce4a582a4
refs/heads/master
2023-03-15T11:07:38.665758
2019-05-27T02:52:56
2019-05-27T02:52:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
# Generated by Django 2.1.1 on 2018-11-23 06:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('teacher', '0008_auto_20181123_0627'), ] operations = [ migrations.AlterField( model_name='class...
[ "414804000@qq.com" ]
414804000@qq.com
df1a5bbd20a618ff7e7927d732d4debac8e84041
9c29ee2d4670f9c208402dac9a4e5a890c968eec
/amona_python/user.py
528886e89d52b6d001981fb343c05ff97cbca354
[]
no_license
thelazysolutions/amona-beaucoup
d235378af8e07718e4feebd1208006e731ed8af6
455496b965979db935218b1067e6661ef9e60b90
refs/heads/main
2023-03-15T09:08:09.052333
2021-03-16T05:57:08
2021-03-16T05:57:08
348,226,522
0
0
null
null
null
null
UTF-8
Python
false
false
5,702
py
from flask import Flask, Blueprint, request from db.database import User, connection, select, delete, insert, update, metadata, and_ import inspect user = Blueprint('user', __name__, template_folder='templates') def list_to_json(list): """[summary] Appends the Column headers as Keys and returns a...
[ "noreply@github.com" ]
thelazysolutions.noreply@github.com
9e9a3a91d5637cb3fd7c408d679d60168748c261
e0ef7aaa2def3df2540d5a28c776e952e67b7ba7
/Tutorials/DSA/Stacks and Queues/bfs-and-dfs.py
b4119641761cd2c8e0ed032b86866f73016189a0
[]
no_license
stevenxchung/Python-Repo
0c92c3a6ce5da420b114ccf04d1010b9bf6b2296
e0a5196ff298381b35cabc548c93ec6aadbd42bd
refs/heads/master
2023-07-19T01:59:07.122859
2023-07-09T13:32:21
2023-07-09T13:32:21
130,524,578
0
0
null
null
null
null
UTF-8
Python
false
false
2,505
py
class Node(object): def __init__(self, data=None, left=None, right=None): self.data = data self.left = left self.right = right def printTreeBFS(self): node = self queue = [] queue.append(node) print('BFS: ', end='') while len(queue) > 0: ...
[ "stevenxchung@gmail.com" ]
stevenxchung@gmail.com
0012bf8f5f48a7557827f2b393302e9e42cb6f0e
e5a3cfa21f78259dfcf9d991f6f67f0840d9c93c
/python/4_3.py
2e1c396667bb466d9c470125402ded87a9e1e6a2
[]
no_license
Glittering/pythonLearn
ac91ed73cb615e3604d1c4bfde3692cf4efef6e3
0097b8fd5fc587a69f6c1bad95b08fe42481bf7c
refs/heads/master
2021-01-13T05:46:24.974340
2017-04-17T12:58:59
2017-04-17T12:58:59
77,099,698
0
0
null
null
null
null
UTF-8
Python
false
false
55
py
l = [95.5, 85, 59] print l[-1] print l[-2] print l[-3]
[ "zhaoshichengzhao@sina.com" ]
zhaoshichengzhao@sina.com
eea1fff018b210546b23829922b2d1d7ba4daff2
ad5c21d677d4c477418bb1362ad08db11af6a5de
/neurodiffeq/neurodiffeq/solvers.py
9588a350add657f05973d0c6c8917e5dcb7db859
[ "MIT" ]
permissive
jpe17/DeepRANSProject
89daef2c4e8da6a2fec85d8e2288d936c041cfb1
37e4be94917d6cf9c4684da7bcb19136efd500c2
refs/heads/main
2023-05-07T21:39:26.300458
2021-06-04T16:21:28
2021-06-04T16:21:28
373,889,831
0
0
null
null
null
null
UTF-8
Python
false
false
50,237
py
import torch import warnings import torch.nn as nn import inspect from inspect import signature from abc import ABC, abstractmethod from itertools import chain from copy import deepcopy from torch.optim import Adam from neurodiffeq.networks import FCNN from neurodiffeq._version_utils import deprecated_alias ...
[ "noreply@github.com" ]
jpe17.noreply@github.com
07d2df4f3477240a51978f07113b474e92912098
c9259e697bd21e948e8e171bf1654d8792d7ff1e
/config.py
2d28a3f8cfe5f7db2655eb6449ac7e98147ddb1d
[]
no_license
jakov96/imageAPI
0db07c452d884984fbab2a15fecb6de8e4ffe565
968bbc19f910ee19f8a3d7b2cb8e451e3eadbdcd
refs/heads/master
2023-05-24T04:43:06.481845
2021-06-22T07:24:15
2021-06-22T07:24:15
377,863,073
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
import os basedir = os.path.abspath(os.path.dirname(__file__)) ALLOWED_EXTENSIONS = ['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'] POSTGRES_USER = os.environ.get('POSTGRES_DB_USER') POSTGRES_PASSWORD = os.environ.get('POSTGRES_DB_PASSWORD') POSTGRES_HOST = os.environ.get('POSTGRES_DB_HOST') POSTGRES_NAME = os.environ.ge...
[ "sharygin-1996@" ]
sharygin-1996@
227d12ff393b70e128e6323523a7876c55abd958
88304cd64bd8de02d88a891f5ba6ed0e0a97b3a8
/rNN/vanillaRNN.py
1d4fbc6443d650d89779e01662be22aaa3d2b80b
[]
no_license
hyanique/ai4good-19
ce90fb34f2df8c2e12d4d75b11a86a83e6c9258e
6af9222761b818cc99d49b2bf9b9ea1fafd0b99e
refs/heads/master
2020-05-22T18:31:54.288404
2019-06-13T17:41:54
2019-06-13T17:41:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,916
py
""" A vanilla recurrent neural network created under the guide of official PyTorch tutorial. ------ Tasks: 1. Prepare and explore the data 2. Load the data 3. Create the network 4. Split the data 5. Train 6. Evaluate 7. Predict ------ Future TODOs: - modify the way sampling: training set + testing set; "enlarge" a saml...
[ "49214182+hqy06@users.noreply.github.com" ]
49214182+hqy06@users.noreply.github.com
14e8e1c947e28696678c840d8513bceb939f5193
743d1815f98f0172916b33b497f2e708a2d6d56e
/paymongo/payment.py
6c83195095288c6e49413982768a0335f270c4d7
[ "MIT" ]
permissive
rodneymandap/paymongo
f8093d9de0f382b3991cd05353335a0695223a1f
2e2b590f852abd5660eeb9ead88a66c72fc599e5
refs/heads/master
2022-04-22T09:14:08.642966
2020-04-12T14:25:26
2020-04-12T14:25:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
import requests import json from .urls import payment_url from .constants import headers class Payment(object): def __init__(self, secret_key): self.secret_key = secret_key def create(self, payload): response = requests.post(payment_url, data=json.dumps(payload), headers=headers, ...
[ "ccfiel@gmail.com" ]
ccfiel@gmail.com
fd0153746cf04c8bada79511dd974aa203f9cc73
cbd865bdba079069ba52e4bf78dd1395acb99d5b
/1.py
a79655453e5982db056825dd11ff0150eebfdfe4
[]
no_license
anhnguyendepocen/100-pythonExercises
52e72c214885e993207241b28124382365f28126
1f69184ba819b1a9d3880530aa349ae677dc1254
refs/heads/master
2022-01-17T14:00:16.390389
2019-03-23T19:22:13
2019-03-23T19:22:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
# Exercise No.1 # What will be printed? a = 2 a = 4 a = 6 print(a + a + a) # 18, because a was reassigned from 2 to 4 and finally to 6
[ "eduardessc0@hotmail.com" ]
eduardessc0@hotmail.com
f254adfa0ee3ac7fb35d5d7f39c94bc39b5ccb0c
b659defb8d31cf43a17e8a7c9af29c7ba6eba87a
/object/app01/migrations/0002_content.py
dfe6fc06842b4ed1fa7fedec267424a1355d2f3c
[]
no_license
tretea/python
40470ccbb943536152ae555b3781e164eb57814d
f7e89eeff2a1bb15be7fe20c6ae84a59a2a81226
refs/heads/master
2020-04-16T09:16:06.483724
2019-03-26T04:54:44
2019-03-26T04:54:44
165,457,705
1
0
null
null
null
null
UTF-8
Python
false
false
534
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2019-02-16 14:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app01', '0001_initial'), ] operations = [ migrations.CreateModel( ...
[ "2433469529@qq.com" ]
2433469529@qq.com
55254bdd3ffae02f34f881723d3ce6181d83bace
a8e07b79a962562c5db420acc306df4e786c931d
/Practica VI/conecta.py
c7916559b4016657dc3195af610fe82a6d8ca328
[]
no_license
m-vega/IA
e280e0457d302fb075723504a718c20b6e0ad401
c922c6b597ba985ac97e16fcf51da2e7dee9165b
refs/heads/master
2020-04-09T14:56:23.814133
2016-12-01T07:23:48
2016-12-01T07:23:48
68,161,195
0
0
null
null
null
null
UTF-8
Python
false
false
2,254
py
#!/usr/bin/python def ruta(a11,a12,b21,b22,lista,caracter): if (a11==b21): #Si estan en el mismo renglon if (a12<b22): #Si la columna de inicio esta a la izquierda de la columna final lista[a11][a12]=caracter #Coloca el caracter en la posicion en donde estas ruta(a11,a12+1,b21,b22,lista,caracter) if (a12>b...
[ "manuelvega15@hotmail.com" ]
manuelvega15@hotmail.com
4082985dbcd8f9a297eb590053254d9cef876f20
d3c5fbc501a47eedd786b0ad8f0cad48b8f58cf8
/virtual/bin/pyhtmlizer
d57e1dfac662f49130d32d531eb429fef7be4a4c
[]
no_license
lorrainekamanda/hooliganeccomerce
89b2ddde08d266289c6f1d8d50bb028b155253ac
12de98ef17454d582e216c5ffe4e826328d43f5e
refs/heads/master
2023-02-21T06:04:22.645091
2021-01-21T19:07:32
2021-01-21T19:07:32
308,988,273
0
0
null
null
null
null
UTF-8
Python
false
false
272
#!/home/user/Documents/HOOLIGAN_LLC/Ecommerce/virtual/bin/python3 # -*- coding: utf-8 -*- import re import sys from twisted.scripts.htmlizer import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "user@localhost.localdomain" ]
user@localhost.localdomain
267fe31e60e27caf1c10d47f5f02c42af1d37746
168739573a5072603363c762857c0f04139d3cb8
/python/game_states.py
ee6a85eb7b704a73df6b09b09cd5aaef52f11f11
[]
no_license
paulomenezes/roguelike
bc0c084241d868f8d096ee76a9a6dac4d5fba39b
b9d513d9400b0f743477db80774940a242bf4788
refs/heads/master
2020-03-21T06:53:58.867378
2018-09-05T21:32:44
2018-09-05T21:32:44
138,248,277
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
from enum import Enum class GameStates(Enum): PLAYERS_TURN = 1 ENEMY_TURN = 2 PLAYER_DEAD = 3 SHOW_INVENTORY = 4 DROP_INVENTORY = 5 TARGETING = 6
[ "paulo.hgmenezes@gmail.com" ]
paulo.hgmenezes@gmail.com
ae236f56ade8d3cef370de04f7956f885c2f084a
03991faf3f732d6d2b1caf106f2a835d4ded34da
/venv/Scripts/pip-script.py
80d9361ee6b7974e9c52251c0e58a13ca1c7014a
[]
no_license
18502992073/regist
ce1b262c11216f16c91c49a6e328b347cfae50a3
b92ed44aec13a2eee39649c85c280a1ed6f0066c
refs/heads/master
2020-05-29T20:17:07.977696
2019-06-15T14:23:11
2019-06-15T14:23:11
189,123,573
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
#!C:\Users\Administrator\Desktop\regist\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]...
[ "18502992073@163.com" ]
18502992073@163.com
eed59157b37eb14987ac2bf739a3e58a8d7d999c
a9a90eae727590f0ccffaa255ffeaa194309fbe9
/Codekata/vowel.py
e1dde24493390e35b649a4648c51b3f9a51750ac
[]
no_license
dhanuskarthikeyan/guvi
18c39674d3ee8e0012caef781d7905e541792174
671d64189f6039ffad8d91cab13942aafa87bf29
refs/heads/master
2020-06-03T00:07:45.041170
2019-07-08T17:39:33
2019-07-08T17:39:33
191,355,054
0
3
null
null
null
null
UTF-8
Python
false
false
142
py
ch=raw_input() vo=['a','e','i','o','u'] if ch in vo: print "Vowel" else: if ch.isalpha: print "Consonant" else: print "invalid"
[ "noreply@github.com" ]
dhanuskarthikeyan.noreply@github.com
fea248a38681abfda0a97fb1517b74aa0a16559e
766a67fff47209d383ac1024f7a18139717a0a02
/extra/pro-호텔 방 배정.py
8d9a1a1ffbe5c4b1c6b62758ac4ea5500936ae21
[]
no_license
yusokk/algorithm
7ac53393a3c29255331ecc8b57615b3c0a736279
86a6f07669ac6d5405763a3631e4e1756b663272
refs/heads/main
2023-08-07T07:27:23.940004
2021-10-05T14:30:17
2021-10-05T14:30:17
338,821,996
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
import sys sys.setrecursionlimit(10 ** 8) def find_room(room, next_dict): empty_room = room if next_dict.get(room, 0): empty_room = find_room(next_dict[room], next_dict) next_dict[room] = empty_room else: next_dict[room] = room + 1 return empty_room def solution(k, room_number...
[ "13chakbo@naver.com" ]
13chakbo@naver.com
35a73a27d7873d30fc601b958c8b0283ca9d69bb
236545daa64d5e4368b4d9c977ee99d47fb1a241
/utils/log.py
e921b0ff00a459eb5292be4bc13154ddb2262f3e
[]
no_license
yishuangxi/maicheren
ad890a842cb8d6be38338f3cf7d996fe5a44eae7
cd68b30dd394fa376a925c3edc18953140cede94
refs/heads/master
2021-05-03T16:55:37.220023
2016-10-31T23:32:34
2016-10-31T23:32:34
71,998,261
0
0
null
null
null
null
UTF-8
Python
false
false
1,816
py
# coding: utf-8 import logging from tornado.options import options class Log(object): def __init__(self, name=None): self.log = None # log format log_format = "[%(levelname)1.1s %(asctime)s] %(message)s" formatter = logging.Formatter(log_format, '%y%m%d %H:%M:%S') # consol...
[ "2546618112@qq.com" ]
2546618112@qq.com
eb7913935ba08ee8b2b313a5674f2c99aa869c51
ec62137be045f13fa410c6b336f621069a28def5
/units_03_python/PyPoll/PyPoll.py
ff7e37eceab4269e95cd75cb4505d30002b3e404
[]
no_license
TGray77/SMU_Homework
ac21c01200d814487ad226f260223a2a6cc15eb9
2c821d5621f68cd2b27c0c8b334f829bc8ea37d0
refs/heads/master
2020-07-06T04:40:30.341090
2019-10-24T01:28:12
2019-10-24T01:28:12
202,895,188
0
0
null
null
null
null
UTF-8
Python
false
false
1,850
py
#!/usr/bin/env python # coding: utf-8 # In[1]: # Import Dependencies import pandas as pd # In[2]: # File to Load pyPoll = "election_data.csv" #Create Variable for dataframe Poll_df = pd.read_csv(pyPoll) Poll_df.head() # In[3]: # Import the budget_data.csv file as a DataFrame print(Poll_df.columns) print(Po...
[ "terrence.gray@gmail.com" ]
terrence.gray@gmail.com
bbf932846b07c11cfdebb182c170c83e0a647590
525c2f4c423e7c1dc358d4df57dabb8d4350fde0
/config.py
4fed0c1772b4963b6b8465ab784e96830efcd2f9
[]
no_license
dgquintero/testing_webapp
4470fcafeae8dc947b33b22789f3ec49d7fcd951
73835072a809e22a4780e8cdb0dc28fb0ecadb68
refs/heads/master
2020-12-26T20:21:26.849542
2020-05-10T23:29:03
2020-05-10T23:29:03
237,630,266
0
0
null
2020-05-10T23:29:56
2020-02-01T14:55:57
Python
UTF-8
Python
false
false
264
py
class Config: SECRET_KEY = 'codigofacilito' class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = 'mysql://root:root@localhost/project_we_facilito' config = { 'development': DevelopmentConfig, 'default': DevelopmentConfig }
[ "dgquintero02@hotmail.com" ]
dgquintero02@hotmail.com
ea4ff949b96b77e5609b1483493095cfa93f54a1
92ff597d9880232841bb19f3160c71680939aef9
/paper/core/functions.py
93944e75cc16ed0f706ae38d8e6687a79028ac90
[]
no_license
LinkZ-J/ransomware
53416c1882abaa176bdab004a626d8fb573f68e3
c8eb5ebb34c9624adc1c5e9a34f854bca03dfaa5
refs/heads/main
2023-03-28T22:08:13.287250
2021-04-16T14:53:04
2021-04-16T14:53:04
351,756,069
0
0
null
null
null
null
UTF-8
Python
false
false
990
py
#!/usr/bin/env python # coding: utf-8 # In[1]: from datetime import datetime import time import pandas as pd # In[2]: def diff_day(t1, t2): dt1 = datetime.utcfromtimestamp(t1) dt2 = datetime.utcfromtimestamp(t2) return (dt2 - dt1).days # In[3]: # [最晚输入与最早输出天数之差, 生命周期, 活动天数, 每日最大交易次数, 传入时间的区间长度, 传...
[ "linke.ljy@alibaba-inc.com" ]
linke.ljy@alibaba-inc.com
46ab3209317636f67b60a2f4597a5f163291ba2f
cf72ee10a251ea145d8d144495387f463f985c6b
/assignment1/python files/ibm2_random_convergence_aer.py
999026e9ee8e1e2ff3ac2ab5a2a6c611bcd30e73
[ "MIT" ]
permissive
Kaleidophon/NLP2
8ea1d8b96dad3aadfbfab709ea2a270ceba2d5d6
c0fb89dda54867f043ca773a5d1ba265bc01e366
refs/heads/master
2020-03-18T15:02:53.368705
2018-05-25T15:35:44
2018-05-25T15:35:44
134,883,819
1
0
null
2018-05-25T17:04:17
2018-05-25T17:04:17
null
UTF-8
Python
false
false
10,886
py
import aer from collections import defaultdict, Counter import json from math import log2 import numpy as np from random import randint import random import progressbar import pickle import matplotlib.pyplot as plt from scipy.special import digamma, gammaln import os def read_corpus(file_name, source_language): "...
[ "tirza.soute@student.uva.nl" ]
tirza.soute@student.uva.nl
5285d9f523e97f90f7f50cb7bb87a905c0a11d68
603a3ffca8cb2376dde71dfeedcbbc6738f9c7c0
/api/migrations/0039_update_question_type_choices.py
faffc7693b4b878409f376ef1d89d49b41460a38
[]
no_license
Sarma38/know-your-planet
e7029e53a03106d87609b1faaddac1ca31a15021
9d891a21554257e963a52cc5dc1b71f39eae7c35
refs/heads/master
2023-02-04T06:02:27.604631
2020-12-25T09:41:43
2020-12-25T09:41:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
791
py
# Generated by Django 3.0.4 on 2020-06-24 07:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("api", "0038_question_hint"), ] operations = [ migrations.AlterField( model_name="question", name="type", ...
[ "raphael.odini@protonmail.com" ]
raphael.odini@protonmail.com
82cedccfaa35b19ded1347aec999489310a990d2
32a6f56e68762a9234dc79c3554b9dcf89eab404
/utilities/plug_and_play_DSP.py
39e46017592d6eaa88c40b54cbb3f86ad20dd1b7
[ "MIT" ]
permissive
davidrower/arduinoAudioModule
7a0345701c78445dd07825b0c4b2b0c94046e07d
d83286353d62a8799e2df8fa1f9b356756e22fdc
refs/heads/master
2020-04-20T18:15:03.177465
2019-02-05T06:16:15
2019-02-05T06:16:15
169,014,290
0
0
null
null
null
null
UTF-8
Python
false
false
2,226
py
#!/usr/bin/python3 """ Purpose: Provide a simple plug-and-play environment to test and debug DSP algorithms. Author: David Rower Date: Febuary 4, 2019 """ print(__doc__ + "="*80) import numpy as np import matplotlib.pyplot as plt def input_signal(t): frequency = 440 # Hz w = frequency * 2. * np.pi ...
[ "ki6pmp@gmail.com" ]
ki6pmp@gmail.com
a7c889a4588922e550faecf5e144b2959ce311c1
3c4bdf17482c15f2d559a90033fecf9450a6cbf0
/I0320091_Exercise3.10.py
408286d409fa705d4908f1b979d2aa70106382f7
[]
no_license
sasareginaa/Salsabila-Putri-Regina_I0320091_Wildan_Tugas3
e5ecb85f5299c808cc8b09c07e8b379d484da19d
fd58b0116c8a58d44ef287d2a9372c578a4c04ab
refs/heads/main
2023-03-20T10:05:21.839456
2021-03-20T00:15:02
2021-03-20T00:15:02
349,176,368
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
#Exercise 3.10 tup = ('fisika', 'kimia', 1993, 2017) print(tup) # hapus tuple dengan statement del del tup # lalu buat kembali tuple yang baru dengan elemen yang diinginkan tup = ('Bahasa', 'Literasi', 2020) print("Setelah menghapus tuple :", tup)
[ "sasaregina06@gmail.com" ]
sasaregina06@gmail.com
cd5af7ea7817ee9550ec01f854cb03eb30d76fde
0d914c4c8bd4b502c02f47f8a8d858082a678504
/Basic/validation.py
c86a9b57e18832d6388fd00bba6b15fe296fd4d7
[]
no_license
himalghimire68/python
dbdf42bb76b10a91430fedea71f7acb19bb46150
19313888c75fd66cf77b80ccf228f18c816a90eb
refs/heads/master
2020-04-19T08:34:14.970820
2019-05-06T04:29:44
2019-05-06T04:29:44
168,081,640
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
name = input("Enter your name:") while name.isalpha() == False or len(name)<3: print("Invalid name") name= input("Enter your name again:") print("Welcome",name)
[ "ghimirehimal68@gmail.com" ]
ghimirehimal68@gmail.com
c0af3f56b1468d7c5b50f6ce9e1ce0ba4c78be78
37a50cbf73b0a3dde3de0b26f306f9c962bbb912
/hiro/_version.py
b1a15980e3aef18f3fbdaa0555eee7b544b0322b
[ "MIT" ]
permissive
alisaifee/hiro
d5ced281396f9839607a255d54e661f257fd0365
f21b512d6d1867bcf7948f9c36a8ccfc20ebb353
refs/heads/master
2023-07-07T06:42:11.303543
2023-01-11T18:59:52
2023-01-11T18:59:52
14,812,997
7
4
MIT
2020-05-26T02:20:58
2013-11-30T00:55:10
Python
UTF-8
Python
false
false
23,718
py
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains th...
[ "ali@indydevs.org" ]
ali@indydevs.org
b75c3ed4caad4d5ce9288bdf4d7bfe94b5cbf4b7
338741479e6fa31c904e193c2534f7f2c83ebb03
/Item.py
7e8185c56c6e9e50f7f7b0acc47ebff3d15324aa
[]
no_license
S4more/manacube-sell-bot
2e8711b4015bc756840b4409b33d7ef53e2ae761
4855b7ee1042cf5500b9b61869b7cb2b19f94ba4
refs/heads/main
2023-07-31T18:13:53.151082
2021-08-25T14:42:42
2021-08-25T14:42:42
399,627,957
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
from enum import Enum class Item(Enum): BLAZEROD = "blaze.png" ANVIL = "anvil.png" BLAZEROD_PACK = "small.png" FIRECHARGE_PACK = "fire_charge.png" ACCEPT = "green.png"
[ "guimsc@hotmail.com" ]
guimsc@hotmail.com
fa629d06253c59fec027cbe6e8328cec5f46c1e9
8c5b359bea4029c9bed27f7fe12953b119715efd
/src/svo_util/linearalg.py
24bda75f039a5467e065da0527276828831ea628
[ "Unlicense" ]
permissive
svohara/svo_util
05f6340a909a0241f9e89a3ff4cfa4c9ccfc612a
5c2f3b4558cfce296bead1133cbcc5a0996040b4
refs/heads/master
2021-01-16T23:06:30.475517
2014-04-01T22:36:58
2014-04-01T22:36:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,424
py
''' Created on Apr 10, 2013 @author: Stephen O'Hara Utility functions relating to linear algebra computations. ''' import scipy.linalg as LA import scipy as sp def nullspace(A, atol=1e-13, rtol=0): '''Compute an approximate basis for the nullspace of A. The algorithm used by this function is based on the sing...
[ "svohara@gmail.com" ]
svohara@gmail.com
3d1b1418108a42450539841ea0815e19a0d6ce3a
cb0195d3d13b4a34daf8f4b3309f18abd91d2699
/tailorswift/messages_server.py
f9a3f24c6cd8132eff2cc4b49acb075cd1fc5d07
[]
no_license
tentacool9/tailor
fac85434b04b76585e6a9692cc6bfb318dad4ed1
5a0c20e0b9d66ef00bb5332a0dcc3328a9eb30d2
refs/heads/master
2020-08-06T20:07:58.050751
2019-10-06T14:36:29
2019-10-06T14:36:29
213,135,234
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
import socket import sys import time # Create a TCP/IP socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Connect the socket to the port where the server is listening server_address = ('localhost', 14000) print(sys.stderr, 'connecting to %s port %s' % server_address) sock.connect(server_address) try: ...
[ "root@freeipa.kifarunix.com" ]
root@freeipa.kifarunix.com
5916642504160ce3ecf54cac78484b24fcc097dc
022a62cd4adbb40aa7abd314c80289d71fb3fd40
/scraping_scripts/check_file_type.py
63a5e8ea046565332cc8216f260be8706bd1d558
[]
no_license
linbug/GeoDB
cdafd348e67fef7efd7d3cf506b41ab0a98de9db
f918e420cd7e12514067c2bd9de5f59494a48fd2
refs/heads/master
2021-01-21T13:44:14.660924
2016-05-16T12:55:16
2016-05-16T12:55:16
49,030,140
3
0
null
null
null
null
UTF-8
Python
false
false
784
py
import subprocess TIFF_DIR = "scraped_tiffs" def is_data(file_path): return "image data" not in subprocess.check_output(["file", "scraped_tiffs/" + file_path]) def get_file_paths(): return subprocess.check_output(["ls", "scraped_tiffs/"]).split('\n') # correct files look like this --> 2009-01-01.tiff: TIFF...
[ "taylorxlin@gmail.com" ]
taylorxlin@gmail.com
885f7d667aa02938316728198454aa4cfbbda645
223b40970d12fb47064005b87c16e9a0dbdaf1b1
/1.intro_to_python/26-players_bmi.py
38bc273db848eb1bdb5a33439dad096b68a955eb
[]
no_license
Ann-Geo/Datacamp-exercises
8cd9f1979cf3f90da923d7727208d389232abae8
da90f8654e535d7c8b949e33dd8a8f381deaae67
refs/heads/master
2020-07-07T17:10:36.262904
2019-11-18T01:16:40
2019-11-18T01:16:40
203,417,094
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
''' Instructions Create a numpy array from the weight_lb list with the correct units. Multiply by 0.453592 to go from pounds to kilograms. Store the resulting numpy array as np_weight_kg. Use np_height_m and np_weight_kg to calculate the BMI of each player. Use the following equation: BMI=weight(kg)/height(m)^2 Sa...
[ "noreply@github.com" ]
Ann-Geo.noreply@github.com
98461f10d55277fa564d9a25974ea9dd4935d7d5
344b654cbb8b13d683bcd2cacf522c983287a5fe
/Tuple.py
37ca53a3f59541bc34d459b6b10a780acc815daa
[]
no_license
tchaitanya2288/pyproject01
d869522584ab498008e67e81c209472ab20685c2
565660b73039db6f0e9ed986504c2f96ba674f9c
refs/heads/master
2020-03-15T13:18:21.480443
2018-06-19T18:44:47
2018-06-19T18:44:47
132,163,324
0
0
null
null
null
null
UTF-8
Python
false
false
559
py
#!/usr/bin/python tup1 = 3, 5, 2, 5, 6, 78, 4 tup2 = 'street', 'fatbob', 'iron883', 'night' tup3 = "superman", 1990, "spiderman", 1992, "batman" tup4 = () tup5 = (4,) print(tup1,type(tup1),id(tup1),len(tup1)) print(tup2,type(tup2),id(tup2),len(tup2)) print(tup3,type(tup3),id(tup3),len(tup3)) print(tup4,type(tup4),id(...
[ "tchaitanya.2288@gmail.com" ]
tchaitanya.2288@gmail.com
452a418c611316535cbae514d3a9150eed7847a6
e79772dc420306e42189f0b352caafe885f82539
/bot_toast.py
d40d1bd76e5980ef8d8ddc8086c0e4e422b3b794
[]
no_license
rima9s/toastytoastpy
42dff69ae2800071e4299bd947bb9b417fdc60a4
1e7961096888b3e7bd2729484cd93a24794fffae
refs/heads/master
2020-04-07T04:35:32.609071
2018-11-28T07:50:07
2018-11-28T07:50:07
158,063,306
0
0
null
null
null
null
UTF-8
Python
false
false
2,230
py
#python3.6 required import random import asyncio import aiohttp import json import requests from discord import Game from discord.ext.commands import Bot from bot_token import imtoken TOKEN = imtoken #client = discord.Client() BOT_PREFIX = ("?", "!") client = Bot(command_prefix=BOT_PREFIX) @client.event async def ...
[ "33207744+rima9s@users.noreply.github.com" ]
33207744+rima9s@users.noreply.github.com
ac0a158cccf53d526bb123b1e6c2758fc44413d0
80831d77ef6fc3b485be80501b73ccb30ce5e444
/networkapi/api_ip/v4/tasks/ipv6.py
4a8764bc352393c3efb984933cf873b73e444bb9
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
globocom/GloboNetworkAPI
e2fdf5a9e6070359e90801bf3e45c2d499f199c5
eb27e1d977a1c4bb1fee8fb51b8d8050c64696d9
refs/heads/master
2023-06-25T21:34:04.923940
2023-05-29T12:07:20
2023-05-29T12:07:20
22,734,387
86
74
Apache-2.0
2023-05-29T12:07:21
2014-08-07T19:47:43
Python
UTF-8
Python
false
false
2,286
py
# -*- coding: utf-8 -*- from celery.utils.log import get_task_logger from networkapi import celery_app from networkapi.api_ip import facade as facade_v3 from networkapi.api_task.classes import BaseTask from networkapi.usuario.models import Usuario logger = get_task_logger(__name__) @celery_app.task(bind=True, base...
[ "juan.augusto@ufrj.br" ]
juan.augusto@ufrj.br
6b9f54811604c518ff13778f4bc7366cb3432c46
236a75f55f8583e964161b2b9f49458d9db660e7
/Mundo 03 - Estruturas Compostas/Aula 16/075.py
7cacac447659658d91679b49b2269ef40bdeda3f
[]
no_license
phdfreitas/python
963d7f95e4b43920999efc5381b4288ea316484e
acf69fc6c002d8345906dce7d463445c1abf17b9
refs/heads/master
2020-12-01T13:11:07.004553
2020-01-20T16:51:03
2020-01-20T16:51:03
230,636,342
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
# # Created by Pedro Freitas on 14/01/2020. # n1 = int(input('\033[1;37mDigite um número: ')) n2 = int(input('\033[1;37mDigite um número: ')) n3 = int(input('\033[1;37mDigite um número: ')) n4 = int(input('\033[1;37mDigite um número: ')) tupla = (n1, n2, n3, n4) print(f'O número 9 aparece um total de {tupla.count(9)...
[ "pedro.hnq.fraga@gmail.com" ]
pedro.hnq.fraga@gmail.com
0125a633ee97cbec684aefd541baaca392c938e0
1b9bd441c500e79042c48570035071dc20bfaf44
/sources/shita mekubetzet/index_nedarim.py
886890850472a0ed2e8f3d84c6e20ea913e91dd5
[]
no_license
Sefaria/Sefaria-Data
ad2d1d38442fd68943535ebf79e2603be1d15b2b
25bf5a05bf52a344aae18075fba7d1d50eb0713a
refs/heads/master
2023-09-05T00:08:17.502329
2023-08-29T08:53:40
2023-08-29T08:53:40
5,502,765
51
52
null
2023-08-29T11:42:31
2012-08-22T00:18:38
null
UTF-8
Python
false
false
1,101
py
# -*- coding: utf-8 -*- import urllib import urllib2 from urllib2 import URLError, HTTPError import json import pdb import os import sys from bs4 import BeautifulSoup import re p = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, p) os.environ['DJANGO_SETTINGS_MODULE'] = "sefaria.settings...
[ "skaplan@brandeis.edu" ]
skaplan@brandeis.edu
1e637bdb62825237f72095f09903089644ecd5df
6d69b249a81e076d79787dd08eb8957908052052
/projects/inflection/scripts/lib/download.py
576356c64eb4e3b9a2a10e984f8b1efa594a7b14
[]
no_license
2vitalik/wiktionary
02ee1f1327c3b82fc7b4d7da12083b1431b1eb8b
8edae2f7dcf9089084c5ce7033c4fb0b454f4dfa
refs/heads/master
2023-02-06T11:28:41.554604
2023-02-05T22:49:01
2023-02-05T22:49:01
121,025,447
7
2
null
2021-10-13T17:36:32
2018-02-10T15:06:24
Lua
UTF-8
Python
false
false
2,216
py
from os.path import exists from pywikibot import NoPage from libs.utils.io import write, read from libs.utils.wikibot import load_page from projects.inflection.scripts.lib.compare_dir import compare_dir from projects.inflection.scripts.lib.files import declension_files, \ get_module_title, testcases_files, get_do...
[ "vitaliy.lyapota@anvileight.com" ]
vitaliy.lyapota@anvileight.com
911a34f2e202d9bb8138efc60668d386070310ec
cf3d198a7dc70861e912922e5fb377a02c724af8
/dashboard/migrations/0004_apitoken.py
24b5767c10cbff3043900aa524d6606f0df3f89e
[]
no_license
jgasteiz/comics
197052a74a3367a9f3010205039b3c916692d77d
400b8e057278f3089c66b611c17cb32fb93daff4
refs/heads/master
2020-12-30T13:29:30.994563
2017-09-06T23:45:42
2017-09-06T23:45:42
91,228,219
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-12 21:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dashboard', '0003_auto_20170511_0923'), ] operations = [ migrations.CreateMod...
[ "javi.manzano.oller@gmail.com" ]
javi.manzano.oller@gmail.com
886c4b096d518fc341d5b8fbdd488b1605272998
e6bb9eb0c11df4ef85f592ef2fe81207c8793128
/sns-sqs-cdk/sns_sqs_cdk/sns_sqs_cdk_stack.py
e883e079924b56a1a2e1da3a17d0faed758eefed
[ "MIT-0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
wisolee/serverless-patterns
0e43d3ba0d1de243b4ee1cb56b975d109c04ea8a
fc660f2572d689705098cd2c6bf5fb8099a86749
refs/heads/main
2023-09-05T15:29:00.091050
2021-11-20T12:09:57
2021-11-20T12:09:57
430,963,227
1
0
NOASSERTION
2021-11-23T04:52:46
2021-11-23T04:52:45
null
UTF-8
Python
false
false
2,083
py
from aws_cdk import aws_iam as iam from aws_cdk import aws_sns as sns from aws_cdk import aws_sns_subscriptions as snssubs # For consistency with other languages, `cdk` is the preferred import name for # the CDK's core module. The following line also imports it as `core` for use # with examples from the CDK Developer'...
[ "illarso@amazon.com" ]
illarso@amazon.com
0e5ce1618d98874fa2dc26aa318be0bb43482317
8c6867a4019ca8e622df216dc0e2566c51b3d396
/utils/__init__.py
12c551a4c3abe2ce6beed6641729c9d65151627d
[]
no_license
deone/apply
3cd36233bc191393b05ef32073fdaa4a3b56fb2e
724e024c1455cd193901e2f7f5a8377806ffe974
refs/heads/master
2021-01-21T04:41:33.605076
2019-05-22T12:29:13
2019-05-22T12:29:13
54,662,123
0
0
null
null
null
null
UTF-8
Python
false
false
1,790
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db.models.fields import SlugField from django.utils.translation import ugettext_lazy as _ from django import forms class AutoSlugField(SlugField): """ Auto populates itself from another field. It behaves like a regular SlugField...
[ "alwaysdeone@gmail.com" ]
alwaysdeone@gmail.com
8c4747c1ee5882480cfa2b64f66505200514615a
cb0c06f92659ca997f752a849057fc9a6b37b325
/PangrammerHelper.roboFontExt/lib/PangrammerHelper.py
d407cf9c99c68f6997a959a67a937baff8893b68
[]
no_license
frankrolf/PangrammerHelper
9130672e506484afc8df79d8788938ca6be553f8
0f2661a7fe2d9bfba4af534a95824ce333f616a6
refs/heads/master
2021-05-23T13:36:05.053677
2020-04-14T17:47:01
2020-04-14T17:47:01
253,314,509
0
0
null
null
null
null
UTF-8
Python
false
false
3,827
py
''' Pangrammer Helper By Mark Simonson Thanks to Frederik Berlaen for help with hooking up to Space Center Simple Python version of a Flash/ActionScript "app" I first did in 2003: http://www.ms-studio.com/Animation/pangrammerhelper.html Purpose is to help you write pangrams--sentences that contain all the letters of ...
[ "frankrolf@gmail.com" ]
frankrolf@gmail.com
7d566fd8b91834ae4874200fd8946801052ad9c4
5c39594af519fa0ba9c93fb74eb036f873f322dd
/P02/software/BIN/P02b.py
04dbba81974379d92cf889a1ab5776f5b696f512
[]
no_license
DobleRodriguez/Metaheuristicas
575eed653e0199921145ff4861855f04a9244c03
e2465fa2c419c6509fa3494ee4406a8bf7fc2a9f
refs/heads/master
2022-11-11T07:24:29.692921
2020-07-05T00:18:33
2020-07-05T00:18:33
243,312,453
0
0
null
null
null
null
UTF-8
Python
false
false
15,325
py
# Práctica 02.b # Técnicas de Búsqueda basadas en Poblaciones para el Problema del Agrupamiento con Restricciones # Metaheurísticas (MH) - Grupo A1 # Universidad de Granada - Grado en Ingeniería Informática - Curso 2019/2020 # Javier Rodríguez Rodríguez - @doblerodriguez import pathlib as pl import time import numpy ...
[ "javs.doblerodriguez@gmail.com" ]
javs.doblerodriguez@gmail.com
4e084a47d41a74049654f3690ad886fc9791658b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02955/s581217127.py
41731962f67c5d041874d01e9d777477cc96b20a
[]
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
644
py
import numpy as np # 約数の列挙 def make_divisors(n): divisors = set() for i in range(1, int(n ** 0.5) + 1): if n % i == 0: divisors.add(i) divisors.add(n // i) return sorted(list(divisors)) N, K, *A = map(int, open(0).read().split()) A = np.array(A, np.int64) d = make_diviso...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
384c0bd120757e033265b8db5355587e95f62cca
0d10f30ec6f22fa3557a406a6226d91eca3c0280
/frontier/feincms/module/page/migrations/0002_auto_20180120_1209.py
92ea4955da3b7059d7599152e0bf481e58b24a0f
[ "MIT" ]
permissive
mcmaxwell/frontier
11b1f1defe170806856504a3022ccf5acb558b3d
d1f59154108566c652965a43c4b999de33c05c58
refs/heads/master
2021-05-06T06:20:02.736302
2018-02-12T09:29:22
2018-02-12T09:29:22
113,828,607
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2018-01-20 12:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('page', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "alexander@Alexanders-iMac.local" ]
alexander@Alexanders-iMac.local
dfe951ebaa9f997957def347f68dca2c8ff8797b
f84a0d65297a0ca5f6f1ed1b9424386b3b837816
/pikachu.py
611de1c3853571cfe044f870694b4b152207222f
[]
no_license
hmgtech/Draw-Pikachu
1df9239b86fcecab652876b8f6fc7fbcd22ed3bf
04f7fd2f2aea96848618a69e62aaabae403456db
refs/heads/main
2023-01-14T07:46:56.101100
2020-11-21T11:36:35
2020-11-21T11:36:35
314,796,721
1
0
null
null
null
null
UTF-8
Python
false
false
11,511
py
import turtle def getPosition(x, y): turtle.setx(x) turtle.sety(y) print(x, y) class Pikachu: def __init__(self): self.t = turtle.Turtle() t = self.t t.pensize(3) t.speed(9) t.ondrag(getPosition) def noTrace_go...
[ "noreply@github.com" ]
hmgtech.noreply@github.com
368902af6f99e1499622839e81971e00c35af28c
58eaf5b25b73a5451d28158d199de56addbcdd3d
/tubers/settings.py
f03abafc60c65383299beba18685c8bcd08bb91b
[]
no_license
vanshika2900/ytubers
aba36ad8897993de1c955d7b1bfdc8cd415e2686
eb349eb2a6ba470543bef0d2f81ec4f4f98cc931
refs/heads/main
2023-07-15T08:41:41.987159
2021-09-01T04:38:22
2021-09-01T04:38:22
401,345,328
1
0
null
null
null
null
UTF-8
Python
false
false
4,057
py
""" Django settings for tubers project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib ...
[ "vanshikagupta2900@gmail.com" ]
vanshikagupta2900@gmail.com
29ebf8a71c177e98b8e7907300a0df0530c60284
acbbc13858038a7bfb2a18e7b477b775722e595b
/pe573.py
fc4548491a02a3e87f0b0c0eb2c984b88d8f2c89
[]
no_license
spbgithub/projecteuler
584f49a40b1fc8ea00e629e1832ade49ccdbd950
ee8dafe7ffae534a5657b816c5623bc8e5c62e94
refs/heads/master
2021-01-02T23:00:34.809458
2017-08-07T22:36:30
2017-08-07T22:36:30
99,438,111
0
0
null
null
null
null
UTF-8
Python
false
false
2,522
py
'''Unfair race Problem 573 n runners in very different training states want to compete in a race. Each one of them is given a different starting number k (1 <= k <= n) according to his (constant) individual racing speed being v_k=k/n. In order to give the slower runners a chance to win the race, n different starting ...
[ "seanpboyd1968@gmail.com" ]
seanpboyd1968@gmail.com
005d99e2d1cb9d0b4460f6e3fa4a93214d587df2
143f2e6af2d318152bbf5134d37fa21c4000fe0e
/test_11.py
12511cd6a847b453f66030b4c0a75f040e27e6b8
[]
no_license
zengzhgzz/pythontest
e5421d36826d11b7abecee7d60dcd69b5fb34d29
a3cc459744aa915d071eedb4884360bee585b66f
refs/heads/master
2021-06-10T14:18:21.008218
2017-02-07T16:34:14
2017-02-07T16:34:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
265
py
# -*- coding: utf-8 -*- height = 1.75 weight = 80.5 bmi =weight/height**2 if bmi<18.5: print("过轻") elif bmi<25: print("正常") elif bmi<28: print("过重") elif bmi<32: print("肥胖") else: print("严重肥胖") print("BMI:%.2f%" % bmi)
[ "increasezhg@gmai.com" ]
increasezhg@gmai.com
a0369de1729865f39cb4ee3552c69ab24c3a9398
4ba4a21fa8dfb51c62d788a45ccdf41d0460155b
/src/submain.py
b01ffcc843506498bc13799ae493941ff7db1a23
[]
no_license
vaig-2019/HackthonGrandFinal
ec655983e26143a50938ece639908dd422c376a5
87c56d3bfa27ce45b927c69b98849ba4b1ccd40d
refs/heads/master
2020-07-26T19:41:59.716407
2019-08-25T14:59:34
2019-08-25T14:59:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,609
py
import eventlet import os import json from flask import Flask, render_template from flask_socketio import SocketIO import numpy as np import io from OpenSSL import SSL, crypto from PIL import Image ####################################### # from chatbot import chatbot # from chatbot.chatbot import response,classify ####...
[ "noreply@github.com" ]
vaig-2019.noreply@github.com
d2977a5b549d836f6ba15a1a155910eff02249ba
ae6c2a6fa37613ac31b2bd3537b3276c9b333632
/server/plugins/messages/messages.py
15551365d17c42cb1824ca8e9a72fa09fd3e1319
[ "Apache-2.0" ]
permissive
salopensource/sal
435a31904eb83048c02c9fbff02bbf832835d1b4
0895106c6729d5465da5e21a810e967a73ed6e24
refs/heads/main
2023-08-03T06:53:40.142752
2023-07-28T15:51:08
2023-07-28T15:51:08
35,883,375
227
94
Apache-2.0
2023-07-28T15:51:10
2015-05-19T13:21:57
Python
UTF-8
Python
false
false
2,512
py
"""Dashboard plugin to collate common messages. This plugin displays a table of messages, sorted by message type, and counts of their occurance, with links to list views of affected machines. This plugin takes two configuration settings, set by using the Sal admin page https://<sal_root>/admin/server/salsetting to ad...
[ "sheagcraig@gmail.com" ]
sheagcraig@gmail.com
f844a5a6bd55f0597c3fbaae79edb94062663d06
32aa592fc3b7376b8fb36c0ac2245e6571fb7bdd
/MachineLearning/BargraphWithCSV.py
ffff26b270329284d6c3e263a8de26457df180fe
[]
no_license
1234567890boo/ywviktor
00063a1c58b392cb4230791a9cffced6d2864889
12b18887243e9b64fb08db4ad440c7144bdf8cbb
refs/heads/master
2022-05-14T12:43:43.422329
2022-04-30T04:24:05
2022-04-30T04:24:05
57,740,866
0
0
null
2020-06-29T00:22:12
2016-05-01T18:48:27
Python
UTF-8
Python
false
false
647
py
import matplotlib.pyplot as plt file=open("BarGraphPlots.csv", "r") import numpy as np for i in file: list=i.split(",") listlen=int(len(list)/2) xlen=list[0:listlen]#xlen is names ylen=list[listlen:]#ylen is nums ylen2=[]#for the ints so the graph works for u in ylen: ylen2.append(int(u)) bar_indexes = np....
[ "vgmeydbray@gmail.com" ]
vgmeydbray@gmail.com
2b91501ec33673680694a4ecf563a07415e8d74b
70069681bb0ec3958cf2cdd501b995828a1c9041
/datacenter/datacenter/settings.py
ed6956d80d7e5bba3e73ebba8da0c52add2c4c8b
[]
no_license
ramsdjango/djangobatch6
116a796fc72fab5f4afd7203fb58e63c7f7ecee0
b00d659a261af001f717611a6f709920aa3cf1b9
refs/heads/master
2020-03-22T04:54:31.498818
2019-11-09T10:07:47
2019-11-09T10:07:47
139,528,978
0
0
null
null
null
null
UTF-8
Python
false
false
3,140
py
""" Django settings for datacenter project. Generated by 'django-admin startproject' using Django 1.11.14. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impor...
[ "ramsanangi@gmail.com" ]
ramsanangi@gmail.com
1fc85b6a17c2f0902770e5174f6f9b7f9e4181af
c2ad8d51d315ae74ab9eb99ba730846576c95783
/app.py
e6e64bf6958208d2a5f4cfe60f67e26d1de9dd53
[]
no_license
poojarjoshi/flask
eca042f2cdaad124343dff821cda8a5dbf922470
676a47400272d5095a135d09856a2ef2044ca413
refs/heads/master
2020-05-03T04:15:02.214262
2019-03-29T14:04:51
2019-03-29T14:04:51
178,416,515
0
0
null
null
null
null
UTF-8
Python
false
false
1,491
py
from random import randint from time import strftime from flask import Flask, render_template, flash, request from wtforms import Form, TextField, TextAreaField, validators, StringField, SubmitField DEBUG = True app = Flask(__name__) app.config.from_object(__name__) app.config['SECRET_KEY'] = 'SjdnUends821Jsdl...
[ "root@POJOSHI2D1.ptcnet.ptc.com" ]
root@POJOSHI2D1.ptcnet.ptc.com
86ffdf1f99389fe30a1e8e4f8852f5b47f2c374d
954814448bdf0a556c5fe60f1b5b5d8bbff6ea7f
/models/Fournisseur.py
da51c4976526acb857040cd0a7101bf62a419898
[]
no_license
jameln/GC-TJARA
da665c1d2b8a6522285576bb9656417d4723eb5d
d694f455049e373fa0143e161eff20576354c0d3
refs/heads/master
2021-01-19T22:52:37.834672
2017-06-15T12:16:46
2017-06-15T12:16:46
88,878,538
0
0
null
null
null
null
UTF-8
Python
false
false
3,281
py
# -*- coding: utf-8 -*- from odoo import models, fields, api class Fournisseur(models.Model): _name = 'gctjara.fournisseur' _rec_name = 'name' _inherit='mail.thread' name = fields.Char('Nom', required=True) matriculefiscal = fields.Char('Matricule fiscale', required=Tr...
[ "djameloter@gmail.com" ]
djameloter@gmail.com
a137cdc63868b4f0e028f8bdf53d7d97ff9d10de
cf1ab1af581f210f0c2cbb2712ad5da8fb7904c6
/ppgan/metric/test_fid_score.py
e8abccaaf3e8c4bda5a5c51e7621014b12a0664d
[]
no_license
yxhpy/PaddleGAN
264314900ad6e3af89a80963cfaf510ddeac3cc4
ddbd89f8517aa3d826aaadf484bd8bd7edc335cc
refs/heads/master
2022-12-05T04:31:45.426468
2020-08-20T06:52:45
2020-08-20T06:52:45
289,302,768
2
0
null
null
null
null
UTF-8
Python
false
false
2,111
py
#copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # #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 l...
[ "jslict09@gmail.com" ]
jslict09@gmail.com
a66eb973ca566acdab39b7c50d501ddd46a8e84c
ec41b6d112afb14733e213a4a2eecac10bbe082a
/pydifact/segments.py
6f8d7811104b6316574d27299b2fc17fea81aee4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
qwyk/pydifact
a8450080143f8d577f87bf4cee2be727bbb12115
ccb8907e443764c3ae981b4642ef1db3b0c81c7f
refs/heads/master
2020-07-22T21:12:51.338251
2019-09-09T15:01:01
2019-09-09T15:01:01
207,329,465
0
0
MIT
2019-09-09T14:30:49
2019-09-09T14:30:49
null
UTF-8
Python
false
false
2,727
py
# Pydifact - a python edifact library # # Copyright (c) 2019 Christian González # # 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 ...
[ "christian.gonzalez@nerdocs.at" ]
christian.gonzalez@nerdocs.at
09051a8356c9f1c65f71e2ecc275947c8a977296
9f42793a562a19c61d6d999a2e88e786a6098621
/python.py
f8ab0d9add567d989d3a2317d6812af5c344935e
[]
no_license
devpatel917/MasterMind
4071fa33ceb0c41773c47332e9497ec1de3f5472
5f63d523d7dca8721c8d4ea421c18057ac170d68
refs/heads/main
2023-05-29T06:40:41.892285
2021-06-19T02:57:41
2021-06-19T02:57:41
378,310,101
0
0
null
null
null
null
UTF-8
Python
false
false
10,900
py
GamesWon=0 #Sets the initial amount of games won to 0. This is because I plan on creating the ability to play multiple games. GamesLost=0 #Same purpose as above but setting the initial amount of games lost to 0 PlayerOneGamesWon=0 #purpose is to allow multiple games on two player (this is for the 1st player) PlayerTwoG...
[ "noreply@github.com" ]
devpatel917.noreply@github.com
1676af968a59569190bcd0fe7ca485fd047bc031
193cad84f85aeca8070b716044cde5b2ec4ad92f
/app/user/serializers.py
d6bf8fc5370ed9ef2bdb04429a907b3fac68d3d8
[ "MIT" ]
permissive
pratishjage/instagram-api-clone
c0515475e1835f2b9b58a3d75f5b2d5d8dc15e68
cc8de53e1b304fc68bec27bb969e614a53b785f2
refs/heads/master
2022-11-30T06:57:09.854944
2020-08-09T07:23:16
2020-08-09T07:23:16
286,050,968
0
0
MIT
2020-08-08T16:05:34
2020-08-08T13:44:02
Python
UTF-8
Python
false
false
3,363
py
from django.contrib.auth import get_user_model from rest_framework import serializers from core.models import Post, Comment from django.core.paginator import Paginator from rest_framework.settings import api_settings class RegisterUserSerializer(serializers.ModelSerializer): """Serializer for creating a new user ...
[ "konradgalczynski07@gmail.com" ]
konradgalczynski07@gmail.com
a68abc0e74f6406a38be4cf0e2f4e37c3e52825a
3c5cea6c077a778d7088a22452c6b5d9bf62566f
/awd-lstm-lm/locked_dropout.py
75a0b104beb42de20c99b90230196587b19b2596
[ "BSD-3-Clause" ]
permissive
LGirrbach/JoeyNMT-QRNN
6961c6daf0022ea0f349ced08a1d5459ea378a4f
281dbf58282564328ea25b2553d978614881e746
refs/heads/main
2023-07-26T00:08:04.088332
2021-09-10T10:32:58
2021-09-10T10:32:58
405,043,067
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
import torch import torch.nn as nn class LockedDropout(nn.Module): def __init__(self): super().__init__() def forward(self, x, dropout=0.5): if not self.training or not dropout: return x m = x.data.new(1, x.size(1), x.size(2)).bernoulli_(1 - dropout) mask = m / (1 -...
[ "girrbach@cl.uni-heidelberg.de" ]
girrbach@cl.uni-heidelberg.de
194c11aa6fdf3b79321ff5fcf7d39296f08faa0e
6b16458a0c80613a66c251511462e7a7d440970e
/packages/pyright-internal/src/tests/samples/genericTypes70.py
1129c1c2d934c4772b7f5fb75d150e24927d72e2
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
ikamensh/pyright
3bbbb2cf1a1bdbbecb89ef389036756f47ef7114
5ea620ad2008de57dcac720a84674bdb712bffc4
refs/heads/main
2023-08-26T05:54:43.660282
2021-10-30T16:35:06
2021-10-30T16:35:06
422,952,836
0
0
NOASSERTION
2021-10-30T17:52:03
2021-10-30T17:52:02
null
UTF-8
Python
false
false
851
py
# This sample tests the case where a generic class has a constructor that # supplies the type arguments via a callable which is itself generic. from typing import Callable, Generic, Literal, Sequence, TypeVar T = TypeVar("T") V = TypeVar("V", bound=object) V_co = TypeVar("V_co", covariant=True) U = TypeVar("U", boun...
[ "erictr@microsoft.com" ]
erictr@microsoft.com
310c7d75a510f1deace2c9b811ef8d148fb15f85
c9fde4576216a22e8d5711bbe97adda1aafa2f08
/model-optimizer/mo/front/kaldi/extractors/reshape.py
cf47f67aba1d0db321e7d41c4f288aadffedfec0
[ "Apache-2.0" ]
permissive
dliang0406/dldt
c703d6a837de3f996528fc8a9543f9530b23342c
d9b10abcebafe8b10ba81e09e433de7a366c072c
refs/heads/2018
2020-04-03T08:24:47.723353
2018-10-29T07:58:05
2018-10-29T07:58:05
155,132,108
3
1
Apache-2.0
2019-10-10T08:39:46
2018-10-29T01:03:54
C++
UTF-8
Python
false
false
2,856
py
""" Copyright (c) 2018 Intel Corporation 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 wri...
[ "openvino_pushbot@intel.com" ]
openvino_pushbot@intel.com