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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b0f782f3579c4e977d327af73c9b766560f8407c | dde535d17e0431b4936a62313d4ffd3ca572ebed | /espnet/egs/spanish_mailabs/asr1/local/make_data.py | 9876e686018358e8d9cb47c47c642b99924c3f12 | [
"Apache-2.0"
] | permissive | vladk17/Domain-specific-ESPnet | 031e24b39adb3948f9dabf295ab910cab5430f81 | 3e9a782732cbd2fc012958c3904ec0914e32c180 | refs/heads/master | 2022-11-19T04:25:27.779454 | 2020-07-21T19:18:45 | 2020-07-21T19:18:45 | 271,080,652 | 0 | 0 | null | 2020-06-13T06:35:14 | 2020-06-09T18:31:34 | null | UTF-8 | Python | false | false | 756 | py | from pathlib import Path
from dataset_utils.dataset_downloader import download_and_extract_data
from dataset_utils.transformers.spanish_mailabs import MailabsKaldiTransformer
dataset_url = 'http://www.caito.de/data/Training/stt_tts/es_ES.tgz'
dataset_name = 'Mailabs'
eg_dir = Path('/espnet/egs/spanish_mailabs/asr1')
r... | [
"stanislav.barabanov@getwizer.com"
] | stanislav.barabanov@getwizer.com |
f36a5e25d5acda9976d09de8bc449cfad154bd8b | 0cf59810f62eed9641d4da4c27491e7404a1be4c | /python_sample/for_and_while_chapter/for_range.py | 4b21ccfff46e38257565c9be1b0f1451420c39b9 | [] | no_license | Su-hub9/hello_python | 3c911662815b5c5636c0e3dd97db8bd7a7e759ed | 03798fd53e730e590f7f4179cd9009ce7b551c5f | refs/heads/master | 2023-06-16T11:19:42.789595 | 2021-07-13T10:32:05 | 2021-07-13T10:32:05 | 362,412,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # for 반복문과 범위를 함께 조합해서 사용합니다.
for i in range(5):
print(str(i) + "= 반복 변수")
print()
for i in range(5, 10):
print(str(i) + "= 반복 변수")
print()
for i in range(0, 10, 3):
print(str(i) + "= 반복 변수")
print() | [
"suji.bae@datastreams.co.kr"
] | suji.bae@datastreams.co.kr |
41743fd5652d745c199900d74e67de7a95e7d67c | ac4cff61429388cf4395568fbc6d3d8734ec2740 | /blog1/models.py | 6a53a56b2e3852027b1e054aebdff64b03082698 | [] | no_license | sumitbro/Simple_blog | 8d23ef4d7be642207daea33e60609dcb70a7d20d | 0bb8dd0faf9f3e2f83818c4b055681eee7eee9e1 | refs/heads/master | 2022-11-21T06:42:44.687897 | 2020-07-20T04:47:01 | 2020-07-20T04:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.contrib import admin
# Create your models here.
class Blog(models.Model):
title= models.CharField(max_length=100)
writer=models.CharField(max_length=20)
content= models.TextField()
dat... | [
"sahsumit769@gmail.com"
] | sahsumit769@gmail.com |
5e1abe7464b79a58a760973b603aa73a3d1dd39c | f078355df11e6f8927a1217060ce9a14f339521c | /chapter7/algorithm_workbench/exercise3.py | 87b0f554fe80896c94936b663c881651485e0810 | [] | no_license | sairamprogramming/python_book1 | 6c4d63325a8465ad0ca885266ee070910d1edfac | f463c64c14e7a3c1737f2e01858afe8d78f7de33 | refs/heads/master | 2020-05-16T09:27:28.209867 | 2019-05-12T11:26:53 | 2019-05-12T11:26:53 | 182,948,440 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # Program to sort a list in descending order.
import random
def main():
lt = []
for i in range(100):
lt.append(random.randint(1,100))
print(lt)
lt.sort()
lt.reverse()
print(lt)
main()
| [
"sairamprogramming@gmail.com"
] | sairamprogramming@gmail.com |
f238aea7b20d899f7839e340dcf132a628a232ec | 0d60b870af238bb40764af9a5f8f2749da046ce7 | /Backend/Sistema_antiplagio/wsgi.py | 8de781a82d7c6a18858ddfd845ea0cdbc6c71978 | [] | no_license | luisillo21/SistemaAntiplagio | 5291e398a5e18c6c368f8be84ea9ea86764247a5 | 45b99dc76f7fe1b64e41729db5d66b4eabf8e396 | refs/heads/master | 2023-02-02T07:42:56.601455 | 2020-12-18T20:48:57 | 2020-12-18T20:48:57 | 311,553,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for Sistema_antiplagio 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('D... | [
"luisardilamacias@gmail.com"
] | luisardilamacias@gmail.com |
753b329ca779d81e324f8eb20038fe7e3fcb1596 | 43e900f11e2b230cdc0b2e48007d40294fefd87a | /ReferenceSolution/344.reverse-string.144960300.ac.py | 8b168bf0936591a1d4f6e4c9872e7d7a20112144 | [] | no_license | DarkAlexWang/leetcode | 02f2ed993688c34d3ce8f95d81b3e36a53ca002f | 89142297559af20cf990a8e40975811b4be36955 | refs/heads/master | 2023-01-07T13:01:19.598427 | 2022-12-28T19:00:19 | 2022-12-28T19:00:19 | 232,729,581 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | #
# [344] Reverse String
#
# https://leetcode.com/problems/reverse-string/description/
#
# algorithms
# Easy (60.09%)
# Total Accepted: 223K
# Total Submissions: 371.1K
# Testcase Example: '"hello"'
#
# Write a function that takes a string as input and returns the string
# reversed.
#
#
# Example:
# Given s = "he... | [
"wangzhihuan0815@gmail.com"
] | wangzhihuan0815@gmail.com |
34ca6fa674e5f5fb35aa311698c5541dcc4cb985 | 8b277b2f7f9e9c58ad0e7075e9eda41780a216f6 | /networksimulator/__init__.py | 53533636667bd619e21114e1a71184bac3143f78 | [] | no_license | eliascodes/netxsim | a35c98afdfa75117cf3e6cec39499f13a55e4734 | f4357503c40c3a0c060ba82540a38125930d52cd | refs/heads/master | 2016-08-11T08:13:03.649960 | 2016-03-05T16:25:17 | 2016-03-05T16:25:17 | 53,211,304 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | __all__ = ['agents', 'builders', 'environment', 'generators', 'grid', 'logger', 'results', 'simulator']
| [
"elias0789@gmail.com"
] | elias0789@gmail.com |
ff4ea47903526107d8b2849b43ec7a6da5d5f665 | c02b29676321c3d1a638e3a5aab5cc5ac6cae769 | /py/compare_images.py | 1052c774e557b112f46460281cbaf9605468a32b | [] | no_license | estaro/DetectSimilarVideo | baafe5ca1c5a3464a25e66f78c20f0fc87be379a | 8e2e8dd7e6e2406ee35c41af4bc909dcef292883 | refs/heads/master | 2021-05-08T01:41:41.361630 | 2017-11-13T21:51:46 | 2017-11-13T21:51:46 | 107,906,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # -*- coding: utf-8 -*-
"""
compare_image.py
Usage: python compare_image.py {dir1} {dir2}
"""
import configparser
from logging import getLogger, DEBUG, basicConfig
import os
from statistics import mean
import sys
import cv2
# --------------------------------------------------------------------------
# P... | [
"31145745+estaro@users.noreply.github.com"
] | 31145745+estaro@users.noreply.github.com |
8681ebea2bba52e99b7fe743a71c50a6abf1ac51 | 714250bfd38cdab62f19cb2db3e0e83ce1534520 | /Solutions/binning.py | 2332e4b7f87ac3956c0c3e85c7444b8834e716e8 | [] | no_license | r-Iyer/Data-Mining | 515d69a0f7aff8072f461e25ba21464d7d3b906e | 13305b66b9c3bd674699ba36e01562f914f3abf5 | refs/heads/master | 2022-09-17T11:08:12.296620 | 2020-06-03T23:46:56 | 2020-06-03T23:46:56 | 269,266,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 5 14:14:04 2019
@author: user
"""
import numpy as np
import math
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from skl... | [
"rohitstar.iyer@gmail.com"
] | rohitstar.iyer@gmail.com |
84fbce073c9a21f6786912792c3918af99b242ce | 5f7fc00144218e45a4b9d1894cc5a75948b0b124 | /src/app1/admin.py | 2aa6b6283f88478a6de3cd7e31b967bae57c3601 | [] | no_license | Lavanya1211/SeaAnt_1 | a6b77d1ff128869e7256608455ae7ace4c017c65 | 8bb8add1b13399fedd9fb64ca3ed2bd0d2f130de | refs/heads/main | 2023-07-06T06:16:39.746838 | 2021-08-19T08:44:00 | 2021-08-19T08:44:00 | 381,921,989 | 0 | 0 | null | 2021-07-01T06:46:33 | 2021-07-01T05:39:38 | null | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
from.models import Contact_Us,PhoneBook
# Register your models here.
admin.site.register(Contact_Us)
admin.site.register(PhoneBook)
| [
"lavanya.b@seaant.com"
] | lavanya.b@seaant.com |
654d6ea67f271fae463c3629d042464a0cdbadc6 | a1ec21093177517ee7ca9e8fa0c00608e7874038 | /neural/jafeat.py | b1f8ee6a47bb157725ce7e154a9252a393fc2fbe | [] | no_license | ustimenv/ProductAnalysis | b8e8d45a0a7d2da274754a3fe4bcf6a1a9b39216 | ca3cbab2ad56720d3fe8bd1ec6a59f0b5a90da6c | refs/heads/master | 2020-06-23T10:06:25.181550 | 2020-05-26T15:18:56 | 2020-05-26T15:18:56 | 198,592,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,689 | py | from gluoncv.model_zoo import *
from gluoncv.model_zoo.ssd.vgg_atrous import VGGAtrousBase
from mxnet.gluon import nn
# Resnet multilayer feature extractor, does not really work
class JafeatRes(nn.HybridBlock):
def __init__(self, **kwargs):
super(JafeatRes, self).__init__(**kwargs)
self.block = Bo... | [
"ustimenkovlad@gmail.com"
] | ustimenkovlad@gmail.com |
50ac96ab80768609f1ec718a8974748b156d9c00 | 49201a80ee7cf00997861a45375de58e18e59a1c | /sentiment_analysis.py | 77111c52a27982579afa3e599e6c5ab882c2b9db | [
"MIT"
] | permissive | Ticunas/Sentiment-Analysis-for-Twitter | 76dba3f755246712a4998ac9cf5454dfc935220d | e5eabb5f1a4228ecbbcbdbb4978801c1093fd6c7 | refs/heads/master | 2020-03-09T00:07:50.839051 | 2018-04-25T03:40:59 | 2018-04-25T03:40:59 | 128,480,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 23 00:38:05 2018
@author: Tadman Reis
"""
from nltk.classify import NaiveBayesClassifier
import pandas as pd
import re
def _word_feats(words):
return dict([(word, True) for word in words])
def _clean_sentence(sentence):
sentence = sentenc... | [
"tadman.freis@hotmail.com"
] | tadman.freis@hotmail.com |
5f1fd406e54591565450a64a7ce942a90dd558e7 | 8fe6993366229375a1f3978be5fda313476648b9 | /.eggs/PyScaffold-2.5.11-py2.7.egg/pyscaffold/contrib/__init__.py | 821046089738a7c3cc122fef219908509f3078f1 | [] | no_license | ArkhipovK/NER-report3 | 9b6fe6981abc884dec6e48831dff70257ba0efae | 150f7543050c73a89dc807fafdf75ded8ace25dd | refs/heads/master | 2020-03-31T12:15:46.727011 | 2019-01-22T11:12:52 | 2019-01-22T11:12:52 | 152,209,204 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,630 | py | # -*- coding: utf-8 -*-
"""
Contribution packages used by PyScaffold
All packages inside ``contrib`` are external packages that come with their
own licences and are not part of the PyScaffold sourcecode itself.
The reason for shipping these dependencies directly is to avoid problems in
the resolution of ``setup_requir... | [
"tehbitardcity@gmail.com"
] | tehbitardcity@gmail.com |
77c64fb59368c9657f280b0c7ee631cebf1c2218 | 41de4210af23a8a8a3ca7dd090bb51faecf4a0c8 | /lib/python3.5/site-packages/statsmodels/stats/inter_rater.py | a2ee16b61ac6a112056d7aa8806b4121f13d39f5 | [
"Python-2.0"
] | permissive | randybrown-github/ziplineMacOS | 42a0c2bfca2a54baa03d2803dc41317647811285 | eb5872c0903d653e19f259f0800fb7aecee0ee5c | refs/heads/master | 2022-11-07T15:51:39.808092 | 2020-06-18T20:06:42 | 2020-06-18T20:06:42 | 272,631,387 | 0 | 1 | null | 2022-11-02T03:21:45 | 2020-06-16T06:48:53 | Python | UTF-8 | Python | false | false | 19,346 | py | # -*- coding: utf-8 -*-
"""Inter Rater Agreement
contains
--------
fleiss_kappa
cohens_kappa
aggregate_raters:
helper function to get data into fleiss_kappa format
to_table:
helper function to create contingency table, can be used for cohens_kappa
Created on Thu Dec 06 22:57:56 2012
Author: Jos... | [
"randybrown18@me.com"
] | randybrown18@me.com |
20bc07fa1e2d06f6313b56656a9fa09a69569d74 | b5c220fdc79864004fc6b0868156c480355cf6cd | /bugtracker2/tickets/models.py | 45f6e6fdb5d880f37032b9320a0ce2d7785946cd | [] | no_license | mander5/BugTracker | 82ed20e046cdc73497c39d4dee73816288cd86a3 | 183ee19a4693164ddb7cd628b57d585e36af02b2 | refs/heads/master | 2022-08-16T01:53:23.439920 | 2020-06-02T16:23:45 | 2020-06-02T16:23:45 | 267,913,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | from django.db import models
from django.urls import reverse
from django.conf import settings
import misaka
from projects.models import Project
# Create your models here.
from django.contrib.auth import get_user_model
User = get_user_model()
class Ticket(models.Model):
user = models.ForeignKey(User,related_name='t... | [
"64420595+mander5@users.noreply.github.com"
] | 64420595+mander5@users.noreply.github.com |
a561294f414cdede2677f634fa2f2688d79bdc8d | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc042/A/answers/14790_tomatohakase.py | 9e999407dd318c9db54c654161c95688f0f3533a | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | cond = [int(n) for n in input().split(" ")]
five,seven = 0,0
for c in cond:
if c == 5:
five += 1
elif c == 7:
seven += 1
else:
if five == 2 and seven == 1:
print("YES")
else:
print("NO") | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
8ce19e4677ee96e3ff5e62ff2ebc87cd99f3bf5e | 13426e3cbd9f2ec27fd58571f313a49ed6a2d1f9 | /todo/models.py | 2cf7afadd2168328b3866c622f13bda6f8f90245 | [] | no_license | abuhijleh/pipeline-test | 9d326cd42c397d0930c30d722401584bc7432c4e | 6582c629595c3aef86e8c7c91794811a1f343320 | refs/heads/master | 2023-08-02T16:25:35.514425 | 2021-03-25T10:51:46 | 2021-03-25T10:51:46 | 324,395,376 | 0 | 1 | null | 2021-09-22T19:41:08 | 2020-12-25T16:25:12 | Python | UTF-8 | Python | false | false | 271 | py | from django.db import models
# Create your models here.
class Item(models.Model):
name = models.CharField(max_length=50, null=False, blank=False)
done = models.BooleanField(default=False, null=False, blank=False)
def __str__(self):
return self.name
| [
"abuhijleh@abuhijleh.net"
] | abuhijleh@abuhijleh.net |
7ca6a1f200f35c09c861cf3bb0cefddde58fbcbe | 9659ebdfb1a6f5e5691a880bb5768d1fa5a52215 | /HW07/provision.py | d9bc35279529d6a6284f86fd549b03d882251746 | [] | no_license | timpson78/otus-linux | 5119ecf41d8f77df3a6673b9d19be43cce97d7f4 | 0bf64b2f3b2863a35f382fe2ea2a7bb50382f99b | refs/heads/master | 2020-12-30T06:25:01.562159 | 2020-03-26T11:41:26 | 2020-03-26T11:41:26 | 238,891,726 | 0 | 0 | null | 2020-02-07T09:58:21 | 2020-02-07T09:58:20 | null | UTF-8 | Python | false | false | 734 | py | #!/usr/bin/python
import os
os.system('setenforce Permissive')
os.system('yum install epel-release -y && yum install spawn-fcgi php php-cli mod_fcgid httpd -y')
os.system('cp ./opt/* /opt/')
os.system('chmod 755 /opt/watchlog.sh')
os.system('cp ./var/log/* /var/log/')
os.system('cp ./etc/sysconfig/* /etc/sysconfig/')... | [
"kubkredit@mail.ru"
] | kubkredit@mail.ru |
131e0c45e5f19bb98323d41650bdd1da3ce8557f | 6495942c22be240bb138a72f02519ec1f16cc976 | /jumeg_cfg_gui01.py | 55fc7eb263467c771a479b7faf0b963d1fd969e9 | [
"BSD-3-Clause"
] | permissive | fboers/JuMEGwxGUI | ba29f8070b6a751365bd23e5a92efd26a2379e00 | 0f2c3b8a997338cd3bda48f84a42a9b012dee05c | refs/heads/master | 2020-08-30T02:05:50.622339 | 2019-10-29T10:59:59 | 2019-10-29T10:59:59 | 218,231,556 | 0 | 0 | BSD-3-Clause | 2019-10-29T11:00:00 | 2019-10-29T07:48:26 | null | UTF-8 | Python | false | false | 4,573 | py | #!/usr/bin/env python3
# -+-coding: utf-8 -+-
"""
"""
#--------------------------------------------
# Authors: Frank Boers <f.boers@fz-juelich.de>
#
#--------------------------------------------
# Date: 29.10.19
#--------------------------------------------
# License: BSD (3-clause)
#------------------------------... | [
"f.boers@fz-juelich.de"
] | f.boers@fz-juelich.de |
da2088e7e4204d7b3ab24fc6b5acd9b307c2b56c | 50fb25631cdc03a868f09061e76f4dedf85f2d3f | /crawler_sys/hot_words_crawler/crawler_toutiao.py | 6cec79d644d7641382dfe21fbc22ef52402c8fe2 | [] | no_license | silade/crawler | 20a88c0eb6471f79a5d5daf947dcbff681d11e6e | fbfe3c4feca8be61186aec986b600b36f513f7f4 | refs/heads/main | 2023-03-10T10:06:21.097103 | 2021-02-19T16:00:45 | 2021-02-19T16:00:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,406 | py | # -*- coding:utf-8 -*-
# @Time : 2020/3/3 14:51
# @Author : litao
# -*- coding:utf-8 -*-
# @Time : 2020/3/2 16:37
# @Author : litao
# -*- coding:utf-8 -*-
# @Time : 2020/3/2 11:07
# @Author : litao
# -*- coding:utf-8 -*-
# @Time : 2020/2/28 12:09
# @Author : litao
import requests
import json, re, datetime, urllib
f... | [
"593516104@qq.com"
] | 593516104@qq.com |
fc0532bcf40eaac7f3f64dbe0d5bd189c7dbc722 | c3d45539a1334e81af02f7a4dde89fe7943b61ab | /jsontut.py | cdabc57346ce1265db590e5dca51b331f0b93307 | [] | no_license | Total-tech/Pthon | fdeb0c217eb9aeabff95e89507060e2438364788 | 69aa4b120a9b555af0ce72e34ee277d9c23eee15 | refs/heads/master | 2022-11-10T01:51:05.786976 | 2020-06-26T14:18:45 | 2020-06-26T14:18:45 | 275,146,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import json
data = '{"var1":"harry","var2":"yovi"}'
parsed = json.loads(data)
print(parsed['var1']) | [
"anant.yovi2@gmail.com"
] | anant.yovi2@gmail.com |
57c882e9c375aedf3dda38c1aab0835d0396ef37 | e4e7116b205ce79526ec2246c94b165748ab461a | /addition.py | b0856a06505f8545aa8725a41d4f63e201c1e537 | [
"MIT"
] | permissive | pooja-solaikannu/jubilant-garbanzo | b96174aba11db835fc8e3681182e846fb21deebd | c6c3b46970b3fee2da5f660562097d00709ec4e2 | refs/heads/master | 2023-06-05T03:37:42.450101 | 2021-06-23T16:05:23 | 2021-06-23T16:05:23 | 379,660,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | def add_two_numbers(a, b):
c = a + b
return c | [
"pooja.solaikannu@gmail.com"
] | pooja.solaikannu@gmail.com |
54e559b154612aaaf2032b3856243aa5fdf1cca0 | a914a9b5e36cfc49a1fa3fecacdbe6212dd85e02 | /Predictor V3.0/NN.py | 01492eb338252b63db2e0f827eb432aab5c54fc8 | [] | no_license | polklabs/RedditGenerator | e956f6a28141ff107de00c09a928a42351665492 | d526ddc9e46689bc9ec655ac73e5896fd0462d50 | refs/heads/master | 2020-04-16T01:43:17.757830 | 2019-01-11T05:37:00 | 2019-01-11T05:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | import numpy as np
from keras.models import Sequential
from keras.layers import Dense, LSTM, TimeDistributed, Activation
import math
DATA_DIR = 'data/reddit.txt'
SEQ_LENGTH = 200
HIDDEN_DIM = 700
LAYER_NUM = 3
BATCH_SIZE = 128
GENERATE_LENGTH = 200
data = open(DATA_DIR, 'r', encoding='utf-8').read()
char... | [
"noreply@github.com"
] | polklabs.noreply@github.com |
d11f0943f08e8d318012aa36be71b8fab3149ec3 | e9cc17b38479616a28762d119f02fc348c0862f4 | /Lecture 19/Lecture19HWAssignment1.py | 15182e298533b90a261943e7aecbc551d7a7a3b8 | [
"MIT"
] | permissive | AtharvaJoshi21/PythonPOC | 8f419672480f7df974b4e75b1010c344be73c389 | 6b95eb5bab7b28e9811e43b39e863faf2ee7565b | refs/heads/master | 2020-04-16T07:39:15.256822 | 2019-05-05T15:48:01 | 2019-05-05T15:48:01 | 165,394,707 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | # WAP to accept a filename from user and no of lines to be copied to another file. Accept inputs as cmd line params.
# - Hint use "argparse" module
import shutil
import optparse
def CopyLines(srcFilePath, destFilePath, countOfLines=0):
srcFile = open(srcFilePath)
destFile = open(destFilePath, "w")
line =... | [
"joshi.atharva92@hotmail.com"
] | joshi.atharva92@hotmail.com |
edc3eb522ed87cd511fbbd1f029f3376d79b1645 | 474525154a4e1d48ef5242d1f44164d05399b145 | /tensorflow_probability/python/internal/auto_composite_tensor_test.py | 5f13ff5b55d2cb0cbbe2c4094627baed2881f04d | [
"Apache-2.0"
] | permissive | svshivapuja/probability | 9855737790f74a39169688fbfec9671deef804d9 | af7ccb22d972329633530c3b754ed1f49472f6a7 | refs/heads/main | 2023-07-17T04:14:53.703622 | 2021-08-30T17:47:06 | 2021-08-30T17:47:06 | 400,983,015 | 1 | 0 | Apache-2.0 | 2021-08-29T07:51:29 | 2021-08-29T07:51:29 | null | UTF-8 | Python | false | false | 26,047 | py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
fbfb1e835c20065b4cec19170dfd7fc7bd172c3c | 973042c86edd5b2a3edd406a15d34a92dc7b6921 | /pokemon_entities/admin.py | 16abdfd79e9ed5cfaba9939af57cd1415ecf0133 | [
"MIT"
] | permissive | KirillYabl/pokemon_map | 83ec8897d8b204a661758adb88f5b088f604eb1d | 704d7d171e3639c8e7694effd10f84087b8e5cad | refs/heads/master | 2022-11-22T04:19:23.688730 | 2020-07-25T10:26:00 | 2020-07-25T10:26:00 | 273,661,931 | 0 | 0 | null | 2020-06-20T07:40:33 | 2020-06-20T07:40:33 | null | UTF-8 | Python | false | false | 753 | py | from django.contrib import admin
from .models import Pokemon, PokemonEntity, PokemonElementType
class ElementTypeInline(admin.TabularInline):
model = Pokemon.element_type.through
extra = 0
@admin.register(Pokemon)
class PokemonAdmin(admin.ModelAdmin):
inlines = [
ElementTypeInline,
]
exc... | [
"kirill-yablunovskii@mail.ru"
] | kirill-yablunovskii@mail.ru |
53ddd555f8dc820d61c3622dbff8fbb70b16f8a9 | f9acbe1b91a1bda3db8e35df7518a68c397a7a89 | /pluserable/exceptions.py | 9a5fe767b68ad111f0ebd2c66ca9998235df15cd | [] | no_license | nandoflorestan/pluserable | 90abe1fac90a605c930928754e2d2a3e3e61f605 | bd524b14ff85a246cc5fb672aa05473a3a8006f3 | refs/heads/master | 2023-08-09T04:20:12.724982 | 2023-08-01T12:42:29 | 2023-08-01T12:42:29 | 33,750,793 | 4 | 1 | null | 2019-11-01T11:06:43 | 2015-04-10T21:08:13 | Python | UTF-8 | Python | false | false | 1,034 | py | """Custom exceptions raised by pluserable."""
from kerno.typing import DictStr
from pluserable.web.pyramid.typing import PRequest
class AuthenticationFailure(Exception):
"""Raised when handle and password do not match, during login."""
seconds: int # user must wait until next login attempt
class FormVal... | [
"nandoflorestan@gmail.com"
] | nandoflorestan@gmail.com |
275e18a3996d28f311296cd58ed15c2619180243 | d392323c233c75c495a3b86eabc59b672538fd95 | /lab14/lab14.py | b04a3c6a62f814225eb0c93bc954a274f530d51a | [] | no_license | zacharyzhu2023/cs61a | 0b4197dbf2eb6c54ad8bf1b1db97d89692d3d914 | 45358b3f5b9154d28ba72a8249b96f6390f0d615 | refs/heads/master | 2022-11-03T14:48:57.418887 | 2020-06-11T04:55:41 | 2020-06-11T04:55:41 | 241,757,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | def prune_min(t):
"""Prune the tree mutatively from the bottom up.
>>> t1 = Tree(6)
>>> prune_min(t1)
>>> t1
Tree(6)
>>> t2 = Tree(6, [Tree(3), Tree(4)])
>>> prune_min(t2)
>>> t2
Tree(6, [Tree(3)])
>>> t3 = Tree(6, [Tree(3, [Tree(1), Tree(2)]), Tree(5, [Tree(3), Tree(4)])])
... | [
"zacharyzhu@berkeley.edu"
] | zacharyzhu@berkeley.edu |
c95f313ade249ca67f5f1278c59aa0bdc2e5c1de | a5ce0460f7b1823ec04b857810910dca552347b6 | /Multiplier.py | 4a424ad6ff8d395f77ed82babe2a91ba82da5cc9 | [] | no_license | dobbse42/arithmetic | 0550f904ab4e08ded4821425c934b53beea6c66a | d5e2c1e4e79bf8446be7f073080226282fa1999e | refs/heads/master | 2021-11-13T16:48:36.287279 | 2021-10-31T04:43:37 | 2021-10-31T04:43:37 | 242,825,696 | 0 | 0 | null | 2020-02-24T19:36:07 | 2020-02-24T19:36:06 | null | UTF-8 | Python | false | false | 1,874 | py | import cirq
from Control_add import ctrl_add
# testing qubit setup
# circuit.append(cirq.H(q) for q in qubitsA)
# circuit.append(cirq.Z(q) for q in qubitsB)
# circuit.append(cirq.X(q) for q in qubitsOut)
"""
Pseudocode for full multiplier:
//step 1: toffolis
for(int i = 0; i < n; i++)
{
toffoli(qubitsSumnB(0), q... | [
"dobbse42@gmail.com"
] | dobbse42@gmail.com |
4df672237deb6b434fcf93c6671365f52998df9d | 92f47cdf958f4f3acc1f36972c49175f6a20d3cc | /que65.py | a19831b60733320891df0234f6cdb3378ad6b69c | [] | no_license | MAJEEDKAM/code-kata-problems | 1301490d3b3894316e0744450f60cd18f8a57e1c | 560ec4fafb8d1abb6285721a39db75f35591c86a | refs/heads/master | 2020-05-25T04:02:45.162126 | 2019-05-31T14:36:06 | 2019-05-31T14:36:06 | 187,618,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | x= input()
print(x)
| [
"noreply@github.com"
] | MAJEEDKAM.noreply@github.com |
5b5cc43e628169bafe2ab5b3918132340f8d47d4 | 66607c695a2e12d7640eef7b4641f79c34054ebd | /screenplay/wsgi.py | c50d453c4ea25b54a0f3b3bd32aeb0645dab4fc0 | [] | no_license | manikhanuja/screenplay-api | add56968cb131c36e8367291d192009daa16add0 | ef228e0cc208f567062688785c9d169897d205e5 | refs/heads/master | 2020-03-24T11:44:39.367493 | 2018-07-29T21:55:09 | 2018-07-29T21:55:09 | 142,694,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for screenplay 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"manikhanuja1981@hotmail.com"
] | manikhanuja1981@hotmail.com |
75607d3d646d6150c82a85472ab943c297ff0728 | 2a02eed888314a8c91cccd86c7f8ec572760d421 | /problem.py | 657cb6467504840aba017313c3faaf884dcb35bb | [] | no_license | uranix/tvd-dg | 46d4512737be6b1375992ff9e7020f9e7b9466b6 | de19c6da18e268331f0ed5ab1dd47fa254cd20e8 | refs/heads/master | 2021-05-06T04:17:51.591053 | 2018-02-21T12:54:21 | 2018-02-21T12:54:21 | 114,929,063 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py |
class Problem(object):
INNER = 0
LEFTBC = 1
RIGHTBC = 2
"""
Termination time
"""
@staticmethod
def T():
raise NotImplementedError
"""
Domain size
"""
@staticmethod
def L():
raise NotImplementedError
"""
A fuction returning the initial st... | [
"tsybulin@crec.mipt.ru"
] | tsybulin@crec.mipt.ru |
2be03e7acbcba9e13fb012254a8b99a4d5142e65 | ccf4a743d32a1babda3cbca1d0f622340179527f | /leetcode/2017Sep/ReverseInteger.py | 2377043163c8f2f740fc0cb1f3b428bed50a8272 | [] | no_license | zbo/zbodo | 678226a630eb49f2587d3b3cac62745930600188 | 98c7f3f6e76bd769ff0a6ed3f7117a49bbf015cd | refs/heads/master | 2021-05-19T02:57:40.375642 | 2020-04-23T07:35:50 | 2020-04-23T07:35:50 | 17,794,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | '''Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
click to show spoilers.
Note:
The input is assumed to be a 32-bit signed integer. Your function should return 0 when the reversed integer overflows.
'''
class Solution(object):
def reverse(self, x):
if x<-2147... | [
"zhu@mac-zhubo.local"
] | zhu@mac-zhubo.local |
258dc0059100be0f2f1b4b7be3d1e49e0f6ea074 | 65078e52efc716e1b427213d6e12056371fa3614 | /lab11/todo/todo-back/todoback/todoback/urls.py | 419446560754bbb2bdda8e134a82991b74019af1 | [] | no_license | Alimur4ikS9/Webtech19_labs | 5d54b0c31e5f3ef205b275ebd32f73789efaa6f3 | c64ff2be3a0fcfac4f0f54587bd725e19aaeacb8 | refs/heads/master | 2022-10-28T00:12:04.320858 | 2019-04-16T07:12:02 | 2019-04-16T07:12:02 | 181,624,153 | 0 | 1 | null | 2022-10-27T04:45:20 | 2019-04-16T05:58:50 | Python | UTF-8 | Python | false | false | 750 | py | """todoback 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-base... | [
"alinur.sabit.9@gmail.com"
] | alinur.sabit.9@gmail.com |
f102c62063372ca015e48a2acf1b4c2a3b0d94e8 | 52bd21812518ffb3af3cb4237cc337e98fbced3c | /Original Example Code/Starter_ z_Original Kaggle Code.py | 197cf68554c124ae90d3d35a22eb50c365b7b378 | [
"MIT"
] | permissive | etv-america/keras-corn | 337efa792a652830144b59938890dd59636063b9 | d65d8c1cbab9364c639b610d4f3aeeda941a772e | refs/heads/master | 2020-06-24T20:11:38.104770 | 2019-08-09T21:41:05 | 2019-08-09T21:41:05 | 199,074,388 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,818 | py | #!/usr/bin/env python
# coding: utf-8
# ## Introduction
# Greetings from the Kaggle bot! This is an automatically-generated kernel with starter code demonstrating how to read in the data and begin exploring. Click the blue "Edit Notebook" or "Fork Notebook" button at the top of this kernel to begin editing.
# ## Expl... | [
"ziada@nmsu.edu"
] | ziada@nmsu.edu |
af4fdfa3a9fcb189f8904e1b4439ff0138b37449 | f0e048b2398b42a3c3ec42925ab75f754cd8d214 | /mmdet/datasets/__init__.py | 64f8760cc4d253c5324b32a3ae05f8a9ac1b7094 | [] | no_license | myknowntime/RIDet | c56535f52ccf76e41bd181faf2bceb2f0e8fbd57 | 96bee9a7089a267855d494fbf9d2f2f78064c54e | refs/heads/master | 2023-08-14T23:46:32.849835 | 2021-10-06T14:29:31 | 2021-10-06T14:29:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | from .builder import build_dataset
from .cityscapes import CityscapesDataset
from .coco import CocoDataset
from .custom import CustomDataset
from .dataset_wrappers import ConcatDataset, RepeatDataset, ClassBalancedDataset
from .loader import DistributedGroupSampler, GroupSampler, build_dataloader
from .registry import ... | [
"mq_chaser@126.com"
] | mq_chaser@126.com |
b96eabaf1b89b7420a9ccfa64eb37b87da2a2380 | e63969b446eae3e971baae954d0b2b7283b1e20f | /draw_barcode.py | 6a6b4643735a5555fc4061f5f3440d90d01cf4a6 | [] | no_license | jinjiel1994/CIS210 | 7b751453efd662c0118fe344cd7a6cfa61d59f33 | 8cb73a67353a3633e307053f102eb978daf43529 | refs/heads/master | 2021-09-27T22:12:48.484776 | 2018-11-12T06:19:34 | 2018-11-12T06:19:34 | 109,931,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,561 | py | """
draw_barcode.py: Draw barcode representing a ZIP code using Turtle graphics
Authors: Jim Li ID:951532421
Credits: Starter code
CIS 210 assignment 3, part 2, Fall 2015.
"""
import argparse
import time
import turtle
SLEEP_TIME = 30
ENCODINGS = [[1, 1, 0, 0, 0],
[0, ... | [
"jinjiel1994@gmail.com"
] | jinjiel1994@gmail.com |
6174cf4ec932f9d51f5254f410611377765074c3 | 4fde32723e04cbb9c929c54dad55f4333ba48d90 | /tests/test_filesink_delay.py | c9019a01aede25e85021924fd72a1021d0fbf0b0 | [
"MIT"
] | permissive | Delgan/loguru | 29f1b64a4944886559d76e22029fe1e5c88e7fec | 80bcf4e25da9f79617ef23ca0fb29b100caac8f2 | refs/heads/master | 2023-09-03T20:18:46.892038 | 2023-09-03T16:19:15 | 2023-09-03T16:19:15 | 100,401,612 | 15,902 | 775 | MIT | 2023-09-11T14:19:42 | 2017-08-15T17:22:32 | Python | UTF-8 | Python | false | false | 3,435 | py | import datetime
import time
from loguru import logger
from .conftest import check_dir
def test_file_not_delayed(tmp_path):
file = tmp_path / "test.log"
logger.add(file, format="{message}", delay=False)
assert file.read_text() == ""
logger.debug("Not delayed")
assert file.read_text() == "Not dela... | [
"delgan.py@gmail.com"
] | delgan.py@gmail.com |
f193f858819d4a0f5eda79045596187844d5468a | 5a1132fac9bc79ee1deeb8ed7d428deeb7a5fb91 | /FuncionesLambda.py | aaedbfbb4731a31036732109ffa27a0467618329 | [] | no_license | mariacamila11/algoritmo-y-estructura-datos | 002e788bb4e39df7fd53e3780586039efaed7897 | 95d2a15a66e870313a63c642f252152fe11ba394 | refs/heads/master | 2023-01-23T04:27:56.221608 | 2020-11-24T19:15:03 | 2020-11-24T19:15:03 | 281,713,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | #Muestre en pantalla n veces un string ingresado
potenciador = lambda base, exponente : base ** exponente
print (potenciador (2,4))
#Muestre en pantalla n veces un string ingresado
mostrarPalabra = lambda palabra, cantidad_veces : print (palabra*cantidad_veces)
mostrarPalabra ('Me gusta programar en python \n', 15)
#... | [
"herreram.maria@uces.edu.co"
] | herreram.maria@uces.edu.co |
fef8be44fbe71dedb6bac7285358f66e64a58ea5 | e6fac8e0289d9f82369d2eb8e22bc175c6f51b3b | /Arcade/Intro/Level 3/All Longest Strings/code.py | efca5418d8e685435a8919240333d5b39189d5a6 | [] | no_license | Zahidsqldba07/CodeFights-9 | f361c15d24f96afa26de08af273a7f8f507ced4a | 6c5d152b1ad35cf178dd74acbc44ceb5fdcdf139 | refs/heads/master | 2023-03-18T23:52:43.274786 | 2017-05-12T07:28:08 | 2017-05-12T07:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | def allLongestStrings(inputArray):
length = len(inputArray[0])
strings = [inputArray[0]]
for string in inputArray[1:]:
if len(string) == length:
strings.append(string)
continue
if len(string) > length:
length = len(string)
strings = [string... | [
"hallosputnik@gmail.com"
] | hallosputnik@gmail.com |
c72c223dd78798e9b6e0be403eff60ba558c15d9 | 9a987c4c30c7dd9c314e89bb335a818500c20b11 | /accounts/Models/TrangThaiCXModel.py | 6fcbe0ce40fde6d14c9d055b1d32a0898a7044b4 | [] | no_license | tandaica0612/BackHTQLCX | 1e7d7306889ac9d16232bd4a7aff3113a6371f28 | 8e56cfb5b54ebfb7e3e6acdfdb2bace2a1e2918b | refs/heads/master | 2023-06-06T13:35:32.046042 | 2019-12-10T08:56:07 | 2019-12-10T08:56:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from django.db import models
class Trangthaicx(models.Model):
matinhtrang = models.IntegerField(db_column='MaTinhTrang', primary_key=True) # Field name made lowercase.
tinhtrang = models.CharField(db_column='TinhTrang', max_length=255, blank=True, null=True) # Field name made lowercase.
ghichu = models.... | [
"ptttien97@gmail.com"
] | ptttien97@gmail.com |
18ea2b4293e7049f258560047dad6b41caf8e47f | 6602f9dd684ab09686703d8d2da6c8f17762a3be | /dataserver.py | d074a2b88e935add962e263d37906400a6fc6c07 | [] | no_license | PradeepJampani/Fault-Tolerance-for-File-operations-Systems- | a0a0da1d9f69f50ab83f93622cb390ac01edc175 | 20e93250687f7eb359925381b59a6168c3aa46eb | refs/heads/master | 2020-09-06T06:57:49.251153 | 2019-11-08T00:59:10 | 2019-11-08T00:59:10 | 220,357,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | #!/usr/bin/env python
import sys, os
from sys import argv, exit
import time
def launch_servers(port_id):
cmd = ['xterm', '-e', 'python' , 'metaserver.py', '--port=%s' % port_id]
os.execvp('xterm', cmd)
if __name__ == '__main__':
if len(argv) < 1:
print( "usage: python dataserver.py <port for local... | [
"noreply@github.com"
] | PradeepJampani.noreply@github.com |
b10b37f6b93fd5bbad4230577984f72d46c5c7be | 65a709ed1228e014834bb8eae03e8f02ff3086dd | /RPI/webstreaming.py | 800fa0da489be3f7d1e7696e1023a53366d3e7fa | [] | no_license | GUSecLab/privDoorbell | bc9749c77e20beecf4252b5554f152cfb572e18d | ee8ca096259152955f17455a4e8b857d304fc0a5 | refs/heads/master | 2023-03-11T01:40:03.504441 | 2021-02-09T20:17:11 | 2021-02-09T20:17:11 | 285,355,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,657 | py | from detectors.motion_detection.singlemotiondetector import SingleMotionDetector
from detectors.face_detection.opencv_detection import OpenCVDetector
from cryptoutils import HMACSHA256, AESCipher
from tokenList import TokenList
from utils.helper import StringHelper
from utils.param import Param
import threading... | [
"fy92@georgetown.edu"
] | fy92@georgetown.edu |
9206c648fe0456aa59c3334211cc4850c0877167 | 3a5a3e4c1b12c860c8b584606aaea3b3c6c850a0 | /team/models.py | 0a51f1b5f6cfad9685206c6915c9893e2e744848 | [] | no_license | 519389812/teamwork | 4ca5599bb15796c6b5cabfa3b5ad53ed8a4f6689 | 726af6994ef27f12fa630bf9e22047dc54ed32e6 | refs/heads/master | 2022-11-06T14:21:43.752127 | 2020-06-16T03:21:21 | 2020-06-16T03:21:21 | 267,204,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from django.db import models
from user.models import User
class Team(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=20, unique=True, verbose_name="组名")
member = models.ManyToManyField(User, related_name="member", default=None, blank=True, verbose_name="成员")
... | [
"45133358@qq.com"
] | 45133358@qq.com |
6bc2c114bd9494ab951507009fe37deac87901f8 | 42cd507cb9be5811a1158b33f94451dbc9b07fa8 | /NMAR.py | 6bed6ee01743593ca09e1154974975b054a5b9d1 | [] | no_license | SuzanaM/Missing_data_imputation | 329e5e48a75624aebdf1514ba5a7bc0a60b8dc54 | 1125bd217dc18034c07b10997ae039699a9105ad | refs/heads/master | 2020-09-16T08:20:07.504935 | 2019-11-24T19:33:06 | 2019-11-24T19:33:06 | 223,710,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | import pandas as pd
from scipy.stats import norm
import numpy as np
# Read dataframe with all features, but without ID_Numbers etc.
#df = pd.read_csv(r"C:\Users\Suzana\Desktop\Iris\iris2.csv")
'''
# Get the number of features (#columns)
n_features = df.shape[1]
# For each feature get the threshold value
th... | [
"noreply@github.com"
] | SuzanaM.noreply@github.com |
6b8c90c7cb78e6418d1e0d60cd3461eef5e4cab4 | e3c68753f15076d6c158635c8bc80f8da1c4879e | /task1/calc.py | fe383a64bfa05c4cec3b8b87120ad6cd34fdfb5b | [] | no_license | IonianIronist/parallel_programming | fb793e2b06b51f502ad1a30103c727909b9a0784 | b7f044a0c6102cb6f774a9c00b0fdb233344a80a | refs/heads/main | 2023-04-30T09:25:25.088366 | 2021-05-24T17:19:04 | 2021-05-24T17:19:04 | 353,409,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | with open('output.txt', 'r') as output:
lines = [float(line) for line in output.readlines()]
with open('mean.txt', 'w') as mean:
mean.write(str(sum(lines)/len(lines)))
print(len(lines))
| [
"noreply@github.com"
] | IonianIronist.noreply@github.com |
4ef667f542aa3f59abd58194c4353b87fbb4098f | e73ccdc70b13183e786af35ed71444780eb6b79f | /django_oauth_web/dictionary_ui/apps.py | 3692009b6589912478491e1597842305f2a6ed14 | [
"Apache-2.0"
] | permissive | XSEDE/oauth-secured-api-example-web | 66e035cfbbd7669ed7011a0543d068c9a76dc214 | 980c86ad26a791b9ca42641104d053b2ea25bf66 | refs/heads/master | 2022-11-18T18:44:04.320824 | 2020-07-15T01:26:39 | 2020-07-15T01:26:39 | 259,757,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class ExampleUiConfig(AppConfig):
name = 'dictionary_ui'
| [
"navarro@anl.gov"
] | navarro@anl.gov |
8c4bb5334598d8e75ee55f9f3acc037310ae37ed | 15a5ec2c20de03708228962aee2b86d279778b57 | /test/readPdf.py | 2218777de874b1ae607247d509e9433d4706ae11 | [] | no_license | just4jc/gooseeker-master | c7605b19818254dcde04bceb6deb531aaa332872 | bb346484104f5da90289b745d3ae54f44d9bbc85 | refs/heads/master | 2020-06-07T16:17:01.402655 | 2019-01-28T15:27:46 | 2019-01-28T15:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # -*_coding:utf-8-*-
# 使用GsExtractor类的示例程序
# 访问集搜客论坛,以xslt为模板提取论坛内容
# xslt保存在xslt_bbs.xml中
from urllib import request
from lxml import etree
from gooseeker import GsExtractor
import html
# 访问并读取网页内容
url = "http://im.nju.edu.cn/teachers.do?type=1&mid=4"
conn = request.urlopen(url)
doc = etree.HTML(conn.read())
bbsExtr... | [
"1368306623@qq.com"
] | 1368306623@qq.com |
fde98085cf1161f3585aeffbfa7e64a80679eb5f | b320e9de9909afad97669603a6597a1ba2e8161a | /wsgi.py | 5a56a5f6d9a052d9efc142c86eaeaca4ba01ca16 | [] | no_license | nuprakruthi/Test-02-Django | 8973fe13a9a6b3facd0d8c36d5b9f329675a3e2f | c77c0cec4834ec0255a3c06aa80549e3c7b33a8f | refs/heads/main | 2023-02-26T20:54:12.913591 | 2021-01-25T10:33:51 | 2021-01-25T10:33:51 | 332,708,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
WSGI config for DEMOPROJECT project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"noreply@github.com"
] | nuprakruthi.noreply@github.com |
ef86fbfb19dccbac6f9dac33b709f68bf6d90bbd | 61215094b81485cf12e7a131e8b8666cc9f412fa | /yet_another_xor.py | 02d5985ac113d401c5949b80a558f0ec8147ec20 | [] | no_license | nielsen192/NeuralNetworks | 5191d988efa092216f0572e5b2476c80d2821624 | b9e7651ba7328c8e089c8e907466764ea677299f | refs/heads/master | 2021-01-22T05:37:59.179615 | 2017-06-27T18:21:13 | 2017-06-27T18:21:13 | 81,683,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,488 | py | import math
import numpy
import random
# note that this only works for a single layer of depth
INPUT_NODES = 2
OUTPUT_NODES = 1
HIDDEN_NODES = 2
# 15000 iterations is a good point for playing with learning rate
MAX_ITERATIONS = 2000
# setting this too low makes everything change very slowly, but too high
# makes it ... | [
"nielsen192@gmail.com"
] | nielsen192@gmail.com |
1a8d233b160af98d9e8e553c481daa6a571c6329 | 795f27d242b9270c97621aadb917eab71fd8bab0 | /localiserparcelle/ui_control.py | cbf146bef352f1cb9dbc6e9e8cbaf7872580f8fd | [] | no_license | MTES-MCT/Localiser_Parcelle_Adresse_BAN | 13aba15612f92f24ff41a9f05cca9a08c1acbe62 | 8b62e459a10d2a7da301b35aad200a336c6bf419 | refs/heads/main | 2023-08-26T03:49:19.669226 | 2023-05-10T12:37:59 | 2023-05-10T12:37:59 | 393,299,204 | 0 | 1 | null | 2023-04-15T16:28:33 | 2021-08-06T07:48:12 | Python | UTF-8 | Python | false | false | 1,534 | py | # -*- coding: utf-8 -*-
from qgis.PyQt.QtCore import QSettings, Qt
from qgis.PyQt.QtWidgets import QApplication, QDialog
from .ui_localise import Ui_Dialog
class ui_control(QDialog, Ui_Dialog):
def __init__(self, parent, fl):
QDialog.__init__(self, parent, fl)
self.setupUi()
def commune_adresse_disabl... | [
"jdaniel.lomenede@gmail.com"
] | jdaniel.lomenede@gmail.com |
34cb41ee1faf957ad2bf5a821690bd7d68185cf4 | 594fd699d9f8070c867b83b11881ca1f624b417b | /exercicios de tuplas_listas_dicionários/brasileirão.py | 3cca717cafd6222508e6adf35cec7761a7c98208 | [] | no_license | felipmarqs/exerciciospythonbrasil | f140df2c59b933cc0460d5986afc8c6ddd493556 | 6d02e85ae5986d3b20cfd8781174998d871eeb90 | refs/heads/master | 2020-04-04T05:25:23.751175 | 2018-12-12T18:44:38 | 2018-12-12T18:44:38 | 155,745,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | #Crie uma tupla preenchida com os 20 primeiros colocados da tabela do brasileirão na ordem de colocação. DEpois mostre. A)Apenas os 5 primeiros colocados. B)Os últimos 4 colocados. C) Uma lista com os times em ordem alfabética. D)EM que posição da tabeela está o time da chapecoense
tabela = ('Palmeiras','Flamengo','Int... | [
"noreply@github.com"
] | felipmarqs.noreply@github.com |
4e3b295752c62b6b152833fed4990de0c4d5ac64 | 9ab04c90c1c0536ec5da4e818c8b99f255377f4f | /bloodshare/migrations/0001_initial.py | 22b33099413e147af39fd94d3062566505ea62a3 | [] | no_license | ookapil/Blood-share | e1aae2387e610bbf414309908e909a86e5ccf966 | dc9011b7192240efb91776a6ae5ba35258d4f1f7 | refs/heads/master | 2022-12-22T05:52:10.555717 | 2020-10-01T16:27:15 | 2020-10-01T16:27:15 | 300,345,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | # Generated by Django 3.0.8 on 2020-08-26 10:50
import django.contrib.gis.db.models.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Districts',
fiel... | [
"kapilgyawali2055@gmail.com"
] | kapilgyawali2055@gmail.com |
1d5500a358e0d396c2a9ae091c82bfb7d427fb98 | daf15d76e95211205a93ab382aff4e9d9ca0c1d9 | /utils.py | 1fdb8b3baaea5c9ff5f8b2f608931731f9a37e4f | [] | no_license | wleddy/inventory | 59b032a3a7cbb9006e62912a8544dcb65dc7e143 | 81b616d3f08a25fd503bf94307fbfb6a66c993ed | refs/heads/master | 2022-05-17T14:32:21.260315 | 2022-03-22T23:11:47 | 2022-03-22T23:11:47 | 145,328,308 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | from flask import g
from shotglass2.takeabeltof.utils import cleanRecordID
from inventory.models import Item, Category
"""
Some utility functions
"""
def category_name(id=None):
"""Return the name of the category or None"""
from inventory.models import Category
rec = Category(g.db).select_one(where='i... | [
"bill@williesworkshop.net"
] | bill@williesworkshop.net |
4164bd4ad40235d013e5a99b269c698ea63a77be | 92f94e06f64840b7eb4461b6f877744a2ef7bb92 | /supportbee/client/meta.py | 8b05907e4b0e6e8255b1dae153812e8f0391f35a | [] | no_license | josuemontano/SupportBee-python-wrapper | 9fd7dea1aa91ec039436150f290c9550b110d818 | 8dbcdd8edae710e052d0ed882ad72039f8682514 | refs/heads/master | 2021-01-10T09:22:41.819086 | 2016-02-18T00:08:34 | 2016-02-18T00:08:34 | 51,601,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | import requests
import json
from urllib.parse import urlencode
TIMEOUT = 15
class SupportbeeClient(object):
""" Base SupportBee API client
"""
schema = None
root = 'https://{0}.supportbee.com'
def __init__(self, company, api_token, resource):
if api_token is None:
raise Error... | [
"josuemontanoa@gmail.com"
] | josuemontanoa@gmail.com |
ad19cd3c7f8b3f2582e05bb862dcc7fb28c93568 | af4261e05aed9d671274bc2514e943c47c441c43 | /LinearAlgebra_Function/5.07.ConjugateTranspose_H.py | 659508333be5c493587db5bc13ff9c151f689ddb | [] | no_license | HYUNMIN-HWANG/LinearAlgebra_Study | 5f0f226f2b30b17cda433e4c368b1abfcb8b8266 | 6e7bce4ba893f852c14ce81de8f4ab2673c1155e | refs/heads/main | 2023-06-21T08:46:56.620585 | 2021-07-16T16:13:56 | 2021-07-16T16:13:56 | 383,745,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # conjugate transpose : 켤레복소수를 구한 후, 행과 열 바꾸기
# Hermite (H)
'''numpy.matrix.H'''
import numpy as np
x = np.matrix(np.arange(12).reshape((3,4)))
print(x)
# [[ 0 1 2 3]
# [ 4 5 6 7]
# [ 8 9 10 11]]
z = x - 1j*x
print(z)
# [[ 0. +0.j 1. -1.j 2. -2.j 3. -3.j]
# [ 4. -4.j 5. -5.j 6. -6.j 7. -7.j]
# [ 8. ... | [
"hwangkei0212@gmail.com"
] | hwangkei0212@gmail.com |
19fcf897de250cba7c485263a8354f23b5219734 | 42c630dbbdb5bbacca816b9f02774111f5b8b18a | /sam.py | 137dc7ca8437511918de8129abec96049ec6ad26 | [] | no_license | samruddhipanda/HacktoberPython | 414600a10dd6bc8e765b0f101ca05e19b9902204 | db1ab2324a698953b166fe67990e398c613c4a1f | refs/heads/main | 2023-09-02T17:58:26.076356 | 2021-10-16T15:00:12 | 2021-10-16T15:00:12 | 416,482,052 | 1 | 0 | null | 2021-10-12T20:25:28 | 2021-10-12T20:08:08 | null | UTF-8 | Python | false | false | 42 | py | def sum(a,b):
c=a+b
return c
| [
"noreply@github.com"
] | samruddhipanda.noreply@github.com |
4a3e6cac5ee4dee5008231855a1c44d3db2bda4d | ca0ffc46bf9d5e23e25955150c47a04eb458bdff | /Restaurant Tables.py | f4a8925eb78fd2a973c1c36eca1f8b2ebea3036b | [] | no_license | Zeref-Draganeel/Esoetric-Code-Wars | 34030353239bf6d99e30381388d1d86a607b2b75 | d46c29089f9cf5f19371230f18a5d5273cdea13b | refs/heads/main | 2023-06-08T16:47:04.192345 | 2021-06-20T02:55:04 | 2021-06-20T02:55:04 | 375,865,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #https://www.codewars.com/kata/598c1bc6a04cd3b8dd000012/train/python
restaurant=lambda a,e,i:(lambda a=[a],e=[e],d=[0],s=[0]:[[(a.__setitem__(0,a[0]-1)if a[0]else[s.__setitem__(0,s[0]+1)if s[0]<e[0]else[s.__setitem__(0,s[0]-1),e.__setitem__(0, e[0]-1)]if e[0]else d.__setitem__(0,d[0]+1)])if v==1else e.__setitem__(0,e[0... | [
"noreply@github.com"
] | Zeref-Draganeel.noreply@github.com |
21a1c87a06483f8c24a079005b510c3a5860d632 | a8042cb7f6a4daec26b8cea6b7da2cb7cb880a84 | /1985_FindKthLargestIntegerinArray.py | b43eac41293bd4226935a1b8e3988f6d1b93e5f6 | [] | no_license | renukadeshmukh/Leetcode_Solutions | 0108edf6c5849946623a75c2dfd57cbf9bb338e4 | 1211eac167f33084f536007468ea10c1a0ceab08 | refs/heads/master | 2022-11-10T20:48:42.108834 | 2022-10-18T07:24:36 | 2022-10-18T07:24:36 | 80,702,452 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | '''
1985. Find the Kth Largest Integer in the Array
You are given an array of strings nums and an integer k. Each string in nums
represents an integer without leading zeros.
Return the string that represents the kth largest integer in nums.
Note: Duplicate numbers should be counted distinctly. For example, if nums i... | [
"renud1988@gmail.com"
] | renud1988@gmail.com |
8825b62ea568f9627ebeacfe785ab05dae3449fa | 74af0a1d517f2d19a307712619d68e35ed0188ee | /Server/app/ServerView/viewFileService/views.py | 47f6b8492e5275b05cbd71b5997e7065d2794ecf | [] | no_license | vaststar/Blog | 64b37ba5e22755e8af2892f95eeb777613316f50 | b0c237425e7147879da4dd336af4c4c31cfdcfde | refs/heads/master | 2022-01-08T17:49:12.750356 | 2019-05-17T07:44:13 | 2019-05-17T07:44:13 | 166,943,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | from flask import request,send_from_directory,jsonify,make_response
import os
from . import file_blue
from app.ServerConfig import config
from app.ServerView.Common import Common
from app.ServerView.Common.fileApi import FileApi
from app.ServerView.Common.Identify import IdentifyUtil
@file_blue.route("/<path:filePat... | [
"47029316@qq.com"
] | 47029316@qq.com |
459a628aa6950737f59cab5e203e43b2ddd0f087 | 72b97af0cfd006674ffc915431394bf3df8bf0e3 | /strings.py | 65411dc076959d2c604d9ce141b33c61b93f3268 | [] | no_license | vjohnk/mycode | 7a8bc6de60811c70ff80cfe2729c8847fa47ad3a | 31993516740ea95e8e45cc7166792432f6f97314 | refs/heads/master | 2020-06-02T22:31:27.151035 | 2019-06-11T10:58:11 | 2019-06-11T10:58:11 | 191,329,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | #!/usr/bin/python2
#servers='amazon'
#num=22
#print("We have serveral %s located at our premises there are %d" %(servers,num))
#from string import ascii_lowercase
#import itertools
#
#def iter_all_strings():
# for size in itertools.count(1):
# for s in itertools.product(ascii_lowercase, repeat=size):
# ... | [
"vjohnk@live.com"
] | vjohnk@live.com |
e3429e1f31250ed80a833c551c5c8cfef6f163f5 | bb48536ee0a23e6b2bbc7cefd74066b84aeaa269 | /com/colorDice.py | 98fbb1ad9d9fd9bd1cbfa1cba67f39c3bbc1ba77 | [] | no_license | ArmaniGiles/P | 7b614ba723148a39e13d2db0dba652a0107ad2a8 | 882158e9e6cd86972e9cb3ca81c8ac360aeb09cb | refs/heads/master | 2021-11-04T17:43:37.876942 | 2017-07-02T05:52:52 | 2017-07-02T05:52:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py | '''
Created on Jun 11, 2017
@author: moni
'''
import random
import com.fireboxtraining.ColorChart as cfc
from tkinter import Button, Toplevel, Tk
import tkinter
count = 0
diceList = [0,0,0,0,0,0]
class colorDice(tkinter.Button):
def __init__(self):
self.button = None
self.g()... | [
"bless727@gmail.com"
] | bless727@gmail.com |
a36d7acc965145842393a1ab069cfeca719024aa | 80233b655cfb55c7d2b9a75287fb47dbfb0b98c7 | /hparam.py | 00233918008f96d78dbb0cbe4966e6669c6d738f | [] | no_license | shawnspace/HRED | 905a848cf67aecdc383b09849fb633e788464369 | 081e6202cd74063d7c7df4f7cca4b002003f57c0 | refs/heads/master | 2021-09-17T06:59:25.950291 | 2018-06-29T03:24:00 | 2018-06-29T03:24:00 | 125,837,684 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | import tensorflow as tf
from collections import namedtuple
import os
# Model Parameters
tf.flags.DEFINE_string('word_embed_path','glove.txt','path to word embedding')
tf.flags.DEFINE_string('vocab_path','rg_vocab.txt','vocab path')
tf.flags.DEFINE_integer('vocab_size',18423,'vocab size')
tf.flags.DEFINE_integer("word_... | [
"noreply@github.com"
] | shawnspace.noreply@github.com |
92a555e5a3e31b736ee8baff1c440dda0fd8e1d2 | 77fc2f58f7cd040f5dc13c63135909e174563409 | /CCC/CCC_2020/Comp/Escape_Room_1.py | 93b1ae3830bd99ac1c2aa3d91ecf4de8ac3cd465 | [] | no_license | JeffersonDing/CompetitiveProgramming | 12cc8062f580589630daa58eb6b2f5b0061687c6 | 73ac3510f61691c4814e4cce76e14d95d352dec9 | refs/heads/master | 2023-06-25T05:04:21.967808 | 2021-07-24T17:50:34 | 2021-07-24T17:50:34 | 297,129,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import pdb
#pdb.set_trace()
M=3
N=4
factors=[]
flag=False;
aM=[[3,10,8,14],[1,11,12,12],[6,2,3,90]]
def factor(x):
factors=[]
for i in range(1, x + 1):
if x % i == 0:
if(x/i>M or x/i>N or i>M or i>N):
break
else:
factors.append([int(x/i),i])
def findExi... | [
"tyding2004@outlook.com"
] | tyding2004@outlook.com |
b7854c551d4a579b24e58bcd531521ea50733995 | 49e4556714d81697306acbb9030a4bfb09af1d46 | /uri problem solving/uri_1019.py | a8085054d63ad95c4651ca2fb8d1fb87bcdf9063 | [] | no_license | awalhadi/Problem-solving-python | ae03c20ac2c08deac89a2d9ed9876659ba49641c | ace55e47b759398c59c118d7f39f5256eb696a1a | refs/heads/main | 2023-07-18T04:09:10.004894 | 2021-08-29T01:35:14 | 2021-08-29T01:35:14 | 331,949,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | second = int(input())
h = int(second/3600)
rest = int(second % 3600)
m = int(rest / 60)
s = (rest % 60)
print("{h}:{m}:{s}".format(h=h, m=m, s=s)) | [
"awalhadi5@gmail.com"
] | awalhadi5@gmail.com |
1fa8a37a2e587d652686bd4725c0dfec77735587 | a02d4b3c879c047082ccc295607d6ec8d1130039 | /Katana-SuperTools/ArnoldLightGafferPackage/v1/ArnoldLightGafferUIDelegate.py | 4a627daf735d2b8bfff386d84adcd19ec2576a99 | [
"Apache-2.0"
] | permissive | iceprincefounder/selected-sources | 4fa97e439248d1b4bd9e6e59d0f80a7c33752761 | b225c529e02009b5f44bfb2891ef8f039b9a6d80 | refs/heads/master | 2022-05-22T03:24:45.329292 | 2022-03-13T09:22:12 | 2022-03-13T09:22:12 | 149,724,714 | 17 | 3 | null | null | null | null | UTF-8 | Python | false | false | 27,345 | py | # Copyright (c) 2015 The Foundry Visionmongers Ltd. All Rights Reserved.
from PackageSuperToolAPI import UIDelegate
from PackageSuperToolAPI import NodeUtils as NU
from PackageSuperToolAPI import Packages
from Katana import QT4FormWidgets, FormMaster, Plugins
from ArnoldLightGafferPackage import (
ArnoldSpotLight... | [
"iceprincefounder@qq.com"
] | iceprincefounder@qq.com |
16c45496b754d067a48d6cd52d2a82516dd693eb | 4ac92f2661a8a949725bc1246aff330cf7286038 | /test_process_voltage.py | 9d6d8e7bf203d4beb3639d8a02ceb8edcbfb4469 | [
"MIT"
] | permissive | matthew-huber/bme590hrm | 7aebf9ff91724927e4640bb7dc6842093d6a35fb | 8ecfd49fb2f374733e85ec262b4a7d9fa650f5e1 | refs/heads/master | 2020-04-01T03:15:12.107378 | 2018-10-30T22:12:53 | 2018-10-30T22:12:53 | 152,815,275 | 0 | 0 | MIT | 2018-10-30T22:12:54 | 2018-10-12T22:52:22 | Python | UTF-8 | Python | false | false | 543 | py |
from analyze_data import process_voltage
import pytest
from fileReader import load_csv
times, voltages = load_csv('./test_data/test_data3.csv')
@pytest.mark.parametrize("voltage_array,expected", [
([-0.19, -0.205, -0.21, -0.2, -0.195, -0.21, -0.23, -0.235, -0.245],
[1, 0.357142857, 0.142857143, 0.571428571... | [
"matthew.huber@duke.edu"
] | matthew.huber@duke.edu |
43fdc62ab7e5d11cfed8f1e4e2ccc8a2e1759c9d | cf197880ad947b1706ae2ca19fa7010cc2dd12b8 | /GUI/Tkinter/part_manager/db.py | 450b9aac89ce37d337ad3746245cc883560823c6 | [] | no_license | KevinMichaelCamp/Python-HardWay | 9b8adb5be31729da8f52c956b4d0638a79715013 | 25f21f4fb8934edb13649fea3d5d15033332a7eb | refs/heads/master | 2020-03-26T12:59:15.938322 | 2020-01-02T01:27:37 | 2020-01-02T01:27:37 | 144,917,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | import sqlite3
class Database:
def __init__(self, db):
self.conn = sqlite3.connect(db)
self.cur = self.conn.cursor()
self.cur.execute("CREATE TABLE IF NOT EXISTS parts (id INTEGER PRIMARY KEY, part text, customer text, retailer text, price text)")
self.conn.commit()
def fetch(s... | [
"kevinmichaelcamp@gmail.com"
] | kevinmichaelcamp@gmail.com |
b61b8d2cef0a56b2308755723d5c850c1c678bab | 06f7c5c8d7fcd24fa578f63c45bd88b54b60d1be | /63 Powerful digit counts.py | fdbdf8b5a37b7e6e4bff88b744fc0f20aeddbccd | [] | no_license | jericsinger/Euler | ffc39f30e75d4147c97c9b7f63b6c55d15b7c1a2 | 3aed12ddcc68b66677acd11aab77a3d93a098cf9 | refs/heads/master | 2021-01-20T11:31:28.844084 | 2014-02-20T02:05:37 | 2014-02-20T02:05:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | candidates = {}
count = 0
for length in range(1, 25):
candidates[length] = []
j = 1
result = 1
while len(str(result)) <= length:
if len(str(result)) == length:
candidates[length].append("%s = %s^%s" % (result, j, length))
count += 1
j += 1
result = j ** length
for i in candidates:
for j in candidates[... | [
"justin.e.singer@gmail.com"
] | justin.e.singer@gmail.com |
857be5adf6d32f3427f0abd128e6aa8eb807e25f | 56f57ce1d70cf9678ac1de48521c5020dcff2a1c | /test.py | 288cb2713db5e792292c9a76cbbcd611667c2564 | [] | no_license | Alton1998/Public-key-generation | 5dde21ebf707fb8d7557a16d29c567a166972506 | 550b3c501a69bbb2063f9764b333e506bd065dc7 | refs/heads/master | 2022-07-17T15:49:05.066813 | 2020-03-13T18:05:46 | 2020-03-13T18:05:46 | 240,910,825 | 0 | 0 | null | 2022-06-22T01:21:59 | 2020-02-16T15:01:08 | Python | UTF-8 | Python | false | false | 818 | py | import unittest
from public_key import PublicKeyCrypto
import numpy as np
# Class to test the PublicKeyCrypto Class
class TestPublickeyCypto(unittest.TestCase):
# Test the generator matrix
def test_generator_matrix_func(self):
test_matrix = np.random.randint(1,10,size=(90,90))
p=PublicKeyCrypt... | [
"altondsouza02@gmail.com"
] | altondsouza02@gmail.com |
f8afbc43f94b8d61637d0976391cc1a1036b1a02 | b9a23d1947f5f6328ca13c7e652499173f64da47 | /s_234/s_234.pyde | dd39037d773be3646c55f4750ee93eecf710933c | [] | no_license | berinhard/sketches | 96414a14ec40ca1281dcd8b2fec2c50db1d76e9a | f0e4be211397f205bcc6bd2c8b053b920a26bb62 | refs/heads/master | 2021-06-09T07:49:59.220785 | 2020-12-08T04:14:55 | 2020-12-08T04:23:43 | 137,092,663 | 41 | 15 | null | 2021-03-20T00:41:39 | 2018-06-12T15:34:49 | JavaScript | UTF-8 | Python | false | false | 1,251 | pyde | # Author: Berin
# Sketches repo: https://github.com/berinhard/sketches
# berin lib: https://github.com/berinhard/berin/
from berin.coords import draw_at_center, polar_coordinate
from berin.grids import BaseGrid
from berin.palettes import get_color_palette
from berin.save_frames import save_video_frames
from berin.shape... | [
"bernardoxhc@gmail.com"
] | bernardoxhc@gmail.com |
355e6320238decdd731882bf7977ec35bcd9ec96 | cce6364dd85b62782671cd8048873eede2045137 | /hot/300_lengthOfLIS.py | 2df58fe7fe491209d5fbddbd0f2e9ec832227ea2 | [] | no_license | gmt710/leetcode_python | ed647958440f66583b8717dae7bca49c516984da | 441623afee3713506b702c5fd462c7ba84b48442 | refs/heads/master | 2020-03-28T05:11:02.851792 | 2019-04-17T09:14:51 | 2019-04-17T09:14:51 | 147,761,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | class Solution:
def lengthOfLIS(self, nums: List[int]) -> int:
if len(nums) == 0:
return 0
dp = [1] * len(nums)
for i in range(len(nums)-1):
for j in range(0,i+1):
if nums[i+1] > nums[j]:
dp[i+1] = max(dp[i+1], dp[j]+1)
... | [
"noreply@github.com"
] | gmt710.noreply@github.com |
5faf980f7d12cf4bd18d8a24960480f7183138bd | 209bbccf90fb9dd403b3f296ec96e1f666704eda | /src/interaction.py | 1b6d558135fe98212c5bd55a35cfe714dd555b7e | [] | no_license | Kkun84/Practice-pytest | ae6dc5f3158090825695f145b7fea8c55a755e8c | 7b6bea8b583e6677aa10e50f873ce2637f89bf1e | refs/heads/master | 2022-08-21T21:28:05.573335 | 2020-05-25T01:19:24 | 2020-05-25T01:19:24 | 266,654,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | def send(message: str):
ok = receive(message)
if ok:
return 'success'
return 'failure'
def receive(message: str) -> bool:
print('received: {}'.format(message))
return True
| [
"kesuike84@gmail.com"
] | kesuike84@gmail.com |
b878b8374c7724ad0fe32cbcec554bed0fb6b28c | 46f0a175038041824e168b3fce53ae3477e31738 | /simplemapplot/__init__.py | 76ae4abf3232724548400738beae84860dace6b7 | [] | no_license | jleesnow/Tweet-Map | 815f6b3561cf21bf99d2e6a9cfa94984a70bba03 | bbcb5447a6b8d97a37f47dd1bbf8d88ef62575a0 | refs/heads/master | 2021-01-01T06:17:04.771473 | 2015-09-22T15:26:12 | 2015-09-22T15:26:12 | 42,899,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | from .simplemapplot import make_us_state_map
| [
"snowj3@students.wwu.edu"
] | snowj3@students.wwu.edu |
b177e6262b7577b0562e2d466f330451470a6895 | dbbf9fd571975c67684836a9507ffb0dec6b49bf | /tests/test_metrics.py | 4a22f3dc5eb72c0509d1111cbee721cea56e5177 | [
"MIT"
] | permissive | emuhedo/hisser | 22c2064d7b4aed99a045875461c8a85f6b3bf8fd | b4b963092a38a73713939f18505a90d9c8aedaa3 | refs/heads/master | 2020-03-31T16:40:43.363339 | 2018-09-18T20:12:05 | 2018-09-18T20:12:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | from hisser import metrics as api
from hisser.utils import make_key
def test_make_tree():
result = list(api.make_tree([b'boo', b'foo']))
assert result == [(b'.', b'boo'), (b'.', b'foo')]
result = list(api.make_tree([b'boo.foo.bar']))
assert result == [(b'.', b'boo'),
(b'boo', b'... | [
"baverman@gmail.com"
] | baverman@gmail.com |
a5c2a40abf352134456c61fce4a5b70db609744b | 8e167be7bbd0677cc51976826d5575d1ad6637f4 | /legacy/json_display.py | 07e8585c47557c6d9223a6bf757221fafb64de8c | [
"MIT"
] | permissive | kprasadvnsi/apicula | 04509e86402f5a570b096d34f792ee761962894c | 517c94c7cd9e19dd55a3a372a723400121cd41b3 | refs/heads/master | 2020-11-28T03:59:51.866180 | 2019-12-22T15:02:57 | 2019-12-22T15:02:57 | 229,697,807 | 1 | 0 | MIT | 2019-12-23T07:14:10 | 2019-12-23T07:14:10 | null | UTF-8 | Python | false | false | 528 | py | import sys
import json
import numpy as np
from bslib import read_bitstream
from PIL import Image
image = np.zeros([712, 2840], dtype="byte")
for fname in sys.argv[1:]:
print(fname)
with open(fname) as f:
try:
data = json.load(f)
except json.decoder.JSONDecodeError:
conti... | [
"pepijndevos@gmail.com"
] | pepijndevos@gmail.com |
17e65a05b9703447c6328c5ba85426b62aadec9f | c97cac88118ebd0814dec123e164dc74fef5773e | /omero_python_libs/omero_model_FilesetAnnotationLink_ice.py | 4afbd0ce4fb9ae127851099fd3ebb4f377fb0661 | [
"Apache-2.0"
] | permissive | nseyedtalebi/django-uwsgi-nginx | 285a7ed2c66b0ca2f25dd4fc79018f8deac1472d | 3163e9c7a88ed1298312d6a69a0d9eaf2f007e97 | refs/heads/master | 2020-07-08T22:01:42.082634 | 2019-08-22T16:37:18 | 2019-08-22T16:37:18 | 203,791,310 | 0 | 0 | null | 2019-08-22T12:33:28 | 2019-08-22T12:33:28 | null | UTF-8 | Python | false | false | 9,901 | py | # -*- coding: utf-8 -*-
# **********************************************************************
#
# Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# ***********************************... | [
"nima.seyedtalebi@uky.edu"
] | nima.seyedtalebi@uky.edu |
56faaf1025413066c3e894299e4ff857a737b8fd | c0eba907151b17d867cc079c4da85c904fd96f6e | /opencv_threshold.py | 08217424e5859063a6eaf4f2313cc32e6cea711c | [] | no_license | Inamdarpushkar/opencv | 5d11e7363e4379a3a23eacc0047f52bbcad6c4fa | 69c847660deb603f2877813cc12aad14ac933460 | refs/heads/master | 2020-04-04T01:08:33.524062 | 2018-11-28T04:31:00 | 2018-11-28T04:31:00 | 155,669,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | import cv2
import numpy as np
#importing an image
img=cv2.imread('bookpage.jpg')
#Setting a threshold of 12 (or some other value based on the brightness)
# as the image has low light threshold value is low. So any value above 12 is converted to hight
# DM value, 255 is max DM value.
retval,threshold=cv2.threshold(img... | [
"inamdarpushkar27@gmail.com"
] | inamdarpushkar27@gmail.com |
7d09590beebb9c945f1bcf5efbd6f72df73221a0 | 364f60e80b25251b57c79ec3c5c88065731320be | /resdk/tests/unit/test_decorators.py | 28ffe6332ad4275a9a551939065bebeacfd62dd8 | [
"Apache-2.0"
] | permissive | tristanbrown/resolwe-bio-py | 2c9f4463b1c82005cec209c1374ed4ac673658e7 | c911defde8a5e7e902ad1adf4f9e480f17002c18 | refs/heads/master | 2018-10-14T06:20:46.734255 | 2018-09-19T21:57:10 | 2018-09-19T21:57:10 | 110,161,960 | 0 | 0 | Apache-2.0 | 2018-09-19T21:57:11 | 2017-11-09T20:19:59 | Python | UTF-8 | Python | false | false | 719 | py | """
Unit tests for resdk/utils/decorators.py file.
"""
# pylint: disable=missing-docstring, protected-access
import unittest
from resdk.utils.decorators import return_first_element
class TestDecorators(unittest.TestCase):
def test_return_first_element(self):
@return_first_element
def test_func... | [
"domen@blenkus.com"
] | domen@blenkus.com |
e92c33170af2ea34bb7c4563777a9a051b82ae01 | 8a6617724716ba8cfeb82ec1fa69f60a3e67f280 | /chapter7.regex/tasks/version_of_strip.py | dbd3dc77c1bafe9cc9ce279f6c913c46d1a9c8a2 | [] | no_license | Jump1556/automatetheboringstuff | 6443d90abfa0c096c99ccf7b6294f8a55d74d5c9 | 71f6c92822549b55ba5ddc248d9373dbff1a813c | refs/heads/master | 2021-07-18T19:19:51.396608 | 2017-10-27T07:58:31 | 2017-10-27T07:58:31 | 105,357,804 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #! /usr/bin/env python3.
# version_of_strip.py - Check if the password string is strong enough.
import re
def stripRegex(s, toStrip='' ):
if toStrip=='':
toStrip = '\s'
pattern= re.compile(r'^{0}|{0}$'.format(toStrip))
return pattern.sub('', s)
print(stripRegex("hh hgts hh", "hh"))
| [
"anastasiia.kostashenko@gmail.com"
] | anastasiia.kostashenko@gmail.com |
36c233913754da01984f01cdeba0db5add042e73 | ec1ce8cc6133cc92ed48631f4c93e6768986894b | /venv_pycmd/bin/python-config | 13b4afa9cc3cd436d5f0405907b2a0e20c5632cf | [] | no_license | khankth/pycmd | b861377c92b521d590ba1134b056e61132f3128a | 5d5118e1c67364fbd24b547af560a08b9ca0a78e | refs/heads/master | 2020-03-08T09:46:54.900992 | 2018-06-18T08:04:04 | 2018-06-18T08:04:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | #!/home/adnan/MyProjects/pycmd/venv_pycmd/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ve... | [
"cn_adnan@hotmail.com"
] | cn_adnan@hotmail.com | |
103b6265ea51a32f709f6921cdce54653589b647 | 634e8b48ef6e989920ac97c92ed0b01de76b06e9 | /.venv/Lib/site-packages/stdnum/do/rnc.py | ddc6c3b6fb3824b8fac5afc7bd9ec1b77b84b833 | [] | permissive | heltonteixeira92/Proj_teste | 7ff89f7382d307c7bb9778f7dfed7252ac300441 | cf819aa737cd0572f591e1136df9831267d46815 | refs/heads/master | 2023-05-15T07:40:51.291345 | 2021-06-13T22:06:46 | 2021-06-13T22:06:46 | 336,849,472 | 0 | 0 | MIT | 2021-02-09T16:02:12 | 2021-02-07T17:42:01 | Python | UTF-8 | Python | false | false | 6,947 | py | # rnc.py - functions for handling Dominican Republic tax registration
# coding: utf-8
#
# Copyright (C) 2015-2018 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
#... | [
"heltonteixeiradesouza@hotmail.com"
] | heltonteixeiradesouza@hotmail.com |
f0c1e0f1abc82a92b48b4fa94f5cb6e2a65dda5b | a0a839332d41621056567d2082b55899228ffd51 | /taskI.py | 6b61445e07c58a9323d397a2f090c25e00ba391b | [] | no_license | Oxbech/F2020_RES_project_handin | 44970ef01b808cf2cc216aa3af26ae9d85c98423 | 78c51617897bd4b8cbb851106eb76cd25678d24a | refs/heads/main | 2023-02-23T13:44:17.323976 | 2021-01-27T22:13:29 | 2021-01-27T22:13:29 | 333,574,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,277 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 7 14:04:30 2020
@author: Anders
"""
## ## ## ## ## ## ## ## IMPORTING PACKAGES ## ## ## ## ## ## ## ##
import pypsa
import pandas as pd
import matplotlib.pyplot as plt
## ## ## ## ## ## ## ## IMPORTING DATA ## ## ## ## ## ## ## ##
# electricity demand ... | [
"noreply@github.com"
] | Oxbech.noreply@github.com |
e0926f4cf8c7dee547f37e59744ced9841b8d659 | ca1bd3e57699329b533d70789b607a8fc6d3c73d | /tree/inorderTraversal.py | ea0ba6088b15a814cfc655f8b992b4ea687fb6bf | [] | no_license | msps9341012/leetcode | 6719054e049b51c89fd8dab97f25109645e79805 | 2647ac891501f479ee31b223405e209b0347fac0 | refs/heads/master | 2020-05-30T03:54:28.420608 | 2019-10-04T04:03:28 | 2019-10-04T04:03:28 | 189,524,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | def inorderTraversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
ans = []
stack = []
while stack or root:
if root:
stack.append(root)
root = root.left
else:
tmpNode = stack.pop()
ans.append(tmpNode.val)
... | [
"a0113130@gmail.com"
] | a0113130@gmail.com |
ff8475b3faf9faea915e08d1cb1f7e285a8bed96 | 84b68b5dc1df9a0d88c38f7f4de3dbe371b08358 | /cars/migrations/0005_auto_20210616_1921.py | 286875a7eb9f80ae8a27a795ea879f720944045d | [] | no_license | alisamadzadeh46/car | e489c548343096ca9c547c693c5339569f221b4e | 057ea3d35cf86d44530683e06c963a54771aa386 | refs/heads/main | 2023-05-28T10:44:36.574886 | 2021-06-16T16:58:09 | 2021-06-16T16:58:09 | 374,656,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | # Generated by Django 3.2.4 on 2021-06-16 14:51
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cars', '0004_alter_cars_features'),
]
operations = [
migrations.CreateModel(
name='Message',
fields=... | [
"alisamadzadeh46@gmail.com"
] | alisamadzadeh46@gmail.com |
e4360a25775d75b4dc56801c0c489f5de3649459 | 9039324600f488ce75e29c023095f321fac339a2 | /main.py | 73e1476eb80db1616e68b39a9fc6e19965fb906f | [] | no_license | shubham25121999/Intro-Bot | d29af209d4b327f4eb7a5d00ad8ce70b013885de | 24c825700a548f42138c8c361d868728666634e2 | refs/heads/main | 2023-08-13T23:16:57.419155 | 2021-09-15T12:06:01 | 2021-09-15T12:06:01 | 406,742,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | import discord
from discord.ext import commands
import os
from keep_alive import keep_alive
intents = discord.Intents.default()
intents.members = True
client = commands.Bot(command_prefix="!", intents=intents)
my_secret = os.environ['TOKEN']
@client.event
async def on_ready():
print("We are logged in as {0.user}".f... | [
"shubhamchauhan058@gmail.com"
] | shubhamchauhan058@gmail.com |
57e736dab3fabc755212d3a77678288b744088d2 | 0359deb1a798cb50934612d35df087d489ebe423 | /average_2.py | a08f32e58b484bd8af86e36335ee36ff9ed852ca | [] | no_license | lcdlima/python_projects | 42595f07db74a5adc1ccc05f996d21138ff9ece6 | b571d764902fdcab6fe6250623b079b637929e42 | refs/heads/master | 2021-01-02T07:26:49.817364 | 2020-10-02T20:45:24 | 2020-10-02T20:45:24 | 239,547,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Read 3 values, in this case, variables A, B and C, which are the three grades of a student. Next, calculate the student's average, knowing that grade A has weight 2, grade B has weight 3 and grade C has weight 5. Consider that each grade can range from 0 to 10.0, always to one decimal place.
A = float (input ())
B ... | [
"leticiacristinaduartelima@Leticias-MacBook-Air.local"
] | leticiacristinaduartelima@Leticias-MacBook-Air.local |
07ed30f499f2a8a1684498705f5d91aafd7471af | 829de50fb2355053e4f142d77eb1e7b6794e25ed | /markus/turtle_from.py | 25812782074d6aee5ac3e577c613997fd7a7fb90 | [] | no_license | cp-helsinge/2020-2 | 9ab25df29ce3a718575bcda667dd158fd202d4f6 | 21249c2f31f644aa4736e4bcc3790eb4a31197ca | refs/heads/master | 2023-01-22T12:33:34.877191 | 2020-11-24T16:52:31 | 2020-11-24T16:52:31 | 291,752,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | import turtle
from opg4 import sol
turtle.hideturtle()
turtle.speed(0)
sol(50, 75, 100)
turtle.exitonclick() | [
"PythonKursus@f.hoth.dk"
] | PythonKursus@f.hoth.dk |
7bef4d422e98a9753b624259790937db203bcc73 | 7b6ed28d1f1c4966e5dca086ceb3c20ac4beea47 | /run.py | d2a02cf78b47b200e310acce0d9c7f02de17316f | [
"MIT"
] | permissive | snobu/raw-mqtt-to-azure-iot-hub | 818d60e551941dff49079f17884678fb426616e7 | b8013732d880ae734d8f24d1f1e40a0bc29ca2bf | refs/heads/master | 2023-02-09T22:11:01.787118 | 2023-01-28T15:00:20 | 2023-01-28T15:00:20 | 206,485,647 | 4 | 1 | MIT | 2021-11-05T19:17:16 | 2019-09-05T05:55:51 | Python | UTF-8 | Python | false | false | 5,776 | py | #!/usr/bin/env python3
import sys
import ssl
import certifi
import time
import json
import re
import paho.mqtt.client as mqtt
from colorama import init
init()
from colorama import Fore, Back, Style
# Set Device ID, should be the same as in the SAS token
DEVICE_ID = 'RawMqttDevice'
# Generate the SAS token with azure-... | [
"foo@snobu.org"
] | foo@snobu.org |
d41e913021a7c3a702cecbb85707e0cc13298952 | 3754976626969ea80dddf7461492124a980afdf5 | /ch03_polls/polls/urls.py | 4eb5d298c7f69b6fae39e3874f78b685a8f675cf | [] | no_license | sujinkim123/bookmark | 1b9b3e533acd8f1ae9eaa4b561c85b7e75b01e4f | 63c9cd53b355e8acadf29115c8f6debd985cc949 | refs/heads/master | 2022-11-07T04:47:22.272239 | 2020-06-25T19:09:49 | 2020-06-25T19:09:49 | 261,143,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | from django.urls import path
from . import views
app_name = 'polls' # 앱의 이름공간을 지정
urlpatterns = [
# ex: /polls/
# path('', views.index, name='index'),
path('', views.IndexView.as_view(), name='index'),
# ex: /polls/5/
# path('<int:question_id>/', views.detail, name='detail'),
path('<int:pk... | [
"alicekim0429@naver.com"
] | alicekim0429@naver.com |
20fb46422e84edef2c7809df4a941b1caec43a31 | 93e8d6dbadd1dff81169c9c1ede11b604c8614f0 | /Prob_2.py | 50b8717b062c85188b97e3504a240deac50ee203 | [] | no_license | nabendu96/assignment_4 | 2f40449163da91df11689e42a6fe867093b173af | c3faaa061dca4ea8bcd5863642f9cb3992d12133 | refs/heads/master | 2022-09-18T17:19:07.196021 | 2020-06-02T18:41:52 | 2020-06-02T18:41:52 | 268,880,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 24 07:55:01 2020
@author: nabendu
"""
import numpy as np
import matplotlib.pyplot as plt
n=10000
numpy_random=np.random.rand(n) #generating uniformly distributed random numbers between 0 and 1 using numpy.random.rand()
plt.hist(numpy_random,range=... | [
"noreply@github.com"
] | nabendu96.noreply@github.com |
01950a3e9d1df0514903d2214dca8d8a31a4269a | 72e598db1227386679c6b67e5244bbdf0db38574 | /index.py | 1c9f7bd93fbccadd2cba3a85f100be3b2c218e86 | [] | no_license | Neetika23/Liver-Patient-Prediction | 3c4e49e39395908a2db2ddca2d64564e46d5b888 | 8ad09470b3e538b517e3f6bc3c5c013bcf124b2b | refs/heads/master | 2022-11-18T16:03:32.181911 | 2020-07-01T08:28:17 | 2020-07-01T08:28:17 | 276,318,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | # Necessary Imports
from sklearn.metrics import accuracy_score()
form sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
form sklearn.tree import DecisionTreeClassifier
from sklearn.neighbors import KNeighborsClassifier as KNN
from sklearn.ensemble import VotingClassifi... | [
"noreply@github.com"
] | Neetika23.noreply@github.com |
76f52ded389704cc1f03f9da619f641d2905a688 | 28be9f00d885ec8db4ad0bf9b5ae024f66739723 | /Circle Turtle.py | 213c8a084555cae43183c807f9dc0887f6407709 | [] | no_license | Annahariprasad/Python-Programs | 5e6be33e487e6bae9de3d12d13e22af7d697e7df | 8f025dc687eb68b0feeaf6c729ae38cb098e9da3 | refs/heads/main | 2023-03-11T12:38:06.466675 | 2021-03-04T07:16:43 | 2021-03-04T07:16:43 | 334,987,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import turtle,math
def circle(t,l,a,n):
for i in range(n):
t.fd(l)
t.lt(a)
t = turtle.Turtle()
t.color('red','blue')
t.pensize(2)
r = int(input('Enter radius : '))
n = int(input('Enter no. of parts : '))
cir = (2*math.pi*r)
l = cir/n
a = 360/n
t.begin_fill()
circle(t,l,a,n)... | [
"noreply@github.com"
] | Annahariprasad.noreply@github.com |
28298fdfa04aed081723678be28c5cd0d2073613 | 8db482694e8574a7a6481eb0862c3992f91b76ee | /smiconverter.py | b572d6305758382afcc3d024806053c5d521a4ad | [] | no_license | mlacayoemery/pointpatternanalyst | e0b6d16100634811f513a3ed019085fc7ffae208 | 3c2fad93818a93ada0efde7518d1fc1a5d5e1be3 | refs/heads/master | 2021-03-12T23:36:26.207083 | 2018-06-20T06:48:53 | 2018-06-20T06:48:53 | 32,144,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import sys
import os
inFileName = sys.argv[1]
outFileName = sys.argv[2]
inFile = open(inFileName)
outFile = open(outFileName, 'w')
line = ""
while line != "##":
line = inFile.readline().strip()
#header
inFile.readline()
#message
start = int(inFile.readline().strip().split("\t")[0])
outFile.... | [
"mlacayoemery@gmail.com"
] | mlacayoemery@gmail.com |
be642c1f6326fcf18c8e37129bcb078a5b410449 | 9fe65faced0555d02114f1f54fc008c7e1da21a4 | /hw-AES-Protected/TVLA.py | d1f748c050bc4f36495c611531c8ef09333781a3 | [] | no_license | yuan9/Boostrap-TVLA | 97baa115dd82d3b49b7c145edbaa23cdf8e06e86 | ef40ac2551bc0a2effc6b097997b2bb15f64178a | refs/heads/master | 2023-03-16T04:49:16.074787 | 2020-04-16T07:05:03 | 2020-04-16T07:05:03 | 215,585,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,531 | py | from __future__ import absolute_import, division, print_function, with_statement
import numpy as np
import os
import re
import struct
import functools
import time
import matplotlib
import matplotlib.pyplot as plt
#import pandas as pd
#import tensorflow as tf
#import keras
#import aes_internals as aise
import dwdb_r... | [
"yuan9@vt.edu"
] | yuan9@vt.edu |
10e1c06dfbfef952c8b3cecace20bcce32eb19a6 | 0dd5f2e1ce43439183e3ee0b9014973ad3b5de90 | /apps/funcionarios/models.py | 8383e13f4fe627ab83630ae4ebece978bdf26478 | [] | no_license | giusepper11/Gestao_RH | 0c4b997f6d0a589c79874cc490ee28cf16f12832 | 58694635e7b7c5b202319ff47b0cc00702da91b1 | refs/heads/master | 2020-04-10T20:22:41.063922 | 2019-01-23T02:59:04 | 2019-01-23T02:59:04 | 161,265,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django.contrib.auth.models import User
from django.db import models
from apps.departamentos.models import Departamento
from apps.empresas.models import Empresa
# Create your models here.
class Funcionario(models.Model):
nome = models.CharField(max_length=100)
user = models.OneToOneField(User, on_delete=m... | [
"giusepper11@gmail.com"
] | giusepper11@gmail.com |
636dcdbc6cfa15bf949d0c6be7d420e7d67a25cb | 80b7f2a10506f70477d8720e229d7530da2eff5d | /ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fabricpath_template.py | 94c5673175e4b1c21d8fc7ffb4ec27e628dacbc8 | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 10,057 | py | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class Fabricpath(Base):
__slots__ = ()
_SDM_NAME = "fabricpath"
_SDM_ATT_MAP = {
"OuterdestinationAddressMacformat": "fabricpath.fabricpathHeader.outerdestinationAddress.macformat-1",
"DestaddEndnodeid1": "fabr... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
dcafe79375adc524d12bb7e48c9d8ba0ff2ce6c1 | ffae452a114d892e40ecba0302f82745492342c3 | /blog/migrations/0012_auto_20180721_1913.py | 55ad4a2754544a949c919e44ea6a44c1ac571d67 | [] | no_license | Shoyee/blogproject | 6f26066fe75628c30620c3111687c9fbcdbac2af | 5e2787123d3362a497b811ad930fc018ee6e9514 | refs/heads/master | 2020-03-23T14:41:06.886517 | 2018-08-03T12:23:13 | 2018-08-03T12:23:13 | 141,690,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-07-21 11:13
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blog', '0011_auto_20180721_1844'),
]... | [
"shuoyu_2008@163.com"
] | shuoyu_2008@163.com |
c892f85ea5a0f83de3f24946486aae49a94a3bdb | 14dc9cabea198c64b83c8d08e41d22b34bd56ac9 | /woran/settings/production.py | 5e4b8ad8b4a6aea41da3d881c5dfb89018e9df66 | [] | no_license | Ibrokola/Woran | ae62501dd32f1137128de12e3de5c9417808c678 | 31c32ebfb106c0218e62fe4133db46378d17578e | refs/heads/master | 2022-12-11T07:28:05.398690 | 2019-10-18T19:46:07 | 2019-10-18T19:46:07 | 93,820,295 | 0 | 0 | null | 2022-12-08T00:00:31 | 2017-06-09T04:56:57 | CSS | UTF-8 | Python | false | false | 4,837 | py | import os
from woran.aws.conf import *
from decouple import config
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Quick-start development settings - unsuitable for production
# See https://docs.djangop... | [
"babskolawole@gmail.com"
] | babskolawole@gmail.com |
7d943eea910d9da73e0ee05cfa01110474597de7 | 875ffe8a76a80c9fe221f6c750cd1051115d190d | /plugins/lib/scope_data/__init__.py | cef03f564b2c51e5aaacd24c8f3dbe5e02248f09 | [
"MIT"
] | permissive | templarundead/PackageDevPlus | 5f74434fe46b94557b64dbe4420520fb15099111 | 6b6aeb803784a6060624fb17999f87fb1cab5ab0 | refs/heads/master | 2023-05-11T17:44:39.436195 | 2023-05-08T15:36:38 | 2023-05-08T15:36:38 | 128,805,121 | 0 | 0 | MIT | 2023-05-10T04:54:16 | 2018-04-09T16:52:46 | Python | UTF-8 | Python | false | false | 3,835 | py | import logging
from .data import DATA
__all__ = ["COMPILED_NODES", "COMPILED_HEADS", "completions_from_prefix"]
logger = logging.getLogger(__name__)
class NodeSet(set):
"""
Methods:
* find(name)
* find_all(name)
* to_completion()
"""
def find(self, name):
for node in... | [
"fichtefoll2@googlemail.com"
] | fichtefoll2@googlemail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.