blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eed232cf72c6cc87bcfd2728fa6e094e49925394 | b18526cc8a225ae71b3179b3bf62224a1ed6ff9c | /main.py | 74fc341ff188001a3351afc364901ac8a7ec1968 | [] | no_license | hodgie1989/MPG_Calulator | c629927243606226f68294043829af523022d5dd | b701536772c6296b7d5f2b4ae2f21dda1ca270d4 | refs/heads/master | 2023-06-26T11:45:03.350658 | 2021-08-03T19:57:59 | 2021-08-03T19:57:59 | 392,439,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from classes.calculator import Calculator
class Main(Calculator):
pass
Calculator.mpgcalculator()
milesTravelled = int(input("Enter the number of miles travelled: "))
litresOfFuel = int(input("Enter the number of litres added: "))
# def mpgcalculator():
# litresInGallon = 4.546
#
# milesTravelled = int... | [
"hodgie1989@hotmail.co.uk"
] | hodgie1989@hotmail.co.uk |
ab008b3c405d8e404459c6029db7e074542b8c7a | 45b2fd7c9eacff80c79be02b5202ed87da08163e | /Class, Constructor.py | 9bc9ceb9458cc805ef945a75129e5084989a77b4 | [] | no_license | Turan-Chowdhury/Python-Code | 8938a29fd35b9af91e3ff0da3169fe3b8b37dca0 | 60afbc5914ddf3342c66146c17c4656cb4c6627a | refs/heads/main | 2023-07-17T04:39:48.186707 | 2021-08-26T09:44:29 | 2021-08-26T09:44:29 | 400,117,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | class student :
roll = ""
gpa = ""
def __init__(self, roll, gpa) :
self.roll = roll
self.gpa = gpa
def display(self) :
print(f"Roll: {self.roll}, GPA: {self.gpa}")
rahim = student(101,3.75)
rahim.display() | [
"turanchowdhury01@gmail.com"
] | turanchowdhury01@gmail.com |
f129c103ade98b9c151721146c3cefac3efbbb39 | 7c2a976cce8c2b32d644b079c9c5fa3199373491 | /list_qsort.py | e5f38565187224fc079d5e0652fb6f166feab9d3 | [
"Apache-2.0"
] | permissive | xartisan/Algo | f7bbf8627a4cfcc43d952f34482b5691cfd1fbf6 | 6ba61c84f9f111ba6c71ec4d7ce41ee8734d590d | refs/heads/master | 2021-04-12T08:41:32.261209 | 2018-05-17T23:11:31 | 2018-05-17T23:11:31 | 126,271,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | # quicksort algorithms for linked list
class ListNode:
def __init__(self, val, next=None):
self.val = val
self.next = next
def __repr__(self):
rv = str(self.val)
if self.next:
rv = rv + ' -> ' + repr(self.next)
return rv
def qsort(start, end=None):
if... | [
"codeartisan@outlook.com"
] | codeartisan@outlook.com |
adb75b78002ad6c100ea99bd5d11cc16f6376169 | 7d47a4b2284295d27bb1d6d7f638b412821a527d | /Recognition-Algorithms/Face Recognition using FaceNet/script/detect_faces.py | 1e14a9be252afb9fda8f99f02b5d1ec5d0d40d0d | [
"MIT"
] | permissive | aryasoni98/Face-X | e15e134e4670c8b05711438714ff104ae48d0fb3 | 898ec1391809aa8952a4898ff9157f704bedaa7e | refs/heads/master | 2023-07-20T15:36:27.510268 | 2021-08-24T22:43:12 | 2021-08-24T22:43:12 | 399,619,173 | 1 | 0 | MIT | 2021-08-24T22:19:48 | 2021-08-24T22:19:47 | null | UTF-8 | Python | false | false | 831 | py | import os
import cv2
face_cascade_path='../data/cascade/haarcascade_frontalface_default.xml'
images_path='../data/images/'
def detect_faces():
face_cascade=cv2.CascadeClassifier(face_cascade_path)
os.chdir(images_path)
if len(os.listdir())==0:
print('\n\nNo Images Found')
... | [
"noreply@github.com"
] | noreply@github.com |
948fd7847c5cd59d02192e55b5ce7af68fdce4c5 | aa265e03e73f718d4008cfe30ada7ee32c852eec | /other/cf_2015_morning_easy_b.py | 3e3d8ddb67e1f17d63dff6d77afb83b3bb7f17fe | [
"MIT"
] | permissive | ryosuke0825/atcoder_python | 4fb9de9733cd9ef41c2ad9ad38b3f190f49d3ad5 | 52d037d0bc9ef2c721bf2958c1c2ead558cb0cf5 | refs/heads/master | 2023-03-11T22:47:56.963089 | 2023-03-05T01:21:06 | 2023-03-05T01:21:06 | 181,768,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | N = int(input())
S = input()
if N % 2 != 0:
print(-1)
exit(0)
half = N//2
ans = 0
for i in range(half):
if S[i] != S[i+half]:
ans += 1
print(ans)
| [
"ayakobon@gmail.com"
] | ayakobon@gmail.com |
52a9a6b1691869ea778e3a6ad66c30964991100e | 7e1edc41720ba019b7e13aeb43bb3e46645a6fd3 | /chinese_dict_baidu.py | 5d2a6bc66bbff7de02d030e1edf7cd9b2b88ea61 | [] | no_license | kitian616/Chinese_dictionary | 8f9e20e5998f6d9b1c2f86e29a70ec3935012476 | 9986312548d0d2b3e697977f6d77cdb62275c958 | refs/heads/master | 2020-12-24T13:20:27.369869 | 2015-05-13T12:18:23 | 2015-05-13T12:18:23 | 28,746,249 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,604 | py | #Python3 ONLY!
import urllib.request
from html.parser import HTMLParser
from xml.etree import ElementTree
from bs4 import BeautifulSoup
class DictHTML():
def __init__(self):
self.charset ='utf-8'
self.html_doc =''
def _getKeycode(self, key): ##将汉字转为ASCII码,用于url搜索关键字。私有函数 turn Chine... | [
"kitian616@outlook.com"
] | kitian616@outlook.com |
70b5c7ca45f69e8da11240cac649f32f15a9760b | 4ca2f30b47bbeead05f5ce629ceeb8aaa8d6fc18 | /fundamentos-projetos/area_circuferencia_v13.py | b99988b58a1e6403c3402dfa6f35a72f53a542a1 | [] | no_license | feliperx/learningPython | 88dcb82d8189f352442884ee9b6c455fdf095ed6 | 16cec7267e44589abfcc5998f7d23e188bfe04b4 | refs/heads/main | 2023-03-28T10:56:01.113407 | 2021-03-28T15:44:14 | 2021-03-28T15:44:14 | 352,370,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | from math import pi
import sys
import errno
def circuferencia(raio):
return pi * float(raio) ** 2
def help():
print('\nÉ necessário informar o raio da circuferencia!')
print(f'Sintaxe: {sys.argv[0][:-3]} <raio>\n') # retorna o primeiro argumento, sem os 3 ultimos caracteres '.py'
if __name__ == '_... | [
"feliipe.xaud@gmail.com"
] | feliipe.xaud@gmail.com |
c39f409291e74d68a4badadc9238eb8efbfde442 | 49bcf6db45a26fe2bea16fb7aabcfbe46ff510a3 | /scrapy_shiyanlou_repository/scrapygithub.py | 2e58a2d3703584123586e3fc16f35a99a23678ed | [] | no_license | blankcc/learn_scrapy | 3fab450f8a98d86daba43cf730cb9fb1db1101d9 | 566af927b5c39cdb0751053bc910c347bf3dc31c | refs/heads/master | 2021-01-25T11:34:01.198738 | 2018-03-01T09:12:06 | 2018-03-01T09:12:06 | 123,409,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | #-*- coding:utf-8 -*-
import scrapy
class ShiyanlouGithubSpider(scrapy.Spider):
name = 'shiyanlou-github'
@property
def start_urls(self):
url_tmpl='https://github.com/shiyanlou?tab=repositories&page={}'
return (url_tmpl.format(i) for i in range(1,5))
def parse(self,response):
for repository in response.css... | [
"894058546@qq.com"
] | 894058546@qq.com |
c3914dd709c6fb669de3a1acb24df8deb3308b07 | e5190d347d610cb64092f80e3e02d239e54f0230 | /find_most_important_term.py | 5b0fd524bfc533ffb191a830284f3351b728780a | [] | no_license | chetanmanjesh/Create_flu_cluster_dataset | 4b2d444b9f267b458ae93c4f40731e3befdcee78 | a58750241eeca972af01d0349a58ce29af07e4ae | refs/heads/master | 2021-07-13T23:57:12.314094 | 2017-10-18T11:23:38 | 2017-10-18T11:23:38 | 107,344,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from sklearn.feature_extraction.text import CountVectorizer
#read the flu teets (directly related to personal sickness) and fit the read data using CountVectorizer
with open('extracted_flu_non_flu_tweets/flu_examples_bag_of_words.txt','r') as f:
str=f.read()
vectorizer = CountVectorizer(stop_words='english').f... | [
"chetan.manjesh@gmail.com"
] | chetan.manjesh@gmail.com |
be605463e4ac1976451faca56113a86d84a55e52 | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Algorithms/Halloween Sale/test.py | 833625794fb188739df4943a47e9facfcbea19f1 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 301 | py | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.howManyGames(20, 3, 6, 80), 6)
def test_case_1(self):
self.assertEqual(solution.howManyGames(20, 3, 6, 85), 7)
if __name__ == '__main__':
unittest.main()
| [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
ec063c428d25636819e6983c780249660ba3f282 | 6b3cf8c687bc39fc2877f672dc0d36303ee7eb4e | /structured_plot/kit/i_get_factor.py | 385a323ed3db093f7c046d5a4cf030f1c600a0d9 | [] | no_license | Fumipo-Theta/structured_plot | e3d01eaaad0c8ac71085f4ed4f1a087fb6b5a2b1 | 10ad48e9312c50c1b9bba494f9df393ff90e4979 | refs/heads/master | 2023-07-22T04:11:17.629011 | 2023-06-14T02:15:17 | 2023-06-14T02:15:17 | 189,728,575 | 0 | 0 | null | 2023-07-07T00:21:31 | 2019-06-01T12:09:55 | Python | UTF-8 | Python | false | false | 582 | py | import pandas as pd
from typing import Callable, Optional, Tuple, Union
def Iget_factor(
df: pd.DataFrame,
f: Union[str, Callable[[pd.DataFrame], pd.Series]],
factor: Optional[Union[list, Callable[[
pd.DataFrame], Tuple[pd.Series, list, list]]]]
)->Tuple[pd.Series, list, list]:
d = f(df) if ca... | [
"fmorisato@gmail.com"
] | fmorisato@gmail.com |
673ebefcd871677a085f443fa05625a3402f2db9 | 92cac54e6b901ae5957bcd2aa901331edf613fc2 | /venv/FaceRecognition/Lib/site-packages/matplotlib/backends/__init__.py | c2b29d474d8dc2bf7f02d5e874e54f371e2033c3 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.1-only"
] | permissive | faiyazsamin/FaceRecognition | 833e7221422ea4a6ca75fa8b41f76b4f9ba8a722 | 9c0bd65f300784910a923f446cf33bacfc502b52 | refs/heads/master | 2022-11-29T21:36:33.590946 | 2018-05-24T19:52:21 | 2018-05-24T19:52:21 | 134,751,215 | 1 | 1 | MIT | 2022-11-17T20:05:03 | 2018-05-24T17:58:30 | Python | UTF-8 | Python | false | false | 3,293 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import matplotlib
import inspect
import traceback
import warnings
backend = matplotlib.get_backend()
_backend_loading_tb = "".join(
line for line in traceback.format_stack()
# Filter out l... | [
"32957665+faiyazsamin@users.noreply.github.com"
] | 32957665+faiyazsamin@users.noreply.github.com |
b9b1d5c429d6c179d0f8a8168a78ee9da4b55cc7 | b149ce1dc7fb78982c552250a80bf7a175a8cbf0 | /T1-2018/Parte2/testes_normalizacao.py | 39124ae0e282946c2dad50fdd855dc78dbb69b8d | [] | no_license | jcolares/ML2018 | d9d61b98618c6a9753bfd24240a469122f7ffbae | 097a6636817e045cf1c5e9f0e42713cf55f3b985 | refs/heads/master | 2020-04-22T16:56:30.123017 | 2019-02-13T19:52:35 | 2019-02-13T19:52:35 | 170,525,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py |
import matplotlib.pyplot as plt
import os, sys
import pandas as pd
import numpy as np
from custo_reglin_multi import custo_reglin_multi
from normalizacao import normalizarCaracteristica
from gd_reglin_multi import gd
#Carrega dados
data = pd.read_csv("ex1data2.txt", header=None)
#acrescenta uma coluna preenchida ... | [
"jcolares@gmail.com"
] | jcolares@gmail.com |
2e52affd93990773d9be3f81af87f711e9f29fc2 | 5470b1b501bd523368c25f7c36ed9171563b0b30 | /finals/challenges/babyrsa3/src/RSAGenerator.py | 3ebae2814546d804dca9a7bdde7f7eb65a189b92 | [] | no_license | nnamon/crossctf-2018-challenges | b15b99ea0d703c20f942cae2a56f5c9396d649cd | 65c901aba841650efe0d79a09b66e1c52f55eb01 | refs/heads/master | 2020-03-16T16:24:00.246228 | 2018-06-19T02:04:27 | 2018-06-19T02:04:27 | 132,785,607 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | import random
def bti(bytes):
result = 0
for b in bytes:
result = result * 256 + int(b)
return result
gcd = lambda m,n: m if not n else gcd(n,m%n)
plaintext = "CrossCTF{Pub7ic_prIv4te_K3ys_4_R5A_t33ns}slightlylessshittypaddingslightlylessshittypaddingslightlylessshittypaddingslightlylessshittypad... | [
"rollingwithoutslipping@yahoo.com"
] | rollingwithoutslipping@yahoo.com |
24bd92a63144b395266c2b8c5e14cc6b9ec37c31 | 414428f868a17c32a3d5d45d7d24bc2414e0457f | /articles/migrations/0002_article_image.py | 676f0bd4de86c50d0291ef9bd10b7deef9e8bd19 | [] | no_license | djaffic/vniir | e7c08ad91d8dd036417aff8d6f9534b037c5f3de | f7dfb01c91b6fc040a3a2ba9d5248ee39301f9b2 | refs/heads/master | 2020-04-12T03:20:36.169091 | 2018-12-21T08:11:38 | 2018-12-21T08:11:38 | 157,697,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # Generated by Django 2.1.4 on 2018-12-11 12:54
import articles.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='article',
name=... | [
"djaffic@mail.ru"
] | djaffic@mail.ru |
25b5508262e7ee47d6d55cf62895530e77ad4dbf | 6a44d6071d9bc632b234da40f04393ed05e5f9d5 | /plugins/lektor-basic-auth/setup.py | ca3fd86f3d5079c53cb4393b9e60a973a2efc1dd | [] | no_license | zupo/seaintome | 431d6533e4d8bcdd4a0eea3a5c210f26a7ed3477 | 37b9c49133173b2f6e531246a8f48432b5b0b718 | refs/heads/master | 2023-03-28T12:04:14.345668 | 2018-07-03T17:02:47 | 2018-07-03T17:02:47 | 98,026,930 | 0 | 0 | null | 2021-03-25T21:32:43 | 2017-07-22T11:26:07 | CSS | UTF-8 | Python | false | false | 420 | py | from __future__ import unicode_literals
from setuptools import setup
setup(
name='lektor-basic-auth',
version='0.1',
description='HTTP Basic Auth for Lektor Admin',
author='zupo',
author_email='pypi@nejczupan.com',
license='MIT',
py_modules=['lektor_basic_auth'],
entry_points={
... | [
"nejc.zupan@gmail.com"
] | nejc.zupan@gmail.com |
e43f804556ee3049d4fcaffe0a2c595238467584 | 0fa3ad9a3d14c4b7a6cb44833795449d761b3ffd | /day08_all/day08/exercise04.py | 387bae00da3fef78a90100f8c8541ac5fb94018b | [] | no_license | dalaAM/month-01 | 3426f08237a895bd9cfac029117c70b50ffcc013 | e4b4575ab31c2a2962e7c476166b4c3fbf253eab | refs/heads/master | 2022-11-22T23:49:43.037014 | 2020-07-24T07:37:35 | 2020-07-24T07:37:35 | 282,154,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | """
参照下列代码,定义函数,计算斤量.
day02/exercise08
# total_weight = int(input("请输入多少两:"))
# number_jin = total_weight // 16
# number_liang = total_weight % 16
# print("结果为:" + str(number_jin) + "斤" + str(number_liang) + "两")
"""
def calculation_weight(total_weight):
"""
计算斤两
:param total_w... | [
"1105504468@qq.com"
] | 1105504468@qq.com |
206d4e9484ab2452f4f635bd9d5b27cde913a852 | 177645e7673e3cfc1f392d7b29057d7b0f6498ee | /functions/f3.py | 7efbf562f524c1fcb150cf540a20b3a0470f95c3 | [] | no_license | Prerna983/260567_PythonPractiseLTTS | 6445eb0e4e63f791a4963937f5b311ad3a6401f2 | c1d9d28915f4f52ef14f5c4277cc7f1cb92dfe2f | refs/heads/master | 2023-04-20T03:08:16.589845 | 2021-04-29T11:46:17 | 2021-04-29T11:46:17 | 358,806,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | def shout(word):
return word + "!"
speak = shout
#output = speak("shout")
output=speak("WTF")
print(output)
print(shout("IDC !"))
| [
"namr2501@gmail.com"
] | namr2501@gmail.com |
ed0d115208265998da7874d6b70c5253f7eef45a | 514ca61e1c0732b2cdc31059524f54f6e53a9199 | /BargainingExperiment/src/models.py | 212c47129f2a2ac30d5828b450ca38827bbbf5a5 | [] | no_license | CarlosRDomin/UrmeeUCR | a81b035ac5408ff698892424377b25de0963b259 | aa1f148351877c90720f640f7d27e5394a6b11ba | refs/heads/master | 2021-01-17T05:05:46.129630 | 2016-12-08T08:17:55 | 2016-12-08T08:17:55 | 58,485,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,836 | py | import random
from enum import Enum
from sqlalchemy_enum34 import EnumType
from BargainingExperiment.src.core import db
class States(Enum):
login = "login"
wait = "wait"
match = "match"
match_complete = "match_complete"
experiment_complete = "experiment_complete"
class UserType(Enum):
computer = 0
users = 1
... | [
"carlos.ruiz.dominguez@west.cmu.edu"
] | carlos.ruiz.dominguez@west.cmu.edu |
553139d180c8807303a54fadd314f04810577488 | dd9564e74f1b6e9999e7b18db63bddd867945340 | /data/scripts/realdownloader.py | cc75efbb58dcc92a440cbcce0561870ece454847 | [] | no_license | Royaladvisor26/automatic-romancescam-digger | 7dd84136819d8d3ae352c28d689d95b55cf04a62 | 8a3f6f7dd108bf9d5d593790bf1be8ba1307f419 | refs/heads/master | 2023-03-16T01:51:05.759730 | 2019-05-28T14:45:22 | 2019-05-28T14:45:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | import os
import re
import json
import time
import hashlib
import random
from bs4 import BeautifulSoup
from urllib.request import urlopen
IMAGEDIR='images'
PROFILES='real'
iurlrx = re.compile('.* background-image: url\(([^\)]+)\)')
remap = {'I am' : 'gender',
'Age' : 'age',
'City' : 'location',
... | [
"m.edwards7@lancaster.ac.uk"
] | m.edwards7@lancaster.ac.uk |
71324a8162bddae07a2844a96f77ca9495d6c13a | 5967b439ae5da1400ffa40f3a237e14226eeeddd | /utils/triplet.py | 70d43e33287c5ed6dd26188ca72236a1cc24c9a8 | [] | no_license | Haanblue/maae | 3c1b1b61dcfe523cbd464717a33e490aa6d04844 | 81d953e2bf2d02a0f8d1e9f5b6b06336f2cb7682 | refs/heads/master | 2023-05-27T03:05:46.222793 | 2021-06-08T04:35:58 | 2021-06-08T04:35:58 | 371,028,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,746 | py | from itertools import combinations
import numpy as np
import torch
def pdist(vectors):
distance_matrix = -2 * vectors.mm(torch.t(vectors)) + vectors.pow(2).sum(dim=1).view(1, -1) + vectors.pow(2).sum(
dim=1).view(-1, 1)
return distance_matrix
class PairSelector:
"""
Implementation should re... | [
"754333623@qq.com"
] | 754333623@qq.com |
52287b19a4dc11457c5915e810d637a6033b92f3 | a746e906eb348883d8a8ede0ae94d24d487093d4 | /LinearModel.py | 3fc1776bee43fdf8a1d2992381841239b0239c3f | [] | no_license | yuquanle/PyTorchStudy | a6456a4d8ca2d130aba77e3afe63f4829f4490c1 | b5ff86b7971892078d3376fd4abbefc36e165feb | refs/heads/master | 2021-04-30T08:21:34.438970 | 2018-02-13T11:53:23 | 2018-02-13T11:53:23 | 121,373,155 | 13 | 7 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #author:yuquanle
#data:2018.2.5
#Study of Linear Model
import numpy as np
import matplotlib.pyplot as plt
x_data = [1.0, 2.0, 3.0]
y_data = [2.0, 4.0, 6.0]
def forward(x):
return x * w
def loss(x, y):
y_pred = forward(x)
return (y_pred - y)*(y_pred - y)
w_list = []
mse_list = []
for w in np.arange(0.0,... | [
"wenliangle@gmail.com"
] | wenliangle@gmail.com |
f014e0792d4ff2d48ef171c6e356f26c6f367daf | 19c9efa3ffbae977f2e173482464fc788ad06fcb | /parser/fase2/team24/variables.py | a22f6cbd012203dfa7758b01ccc30b6c3d107c5d | [
"MIT"
] | permissive | JohnnyBro/tytus | f6f074003ebcadd6ebf6e8dd3c50c5ef262c72e3 | 8422316c52530fce975d630d3271ccd6ea965560 | refs/heads/main | 2023-02-11T03:55:02.216081 | 2021-01-08T21:29:16 | 2021-01-08T21:29:16 | 324,136,089 | 0 | 0 | MIT | 2020-12-24T11:04:11 | 2020-12-24T11:04:11 | null | UTF-8 | Python | false | false | 85 | py | import tablaDGA as TS
#variables globales
tabla = TS.Tabla()
cont = 0
NombreDB = "" | [
"oscar99.cr@gmail.com"
] | oscar99.cr@gmail.com |
c91252601f556fbc921febf03c3281c0cb4118a6 | 9751db1d14ef58a58c54f97721d67431a5b067a8 | /DLFCV/resnet_cifar10/resnet_cifar10.py | 008a77ae50d8e6ed72a99197f680254c14c945e2 | [] | no_license | ken2190/ProgramPractice | fad67aff7874239d88e64129cbfb23e42892d6e7 | 31a7e8ddbbc81bb7712cbc1e9dd17da3c278db84 | refs/heads/master | 2023-03-23T02:14:59.775412 | 2019-08-28T06:27:48 | 2019-08-28T06:27:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,399 | py | #
# Train ResNet on cifar10 dataset without lr decay
# a : zhonghy
# date: 2018-9-12
#
# set the matplotlib backend so figures can be saved in the background
import matplotlib
matplotlib.use("Agg")
# impor the necessary packages
import sys;
sys.path.append("F:\ProgramPractice\DLFCV")
from sklearn.preprocessing impor... | [
"530634028@qq.com"
] | 530634028@qq.com |
ed2fa2d7393d424a1fc95380166eb30a69b19171 | 041231b9cdfb34d328264f39ea974072494bab5e | /utils/transformations.py | d6aa4c1bef70e482ee3df64e7a494189f4a306af | [] | no_license | youhanxia/tsp_map_dist | 211f33c6393527e3b693d1055dd678f7a4283987 | 732ecd6c18f6a30a47c507b80eb499abed8be1f0 | refs/heads/master | 2021-07-06T06:22:50.247737 | 2021-01-21T07:09:56 | 2021-01-21T07:09:56 | 221,362,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,204 | py | # -*- coding: utf-8 -*-
# transformations.py
# Copyright (c) 2006-2018, Christoph Gohlke
# Copyright (c) 2006-2018, The Regents of the University of California
# Produced at the Laboratory for Fluorescence Dynamics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modifica... | [
"youhan.xia@gmail.com"
] | youhan.xia@gmail.com |
23c3ca216401511bff014ad3950f5ca92d21da58 | 23ebcb0f5339d6da91fb4517c555e4f21c6f0788 | /image-2-cloud-nexo-sample-image-each-5-secs.py | 54af2d39c94b011571ee6673368397d0065df0ad | [] | no_license | NEXOBoschRexroth/Nexo-BCX19 | 2bae8e0a6d4beeca5192dd4b34854af42e870fbd | 69d86d0af3e02f4b179af2e62d926974df4e965a | refs/heads/master | 2020-05-19T19:07:17.999985 | 2019-08-13T09:15:16 | 2019-08-13T09:15:16 | 185,171,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from azure.storage.blob import BlockBlobService
from azure.storage.blob import ContentSettings
import picamera
import time
from datetime import datetime
camera = picamera.PiCamera()
block_blob_service = BlockBlobService(account_name='neptunstorage', account_key='8C7SDQO/19LMvAdghWtk+LC59IHEYym9QV50oGfgU+z1OoMysqqkkz... | [
"noreply@github.com"
] | noreply@github.com |
3103838146c484798f687a3335451fcfb1902352 | 5c7368a686341a30cd99a0bd884999c1901e7243 | /app/__init__.py | 806fe3b3936ec7ef27dd07649d238fa1d05dc8c4 | [] | no_license | davidally/POST.it | 147f809761f3e0e4c5a6d7e435530f33f19cd2d4 | ad6488b5f845d797cd46a689d52c9d8fcc790335 | refs/heads/master | 2022-11-27T22:39:36.106245 | 2019-08-21T03:44:39 | 2019-08-21T03:44:39 | 188,126,218 | 0 | 0 | null | 2022-11-22T03:49:57 | 2019-05-22T23:15:39 | HTML | UTF-8 | Python | false | false | 455 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
app = Flask(__name__)
app.config['SECRET_KEY'] = 'f9bf78b9a18ce6d46a0cd2b0b86df9da'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
db = SQLAlchemy(app)
bcrypt = Bcrypt(app)
... | [
"davidally94@gmail.com"
] | davidally94@gmail.com |
bb488e783cb74f8a87c91e78513f16c9fd170726 | 01dddbe3acf458c0e8db37e889678549b4da57b0 | /drive.py | ff409c90feaddd5d2d4b080d2d82aff4af6b5078 | [] | no_license | IdrisTheDragon/flask_pi_controller | c65955c804f0f5e5e0ef3d2ef9b48103222474ff | 55d71e38ff9ffe227fb5b14d6e572bc680eb62ca | refs/heads/master | 2023-02-12T00:11:11.129306 | 2021-01-15T11:42:50 | 2021-01-15T11:42:50 | 329,622,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | from flask import Flask, redirect, url_for, render_template, request, flash
from flask_socketio import SocketIO, emit
from robot import robot_move, robot_speed, setupGPIO, teardownGPIO
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
@app.route('/')
def index():
return render_t... | [
"nathaniwilliamsuk@gmail.com"
] | nathaniwilliamsuk@gmail.com |
9481bf27e9bd8c47d6a4ad24719e8ac76919e8b2 | 87d5b21265c381104de8f45aa67842a4adc880eb | /96. Unique Binary Search Trees.py | 26dbb55326d8f87010e034de603ebc359adae505 | [] | no_license | MYMSSENDOG/leetcodes | ac047fe0d951e0946740cb75103fc94aae967166 | 8a52a417a903a0742034161471a084bc1e494d68 | refs/heads/master | 2020-09-23T16:55:08.579319 | 2020-09-03T19:44:26 | 2020-09-03T19:44:26 | 225,543,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | from tree_node_lib import *
class Solution:
def numTrees(self, n: int) -> int:
dp = [0]*(n+1)
dp[0] = 1
if n == 0:
return 0
else:
for i in range(1,n+1):
for j in range(i):
dp[i] += dp[j] * dp[i-j-1]
return dp[n]
sol... | [
"fhqmtkfkd@naver.com"
] | fhqmtkfkd@naver.com |
17bd84bcd44365accc41a55ddde173e5bfe05d06 | 693b910cf0fc8d3469b468115c89a17c07b3db6c | /dashboard/app/rules/conditions/email.py | ec3931a86e6239fec1b78b89d2b8a9a7e282b78c | [
"BSD-3-Clause"
] | permissive | paddycarver/isthislegit | e14787cd6f0c95db33be5442f3f6c099a1e994fb | c3c3f38ba91912db6a22e0f9f335b3806638a95f | refs/heads/master | 2020-04-21T19:51:09.666352 | 2019-03-07T16:51:33 | 2019-03-07T16:51:33 | 169,821,946 | 0 | 0 | BSD-3-Clause | 2019-02-09T01:51:03 | 2019-02-09T01:51:03 | null | UTF-8 | Python | false | false | 220 | py | from app.rules import Condition
class EmailCondition(Condition):
''' EmailCondition matches an attribute of the EmailReport.
This is done by a simple regex.'''
def match(report, field, value):
pass
| [
"jwright@duosecurity.com"
] | jwright@duosecurity.com |
756f9ea98a48beb971c9891d8160e12a64fcbce5 | e101f3f7c645b7a3634843d830bee82a64aeb204 | /main.py | 13e79026c36493054bd12351b465b432fdecd9ea | [] | no_license | nghokui/vispy | c155e8c7a2dd3a45d55b489c6789429a311e5eca | 3c1a2103cf224d7bc264ce9e716303c18fb6dfb8 | refs/heads/master | 2020-06-27T03:41:52.299818 | 2017-07-12T19:27:11 | 2017-07-12T19:27:11 | 97,044,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | import os, sys, json, unittest
from package.code.exceptions import *
from package.code.logger import Logger
def loadSettings():
with open('package/settings.json', 'r') as jfile:
loaded_data = json.load(jfile)
curr_path = '/'.join(os.path.realpath(__file__).split('\\')[:-1])
loaded_data['logpath'... | [
"Brian.Ng@SekisuiVoltek.com"
] | Brian.Ng@SekisuiVoltek.com |
61565bc4980d93563e0ce89f3d506a008124a8bc | aeb070186e1db1f01bbd9ad2674ee9a36b0425b6 | /{{cookiecutter.project_slug}}/config/settings.py | 9affc9803c2d122c4161517449468081f4ede9d4 | [
"GPL-3.0-only",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"GPL-3.0-or-later",
"MIT"
] | permissive | nathfroech/cookiecutter-django | 15ebc5260d702ccdb244e0d79e6881f56e2a6909 | 9568671807c24655d0c51ecef91d22fe8b550d3f | refs/heads/master | 2020-05-20T23:02:48.105733 | 2019-10-01T08:38:43 | 2019-10-01T08:38:43 | 185,793,663 | 0 | 0 | BSD-3-Clause | 2019-10-01T08:38:44 | 2019-05-09T12:21:49 | Python | UTF-8 | Python | false | false | 26,900 | py | """Base settings to build other settings files upon."""
{% if cookiecutter.use_sentry == 'y' -%}
import logging
{%- endif %}
import pathlib
from typing import Any, Dict, List, Tuple
import environs
{%- if cookiecutter.use_sentry == 'y' %}
import sentry_sdk
{%- endif %}
from marshmallow.validate import OneOf
{%- if coo... | [
"noreply@github.com"
] | noreply@github.com |
fd823064b48bdf1aababbf3a1cfec4dfcb3d3b8f | 3f0b9a923bd7e6e00ff323cfe5207632a3124bc1 | /LearningDashboard/wsgi.py | d6a337d9359c10e62b3b7e716ac4d0a9b5a2bc28 | [] | no_license | zerongtonywang/LearningDashboard | 5e85057022f14453a45f6ca7aeadd82e80a00012 | 58adf7ce151b340d67b06caf022af5c4b02bad9c | refs/heads/master | 2021-05-31T18:07:48.786527 | 2016-05-17T18:06:28 | 2016-05-17T18:06:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for LearningDashboard 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.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJ... | [
"ztony_wang@hotmail.com"
] | ztony_wang@hotmail.com |
c079ef0e67242e53fafd10db2aa2f2dbfb6bae1f | 50c4291f01f9e72404547f91d8a00b3338a6ab14 | /shortest_path.py | d1cbe1e799fbc0015e86852c6a08d507d7c75d67 | [] | no_license | prakatheesh1234/Graph-theory | b1f7c439816331a6f42034699d6622aea1bf9b8b | fdc4277181eceb4abf0d908cbb8138705c9d0efe | refs/heads/master | 2022-04-25T03:11:02.626068 | 2020-03-30T19:16:17 | 2020-03-30T19:16:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,770 | py | graph = {'A': set(['B', 'C']),
'B': set(['A', 'D', 'E']),
'C': set(['A', 'F']),
'D': set(['B']),
'E': set(['B', 'F']),
'F': set(['C', 'E'])}
#traversing all nodes in the graph using DFS and stach
def dfs_traversal(graph,start):
visited,stack=set(),[sta... | [
"noreply@github.com"
] | noreply@github.com |
e7776675ad2e0ccae5c0bcdad1932487e428a6f9 | c66496b9946318b30ea14cc55c1182949d161457 | /vrpsychlab/main/forms.py | 57a1a02e0636d2ddd8fc3cf4e1c842f77ec9f634 | [] | no_license | hoddi84/vrpsychlabweb | c940b49a437604b72b973f15bd932752a3d2b065 | 04062dfa968efecfcce073199eb49aa4265595ca | refs/heads/master | 2021-01-15T11:38:45.627452 | 2017-08-18T11:03:41 | 2017-08-18T11:03:41 | 99,627,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django import forms
class FormName(forms.Form):
name = forms.CharField()
| [
"hordurh15@ru.is"
] | hordurh15@ru.is |
622bb83e117237b9dead1c634dfd84907bbaa01a | 19a35243cea56c92efbfdeb8405772a4b0f769d1 | /functional_tests.py | 70e1887cb5a15ecd0a84673472a8d9d58dca9ab7 | [] | no_license | Braelan/djangostories | 6edbed12cdea1b127f654c9c2a1fd2e2ec16f605 | 5b7e4cde46dd1a852227c22ed171b292686d978d | refs/heads/master | 2021-01-13T01:00:00.694982 | 2016-04-26T22:09:29 | 2016-04-26T22:09:29 | 46,633,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,687 | py | from selenium import webdriver
import unittest
from selenium.webdriver.common.keys import Keys
# goes to browser and sees famia in title
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
self.browser.implicitly_wait(3)
def tearDown(self):
sel... | [
"bbraelan@gmail.com"
] | bbraelan@gmail.com |
d7caadaca6dfd4a14e263ecf3bb340dbfb77cc43 | 5a3d3be73e19032b0f4574bcd827a73f9a90dc15 | /pytorch_mjolnir/experiment.py | e6f9e16b582ac7d97956aa055614402bc1674f41 | [
"MIT"
] | permissive | penguinmenac3/pytorch-mjolnir | 2134d38b0777356626dd25d0982e9dc820dbf6d0 | 0b60f796e43c7abb17f9fc6f4087a645260bff56 | refs/heads/main | 2023-03-18T09:11:45.156514 | 2021-03-08T21:33:34 | 2021-03-08T21:33:34 | 337,863,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,877 | py | """doc
# pytorch_mjolnir.Experiment
> A lightning module that runs an experiment in a managed way.
There is first the Experiment base class from wich all experiments must inherit (directly or indirectly).
"""
import os
from typing import Any, Tuple
import pytorch_lightning as pl
import torch
import argparse
import ps... | [
"mail@michaelfuerst.de"
] | mail@michaelfuerst.de |
f0b6f5355e924346cf07ce4d04729158f78530e2 | a8608f119bee58bd0d06cd40b311e515f390dc5c | /quicy/test_packet.py | da641c0c571f27e01559e730e34c0601ee794080 | [
"Unlicense"
] | permissive | WriteCodeEveryday/quicy-py | 5e3fdfe332362689fb355ca7729b021d5e5e622f | 133330451211d1e93bf3fb923d52b7301c39679f | refs/heads/master | 2020-06-23T21:00:57.782029 | 2019-07-25T03:48:19 | 2019-07-25T03:48:19 | 198,751,012 | 0 | 0 | null | 2019-07-25T03:34:35 | 2019-07-25T03:34:35 | null | UTF-8 | Python | false | false | 1,058 | py | from struct import pack
import unittest
from packet import QuicPacket
class TestQuicPacket(unittest.TestCase):
def test_get_packet_number_octet_length(self):
for i in range(0x100):
octet = pack('>B', i)
length = QuicPacket.get_packet_number_octet_length(octet)
if i < ... | [
"lazherrera@gmail.com"
] | lazherrera@gmail.com |
5ee7edabdec5907b929aa5b615cb4205b59a3de2 | 652171bac20022a53cfc9e11f7d45c5c40da3319 | /cricket/cricket/wsgi.py | cb0aa72590e992074d5c4a2d5d0ddc955bf96667 | [] | no_license | asfcarter/django | b12b387a52283dcc14cf16b412a0fe1871e88092 | 5466ea06628b28ab2fb37a379a5224350d0ff901 | refs/heads/master | 2021-01-18T16:37:01.219036 | 2015-09-07T10:42:30 | 2015-09-07T10:42:30 | 42,047,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for cricket 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"asfcarter@yahoo.co.uk"
] | asfcarter@yahoo.co.uk |
bb1bb2b00f88af6f8b5e9f0d37be2e21d0aa0c8b | 9e32996e4ee2e64b3be45eaaeb803c4a82eb58e8 | /src/py-opentimelineio/opentimelineio/console/otiopluginfo.py | 66042b78182a1cbe37f4eb89bbd600c3ef022b16 | [
"Apache-2.0"
] | permissive | AheadIO/OpenTimelineIO | 9ebd4879e518d3f56fe00b6d6ef4a76a19308b32 | 79f85aff208dfa647aae13f462a988a42cef4289 | refs/heads/master | 2023-03-08T18:17:07.780193 | 2022-06-08T01:11:22 | 2022-06-08T01:11:22 | 99,805,301 | 2 | 1 | Apache-2.0 | 2023-03-06T07:01:11 | 2017-08-09T12:22:29 | Python | UTF-8 | Python | false | false | 7,401 | py | #!/usr/bin/env python
#
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the OpenTimelineIO project
"""Print information about the OTIO plugin ecosystem."""
import argparse
import fnmatch
import textwrap
import opentimelineio as otio
# on some python interpreters, pkg_resources is not available
try:... | [
"noreply@github.com"
] | noreply@github.com |
0164752492452ad963d9ce9a6e7f28009bdfd1f7 | 1d07aa88212d04271c2ba6b906cc6e0ec24149e7 | /arp攻击.py | 28c1668cd6864fa348a07b4b720cc0a48aab941c | [] | no_license | yuanqingqing/APP4Python | 686981f32f74f9fc5ee14862f582c992cd1c47ef | d57167a1cfa237a5b0d28234004213a01e4562bb | refs/heads/master | 2021-01-24T10:35:33.425583 | 2016-10-08T06:52:39 | 2016-10-08T06:52:39 | 70,309,598 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 1,002 | py | #coding=utf-8
from scapy.all import *
from threading import Thread,Lock,activeCount
BROADCASTMAC = getmacbyip('192.168.0.120')
class Loop(Thread):
def __init__(self,ip):
Thread.__init__(self)
self.ip = ip
def run(self):
global BROADCASTMAC
arp = ARP()
... | [
"noreply@github.com"
] | noreply@github.com |
480d1962f8d8a1ba011c5bcf63d8a7e5108e1d76 | f448e9697aa65b446406cc79f694e828e2bde6b1 | /Page 1 and 2/first_page.py | 08cb3068280d0f11e927d7538f661f6df9e692f5 | [] | no_license | tradjabi/ap_final_project | c25e15321ea0087ff99a35ba8a0e0bb9d57cee82 | 31e42c1aaa221b89920002998dc87badff39b2fb | refs/heads/main | 2023-06-21T15:38:01.244822 | 2021-07-23T12:00:15 | 2021-07-23T12:00:15 | 388,072,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | import sys
import os
from PyQt5.QtWidgets import *
from PyQt5 import uic
from tkinter import Tk, filedialog
from second_page import SecondPage
Form= uic.loadUiType(os.path.join(os.getcwd(),'test.ui'))[0]
class FirstPage(QMainWindow,Form):
ProjDir=0
flag=True
def __init__(self):
Form.__init__(self... | [
"tradjabi"
] | tradjabi |
cd2e4f6d7aacbf6a2ac1b9a15e8fecf67de1ad0d | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20170928/example_marshmallow/00extend.py | af0aa4d3cf26db1f738db90211a4fc60cc7001be | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 347 | py | from marshmallow import Schema, fields
class S(Schema):
v = fields.Integer(required=True)
print(S().load({"v": 10}))
print(S().load({"v": 10, "extra": "extra"}))
print("----------------------------------------")
s = S()
s.fields["extra"] = fields.String(required=True)
print(s.load({"v": 10}))
print(s.load({"v... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
60653133ec457b24ba0b502d0d5d416b5464ac9e | d807627695b0be66f5b666a0a7292e74b4168af0 | /tests/server/util.py | f0589cc4579dc662a2f1f0aa55977e9451e996a4 | [] | no_license | evvaletov/balsam | fc61c57c09807b2047d9fdc601929137749cb1e3 | b0c908706ccb7aee2f01cae81da7a64272b29767 | refs/heads/main | 2023-08-10T16:39:20.546564 | 2021-09-02T17:35:35 | 2021-09-02T17:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,725 | py | from fastapi import status
from fastapi.encoders import jsonable_encoder
class BalsamTestClient:
def __init__(self, client):
self._client = client
@property
def headers(self):
return self._client.headers
def check_stat(self, expect_code, response):
if expect_code is None:
... | [
"msalim@anl.gov"
] | msalim@anl.gov |
88ad986ea346c005944b19ebbbf6e991ea22b17d | e3c102c407273bdc75f26953851dd2e67dc6180c | /01-introduction to python for data science/01-python basics/calculations-with-variables.py | e91611b0cbe1804d99ddb58eba2e0b8a99c320a1 | [
"MIT"
] | permissive | thelc127/Data-Scientist-Career-Track-Datacamp | f331f98d87a7b635bf86d3c3669c56bb1226f513 | 56d0ec0ece7fa9127e72b0da598c89f15f31b6b3 | refs/heads/main | 2023-05-27T18:44:12.756263 | 2021-06-04T16:29:58 | 2021-06-04T16:29:58 | 369,406,713 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Create
# a
# variable
# growth_multiplier, equal
# to
# 1.1.
# Create
# a
# variable, result, equal
# to
# the
# amount
# of
# money
# you
# saved
# after
# 7
# years.
# Print
# out
# the
# value
# of
# result.
# Create a variable savings
savings = 100
# Create a variable growth_multiplier
growth_multiplier = 1.1
#... | [
"noreply@github.com"
] | noreply@github.com |
b634661c7f5cc336630e7b1dc5b9003c8d66fcdd | 143cb00519241cb1bde121fd6c6f872006534ee0 | /mall/apps/users/models.py | 3a14af669ef2eddaacd5dc7314cf18585dc3fb2e | [] | no_license | FrinYei/meiduo | f7c02acb665145dafac4c59341dd4bf900b5a96f | 2e2979b8742b4b2834c164a2c63e550703848fab | refs/heads/master | 2023-05-28T19:53:14.374932 | 2021-06-17T07:24:30 | 2021-06-17T07:24:30 | 363,612,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | from django.db import models
# Create your models here.
from django.contrib.auth.models import AbstractUser
"""
1. 根据需求 自己定义模型
2. 使用django自带的用户模型和认证系统
"""
class User(AbstractUser):
mobile = models.CharField(max_length=11,unique=True,verbose_name='手机号')
class Meta:
db_table = 'tb_users'
verbo... | [
"yangshi2003420@126.com"
] | yangshi2003420@126.com |
200208c05971d50536700809b7b3c8ceff25ac07 | 92d8efc1a543ee0a8085ae89ff81cc6f9a83e4eb | /utils/model/__init__.py | d20f5114301fe59baea8670cb73146715f32742c | [] | no_license | rkirszba/multilayer_perceptron | bded395c7f6ec01093eb36184b39ae75fe5cfab1 | 32682875daca401c8ebda8096bfd90e1b7922a8a | refs/heads/main | 2023-08-11T20:47:14.996889 | 2021-10-03T16:10:11 | 2021-10-03T16:10:11 | 302,322,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | from ._ft_multilayer_perceptron import FTMultilayerPerceptron | [
"romainkirszbaum@MacBook-Pro-de-Romain.local"
] | romainkirszbaum@MacBook-Pro-de-Romain.local |
2b38120237b6ca7ffd5d689069baf5f58c9b796a | a1812882596fe2fd7ea2584a2a72d7cb138e79dd | /help.py | bf190af2e372a10fed5e21fcde551698b9a6f331 | [] | no_license | foreverallama/kadlebot_new | eb632b56a9e351ea72cd086ff186ab06cfe92f39 | 9bd3d0e594a942b21b64422728f18f1b88318344 | refs/heads/master | 2023-02-14T22:14:15.944377 | 2020-04-27T11:10:24 | 2020-04-27T11:10:24 | 258,273,967 | 0 | 0 | null | 2023-01-23T22:06:39 | 2020-04-23T17:03:31 | Python | UTF-8 | Python | false | false | 16,372 | py | import discord
from discord.ext import commands
class Help(commands.Cog):
"""Contains the help command. To add this cog the default help command
must be disabled first"""
def __init__(self,bot):
self.bot = bot
@commands.command(name='help',
help='Displays ... | [
"noreply@github.com"
] | noreply@github.com |
34a2a8b3fca51eff9bcf446895ed0a3332e3fb10 | 3b58e0b68b4c19a76270600daacca05505d2266a | /aoc12a.py | eb845d69ad58c01a12cda421987957061c1ac7b1 | [
"MIT"
] | permissive | mark-ferguson-kroger/aoc-2020 | 78d919e260f671c7d8116e798f8a785deb6e5cde | b074546d36275732c052a80ac7270ef031ee339f | refs/heads/main | 2023-02-04T14:50:39.463493 | 2020-12-28T16:41:39 | 2020-12-28T16:41:39 | 317,323,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Dec 12 10:04:04 2020
@author: Mark Ferguson
"""
with open('inputs/input12.txt') as fh:
plan = [line.strip() for line in fh.readlines()]
plan = [(step[0], int(step[1:])) for step in plan]
r90 = {'N':'E', 'E':'S', 'S':'W', 'W':'N'}
r180 = {'N':'S', 'E':'W', 'S':'N', 'W':'E... | [
"mark.ferguson@kroger.com"
] | mark.ferguson@kroger.com |
fdc8db85d86da9e26a010b93a00e5201cd39aee7 | ba2d63c00e3e2187c89bbc57c21e334e0cb4a875 | /Python/scipy/special/_ufuncs_cxx.py | 6caf21b6ca40ff4af3f102674f57f11b96f92ad5 | [] | no_license | mantidproject/3rdpartylibs-mac | e61050caf25ff27f41538305cb82f79c64f079f1 | 43e7838282ebe2b069772db8f5228d13fac91211 | refs/heads/master | 2021-01-19T15:32:22.004738 | 2014-12-22T14:07:09 | 2014-12-22T14:07:09 | 2,578,607 | 1 | 0 | null | 2013-08-06T22:20:49 | 2011-10-14T20:21:28 | Python | UTF-8 | Python | false | false | 281 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__,'_ufuncs_cxx.so')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"taylorrj@ornl.gov"
] | taylorrj@ornl.gov |
56e9135de6f52426cfddbe458ff88d3d60539592 | ea9bb7f4a1fd1a45eddd6f5f62fd73df18abd83b | /app/__init__.py | 1668475475057197fba6633a7a08f42124033ad5 | [] | no_license | johnmutuma5/WeConnect | ec562963ce63fba7cd22b1e52f3d43a37e021f4d | 126391526229a9888b9d630abd474d263de39088 | refs/heads/master | 2022-12-12T09:06:28.843238 | 2018-11-18T19:17:15 | 2018-11-18T19:17:15 | 123,123,208 | 1 | 1 | null | 2022-12-08T00:55:00 | 2018-02-27T12:01:55 | HTML | UTF-8 | Python | false | false | 158 | py | '''
Flask wsgi application
'''
from flask import Flask
app = Flask(__name__)
app.config.from_object('config.env')
config = app.config
from app import urls
| [
"johnmutuma5@gmail.com"
] | johnmutuma5@gmail.com |
1e9a6f9036d6285996a9d0348b20777b728c667e | 0c7dff41d828d30666f159e9f074551b490cdd8c | /models/TREES/XGBOOST/xgboostModelRegressor.py | 0930ed04c788d335c432943c3de977b99ac2395f | [
"MIT"
] | permissive | SolbiatiAlessandro/kaggle-pets | 6de6b5f1ae7478291463cc15c69515eeaba51c8f | 562a8612f57a63cca0c519207210172ad22beca6 | refs/heads/master | 2022-12-15T11:49:50.262615 | 2019-05-19T21:56:07 | 2019-05-19T21:56:07 | 172,264,498 | 6 | 1 | MIT | 2022-12-08T04:57:39 | 2019-02-23T21:11:18 | Jupyter Notebook | UTF-8 | Python | false | false | 13,692 | py | #mod specific libraries
from time import ctime
import xgboost as xgb
import sklearn.metrics as metrics
import scipy as sp
import pandas as pd
import numpy as np
class PredictiveModel(object):
"""
base class for the prediction task of Adoption Prediction competition
this is catboost!
https://www.cour... | [
"alexsolbiati@hotmail.it"
] | alexsolbiati@hotmail.it |
ae3efe6dfdc3958872384e6ac036c089d66c7a36 | 48071949bcbb11186ed4943a61908c82daa6f786 | /Skripte/RPi_Wlan_switch.py | 1c0ca0db729f305e7815dfb2ae12b456ef8be349 | [] | no_license | Stephan1994/Bachelorarbeit | 193dea44bcd790739e11ec7583eac974ba66f77e | 14a92dc1767a3934eea4d14dbed3cc57b8d09dce | refs/heads/master | 2021-01-21T17:31:43.075712 | 2017-09-15T06:11:31 | 2017-09-15T06:11:31 | 91,960,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,689 | py | #!/usr/bin/sudo python
# coding: utf8
import os
import shutil
import sys
import subprocess
from subprocess import call, check_output
import shlex
def installRequirements():
call(["apt-get", "update"])
call(["apt-get", "upgrade"])
call(["apt-get", "install", "iw"])
call(["apt-get", "install", "dnsmasq"]... | [
"stephan-poehland@web.de"
] | stephan-poehland@web.de |
216fe2acdced692afa883c9542a3d160fe18ba22 | 4b95a4bb7da02c6abc24631e3742ea93dcd8eb27 | /cat/migrations/0004_auto_20201016_1518.py | 0ebf4ce3090bc645b1bb29a2d95bb67583656206 | [] | no_license | congdanh97/ai_broker | 6d4c5ff436a7ddca2e67405841de8fd02627256c | 10ca2031260e8b8ea9b954996939c011a998a0f3 | refs/heads/master | 2023-01-24T20:18:24.758977 | 2020-11-22T05:14:57 | 2020-11-22T05:14:57 | 314,964,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Generated by Django 3.0.7 on 2020-10-16 08:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cat', '0003_auto_20201016_1517'),
]
operations = [
migrations.AlterField(
model_name='cat',
name='name',
... | [
"congdanh97nuce@gmail.com"
] | congdanh97nuce@gmail.com |
b63caf64a7adfc33fa4412914bdfd400318a63eb | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/waf/waf_xml_schema.py | a6c1a7ac3aab778fc54295f60cf1cc95b76dda52 | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 1,289 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class XmlSchema(A10BaseClass):
"""Class Description::
Manage XML-Schema files.
Class xml-schema supports CRUD Operations and inherits from `common/A10BaseClass`.
This class is the `"PARENT"` class for this module.`
:param uuid: {"descripti... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
60925e9e7fff829f1e3bd4117febd94079a47a15 | 8bcb437fe087acf78117203a768011fdacb2468c | /env/bin/pip2.7 | 81b69dfef460f9eac1330ffa9d6d8b4b231e4ff5 | [] | no_license | raj61/codeBook | 0e6eef5c2ed61875f1b713b82e81ed738452d52b | db981c81fdd5acd92febdfb63f24a3e8fe677a17 | refs/heads/master | 2021-01-17T20:55:33.187737 | 2016-07-01T21:06:35 | 2016-07-01T21:06:35 | 61,446,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | 7 | #!/home/raj/codebook/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"raj@raj-Inspiron-N5030"
] | raj@raj-Inspiron-N5030 |
7063bba9a5ccd6af262eae54a272ea3d37aa2445 | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /tests/beta_tests/test_required_data_2.py | 48b091de71469858c02437d9e115177357e086c4 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | import unittest
from katas.beta.required_data_2 import given_nth_value
class RequiredData2TestCase(unittest.TestCase):
def setUp(self):
self.list_1 = [3, 3, -1, 10, 6, 8, -5, 4, 22, 31, 34, -16, -16, 8, 8]
self.list_2 = [3, 3, -1, 10, 6, 8, -5, 'Yes', 4, 22, 31]
self.list_3 = [3, 3, -1, 1... | [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
59d12fd202ff5dc1ebb54d32343525db590b1f5f | ec7ee2b333323a88454c0893e8e8fd7084ab6d1d | /node_modules/ws/build/config.gypi | a994d6b2ea49eb2ea01d8fb9f98f1882cbcab621 | [
"MIT"
] | permissive | stevehechtman/site1 | b51ceaa9f56c91256ba1cad9cf38d71333f2d62c | ecbdaf4d2012de604d294189bb071aa2f17973b1 | refs/heads/master | 2022-12-23T09:03:59.012191 | 2022-12-16T16:48:27 | 2022-12-16T16:48:27 | 18,580,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | 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,
"host_arch": "ia32",
"node_install_npm": "true",
"node_pref... | [
"steve.hechtman@.ia.local"
] | steve.hechtman@.ia.local |
d80d78876ebe032aec2d283e451f5e2024d49069 | bcf14cc3be2035afcbbd305082a8cbfb9686945b | /examples/benchmarks/ib_loopback_performance.py | 0d3b8433bf81bc979f3a029cd8562251a25288c7 | [
"MIT"
] | permissive | asathiya007/superbenchmark | ecf7efbf47e952a5e9839426c845c874017dc4f6 | 0583862d2dde37a9aaf16f71be3a23710effef99 | refs/heads/main | 2023-07-16T22:08:54.066721 | 2021-08-23T05:53:47 | 2021-08-23T05:53:47 | 392,017,581 | 0 | 0 | MIT | 2021-08-02T16:20:54 | 2021-08-02T16:20:53 | null | UTF-8 | Python | false | false | 677 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
"""Micro benchmark example for IB loopback performance.
Commands to run:
python examples/benchmarks/ib_loopback_performance_performance.py
"""
from superbench.benchmarks import BenchmarkRegistry
from superbench.common.utils import logger
if ... | [
"noreply@github.com"
] | noreply@github.com |
5657244758f4cb92fa05463b9639ea6f145232ab | 8a4823419e1447a2ff6b88fd032aa5deac4411e7 | /venv/Scripts/pip-script.py | b2440b5cbc61956edf5cda1ea5a5e74690282d42 | [] | no_license | alinasmirnof/YouTrackTask | 6944c3aa859d9cea7f7c90995a3d0bd55499efe4 | 6492909769187161086bc7afb61506db4b2f3310 | refs/heads/master | 2021-05-21T23:31:07.174352 | 2020-04-03T22:59:12 | 2020-04-03T22:59:12 | 252,858,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Users\Alina\PycharmProjects\YouTrackTask\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"alinasmirnof@gmail.com"
] | alinasmirnof@gmail.com |
ce9b73041a85f968fc46e86ade32ed46ed46e8a0 | 74983098c5de53007bde6052a631845c781b5ba8 | /goldstein_price/goldstein_price16/goldstein_price.py | c1c2eba1b748e4f8b0b503bfcbce98411bce4bca | [] | no_license | numairmansur/Experiments | 94ccdd60f4c2cf538fab41556ac72405656c9d77 | 592f39916461c7a9f7d400fa26f849043d1377ed | refs/heads/master | 2021-04-29T12:39:16.845074 | 2017-02-15T07:36:47 | 2017-02-15T07:36:47 | 78,043,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | import numpy as np
import sys
import math
import time
import csv
from hpolib.benchmarks.synthetic_functions import GoldsteinPrice
from time import gmtime, strftime
def main(job_id, params):
print '!!! Entered Main !!!'
print 'Anything printed here will end up in the output directory for job #:', str(job_id)
prin... | [
"mansurm@informatik.uni-freiburg.de"
] | mansurm@informatik.uni-freiburg.de |
7ee71664816f9b4d85a061f4c0801c50bf10e0e1 | 30faea708e4a80a5d129f6cb53f74cd24577b35b | /subserve/customer/migrations/0002_auto_20200904_2358.py | 7309e52bb2981f59eab32be93f5c9031abb78c60 | [] | no_license | peter5659/Sub_sub | 97f6e6aede8b1195ec5ef0e01c311874cfa89aec | a2161bc5a975751b739ca73f7ae70e4e4d20f06a | refs/heads/master | 2023-05-28T20:01:03.690956 | 2020-09-05T01:46:55 | 2020-09-05T01:46:55 | 283,149,657 | 0 | 1 | null | 2021-06-10T23:19:21 | 2020-07-28T08:27:23 | JavaScript | UTF-8 | Python | false | false | 1,492 | py | # Generated by Django 3.1.1 on 2020-09-04 14:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='auto_extension',
... | [
"peter5659@naver.com"
] | peter5659@naver.com |
16f88668bd74a035343750b0b479fa209e95b6b0 | 3c63c9ff4c9bc8b47a63188389af0241a626df70 | /crawlit/fields.py | 98fea42c0eee4ecd6418612c6bb438f7b44ff3c9 | [
"MIT"
] | permissive | ihor-nahuliak/crawlit | 0bd272de88a4ff7932c423f1a5f51eb1612a33b6 | 138d02968e88c14da6b441852d8e09ebb0c29140 | refs/heads/master | 2020-05-06T12:27:47.159803 | 2019-04-08T19:35:20 | 2019-04-08T19:35:20 | 180,124,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,161 | py | import re
import logging
from collections import Iterable
import scrapy
from scrapy.loader.processors import TakeFirst, Join, MapCompose
from scrapy.exceptions import DropItem
from .abc import FieldABC
logger = logging.getLogger(__name__)
class Field(scrapy.Field, FieldABC):
"""Base field class.
:param s... | [
"ihor.nahuliak@gmail.com"
] | ihor.nahuliak@gmail.com |
22a40d643a8043690a90b4568b18d1a9d04559a3 | 0c8ef0e97323bc7558e9f45140f4ea6778ea0100 | /CharCodeCalculation.py | 5275ee203f43ad9f6d740726a0867de44be37471 | [] | no_license | unssfit/python-programming-work- | 514c57a667cc2ce9a69f417a1449313bc6e09e41 | dd390d071306504f91b95ada7e1f7b8b0f69f522 | refs/heads/master | 2021-05-11T14:05:11.509789 | 2018-02-26T12:01:35 | 2018-02-26T12:01:35 | 117,693,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | ch = 'ABC'
string = ''
total1 = ''
total2 = ''
for i in range(len(ch)):
char = str(ord(ch[i]))
if '7' in char:
char = list(char)
char[char.index('7')] = '1'
string += ''.join(char)
print(string)
| [
"unssfit@gmail.com"
] | unssfit@gmail.com |
b420af34024eca80554acf115ab1660a1d342012 | 5255ea6103273a9ab4893961be1fcce6631712d5 | /reactive/redis-client-reactive.py | e59f0faa3eadd0de0dd57c3492846a091ba487da | [
"MIT"
] | permissive | code-akki/latest-ingestion-pipeline-1 | 01a3d6208f7945c629c0a71ce72cf43aca82de90 | d69ffea98d5754b04628dde1c466a0950dd64112 | refs/heads/master | 2023-03-29T06:37:53.165128 | 2021-03-31T17:46:56 | 2021-03-31T17:46:56 | 353,437,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,579 | py | #!/usr/bin/python3
import asyncio
import json
import aio_pika
import hashlib
import concurrent.futures
from rejson import Client, Path
rg_dict = {}
def key_generator(data):
print('> Inside key_generator******')
print('> data(key_generator)---- ' + data.decode())
data_dict = json.loads(data.decode()... | [
"akhil.pankaj@datakaveri.org"
] | akhil.pankaj@datakaveri.org |
4de008b82491430f5dd198909206a566a8046d33 | 3fc01457951a956d62f5e8cc0a8067f6796ee200 | /misago/threads/views/list.py | 1c38a3fb6308fac9b4d19fcc80f54dd524234a8b | [] | no_license | kinsney/education | 8bfa00d699a7e84701a8d49af06db22c384e0e8d | 48f832f17c2df7b64647b3db288abccf65868fe6 | refs/heads/master | 2021-05-04T01:15:03.078130 | 2016-12-04T03:18:20 | 2016-12-04T03:18:20 | 71,164,542 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import Http404
from django.shortcuts import render
from django.views.generic import View
from ..viewmodels import (
PrivateThreadsCategory, ThreadsCategory, ThreadsRootCategory,
ForumThreads, PrivateThreads)
class ... | [
"kinsney@bupt.edu.cn"
] | kinsney@bupt.edu.cn |
4f387941ce630f1da2ccc653f9d8a1783fa7f5bf | 405edc3ba7aeb65016324ca5921b84dd28a1b7cb | /Stopwords/create_csv.py | 937c950d2d1b2db7f0709fbe76871b9405a5680b | [] | no_license | hobbitsyfeet/PDR | 5ff72f53b7560ca78ef39729a79cc776f5540e9c | a7883ab1826f96d579de2d968c5a29fd244af750 | refs/heads/master | 2023-07-20T11:18:19.183814 | 2020-08-25T05:53:41 | 2020-08-25T05:53:41 | 153,028,788 | 1 | 0 | null | 2023-07-06T21:25:01 | 2018-10-14T23:38:32 | Python | UTF-8 | Python | false | false | 1,035 | py | import sys
import csv
import os
# print 'Number of arguments:', len(sys.argv), 'arguments.'
# print 'Argument List:', str(sys.argv)
word_file = sys.argv[1]
new_file = sys.argv[2]
#populates file [argv 2] with a list of words from [argv 1]
def populate_file(file):
with open(file, 'w') as csv_file:
writer =... | [
"lance96chisholm@gmail.com"
] | lance96chisholm@gmail.com |
8a2500b4654c5d3bd1be9ca26262db9ef28ceb93 | 3d6530fd6b80af0c2500d47ef469dedfa56e1158 | /chalicelib_fourfront/package.py | 16b29be4ca5f5d4c3637cb41b9cc72681eff4297 | [
"MIT"
] | permissive | 4dn-dcic/foursight | 1827237282f50fd5b04712d58bdc097930389c0a | 80a3467dede41fa40c2187f6f3ade58927f1219e | refs/heads/master | 2023-09-01T10:50:25.907111 | 2023-08-17T20:19:16 | 2023-08-17T20:19:16 | 104,920,912 | 5 | 1 | MIT | 2023-09-08T13:55:28 | 2017-09-26T18:07:36 | Python | UTF-8 | Python | false | false | 621 | py | """
Generate gitignored .chalice/config.json for deploy and then run deploy.
Takes on parameter for now: stage (either "dev" or "prod")
"""
from os.path import dirname
import argparse
from foursight_core.package import PackageDeploy as PackageDeploy_from_core
from foursight_core.package import main as main_from_core
... | [
"noreply@github.com"
] | noreply@github.com |
dd7212497cc3942b6f3b8b5dd7ce842690b8cd4e | fff7f3e5682462ef445497eb46eceb9046238e64 | /SDG1032x-tests.py | 59908d56631f61b615ba28b43a6aff76d16f4035 | [] | no_license | iagaponenko/electronic-lab | a610a4ae41cf12c5bb0230463c35fd47bd357adc | 49b5b1ddd680440e4d42edfad6f75d6e79293212 | refs/heads/master | 2023-03-06T11:44:23.295438 | 2021-02-17T07:58:17 | 2021-02-17T08:12:42 | 42,142,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,028 | py |
from devices.SDG1032X import SDG1032X, BasicWaveParams
import sys
import time
def print_BSWV(bswv, parameters):
print(f"C{bswv.chan} BSWV {bswv}")
for key, value in parameters.items():
print(f" {key}\t{value}\t{BasicWaveParams.unit(key)}")
def main():
device = SDG1032X('192.168.0.20')
... | [
"gapon@slac.slac.stanford.edu"
] | gapon@slac.slac.stanford.edu |
11b08cb9999490962f4e457a13abbb963527c097 | 21f2bc84cca7fdf1339f21c9804f61214afeadf6 | /gcj_2016/qualification_round/counting_sheep/counting_sheep.py | cfb26a84bef5d5e7dc84c538cc7eb56ab3aa8937 | [] | no_license | xinofekuator/contests-code | 1364f3c8a5aae6f2e39895fe8f6af0d2e00c389d | 4d1084a7279e477ee4071580ffe3a1919d4f0b19 | refs/heads/master | 2021-01-11T01:16:43.713203 | 2016-10-12T18:49:28 | 2016-10-12T18:49:28 | 70,730,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | import os
folder = 'qualification_round'
path = os.path.join(os.getcwd(),folder + '\\' +'counting_sheep')
name = 'A-large'
input_name = name + '.in'
input_path = os.path.join(path,input_name)
with open(input_path, mode='r') as f:
n_lines = int(f.readline().split()[0])
numbers = []
f... | [
"iadlp@kth.se"
] | iadlp@kth.se |
0aba4c835bf050bf8a957d653f0f795cc8df0b45 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/1589. Maximum Sum Obtained of Any Permutation/1589.py | 788bf7675e89f00c8c36280ac9384a28a4918035 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 507 | py | class Solution:
def maxSumRangeQuery(self, nums: List[int], requests: List[List[int]]) -> int:
kMod = 1_000_000_007
ans = 0
# count[i] := # of times nums[i] has been requested
count = [0] * len(nums)
for start, end in requests:
count[start] += 1
if end + 1 < len(nums):
count[e... | [
"me@pengyuc.com"
] | me@pengyuc.com |
3e71f67c6077b6b876e2bccd0ca2bc25598cbf2b | 266eb76c0850e31c20a6ab722377efddd802151c | /Chapter 10 Paint/paint4.py | 6a8047469d02c2ce850f80851d4bcb21fdf1fbfc | [] | no_license | Claude59/createguis | a7fa43ba4ded498f48b02a54e0facf79949224ae | a2020241adc5a3245e0ceda4f0a5dbc2664aa110 | refs/heads/master | 2023-03-17T10:26:05.800042 | 2020-11-26T10:53:49 | 2020-11-26T10:53:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | # adding different drawing shapes
# ------------------------------
# Imports
# ------------------------------
from guizero import App, Drawing, Combo, Slider
# ------------------------------
# Functions
# ------------------------------
def start(event):
painting.last_event = event
painting.first_event = ev... | [
"robertzwetsloot@gmail.com"
] | robertzwetsloot@gmail.com |
d52cda661269ab091019b51e08b40417560988e1 | 161643f32e3f909cbe75869f71ec8e233de8b0f7 | /torchbiggraph/converters/import_from_tsv.py | 0a2963e64c2e6f7043c87437f6015e3f6c5ce7ea | [
"BSD-3-Clause"
] | permissive | mengkunzhao/PyTorch-BigGraph | 11e86262767fbbf02e73c5f1df853f9254a5a287 | b15e1164f44817b8c7c330e77af56a3d80c5fc31 | refs/heads/master | 2020-06-08T06:27:38.128731 | 2019-06-20T08:17:43 | 2019-06-20T08:20:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,181 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE.txt file in the root directory of this source tree.
import argparse
import json
import os
import os.path
import random
from typing import... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
02fe53cab77571936c2a05807d3247cfd397ac1f | 3b060b787be2398da1ba32aeadfcc8e6521489df | /LeetCode-master/src/Python/322.零钱兑换.py | 893448fd125cc8f8e8470577a0034df38a54d0aa | [] | no_license | john-new9/leetcode | a263699df25d6b2902d5e69612ed72aab151ea4d | 4643b111596be44546a6dcd572feb63eb180375b | refs/heads/master | 2022-12-25T15:23:31.566722 | 2020-10-12T10:53:32 | 2020-10-12T10:53:32 | 277,479,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #
# @lc app=leetcode.cn id=322 lang=python3
#
# [322] 零钱兑换
#
class Solution:
def coinChange(self, coins: List[int], amount: int) -> int:
if amount == 0:
return 0
if not coins :
return -1
coins.sort()
dp = [float('inf')] * (amount + 1)
dp[0] = ... | [
"zqy906918268@126.com"
] | zqy906918268@126.com |
bd39e76f31f1c24a51b416369db58b831e6dfd68 | 9f13c7be7e88d2486076db0b89a215ab900fea1a | /main/apps/core/tests/test_views.py | 2211728d9e898097fa1eadd09d136514d1880520 | [] | no_license | truhlik/reimpay | 534664d2e506f39ec6b0edea471e7cfbad179c3b | ac8291dc8a0ac543283ee10aecd32deba24a1641 | refs/heads/main | 2023-08-10T16:45:55.283272 | 2021-10-06T19:00:15 | 2021-10-06T19:00:15 | 414,333,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,091 | py | import datetime
from django.test import Client
from django.urls import reverse
from django.utils import timezone
from model_bakery import baker
from rest_framework.test import APITestCase
from main.apps.users import constants as user_constatnts
class CoreViewsTestCase(APITestCase):
def setUp(self) -> None:
... | [
"lubos@endevel.cz"
] | lubos@endevel.cz |
6854045feecb78809a2afbc6b9a8e883f16e4e4d | 7aaa67bf647abe00b559c7e7b2835fc736dd8342 | /Geodjango/world/models.py | 9ca209e828808b3b3cfd1ad613b23a2f6555452f | [] | no_license | C17388633/Advanced_Web_Mapping_Assignment2 | 2fa93479c020d6a92f5e29aaa6308725f63c6c40 | 01f900d1287ab9440e35c30d2b8d16e97dda5315 | refs/heads/main | 2023-01-28T04:50:25.350666 | 2020-12-13T14:30:15 | 2020-12-13T14:30:15 | 316,195,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,062 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.models import User
from django.contrib.gis.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
class WorldBorder(models.Model):
# Regular Django fields corresponding to the attributes in the
... | [
"C17388633@mydit.ie"
] | C17388633@mydit.ie |
67bfa4776a54c4917527f2ad80636f2a642884b3 | bd2408894e6ed1128ca57866f1619599a95db072 | /14/перевод в систему счисления(из десятичной).py | befe32254d65fdc310531e154dfd789d39ee6011 | [] | no_license | Renander/EGE | ca8e8adc54b28867a322fddb256b66fe2c3b94e9 | 49b11cf8892089464121dc8656d8a10f242baffa | refs/heads/main | 2023-06-02T16:34:51.100246 | 2021-06-24T16:45:24 | 2021-06-24T16:45:24 | 376,509,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | def f(n):
s=''
while n>0:
s = str(n % 2) + s
n = n//2
return s
print(f(10))
| [
"noreply@github.com"
] | noreply@github.com |
2200eada0e86c8efa83ef9570debe0a0a5d506eb | 8b9638839818331df2637cf389d38d541c2b94ed | /SSWW_fitting/n5_Asimov_Dataset_fitting/n0_Asimov_DatasetMaking.py | 795663ef59a8f12f9a0f05eedb919b7f3b4d9d2c | [] | no_license | PKUHEPEWK/DNN | 015bb5f862f6ee0363f8671890339469ef7aa76b | ad500137441b2f0a55bf462830aca42d9c9d6710 | refs/heads/master | 2020-03-25T01:34:54.253383 | 2019-01-29T07:56:26 | 2019-01-29T07:56:26 | 143,244,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,606 | py | from ROOT import *
from math import sqrt
import sys, os, math
#from root_numpy import *
import numpy as np
sys.path.append("/Users/leejunho/Desktop/git/python3Env/group_study/project_pre/func")
from c0_READ_PATH_FILE_ROOT import read_file_name_root
class Asimov_Dataset:
def __init__(self,infileLL,infileTTTL):
... | [
"skyblue1293@naver.com"
] | skyblue1293@naver.com |
c3771bec49a2ed556fc73960871ef5dd4505c1a1 | c3fd7ef24ccc16a4d009592004cc56ef4cb09dc7 | /ride-the-bus.py | 180715cc9518e306d1518ded6ac0d89d1ce78285 | [] | no_license | jmperafan/ride-the-bus | ab9554471325e7a006245849f8fd170dfd3761b1 | ce561595a87cdbd27cae2f75a96ae71f2da93214 | refs/heads/master | 2022-10-17T07:07:06.022840 | 2020-06-08T23:37:08 | 2020-06-08T23:37:08 | 270,302,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | from card_game import *
from setup import *
# Ask for the number of players joining the game
n_players = int(input("How many players will join? "))
# Run the function and save it as players_list
players_list = ask_names(n_players)
# Create a player instances
for p in range(n_players):
players_list[p] = Player(pl... | [
"jmperafan@mail.com"
] | jmperafan@mail.com |
79e456b1cca6e09f6e6c5114c4171a484b12cedf | 9a0a49b2e3f37f0b1a940085fdb08a5b19e680ab | /app/models/__init__.py | 4115c711af7731084b4ac05799f7542238d2f10d | [] | no_license | FVATE/FVATE-web | 8d4e3cefa33575be409e48da10dc8b71967912f1 | fb3d781e3bdbf87530c1839e854125e753cc45d5 | refs/heads/develop | 2023-07-19T23:57:46.455167 | 2019-11-03T14:18:57 | 2019-11-03T14:18:57 | 47,968,752 | 0 | 0 | null | 2022-03-26T01:14:25 | 2015-12-14T10:45:02 | JavaScript | UTF-8 | Python | false | false | 1,002 | py | """
app.models
~~~~~~~~~~
data models package.
:copyright: (c) 2016 by gregory nicholas.
"""
from __future__ import unicode_literals
from logging import getLogger
log = getLogger(__name__)
# intitialize mongoengine + mongodb..
try:
from flask.ext.mongoengine import MongoEngine
from mongoengine.connecti... | [
"nicholas.g.gregory@gmail.com"
] | nicholas.g.gregory@gmail.com |
9969bd7431664d96f9c3bd3ebd6b5282fd9e7ec5 | b621530ff602637e36beb4f7598355528cfe5a76 | /wsgi.py | 132b41a4d19fa3f8fa06f91ed2fd1488d4b5cc19 | [] | no_license | ploe/blog | b5718ebed5ba6dec842bc16c4f3e346984316610 | fadac8e4c714a11e531a69a93d3eed7537b162ed | refs/heads/master | 2021-07-13T14:55:13.092462 | 2020-03-07T11:18:01 | 2020-03-07T11:18:01 | 242,418,654 | 0 | 0 | null | 2021-03-25T23:26:20 | 2020-02-22T22:09:40 | Python | UTF-8 | Python | false | false | 95 | py | """gunicorn entrypoint"""
from entrypoint import APP
if __name__ == "__main__":
APP.run()
| [
"ploe@hotmail.co.uk"
] | ploe@hotmail.co.uk |
ba0d414f75ba433e54bc79826218257d4eb70aa8 | 5785d7ed431b024dd910b642f10a6781df50e4aa | /revise-daily/arjuna-vishwamitra-abhimanyu/educative/5-medium-subsets/4_permutation_case_sensitive.py | f355280b9cad1e435f0ad603dc1e781b88acf6e7 | [] | no_license | kashyapa/interview-prep | 45d77324446da34d99bf8efedb3544b367b5523e | 7060c090c40602fb9c4778eace2078e1b51e235b | refs/heads/master | 2023-07-28T13:12:49.515299 | 2021-09-06T14:33:25 | 2021-09-06T14:33:25 | 403,706,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py |
def permutation_swapcase(str):
# abcd, Abcd, aBcd, ABcd, abCd, AbCd, aBCd, ABCd, abcD, AbcD, aBcD, ABcD, abCD, AbCD, aBCD, ABCD
perms = []
perms.append(str)
for i in range(len(str)):
n = len(perms)
if str[i].isalpha():
for j in range(n):
new_perm = perms[j]
... | [
"schandra2@godaddy.com"
] | schandra2@godaddy.com |
a8bb372cf9f50eec49f4aa12cf6c246598c03a6e | 6af27f1444165c34e8d550520926c51ca0bbd105 | /core/migrations/0004_auto_20190830_0103.py | e82d57ccb807fb2d02c748eb8cf84e9a557bbac4 | [] | no_license | bigg215/YouRipper | 42d1be43abad8abc1d750448a4b47c7ffcc2bee0 | e857550ebb15094b54b494c50c33f091c2c2e139 | refs/heads/master | 2020-07-07T07:00:03.901748 | 2019-09-01T03:54:15 | 2019-09-01T03:54:15 | 203,285,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # Generated by Django 2.2.4 on 2019-08-30 05:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0003_videomodel'),
]
operations = [
migrations.AddField(
model_name='videomodel',
name='thumbnail_uri',
... | [
"glenn.j.gilroy@gmail.com"
] | glenn.j.gilroy@gmail.com |
a7fba2a399105ff4d98e38f7b009b7090dcc5d07 | 0b2d78eab40f60893b5a6e58d72d05679637e72f | /myenv/bin/python-config | 709818f1892cd8b99d757530b1075b9fe6b46ad6 | [] | no_license | duskabarisic/my-first-blog | 6d82a732b44d1cb0c318997eceffacb405a1541c | bcca3b21ab7392215d0f0b63f8d6fa5888388052 | refs/heads/master | 2020-08-05T14:31:39.381264 | 2019-10-03T14:00:57 | 2019-10-03T14:00:57 | 212,579,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | #!/Users/excon/Documents/duska/myenv/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.version... | [
"duskabarisic@yahoo.com"
] | duskabarisic@yahoo.com | |
584d51adf95c5fcf213145e266292cedbf1ad6ee | 03fe60a99eafc78216b59998bba2353ee72d2524 | /ideias_malucas/settings.py | 56efa90ad6726c9b56179257b3fffa435f84422e | [] | no_license | franciellethiezo/ideias_malucas | 26361232148b8981a359949917f1602c7bf01b13 | 6cc9e91ef35e719096175a013643384f89ec989d | refs/heads/master | 2020-06-23T17:35:38.015173 | 2019-07-26T20:04:33 | 2019-07-26T20:04:33 | 198,700,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | """
Django settings for ideias_malucas project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"sophie.fran22@gmail.com"
] | sophie.fran22@gmail.com |
57801c5106bbb9e87aa15819590baf6bcd33426b | 0acdaa4fa65d1142839e5e8a1f88c8e677c75769 | /twitter/extract_tweets.py | cb3ed0d9558d44a3238abe96c6da93d3046c911f | [] | no_license | osp/osp.work.annak | 7aa40a799e172244e9ff3e8046895f4a8319a501 | da6424c9f07fbd47c0ab149247a0007179aa9f9d | refs/heads/master | 2020-12-25T19:26:11.564755 | 2015-06-15T08:29:37 | 2015-06-15T08:29:37 | 26,456,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | import codecs
import html5lib
f = codecs.open("anna_kavan.html", "r", "utf-8")
html = f.read()
parser = html5lib.HTMLParser(tree=html5lib.treebuilders.getTreeBuilder("lxml"), namespaceHTMLElements=False)
tree = parser.parse(html, encoding=None, parseMeta=True, useChardet=True)
tweets = []
for elt in tree.xpath('//l... | [
"alexandre@stdin.fr"
] | alexandre@stdin.fr |
a1ffe0fbf95612afa89c84c137a89cb040bbbb04 | 95c656ad77d5f2fb42e9eaade2e8d7bcc59619f7 | /homeworks/lesson2-5.py | d115b1f53273f58fb38f275ac8739940d67d0d3e | [
"MIT"
] | permissive | martysyuk/PY-3-Learning | 58f3cea08aaeb14fd8702b98f4eb2299d6c4e4f3 | 33084ee7c089f7baaeaa6becf09a8b3165e897fa | refs/heads/master | 2021-01-19T10:48:15.076191 | 2017-06-02T16:40:59 | 2017-06-02T16:40:59 | 82,204,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | # -*- coding: UTF-8 -*-
# Домашнее задание по уроку 2.5
# «Работа с папками, путями»
# Выполнил Мартысюк Илья PY-3
import glob
from os.path import join
def search_in_files(search, files_list):
temp_filtered_list = list()
for index, file in enumerate(files_list):
with open(file, 'r') as work_file:
... | [
"martysyuk@gmail.com"
] | martysyuk@gmail.com |
701db790d95959b00e9722983e6c76e5de3290e6 | d564b0b0263f973e90524db6c91c2acfb134d219 | /todolist/urls.py | b9e4e95bace108655f4896f99466c8ff1f055444 | [] | no_license | moetla/todoapp | 1151a383d3df5f36aaae059a5d1903451dffa047 | c9f341f7adca6d622d3eb60c390e9775eefb5939 | refs/heads/master | 2023-01-22T14:04:11.871731 | 2020-11-15T08:09:53 | 2020-11-15T08:09:53 | 312,846,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py |
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('add', views.addTodoItem, name='add'),
path('completed/<todo_id>', views.completedTodo, name='completed'),
path('deletecompleted', views.deleteCompleted, name='deletecompleted'),
path('delete... | [
"andries.heymans@gmail.com"
] | andries.heymans@gmail.com |
0d6b5e20427885b3ea44219bd165433b76358e41 | f62955f9f78fc0ebc84d2f58118a012edc3317b9 | /.eggs/scikit_learn-0.19.1-py2.7-linux-x86_64.egg/sklearn/decomposition/cdnmf_fast.py | 4d8deb50edc2ac72da6186c62a71462b276a2247 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wouterkessels/PREDICTFastr | 31aa5de9b0a85613af7e961297c13be2c19d3dfc | 2ac3a34b4d43e6a88684e79fd14d5c3f02d27eb6 | refs/heads/master | 2021-04-03T05:21:20.425482 | 2018-05-14T07:57:40 | 2018-05-14T07:57:40 | 124,414,878 | 0 | 0 | null | 2018-03-08T16:00:55 | 2018-03-08T16:00:54 | null | UTF-8 | Python | false | false | 286 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__, 'cdnmf_fast.so')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"m.starmans@erasmusmc.nl"
] | m.starmans@erasmusmc.nl |
3f2fa5522b8055042b32d0664714ea3dd962d02f | d649c5e9e1013f8266683864d1f8e67fa5f47a8d | /gitcours/urls.py | 0cb2b2da9d34bfac8588d47a6382185416e7039e | [] | no_license | marco242/demo | 25be0189bd858446c14cc603ca300365584493ef | 662da90e19fe5194f81bd3a992d26c47a4502c2c | refs/heads/master | 2020-03-28T10:51:58.858183 | 2018-09-09T21:04:06 | 2018-09-09T21:04:06 | 148,153,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | """gitcours URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"docteurcode@gmail.com"
] | docteurcode@gmail.com |
af37a3616d9e698d4c464934f9d30e9e14604c90 | 927df79cc8f7e23839157b49b00247df9ec3cfe9 | /bootstrap/refactor.py | cd3157778d1b29eea6d445207dfd821d0314da53 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | FrankC01/foidl | 25ae89f95d158a189870ddd0632a65d53afe34ab | b27e7cbbbb1d99814e0dab45eabeadae1e65019f | refs/heads/master | 2020-03-31T01:23:25.690223 | 2019-08-17T08:28:26 | 2019-08-17T08:28:26 | 151,779,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,451 | py | # ------------------------------------------------------------------------------
# Copyright 2018 Frank V. Castellucci
#
# 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.apach... | [
"frankiecast@gmail.com"
] | frankiecast@gmail.com |
006fc663dae6ea1ac511fc9c34f36d988595bdb5 | 0fa45f29e3e2473c4ddd04f7b7d9ee4c5eca9735 | /uploadFiles.py | 5254c111d55c7544580882bc4e0b362589d396c7 | [] | no_license | asheekaa2008/dropdbox | 420edc3f73ccf422ff69d1dfa3d8ca16fe1dbc0d | 4003f02b49b21d8af3299e84c74901cb85bf754f | refs/heads/main | 2023-08-27T17:10:16.624401 | 2021-11-10T06:58:07 | 2021-11-10T06:58:07 | 426,516,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | import os
import dropbox
from dropbox.files import WriteMode
class TransferData:
def __init__(self,access_token):
self.access_token = access_token
def upload_file(self, file_from, file_to):
dbx = dropbox.Dropbox(self.access_token)
for root, dirs, files in os.... | [
"noreply@github.com"
] | noreply@github.com |
4d98fe655147a64f31dce19a2237de013034d925 | 9419861577102f31261bcd5d0c365a8c8362c54d | /firstproject/urls.py | 04fe0109a96dbcb862d69932f9ce4d8a6332f710 | [] | no_license | 16LeeSeul/django_wordcount | f09ae855406cf767e0555191385a22e07218a8ba | 01d195298de0cd03390d397d01ccb2e79b8fd593 | refs/heads/master | 2020-04-17T23:25:44.141771 | 2019-01-22T17:16:19 | 2019-01-22T17:16:19 | 167,034,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py |
from django.contrib import admin
from django.urls import path
import wordcount.views
urlpatterns = [
path('admin/', admin.site.urls),
path('', wordcount.views.home, name="home"),
path('about/', wordcount.views.about, name="about"),
path('result/', wordcount.views.result, name="result"),
path('inde... | [
"YOUR@EMAIL.com"
] | YOUR@EMAIL.com |
467dcdfe17cc5aeb51048d78f018eba3a8c35f24 | 8a1c71acb45ce743d5d5c2a93bbc8ca9ac48b710 | /manage.py | a77135dd9e078a665439f5f7693817fe4f10957a | [] | no_license | icecream154/youni_college | 8f14652d0c0e664e8cb098a721e5c0f4171e49b1 | 205d03e141d2eb43161dabb1ccfa0c8e1546f38b | refs/heads/master | 2023-05-09T02:37:32.147238 | 2021-06-06T02:35:38 | 2021-06-06T02:35:38 | 374,004,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'youni_college.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"panxingyu.icer@bytedance.com"
] | panxingyu.icer@bytedance.com |
42aa64352bc8d34e696b93502a446779bcbd408a | 81c7412211dff7cc331a35207841f22ff76f98c7 | /Project_SMDA/SMDA_Feder.py | ffec05b1d507da28fbc2f075fecd7cc8f0eb4a0f | [] | no_license | fdrmrc/Statistical-methods-for-data-analysis | 7905d6c9dfc53e1f83297bb4799f8f1b9a8461e3 | 10ee8fcf6ad5e5ec0db41e0b15b7e54861c4be11 | refs/heads/master | 2022-01-21T18:41:42.716043 | 2019-08-06T12:20:27 | 2019-08-06T12:20:27 | 198,111,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,938 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import statsmodels.api as sm
import seaborn as sns
import itertools
from sklearn import linear_model
from sklearn.linear_model import LinearRegression, Ridge, Lasso
from sklearn.metrics import mean_squared_error
from sklearn.decomposition import PCA... | [
"marco.feder96@gmail.com"
] | marco.feder96@gmail.com |
6e63d909bc94ca68a7e644d0156b73c52973bf72 | c29122c91c0dd41f9f6d6a367681bdf62207f0d4 | /Python/coin_change_2.py | 051bbbea1875d257b2793485744092f31ffa78ac | [
"MIT"
] | permissive | paulolemus/leetcode | 4d5a6acaf43d084ab0c951237862bade9810a847 | e11c4f1d6dcd02d1bb69534ddcf7bb957d6df318 | refs/heads/master | 2023-08-08T14:58:16.926741 | 2018-03-27T07:24:23 | 2018-03-27T07:24:23 | 109,198,009 | 0 | 0 | MIT | 2023-07-25T15:25:43 | 2017-11-02T00:17:34 | Python | UTF-8 | Python | false | false | 1,133 | py | # Source: https://leetcode.com/problems/coin-change-2/description/
# Author: Paulo Lemus
# Date : 2017-11-18
# Info : #518, Medium
# You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that amount. You may assume that you hav... | [
"paulolemus14@gmail.com"
] | paulolemus14@gmail.com |
2bd53bae47464d656701a6fdfb49ed469fb6bbfe | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/iam/_delete_client_by_namespace.py | 66c47c09ba25715164ca03371181b603b5a439d1 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,268 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Iam Service (6.2.0)
# pylint: disable=duplicate-code
# pylin... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
f8b75fb063d0925e8aeda8f6038d6ab7ba200b94 | f73e971a957133d88678b6b5d476632aeea9522a | /Python_Assignment/mod4/Question-01/name.py | bc4d552f9aa436099c740f7c86aed34cd7419aca | [] | no_license | yashasvi246/Python_Assignment | b966a30bad5a29b7465daa1ea3b76c90b0ecf328 | 770d3a3bafb3ff835887c5ab52955668a8cce603 | refs/heads/master | 2020-12-20T11:26:50.472741 | 2020-01-26T10:32:29 | 2020-01-26T10:32:29 | 235,022,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | l={'A':[[0,1,1]]}
def name(ch):
n=input()
for i in n:
print(name(i))
| [
"noreply@github.com"
] | noreply@github.com |
eb9c7fefa553b8556c8c004aea2d40924ea978f5 | c12ab950c82384b1bd75b4a1a7c463f9929e4f88 | /mols/utils/chem.py | 99b252ffc8ff4857d6648655f768010d748016b7 | [] | no_license | alexhernandezgarcia/gflownet-bengioe | 60f46a07c14ad1da2406c7b5fa51b1157a8b98bf | 05048b182c52af718ef3d49d84c112892ce80d38 | refs/heads/master | 2023-07-15T19:19:56.414002 | 2021-08-02T15:53:20 | 2021-08-02T15:53:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,729 | py | import contextlib
import logging
import os
import random
import string
import subprocess
from collections import Counter
import numpy as np
from rdkit import Chem
from rdkit import RDConfig
from rdkit import rdBase
from rdkit.Chem import AllChem
from rdkit.Chem import BRICS
from rdkit.Chem import ChemicalFeatures
from... | [
"bengioe@gmail.com"
] | bengioe@gmail.com |
5f530fb04413e8fe54b09e163502f22247cc0074 | 21b50b70ab307adfa39b9932b826f4de1b5e7786 | /posts/urls.py | 60d16029df27881878cb78d0c32dad61d9264664 | [] | no_license | kamral/drf1 | 080da165852fb2e7247c3298c03f26f96a76046a | f78aea6e39aa0aa6b66bb094c583286970fe14b9 | refs/heads/main | 2023-01-20T04:45:41.676653 | 2020-11-26T15:57:08 | 2020-11-26T15:57:08 | 316,277,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.urls import path
from .views import PostListApiView,PostDetailApiView
urlpatterns=[
path('', PostListApiView.as_view()),
path('<int:pk>/', PostDetailApiView.as_view()),
] | [
"kamral010101@gmail.com"
] | kamral010101@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.