blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4453fb58e33a80b6a1510a8e4e5c633e06b4cdc2 | e36985669a2b068dfb3e43b7f5870dc114bb158b | /python_code/dataExtraction.py | 7722d25b7d06ff6e71446c9ef08cf4b970e527d8 | [] | no_license | assassint2017/Data-extraction-UI | b3f0f43dc48e12c0da158bdb4a7c2c9dd5d92ab5 | d7e1b97100ad97b334f03b0fbf09c2a506339b1c | refs/heads/master | 2020-04-11T06:18:50.417214 | 2018-12-21T12:38:47 | 2018-12-21T12:38:47 | 161,577,841 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | """
数据提取代码
"""
import datetime
import pandas as pd
from numpy import nan
#-------------------------需要设置的部分-------------------------------
# 设定csv文件路径 路径中不要出现中文
# csvDir = 'C:\\Users\\14595\\Desktop\\2018HB example .csv.gz'
# 设定提取csv文件路径 路径中不要出现中文
# extDir = 'C:\\Users\\14595\\Desktop\\ext.csv'
# 各哨点数量汇总文件路径 路径中不要出... | [
"noreply@github.com"
] | assassint2017.noreply@github.com |
99bb440e3d91a657af83b6b5699a5675b2c46f7c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03136/s297842517.py | a2a6230496234027046d6691748a5f445af9dd64 | [] | 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 | 163 | py | n = int(input())
a = list(map(int, input().split()))
b = [0]*n
b = sorted(a)
c = 0
for i in range(n-1):
c += b[i]
if c>b[n-1]:
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d141035695650deff0fc75c74efaa0d6e66cd50c | b1c3529a652041dfb4a5b9d7684695f1e3cb8148 | /settings/settings_50cm_open_4K.py | 0f4dc7c1b6d4092502901684794f75535adce7d6 | [] | no_license | ksyoung/load_and_sensitivity | bc51ef7c146f652fa4b567414ed215d30af2d3cc | aa291c8d25a7c23ba79327718c53a34d15b350ab | refs/heads/master | 2021-09-22T08:31:30.527291 | 2021-09-15T20:51:15 | 2021-09-15T20:51:15 | 99,721,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,934 | py | # -*- coding: utf-8 -*-
import os
import sys
from pylab import sqrt
from pywtl.core.wtl_ConvertUtils import convert_squid
import pywtl.common.analysis.noise.analysis.NoisePred as NP
import pywtl.common.analysis.noise.analysis.ParameterLib as PL
import numpy as np
class Class(object):
def __init__(self, **kwargs):
... | [
"kyoung@astro.umn.edu"
] | kyoung@astro.umn.edu |
d10e49aa112d5e0cc239ab1fe98b7aa0083f8b76 | 40d5799cc031d234a1b35b7f57cd9784d01ab090 | /manage.py | f5f8b98b330815659267578a77ecc90c6e757a1d | [] | no_license | ramsaicharan/movielisting | bc7641c3b3df4a79cefa7647f798466ce0a302e1 | 76c84acb1f84a4c0e09db74a2643ea31104c4cfb | refs/heads/master | 2020-06-25T13:49:06.216843 | 2020-06-03T06:31:43 | 2020-06-03T06:31:43 | 199,326,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'imdb.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djang... | [
"noreply@github.com"
] | ramsaicharan.noreply@github.com |
29e3ba05a591d264cfda6485ad4b17677323be16 | 4fff448b20b92a929e105448f0ff01ffda5d3073 | /GrabadoraDeVoz/Python/expandContractions.py | 6fa43d58201b09bb8440d890b9bcbcb177092256 | [] | no_license | wsebastiangroves/SampleWork | 9869b6417f3a2ac5e2d4114fd12d96191e6da9b9 | b324e88effc35dbbf339c5356505d355d6ae368c | refs/heads/master | 2020-04-28T07:09:42.669086 | 2020-03-10T16:40:59 | 2020-03-10T16:40:59 | 175,082,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,451 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Source: http://stackoverflow.com/questions/19790188/expanding-english-language-contractions-in-python
"""
import re
cList = {
"ain't": "am not",
"aren't": "are not",
"can't": "cannot",
"can't've": "cannot have",
"'cause": "because",
"could've": "could have... | [
"wsebastiangroves@gmail.com"
] | wsebastiangroves@gmail.com |
c630daa51e38e135e196be1383a6a6557486aa06 | a68159363fb88fcd105f3a305d1ee5df445a832c | /letters_1000_numbers_problem-17.py | 3304126eed5e9f6fab90ce65c2e180a52f130c1f | [] | no_license | lokendra7512/Project-Euler-Solutions | 8a6c8647cfdbfd71adddee9b86ee127fe1e69709 | 23a467af7807e154c9985bfebbe08f60b9418c4d | refs/heads/master | 2022-12-24T07:18:18.025811 | 2020-09-30T19:05:11 | 2020-09-30T19:05:11 | 300,028,993 | 0 | 0 | null | 2020-09-30T19:03:47 | 2020-09-30T19:03:47 | null | UTF-8 | Python | false | false | 815 | py | '''
The way the program works
'''
letters ={1: 3, 2: 3, 3: 5, 4: 4, 5: 4, 6: 3, 7: 5, 8: 5, 9: 4, 10: 3, 11: 6, 12: 6, 13:8, 14: 8, 15: 7, 16: 7, 17: 9, 18: 8, 19: 8, 20: 6, 30: 6, 40: 5, 50: 5, 60: 5, 70: 7, 80: 6, 90: 6, 100: 7, 1000: 8}
sums = 0
for i in xrange(1,1001):
if i == 1000:
sums = sums + 11 ... | [
"abdulapopoola@gmail.com"
] | abdulapopoola@gmail.com |
d6f17420ce83772b4d31a9811f043fc6f9240f6b | 8e30082f46128316d78504c5efa13319726a52fd | /django/salon/polls/models.py | 6927af7977f957aa28db99a135854209e9a702bf | [] | no_license | vbitjp/Python | 8d08bcaa8fac6348798bbc199b6cc965b163c81c | abfe098ab2152ded87d121c42c1df5ca37c7e837 | refs/heads/master | 2021-09-12T17:56:28.100117 | 2018-04-19T14:28:41 | 2018-04-19T14:28:41 | 106,935,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def was_published_recently(self):
... | [
"7ywrxsxrw7z571g@vbit.jp"
] | 7ywrxsxrw7z571g@vbit.jp |
a182c56ebe7dd48855684d7cf5c5f4884bd9b717 | 9e4290b8e96c260852fd9b0e624835e7e24e422d | /0007.py | ed7dc336e0ca9463dabb9bc3d6f2a9af8c511509 | [] | no_license | emojipeach/euler_problems_python | 3d7b2bbb70b3f8b3e155751ca1f343417a2172fe | 39d0e1969ea9ac9f466845cab4e255efa2f41bd9 | refs/heads/master | 2020-03-21T23:19:46.185326 | 2018-07-05T21:45:39 | 2018-07-05T21:45:39 | 139,180,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | def is_prime(test_number):
if test_number == 1:
return False
elif test_number < 4:
return True
elif test_number % 2 == 0:
return False
else:
x = int(test_number ** (1/2)) + 1
for i in range(3, x, 2):
if test_number % i == 0:
return False
return True
def next_prime(primes):
x = max(primes)
for... | [
"37852121+emojipeach@users.noreply.github.com"
] | 37852121+emojipeach@users.noreply.github.com |
5187524c1cb90f930855028a542fe8b09194d3b4 | a5898ba24399d8a05cb8a730e10400126fb04c3a | /ToDoApp/urls.py | b023ed47ea1b03001f8a266d49de0a9564a0531a | [] | no_license | Adnan232/Django-WebApp | ae50507082be98c7ede02cb9fbad2ac93524bb05 | e0ffcfef21396f96751efb9b39d917895f38ae52 | refs/heads/master | 2023-09-04T01:30:07.148630 | 2021-10-10T17:22:15 | 2021-10-10T17:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """TodoProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"adnanhabib120@gmail.com"
] | adnanhabib120@gmail.com |
d5c4cac739d6c9ad1a641938dda9973c912c84c5 | e944d288093c9234c3a6a2a76ffe4e3c9b236cf1 | /annotation_utils/coco/structs/__init__.py | 66e257d06be64002c0bce0580e1d58fd6c768ce7 | [
"MIT"
] | permissive | darwinharianto/annotation_utils | 598b043345790580e99f34f159b9612b9b1bcd52 | 1cbdadaa28ff945e705dd7b806dda395e32ab23c | refs/heads/master | 2022-04-27T01:20:10.738778 | 2020-04-27T09:23:57 | 2020-04-27T09:23:57 | 255,525,300 | 0 | 0 | MIT | 2020-04-27T09:23:59 | 2020-04-14T06:10:57 | Python | UTF-8 | Python | false | false | 245 | py | from .objects import COCO_Info, COCO_License, COCO_Image, \
COCO_Annotation, COCO_Category
from .handlers import COCO_License_Handler, COCO_Image_Handler, \
COCO_Annotation_Handler, COCO_Category_Handler
from .dataset import COCO_Dataset | [
"mork.clayton3@gmail.com"
] | mork.clayton3@gmail.com |
3d842f277956e7f09b7d38e83fd8d63cafd6e1cc | cc954deeb8178398a99be10c72d0d6b150801a4e | /log_bolt/bolt_kafka_registe.py | b9e47a8b219759261c816d36ed7f89ae835da4ba | [] | no_license | Wstc2013/log_bolt | 486b3d645b9f37bdf7010178169dcd35e29b51b8 | f48473c0559072f6e5673631d31c2ba47c9c3450 | refs/heads/master | 2021-01-25T13:24:07.933630 | 2018-03-02T10:26:48 | 2018-03-02T10:26:48 | 123,565,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | #-*-coding:utf8-*-
#!/usr/bin/env python
from __future__ import absolute_import
from pyleus.storm import SimpleBolt
from module.registehandlelogic import RegisteHandleLogic
import logging
import time
import configparser
config = configparser.ConfigParser()
config.read("config/config.ini",encoding='utf-8')
logdir = conf... | [
"visen@enjoybcg.com"
] | visen@enjoybcg.com |
a1f02577c0adfa04d1396283c0f946dca6808285 | 77ee1f677ab2ececb821a11be128b76bcf0e8d6f | /electrum_mona/gui/qt/lightning_dialog.py | 1d709aed9935b2c01bce4e473c6c8bdd4f25e9d9 | [
"MIT"
] | permissive | zcore-dev/electrum-mona | c74e6142a0f34721be70dba68d524ae9ce03179c | 2beb0c9c7794e8b03d1725bae41ee8b792c57275 | refs/heads/master | 2020-08-22T15:32:55.604727 | 2019-10-21T22:56:29 | 2019-10-21T22:56:29 | 216,427,159 | 0 | 0 | MIT | 2019-10-20T21:03:48 | 2019-10-20T21:03:48 | null | UTF-8 | Python | false | false | 3,658 | py | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 thomasv@gitorious
#
# 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,
# includi... | [
"root@DESKTOP-97LL1PI.localdomain"
] | root@DESKTOP-97LL1PI.localdomain |
b7bf9bf3508f0c9b91f0a398d44aa26c34edd8f1 | fdd78a985cde644ac362caaaa8e270f7177a6e16 | /python/spreadsheet_month.py | 0a292a31eeeef4cdb15e5044c586c89d8c613a69 | [] | no_license | andwxu/hackgt | d2980a4c67ab9c50e14783e6b8c22d1bbd584668 | a147fc546c1080b42df26caebbb530268d12c632 | refs/heads/master | 2022-12-31T00:29:56.239822 | 2020-10-18T11:41:30 | 2020-10-18T11:41:30 | 304,765,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,433 | py | import gspread
from oauth2client.service_account import ServiceAccountCredentials
from matplotlib import pyplot as plt
from matplotlib import ticker as tick
from datetime import datetime, timezone, timedelta, date
import numpy as np
import random
import re
import mpld3
# use creds to create a client to interact with ... | [
"46511636+aidandonelan@users.noreply.github.com"
] | 46511636+aidandonelan@users.noreply.github.com |
e44d807c8b5f173e32fde9820ee02ff6100abd9b | 259b81f2a6d02947cd95c1fbdac4ea182592d331 | /API wrappers/Python/examples/mySE python.py | b0aff4b8e7f0dd249fd2f9c17246f26a7d8d3f7b | [
"MIT"
] | permissive | Arthurdw/mySE | 58ee59c982266b1d4ff0a53e01b882820125a71f | 0100c2a4e8fd5006e170ca8a2890080ed96d0153 | refs/heads/master | 2020-12-08T20:48:54.380742 | 2020-05-03T11:56:29 | 2020-05-03T11:56:29 | 233,091,191 | 0 | 0 | MIT | 2020-01-16T20:06:44 | 2020-01-10T16:52:39 | Python | UTF-8 | Python | false | false | 966 | py | from mySE import mySE
from time import sleep
local_url, server_secret, mail = "http://127.0.0.1:5000/", "mySecureServerPassword", "mail@mail.mail"
# Generate a token:
# try:
mySE.gen_token(local_url, server_secret, mail)
# except mySE.error.UnauthorizedError:
# pass
# token = mySe.gen_token(local_url, mail)
# F... | [
"arthur.dewitte@gmail.com"
] | arthur.dewitte@gmail.com |
aad525f6d2bb1919a03e49948c4f34fe56ee5e66 | 8e6e3f7fc065548cb25825632c49d83964bf9f30 | /Network/icmp_arp_nmap.py | d0ae2b9a0e1de85c750dab6d970b376a9474716c | [] | no_license | raviwithu/Scripts | 1d13c9f368ed9ab966fda434d022acd9f71d3f1d | cba34cdceee121ce696bc1b30faf19a1fc126eda | refs/heads/master | 2021-01-22T02:13:18.252626 | 2018-05-03T01:53:16 | 2018-05-03T01:53:16 | 92,339,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py |
#!/usr/bin/env python
import logging
import subprocess
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
logging.getLogger("scapy.interactive").setLevel(logging.ERROR)
logging.getLogger("scapy.loading").setLevel(logging.ERROR)
from scapy.all import *
ans, unans = sr(IP(dst = "192.168.0.2-25") / ICMP(... | [
"miravishankar@yahoo.co.in"
] | miravishankar@yahoo.co.in |
79c9ac4f57d7c75785c6e238248c49297bcd93e6 | a40d5c5cd0fcc2410e3200f40f6a79f7201b0193 | /kubernetes/client/models/v1beta1_custom_resource_column_definition.py | f844f995b1a28c3f912663019e6dab34922ac0e7 | [
"Apache-2.0"
] | permissive | Unacademy/kubernetes-client | 662cdc2b9fe6df43301e32427e48b1b2715773ca | b7f9c740a82b4585478d052c8032495cdeb3b331 | refs/heads/master | 2023-06-24T05:57:27.226613 | 2022-12-14T16:29:58 | 2022-12-14T16:29:58 | 181,669,794 | 0 | 0 | Apache-2.0 | 2023-06-20T13:05:37 | 2019-04-16T10:43:37 | Python | UTF-8 | Python | false | false | 8,689 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"haoweic@google.com"
] | haoweic@google.com |
8174036a334ba82c11c5dbd9fa16642607155e86 | 06ad8f591b7b68d98d6f422e12c447c8453e1476 | /data/cifar.py | 6d323fbf99da68c37831849f7b128d2ca2b91676 | [
"MIT"
] | permissive | stormraiser/disunknown | 4713a177bfa187ea918cd8dbe2f8d325b9a0db5d | 194cc01851fe26bc2f0ed87cdcc238c801f4a333 | refs/heads/main | 2023-08-29T08:42:45.019039 | 2021-10-13T06:33:23 | 2021-10-13T06:33:23 | 406,071,664 | 20 | 2 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import torch, torchvision
class CIFAR10(torchvision.datasets.CIFAR10):
def __init__(self, root, part, labeled_factors, transform):
super().__init__(root, part == 'train', transform = transform, download = True)
if len(labeled_factors) == 0:
self.has_label = False
self.nclass = []
self.class_freq = []
... | [
"stormraiser2012@gmail.com"
] | stormraiser2012@gmail.com |
fc9b0c269aecdb44c4736fe6b9da03555f7de8e3 | 31622dd16963b459ac6eec71fcf54e4d243ac773 | /edu_sharing_client/models/license.py | 073b8ab7d8a99b38a95e9902e2a8e4a23e2cd02e | [] | no_license | torsten-simon/oeh-search-etl | 95e6e92698a97c98ef9d5b02076edcf993736d6f | eacdadcd8af169cb54629db0d2d46a5616f854a6 | refs/heads/master | 2023-04-16T05:08:41.194239 | 2020-11-16T09:51:59 | 2020-11-16T09:51:59 | 318,169,232 | 0 | 0 | null | 2023-04-03T23:04:46 | 2020-12-03T11:20:44 | null | UTF-8 | Python | false | false | 3,484 | py | # coding: utf-8
"""
edu-sharing Repository REST API
The public restful API of the edu-sharing repository. # noqa: E501
OpenAPI spec version: 1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class License(object):
"... | [
"simon@edu-sharing.net"
] | simon@edu-sharing.net |
181dff928bcc29942a15804141960b142b348397 | 0183da495028d9d341641791355e62ba36d3f698 | /PersonDetection/main.py | 9b885d355bd53b10b03072db8adf438bb1ef2c69 | [] | no_license | Joshua1225/PersonSearchEngine | 11bde400a39d555e00a363ca25b4b8721165e3fb | fdda6bcd6bfaf6cea736d19bb559ba94e359e41b | refs/heads/main | 2023-03-07T04:58:18.604258 | 2020-12-12T18:03:15 | 2020-12-12T18:03:15 | 317,192,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from Detector import PedestrianDetector, PedestrianDetectionResultDTO
import cv2
if __name__ == '__main__':
detector = PedestrianDetector('./weights/epoches_112.pth', cuda=True, cpu=False)
img = cv2.imread('./images/1.jpg')
pdrDTO = detector.detect(img)
img_list = pdrDTO.get_img_list()
for i, img i... | [
"noreply@github.com"
] | Joshua1225.noreply@github.com |
91b20ea47434b099c8ae47c90abfab4af64dad34 | 89cd8b77ad5171c336cc60b2133fe6468a6cb53f | /Module01_CZ/day1_basics/04-代码/day1/20_重要演示__________变量的定义.py | f4f737892f50ed4f9b166828e1067e18cd29954f | [
"MIT"
] | permissive | fenglihanxiao/Python | 75178f6b6b0c53345e1ed54226ea645216572d6c | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | refs/heads/master | 2021-05-23T18:49:20.656433 | 2020-04-29T01:06:21 | 2020-04-29T01:06:21 | 253,199,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | """
使用变量保存个人信息:
姓名:张传智
性别:男
年龄:21
电话:18800008888
"""
| [
"fenglihanxiao@qq.com"
] | fenglihanxiao@qq.com |
0289b4bcf761b49c33907f4f98a3ded9f257d4fa | 429a8441bb9730dcf0e33fedcb5f3672a731b3e7 | /xero_python/accounting/models/tax_rate.py | 3105e7e85477aa221bd8d79e66b609249374e58e | [
"MIT"
] | permissive | gregsteelxinja/xero-python | 1a26ec3b05ea156dd6848f2ec313c72e9f39b0e2 | d0473ba91099de3464b3dffa377df5a11ad95afc | refs/heads/master | 2022-12-16T10:54:11.424971 | 2020-09-01T01:00:23 | 2020-09-01T01:00:23 | 291,526,551 | 0 | 0 | null | 2020-08-30T18:16:48 | 2020-08-30T18:16:48 | null | UTF-8 | Python | false | false | 14,802 | py | # coding: utf-8
"""
Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 2.2.14
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_pyth... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
6346c55ed5ae3d16b8b3bcf214eb2f9ab0feed02 | beb5c6eda82d6ed5d1999f74c115c30f9440feb0 | /setup.py | 269b77f96dc7dc8b0749146096b1b6eb644bf458 | [
"Apache-2.0"
] | permissive | fpgaco/hyperscalar | 5aadcb4fd5e47439b00169f65cfdfce3d02563ed | 44edb9005ed0117ecf14bfd161741ecf23c41279 | refs/heads/master | 2020-07-30T11:14:28.785400 | 2019-09-22T21:08:43 | 2019-09-22T21:08:43 | 210,209,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | #!/usr/bin/env python3
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE.txt') as f:
license = f.read()
setup(
name='hyperscalar',
version='0.0.1',
description='Next generation type',
keywords=['hyperscalar'],
url='https://gith... | [
"ktrabing@acm.org"
] | ktrabing@acm.org |
d2edaeec8fdcd119849df0305b0cb817b3235ebe | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py/orbited/proxy.py | 4c0e80c1f97cce4bb513bffb9be5583f06edd599 | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ba1b92cda51cc0fbe137994a7b857befa45aa64d45009e4fb34ed1df78d0f3fc
size 5501
| [
"tushar239@gmail.com"
] | tushar239@gmail.com |
27be4e80e15ee4738b6c1266e451404d6934047c | 0445b05dc0c1a6b92cd4dde04fafd8acddc2365c | /libs/nrgreader.py | 7a2baf3346816a09ee00824d20953e2a6634a4ae | [] | no_license | ananchev/energymeter | a7842f7c31173aa332460c51b972ecf9321f0bb5 | 133e4ba75a14adb8d45ae5d5500850ee9c8fefb5 | refs/heads/main | 2023-08-21T10:59:06.721270 | 2021-10-17T10:31:52 | 2021-10-17T10:31:52 | 305,511,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,976 | py | # Generic imports
import json # used when storing nrg readings into local json
from datetime import datetime # used to capture time when meter readings are stored
import os # used for file operations
# Establish logging
from libs.logger import logger, LOG_FILE
logger = logger.getChild('nrgreader')
# Pymodbus object
f... | [
"ananchev@gmail.com"
] | ananchev@gmail.com |
f6d477f59ee4c2505b13d5f5b674da4640d5ea4f | eb9f05bee11d64f299b3d7c47a2812958a718e6e | /3_neural-network/3_5/2.py | 368db922d7f6ea1cccc22e5e6c07b102926219e9 | [] | no_license | araki-ka/DeepLearning | c85730f5094bd8c5e9184aeb39074fc4dbbdbfc3 | 8b359e89f5f266f80e82b571cdd9f6491cbaf331 | refs/heads/main | 2022-08-21T17:27:42.861542 | 2017-10-11T05:09:59 | 2017-10-11T05:09:59 | 96,615,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# 3.5.2 ソフトマックス関数の実装上の注意
import numpy as np
a = np.array([1010, 1000, 990])
print(np.exp(a) / np.sum(np.exp(a)))
c = np.max(a)
print(a - c)
print(np.exp(a - c) / np.sum(np.exp(a - c)))
| [
"araki-ka@legendapl.com"
] | araki-ka@legendapl.com |
4a4d2c2a023f48bedef21da3b002bc22be2cf986 | 42b16c3a421e59949441edc7c2153fef8ac690eb | /Admin.py | 073ca76fa3a8ef4d75a360602cd9692bddb8af52 | [] | no_license | mastermobin/DatabaseProject | 9a7179921e2878adeba820eb662a7609084a3667 | bc80290b7d1c132763554dd5b910c9b9075d99f2 | refs/heads/master | 2020-12-24T00:13:10.429887 | 2020-01-30T22:46:06 | 2020-01-30T22:46:06 | 237,320,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,426 | py | import mysql.connector
from tabulate import tabulate
def showQuery(mydb, query, h):
mycursor = mydb.cursor()
mycursor.execute(query)
myresult = mycursor.fetchall()
if mycursor.rowcount != 0:
print(tabulate(myresult, headers=h, tablefmt='psql'))
else:
print("No Result")
def run(I... | [
"mvtikm@gmail.com"
] | mvtikm@gmail.com |
204bf46a6fc6a8243ffaadcf8dc901323591f909 | ad3e2940d52d6a213d4fc20a7a68a984e6a420d5 | /diffusion_relaxation.py | 93a3c27514ff8c16c1cec02b23a8eaea73e93e3b | [] | no_license | alex21347/Temperature-Diffusion | 3639aac6ef52b9ffa1fff2b563bd4b9d2470f2dd | e93b8c25e3f4ed2cc52bdb00ce3a3645bfed48ff | refs/heads/main | 2023-01-06T00:25:09.294736 | 2020-10-31T16:16:37 | 2020-10-31T16:16:37 | 304,435,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | #Simulating and Analysing the Method of Relaxation for 2D Dirichlet Problem
import numpy as np
from tqdm import tqdm
from matplotlib import pyplot as plt
from matplotlib import cm
import time
from matplotlib.ticker import LinearLocator, FormatStrFormatter
from mpl_toolkits.mplot3d import Axes3D
#setting up ... | [
"noreply@github.com"
] | alex21347.noreply@github.com |
7c1091c1be6fe52aee062e9522b51fcd54fa5f0e | 526019f16e76a4afd84d25ea90fc39ffda285e34 | /hw/HW03/code/HW03_utils.py | acdc2809d4a0fad12464afff2a0c335605d22bed | [] | no_license | mitchnegus/CS289_mnegus | ac6a3cdd633bf5fda0fefbdf75c014eeaddb0f48 | 6111a029818762ca3fac6e6097d2a2c6a610aaf3 | refs/heads/master | 2021-09-05T00:31:52.637848 | 2018-01-23T04:55:38 | 2018-01-23T04:55:38 | 80,948,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #HW03_utils.py
#-----------------------------------------
# Python module for CS289A HW03
#-----------------------------------------
#-----------------------------------------
import math
import numpy as np
from scipy import io as spio
def loaddata(shortpath,_DATA_DIR,dictkey):
#Load data
data_dict =... | [
"mitchell.negus.57@gmail.com"
] | mitchell.negus.57@gmail.com |
8f55ee77bb2e6f0f501c6aae41fe353d5946e7ed | 48f092fd8191b0218df8605dc7125e526764e59e | /NestedLoops/venv/Scripts/pip-script.py | 1f860a6a2d99a98a14ef6f35a31d2812b31131f3 | [] | no_license | LalityaSawant/Python-Projects | 2edb430c094fe3d6b4e706cc61f885aa07e24dff | b142708256e26867f09b3063f5f3fffa305ec496 | refs/heads/master | 2020-05-01T03:00:26.012301 | 2019-03-23T22:09:33 | 2019-03-23T22:09:33 | 177,235,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!C:\Users\lsawant\Documents\Learning\Python\PycharmProjects\NestedLoops\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script... | [
"lalitya.sawant@gmail.com"
] | lalitya.sawant@gmail.com |
816e4e22dde6bfeb7a7f9ef1ae675c0be4bd67a6 | ed291071decb3514b7f9f321e68fd57fb3c11ebc | /Python/168_excel-sheet-column-title.py | 573dae55e7016bdb1c10939d8dbf0ccfb6ce97db | [] | no_license | antonylu/leetcode2 | d7b1681cc9477bb01619be26461634edbb85a4e5 | a57282895fb213b68e5d81db301903721a92d80f | refs/heads/master | 2021-11-25T01:30:56.358849 | 2021-11-19T08:32:12 | 2021-11-19T08:32:12 | 130,139,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | """
https://leetcode.com/problems/excel-sheet-column-title/description/
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
...
Example 1:
Input: 1
Output: "A"
Example 2:
In... | [
"antony_lu@compal.com"
] | antony_lu@compal.com |
10cefb112ffc8a72f2ddcd285ff5b6f871ecf497 | 41523dd4871e8ed1043d2b3ddf73417fcbdde209 | /day16/map函数.py | 7a19700236dcf557aafb01afb59951babcaa5d8d | [] | no_license | WayneChen1994/Python1805 | 2aa1c611f8902b8373b8c9a4e06354c25f8826d6 | a168cd3b7749afc326ec4326db413378fd3677d5 | refs/heads/master | 2020-03-30T23:19:00.773288 | 2018-11-02T10:47:40 | 2018-11-02T10:47:40 | 151,697,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:Wayne
'''
map函数的功能:
将传入的函数依次作用于序列中的每一个对象,
然后将其作用的结果作为一个迭代器返回
'''
'''
需求:将列表中的["1", "2", "3", "4", "5"]
转为[1, 2, 3, 4, 5],写成一个函数。
'''
def func(alist):
return [int(x) for x in alist]
list1 = ["1", "2", "3", "4", "5"]
print(list1)
print(func(list1))
res =... | [
"waynechen1994@163.com"
] | waynechen1994@163.com |
db10d84562d00aeab527245c8df21ab7c305aea4 | 8bd977f6f59799bfc8aad9e1605ba1afe637e275 | /myComputerVisonLib.py | f4a3a4d702252bbf1d35cd7eba47ed9480accf69 | [] | no_license | wuethral/Automated_masking | 0453634cf64f83e977a23163e06dfa2c1cf27eb9 | f2852ca2848b2f60660db674d718f5c6b3ba391d | refs/heads/master | 2023-08-15T00:09:57.479507 | 2021-10-01T11:56:45 | 2021-10-01T11:56:45 | 412,448,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,905 | py | import cv2 as cv
import numpy as np
from PIL import Image
from numpy import unique
from numpy import where
from sklearn.datasets import make_classification
from sklearn.cluster import DBSCAN
from matplotlib import pyplot
def canny_edge_det(img_nr, img):
# Convert to graycsale
img_gray = cv.cvtColor(img, cv.COL... | [
"wuethral@ethz.ch"
] | wuethral@ethz.ch |
fd98027336d2b8b9faa6def3fed6e1c34db9988d | 5e3d34e2025831896851d9b11dfac81869252de0 | /p9/pyth_triplet.py | 0df4b399e858734011ec8428e144b53927286c6c | [] | no_license | sanjkm/ProjectEuler | b522fc51907821aeeffbb64c016502aa89f6db22 | 6f1300232846e4303e6c4516e11c506e64f10fd9 | refs/heads/master | 2020-04-12T06:30:10.928298 | 2017-01-12T22:43:45 | 2017-01-12T22:43:45 | 65,332,463 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # pyth_triplet.py
from operator import mul
def check_combo (a, b, c):
if c**2 == (a**2 + b**2):
return 1
return 0
def gen_possible_ab_combos (c, total_sum):
low_start_point = (total_sum - c) / 2
high_start_point = total_sum - c - low_start_point
a, b = low_start_point, high_start_point
... | [
"sanjay.menon@gmail.com"
] | sanjay.menon@gmail.com |
7b21a9e794befbf4b2268bb9e211d4e4aff762d6 | 53d03e48ca88e05fb134be8a2d3dda9b6079216e | /fabfile.py | ca82fcc42642e2e6fffd7cd3c79a84a7357a5b66 | [] | no_license | myungseokang/djangogirls | 3b9e18acb7b7747ca04c32dbebb070fc15b88966 | dd7f82131de66e0732553af2b1e3c170a6f44b5f | refs/heads/master | 2021-06-18T09:59:14.143057 | 2017-07-03T00:16:00 | 2017-07-03T00:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 6,054 | py | from fabric.contrib.files import append, exists, sed, put
from fabric.api import env, local, run, sudo
import random
import os
import json
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# deploy.json파일을 불러와 envs변수에 저장합니다.
with open(os.pa... | [
"l3opold7@gmail.com"
] | l3opold7@gmail.com |
a611fe6a9f40e4b853cdbfceb4e2125ec01b9c3d | 550cfce0e688ffbba8290ece0baf5751d20016ea | /exts.py | 7b042d99f614f1a09c08a6b6987c0f83177c9d1a | [] | no_license | thunderwin/firstweb | 0c32169ea1b2081cbe6b5019ba9cdb3993c93bd2 | 53f509a7044bd3174980e6f4f74a813e5b2d9f44 | refs/heads/master | 2021-07-21T02:22:00.243247 | 2017-10-31T11:28:42 | 2017-10-31T11:28:42 | 108,497,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | #encoding: utf-8
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
| [
"nathan@MacBook-Pro.local"
] | nathan@MacBook-Pro.local |
a06d0667553909c1cab686643fbcb795d207c11e | 648ed90628cd26d8a3d3941793100a8d5c309be8 | /my_blog/settings.py | 09929503a0adf0075496e708e183ea88b73a3ca4 | [
"MIT"
] | permissive | Chancj/my_blog | 03200f62cf826558e2a074cb0f0eb578bbe2644c | 988831904d2bd800afa332a1b4113143e1aaeccd | refs/heads/master | 2022-12-29T11:23:24.973262 | 2020-04-29T16:19:24 | 2020-04-29T16:19:24 | 251,649,792 | 0 | 0 | null | 2022-12-08T03:56:34 | 2020-03-31T15:39:55 | JavaScript | UTF-8 | Python | false | false | 7,717 | py | """
Django settings for my_blog project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"1049669825@qq.com"
] | 1049669825@qq.com |
9c1ce6e5363f9d645e9a14dc86c5acf6f135c7dc | 1dc0f0d007c060c74de33bddd4cdcd26ecdf05e0 | /stancode_Projects/boggle_game_solver/boggle.py | 505e63ff243f47684b3699ff04cd8ee5cc7b9451 | [
"MIT"
] | permissive | hoholarry/sc-projects | 178e0f93f6dc6b6cda4be17403fa74c84d0d8e36 | 4bd45e52b8c13a35d38d30e6583d242480dabff4 | refs/heads/main | 2023-03-06T06:58:29.741353 | 2021-02-22T15:16:03 | 2021-02-22T15:16:03 | 341,227,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,724 | py | import copy
class Graph(object):
def __init__(self, board):
self.board = board
self.letters = {}
self.adj_list = {}
directions = [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)]
for i in range(4):
for j in range(4):
if board[... | [
"noreply@github.com"
] | hoholarry.noreply@github.com |
38acb8c211006d953999bf2dfc3090c9f9313ea5 | ee27325f6a3e6a2d1f5e004aa60f5974ad864ae9 | /contrib/python/plotly/py3/plotly/validators/contourcarpet/__init__.py | 09c50961c6d1e808ad2e54b12da590314f6b6cc2 | [
"Apache-2.0",
"MIT"
] | permissive | alvinahmadov/catboost | f32d2b16be9db7439e429c88feb5676de842fc89 | a6e0caa4779b31199f535cf43b09879d7c653abe | refs/heads/master | 2023-06-12T19:29:52.028508 | 2023-05-11T18:33:03 | 2023-05-11T18:33:03 | 202,584,937 | 0 | 0 | Apache-2.0 | 2019-08-15T17:35:23 | 2019-08-15T17:35:23 | null | UTF-8 | Python | false | false | 4,621 | py | import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._zsrc import ZsrcValidator
from ._zmin import ZminValidator
from ._zmid import ZmidValidator
from ._zmax import ZmaxValidator
from ._zauto import ZautoValidator
from ._z import ZValidator
from .... | [
"akhropov@yandex-team.com"
] | akhropov@yandex-team.com |
dc188b288e92680cb9d0fa42245dc94996074db1 | d3178cc89ce03eb68e6b5dd7b4d99cb36d68a6a4 | /nets/vgg/__init__.py | 24afea7e7bb181f07e703fcbdb3fb4cbda1ef8c7 | [
"Unlicense"
] | permissive | jumpsnack/SOA_DORN_TF | 829debc37584d6140396fcfa58ced1612fb3c0d7 | 33814467e9135036abf28f2da19c5984c8744089 | refs/heads/master | 2021-11-27T14:10:44.364498 | 2019-01-29T07:15:15 | 2019-01-29T07:15:15 | 161,754,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | from ._vgg import * | [
"kir0302@gmail.com"
] | kir0302@gmail.com |
c484b176ad74bbf3c3d2c6945058b3f6fa039104 | 1978a9455159b7c2f3286e0ad602652bc5277ffa | /exercises/05_basic_scripts/task_5_2b.py | 942e752a8c38f07e0e2a188e036ef30e8781ecff | [] | no_license | fortredux/py_net_eng | 338fd7a80debbeda55b5915dbfba4f5577279ef0 | 61cf0b2a355d519c58bc9f2b59d7e5d224922890 | refs/heads/master | 2020-12-03T17:32:53.598813 | 2020-04-08T20:55:45 | 2020-04-08T20:55:45 | 231,409,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # -*- coding: utf-8 -*-
'''
Задание 5.2b
Преобразовать скрипт из задания 5.2a таким образом,
чтобы сеть/маска не запрашивались у пользователя,
а передавались как аргумент скрипту.
Ограничение: Все задания надо выполнять используя только пройденные темы.
'''
from sys import argv
ip = str(argv[1])
mask = int(argv[2])... | [
"fortunaredux@protonmail.com"
] | fortunaredux@protonmail.com |
1b3085c6b0e6c23be8cc76bd570aa2586dae7368 | 7e7b0a0c32998c13ed9ecb5e4f57ea3b8f6f2644 | /histo.py | eda41b3531ed474468be080ad59e8d11fea32b46 | [
"MIT"
] | permissive | Pacific01/openPDF | f37a8485060ec4f46ca69436befa269f53b62ff4 | a32f9aeab540fb6cfb7b268a905c74f33211d5ca | refs/heads/master | 2020-12-24T07:11:22.490281 | 2016-12-13T10:48:37 | 2016-12-13T10:48:37 | 73,378,180 | 0 | 0 | null | 2016-12-12T23:51:39 | 2016-11-10T12:02:49 | Python | UTF-8 | Python | false | false | 1,593 | py | # -*- coding: utf-8 -*-
import json
from os import system, remove
with open('questions.json') as data_file:
questions = json.load(data_file)
with open('answers.json') as data_file:
answers = json.load(data_file)
questions = questions['questions']
answers = answers['answers']
for question in questions:
#Generar e... | [
"cod.al.pro@gmail.com"
] | cod.al.pro@gmail.com |
df2614ce95235a5ab406bf91e83a7e1c6f3a910e | 0dbeaea56fc3e178894db1ac993bb2f2f7b44829 | /docs/exercises/fwi.py | ad205314073398ebced78c7922ab22a541bf0156 | [] | no_license | simonlegrand/pysit | 1bcc4fc4df225bc09f26a77751f447e3635774c8 | 1fb1a80839ceebef12a8d71aa9c295b65b08bac4 | refs/heads/master | 2021-06-30T11:43:54.909080 | 2021-03-15T13:06:17 | 2021-03-15T13:06:17 | 218,262,289 | 1 | 0 | null | 2019-10-29T10:34:57 | 2019-10-29T10:34:56 | null | UTF-8 | Python | false | false | 5,387 | py | import numpy as np
import matplotlib.pyplot as plt
from models import basic_model
config = dict()
##############################################################################
# Problem 1.1
def ricker(t, config):
nu0 = config['nu0']
# implementation goes here
return w
# Configure source wavelet
co... | [
"rhewett@vt.edu"
] | rhewett@vt.edu |
30515edd35063c0b0ce56bb0b4cca5653ebf3076 | ee0d795e2874b30ba1edd568f9f2f9483854f0a7 | /Run/wsgi.py | 6c10531c680a9fc6ce3a27c9d0eba2d6ba5a2cc0 | [
"Apache-2.0"
] | permissive | CodeMaxx/Run-Backend | 91e65e5633263cf9913c814ac0985e8063679b33 | 880610ea473d0a0cde60a89064e987d92842dde3 | refs/heads/master | 2021-01-19T16:59:34.281976 | 2017-04-27T19:53:48 | 2017-04-27T19:53:48 | 86,144,226 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | """
WSGI config for Run project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS... | [
"akash.trehan123@gmail.com"
] | akash.trehan123@gmail.com |
b7852190aea462adb905c42a666ee25b1de79558 | ecaffc075b41e36457423b810903e74280d7af75 | /manage.py | abc9e3310be544a334973b156ca82af408f28585 | [] | no_license | MounishKesavan/Myproject2 | c4d601869bc98ef78556b36c0de1412525c09d0d | b5f6dda8e4f46a2805e0bf73ef157255188cbe5f | refs/heads/main | 2023-05-26T17:39:21.955239 | 2021-06-05T13:55:19 | 2021-06-05T13:55:19 | 374,117,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "resumeparser.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. En... | [
"noreply@github.com"
] | MounishKesavan.noreply@github.com |
e965fc7f54e9b3311e96c8e2934c07c82278a4d5 | 34d075680d450ef1ef74dd0c284f917f7b655c33 | /lyremd/main.py | 7bba0a4b39b56c992e5252b622642adff3db4ba5 | [
"MIT"
] | permissive | nao159/PycharmProjects | b252e837b44d79f630a964374c6dec48ec795966 | c3abf404c9281ce89fdcd5d032220a1d5886d8bc | refs/heads/main | 2023-07-27T14:05:26.711901 | 2021-09-09T07:09:39 | 2021-09-09T07:09:39 | 398,906,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,916 | py | from os import path
from threading import Thread
from time import sleep
from mido import MidiFile
import argparse
import keyboard as kbd
from utils import find_best_shift, midi_play_filter
octave_interval = 12
c3_pitch = 48
c4_pitch = 60
c5_pitch = 72
b5_pitch = 83
keytable = "z?x?cv?b?n?m" + "a?s?df?g?h?j" + "q?w?er?... | [
"79338207+nao159@users.noreply.github.com"
] | 79338207+nao159@users.noreply.github.com |
9b4fcb23bad9aefa541e7185a3d4e8f29c97b4b5 | d0e2ef0fb0d9a0c3c9d5656273e8eae6787faee7 | /app.py | 0dc0cdd8295a03c72a0c122a7be8a0403b5210f0 | [] | no_license | HemendraTripathi/demo2 | fe1ba499c914f5077f05f92b1b2aff2dd4e330a4 | f5ec3be456ecad37017052795c2fe72b78eab4cf | refs/heads/master | 2022-12-21T13:18:04.327276 | 2020-09-23T04:59:31 | 2020-09-23T04:59:31 | 297,856,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | #Shree Ganesh#
from bottle import (run, post, response, request as bottle_request)
import os,sqlite3,requests,json,sys,datetime
from xlsxwriter.workbook import Workbook
from ver import verify_input
from time import sleep
from get_user import get_user
from get_message import get_message
from send_message import send_mes... | [
"noreply@github.com"
] | HemendraTripathi.noreply@github.com |
fe91480c51ec9d9e11d8cbf4c07c3dbad667f8a4 | f2f21c643d1f5459253989e7cdba85c064cca8ce | /adding_bootstarp/adding_bootstarp/wsgi.py | b02fcd063eb36aa3dc1d03dc3104e13e690ebccf | [] | no_license | NiteshTyagi/django_tutorial | 342decea7532f1efb200b9f45e4123c581aad43f | 3353f0d2907a00f43e1faee2b97abd9af66ca08f | refs/heads/master | 2022-03-05T19:46:50.642154 | 2022-03-01T04:53:14 | 2022-03-01T04:53:14 | 205,629,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for adding_bootstarp 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"nitesh.tyagi.cs.2015@miet.ac.in"
] | nitesh.tyagi.cs.2015@miet.ac.in |
dcf9b0a27f7c7e49b3ad9e8d7887b134117d129a | 76a6d509f366cc31febd05020a42da3024586407 | /app/recipe/serializers.py | 74e46eb63137f3678b98be3637ba359129a3648c | [
"MIT"
] | permissive | dipodaimary/recipe-app-api | 52e5a6d378d177bcf50e4db54e9eacc22f57ab84 | fbf2a452b2fed41570bb5444a202284ab1d1a03f | refs/heads/main | 2023-01-28T21:44:21.319328 | 2020-11-30T15:12:54 | 2020-11-30T15:12:54 | 316,896,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | from rest_framework import serializers
from core.models import Tag, Ingredient, Recipe
class TagSerializer(serializers.ModelSerializer):
"""Serializer for tag objects"""
class Meta:
model = Tag
fields = ('id', 'name')
read_only_fields = ('id',)
class IngredientSerializer(serializers... | [
"dipodaimary@gmail.com"
] | dipodaimary@gmail.com |
cafb55372742d6d435053197b309733edbd35a30 | aa257d7c9c99d66ec3723a145dbc672c688ca84a | /example | a90ef91fa95bd2484fbda6fd43f70b4be7614399 | [
"MIT"
] | permissive | unix-example-command/example | ae286828475193d7e8df57b4d76062fbfc53ccc7 | def114584c09a3119793ea3efdf5491c80a4e858 | refs/heads/master | 2020-06-04T04:00:13.992711 | 2015-07-12T14:09:06 | 2015-07-12T14:09:06 | 33,952,491 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,849 | #!/usr/bin/env python2.7
# Copyright (c) 2015 Sampo Raudaskoski, Samu Kallio
#
# 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
# t... | [
"samu@samukallio.net"
] | samu@samukallio.net | |
5b11a4092b62457332b80ede0b087786272aa1cf | 66580ac2680bd9060f6a4e852da52f45177e9721 | /test/functional/p2p_leak.py | 45620addb94fc3d51265c9c9c10c386dade7bddb | [
"MIT"
] | permissive | bitcoinpaythrough-project/bitcoinpaythrough | 459cae4b1805e3f966a870e820a9aab933b6a7a0 | 2aabe233abf16ec4e41be4c0528204b7a479dbd3 | refs/heads/master | 2022-11-18T17:04:30.689139 | 2020-07-16T23:42:34 | 2020-07-16T23:42:34 | 279,911,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,310 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test message sending before handshake completion.
A node should never send anything other than VERSION... | [
"bitcoinpaythrough@gmail.com"
] | bitcoinpaythrough@gmail.com |
60e00547cea5608007f9512ca8f4505dd0388455 | 52ffc8be8e69745864f1a45992d27c94ca51cffe | /Admin/views.py | b460fb713762b1d8b21cbf2665ae329d00885cd2 | [] | no_license | Kaviya-M12/College-Enquiry-Chatbot | 137c6222798c32a6c34e2dcd67e4120d4c57ad9c | 4c0700ae6bd9b52fe80cd7ac238be239bf0b9de5 | refs/heads/master | 2023-04-09T00:32:45.470227 | 2021-04-16T11:11:55 | 2021-04-16T11:11:55 | 350,371,938 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | from django.shortcuts import render
# Create your views here.
# from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.models import User, auth
#from .models import Users
# Create your views here.
def Adminlogin(request):
if request.method== 'POST':
Mai... | [
"kaviyamadesh4@gmail.com"
] | kaviyamadesh4@gmail.com |
acb80ba6822833f25d966e362da91eaa8b931efc | 1df048bc8092f333c53f4e345c729c40ba2612c5 | /count_list_4.py | 1b5da491e36d1c5ef606f85dc241e68e374beef1 | [] | no_license | saipreeti1999/python_prog | 58e3e5b5dab356fb3755b3abf36529aa475923be | 8bdb773c29e0d8b2beb3a16dd4692485b4726b79 | refs/heads/master | 2020-06-28T09:15:46.787982 | 2019-08-06T07:03:18 | 2019-08-06T07:03:18 | 200,196,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | def count_list4(num):
count=0
for i in num:
if i==4:
count+=1
return count
print(count_list4([1,4,6,7,4]))
print(count_list4([1,4,6,4,7,4]))
| [
"noreply@github.com"
] | saipreeti1999.noreply@github.com |
079662848033b228ee09c8bb812f1c80e52e4cb0 | 1f68b6f9f55afaa7cb32df262f4fe0864472da05 | /leetcode(多线程,DP,贪心,SQL)/二刷DP与贪心LeetCode/回溯/51. N皇后/solution.py | 761c902fdb433e6e6f0765ec8b75578496b26cb9 | [] | no_license | faker-hong/testOne | 7c4496362cb5495c25c640076102fe0704f8552f | 768edc4a5526c8972fec66c6a71a38c0b24a1451 | refs/heads/master | 2022-12-04T14:47:53.614685 | 2020-10-30T03:17:50 | 2020-10-30T03:17:50 | 196,514,862 | 1 | 0 | null | 2022-11-22T02:43:32 | 2019-07-12T05:35:09 | Python | UTF-8 | Python | false | false | 1,100 | py | class Solution(object):
def solveNQueens(self, n):
"""
:type n: int
:rtype: List[List[str]]
"""
# 判断放置的皇后位置与之前的是否冲突
def is_valid(row, col, track):
# 因为每一次的row不同,所以不用判断是否在同一行
if col in track: # 是否在同一列
return False
... | [
"42666723+hongcheng97@users.noreply.github.com"
] | 42666723+hongcheng97@users.noreply.github.com |
355ba71678f6bb9ec2076002fa247bff0631c87c | 7fe92cf2077e83e13d6a496ec84788bd71713d21 | /exp3/test_submodule_package/add.py | 6b07b462f69e1b50f226a867c8b5a983d644a4c3 | [] | no_license | loveu3000s/learnPython | 91546b3712deebdade1b87c0fb7691c70ad77397 | 80f7cd70708e96015e552311d843a2960654ce77 | refs/heads/main | 2023-06-12T23:08:44.040645 | 2021-05-30T04:38:18 | 2021-05-30T04:38:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | '''
Description:
Version: 2.0
Author: xuchaoxin
Date: 2021-04-13 11:36:54
LastEditors: xuchaoxin
LastEditTime: 2021-04-13 11:41:48
'''
def add_func(a, b):
return a+b
| [
"838808930@qq.com"
] | 838808930@qq.com |
42cc5b26ee8c1863e26fc185667574ef48c9737f | 4208b2260aac638af6169872c87e923195f0dd11 | /piopencvsandbox/motion_detector.py | 50de871a827c73202fafbdd551baa1d0e6d188ae | [] | no_license | cjore/pibox | be85b9e996b78392c20f267016fdd8349fe68583 | 62acdd791b1fb0bbcf209ad825e69f3d3ec1a64b | refs/heads/master | 2020-12-29T02:32:33.165913 | 2017-04-06T20:22:28 | 2017-04-06T20:22:28 | 49,876,246 | 0 | 0 | null | 2016-01-19T20:45:57 | 2016-01-18T12:44:59 | null | UTF-8 | Python | false | false | 2,897 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Import the necessary packages
import argparse
import datetime
import imutils
from imutils.video import FPS
import time
import cv2
# Construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-v", "--video", help="path to the video... | [
"chris.jore@gmail.com"
] | chris.jore@gmail.com |
e066f05d3207fd56a8422bdeb6707bf4ebecfb1b | 76f3b6dd64acdf60ff464f5c0fe9b4f4151358e0 | /pymnn/pip_package/MNN/tools/mnn_fb/Transpose.py | 557f49e65400b320cf2ced36f4306e9ee1dad48e | [
"Apache-2.0"
] | permissive | qipengwang/Melon | 33ce5d4b683af70215f73b82a7b9c15ffd7706d9 | 10c9d71cdc609a290bfdd09296db6af3913bb461 | refs/heads/main | 2023-08-31T17:44:28.797075 | 2023-08-17T14:24:59 | 2023-08-17T14:24:59 | 486,278,764 | 22 | 2 | null | 2022-04-27T16:54:48 | 2022-04-27T16:54:47 | null | UTF-8 | Python | false | false | 899 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: MNN
import flatbuffers
class Transpose(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsTranspose(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = Transpose(... | [
"861026685@qq.com"
] | 861026685@qq.com |
54e34c038c98d02ef48734b8a1b6e55a21b24693 | 32128ef01b5ca9d3c634bdffd5a870be12f23a01 | /main.py | 446a2fe5b0a39de49c9331cd568b2a0ac7a477e9 | [] | no_license | geminiwayne/cloud_assignment | 4efa2ed28800853ac28c92ed546aad6d94fcd361 | f187e86d3bf4227b270db155ea192b02a3e31737 | refs/heads/master | 2021-01-20T01:52:35.861799 | 2017-05-14T16:04:27 | 2017-05-14T16:04:27 | 89,339,596 | 2 | 3 | null | 2018-02-03T04:01:27 | 2017-04-25T09:00:07 | Python | UTF-8 | Python | false | false | 1,474 | py | #################################
#Team 4 #
#Melbourne,Sydney,Brisbane,Perth#
#Dong Wang 773504 #
#Danping Zeng 777691 #
#Jia Zhen 732355 #
#Jinghan Liang 732329 #
#Sixue Yang 722804 #
#################################
max_volum=0
im... | [
"wayne@127.0.0.1 my_computer.local"
] | wayne@127.0.0.1 my_computer.local |
7b7f8627897a44c4bb4219ff4d136d59fc8e6391 | 7b218983611d96c653f99c3e2c7b2bb74091ac9e | /splitNSP.py | b5d2cdb1b990a4bdf5b9473e40cda1c86e5dcbb9 | [
"Unlicense"
] | permissive | doctorpangloss/splitNSP | 02de827b20b6c949967f38e090e75808674fc577 | 15941e8204b73a4261034e39d9d5939c97394261 | refs/heads/master | 2020-04-25T07:12:43.167583 | 2019-02-26T00:24:15 | 2019-02-26T00:24:15 | 172,607,074 | 0 | 0 | Unlicense | 2019-02-26T00:23:41 | 2019-02-26T00:22:27 | Python | UTF-8 | Python | false | false | 5,634 | py | #!/usr/bin/env python3
# Author: AnalogMan
# Modified Date: 2018-10-08
# Purpose: Splits Nintendo Switch files into parts for installation on FAT32
import os
import argparse
import shutil
import os.path
import subprocess
from datetime import datetime
startTime = datetime.now()
splitSize = 0xFFFF0000 # 4,294,901,760 ... | [
"noreply@github.com"
] | doctorpangloss.noreply@github.com |
056bd5bc3d264e0caaf44ba1301141d9a63a1857 | 4786222ae4c6302c26e63d0281c12bdf6b1c9420 | /permute.py | 2e3a66ff4bb1de27aaadbc0c7ed1549a13fa0136 | [] | no_license | Kaviprakash156/hunterset2 | 423da05270209e089150a9165ac9d89e7a31e46f | 182790c3edc66123fab398e79778e37fce5ad0c3 | refs/heads/master | 2021-01-24T22:21:42.944448 | 2018-02-28T12:25:06 | 2018-02-28T12:25:06 | 123,279,510 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | def toString(List):
return ''.join(List)
def permute(a, l, r):
if l==r:
print (toString(a))
else:
for i in range(l,r+1):
a[l], a[i] = a[i], a[l]
permute(a, l+1, r)
a[l], a[i] = a[i], a[l]
string = "kavi"
n = len(string)
a = list(string)
permute(a, 0, n-1)
| [
"noreply@github.com"
] | Kaviprakash156.noreply@github.com |
a78cee9826237d0c0568190586b4b45200cc39e1 | a49bab6a5a7df245c0eea181cd041ae344cc018e | /server/settings/dev.py | 3c192fb5410716bedffcfd9d31060f4382539528 | [] | no_license | ego/pyblog | 0a52d2cd2835cd9a3607b55075ad985b960c8b40 | 28b6a9066a60b71bbec9f7b37ef40794e8b5e2aa | refs/heads/master | 2023-04-02T16:37:00.922916 | 2020-11-07T23:58:55 | 2020-11-07T23:58:55 | 123,491,870 | 0 | 0 | null | 2021-04-16T20:36:49 | 2018-03-01T21:01:04 | Python | UTF-8 | Python | false | false | 456 | py | # Dev settings
from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'blog_db',
'USER': 'blog_user',
'PASSWORD': 'blog_passwd',
'HOST': 'localhost',
'PORT': '5432',
}
}
CACHES = {
'default': {
'BA... | [
"0x7c48@gmail.com"
] | 0x7c48@gmail.com |
5c9012668e6fd64b0cc6875fd32e3144b136c72f | 1c538a3c3a0c218bab4137bcefe650fdfc8be252 | /api_server/assign_resources.py | ae6b08bbdbf8fe0adec08e7da5694a0c4e525383 | [] | no_license | Team-LZZZ/CarPooling-Server | b0070a41c6eea51232179d25ba7552d57b41d7bc | 658b9f82a81d2f6a0cae9d563c93a57f75b2809e | refs/heads/master | 2021-08-29T11:48:39.094390 | 2017-12-13T21:42:47 | 2017-12-13T21:42:47 | 108,786,782 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from . import api
from .api_resources.UserLogin import UserLogin
from .api_resources.UserSettings import UserSettings
from .api_resources.UserRegister import UserRegister
from .api_resources.CarPools import CarPools
from .api_resources.GetToken import GetToken
from .api_resources.Reservations import Reservations
from ... | [
"zhouyou66666@gmail.com"
] | zhouyou66666@gmail.com |
6de3f25bbada06daec113eef9872b1c48f03e8b2 | ac46ba236c54af834ef1d37870fd6147b9b606e3 | /lesson_6/insert.py | 63defec9dcb5a5177ee284cd5c3690357e20fb56 | [] | no_license | Loosper/algorithms | 55c929022501a32a65ef94a3b98e3bbb0c152eaa | 7c435a5c2ef50f59b292d907854e86c07698b4c3 | refs/heads/master | 2021-05-15T09:30:27.632163 | 2018-02-10T15:59:49 | 2018-02-10T15:59:49 | 108,136,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | """
Insert Node at a specific position in a linked list
head input could be None as well for empty list
Node is defined as
class Node(object):
def __init__(self, data=None, next_node=None):
self.data = data
self.next = next_node
return back the head of the linked list in the below method.
"""
... | [
"boian4o1@gmail.com"
] | boian4o1@gmail.com |
b60a557139a95f213d84afedb6641a8bf0a4412d | ccfd551d677652ba1cf716fd514fac454faefd51 | /minify.py | 9b534e07816dee71eaff7a652906e9e8bc30f3f4 | [] | no_license | miguel-acevedo/CssMinify | 3b7ce385773eb15ec2167a1300945c5e20dfc5ec | 10e1ce9f059277544c48fd4955923a270e67fd51 | refs/heads/master | 2021-01-15T11:03:27.273605 | 2017-08-07T19:18:05 | 2017-08-07T19:18:05 | 99,608,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import os
import requests
css = 'https://cssminifier.com/raw' #Calls the minifier url
js = 'https://javascript-minifier.com/raw'
def minifyCode(url, path):
print(path)
data = {'input': open(path, 'rb').read()} # Packs the css file to a data variable to be sent off to the minifier.
response = requests.post(... | [
"acevedomiguel@outlook.com"
] | acevedomiguel@outlook.com |
1821540a5a6f992cc99d9431e91eda6bcd4b6a05 | c8ef42b8fa355d62bb6c06c61c54baf00e4c4c90 | /KDD99/kddMultiClass.py | a8c5c7192bf7ad6d92d28446d80cef682697cb86 | [] | no_license | Gci04/LightweightAutoencoderApproachForAnomalyDetection | 0d90517bcb34765a686be6e30aea3f5a4a529d73 | a474218b786e45448bde36ef5cb549cae82a326a | refs/heads/master | 2022-04-27T04:12:20.376461 | 2020-04-07T12:24:46 | 2020-04-07T12:24:46 | 187,182,098 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | import numpy as np
import pandas as pd
np.random.seed(43)
import os, sys, keras, pickle, warnings
from scipy import stats
from time import time
import tensorflow as tf
from keras.layers import Input, Dense, Dropout
from keras.models import Model
from keras.callbacks import TensorBoard
from keras import optimizers, re... | [
"gcinzoe04@gmail.com"
] | gcinzoe04@gmail.com |
bcaf8c92849c381fc6a341c20a4a37be90d0e991 | 6b948d8110b910aed1989e940f194dcee5e3ba51 | /538_HW1_113166835/model.py | 5d4531881ef1d484979c3a06b653b5e6779f15a5 | [] | no_license | SriramVithala/NLP | 3589e07b7e5348c5418723cb74f780d607cb8932 | ca61b9a9923f816312070e9a5d7b4a98ba66ffd5 | refs/heads/main | 2023-08-18T10:48:37.557680 | 2021-09-27T03:08:06 | 2021-09-27T03:08:06 | 409,264,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,081 | py | """
author-gh: @adithya8
editor-gh: ykl7
"""
import math
import numpy as np
from numpy.core.fromnumeric import size
from numpy.core.records import array
import torch
import torch.nn as nn
sigmoid = lambda x: 1/(1 + torch.exp(-x))
class WordVec(nn.Module):
def __init__(self, V, embedding_dim, loss_func, counts)... | [
"noreply@github.com"
] | SriramVithala.noreply@github.com |
b4cef5c07bfaf8de55ea028da11403d750c273ac | 90e2412b0216f27285a98f4ee713e8f819910a6f | /manage.py | b9cc74196e0c0be51010c293aecec323f3a66509 | [] | no_license | rsikri/LetsCarpool | 504edbf1125c736a51896865b7e137ac8b9d3d82 | 60c6aa010d2308844fb168612201e6659f04fc37 | refs/heads/master | 2021-04-09T11:42:40.011302 | 2018-03-16T21:30:00 | 2018-03-16T21:30:00 | 125,552,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ShareYourRide.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"richasikri@Richas-MacBook-Pro.local"
] | richasikri@Richas-MacBook-Pro.local |
b5f9ff772b6e5342461769fd2d62a492d7654f0d | d1b9fc59b69ffbfe988ea308f9005df12b50d4cd | /downloader.py | 93d08ab725bf40a751a2c400bc9e0325988b1be2 | [] | no_license | jakemuncada/xkcd-crawler | 98b9287fe213dbcbf17c64d9433bcf641369db8e | 7f0788585d41dfb13321290c654856de16123113 | refs/heads/master | 2023-03-28T02:55:03.221505 | 2021-04-01T00:32:17 | 2021-04-01T00:32:17 | 337,334,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,376 | py | """
Provides high-level functions for fetching stuff from the internet.
"""
import shutil
import requests
class DownloaderError(Exception):
"""
Errors related to the Downloader
"""
class Downloader:
"""
Provides high-level functions for fetching stuff from the internet.
"""... | [
"jake@tkb.mss.co.jp"
] | jake@tkb.mss.co.jp |
22667e36536935585748b0c24fcc4a732a2b8384 | d5e0347bc2f492afb969149113b494c20a030244 | /basic/list.py | a380fe9b6d965c5b32418c285739e60e76c79a10 | [] | no_license | qingmingsang/python-demo | 2eff3cd7452f690cf4e058a28e83099b2dc3a0c7 | 3c96659cd5d5de537e3eefdc42086cf36851f14a | refs/heads/master | 2021-04-06T14:11:16.248901 | 2019-10-15T16:31:43 | 2019-10-15T16:31:43 | 125,257,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | classmates = ["Michael", "Bob", "Tracy"]
print(classmates)
print(len(classmates))
print(classmates[-1])
# print(classmates[6])
# IndexError: list index out of range
print(range(5))
# range(0, 5)
print(list(range(5)))
# [0, 1, 2, 3, 4]
sum = 0
for x in range(101):
sum = sum + x
print(sum)
# 5050
L = ["Bart", "Lis... | [
"358242939@qq.com"
] | 358242939@qq.com |
f3c78a164ef56f6a0ec9276cfd66d8ebe7bc2607 | 8dbc386a5ec3943ac64b35a4da34b70fbb988152 | /src/handlers/me/articles/comments/reply/handler.py | af9a8487352380b5ead2b639f4a498b23f2a10df | [] | no_license | AlisProject/serverless-application | 60cab427d3088f1fa7b653ad7ee78674d64dd70c | 8a3f9ed146f71281036986ec5baa481718768866 | refs/heads/master | 2023-03-30T06:48:47.426067 | 2023-03-28T13:09:24 | 2023-03-28T13:09:24 | 123,153,011 | 62 | 20 | null | 2023-03-28T13:09:18 | 2018-02-27T16:00:10 | Python | UTF-8 | Python | false | false | 328 | py | # -*- coding: utf-8 -*-
import boto3
from me_articles_comments_reply import MeArticlesCommentsReply
dynamodb = boto3.resource('dynamodb')
def lambda_handler(event, context):
me_articles_comments_reply = MeArticlesCommentsReply(event=event, context=context, dynamodb=dynamodb)
return me_articles_comments_reply... | [
"matsumatsu20@gmail.com"
] | matsumatsu20@gmail.com |
c8bf5f9685eb4c0e1013dff3da0cfca040acec35 | 4c0dd004f54979c87db0bcaff3f74490d82591a7 | /plotBaseline.py | c27724ae1f21ccdfc3efb25eff309f8f8a56610d | [] | no_license | albertpuente/newInterpDetect | 3decf2a5459e82ba69ca4d754c869af3f1b3a94a | 174b7ecd521f2918f742dafb7e1939357c55aa35 | refs/heads/master | 2021-01-17T21:39:25.174906 | 2016-07-21T11:17:31 | 2016-07-21T11:17:31 | 62,659,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | import matplotlib.pyplot as plt
V = []
theta = []
theta_b = []
with open('DEBUG_FIND_OUTPUT.txt', 'r') as f:
for l in f.readlines():
things = l.split(' ')
V.append(things[0])
theta.append(things[1])
theta_b.append(things[2])
plt.plot(V, 'r-')
plt.plot(theta, 'b--')
plt.plot(theta... | [
"albertpuente93@gmail.com"
] | albertpuente93@gmail.com |
a2f3badba22fbc90f72923fcc33d4c53fcd479b5 | 10ae0467d267b2abbcb0c622d151823d91841f65 | /Demos and Tests/Student Work - 2010/Dakota.py | 1484d643a5c742945839bca3462e6bce09c8238b | [] | no_license | Panda3D-public-projects-archive/pandacamp | 06b90f42796bf0734ba7932c927c43508ec381f3 | 1b8950589db10259e078edbdecade5c1b6beee2d | refs/heads/master | 2022-04-27T01:12:46.132224 | 2015-03-13T23:00:19 | 2015-03-13T23:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | from Panda import *
def randomTetra(pics):
pic1 = shuffle(pics)
return tetra(pic1[0], pic1[1], pic1[2], pic1[3], v1 = P3(random11(), random11(), random11()), v2 = P3(random11(), random11(), random11()), v3 = P3(random11(), random11(), random11()), v4 = P3(random11(), random11(), random11()))
group = ["pics/duc... | [
"ProfessorJohnPeterson@gmail.com"
] | ProfessorJohnPeterson@gmail.com |
e82b311c44c264672396d4f6b68583127bf3dcc8 | b700c8cfd4033be5a3081f5af94e8a65796dd04a | /plots.py | 0c4542ad4c859ecee52ec5f03927bd5050e75b5e | [] | no_license | ahriley/infall-times-gaia | 149ca9fbb4d5be0b9547d6e2ef702c9ef64b450e | 96764b33d1da2d40cc8893d7f43ca1f4a2323808 | refs/heads/master | 2021-06-01T22:35:03.219172 | 2018-07-12T16:15:10 | 2018-07-12T16:15:10 | 136,056,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,159 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from utils import *
from astropy.cosmology import WMAP7
# Rocha plots for ELVIS
r = np.array([])
for sim in list_of_sims('elvis'):
halos, subs = load_elvis(sim=sim, processed=True)
r = np.append(r, subs.r)
max_r = np.max(r)
bind, z, r, v_... | [
"30327239+ahriley@users.noreply.github.com"
] | 30327239+ahriley@users.noreply.github.com |
f2c1ef7bf41e8e509ea29dba4ec11c8ad4e17a5e | 0d90a0e3174c72aceb4107ca378c52afc7fa7f55 | /sslproject/sslproject/settings.py | 4041abe31b3cfa8da348a39382be9e75de4cdc36 | [] | no_license | alphaWizard/SSLproject | c555e2daffee539038558d483b5f0f44c6775cf3 | c18543316484cb835b93c35c49bfb872de2d47c8 | refs/heads/master | 2021-08-22T03:45:54.702602 | 2017-11-29T05:44:47 | 2017-11-29T05:44:47 | 108,448,143 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | """
Django settings for sslproject project.
Generated by 'django-admin startproject' using Django 1.11.3.
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/
"""
import... | [
"debangshubanerjee1997@gmail.com"
] | debangshubanerjee1997@gmail.com |
06615d6a0ed9cca545e0f513c0da0cc11049404f | bc3f5e9272b1142a104390871f86efb97202503b | /draiver/tests/DataStreamer/server3.py | 758310cd263bfcaa6ce23410b294a73b0417ddb7 | [] | no_license | MarcoSignoretto/drAIver | dce358de22e1de03a7435d9388bdfabcf9584f2d | 7a14b3973a2ca8b57f09eb3ee8a1fedaa5e1cadc | refs/heads/master | 2021-04-06T12:25:40.688394 | 2018-06-16T10:38:06 | 2018-06-16T10:38:06 | 125,176,238 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | #!/usr/bin/python
import socket
import cv2
import numpy
def recvall(sock, count):
buf = b''
while count:
newbuf = sock.recv(count)
if not newbuf: return None
buf += newbuf
count -= len(newbuf)
return buf
# camera init
camera_left = cv2.VideoCapture()
camera_left.set(4, 640)... | [
"marco.signoretto.dev@gmail.com"
] | marco.signoretto.dev@gmail.com |
bc3e0aae1bddeb212273308b0e470cd458c735c0 | ccabc13a33099b751cbf02459237ff806fdf3037 | /week3/BiDAF_tf2/layers/attention.py | 606212184a2c37720d71ba002efb8827df0b2717 | [] | no_license | SoloPro-Git/MRC_learning | 9007f4f1cac814925be063a2d7857114a856a212 | 2a22a96789e21c6bb5e9d6fd301a57a69a01ce93 | refs/heads/master | 2023-02-07T18:48:56.898289 | 2020-12-17T10:01:04 | 2020-12-17T10:01:04 | 313,486,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | import tensorflow as tf
class C2QAttention(tf.keras.layers.Layer):
def call(self, similarity, qencode):
# 1. 对qecncode进行扩展维度 :tf.expand_dims
qencode_exp = tf.expand_dims(qencode, axis=1)
# 2. softmax函数处理相似度矩阵:tf.keras.activations.softmax
similarity_softmax = tf.keras.activations.s... | [
"137033760@qq.com"
] | 137033760@qq.com |
5b3dbdd973981f53d7e2243cb5ad29122bae8999 | 6f2ee69b2b69877950335936f23f8d584e7711af | /src/implementations/helpers/partition.py | a2a6bd9976b416318124b09e58107623ac1a9881 | [
"MIT"
] | permissive | wobedi/algorithms-and-data-structures | b5a8fdb27be53ba9fae2a93c9aaa949852bf5ce4 | 2d43ac66fd87881182aed65ec22e7016541e9315 | refs/heads/master | 2020-08-24T08:21:17.406623 | 2020-08-04T13:47:28 | 2020-08-04T13:47:28 | 216,792,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | def three_way_partition(arr: list, lower: int, upper: int) -> (int, int):
"""In-place partitioning of arr. Implements:
https://en.wikipedia.org/wiki/Dutch_national_flag_problem#The_array_case
"""
lt, gt, i = lower, upper, lower
# Performance could be improved by using smarter pivot, e.g. median
... | [
"yanick.steinbeck@gmail.com"
] | yanick.steinbeck@gmail.com |
b7a247ccaea8874f9bdfa9cd247def7e342ba18d | c970c3800ab7a33989d7fffaee3da63f72dac6ea | /api_trial2.py | c1fcd40999a337e958197b9b473f2f67fcd90672 | [] | no_license | smustala/DSCI551-Project | 8053d16f2c7f53e8533277c34a1e1ab0444f353b | fe335785e0cb529656f064f059435fcd8f0753c0 | refs/heads/master | 2023-01-08T19:24:44.866301 | 2020-11-06T11:30:01 | 2020-11-06T11:30:01 | 310,578,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 6 02:10:06 2020
@author: shalinimustala
"""
import flask
from flask import request, jsonify
def tempbymonth1(month, year, countryname):
from mysql import connector
cnx = connector.connect(user='shalini1', password='hello', host='18.1... | [
"shalinimustala@Shalinis-MBP.attlocal.net"
] | shalinimustala@Shalinis-MBP.attlocal.net |
f1eda5ad518399f11f695d6ba4d08d977131db26 | c72758161d4da978a0cc0c87d88535fc9ca58ba5 | /inc/preparation/PrepareBaseRequest.py | 162f602b36060eddbf619cace00aa35737e10375 | [] | no_license | Damian89/extended-baserequest-importer | 5478878aefbfa90d34e8ac880b2e84532c0ef202 | 3f72e51546bb833720f014377284bd966db6275a | refs/heads/master | 2020-04-27T09:03:34.575147 | 2019-08-02T06:32:22 | 2019-08-02T06:32:22 | 174,198,885 | 10 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope... | [
"mail@damianschwyrz.de"
] | mail@damianschwyrz.de |
3123f9b6c63d2f4d24498b526b5adf3d5f85a175 | 99247d0562f3bdc1952ef3f8b2b7465247bde9eb | /users/views.py | 61f199e43fd6b308f4bff2b029179ada5808d86f | [] | no_license | Goryunova/yamdb_final | c2977ef6ec359adcac98538b3cf2d010ddbb0630 | 0950dc35ca454dfe44d92b90f40a26f66ccfa452 | refs/heads/master | 2023-07-26T19:04:09.091856 | 2021-09-11T13:19:19 | 2021-09-11T13:19:19 | 401,342,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from yamdb.models import User
from yamdb_auth.permissions import IsAdmin, IsAuthenti... | [
"bilka77@mail.ru"
] | bilka77@mail.ru |
66fe9f443d7e7476ac2947896a309613455c29b4 | b527e5f05d2431a724b95beaf42e80377e09dd4e | /node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi | 7b693bc9ed8b7a0476ffe3e59cd6bc66c4783400 | [
"Apache-2.0",
"MIT"
] | permissive | wolfoxonly/snc_explorer | e8ee42d3db5ab5d8032e21bf462ff435abbb5bea | c0e7ab6a664407f96203d816eeb25f9fc2f986c1 | refs/heads/master | 2020-04-17T11:43:31.325818 | 2019-02-26T08:57:08 | 2019-02-26T08:57:08 | 166,552,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,267 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 41,
"host_arch": "x64",
"node_install_npm": ... | [
"16358164@qq.com"
] | 16358164@qq.com |
5e5690e04aa90942ebf8fe480955b7c04ff6e383 | a78f5fd783acad55e97916114e3ccb0d817e8ae3 | /2021/12/day12.py | 99b2835aae66c8fe2c4262b65d9ad70308275469 | [] | no_license | fredrik-aschehoug/AdventOfCode | 3853c1f947ebd0fbec6232674e258763a99775da | f44d15bf1167dcbbcb15c5a317f72e45ba560316 | refs/heads/master | 2023-06-22T23:04:40.670487 | 2023-06-13T11:21:08 | 2023-06-13T11:21:08 | 225,464,307 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from utils import get_network
from PathFinder import PathFinder1, PathFinder2
def main():
with open("12/input.txt", encoding="UTF-8") as file:
lines = file.read().splitlines()
network = get_network(lines)
pathfinder = PathFinder1(network)
paths = pathfinder.get_distinct_paths()
print("Pa... | [
"15358786+fredrik-aschehoug@users.noreply.github.com"
] | 15358786+fredrik-aschehoug@users.noreply.github.com |
e79ce4977b6a49f90c9aaada2b5644b561275441 | a2170a9fc6355dfd9a2a54e7b7f9de531dc74c9c | /pywhoisxml/exceptions.py | de667387dc2898d0ed0a1507dd5f50e4c2b7e9f6 | [] | no_license | VarthanV/pywhoisxml | 82a826d0c23b9319e1fd75b58bab4bbb7602786e | 47fb58ace086df5222fbef936fc71bbb4383d0d1 | refs/heads/master | 2022-05-27T03:30:46.806937 | 2020-05-01T03:32:07 | 2020-05-01T03:32:07 | 259,951,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | class PyWhoisException(Exception):
pass
| [
"vichu@Vishnus-MacBook-Air.local"
] | vichu@Vishnus-MacBook-Air.local |
c280ee3b854a4f6043932dbcd3aa1b31846f9e2c | 47988c4d1e2c07cd2465da204890f481d59dbd4b | /src/tests/ftest/util/command_utils_base.py | e25429c501973d0d6e453644fdfcba2b0cf4b268 | [
"BSD-2-Clause",
"BSD-2-Clause-Patent"
] | permissive | dsikich/daos | 974000a2e9a37c2edc994007f864ab69afe347e3 | 13385f8eb3209dfe9f63772a68a3bb8cadaf2e23 | refs/heads/master | 2022-07-07T05:46:07.074084 | 2022-06-29T13:01:52 | 2022-06-29T13:01:52 | 242,208,796 | 0 | 0 | NOASSERTION | 2021-12-07T21:17:27 | 2020-02-21T18:50:31 | C | UTF-8 | Python | false | false | 26,663 | py | #!/usr/bin/python
"""
(C) Copyright 2020-2022 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
from logging import getLogger
import os
import yaml
from exception_utils import CommandFailure
class BasicParameter():
"""A class for parameters whose values are read from a yaml file."""
de... | [
"noreply@github.com"
] | dsikich.noreply@github.com |
686c9615805e1a5fc4ed701965c783ef17b68d2e | 3de6a297bdacd268c9aafadc37d0f53d1a77da76 | /example/strategy_two_graphs.py | 877f0c12157d9964cba360e559135a7547036ae7 | [] | no_license | HipGraph/GNNfam | bfe7ae9b3f120f7fd06174dc318c086bb4d8e0e0 | 7b6e2bc7f07402696b574625222979b8f57a1a24 | refs/heads/master | 2023-04-26T05:12:34.990943 | 2021-05-25T23:38:27 | 2021-05-25T23:38:27 | 357,778,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | #!/home/anuj/virtualenvforest/globalvenv/bin/python
import networkx as nx
def main():
basegraph = nx.Graph()
with open('graph.txt', 'r') as f:
for line in f.readlines():
a, b, c = line.strip().split()
basegraph.add_edge(int(a), int(b), weight=float(c))
#basegraph is the n... | [
"abgodase@iu.edu"
] | abgodase@iu.edu |
a86b793d90e6718bbb40e66343ea07b986f34a35 | 9e99a543ac84503729604c3fc967742f741f7d77 | /todo-list.py | 9a834c7f1182783a0a02aa028fd6d25d9a09ae5e | [] | no_license | emreyeprem/python-class-object | 17b512a9dfd0ae7a96f9903b6085f33c0e2af599 | 9da06cdc269265a0359dadaed3cc3056b821f6b4 | refs/heads/master | 2020-03-29T18:21:12.922481 | 2018-09-25T04:23:31 | 2018-09-25T04:23:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | #---------------------- First Try------------------------
# priority_list = []
# task_list = []
# task_and_priority_list = []
#
# while 1==1:
# task_title = input("Enter the task: ").lower()
# task_priority = int(input("Type a number from 0 to 5(0: least important -> 5: highly important): "))
# quit_program... | [
"emreakurek@MacBook-Air-2.local"
] | emreakurek@MacBook-Air-2.local |
952fd72ad5a8100025aa2e461084375532616b8e | 677562bf6835be104204f32a6c9998d9a901f9fc | /from_scratch/detect_metadata/times.py | fefebd85201b58cd0821fa91c8c528a5f775d688 | [] | no_license | santokalayil/neural_network | 3cb2f843430e9f35e017edcde83ba13212d0f5cf | f453856214d027f55afc5c861784dc693a9bf2c6 | refs/heads/main | 2023-06-12T01:53:43.588403 | 2021-07-02T08:30:20 | 2021-07-02T08:30:20 | 382,281,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # import platform # to detect the operating system
import os
import time
def get_last_modified_time(path_to_file):
return os.path.getmtime(path_to_file) # time.ctime(os.path.getmtime(path_to_file))
def get_created_time(path_to_file):
return os.path.getctime(path_to_file) # time.ctime(os.path.ge... | [
"49450970+santokalayil@users.noreply.github.com"
] | 49450970+santokalayil@users.noreply.github.com |
2294a459f1fdf255465e1c2a3b0a875e3b2dd9a2 | 0ea9136591fbd928716cd6c1159ffc8985de0242 | /Mongo_Search/old scripts/SearchChannel.py | aaffb1ce5e6d28c4e55e6ffe9dc99ebc35c3cdbe | [] | no_license | kaayem/Kym | 0d8b1042fbd98772b58f294aecb122750d00b99b | 8f99c20757c5505809cacbe5459ba6605ac93e98 | refs/heads/master | 2022-11-17T13:29:46.111333 | 2020-07-22T11:55:01 | 2020-07-22T11:55:01 | 277,321,585 | 0 | 0 | null | 2020-07-22T11:55:03 | 2020-07-05T14:45:47 | Python | UTF-8 | Python | false | false | 1,478 | py | #generate set up checks for python
# check all brands in a market
import pymongo
from pymongo import MongoClient
import pandas as pd
import numpy as np
import os
def db_connect():
#connecting to a DB in mongoDB
try:
if client.get_database(DB_NAME):
print("Connection Successful!")
... | [
"kaayempatel@wessexinsights.com"
] | kaayempatel@wessexinsights.com |
7e0ddf1ed82eb7a872aeed25135c9b4572b437ac | a7b722424273b0b9ad00ca0088d129b464c9bb1b | /Back-end/store/admin.py | 7d34d3b73fb34832d5bba84103412c4d01fae0ad | [] | no_license | HackRx2-0/ps2_legit_geeks | df1f71dcf0b43ef750ceeb9ff6ccdae1b2ce4c9e | c19de4403c45fdd5ed132e5c17a8f22c6aea0f46 | refs/heads/main | 2023-06-23T02:12:44.494118 | 2021-07-24T09:50:30 | 2021-07-24T09:50:30 | 388,513,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from django.contrib import admin
import nested_admin
from .models import Store, ShippingZone, ShippingMethod, BankAccount
class StoreAdmin(nested_admin.NestedModelAdmin):
model = Store
# inlines = [WholesaleProductVariantInline]
class ShippingMethodInlineAdmin(nested_admin.NestedTabularInline):
model =... | [
"181210045@nitdelhi.ac.in"
] | 181210045@nitdelhi.ac.in |
a528ab42b50817339d31b862bfcedf826beed8cd | 8751fdfb52527ae28d2bf9a3d982b9fe12c774b8 | /homework4.py | 526128a73f6b56f1e907d7b9f90f77b87f932b54 | [] | no_license | acheng6845/DataStructuresLab | f38f8fe17d71e7a6ad0ba0b46a645f151e91c113 | 65e0d025d4ec6857cf762df4cbadf957ed23b8c7 | refs/heads/master | 2021-09-02T07:42:05.616983 | 2017-12-31T15:39:38 | 2017-12-31T15:39:38 | 115,870,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,925 | py | # ---------------The PList code I posted earlier---------
#Note to Self: Submit assignment immediately after finishing it, so you don't leave it to chance waking up in the middle
#of the night a few days later and a few hours before it's due.
class PList:
class _Node:
__slots__ = '_data', '_prev', '_next'... | [
"acheng6845@gmail.com"
] | acheng6845@gmail.com |
3b937e27177d4b2213f47baa81c00973e7037be0 | bc4910ecec94749697dbce5e7cf5093275411125 | /src/generator/Cheetah/ErrorCatchers.py | 500f2490d613628fe69f683fafa883f5d586e55d | [
"MIT"
] | permissive | se210/tracy | 7e73a6f0d64f355842b9a11035c3720b4d40fde5 | 232a42ce1aefcffa1f8544c89d60a16ebd897033 | refs/heads/master | 2021-01-09T20:55:03.241111 | 2013-12-15T23:34:36 | 2013-12-15T23:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | #!/usr/bin/env python
# $Id: ErrorCatchers.py,v 1.1 2006-09-06 09:50:08 skyostil Exp $
"""ErrorCatcher class for Cheetah Templates
Meta-Data
================================================================================
Author: Tavis Rudd <tavis@damnsimple.com>
Version: $Revision: 1.1 $
Start Date: 2001/08/0... | [
"sami.kyostila@unrealvoodoo.org"
] | sami.kyostila@unrealvoodoo.org |
66ec71bb988eb0d3f33c75d5c26df53404e2780b | 6d77cf9932bf600ab89deae26b849221fdf88704 | /Safe Marks/Interface/TeacherCommandLineInterface.py | 0060d6cad337413098e7b4a29ad70bae1d24b7e9 | [
"MIT"
] | permissive | mriduldhall/Safe-Marks | 4cecc89bcc16c83b64602cc686ad3371e0f14580 | 3ea657c842fe30f084e0d70633d4319073bc82f0 | refs/heads/main | 2023-07-05T05:06:38.270423 | 2021-08-16T22:53:43 | 2021-08-16T22:53:43 | 307,712,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,720 | py | from HelperLibrary.Validator import Validator
from HelperLibrary.Student import Student
from HelperLibrary.StorageFunctions import StorageFunctions
from Interface.SettingsCommandLineInterface import CLI as SettingsCLI
from Interface.AccountCommandLineInterface import CLI as AccountCLI
from datetime import datetime
c... | [
"mriduldhall1@gmail.com"
] | mriduldhall1@gmail.com |
5d85ec597bf50561c780343e1b57a17fe70cdec9 | 581c2beee0cf5656971987a19064524e3de7bc68 | /distributions/lomax.py | 6afe6b8af24109d2284426642b481f36d5ef196f | [
"MIT"
] | permissive | bballamudi/survival | ac6925b30ba3ca9ed574ba056d36830f9129114f | c86186b08e7896096b9d59a5013335f56283a7c4 | refs/heads/master | 2020-03-21T14:16:29.578172 | 2018-06-09T21:09:08 | 2018-06-09T21:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,123 | py | import numpy as np
from scipy.stats import lomax
from distributions.basemodel import *
class Lomax(Base):
'''
We can instantiate a Lomax distribution
(https://en.wikipedia.org/wiki/Lomax_distribution)
with this class.
'''
def __init__(self, k = None, lmb = None, ti = None, xi = None):
... | [
"rohitpandey576@gmail.com"
] | rohitpandey576@gmail.com |
806045494341c3fa1fb96aa5bd0843029bd4e3fc | 14dcb10e4b0e85b7c95c2f186fe2d4093c853ea0 | /pygmt/tests/test_grd2cpt.py | a1afa97312a022480419107814f227db552fb897 | [
"BSD-3-Clause"
] | permissive | xumi1993/pygmt | 1f3f9a065544693bfbbdb688019f2988d12cdce2 | a555ba705857aeb5e09046308b25574721fccf5f | refs/heads/master | 2023-03-04T01:56:20.742803 | 2022-09-09T14:40:37 | 2022-09-09T14:40:37 | 213,913,126 | 1 | 0 | BSD-3-Clause | 2023-02-21T15:57:33 | 2019-10-09T12:30:33 | Python | UTF-8 | Python | false | false | 1,902 | py | """
Tests for grd2cpt.
"""
import os
import pytest
from pygmt import Figure, grd2cpt
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers import GMTTempFile
from pygmt.helpers.testing import load_static_earth_relief
@pytest.fixture(scope="module", name="grid")
def fixture_grid():
"""
Load the grid... | [
"noreply@github.com"
] | xumi1993.noreply@github.com |
f2d1f00036574689cfdfe68843c9fadedb487026 | 68f0ce24fa285e6b3f6f931a5a5ff075fbd7f51e | /DeepLearning/TensorFlowMNISTLecture.py | 51bbc94b37276e276e0b1f08d745499ee274cdfe | [] | no_license | Resolt/ML_Bootcamp | d8c26b29a49d8c1fd9767e4974d90db9fa10670d | 2838017eab10a382c8ce655c73907dd394b0ea27 | refs/heads/master | 2020-04-03T10:24:23.428282 | 2018-11-07T22:23:28 | 2018-11-07T22:23:28 | 155,192,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
# PART 1 - READING AND EXPLORING MNIST DATA
# LINK MNIST
mnist = input_data.read_data_sets("MNIST_data/",one_hot=True)
print(mnist.train.im... | [
"pdmmichaelsen@gmail.com"
] | pdmmichaelsen@gmail.com |
81e69967751cb96ce288091f2fc4ea2ff7d9ae79 | 837d7fad3a4317fbc45345652cb0b0cee8aa310d | /Autonomous/pwmtester.py | f62fbebb490b9489e870a606e11f66962d5ae6ec | [] | no_license | IliasChekkori/BAUROV-Autonomous | 0f0e17ece2a22e4929334fc2d08c177476c004f9 | 6bfe1e41c7328aad6ab9dffadfdbe193829e8213 | refs/heads/master | 2022-12-09T00:57:01.610265 | 2020-08-31T21:55:23 | 2020-08-31T21:55:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | # Import mavutil
from pymavlink import mavutil
# connection olusturma
master = mavutil.mavlink_connection(
'/dev/ttyACM0',
baud=115200)# Raspberry pi ile pixhawk'ın iletişim kurabilmesi için
# RC pwm değerlerini olusturuyoruz
def set_rc_channel_pwm(id, pwm=1500):
t, optional): Channel pwm ... | [
"noreply@github.com"
] | IliasChekkori.noreply@github.com |
2f745ad5a119f8562508a06dbe64d04423026c86 | b553d0c3834e7246c9ff3c1fe9a206ce3ab88e90 | /employee.py | d7b3d47a14e4dda6024e48a5f03f756d3b01fd86 | [] | no_license | PapaKofi13/vscodes | c1eab9968251efe1359729e60234df47dfe02d17 | 331944fd6aba4c67f3125e884b33fbe6de1da565 | refs/heads/master | 2021-04-22T16:35:50.466684 | 2020-03-25T02:00:09 | 2020-03-25T02:00:09 | 249,862,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | class Employee:
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
@property
def email(self):
return '{}.{}@email.com'.format(self.first,self.last)
@property
def fullname(self):
return '{} {}'.format(self... | [
"micjay113@gmail.com"
] | micjay113@gmail.com |
504475257dbc623201bf094a2bc7a6bfbb28627f | 9fd3d9f37c49c0080cf8d22486b2211f708830d8 | /grupo6.py | ee24b9db09e011b1448de1fa799dd1847792fe4f | [] | no_license | tosh2/ia-mundial | 7762288cc638a541ff7c9651fcb072c05adb63af | 57fe100609c6f4836bf7b839e8e10c0e3b9d1e3b | refs/heads/master | 2020-03-22T00:15:22.667885 | 2018-06-30T08:45:04 | 2018-06-30T08:45:04 | 139,233,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | #!/usr/bin/env python3
# Grupo 8 - IA Junio 2018
# ./grupo6.py
import math
def fase_grupos(name):
if name == "FRA": return [["AUS",2,1],["PER",1,0],["DIN",0,0]];
elif name == "ARG": return [["ISL",1,1],["CRO",0,3],["NIG",2,1]];
elif name == "URU": return [["EGY",1,0],["ARA",1,0],["RUS",3,0]];
elif name ... | [
"josuetz21@gmail.com"
] | josuetz21@gmail.com |
d3618680d0af7959816004d091cc9d1af9580b7a | e204ac41a9f8d91902f4392850b97e322d4b67c4 | /assignment1/aipython/pythonDemo.py | eeb346ccdd81ebf98b17accd5d52c9f7b7566195 | [] | no_license | smartworlding/COMP9414 | 39446a6035323d0215059247b70014ac5c8a024e | 5de75804404a6fafdb280305b62ac729e278a60f | refs/heads/master | 2023-03-15T19:46:50.550730 | 2021-01-05T05:32:20 | 2021-01-05T05:32:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | # pythonDemo.py - Some tricky examples
# AIFCA Python3 code Version 0.8.1 Documentation at http://aipython.org
# Artificial Intelligence: Foundations of Computational Agents
# http://artint.info
# Copyright David L Poole and Alan K Mackworth 2017.
# This work is licensed under a Creative Commons
# Attribution-NonComme... | [
"yuki@yukideMacBook-Pro.local"
] | yuki@yukideMacBook-Pro.local |
5207bdfd9ec7ed6f7459b591d7345960cb085457 | 6a5ce7d885db1baa5a9d43b26f0ae623a5ef0f01 | /azure-mgmt-web/azure/mgmt/web/models/domain_registration_input.py | 864529f0239c7032c4baa763d7558207f03f1109 | [
"Apache-2.0"
] | permissive | JammyBrand82/azure-sdk-for-python | 333af194ff9143ec77f49203a5a71f15c399f278 | c65e189cd41bd3464556b17bfcdee1303867996c | refs/heads/master | 2021-01-17T18:31:10.661151 | 2016-03-17T21:03:08 | 2016-03-17T21:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,993 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
7b881b0726eda7408694fbcacc36d669cda76453 | f80c3df0b651e8bf327aac2fd9c6188205e136f5 | /20201111_home/shortest_word.py | b161be4ee1430dd8837e613b7a37af878bafb1e3 | [] | no_license | rudenko86/my_project | b57ec2e9a4987a1a4c66f911c6098247122ac189 | 96823443e34dcb12a11b02537cbb7e3c3ce24fc6 | refs/heads/main | 2023-01-21T04:16:34.697095 | 2020-11-21T19:33:57 | 2020-11-21T19:33:57 | 309,800,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | ''' знайти найкоротше слово і порахувати скільки разів воно зустрічається та вивести його (count) '''
a = """Октябрь уж наступил — уж роща отряхает
Последние листы с нагих своих ветвей;
Дохнул осенний хлад — дорога промерзает.
Журча еще бежит за мельницу ручей,
Но пруд уже застыл; сосед мой поспешает
В отъезжие поля ... | [
"19rudenko86@gmail.com"
] | 19rudenko86@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.