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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6df54212edb20bd5f1d368dfb8c1921adce7b53d | 2491a35f09dd8067b5d4cda0872956baaedcf8f6 | /sortingcode/parseDPAFR.py | d226badf870bc396160cd80789102f06b1ada15e | [
"BSD-2-Clause"
] | permissive | xyza11808/MATLAB | 2d9e4a2a86b7c355237ed64cf42fdeb0f67b5ddf | efd0db355a468f1984e97f5c9cf8d852af3ca607 | refs/heads/master | 2023-05-11T14:06:56.614646 | 2023-05-02T01:53:04 | 2023-05-02T01:53:04 | 60,267,919 | 2 | 2 | null | 2016-09-20T06:23:36 | 2016-06-02T13:50:20 | Matlab | UTF-8 | Python | false | false | 10,499 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 16 17:24:12 2019
@author: Libra
"""
import numpy as np
# import phylib.utils._misc as phyutil
import pandas as pd
import h5py
import matplotlib.pyplot as plt
import matplotlib
FR_Th = 1.0
def trialAlign(trials, oneTS):
oneTS = oneTS[
np.bitwise_and(
... | [
"xyza11808@outlook.com"
] | xyza11808@outlook.com |
e1a8d279b208225bc5d4daa8f80ee417e088ef6b | c5291e50a3c72c885922378573a0ad423fcedf05 | /change and balance.py | 177775c7a50892a2f54886b4245a2dc2abf16790 | [] | no_license | raghurammanyam/django-projects | bcc3ed6285882af437a2995514cef33760fb063e | dd20ae354f7f111a0176a1cc047c099bd23e9f05 | refs/heads/master | 2022-12-12T19:22:31.698114 | 2018-12-09T09:41:45 | 2018-12-09T09:41:45 | 137,443,359 | 0 | 0 | null | 2022-11-22T03:01:07 | 2018-06-15T05:08:15 | Python | UTF-8 | Python | false | false | 3,697 | py |
# coding: utf-8
# In[1]:
from collections import Counter
coins = [2000, 500, 100, 50, 10, 1]
stock={2000:6,500:2,100:20,50:15,10:100,1:200}
def fun():
bill=int(input("your bill in rupees"))
givenamount=0
while givenamount<bill:
givenamount+=int(input("given amount in rupees"))
if giv... | [
"manyamraghuram@gmail.com"
] | manyamraghuram@gmail.com |
9d148e5fb969567a9d524538d9ca44bc2836fdaf | a0b55f596ed0219d85514cc0ee8b36c093d81d4c | /products/migrations/0001_initial.py | 687d008c6d172364d7c15260681785a538e6d2a5 | [
"MIT"
] | permissive | ArRosid/ECommerceAPI | 525e671886486e72bd38c7c8d58821a82de0380f | f683eed52e3591f6f45b955fb14f34154fa434ca | refs/heads/master | 2020-12-12T00:09:41.497127 | 2020-01-17T10:23:37 | 2020-01-17T10:23:37 | 233,991,814 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | # Generated by Django 3.0.2 on 2020-01-16 07:02
import core.utils
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id',... | [
"ahmadrosid30121997@gmail.com"
] | ahmadrosid30121997@gmail.com |
07e3831d14c2a6d833cc80356bfca2a5e703195d | b4aa99d572df2c38bfae52df42694cdac52fa3ef | /poorna9.py | f5c9fa8f3d595c926c0a23df9421db0011d22915 | [] | no_license | pedireddy/guvi1 | bb6e6ec29ed113dfecde5f7f953391ebc6dc8e12 | 62ffa2af3fed94be6304d1a36ecca0d81656582b | refs/heads/master | 2020-03-24T06:42:29.155798 | 2018-09-01T06:43:38 | 2018-09-01T06:43:38 | 142,538,583 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | n=int(raw_input())
x = ((n*(n+1))/2)
print(x)
| [
"noreply@github.com"
] | pedireddy.noreply@github.com |
d6ca4558b4afa8a1ad984676bf5c4a45b2e60538 | c7ddb449783b3cf47c2ad135f69a994b17872a63 | /Server.py | b7055d328543540b89076a39c8a2d04463859c33 | [
"MIT"
] | permissive | kumarankitapp/Secure-Instant-messenger | ec84c7703e4b97ec2bfd9364a28b8f9283bb9c7e | 5741265026455a02e0e6b9613cce7e71a176088f | refs/heads/master | 2022-11-01T05:33:17.894960 | 2022-09-28T15:52:34 | 2022-09-28T15:52:34 | 159,742,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | import socket
import sys
client_list = {}
buff=4096
try:
server_sock=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
host=socket.gethostname()
host_ip=socket.gethostbyname(host) #getting server host_ip for cross machine usage
except socket.error:
print 'Something went wrong, please try agai... | [
"AK@Ankits-MacBook-Air.local"
] | AK@Ankits-MacBook-Air.local |
6bb26cbecb57b2bd57f854b5e6d3d006cc8f2152 | fde4c7e141a671e30505e44fd7ec523e0f5b5595 | /nicolib/_compat.py | 78b06a35b9cbbb593008ca9ee5c729865ee9d4fc | [
"MIT"
] | permissive | tomoh1r/nicolib.py | 83d956c33f7b812d0f81afee7bca35eb0542e13b | 7d2020c43d8e966b64bc9b8d5f4a922aa65fb4cf | refs/heads/master | 2021-05-29T13:05:35.363194 | 2015-11-19T09:31:33 | 2015-11-19T09:31:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | import sys
IS_PY2 = sys.version_info.major == 2
IS_PY3 = sys.version_info.major == 3
if IS_PY2:
from urllib2 import urlopen
elif IS_PY3:
from urllib.request import urlopen
| [
"quickness.net@gmail.com"
] | quickness.net@gmail.com |
407efdcb8f4347abb2d32adb1d31129ca887b147 | cacdbf688209cce2f39698758346b99de7d5281d | /Up and Down.py | 0adb0239536ab0638fa77ddcddc498da3bba9eeb | [] | no_license | Federico-PizarroBejarano/Don-Mills-Online-Judge | 27d168e390cdf7be104117d6a699fd7df4104b63 | 6e77978a19d29ec3095687b71dc8eff3565f6a60 | refs/heads/master | 2021-05-11T09:14:24.849165 | 2018-01-19T03:42:06 | 2018-01-19T03:42:06 | 118,072,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | a = input()
b = input()
c = input()
d = input()
s = input()
Nikky = (a-b)*(s/(a+b))
e = s - ((s/(a+b))*(a+b))
steps1 = tuple([1]*a + [-1]*b)
for i in range(e):
Nikky += steps1[i]
Byron = (c-d)*(s/(c+d))
e = s - ((s/(c+d))*(c+d))
steps2 = tuple([1]*c + [-1]*d)
for i in range(e):
Byron += steps2[i... | [
"noreply@github.com"
] | Federico-PizarroBejarano.noreply@github.com |
f54b2b88344ae2e9c5b8db443dd77c2e5dda8b39 | f088119d9068c00fa66cacb1be844481239dc451 | /playerarray.py | af8af3608b090500e93321d6a824473abda58968 | [] | no_license | thamilarasi43/thamilarasi | 7c9ba952d418ea0d2ccdcd70b10d3eacf46899b5 | 027bcd6f91164e3368f6633b4c79cd1a635a5300 | refs/heads/master | 2020-03-09T12:20:57.263416 | 2018-04-28T14:08:03 | 2018-04-28T14:08:03 | 128,783,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | def printArray(r, n1):
for i in range(0,n1):
print ("%d"%( r[i]),end=" ")
r = [243, 140, 240, 141, 142, 46, 74]
n1 = len(r)
pancakeSort(r, n1);
print ("Sorted Array ")
printArray(r,n1)
| [
"noreply@github.com"
] | thamilarasi43.noreply@github.com |
98643f08886e47ed505a399a0f20256ac8f81480 | 44349b91f86ad512cb7268951f3b0b918d6343b5 | /Insecticide Resistance Capston Project Files(Machine Learning, Python)/ResPro Package/paac-calculator.py | b5e5c7edd8c58b8551490e9c02e5b0e06e68cbcf | [] | no_license | papaniivanderpuye/Public-Projects | d6ac3fcd90fc6fbe18279ae9256f10989742dde8 | 94592c6292c42103d3c22c06ef7731836f0798d0 | refs/heads/master | 2020-03-20T16:44:39.118989 | 2018-07-10T23:58:22 | 2018-07-10T23:58:22 | 137,545,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,564 | py | import math
import sys
#calculates paac for every sequence in file
def aacSet(sequence,counts): #returns list with frequency of each letter
#counts number of times each letter appears
for aa in sequence:
counts[aa] += 1
#making list for recording numbers
myList =[]
#a... | [
"papaniivanderpuye@users.noreply.github.com"
] | papaniivanderpuye@users.noreply.github.com |
9f8b8eb06dff3d95da5421ead1cae1f1fe4b9711 | 0b003b690fe07e7e0be905c298c8b4d5fbf8a764 | /main.py | fe5443dd9cadbfbb633824a103c8480a11526505 | [] | no_license | mr-tanta/password-manager | 219e342180a13ac8d20d199898afe1aee55a4d3d | ff98da5c972d7d66273cdd9de61fd4e6c8857fee | refs/heads/master | 2023-08-04T20:09:31.155375 | 2021-08-29T06:00:11 | 2021-08-29T06:00:11 | 400,432,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | from tkinter import *
from tkinter import messagebox
from random import choice, randint, shuffle
import pyperclip
BLUE = "#f4f9f9"
# ---------------------------- PASSWORD GENERATOR ------------------------------- #
def generate_password():
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm... | [
"80099226+mr-tanta@users.noreply.github.com"
] | 80099226+mr-tanta@users.noreply.github.com |
ef5cdb2609aa5a6ef0c5dc7f3cc60faebca2ed77 | de6db2d04bf587f1705f6b6eaae217f558c37bcd | /thinClient_server/db.py | ee5f5482565525f8ee425be746e1b823371112be | [] | no_license | lksmllr/39-Inf-NP-Abschlussprojekt | 64effcc9f10afbcdf2c13f6a0a0f0aeff5768bf2 | 90670a69181c0278c3124dcffd9934b1c3292b65 | refs/heads/master | 2020-03-19T07:47:51.339668 | 2018-07-03T09:11:36 | 2018-07-03T09:11:36 | 136,148,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import sqlite3
import click
from flask import current_app, g
from flask.cli import with_appcontext
def get_db():
if 'db' not in g:
g.db = sqlite3.connect(
current_app.config['DATABASE'],
detect_types=sqlite3.PARSE_DECLTYPES
)
g.db.row_factory = sqlite3.Row
retu... | [
"lmueller@techfak.uni-bielefeld.de"
] | lmueller@techfak.uni-bielefeld.de |
f94625fd41153f510f19d3d816fc6287997449f6 | a0aa05e8c7d47f41bf58dc7e70b2f9a4297614f0 | /receiving terminal/mLib/Huffman.py | 0a9484bd58f2bd8eba8fd48385a4c648cec845a9 | [
"MIT"
] | permissive | ChanKamyung/Covert-transmission-based-on-ICMP | 9765b27b5ed37273b80ae09a7b3be8cc570ac3a8 | 46c3e5244cc1312100f84a43999e5e0188a63b82 | refs/heads/master | 2020-12-22T21:56:10.381379 | 2020-03-27T08:45:31 | 2020-03-27T08:45:31 | 236,941,706 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,651 | py | #!/usr/bin/python3
# _*_ coding=utf-8 _*_
import sys
sys.setrecursionlimit(1000000) #压缩大文件实时会出现超出递归深度,故修改限制
#定义哈夫曼树的节点类
class node(object):
def __init__(self, value=None, left=None, right=None, father=None):
self.value = value
self.left = left
self.right = right
self.father = fathe... | [
"noreply@github.com"
] | ChanKamyung.noreply@github.com |
f060159b54a34871fdce2f1c0de8394ebff460ee | 47a17dfa1b0c1620985ebc93966fb5342fe2ace6 | /models4rl/agents/DQN/dqn.py | bd813a2f9fbecbb0259a0529cca69dca3aa82ff7 | [] | no_license | dododoSA/Models4RL | 7e1bf6d1343e2da1e6b5bede08c20dd216408abe | 22a251740758994a84c44fa6607e57d93471de31 | refs/heads/master | 2023-01-05T23:01:42.239502 | 2020-10-22T16:31:39 | 2020-10-22T16:31:39 | 288,118,274 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,633 | py | from models4rl.agents.base_agent import BaseAgent
from models4rl.replay_buffers.replay_buffer import ReplayBuffer
from models4rl.explorers.base_explorer import BaseExplorer
import torch
from torch.nn import Module
from torch.optim.optimizer import Optimizer
import copy
from gym.spaces.discrete import Discrete
class... | [
"dododosa14@gmail.com"
] | dododosa14@gmail.com |
aa66289c1f185034ae18f11611dab6900cc1a9c4 | 329b910c4a74a7ebca9eeb1de43a82d4a3fc8d8a | /0x01-python-if_else_loops_functions/1-last_digit.py | b1c1ba7deaf4663fee52131892453894df17caee | [] | no_license | MarioEstebanSuaza/holbertonschool-higher_level_programming | 58ff5a4c5b70a89c29881f9958531199a85a0327 | de8fb6b03f9e680d9cb0f7798440ccc4b3260f48 | refs/heads/master | 2022-11-26T00:18:32.893077 | 2020-08-06T23:39:05 | 2020-08-06T23:39:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!/usr/bin/python3
import random
number = random.randint(-10000, 10000)
if number < 0:
ln = (number * -1) % 10 * -1
else:
ln = number % 10
if ln > 5:
print("Last digit of", number, "is", ln, "and is greater than 5")
elif ln == 0:
print("Last digit of", number, "is", ln, "and is 0")
elif ln < 6 and ln !=... | [
"andres_felipe0191@hotmail.com"
] | andres_felipe0191@hotmail.com |
56d2bc727c3712ef9ae6a951625f0414fac943a8 | 41c0d29efcb3ac0e22237bd3fadc5cdf550698cd | /tests/testing_config/custom_components/test/alarm_control_panel.py | 0e2842f869561a20b2f53b381cca7907aafd5e77 | [
"Apache-2.0"
] | permissive | EthanW1215/home-assistant | 7c19ce668821f3063b3d46f9e9a0ef5a6e102689 | a48ac4d18fab253572780671f896b3a417322699 | refs/heads/master | 2020-09-05T09:02:59.513681 | 2019-11-05T18:57:08 | 2019-11-05T18:57:08 | 220,050,094 | 2 | 0 | Apache-2.0 | 2019-11-06T17:13:33 | 2019-11-06T17:13:32 | null | UTF-8 | Python | false | false | 2,494 | py | """
Provide a mock alarm_control_panel platform.
Call init before using it in your tests to ensure clean test data.
"""
from homeassistant.components.alarm_control_panel import AlarmControlPanel
from homeassistant.const import (
STATE_ALARM_ARMED_AWAY,
STATE_ALARM_ARMED_HOME,
STATE_ALARM_ARMED_NIGHT,
S... | [
"balloob@gmail.com"
] | balloob@gmail.com |
4772ac0f8f8819b65a1babed8879a5bd6ca68e9a | e8a6f0d4fac4a185985595d002af84ad02d33556 | /basicforms/settings.py | 12c812d98007bf32ce07b1bb2088edabfd34351f | [] | no_license | Pratik2080/django-form | 7ffa3941240e9db94c7488ab373dafc52714eafa | 4d2d8218d32313afb2b3cc10ec4e6d7b7a8c9944 | refs/heads/main | 2023-02-24T14:42:21.416974 | 2021-02-01T10:39:48 | 2021-02-01T10:39:48 | 334,905,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | """
Django settings for basicforms project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
... | [
"pratik.m@lendenclub.com"
] | pratik.m@lendenclub.com |
452ceb9dcf5efcbd44cb38c204ccf4e5e73dd5b3 | 2c5ef7ecdf2c2588fd95ad04a563e7c89d95822a | /Lesson15_GetandReverse.py | ea825e755a58f04dd3604fba9d6a511131edb2f8 | [] | no_license | edwardgorelik/practice | 6cdd8d7f45bb09988e1fe22a7b79204932bb530a | 5d3d5636bfa7b9b87e87a1bf1d6a579c75aec19a | refs/heads/master | 2021-01-25T13:58:59.534701 | 2018-04-29T05:34:53 | 2018-04-29T05:34:53 | 123,636,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | def getLine():
while True:
line = input("Give me a sentence: ")
if not len(line.split()) > 1:
print("Needs to be at least two words in the sentence")
continue
else:
break
return line
def reverseLine(line):
myList = line.split()
newLine = " ".j... | [
"e.gorelik11@gmail.com"
] | e.gorelik11@gmail.com |
f69b247266479c8b06f621afe813162dae323169 | efce0eeb3dd40a7067108f6a38951fcac8d2ea57 | /3_foglalkozás_marcius_21/3_nevsor.py | 928240eb0ce748f76da331b82ffd316df3af4ff5 | [] | no_license | mekispeter/Python-SAP-2019 | f0fc1870f763d3777f708e2ae73f450e471410df | c046edc4026b6be93c8efac48c6ef3b57ac64ac4 | refs/heads/master | 2020-04-24T06:11:13.209206 | 2019-05-15T14:43:58 | 2019-05-15T14:43:58 | 171,756,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py |
csoport = ["Niki", "Tündi", "Nóri", "Rebeka", "Timi",
"Prisca", "Virág", "Mira", "Kami", "Lilla",
"Odett", "Livi", "Dóri", "Viki", "Tami"]
nev = input("Kit keresel?")
if nev in csoport:
print("Velünk van!")
else:
print("Nem tagja a csoportunknak.")
| [
"noreply@github.com"
] | mekispeter.noreply@github.com |
93caa612177f6f54aab7869362be49eebf2b6f37 | f7bd260a492362a8d06c3e70561cd61724eaa2b2 | /terminal/PWMControlGui_gtk.py | 6283df3bb0e2d97369d5f5eb6836bacb0150c1a6 | [] | no_license | ersteller/pySerial2AVR | 48f355119147006d93586c5e4bf608b0a87142ca | 08bb3ea2b9345451e178d1e2f447af73dba5ca6d | refs/heads/master | 2022-08-04T22:48:53.090657 | 2022-07-20T13:26:58 | 2022-07-20T13:26:58 | 5,402,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,230 | py | '''
Created on 25.11.2012
@author: Jan
'''
"""
helloworld with pygtk and glade
This is not threadable
"""
import time
import sys
import os
import threading
from remoAVR import AVR
try:
import pygtk
pygtk.require("2.0")
except:
pass
try:
import gtk
import gtk.glade
except:
sys.exit... | [
"Jan@Jans-QPC"
] | Jan@Jans-QPC |
3fc39627ead959993c021edf1f2c93d6e75d77d7 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/MuonSpectrometer/MuonCnv/MuonByteStream/share/ReadMuonRDO_jobOptions.py | 88cedafcca34011aab6b2d80c4eeda885bc8aa15 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | ByteStreamAddressProviderSvc = Service( "ByteStreamAddressProviderSvc" )
ByteStreamAddressProviderSvc.TypeNames += [
"RpcPadContainer/RPCPAD",
"MdtCsmContainer/MDTCSM",
"TgcRdoContainer/TGCRDO",
"CscRawDataContainer/CSCRDO"
]
| [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
bb737fe68800e1577799e178e2a02eed7e399cfe | 1178abea66ba9592a1c2821da036f3660b382abb | /manager/views/commissions.py | 7bb9ba609bdce979d01aaf582108a4a1ef58cf70 | [
"Apache-2.0"
] | permissive | jordancarlson08/MyStuff | fdcfc125637164a6369730b7cb275dfdbfcbedc6 | 4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773 | refs/heads/master | 2021-01-23T01:00:55.764993 | 2014-11-04T21:25:22 | 2014-11-04T21:25:22 | 16,844,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | from django import forms
from django.conf import settings
from django.http import HttpResponse, HttpResponseRedirect, Http404
from manager.models import *
from account.models import *
from catalog.models import *
from . import templater
from datetime import *
from django.core.mail import send_mail
from base_app.user_ut... | [
"jordancarlson08@gmail.com"
] | jordancarlson08@gmail.com |
b1be52483eed9dc9fe64b43eb9be826989148f64 | eef1bcc789c4f6c72bedc1f00bf259a09ceb3bf3 | /discordbot.py | a65e2f5f1d32419ca0561bb245f1a90d17be17cd | [] | no_license | kurosukee/discord_bot_text_to_speach | 9dc522144710e84dba6389fe811fbd9b9f21e219 | ceb6bc9dd40c7cccc6ff4b4f50f9a54ac63c5130 | refs/heads/master | 2023-08-02T20:45:58.952449 | 2021-09-26T03:44:32 | 2021-09-26T03:44:32 | 396,017,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | import discord
import ffmpeg
import re
import os
from discord.ext import commands
from os import getenv
from gtts import gTTS
bot = commands.Bot(command_prefix='!')
voice_client = None
@bot.event
async def on_ready():
print('ログインしました。')
@bot.command()
async def join(ctx):
vc = ctx.author.voice
if vc is N... | [
"ayaka.nishiyama.1117@gmail.com"
] | ayaka.nishiyama.1117@gmail.com |
2a86ba9cb07e96cce5dc1c6921d5dd4a301d23a6 | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /139_best.py | e93df2a757060670d3f2938475f5496a4d88e1cb | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | class Solution(object):
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: List[str]
"""
dp=[False] *(len(s)+1)
dp[0]=True
for i in range(1,len(s)+1):
for j in range(i):
if dp[j] and s[j:i]... | [
"noelsun@mowennaierdeMacBook-Pro.local"
] | noelsun@mowennaierdeMacBook-Pro.local |
1a4dc42e47e33f6a65cd5afb973b8281be750191 | 3732272dc6c937a150a97c4b3254b3270e482b85 | /LibraryManagmentSystem/urls.py | 14aecb7a60d2448b3627f64059858cf201a207f5 | [] | no_license | harshakhmk/Library-Management-System | e4d023dbc371bfe5f2a90d4a7b97667ca579362c | c7af3fd05a9bd4a58156747df2b5112ab2cea6f9 | refs/heads/master | 2023-08-28T07:13:33.862585 | 2021-10-30T08:30:14 | 2021-10-30T08:30:14 | 422,567,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | """LibraryManagmentSystem URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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='hom... | [
"kharshakashyap@gmail.com"
] | kharshakashyap@gmail.com |
89654f603bccf8d8c356db6ba1cda09176ed6c69 | 32e9aefcb709457762ddcdd921ece830a051f0f9 | /class_py/paint.py | 751057a6eff9534388d3015a7a06bce7fd978d86 | [] | no_license | kartik-kumar71/CollegeStuff | bfcb55c28580899fda08bade855754632d355c6c | 68f9e586dbca70873b118a96d117a408e0a32e25 | refs/heads/master | 2021-07-13T07:17:14.612846 | 2020-10-12T15:01:12 | 2020-10-12T15:01:12 | 214,474,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # -*- coding: utf-8 -*-
__author__ = "kartik"
def area(a,b,c):
return 2*(b*c + c*a)
def q(u):
return u/110
(x,y,z) = list(map(int,input("Enter length,breadth and height seperated by space :").split()))
quantity = q(area(x,y,z))
if int(quantity) < quantity:
quantity = int(quantity) + 1
... | [
"kartikjodhpur@gmail.com"
] | kartikjodhpur@gmail.com |
9e7457625be95e310c66d97bd48cf15765de761d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02935/s611440264.py | 255de086936640d4df37be9408c7ebe068dd3f2a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | def main():
n = int(input())
v = list(map(int, input().split()))
v_s = sorted(v)
w = v_s[0]
for i in range(1, n):
w = (w + v_s[i])/2
print(w)
if __name__ == '__main__':
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
eb363f0f9e4464a9e5b3ca9c0bbaa12c189bfc07 | 5935981c11a940a1b13294f99626dcae54437ef8 | /Week-8 Assignment.py | b40db44b2be1380d15391809f85eaef295877706 | [] | no_license | mhamzahsiddiqui/NPTEL_Assignment_Pyhon-noc18_cs34 | d82b95385b56c3fad9f15a07f1fc22ffdc6bba5f | 88c8c736876092a9337ba24b6020a28f7cb169b8 | refs/heads/master | 2020-04-03T06:30:12.881806 | 2018-10-28T13:56:53 | 2018-10-28T13:56:53 | 155,076,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | def readinput():
n = int(input()) # Length
for j in range(n):
nextnum = int(input()) # Read each value
insequence.append(nextnum)
best.append(0) # Initialize best[k] for each position
return
def solve():
for j in range(len(insequence)):
prev = [ best[k] for... | [
"hamzahsiddiqui1998@gmail.com"
] | hamzahsiddiqui1998@gmail.com |
e2d4f65bebecf2826bc61e08ca63c651ed0a0cb5 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/4336640da90998dd8c7e29c4d14e227de4291340-<_BiasAddGradGrad>-bug.py | 63bcda9c022b53ea67111f1556afe10529f8fbc8 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | @ops.RegisterGradient('BiasAddGrad')
def _BiasAddGradGrad(op, received_grad):
'Gradient for the BiasAddGrad op.\n\n Args:\n op: BiasAddGrad op for which we are calculating gradients.\n received_grad: The gradients passed to the BiasAddGrad op.\n \n Returns:\n A single gradient Tensor for the input to ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
f28c91439fbee7d2474372132d36c49a2dee4541 | ac6a965bbdd36b3bb3fa72ead8507511dd4d7941 | /docker_django/DataWare/manage.py | b47ef44f5055f49bd8f5039e1b58cf8ce99f2845 | [] | no_license | venkateshchary/django_mysql_docker | f7df97742f5812d0c05bfff572e7b3f469acd7fa | b9e710b6c1cf6fb50c71aac6baab179a88dd8487 | refs/heads/master | 2022-12-04T14:12:36.007993 | 2020-08-30T14:59:02 | 2020-08-30T14:59:02 | 291,491,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DataWare.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"noreply@github.com"
] | venkateshchary.noreply@github.com |
fd855d37c46f8a698b3287ed2ee00f31304614fc | b181ba08cdf97582a2c690c52f519717411a5af8 | /docs/diagram.py | 2d5a27e752a5771d4215ebc83758d1c1eea4a8e5 | [
"Apache-2.0"
] | permissive | rodrigodelmonte/site_checker | e69bc1529e99ed85ef3e4ed3df7958f4bb394d23 | 8b899ed006c1c7d291f61fcfa5510930f6622597 | refs/heads/main | 2023-07-06T19:26:20.761308 | 2021-08-01T20:41:20 | 2021-08-01T20:41:20 | 374,722,123 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | from diagrams import Diagram
from diagrams.onprem.compute import Server
from diagrams.onprem.container import Docker
from diagrams.onprem.database import Postgresql
from diagrams.onprem.queue import Kafka
from diagrams.programming.language import Python
with Diagram(filename="docs/site_checker_architecture"):
kaf... | [
"rodrigo.monte@onefootball.com"
] | rodrigo.monte@onefootball.com |
ced5653a009ed9ba3055f28fc971d2182e449017 | 62bc1cb7dcbd89e38f65b04a78d662defb3975a3 | /object_detection/detectron2/test/eval.py | fbf8777f00a490c2ba098ffd1e525e468c21733c | [] | permissive | oakdata/benchmark | bfcf326e6367d12bd39b4768d053a94c6c1000a4 | fdb94230fc716efd6c96af355b106ec43ca64d08 | refs/heads/main | 2023-08-05T18:09:36.872039 | 2021-09-30T08:28:11 | 2021-09-30T08:28:11 | 398,959,396 | 12 | 4 | Apache-2.0 | 2021-09-21T01:36:05 | 2021-08-23T03:13:47 | Python | UTF-8 | Python | false | false | 4,856 | py | import os
import os.path as osp
import pickle
import numpy as np
import os.path as osp
import json
annodir = '/grogu/user/jianrenw/data/OAK_TEST/Label'
def voc_ap(rec, prec, use_07_metric=False):
"""Compute VOC AP given precision and recall. If use_07_metric is true, uses
the VOC 07 11-point method... | [
"noreply@github.com"
] | oakdata.noreply@github.com |
0cc26b8470c3362fd6e6bfae7c8b32fea9bba9c3 | 94f31ec38154916c372610e036956f0addbb3d67 | /articles/models.py | db1ee1ba490fbe70bb73c27a2a8e649e1545b87f | [] | no_license | pipecat/my_blog | d12e22d89a5ed604914fac558414f1704c5b4fa4 | 8251752412d6b31cb62118e3b2e91c79b09e90f4 | refs/heads/master | 2020-06-20T06:40:51.584905 | 2016-12-22T16:22:23 | 2016-12-22T16:22:23 | 74,874,228 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Article(models.Model):
title = models.CharField(max_length = 100)
category = models.TextField(max_length = 50,blank = True)
date_time = models.DateField(auto_now_add = True)
content = models.TextField... | [
"pipecat@yahoo.com"
] | pipecat@yahoo.com |
e39e4611d0091fccc959e0a510d83386bb822262 | cd1132c39b02e8997a4da832f9c2b760caba1801 | /napari/layers/image/experimental/_octree_slice.py | 093ae90f54625e4fa7d17b920a774a9cc2246535 | [
"BSD-3-Clause"
] | permissive | HarshCasper/napari | 8c9f7051afc36d492f9e30760fe07758bb91e338 | 3ed7d2db678f4012753f53b2d40cff9d34a8011f | refs/heads/master | 2023-03-19T01:27:58.473927 | 2021-03-15T05:41:29 | 2021-03-15T05:41:29 | 347,844,575 | 0 | 0 | BSD-3-Clause | 2021-03-15T05:39:00 | 2021-03-15T05:11:44 | Python | UTF-8 | Python | false | false | 7,707 | py | """OctreeSlice class.
For viewing one slice of a multiscale image using an octree.
"""
import logging
import math
from typing import Callable, Optional
import numpy as np
from ....components.experimental.chunk import ChunkRequest, LayerRef
from ....types import ArrayLike
from .._image_view import ImageView
from ._oc... | [
"noreply@github.com"
] | HarshCasper.noreply@github.com |
bbf7d8809a382ad8518997c51aaff650c2ad71b0 | 9e0fd9756bd476a13a38897a577abf967db4e52b | /unit_ex25.py | e5f8f4656913f9c65c3f756dca799b4e9494889f | [] | no_license | mattolsen1/LPTHW | 0aac05bb720723a41f29f23a93e10880225d5dc6 | 678dea077cc05633dd037ed6df18c7cd765724e1 | refs/heads/master | 2021-05-16T02:01:40.877877 | 2012-10-12T20:34:28 | 2012-10-12T20:34:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | import unittest
def break_words(stuff):
"""This funciton will break up words for us."""
words = stuff.split(' ')
return words
class MyTest(unittest.TestCase):
def setUp(self):
print 'In setUp()'
self.fixture = break_words()
def tearDown(self):
print 'In tearDown()'
... | [
"Matthew.Olsen@demandmedia.com"
] | Matthew.Olsen@demandmedia.com |
bc2c3f7f438f5040a3b9814f99f6844f61d1cd69 | 5fef919bd89d4b2f15de2aa8dd93f8084ae89b37 | /13.py | f248cb8b1c86876f46a16790e69caf2fa39f3da1 | [] | no_license | C109156209/midterm | 96236efb5bf6e109107aad471bfbf3d25e35656f | 553fc628154450893600c01bcabc15a98ae9c5bd | refs/heads/main | 2023-05-31T17:05:29.064520 | 2021-06-18T16:17:09 | 2021-06-18T16:17:09 | 378,205,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | s=input("輸入一字元為:")
if(s==s[::-1]):
print("YES")
else:
print("NO") | [
"noreply@github.com"
] | C109156209.noreply@github.com |
9fbd9b8a26c166b4c93cd96da16720ec3c49112e | f903ab3b1ffd595cd0a86d4e59f231b1cc16ce75 | /tests/unit/test_data/test_broker/__init__.py | dba74b15c4b6b090c7201c873bdcd9eac8b54a2f | [
"Apache-2.0"
] | permissive | refitt/refitt | 6cd066f3d69159a03c2764e929635897ade0b11a | e3f7c1b8647a7dc6b5e1fe2a0af73855284551b6 | refs/heads/master | 2023-06-08T06:42:22.604865 | 2022-11-23T02:20:21 | 2022-11-23T02:20:55 | 234,204,719 | 5 | 2 | Apache-2.0 | 2023-02-16T07:00:39 | 2020-01-16T01:02:22 | Python | UTF-8 | Python | false | false | 132 | py | # SPDX-FileCopyrightText: 2019-2022 REFITT Team
# SPDX-License-Identifier: Apache-2.0
"""Unit tests for data broker interfaces."""
| [
"glentner@purdue.edu"
] | glentner@purdue.edu |
1dbd575ef3656fb51a8926baf621bf41b688e8f0 | 4d72c086a2390f838c791e83712a95dbc2355408 | /src/genie/libs/parser/iosxe/tests/test_show_memory.py | 72435cf9c999814dc4b0b7558c229497c0263dce | [
"Apache-2.0"
] | permissive | tahigash/genieparser | 5c51fd4ae3c09579447886562daf7076ff6a4a7c | 736581276403685041218868c107e3f57f34a6d6 | refs/heads/master | 2020-12-29T06:34:29.148974 | 2020-05-12T18:56:06 | 2020-05-12T18:56:06 | 238,493,860 | 2 | 0 | Apache-2.0 | 2020-09-30T20:28:14 | 2020-02-05T16:16:59 | Python | UTF-8 | Python | false | false | 1,966 | py | #!/bin/env python
import unittest
from unittest.mock import Mock
from pyats.topology import Device
from genie.metaparser.util.exceptions import SchemaEmptyParserError,\
SchemaMissingKeyError
from genie.libs.parser.iosxe.show_memory import ShowMemoryStatistics
class test_show_me... | [
"jeaubin@cisco.com"
] | jeaubin@cisco.com |
c96b8b0ee7bac6d00f435d4f10d30b4afb403f34 | 6ec49c1fc8c34441aee2a2905f54e5a38046a58c | /Marmoset_Pipeline_2019/code/marmoset/maskMarmosetTargetBySlice.py | adc6488444fff901f734beb5b5d9da556e6ceba3 | [] | no_license | bingxinghuo/Registration_marmoset | 238728544779ec9047b45111b8b9c0d14390a102 | 35d9f7dd217908f1f86fd34b0b897004e41a96c9 | refs/heads/master | 2022-05-15T10:35:09.733268 | 2022-04-26T16:51:18 | 2022-04-26T16:51:18 | 235,623,823 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,777 | py | import SimpleITK as sitk
import numpy as np
import scipy.ndimage
import histFunctions
import ndreg3D
import sys
targetfilename = sys.argv[1]
outputfilename = sys.argv[2]
outputtargetfilename = sys.argv[3]
useWhiten = True
maskBeforeSmooth = True
smoothMask = False
greyBackground = True
smoothAtlasAgain = True
blackVen... | [
"bingxing.huo@gmail.com"
] | bingxing.huo@gmail.com |
330810fd3175620b8b684747706ba776ca8b2d9d | 10539e8f01ad807e687b9d42cdd57454f0d290b2 | /高频题目/myStack.py | bda8f9d435be4e80f7c1fee0cf7b3dbcb55ac4f3 | [] | no_license | Percygu/my_leetcode | 680a0d28f62ccbb023a458bb6378693b561968a0 | 24e20e1389fabfb8506b09277cd8e5d5a8d3c6cd | refs/heads/master | 2022-09-12T04:38:43.480510 | 2022-09-06T09:23:28 | 2022-09-06T09:23:28 | 231,324,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | '''
两个队列实现栈
'''
import queue
class MyStack:
def __init__(self):
self.list1 = []
self.list2 = []
def push(self, x: int) -> None:
if not self.list1:
self.list1.append(x)
return
while self.list1:
t = self.list1[0]
self.list2.append... | [
"claregu@tencent.com"
] | claregu@tencent.com |
465a5a5637b1fc79f04eab5d1b088e2173e28a97 | a1d0bad7257ddc8b0b66c3be8ed74704ff48baf5 | /utils.py | ba2ae1ff65915613cfa656c6e1c8a1c7878be5a8 | [
"MIT"
] | permissive | BioMedicalBigDataMiningLab/AMMGC | 565264db3fe79674497af184de912b41385829a2 | 09b9e4760375f6b56c1bd5b1cbc2084ed3d85692 | refs/heads/main | 2023-08-18T05:50:06.294507 | 2021-10-21T01:55:30 | 2021-10-21T01:55:30 | 419,549,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,351 | py | from __future__ import division
from __future__ import print_function
import time
import numpy as np
import scipy.sparse as sp
import networkx as nx
import tensorflow.compat.v1 as tf
from sklearn.metrics import roc_auc_score
from sklearn.metrics import average_precision_score
import random
#
# flag... | [
"noreply@github.com"
] | BioMedicalBigDataMiningLab.noreply@github.com |
3980e80dd80ef5cadf3756af2e63b515ee742f92 | cbfeba3a2132bcf70f3e0abe4bc265af792bfe34 | /analyse.py | 30946ae0e1e00e37375d045fc6d19c62323b233d | [] | no_license | ADlead/AlittleAnalyse | e737e380f805976946798fcd873ea670abebe316 | 28885f8857189df3fecbf58aaa45a733aac90a33 | refs/heads/master | 2020-08-02T07:32:10.534828 | 2019-09-27T08:50:23 | 2019-09-27T08:50:23 | 211,276,006 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,845 | py | import jieba
import wordcloud
import re
import pandas as pd
import numpy as np
from PIL import Image
from pyecharts import Map, Bar
# 根据文本生成词云图
def generatewordcloud(filename):
# 文字字体
font = 'msyh.ttc'
# 读取背景图片
img = Image.open('data/image.jpg')
img_array = np.array(img)
# 读取文本
f = ope... | [
"651998382@qq.com"
] | 651998382@qq.com |
4049908ad1eb290d1d43f4777d5dc90b9e7ded3f | 7fbec69c220ea20aacf694f6c2025f265cd25d19 | /Project/backend/api/migrations/0001_initial.py | 3050c690240b46851c23d15a3659e34a8f83f064 | [] | no_license | LeonJelsma/EEC-Public | 7113e212fe1da6f0139e8f84fb6bc72994bfb062 | e5b5d12a5ae295764a99062c6e40d79fd6a30299 | refs/heads/master | 2023-02-21T15:09:35.405803 | 2021-01-26T14:41:43 | 2021-01-26T14:41:43 | 333,094,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,490 | py | # Generated by Django 3.1.3 on 2021-01-14 14:54
import api.models
from django.db import migrations, models
import django.db.models.deletion
import django_enumfield.db.fields
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | [
"leonjelsma@gmail.com"
] | leonjelsma@gmail.com |
47cda0955cd4e9f9f85353add7ebd1f3eca8fde1 | 1ac0eb03b9b6650b1841e8a308768bc3af01fa02 | /bborobotfix.py | 9d803408c9b60dcba846693314bd003a3cdf6c68 | [] | no_license | criptik/bbotime | 85b035c8084c9825bfffd7847b9cbc4e92752c50 | bc84db6b577c73d5ec2f79175a196f265d17c0dd | refs/heads/master | 2023-08-13T23:37:10.419642 | 2021-10-14T22:16:18 | 2021-10-14T22:16:18 | 286,582,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,776 | py | import sys
import time
import os
import itertools
from pprint import pprint
import bbobase
gibName = 'GiB'
vsstr = ' vs. '
robotData = {}
class BboRobotFixer(object):
def __init__(self, args, travTableData):
self.args = args
self.travTableData = travTableData
self.initRobotData()
... | [
"tom.deneau@gmail.com"
] | tom.deneau@gmail.com |
c61144eb7f25628c20e8d28c3d8594103e3f8761 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2665/60700/255557.py | db2e4ffd1c9d52076916379745902972866bd4fa | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | def score(n, z):
c = 0
while z != 1:
if n % z == 0:
n -= 1
z -= 1
c += 1
else:
z -= 1
return c
tests = int(input())
nums = []
for i in range(tests):
nums.append(input())
for i in nums:
num = i.split(' ')
X = int(num[0])
Y = in... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c4023411ab5a91a0f7cf836536b90a6a4b121250 | 931db63982cb9404135410599631287e098152af | /preferences.py | 70d1267f06d95a3a1b65bdd1726888ac0bc7c483 | [] | no_license | Readdeo/Mega-Auto-Converter | f8fde9530cf1cb7d54ac0d62d9af5456b126ddae | 600a2d7c8f7967c90826867bd23a3ab547bacc1a | refs/heads/master | 2021-01-19T22:55:34.548658 | 2017-04-20T17:44:23 | 2017-04-20T17:44:23 | 88,893,337 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | #Facebook user's ID who receives the sent messages
FB_UID = XXXXX
#Facebook account credentials. This account sends the messages.
fb_email = "XXXXX"
fb_password = "XXXXX"
#Mega.co.nz account credentials
mega_email = "XXXXX"
mega_password = "XXXXX"
# if testMode is true, the script will use other folders in Mega to d... | [
"readdeo@citromail.hu"
] | readdeo@citromail.hu |
17530b0db0edd9795091ae246ac48dcc1bd18834 | 965af75565d1b36de2962cad22902f44dcb80b7e | /products/models.py | 8f6c6f7111b12e07cff154516c6432d1afd823af | [] | no_license | Yojanpardo/cost_center | 675e6e6becdf6d59e76607dba5ced0487402ad97 | 346a52d917e070d244119e5ed08e93a99b701f51 | refs/heads/master | 2022-12-01T09:44:15.716651 | 2022-11-22T13:41:21 | 2022-11-22T13:41:21 | 167,300,526 | 0 | 0 | null | 2022-11-22T13:41:22 | 2019-01-24T04:02:54 | Python | UTF-8 | Python | false | false | 448 | py | from django.db import models
# Create your models here.
class Product(models.Model):
"""docstring for Product"""
name = models.CharField(max_length=30)
description = models.TextField(max_length=255,blank=True,null=True)
image = models.ImageField(blank=True,null=True)
quantity = models.IntegerField()
created = ... | [
"Yojan.Pardo@gmail.com"
] | Yojan.Pardo@gmail.com |
fb3d2ef22cbf4cf78c3d2d9308d619b96cdbe5c6 | fb454873b8789ef25c832d2aac64498bb10dc45c | /day12.py | 4dcc5329ca60d20c2ff07a50e1459316c5347d8c | [] | no_license | purivikas/stepfunc-data-science-course-work | bf9d750591125525deb23d46298e0e3b913507e8 | 274994a4f73c5716d8311a24dae39ec27ad31cb0 | refs/heads/master | 2021-11-25T08:53:06.261518 | 2021-11-22T16:57:47 | 2021-11-22T16:57:47 | 102,774,460 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | # Functional Programming
# Hadoop - FaaS
my_nums = range(100)
my_new_num = []
for i in my_nums:
my_new_num.append( (i+1)*(i+1))
my_new_num = [ (i+1)*(i+1) for i in my_nums ]
def weired_sqr(n):
return (n+1)*(n+1)
my_new_num = [weired_sqr(m) for m in my_nums if (weired_sqr(m) % 2 == 0) and (weired_sqr(m)... | [
"purivikas@hotmail.com"
] | purivikas@hotmail.com |
a6604a953db2a729462d86dae03ead7286d62692 | 9329bf73d6d547a868a57e451d22e7c162a8cbd3 | /textacy/fileio/read.py | 682262424ac8366e4fb0d088e5c8dce8ffe07ca3 | [
"Apache-2.0"
] | permissive | honnibal/textacy | cf892536fd10478016fa2e7e820585269c44b102 | ddf3eeb238ac69470f3675fe27d1f99869ef99f7 | refs/heads/master | 2021-01-22T10:48:03.415828 | 2017-02-15T09:31:04 | 2017-02-15T09:31:04 | 82,043,411 | 3 | 1 | null | 2017-02-15T09:30:08 | 2017-02-15T09:30:08 | null | UTF-8 | Python | false | false | 7,225 | py | """
Module with functions for reading content from disk in common formats.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from functools import partial
import json
import ijson
from numpy import load as np_load
from scipy.sparse import csc_matrix, csr_matrix
from spacy.tokens.d... | [
"burton@chartbeat.com"
] | burton@chartbeat.com |
6440f146db749c4a4c0fd5af5cec494b2edc0203 | c7ce8d8e81529591eeb37d3c38b392b32b27343f | /Scripts/InsertPathMistakeFixer.py | cd565851a8c94f49963a3d24a52e038380e81a64 | [] | no_license | ZariaHoward/zariahoward.github.io | 9ab02c621ed361324917e22c1d1653298af516af | 0690d3f7ccb3fbdbfac52fe2ecc4b6f9b6cb2011 | refs/heads/master | 2021-01-10T14:42:56.484596 | 2017-05-16T17:36:28 | 2017-05-16T17:36:28 | 73,032,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from __future__ import print_function
import time
import requests
# import cv2
# import operator
import numpy as np
# Import library to display results
# import matplotlib.pyplot as plt
# get_ipython().magic(u'matplotlib inline')
# Display images within Jupyter
import pickle
from pymongo import MongoClient
import pp... | [
"zariah@andrew.cmu.edu"
] | zariah@andrew.cmu.edu |
8d53c5bf521e2f3b79a7aada71d071a0a574fa7e | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/resolve/Func.py | 604361c42001a5098af33c2e197f709e4294373c | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 30 | py | def info():
pass
<ref>info() | [
"Anna.Kozlova@jetbrains.com"
] | Anna.Kozlova@jetbrains.com |
b66d548a05f1c07c6beef0759e2eabf47607e270 | 4796f60be673a6f6550fa269580710235b472019 | /CiFa.py | 6c339ad75285bc0f6ecb02aeda4f519b8d22a600 | [] | no_license | LonelyHobby/Python | c37b1d1c599085bba9633a1a2416f63cd047bdc8 | fe9e120a31a6ad045f46a995b8219eabec89c96e | refs/heads/master | 2020-04-05T06:28:19.625797 | 2018-11-08T02:51:22 | 2018-11-08T02:51:22 | 156,639,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,016 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Huihuihui
# Time:2018/10/15
class DFA:
file_object = ''
line_number = 0
state = 0 # 状态
ResWord = ['int', 'if', 'then', 'else', 'end', 'repeat', 'until', 'read', 'write'] # 保留字
error_message = []
annotate_message = []
char_m... | [
"noreply@github.com"
] | LonelyHobby.noreply@github.com |
4519bbb98557cae399ce1a0e15dd213c3636fdb5 | aef185101e1185aa94d881a51fb9ff81ad952a1b | /src/customout.py | fae6a97a8175233ade6124acabb30914dc7e54f0 | [] | no_license | nekonbu72/gevent_websoclet_sample | 49d9991d0b6a01c5e9c6150cffc4eae2294cc7ca | a1b1dda8bf15e779443f6151457ec12248f019e8 | refs/heads/master | 2021-06-27T01:36:30.374068 | 2019-11-25T08:11:37 | 2019-11-25T08:11:37 | 223,219,517 | 0 | 0 | null | 2021-03-20T02:20:15 | 2019-11-21T16:41:28 | Python | UTF-8 | Python | false | false | 1,316 | py | import sys
from abc import ABCMeta, abstractmethod
class CustomOutBase(metaclass=ABCMeta):
orgout = sys.stdout
def __init__(self):
# self.orgout = sys.stdout
sys.stdout = self
def __enter__(self):
return self
def __exit__(self, ex_type, ex_value, trace):
sys.stdout =... | [
"nakatomo222@gmail.com"
] | nakatomo222@gmail.com |
b1f427561db4a8a8892aaa15cdc9c5dd62a5d1c3 | 6ffbeab46f8ed26dd3405afe1f278ef3c78f46e6 | /lesson9/zhangbaocheng/sqlmng/migrations/0001_initial.py | 55e3e8e1bdd4bd5f0fe83445dd4dc84a894178c9 | [] | no_license | cnjllin/devops6 | 3b0658572d3fce765325d080e167c2ae6fbff570 | ba6b2bad4cc126a2067cfe9c081b5248f93435aa | refs/heads/master | 2020-03-17T03:31:06.098229 | 2018-05-12T23:23:16 | 2018-05-12T23:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-02 16:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='dbconf',... | [
"1032231418@qq.com"
] | 1032231418@qq.com |
d506aedb7acdb118aa45dbf941f0cec61f9c786f | 9ed025c56abe977593a2f966e97214fa8f44431c | /Labs/Lab 1/problem1.py | 5000b7840ca29f63429734a078726d66690b6cc7 | [] | no_license | s4m15v0/CSE221 | 1ce5e273c2c0bd81bc3f7a3f9fa6d377bf77842e | 55a571e213474e8dfa32a3fcc03941699bfe3110 | refs/heads/main | 2023-08-21T04:04:10.609427 | 2021-10-14T19:12:27 | 2021-10-14T19:12:27 | 381,273,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | # -*- coding: utf-8 -*-
"""problem1.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1DjXtkHr5utg807ms_nKKRaLWUnX-8hUi
"""
def isPalindrome(word):
if(len(word)==0):
return False
N = len(word)
for i in range(0,N//2):
... | [
"noreply@github.com"
] | s4m15v0.noreply@github.com |
64d8773b96f55433064717a353e34ceaa4635731 | 747febe786dd6b7fd6c63cfe73dbe3023354daa8 | /src/the_tale/the_tale/game/companions/tests/test_common.py | 4a3ce502c3ac38d97db8d8214c8c0ee0721ab1cc | [
"BSD-3-Clause"
] | permissive | the-tale/the-tale | 4e4b8d91dc873a5fb935fe58e9721a877baa6d3f | e8450bd2332344da805b1851e728da5a3e5bf0ef | refs/heads/develop | 2023-08-01T13:53:46.835667 | 2022-12-25T18:04:56 | 2022-12-25T18:04:56 | 1,949,167 | 98 | 52 | BSD-3-Clause | 2023-02-15T18:57:33 | 2011-06-24T18:49:48 | Python | UTF-8 | Python | false | false | 2,144 | py |
import smart_imports
smart_imports.all()
class CommonTests(utils_testcase.TestCase):
def setUp(self):
super(CommonTests, self).setUp()
game_logic.create_test_map()
self.account = self.accounts_factory.create_account()
self.storage = game_logic_storage.LogicStorage()
s... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
8a63a2dc5d143b6a79f7e87a7ba57b61e201db1a | b41ef09b89795987b1e78c6fa7cbe84774d07469 | /gui.py | fde7561af28c27e0aedd7c3fa029acd6a2a8a4af | [] | no_license | renjiezhu/Poisson-Spot-Simulator | abe54a678ef18676e50ac38acff65fb06dd6a903 | 1d6eae6247f732d9fb8b31dc7a378460a9d5c68b | refs/heads/master | 2020-03-20T08:42:13.589567 | 2018-06-14T06:42:46 | 2018-06-14T06:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,597 | py | #
# PHYS 129 final project
# Poisson's Spot
# GUI
#
# June 6, 2018 modified by Renjie Zhu
# June 5, 2018 modified by Renjie Zhu
# May 23, 2018 created by Renjie Zhu
#
import sys
import matplotlib.pyplot as plt
from PyQt5.QtWidgets import (
QApplication,
QWidget,
QLabel,
QMainWindow,
QPushButton,
... | [
"renjie.j.zhu@gmail.com"
] | renjie.j.zhu@gmail.com |
2b37f66501969b13276ac35249571598deb4ca26 | 5bd9a1e97c6d02cf3cf65fa35bcdfaa8c3df3c03 | /Python_API/Illumina_NexteraXT/nexteraXT_dna_library_prep_part4.ot2.py | 685e25958cfa0ff3f784f263eb3b00a12f7a2d4d | [] | no_license | YazBraimah/OT2_protocols | 40bccabc0adf8b4133eaac7634388e1d8e6fb667 | 663cae57f590cff30a004f9f0ba5414a38e88e91 | refs/heads/master | 2020-12-13T15:33:20.201307 | 2020-09-10T02:29:29 | 2020-09-10T02:29:29 | 234,459,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | from opentrons import labware, instruments
"""
Pool Libraries
"""
# labware setup
in_plate = labware.load('96-PCR-flat', '1')
tuberack = labware.load('tube-rack-2ml', '2')
def run_custom_protocol(
number_of_samples: int=24,
number_of_pools: int=1,
pool_volume: int=5
):
total_tips... | [
"yahmed@syr.edu"
] | yahmed@syr.edu |
f9bca7acd955016867e38b15e083abc468e59751 | 71982e1f40d20a03e8de696e4600f0bc96134762 | /1_interpolation/cmain.py | 5a3160bfe43e759bf9a4a0f4ab0a6422fadc3982 | [] | no_license | amaliestokholm/numeric | cba762618d3aedd28e742f64b881346d1ff49ca2 | 310ef38bd79badff37c27f9070dbb00441011394 | refs/heads/master | 2021-01-18T22:54:05.772793 | 2017-06-30T07:06:12 | 2017-06-30T07:06:12 | 87,079,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import numpy as np
from interp import interpolation as interp
# Define start and end point and the number of points in the function (n) and in the interpolation (N)
n = 50
N = 100
start = 0
end = 4 * np.pi
# Make input -- as an example, the cosine function is used.
x = np.linspace(start, end, n)
y = np.cos(x)
z = np.... | [
"stokholm@post.au.dk"
] | stokholm@post.au.dk |
f329904c13684e820a4b6424c8f5e21dfc8aa986 | 2d2f2165d33b75e7ed6b30f5b3c93b022b9021a2 | /workspaces/migrations/0018_searchresult.py | 358a093d3ae0186238ed0ea4fdf65bb055a6ba05 | [
"MIT"
] | permissive | angelxehg/tomatoe-chat-api | 5634d195601e1b5269e09e4d0ad8a11f8e60fe7b | d22a75d8a15d478491f46ef02e597d2a710107e1 | refs/heads/main | 2022-12-31T01:31:07.865367 | 2020-10-22T18:53:12 | 2020-10-22T18:53:12 | 265,900,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # Generated by Django 3.0.7 on 2020-08-19 18:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('workspaces', '0017_message'),
]
operations = [
migrations.CreateModel(
name='SearchResult',
fields=[
... | [
"50889225+angelxehg@users.noreply.github.com"
] | 50889225+angelxehg@users.noreply.github.com |
10e5fa2f5498659c925e203978736cee5c3b6290 | 12246c255155df4af076cc75b5085b187d847fb2 | /algorithm/algorithm_ evaluator_temp.py | 1e0ba18a58bb9824d4ac41837a52c446a35895df | [] | no_license | babakaskari/MachineLearning | e349748fa8fae499faf86ff1ae7e0624fea3d6ff | c948b4b6c889bddbb09d0876a9448324e80a9b06 | refs/heads/master | 2023-03-12T07:50:28.616330 | 2021-02-23T12:25:10 | 2021-02-23T12:25:10 | 315,897,013 | 0 | 0 | null | 2020-11-25T11:02:10 | 2020-11-25T09:57:05 | Python | UTF-8 | Python | false | false | 8,956 | py |
# importing required libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import LabelEncoder, StandardScaler
from sklearn.metrics import mean_squared_error
from sklearn.model_selection import cross_val_score, train_test_split, GridSearchCV
from sklearn import pre... | [
"Siamak"
] | Siamak |
76fcee228ba1a24b432c4535e92d0ceb516585e1 | b37105847106177c4860a80cde3dda92ac70070b | /auth/app/db/database.py | 98d4a9235bf24659b9d2148c996b02f3acb14647 | [] | no_license | webclinic017/fastapi_with_nats | 8a2cdc5dc68c5d64d9d2fca29f3a6a568699bce7 | 5b59472049fe3b6db050f01232148987a862235a | refs/heads/main | 2023-03-30T04:29:42.713553 | 2021-03-30T13:31:41 | 2021-03-30T13:31:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | import os
import configparser
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
# path = os.path.join(os.path.dirname(__file__), '..', 'config', 'config.ini')
# config_ini = configparser.ConfigParser()
# config_ini.read(path)
# POSTGRE... | [
"i.norihi.472@gmail.com"
] | i.norihi.472@gmail.com |
0ef076eaa70916b75c905f4b777a1659d48397c3 | 4f41e5842f031739f8153ecac202c4849f849d37 | /API/api_run.py | e44913214424853e82fc523312cf4e86d90af657 | [] | no_license | khirod-datascience/Rah-model-api | e40fd2dff4473d9aaacddbd5ade3534bfd0177a5 | 2de3e48c9c2119b475937f0180454190a7f9c29d | refs/heads/main | 2023-08-31T04:15:58.984547 | 2021-10-29T14:12:43 | 2021-10-29T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 27 12:21:00 2021
@author: Devdarshan
"""
from flask import Flask, request
from flask_restful import Resource, Api
import search_by_definition
import fuzzy_wuzzy_Search_by_definition
import next_word_predict
app = Flask(__name__)
api = Api(app)
class predict(Resource):
... | [
"66660324+khirod-datascience@users.noreply.github.com"
] | 66660324+khirod-datascience@users.noreply.github.com |
272726f297893f2cbace10bfa1026de380ddc5d4 | 81724f74e7603476c887dbdc2bfe2e913ee50334 | /Analysis/config/simple_analysis.py | 84a821f80753410d643f46358e8e686ad5c2e51a | [] | no_license | michelif/diphotons | 7fa6ccc826f212f7e9900f870cc85a7e13738893 | 6102de180e1c1743aca6df6b197aa5aa459dc68f | refs/heads/master | 2020-06-16T18:36:39.747819 | 2017-09-05T15:42:15 | 2017-09-05T15:42:15 | 75,076,132 | 0 | 4 | null | 2016-11-29T11:45:23 | 2016-11-29T11:45:23 | null | UTF-8 | Python | false | false | 10,584 | py | #!/usr/bin/env cmsRun
import FWCore.ParameterSet.Config as cms
import FWCore.Utilities.FileUtils as FileUtils
process = cms.Process("Analysis")
process.load("diphotons.Analysis.highMassDiPhotons_cfi")
from flashgg.MicroAOD.flashggPreselectedDiPhotons_cfi import flashggPreselectedDiPhotons
from flashgg.Taggers.diph... | [
"pasquale.musella@cern.ch"
] | pasquale.musella@cern.ch |
53b08521815f7bd672a1d8354b51b3693af42b6a | 3af4bc44120806de09e9e9542719d80964f0f7cd | /python/skripte_datensammlung/tweet_extractor.py | 3c4eb28861605cbba5c3d78e2d2c15ae6a822fc5 | [
"MIT"
] | permissive | TimSchmittmann/R-vs-Python | 4dfa80e8a97c5651b6675a2e32c5132571e8d19d | 4bacfaf236839a912f5a6a323d9756a47ab2d880 | refs/heads/master | 2020-04-10T09:13:45.422939 | 2018-12-10T11:20:55 | 2018-12-10T11:20:55 | 160,929,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,921 | py | # -*- coding: utf-8 -*-
'''
@author: Tim Schmittmann
'''
from __future__ import print_function
import twitter
import time
from langdetect import detect
import csv
import config
import math
import sys
import subprocess
from enum import Enum
Mode = Enum('Mode', 'PAST RECENT')
# Create an Api instance.
api = twitter.Ap... | [
"tim.schmittmann@gmx.de"
] | tim.schmittmann@gmx.de |
ae54176dcfa773ec0636d58d7dd0a27b87fb7233 | e7a8ab3898ef331ca11c63808c4d9449794308c2 | /Leetcode/637-average_levels_binary_tree.py | b76472e42da39f5cd2cd1522e1bf704f3bfca5c9 | [
"MIT"
] | permissive | EdwaRen/Competitve-Programming | 615695e00b13bda8024055f9634a7de30534977c | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | refs/heads/master | 2021-06-06T11:23:18.758911 | 2021-05-29T14:27:04 | 2021-05-29T14:27:04 | 97,161,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
import collections
class Solution(object):
def averageOfLevels(self, root):
"""
:type root: TreeNod... | [
"eddie.ren.2013@gmail.com"
] | eddie.ren.2013@gmail.com |
7cbbea8b7e51984f9d29d90a14d37aec9d670e29 | 51b0cc866c1e24e09f67d947600ce0b070df1b76 | /problems/problem_005.py | 6a64158d92b9dc418a59b341dbf18340a3cf119b | [] | no_license | zzggbb/euler-problems | b4dfd9fd6221cd43713aa201c9c7acf8a48219dc | a7e9da92b0b40a00cf0ffeea4b85a69c3b3f66df | refs/heads/master | 2020-03-26T10:30:24.163715 | 2013-10-27T07:06:33 | 2013-10-27T07:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | def getpassed(min,max):
passed = 0
number = max
while passed != 20:
for i in range(min,(max + 1)):
if number % i == 0:
passed = passed + 1
#elif number % i != 0:
else:
number = number + 1
passed = 0
print ("The number " + str(number) +... | [
"zbradley96@gmail.com"
] | zbradley96@gmail.com |
94f35b705932d2f07602d05cfde485af977a3f1e | d18d057168b5f856d9f2b37310e58e6c41f1387b | /streamz_ext/graph.py | 550910ce3089851126d03d11c19c065f638ad7f1 | [] | no_license | Zatsepingroup/streamz_ext | 9cdfb440fa1152db690de906697956f0d10a0356 | ec604c4dd8486070613302414d318e6478e80005 | refs/heads/master | 2020-03-26T21:28:07.088748 | 2018-08-15T20:26:16 | 2018-08-15T20:26:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,859 | py | from weakref import ref
import matplotlib.pyplot as plt
import networkx as nx
from grave import plot_network
from streamz import combine_latest
from streamz.graph import *
from streamz.graph import _clean_text
from streamz_ext import Stream
def create_graph_nodes(node, graph, prior_node=None, pc=None):
"""Creat... | [
"cjwright4242@gmail.com"
] | cjwright4242@gmail.com |
a51b2c3e4ff8d91dfe61a02a122b2ce309ab5088 | 9ea59574bd785066a9e4c4f52361b42626f1581a | /movieproject/movieproject/urls.py | c248138f79310c44d359e7a4638143b02a79e54b | [] | no_license | Aiswaryakpda/movie | ba83fb760c496e3bd821df2a0f6f508e8cc3a7cc | ef1b780d91110c61bef827731d474a4a24ce94bf | refs/heads/master | 2023-04-20T16:20:48.220993 | 2021-05-11T04:35:21 | 2021-05-11T04:35:21 | 366,255,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | """movieproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-... | [
"aiswaryakpda@gmail.com"
] | aiswaryakpda@gmail.com |
646a519b6dc1de4f1717b86e076192d7f5b2795a | ad08ee023345fcc42fdac6fab527809b2d502fa5 | /peek_plugin_diagram/_private/tuples/GroupDispsTuple.py | 5d5ba422a06fe8a6234f76e9e8c127f578073dc3 | [] | no_license | Synerty/peek-plugin-diagram | fcaefc414334e4584976d0b0567712bb47a3082a | 8efffa2bb3877b7fcd3736b80df53adc784ca69c | refs/heads/master | 2021-07-03T17:42:17.129328 | 2020-10-27T04:55:52 | 2020-10-27T04:55:52 | 191,874,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | from typing import List, Any
from vortex.Tuple import addTupleType, TupleField, Tuple
from peek_plugin_diagram._private.PluginNames import diagramTuplePrefix
@addTupleType
class GroupDispsTuple(Tuple):
""" Group Disps Tuple
This tuple stores a list of DispGroups that are in the 'ID:dispgroup' grid key
... | [
"jarrod.chesney@synerty.com"
] | jarrod.chesney@synerty.com |
78d9aa0431e117f3a130b270ab269f30ffc85cbe | f4823aed72eb36944f8aebf1a2f40f1a16f5a27a | /setup.py | 1987097452d097324f3ed237170ea4b765cf6606 | [
"BSD-3-Clause"
] | permissive | dbotwinick/python-botwinick-gis | 4191ed07408816cd1e1af086b8308751e776e44d | 4e26bff851d676880c40bf360f401fd3814d3a94 | refs/heads/main | 2023-02-25T07:05:11.689669 | 2021-02-02T19:38:30 | 2021-02-02T19:38:30 | 304,963,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | # author: Drew Botwinick, Botwinick Innovations
# license: 3-clause BSD
import setuptools
with open("README.md", 'r') as f:
readme_txt = f.read()
setuptools.setup(
name="botwinick_gis",
version="0.0.4",
author="Drew Botwinick",
author_email="foss@drewbotwinick.com",
description="GIS support pa... | [
"drew@polymathcoder.com"
] | drew@polymathcoder.com |
3a27ef8a71a4b63d5aaec3a4c06030dae22e0a90 | a79bb3cc1ddfd42d4c1d50efa1b3d7acf01a8186 | /Pendulum-Damping/PendulumDamping.py | ea752a8a24fa28b91df107da580bfdaf9601b21c | [] | no_license | bshreddy/PhysicsSims | dc085bc202e94d27c93364ace3c686df0c4b0113 | e31c1574eb39b720545ecc59acb64f65f3ecb962 | refs/heads/master | 2023-07-25T08:48:38.877187 | 2020-05-28T17:28:17 | 2020-05-28T17:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,946 | py | import math, time
import pyglet
from pyglet.window import FPSDisplay, key
class PendulumDamping:
def __init__(self, position=(0, 0), length=1, radius=20, theta = math.pi/8, angular_velocity=0, damping=0.1):
self.x, self.y = position
self.length = length
self.radius = radius
self.t... | [
"sh.bheemreddy@icloud.com"
] | sh.bheemreddy@icloud.com |
984977077d80e16cbee6059035c1ad8932d90f6b | 5360ce3212a97984d725a10ae3f07001c668682d | /StructVBERT/lxrt/optimization.py | 923854cf7d54ea65f4676b82ad5b1940aa028a48 | [
"Apache-2.0"
] | permissive | RunxinXu/AliceMind | ac4c6f35d271717ee3174a2c1ec1c25ea60033d4 | 4bd9f94d0f34d2a2846c5d892ca16121b18b6e10 | refs/heads/main | 2023-08-14T07:32:10.625425 | 2021-09-28T14:50:41 | 2021-09-28T14:50:41 | 411,323,713 | 0 | 0 | Apache-2.0 | 2021-09-28T14:49:04 | 2021-09-28T14:49:03 | null | UTF-8 | Python | false | false | 8,155 | py | # coding=utf-8
# Copyright 2019 project LXRT
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# 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:/... | [
"lfl259702@alibaba-inc.com"
] | lfl259702@alibaba-inc.com |
91134b05463c18e8d0906f98b8b542a239af5beb | 61f30ca19d9553ffb55dd2deccf895405a199719 | /src/update_workflows.py | 50900ea70258032fae567a2ac3fcd22e3a388813 | [
"MIT"
] | permissive | deanishe/alfred-packal-search | 6fc1d0c3f12a061275b5731c2603517e0d18762e | 88427bcbf127e3d15674c71566f253cf312f96d6 | refs/heads/master | 2021-06-10T09:02:04.105014 | 2017-09-17T12:01:34 | 2017-09-17T12:01:34 | 17,991,728 | 43 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,495 | py | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright © 2014 deanishe@deanishe.net
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2014-04-07
#
"""update_workflows.py [--force-update]
Usage:
update_workflows.py [--force-update]
"""
from __future__ import print_function, unicode_literals
i... | [
"deanishe@deanishe.net"
] | deanishe@deanishe.net |
10721ca073cda40b158e49125801f77e6089f7c7 | ddddaa700e4642f46a2c1e1e0271a7c8ea62ba0f | /harness/tests/experiment/fixtures/pytorch_onevar_model.py | ee5b464720be7a6043571f803f38299cc38f51aa | [
"Apache-2.0"
] | permissive | determined-ai/determined | 9d563cb5ffd074c88ee5edc9bf22ab9c3cb78c7e | 8239b1993f4f44390f4e88901ffaf3b12429b83c | refs/heads/main | 2023-08-21T12:13:36.651298 | 2023-08-21T08:34:16 | 2023-08-21T08:34:16 | 253,846,879 | 2,531 | 330 | Apache-2.0 | 2023-09-14T21:54:17 | 2020-04-07T16:12:29 | Go | UTF-8 | Python | false | false | 24,135 | py | # type: ignore
"""
A one-variable linear model with no bias. The dataset emits only pairs of (data, label) = (1, 1),
meaning that the one weight in the model should approach 1 as gradient descent continues.
We will use the mean squared error as the loss. Since each record is the same, the "mean" part of
mean squared ... | [
"noreply@github.com"
] | determined-ai.noreply@github.com |
62fce9ac99608d53e65fe6b48b63b38cc4e332ca | 4d49d4d59c9517fe99884cd69ad88644265c6755 | /week1/Group2/boj2798_brong.py | a451bc3f9f1e209e3a85cae3ecef797c367d88b8 | [] | no_license | all1m-algorithm-study/2021-1-Algorithm-Study | 3f34655dc0a3d8765143f4230adaa96055d13626 | 73c7cac1824827cb6ed352d49c0ead7003532a35 | refs/heads/main | 2023-06-03T18:45:28.852381 | 2021-06-11T06:28:44 | 2021-06-11T06:28:44 | 348,433,854 | 8 | 16 | null | 2021-06-11T06:28:45 | 2021-03-16T17:23:37 | Python | UTF-8 | Python | false | false | 307 | py | N,M = map(int,input().split())
arr = list(map(int,input().split()))
ans = []
for i in range (N):
for j in range (i+1,N):
for k in range (j+1,N):
ans.append(arr[i]+arr[j]+arr[k])
a = 0
for i in range(len(ans)):
if ans[i] <= M :
if ans[i]>a:
a= ans[i]
print(a) | [
"jeongdahyun@jeongdahyeon-ui-MacBookPro.local"
] | jeongdahyun@jeongdahyeon-ui-MacBookPro.local |
fc4c668b7469e44b583cac6cfce0ea57dc23329d | ed1d17be06bdd652e29a377669bc5c6a6eaa699a | /CA117/plural_012.py | b64bb240008bc1527af411c3c7864b32f329a0d3 | [] | no_license | DanielSammon576/DCU-College-Work | ace8d621ada68db903ea07d55d1da4ca68da5ef7 | 6a943176e7a596ecd082b6ed7c1d6e8d059a1236 | refs/heads/master | 2023-01-19T00:30:59.013111 | 2020-11-16T10:24:39 | 2020-11-16T10:24:39 | 214,476,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | #!/usr/bin/env python
import sys
def pluralise(s):
a = ["ch", "sh", "x", "s", "z"]
b = ["a", "e", "i", "o", "u"]
i = 0
while i < len(s):
if s[len(s) - 2:] in a:
s = s + "es"
elif s[len(s) - 1:] in a:
s = s + "es"
elif s[len(s) - 1:] == "y" and s[len(s) - 2:len(s) - 1] not in b:
s = s[:len(s) - 1]... | [
"daniel.sammon4@mail.dcu.ie"
] | daniel.sammon4@mail.dcu.ie |
0ee3c126ecddab29197a9ee4b8ee61de880ddc76 | 660e35c822423685aea19d038daa8356722dc744 | /analytic_sale/setup.py | 39356dab2189f7166057353a8b8a9f25d6589bba | [] | no_license | saifkazi/tryton_modules | a05cb4a90ae2c46ba39d60d2005ffc18ce5e44bb | 94bd3a4e3fd86556725cdff33b314274dcb20afd | refs/heads/main | 2023-05-05T12:20:02.059236 | 2021-05-19T10:46:37 | 2021-05-19T10:46:37 | 368,768,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,159 | py | #!/usr/bin/env python3
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import io
import os
import re
from configparser import ConfigParser
from setuptools import setup, find_packages
def read(fname):
return io.open(
... | [
"saif.kazi76@gmail.com"
] | saif.kazi76@gmail.com |
904275f8e6333b8e92e842c880ec03b335a7b698 | 7f4c82f7eb8d2805e378586f14e214cdaacfdb4a | /books/model/NotesAndTerms.py | 208ecff371824b226ffa14dd76e82e5e1e100bc2 | [
"MIT"
] | permissive | deepubansal/books-python-wrappers | 5a922267ec8382b3542638d894c96f4891b57bf5 | 51210c8d557a32564f976a56214d3c0807f46a90 | refs/heads/master | 2022-12-05T11:25:01.694021 | 2020-08-29T07:35:23 | 2020-08-29T07:35:23 | 288,738,813 | 0 | 0 | MIT | 2020-08-29T07:35:24 | 2020-08-19T13:26:04 | Python | UTF-8 | Python | false | false | 1,148 | py | #$Id$
class NotesAndTerms:
"""This class is used to create object for notes and terms."""
def __init__(self):
"""Initialize parameters for notes and terms."""
self.notes = ''
self.terms = ''
def set_notes(self, notes):
"""Set notes.
Args:
notes(str): N... | [
"sahaya.ramesh@zohocorp.com"
] | sahaya.ramesh@zohocorp.com |
0b39b398e8d03bd39a28a6aeba56a856cb111b56 | 7cdc9c4594a5e1cd6bbf1385c5721f4c30b02975 | /parsifal/reviews/templatetags/get_user_article_evaluation.py | 7a5f68ef649a0fbf7d39e5c0a54501856990f9ba | [
"MIT"
] | permissive | thiagok2/parsifal-mec | 18602b53f042a91d4616214b849607c6b691b018 | 71d06e1094b512476e97204d63d01ff4a251dc9e | refs/heads/master | 2021-08-18T08:21:49.044031 | 2021-08-13T12:42:58 | 2021-08-13T12:42:58 | 191,060,711 | 2 | 3 | MIT | 2019-12-02T20:14:47 | 2019-06-09T22:15:47 | Python | UTF-8 | Python | false | false | 341 | py | from django import template
from parsifal.reviews.models import Article, ArticleEvaluation
register = template.Library()
@register.assignment_tag
def get_user_article_evaluation(article, user_id):
status = Article.objects \
.get(id=article.id) \
.get_user_evaluation(user_id=user_id... | [
"tyagogoulartn@gmail.com"
] | tyagogoulartn@gmail.com |
fb7f43e871da42fedc416737fd42d21b0a39a0ff | 1e4306db679c2f8e895af30cb70df68af5f6bd14 | /JogoVelha.py | f2a049b5f6b3c0bbe75de863cce4c8efcad16654 | [] | no_license | Lucas-CSa/minimax-ai | 0970b634c77acf8cd32eb4d17716d0b806b772a7 | 31a83ffd403a29a192b00c913c680e6cbeef7fd2 | refs/heads/master | 2023-05-04T15:00:18.363160 | 2021-05-12T18:37:59 | 2021-05-12T18:37:59 | 366,817,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,787 | py | import numpy as np
import datetime
from LuskinhaPlayer import BigBrainMoves
from RandomPlayerJV import RandomPlayerJV
from termcolor import colored
class JogoVelha:
def __init__(self, player1, player2):
self.board = np.zeros( (9) )
self.players = [player1, player2]
def printSymbol(number):
... | [
"lucas.cisa19@gmail"
] | lucas.cisa19@gmail |
a293d517bedd10d6570037e13c9af25a60b78578 | 0db4f248a6f8c036ff47a90e5f85e1e0b8e9b8a4 | /label_visualize/audio/test.py | 75110e91446d7606a03d851456e723cdb588f83c | [] | no_license | vunguyen1408/no-more-weekend | 9c6afec60d92c7788d0c8b03472b200840d89d11 | 2b5025798e232ffc23cb1b498d2adb89078f602a | refs/heads/master | 2021-08-08T11:54:38.244834 | 2017-11-10T07:22:00 | 2017-11-10T07:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import os, os.path
import pandas as pd
import json
import subprocess
# def getLength(filename):
# result = subprocess.Popen("ffprobe " + filename)
# return result
filename = '/u01/oracle/oradata/APEX/MARKETING_TOOL_02_JSON/2016-10-01/videos/2016-10-01_9.mp4'
def getLength(input_video):
result = subprocess.ch... | [
"ltduong1994@gmail.com"
] | ltduong1994@gmail.com |
b62b7c93a6b16398a156ceaca267898e51a6cae8 | b3350357cf9f44a2357032460274113258db4949 | /JavaAPIScraper/java_parser_2.py | 38df83bdb59111e8edcf6646969f5e5b043860c3 | [] | no_license | heenasurve/JAVA-API-Visualization | 3f7be37362357adcc2a267ded08aec492b50d290 | 5a4527b3e928278582d9fe399d8466e407cbce16 | refs/heads/master | 2021-09-13T06:49:24.385831 | 2018-04-26T05:22:35 | 2018-04-26T05:22:35 | 123,084,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,138 | py | from py2neo import Graph,Node,Relationship, NodeSelector
import re
import sys
import plyj.parser
import plyj.model as m
files = ['rmi_server.java', 'rmi_client.java', 'rmi_server_interface.java']
descriptions = [
'implements a remote object and registers it with the RMI registry',
'look... | [
"hfsurve@hotmail.com"
] | hfsurve@hotmail.com |
90745e3748852df86cbde84effdd8c05856a95bb | 07e4bfaa0a9e36becef7f4163c42535810a8bc07 | /application.py | a34959d4e8d9a1977bed57524ce6e6c08ffaa0ae | [] | no_license | uorocketry/UIgnite | 8bef44668f4e1f46b9b8e904fc5f961948179eda | 93cbe9f908c21c56501d4dab286aeabf4b8d78be | refs/heads/master | 2021-09-24T11:59:03.593599 | 2018-10-09T16:19:09 | 2018-10-09T16:19:09 | 108,095,504 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,944 | py | #!/usr/bin/python
import argparse
from Tkinter import *
from Utility import *
import serial
import sys
import time
parser = argparse.ArgumentParser(description='establish serial communication with Serial port based on platform and port no.')
parser.add_argument('platform', help="w -> windows | u-> unix | uw -... | [
"pbuzuloiu@yahoo.ca"
] | pbuzuloiu@yahoo.ca |
4be1b8d89abbdf4762c8e8d0166a630f7f34f665 | b194de597ed9f327859d697f6f1980ff686fb50d | /תרגול4.py | 030ff223cfbbff1f2511047700cf9cdc86809a17 | [] | no_license | barjakobovitz/limodim | a43cb64fb488bada356caa7534c3ba777ee97f74 | 32ba6c74fc4bfe17505b0827bc4f6cac27e7a9d7 | refs/heads/main | 2023-01-24T02:55:08.158186 | 2020-11-24T15:27:49 | 2020-11-24T15:27:49 | 315,673,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | #ex1
lst=["what","is","The","matrix","neo"]
a=1
z=3
low= min(a,z)
high= max(a,z)
new_list= sorted(lst[low:high+1], key=str.lower)
print (lst)
print (new_list)
#ex2
phone_book=[["bar","0545900961"],["zvi","0545680300"]]
name="zvi"
found= False
phone= ""
for contact in phone_book:
if contact[0]==name... | [
"noreply@github.com"
] | barjakobovitz.noreply@github.com |
c1f4ea1630b5cb9c568febf67aadb059bc3f6f4d | 214a1f5f650729e25858aea46ce1be6359e760cb | /ex3.py | 8206702c9758994d74109ec43f02a488e6bfd91d | [] | no_license | deekshithas/pycode | e7e3fdc9f18611ffafbab4380edcc2eb674f8685 | 868ce9e4f557495b9dc12547a2b7881fb0eba0cd | refs/heads/master | 2020-03-27T10:11:47.283796 | 2018-08-28T06:38:44 | 2018-08-28T06:38:44 | 146,402,211 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | import cv2
#scaling,resizing and interpolation
img=cv2.imread("flower.jpg")
cv2.imshow("original image",img)
cv2.waitKey(0)
img_scaled=cv2.resize(img,None,fx=0.75,fy=0.75)
cv2.imshow("scaling linear interpolation",img_scaled)
cv2.waitKey()
#lets double the size of our image
img_scaled1=cv2.resize(img,None,fx=2,fy=2,int... | [
"noreply@github.com"
] | deekshithas.noreply@github.com |
470da951c844255c64b9acddbcfc9b3911f81172 | bf84f1f2eb99c877e4cda94f656764fd7dd6f00a | /mcq/main.py | e602e12655ba40bfce616e8731ab76e9fdd44910 | [] | no_license | Jubayer247/mixed | 8ac2c925f92d8e9ab23e3fde28ccae192e4e567e | 6a24e1005e7f69ddc68d85e65e56c6d589c97abb | refs/heads/master | 2023-07-21T23:23:12.462707 | 2021-08-31T00:03:28 | 2021-08-31T00:03:28 | 401,512,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | from gtts import gTTS
tts = gTTS('hello', lang='en')
tts.save('hello.mp3') | [
"mdjubayer247@gmail.com"
] | mdjubayer247@gmail.com |
62a85ce9f95f05f7ee06d3dd88a2fec14efc7fae | 1f4ca645e123812ee7234670797375452a143676 | /asking/forms.py | 57b74a1b1d8e2d12e5e2c5071bb9d99681cc25ee | [] | no_license | GeniailBonehead/asking | fa71aa9c376887258dbda6d1fc3fca0603c5a4a1 | bde1bd1379cd624eebda129f5dac7dbd931014bd | refs/heads/main | 2023-08-28T03:13:16.033814 | 2021-11-10T20:23:59 | 2021-11-10T20:23:59 | 426,740,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | from django import forms
from django.contrib.auth.forms import AuthenticationForm
class UserLoginForm(AuthenticationForm):
username = forms.CharField(label='Имя пользователя', widget=forms.TextInput(attrs={'class': 'form-control'}))
password = forms.CharField(label='Пароль', widget=forms.PasswordInput(attrs={... | [
"dstrannik10@gmail.com"
] | dstrannik10@gmail.com |
2dffe16cd46d1be730bec0b9cf0f13dde7be83e0 | 93b37621314b34e40d7f2f0c8fa97948dab9c63f | /sniffer/wsgi.py | 1a3ef204b65614700c132a51a3e46eb4688445a0 | [] | no_license | BraFei/sniffer | 21898fcdd2a99f27ab6bb17618032c5555f7b928 | e3ba58b60989c2585b444baa0030067865554157 | refs/heads/master | 2020-03-21T17:10:37.403760 | 2018-07-08T08:04:19 | 2018-07-08T08:04:19 | 138,817,807 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for sniffer 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(... | [
"1836088871@qq.com"
] | 1836088871@qq.com |
36fa121df7b2ce09f5d72136d2a1aaec557c7cf8 | c9acd0abd258f1400e9ba4d653d6fd24d0d3a7a9 | /domiporta/category.py | 8ca6b1c0a9d1ff931e2db55a10fe278b0022b414 | [
"MIT"
] | permissive | nieruchomosci/pydomiporta | 4206f51310af22c446bd753ed1ab353337f9bb05 | 458231ce9174e72ef4f6c98dd142339929a22894 | refs/heads/master | 2020-03-11T16:06:48.428938 | 2017-11-24T10:14:59 | 2017-11-24T10:14:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
from bs4 import BeautifulSoup
import domiporta
import domiporta.utils
log = logging.getLogger(__file__)
logging.basicConfig(level=logging.DEBUG)
def get_category(url=None, category='nieruchomosci', transaction_type='wszystkie', voivodeship=None, city=None,
... | [
"mail@pythonic.ninja"
] | mail@pythonic.ninja |
0a4fae9b40cd22fc05ec3b4c4b51ec2141535af4 | 752d9e6413de28397da8804e7d73784064459773 | /pyQtTuts-v04.py | c1cb44f6e9accb3892be1313d731ca913e2555c4 | [] | no_license | SlyCodePanda/a-mess-of-pyqt-stuff | 2e3404fa4833d39e1b9bac828f247028f583ffe4 | 19a0aecb2b826854186911dbee23f068c456092f | refs/heads/master | 2021-01-01T06:56:46.071814 | 2017-07-18T05:45:36 | 2017-07-18T05:45:36 | 97,557,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,843 | py | import sys
from PyQt4 import QtGui, QtCore
# Window inherits from the Qt widget 'MainWindow'
class Window(QtGui.QMainWindow):
# Any core application stuff goes in the 'init' function.
def __init__(self):
# With 'super' what we return is the parent object and so our parent object would be out main wind... | [
"reneemarsland@hotmail.com"
] | reneemarsland@hotmail.com |
1738a57b1e32175ba5e0dc80f365532ff1433e5a | feb72ff3447efeaf4e8087f7f9cd0f83e19b4920 | /personal/RebeccaTippens/new_averaged_spectra.py | 27966ca752346a02a995b53b74f51e5ff51beaaa | [] | no_license | gnarayan/astr596 | 81fe27bf67e7caa68e8c314cdbe68e818f0512dd | 1f76df17903875162885308479831d8bb345c2b7 | refs/heads/master | 2021-01-20T22:02:00.941404 | 2017-08-29T17:00:21 | 2017-08-29T17:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | #Use numpy and scipy
import math
import numpy as np
from scipy.interpolate import interp1d
import matplotlib.pyplot as plt
#Read data from first file into two arrays
#could also use array = np.loadtext()
x1=[]
y1=[]
for line in open('/Users/Rebecca/astr596/data/sn2011by-hst+lick.flm'):
columns = line.split()
if len... | [
"Rebecca.Tippens@gmail.com"
] | Rebecca.Tippens@gmail.com |
83d0a32ef2d365d17caa9d311c367ed5828559ac | 847f93bb462bfc1922f49beb00b775c390ac556e | /coding_python/2729.py | 432364d0cc643695f0cf788cb23cdc83a7ca0ef6 | [] | no_license | PaengE/AlgorithmPractice | 873a7d4b7f5710a1fcf9842eaf2930d739d8edb2 | 2ba166d14c7911af74eb595e4202a1b875fce785 | refs/heads/master | 2023-07-08T10:09:15.874030 | 2021-08-11T08:10:15 | 2021-08-11T08:10:15 | 200,774,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | n, m = map(int, input().split())
li = list(map(int, input().split()))
max = 0
for i in range(0, n):
for j in range(i+1, n):
for k in range(j+1, n):
tmp = li[i] + li[j] + li[k]
if(tmp <= m and max < tmp):
max = tmp
print(max) | [
"ckddn2820@gmail.com"
] | ckddn2820@gmail.com |
38dca13d0bf9d00206d097874ed1f6efdea2317e | 375f29a4c87700ec20a0b399012c6b37e1cda012 | /python programming/beginner/reverse number.py | 2eb4e88abf8e314c9dfbf8e5442d9d31b5504c12 | [] | no_license | inbavalli/python | 33afdc4a4a844fef291418fabd2a8f124d0f0d3d | 3fe298ebf976b1a70559265ee65f7762a2afd7f2 | refs/heads/master | 2018-11-11T10:09:12.370195 | 2018-08-22T11:15:28 | 2018-08-22T11:15:28 | 120,161,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | main()
for v in range(20,0,-1):
print(v)
| [
"noreply@github.com"
] | inbavalli.noreply@github.com |
f5db9709025ffe004bd79e61971e97422496b87b | b6c3f197e6e7be78ba5565994fd2b435bf65043b | /models/multiatt/model_noPadding.py | 25ac77a178f251be5c11018b60a91daccd28b930 | [] | no_license | tanjatang/DMVCR | f225fbef1380be6174218065a8e2b82dc5f71e13 | 297d11e299d5c5614e8a4f0d49fadef81e2a959a | refs/heads/main | 2023-07-10T10:34:20.693260 | 2021-08-23T10:11:34 | 2021-08-23T10:11:34 | 378,831,014 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,159 | py | """
Let's get the relationships yo
"""
from typing import Dict, List, Any
import math
import torch
import torch.nn as nn
import numpy as np
import torch.nn.functional as F
import torch.nn.parallel
from allennlp.data.vocabulary import Vocabulary
from allennlp.models.model import Model
from allennlp.modules import Text... | [
"noreply@github.com"
] | tanjatang.noreply@github.com |
ac20b36ddec68d9ded1a7d75371b7479260fdbda | 30ff4d21d4e2fc0b79c743dedde5a8d4866b6b97 | /IMDB_Naive_Bayes_Rule.py | 1e5a4b67e7a7edbba0e85b75021baea885552025 | [] | no_license | Altabeh/Imdb-review-analysis-with-naive-Bayes-rule | 01577f771e7922a86a439f8ecbe5f7dfe8739711 | 9aa14161bdecb661215fe4676d72fc2bea8da734 | refs/heads/master | 2020-04-07T19:13:29.498356 | 2018-11-22T04:14:58 | 2018-11-22T04:14:58 | 158,640,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,188 | py | import glob2
import glob
import re
import collections
import numpy as np
import os
#Path of all the positive/negative reviews
main_path = glob2.glob('aclImdb/test/*/**.txt') # list of all .txt files in both pos and neg
#Concatenation of all the positive/negative reviews
with open('pos_rev.txt', 'w') as f, open('neg_... | [
"noreply@github.com"
] | Altabeh.noreply@github.com |
6c38b9f1cd74ccdb305365f0d071637e1c3a8395 | ae2f143fee11ef73d820776557a663ae21afdef0 | /djproject/djapp/views.py | d7c5dbdd75bd4bd084f21573bd20f50ffd299e1b | [] | no_license | mozahid4you/djangoappblog | 082566c07ceb9c53f4111c4913d17e125f1ab531 | 0ef18a519b29e9f22ec325c9248ac776d883ebeb | refs/heads/main | 2023-07-24T00:58:39.424921 | 2021-09-09T18:44:36 | 2021-09-09T18:44:36 | 404,822,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from . models import BlogModel
from django.views.generic import ListView,DetailView,CreateView,UpdateView,DeleteView
from django.urls import reverse_lazy
from .forms import PostForm,UpdateForm
class HomeList(ListView):
paginate_by = 4
template_name = 'home.html'
model = BlogModel
ordering = ['-dt']
... | [
"eddymozahidislam@gmail.com"
] | eddymozahidislam@gmail.com |
d52b700b1902d79fb4db1cf0f2146d6d5090e35a | 8e31aae01bae027916019b59766a6db35be352ef | /src/Clasificadores/RedNeuronalMatriz.py | e58b65f4ebd86659271838f30d0f47689d6220d9 | [
"Apache-2.0"
] | permissive | garnachod/classification | 2654c66c6ae20cf9d536c801ea702cdd36bbd1bc | 85dc2d239e2a84144ac586e395e8cece8050fde6 | refs/heads/master | 2021-01-22T00:59:52.525273 | 2015-08-21T10:11:10 | 2015-08-21T10:11:10 | 38,815,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,709 | py | # -*- coding: utf-8 -*-
from src.Instance import Instance
from src.Instances import Instances
from Clasificador import Clasificador
from operator import add,mul
from Particionado.DivisionPorcentual import DivisionPorcentual
from Particionado.Particion import Particion
import random
import math # This will import math... | [
"garnachod@gmail.com"
] | garnachod@gmail.com |
0b817241f86faa1169b9f1b0a576bb6ce435eed0 | 85d27f8dc49e23042c5f1d0ff91af216e05f1d16 | /dailyclock/urls.py | 823da2ae1b107e7940cdac041cbe7ec505018f3a | [] | no_license | xonoer/dailyclock | 64b6a81a989d3031770ad124c093ecdc3785c3d4 | 95cedadb57594531ec99925003fc535fc2ec6835 | refs/heads/master | 2022-06-02T00:38:39.538439 | 2020-04-28T14:26:25 | 2020-04-28T14:26:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | """dailyclock URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"598869349@qq.com"
] | 598869349@qq.com |
9213e31b0d9fad94b2e271cea5df6e8158aeb156 | ffea4cff6d80529036bf0edb754db2daf6b47970 | /homepage/views.py | 6ef73c8355505747dda163bba9b8c96a245ab2ab | [] | no_license | creechcorbin/cowsay_clone | c942369916a992489762061d95b620bac99730cd | 409fac4933fdf46d13ebc6cfeab78ce7d45a2665 | refs/heads/master | 2022-12-10T12:35:57.371628 | 2020-08-18T20:29:44 | 2020-08-18T20:29:44 | 288,557,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | from django.shortcuts import render
from homepage.forms import InputForm
from homepage.models import UserInput
import subprocess
# used https://www.youtube.com/watch?v=2Fp1N6dof0Y as refernce
# got help from Drew Radcliff, and Matt SE Facilitator
def index_view(request):
if request.method == 'POST':
form =... | [
"creechcorbin@gmail.com"
] | creechcorbin@gmail.com |
4aa889232c5f1fe5109acdb84c4b05f5d0bd1900 | 3722b68c3e1e2c7353da8ee8fe4d7ac97bac91d3 | /commands/check.py | ff89f3f6ff9bc4a54207c3c25052f67aa676f4aa | [] | no_license | boltspeed1904/vklshpion | 9398d23a84d95e584f380f4e9a95070ce138d345 | b7bb83941b1251b35e9e3566fbcf750da45a2f0b | refs/heads/main | 2023-06-23T17:55:19.608459 | 2021-07-20T17:00:17 | 2021-07-20T17:00:17 | 387,859,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,215 | py | from vkbottle.bot import Message, Blueprint
from vbml import Patcher, Pattern
from cfgs.cfg import bot
from random import randint
from time import time
from datetime import datetime
from .Register import OnlyMe
from asyncio import sleep, get_event_loop
from os.path import exists as ex
bp, pt = Blueprint(), Patcher()
u... | [
"noreply@github.com"
] | boltspeed1904.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.