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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de8b9176832903430ba8a05a2215df9f4216345b | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20210426/example_python/05fake.py | 50aa749d0e3b91197180026ae281b1887a96409f | [] | 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 | 5,605 | py | import asyncio
import logging
import itertools
import sys
import time
from functools import partial
logger = logging.getLogger(__name__)
debug = True
logging.basicConfig(
level=logging.INFO, format="%(relativeCreated)-10d" + logging.BASIC_FORMAT
)
q = asyncio.Queue()
loop = asyncio.get_event_loop()
ev = asyncio.... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
bb2fe971d3c601d7cd98c3ff1642cc05db142e95 | 2c0489c1422eba9f54a596c1368862cf387032b8 | /hermesv2.py | bca452ef86ab8959d3aec8cdf5dc1e433b79a27a | [] | no_license | InvalidUserOfficial/Discord-Global-Chat | ea243be5e21a1398371d1cebb217c7a56d5c164a | c548f653c1b7c5bffa3920ddb79edd1e3baac17a | refs/heads/master | 2021-10-11T16:59:38.040474 | 2019-01-28T20:36:32 | 2019-01-28T20:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,795 | py | import discord
from discord.ext import commands
import configparser
import sys
discription = ""
defualt_prefix = "!"
config = configparser.ConfigParser()
config.read("./config.ini")
# Check to see if bot token and owner id are defined before proceeding
if "owner" not in config["Tokens"] or "bot" not in config["Token... | [
"georgio4u@gmail.com"
] | georgio4u@gmail.com |
850c8eb11111bbb5c8b00fe7fb4a184d18a91817 | cc8dd1bf3ff193e24e636ef6aad54ce18e831270 | /进程和线程/进程/文件拷贝.py | 49ee1a03b083346d1c86568287e7ba80e75bb3c5 | [] | no_license | RelaxedDong/python_base | c27cbc1c06914826d3287dae46a9fe0dd2bff7b0 | 7f865c7d5bdb6454f3b20cd899dbaf19092fb360 | refs/heads/master | 2022-01-08T12:43:58.851895 | 2019-04-24T03:17:13 | 2019-04-24T03:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | #encoding:utf-8
import os
import time
def Copyfile(path,topath):
pr = open(path,'rb')
pw = open(topath,'wb')
context = pr.read()
pw.write(context)
pr.close()
pw.close()
from multiprocessing import Process,Pool
if __name__ == '__main__':
path = r'E:\pycharm_pro\基础文件\tkinter'
rofile = r... | [
"1417766861@qq.com"
] | 1417766861@qq.com |
c6e2d6e9bb4776feb86651f0c82ac097b835cee0 | 92e03a0bee3bfd34fdab747ec270b0a80398d05e | /services/users/project/__init__.py | fdca436a730bcaf953c16f7b0ee14b4243a920cc | [] | no_license | NickMostacero/x-app | 3887be00a8edfcb1b66bc30d633a9c03afeb63c7 | 1c7f9b192f2e7666755722226f2c396a34b777c3 | refs/heads/master | 2023-01-12T03:37:18.819094 | 2019-06-04T03:28:07 | 2019-06-04T03:28:07 | 180,276,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | # services/users/project/__init__.py
import os # nuevo
from flask import Flask
from flask_sqlalchemy import SQLAlchemy # nuevo
from flask_debugtoolbar import DebugToolbarExtension
from flask_cors import CORS # nuevo
from flask_migrate import Migrate # nuevo
from flask_bcrypt import Bcrypt # nuevo
# instanciamo... | [
"pibex.g.m@hotmail.es"
] | pibex.g.m@hotmail.es |
4250d17414c0f896bf752bd1ca74a1af88fff651 | 5fbe8e55354427722f34164cf28f6e898e23e075 | /HW8/HomeWork8/FirstApp/migrations/0005_aboutpost_services.py | c900f76eedf518febea245bb7cbff1961b9e827b | [] | no_license | ANejadkoorki/AmirHossein_Nejadkoorki_HWs_Maktab50 | c21d4c13a083cecbcfd3e029dac695dcb7d4f84d | 5dddebb15a0e628ba4251fd22152e6534316f3dd | refs/heads/master | 2023-04-20T22:15:50.536121 | 2021-05-12T15:52:20 | 2021-05-12T15:52:20 | 344,108,311 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # Generated by Django 3.2.1 on 2021-05-12 14:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('FirstApp', '0004_alter_slideshowpost_uploads'),
]
operations = [
migrations.CreateModel(
name='AboutPost',
fields=[
... | [
"anejadkoorki8199@gmail.com"
] | anejadkoorki8199@gmail.com |
da4f8330c4c3a8644bce4faea272d1fe7b0d7acc | 282fc83a7fb45b980f500373f1e572196fd09f3c | /LeetCode/_1470_shuffle_the_array.py | 4bea179ea7da50f0a309185ae04c49eb3e2d3903 | [] | no_license | natiawhitehead/-MasterInterview_Udemy | fe80e717e8b0d75a3215fff36df395cfdd3d8b0e | 4b736eaab2e2847c77d03bef8a55857adb937db6 | refs/heads/master | 2023-05-05T07:49:07.745686 | 2021-05-19T21:12:48 | 2021-05-19T21:12:48 | 356,072,416 | 0 | 0 | null | 2021-04-10T01:33:45 | 2021-04-08T23:15:04 | Python | UTF-8 | Python | false | false | 451 | py | # Given the array nums consisting of 2n elements in the form[x1, x2, ..., xn, y1, y2, ..., yn].
# Return the array in the form[x1, y1, x2, y2, ..., xn, yn].
def shuffle(nums, n):
index_left = 0
index_right = n
answer = []
while index_left != n:
answer.append(nums[index_left])
answer.ap... | [
"n.tavtetrishvili@gmail.com"
] | n.tavtetrishvili@gmail.com |
2a48d9d3b0fc61083d336f03a70878352a7f3251 | 6cf2b45ee8516c7b65fbe362928bfee90ff50779 | /1-EstruturaSequencial/exercício09.py | 20984e7563a55aa377bbadcd659f546361f0d15a | [] | no_license | nralex/Python | 1d719179ebf22507132584b8285380c55499d9da | 17cbb5544265aec715c8959699a2f34ccc1f9b01 | refs/heads/main | 2023-02-17T10:20:10.155394 | 2021-01-09T23:21:20 | 2021-01-09T23:21:20 | 319,101,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # Faça um Programa que peça a temperatura em graus Fahrenheit, transforme e mostre a temperatura em graus Celsius.
# C = 5 * ((F-32) / 9).
f = int(input('Informe a temperatura em Fahrenheit: '))
print(f'{f}°F equivalem a {5 * ((f-32) / 9):.2f}°C') | [
"alexserno@gmail.com"
] | alexserno@gmail.com |
f90de8e9be034bd9276b3fdfa5dd73426e3f21d1 | 80f9f3821272f2eb137877bf6c7f57ed919151d8 | /src/custom_django/settings/base.py | f56864211313e02881d9c4fc526d21c6d1680461 | [] | no_license | wackdot/coe_custom_django_model | 6520d2c38fed08e1ec1c3e0cd04181d81c1bffb1 | cf6845ab065e714ff9ea3144a92e750f867c73e6 | refs/heads/master | 2021-08-30T20:06:15.273287 | 2017-12-19T08:13:38 | 2017-12-19T08:13:38 | 114,632,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,231 | py | """
Django settings for custom_django project.
Generated by 'django-admin startproject' using Django 1.11.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
imp... | [
"e0167324@u.nus.edu"
] | e0167324@u.nus.edu |
be8eb87e43d735921dcb613d3168b5e1977cdce6 | c88d84ffd81adddf68e9f226f0026f94a5564e47 | /BinaryTree/BinaryTree.py | eabd31feb4a25fda87b21ef326022088400774ac | [] | no_license | Defman/Programmering | ec4998a8c32c356da0e1d091ad95b26203466ec9 | 393263d8477e496f815b3089c12752a5cc882e95 | refs/heads/master | 2021-06-06T19:40:16.488574 | 2016-09-19T11:46:08 | 2016-09-19T11:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | class Node(object):
def __init__(self, key, value):
self.key = key
self.value = value
self.r = None
self.l = None
def search(self, key):
if self.key == key:
return self.value
elif self.r is None:
return None
elif key <= self.r.key:... | [
"Jacob@Rosborg.dk"
] | Jacob@Rosborg.dk |
eb025c3e883fbd710c8e10c34536a4a9d121deb5 | d207e7b57c4fe809ac985a3a5d748fb1b891e384 | /wsdproject/wsdproject/settings.py | 3da432ff79a10f1815bf2fe3a99f02d6d31a836a | [] | no_license | taha-k/awesome-wsd | 6b40ca095234db54c4a94a35b411c5479f331283 | 51d1a10984bcdcaa73123e3dcb476ec50aeced2b | refs/heads/master | 2021-05-31T21:18:41.538684 | 2016-03-22T13:17:35 | 2016-03-22T13:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,794 | py | """
Django settings for wsdproject project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build p... | [
"taha.kachwala21@gmail.com"
] | taha.kachwala21@gmail.com |
8fddb6c639d44c98af43ff7135f6f07d8ebe882d | aa0a03a96edc9c1e4910b556f410299286e6b85b | /wordvec.py | f53205e88129314210ac81cf6874b1324f125964 | [] | no_license | ricoshin/TextGAN | 8c2b7a7b85e8e4dc3b8961c3e6648342c9697b57 | 03df93cff03857035adc0648edcebbfe9809e44f | refs/heads/master | 2021-03-19T18:27:36.077054 | 2017-06-17T10:58:55 | 2017-06-17T10:58:55 | 91,778,984 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | import os
import numpy as np
from tqdm import tqdm
def _load_vocab(fname):
"""Load vocabulary from `fname`
`fname` must be in format as:
word\tfloat_1 float_2 float_3 ... float_n
Args:
fname: path to a word vectors file
Returns:
a set of words
"""
with open(fname) as lines... | [
"hyunwoojhw@gmail.com"
] | hyunwoojhw@gmail.com |
f1c49d8118dc6c2672ce01120caf3be02e2deac9 | e2a78a6ada3d87f90231b0457eb46d5999c75ee0 | /LINFO1103/TP07/list_max.py | efaf7ed54b98cbf5716aadc24a5526536e1e51dc | [] | no_license | Oldgram/SINFEDU | 3df19e6db5737bc1fff5e0dcd2171c5e737f4b31 | 1012355bc418c62de117b56bf4726336b88bf8ef | refs/heads/master | 2023-02-26T19:52:28.987465 | 2021-02-02T14:33:35 | 2021-02-02T14:33:35 | 233,269,625 | 6 | 6 | null | 2021-01-20T23:32:47 | 2020-01-11T17:26:59 | Java | UTF-8 | Python | false | false | 594 | py | from List import List
def maximum(l):
"""
Calcule le maximum d une liste à l aide d une boucle
pre: `l` contient au moins un élément
post: retourne l élément maximum de `l`
"""
biggest, tail = l.head(), l.tail()
while not tail.is_empty():
if tail.head() > biggest:
bigg... | [
"goffindy@gmail.com"
] | goffindy@gmail.com |
267150059e67b2bf150e1c86d106b76be8e2f9fa | 733524d5015ead34c47fb978cf63aeb88c968c85 | /cifrado/escritorio/codigo/Python/InterfazCesar.pyw | ceabea52724df01e15c614c296d28c6a3078804c | [] | no_license | FranciscoSebastianCitlally/disor | e59645eb1cec2a0511ee2bd5c8abb676c010aeb9 | 466beacadbe7eaf5bd356f00169068d0c3393cf7 | refs/heads/master | 2020-04-11T15:19:45.399426 | 2018-12-16T07:32:19 | 2018-12-16T07:32:19 | 161,888,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | pyw | import sys
from PyQt5.QtWidgets import QApplication,QDialog,QMainWindow,QPushButton,QLabel
from PyQt5 import uic
from procesar import funcionesInterfaz
class Ventana(QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
uic.loadUi("InterfazCesar.ui",self)
self.texto = self.e_Texto
... | [
"45378625+FranciscoSebastianCitlally@users.noreply.github.com"
] | 45378625+FranciscoSebastianCitlally@users.noreply.github.com |
bccfe4b14cd08e6d30e608d7a87f8575fbf1e692 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/googlecloudsdk/third_party/appengine/tools/appengine_rpc.py | 44e107bcdc9c9a31d86301a3c9041269954cdd22 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 24,563 | py | # Copyright 2016 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
87b0b6633115e323d2d9df2d3cafe146cffbe018 | bf769a3a3935a8e08f11fdf606f2e2e2bc6a5307 | /PyQt/chapter06_layout_management/qt06_vboxLayout.py | 707632895a91fb55826d20bc92403902d0124a20 | [] | no_license | metanoia1989/QTStudy | b71f2c8cf6fd001a14db3f1b5ece82c1cc7f7a93 | 29465c6bb9fc0ef2e50a9bf2f66d996ecbd086c0 | refs/heads/master | 2021-12-25T16:50:26.915441 | 2021-10-10T01:26:14 | 2021-10-10T01:26:14 | 193,919,811 | 3 | 2 | null | 2021-01-25T09:23:30 | 2019-06-26T14:22:41 | HTML | UTF-8 | Python | false | false | 856 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QPushButton
from PyQt5.QtCore import Qt
class Winform(QWidget):
def __init__(self, parent=None):
super(Winform, self).__init__(parent)
self.setWindowTitle("水平布局管理例子")
s... | [
"sogaxili@gmail.com"
] | sogaxili@gmail.com |
ef19bef3f3f58385df6d59152b0e87461237da4d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/306/usersdata/296/69255/submittedfiles/poligono.py | 220500ef5bbfdbdbf1c5c788ea21add217eb2034 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | # -*- coding: utf-8 -*-
n = float(input("Digite n: "))
nd = (n*(n-3))/2
print ("%.1f" %(nd)) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
27e5915bafc01af52cd537bba6977fcb732d3926 | 73c4909a6244be51d23b29f7f692f1db8c92dd10 | /textbook/count_linear_subpeptides.py | cd1e170f4bf1335baad884336e54412c014d8c26 | [] | no_license | ashutosh117/rosalind_problems | 9c0e7e0bf2d63514cd6d6c20f2e5b51218862022 | 73c93bef3924e02fa445acb265ae4f32433c55ce | refs/heads/master | 2023-05-05T12:57:59.079108 | 2021-05-28T14:45:33 | 2021-05-28T14:45:33 | 346,255,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 12 12:52:55 2021
@author: t1
"""
def read_file(file_path):
n = None
with open(file_path) as f:
n = int(f.read().strip())
return n
def get_subpeptide_count(n):
count = 1
for k in range(1,n+1):
count += n-k+1
... | [
"ashutosh@archerongroup.com"
] | ashutosh@archerongroup.com |
d209ca7598bd6aad4f97e2d1815b6f5c2498a8a5 | ce6d42c06c23b16d938903da7dd50192500ec4cf | /cogs/CommandeUser.py | b3e5b988f0e2663a9ec46cf7bb006b511813a7bf | [] | no_license | LeigerMax/Discord_MaxBot | edcf4da36b739c252be639d4d107d24ac1e55e42 | 411a281626cff109b9a94904a0ce25eba5b5cb2c | refs/heads/master | 2023-02-03T03:00:53.834654 | 2023-01-22T17:49:06 | 2023-01-22T17:49:06 | 265,028,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | import discord
import random
from discord.ext import commands
class CommandeUser(commands.Cog) :
def __init__(self, bot):
self.bot = bot
#Events
@commands.Cog.listener()
async def on_ready(self):
print('Bot is online.')
#Commands
@commands.command()
async def ping(self,ct... | [
"puissantmax12@gmail.com"
] | puissantmax12@gmail.com |
c8109ed7d65288673a6fb3bdcccb737749b51337 | ab90068904014b38705f8decab829e45b9687ffb | /userdetails/users/management/commands/user.py | 64adaed0d2b95378fac254290a26ba0c8ba00d7e | [] | no_license | apafinal1/EmployeeDetails | 81020c28a6aa178cd6f240115b90bed8e1eda9fc | f9ac7b7abbd0ed312118a7439f9acc713ff7ff57 | refs/heads/master | 2022-11-30T09:36:16.913758 | 2020-08-08T19:03:01 | 2020-08-08T19:03:01 | 286,084,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | from django.core.management.base import BaseCommand, CommandError
from users.models import Employee
class Command(BaseCommand):
help = 'Prints all Employee name in the database'
def add_arguments(self, parser):
parser.add_argument('--total', type=int, help='Indicates the number of users created')
... | [
"anu25.tmk@gmail.com"
] | anu25.tmk@gmail.com |
82144403405e2e98a51b0b8ce0b223dd60cac787 | 8943a1d90f2e9d6ab9c832fdf33ecc97826c39a4 | /Stepper.py | 94fe8dbbd934bf19083f0c4872d1186c9ff29727 | [] | no_license | cameron-gagnon/boxCar | 1d27d2848670205327a8a18314b951e82059e7fd | e49a1f7d049fbef754c7be7f6694a38c005b1909 | refs/heads/master | 2021-01-10T12:55:54.166301 | 2016-01-06T23:39:48 | 2016-01-06T23:39:48 | 44,947,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,558 | py | #! /usr/bin/python3
import RPi.GPIO as gpio
import time
start_time = time.time()
class Stepper:
def __init__(self, number_of_steps, motor_pin_1,
motor_pin_2, motor_pin_3, motor_pin_4):
self.step_number = 0;
self.speed = 0;
self.direction = 0;
self.last_step_tim... | [
"cgagnon@umich.edu"
] | cgagnon@umich.edu |
a06f3ba14f8b677895f970d39f1642fc002829fa | 532835cbd1f37f498e08f0082b27fa5208442420 | /AudioPlayer.py | db52524376f6f8142bfaa9b7bbe173fec44e1d3f | [] | no_license | bluecoder33/python | 9d67069dabc83931ff0f729ba5825e597622dd3d | d38b54159aab3ed6c46d03273e096f98b88598a2 | refs/heads/master | 2021-06-19T22:21:17.824342 | 2021-02-04T01:15:26 | 2021-02-04T01:15:26 | 160,299,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from tkinter import*
from tkmacosx import Button
import sounddevice as sd
from scipy.io.wavfile import write
import pyaudio
import wave
root=Tk()
##def sound():
## fs=44100
## seconds=3
##
## myrecording=sd.rec(int(seconds*fs), samplerate=fs, channels=2)
## sd.wait()
## write('output.wav', fs, myrecordi... | [
"noreply@github.com"
] | bluecoder33.noreply@github.com |
ff65d8850299dc4bd1c1ea832798cc9dd43ee38c | 9e4df74f5ba32228b741ff6ff1c624e8f912a94e | /sy/wsgi.py | 1623fd3a8a5fb0fabd4b713d205efa2443fb3a19 | [] | no_license | Jecousa/sy | 27617711a91790c42dfbb86660da0f020281483e | 7b07ea74afd1d1d89aafb32a6d38f1fe7e511006 | refs/heads/master | 2022-12-14T17:31:53.480856 | 2019-04-16T02:52:16 | 2019-04-16T02:52:16 | 175,540,979 | 0 | 0 | null | 2022-12-08T04:54:04 | 2019-03-14T03:21:56 | Python | UTF-8 | Python | false | false | 381 | py | """
WSGI config for sy 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_M... | [
"jecolousa@gmail.com"
] | jecolousa@gmail.com |
9f96fd3f58ec3d89104032c6ea6e0dae34b42373 | 11510524cdb77baa4c9982be3f4a4801c902cca6 | /game_system/shadowrun/character.py | 0df663bdfd9085228d971824804d6c6844319e31 | [
"BSD-2-Clause"
] | permissive | dwilliams/rpg-character-manager | 0787f9f5747167faa603e17ee114cd678b3d8666 | 23c6905ec4b674be1f1a440282862602a112f1e7 | refs/heads/master | 2023-03-31T00:31:53.869912 | 2020-05-26T15:55:29 | 2020-05-26T15:55:29 | 126,089,088 | 0 | 0 | BSD-2-Clause | 2020-05-26T15:55:31 | 2018-03-20T22:11:26 | Python | UTF-8 | Python | false | false | 1,263 | py | #!/usr/bin/env python3
### IMPORTS ###
#import logging
from game_system.exceptions import GameSystemMismatchException
from game_system.none.character import Character
from game_system.shadowrun.item import ShadowRunItem
### GLOBALS ###
### FUNCTIONS ###
### CLASSES ###
class ShadowRunCharacter(Character):
gam... | [
"dwilliams@port8080.net"
] | dwilliams@port8080.net |
32b04fc3c08e3b9f4116151e974d5aacc7929270 | 1f74e3061af1a540cf7e521504c47128c019e752 | /utils/template.py | 2939d9ee5247e0a32c22fcb1a9f387192cb9305c | [] | no_license | SHUzhekiNg/AimBotPrac_byzhekiNg | 398e366c373a00050955e01164e84595b2e3036f | 3c4b0fa94e4399b4494211362c24a18baede2eee | refs/heads/main | 2023-09-02T13:57:43.976994 | 2021-10-21T04:46:05 | 2021-10-21T04:46:05 | 419,583,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | import os
import cv2 as cv
class Template():
def __init__(self):
self.tpls = []
self.modelpath = "./template_image/"
self.roboclass = ['hero', 'infantry', 'engineering', 'sentry'] #, 'base'
for name in self.roboclass:
aClass = []
imgs = os.listdir(self.modelpa... | [
"zhenglicheng@yeah.net"
] | zhenglicheng@yeah.net |
30d8150f05cb620e9a6ae0f63630b74adcf7d75b | c733893eae21d4b3d0308fd898f846baa0a8314b | /Python/Grave/Manager(1)/0x0007.py | 830a33fbee696e7ff5f98e63aa323f410ce38e93 | [] | no_license | o7si/HelloWorld | bba7f228ea72f2af499acbee135dca4e17bc907a | d8a3b45de8e5a031caa40ec8413e8b70ad9fc24d | refs/heads/master | 2020-05-03T20:05:37.530241 | 2019-08-08T04:58:51 | 2019-08-08T04:58:51 | 178,795,831 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | print(0x0007, " -> Hello World", sep='', end='\n') | [
"3091482559@qq.com"
] | 3091482559@qq.com |
72cf3552f43eecb8a3f127352c2a44d056fd0d50 | 7d644f600d477f7f81168bf5487f9c5ec4ff2b59 | /migrations/versions/20190309_12-12-25__only_allow_unique_keys.py | 0543ea081728ec8917905523ff40e30473151066 | [
"MIT"
] | permissive | busy-beaver-dev/busy-beaver | 642ea30de0651b45ddc0461d4432cacf8a75518b | 5e3543f41f189fbe4a50d64e3d6734dc765579b4 | refs/heads/master | 2022-12-11T00:36:55.564575 | 2021-08-28T20:53:32 | 2021-08-28T20:53:32 | 158,856,915 | 60 | 20 | MIT | 2022-12-08T05:15:56 | 2018-11-23T16:40:37 | Python | UTF-8 | Python | false | false | 693 | py | """only allow unique keys in key-value store
Revision ID: 73b592804bfa
Revises: c2aead9ff6d9
Create Date: 2019-03-09 12:12:25.914048
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '73b592804bfa'
down_revision = 'c2aead9ff6d9'
branch_labels = None
depends_on = ... | [
"noreply@github.com"
] | busy-beaver-dev.noreply@github.com |
57bf922011e5da0a0dec90a4b47a9a062044ecf6 | 21a402f4eefa6c89bee81a768132ea68f2f2c564 | /ysib/base/migrations/0009_auto_20210514_1442.py | c93f13627ed24ffe2920b6aef8085d8682f394ec | [] | no_license | erelbi/ERP-MasterDefence | cfe34c68fce945f1cf1b3828213a99a4207da8a2 | 85b4be8156c9a84e2b942ada0fee57ea54904649 | refs/heads/main | 2023-05-31T21:17:06.080508 | 2021-06-27T15:44:59 | 2021-06-27T15:44:59 | 377,301,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | # Generated by Django 2.2.22 on 2021-05-14 11:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('base', '0008_auto_20210510_2309'),
]
operations = [
migrations.RemoveField(
model_name='valf_govde',
name='kayit_tarihi',
... | [
"bilselergun@gmail.com"
] | bilselergun@gmail.com |
93726b81910c6ad643b0e87010087cf632f63008 | 116967cd9f326d74a83c7ce01a826e1a83265ade | /nilearn/nilearn/_utils/logger.py | c7b48108880aadb0fd7d07ea94dba256dda0952f | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | bcipolli/nilearn-RSA | f73ea5e04ac94c0c2d4c7ac5f5219779a3067596 | 0ac8595c1ce3e44b6b5ec25d1906f558088ab297 | refs/heads/master | 2020-04-15T04:01:37.084977 | 2015-08-15T17:35:22 | 2015-08-15T17:35:22 | 31,421,013 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | """Logging facility for nilearn"""
# Author: Philippe Gervais
# License: simplified BSD
import inspect
from sklearn.base import BaseEstimator
# The technique used in the log() function only applies to CPython, because
# it uses the inspect module to walk the call stack.
def log(msg, verbose=1, object_classes=(Base... | [
"bcipolli@ucsd.edu"
] | bcipolli@ucsd.edu |
30d86f0a48b91ebfc1679a140bbe068c43f4ffe4 | 5438b4c2e2d47f7e837b8694b00a9f31ba7e3dc5 | /log-files/hsr/Mar-02_06:05:25/train.py | d56c6436e80744a96236a4b98f785f807ff15107 | [] | no_license | himlen1990/rl_test | 4af7aca6b7e94009610a172d2a6b7ae1bd8a0afe | bc9a2a234089b29d930375a145bb0e8071ecf09f | refs/heads/master | 2021-01-25T13:11:17.413357 | 2018-03-02T06:15:33 | 2018-03-02T06:15:33 | 123,536,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,420 | py | #! /usr/bin/env python3
"""
PPO: Proximal Policy Optimization
Written by Patrick Coady (pat-coady.github.io)
PPO uses a loss function and gradient descent to approximate
Trust Region Policy Optimization (TRPO). See these papers for
details:
TRPO / PPO:
https://arxiv.org/pdf/1502.05477.pdf (Schulman et al., 2016)
Di... | [
"himlen1990@gmail.com"
] | himlen1990@gmail.com |
40bdbbc7e9f391f37125455588b104b84718283b | 09ec61f578b2400a0aa0da1d4214c737b77ba2d1 | /coin.py | 4188c6ddf88160629ebf05429edd15e177b1bb20 | [] | no_license | Curt-H/bilibili_own_tools | 06adde75c622c6f784caa0e52b84053e6386740e | 95ef9055f6a413f5f29d502fa80546730bf81e4f | refs/heads/master | 2022-12-03T08:55:44.420772 | 2020-08-17T16:35:37 | 2020-08-17T16:35:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,952 | py | import requests
import http.cookiejar
headers = {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-encoding": "gzip, deflate, br",
"content-length": "94",
"content-type": "application/x-www-form-urlencoded; ... | [
"1415889804@qq.com"
] | 1415889804@qq.com |
445e20d521fccd006516b50c2893e00fa223fd9a | acd66402ebab71a5a22770f9f2ced58c14a79716 | /anim_mancer/tools/refPlayer/ui.py | ad9d7f8740769d270374189e861ed625112006e6 | [] | no_license | lazerdaze/lancer | 333ed0f41aecee27ee82a94f44579c9de798274a | e122491769daf1a37bf806306a12510adb17ca70 | refs/heads/master | 2022-01-07T17:24:21.285534 | 2019-04-29T06:54:10 | 2019-04-29T06:54:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,204 | py | # LANCER.ANIM.REFPLAYER
#
#
#
#
#
# Qt Modules
QTLOADED = False
CANSYNC = False
try:
from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
from PySide2.QtMultimedia import *
QTLOADED = True
except ImportError:
try:
from library.Qt.QtCore import *
from library.Qt.QtGui imp... | [
"jt.tirado@gmail.com"
] | jt.tirado@gmail.com |
f27c78238791c199049881dc9e8e3dd3de920ea3 | 226106f68f73da9409d8e605b27c7e75ef339e7b | /boostit.py | d3da66f0c885e32871d05d5430534aecd65745b3 | [] | no_license | kkribakaran/cs165b | b815b95c4ec2f27d0da18a5af6f199082cedf710 | 8707720f92ef9c1973713abd4a1867bb19ac094d | refs/heads/master | 2020-06-16T16:06:49.878494 | 2017-06-13T00:19:24 | 2017-06-13T00:19:24 | 94,150,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,084 | py | import numpy as np
import math
import sys
T = int(sys.argv[1])
def centroid(weights, data):
dim = len(data[0])
res = np.asarray([0.0 for x in range(dim)])
for i in range(len(data)):
#print(res)
#print(weights[i], data[i])
res += weights[i] * data[i]
res *= 1/(np.sum(weights))... | [
"kkribakaran@umail.ucsb.edu"
] | kkribakaran@umail.ucsb.edu |
4077521437b981d8ff9757c2997464dde7df70b1 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/create_vault_request.py | 2a2804e36925be33e00569a4aee8d8ffd6fbc9bc | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateVaultRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
80a623981f626d100a6aa5af3109334571a2a86e | d2df52e147f95a81dcf442ca0d04dd877cd9faf0 | /simplesocial/urls.py | d29f60d34700a9321c2668e4b4bfd6a315efffe3 | [] | no_license | PuneethVP/crm-live | 62ef2c32fab112e777951b8027c7df0d6749e8d1 | 3d78e405515056e009f4a9aeb221e006bb6648f9 | refs/heads/master | 2022-12-10T08:39:23.232682 | 2020-09-02T08:05:38 | 2020-09-02T08:05:38 | 285,344,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | """simplesocial URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-... | [
"puneethv08@gmail.com"
] | puneethv08@gmail.com |
b9ed62f6b1270a07e9c32afe9088fc2ecadc47b7 | ea12aa1ed42fe86c8beb3a00db56604849c32a40 | /01-webotron/webotron/__init__.py | be0332c1bf02c02e71502b4eaa14d1dda3c6426b | [] | no_license | WangYunzhang/automating-aws-with-python | 4e19161e8f7167c449eca80ea1be3d7edbfbfc3d | f5f56ef779030f2723f72cf057b5248c4c97ebf6 | refs/heads/master | 2022-02-06T23:09:14.047152 | 2018-09-16T06:45:24 | 2018-09-16T06:45:24 | 147,093,022 | 0 | 0 | null | 2022-01-21T19:38:19 | 2018-09-02T14:35:15 | Python | UTF-8 | Python | false | false | 30 | py | """Package initial module."""
| [
"wangyz180@foxmail.com"
] | wangyz180@foxmail.com |
52ecd2311054f37136b87690f02c021ad7a3aea2 | c0da8ad92777ec4379ee743c84361e986a05fd0a | /Girls21.2/Great/great.py | 1437ce80ec6cf250f193fded77c7e632579e8e70 | [] | no_license | EliteGirls/Camp2017 | 2e850994fa25ad330b351a557c0ef218aab2c334 | 7cbf0c9469954e9987b5d9835df5b69b5e82a411 | refs/heads/master | 2021-01-20T07:24:21.482465 | 2017-08-27T09:32:49 | 2017-08-27T09:32:49 | 101,535,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print "hello"
print "love" | [
"noreply@github.com"
] | EliteGirls.noreply@github.com |
57eb43417bd20b75f6c126e37b186c8b79cdad4c | 1e6e3bb707920fdb01ebca23eaf81097c558d918 | /openslides_backend/action/actions/theme/create.py | cfc24dfc000b85bd1c397ed32265f40dd3f2792e | [
"MIT"
] | permissive | OpenSlides/openslides-backend | cbd24589f82a6f29bde02611610511870bb6abbf | d8511f5138db4cc5fe4fa35e2a0200f766bd49c5 | refs/heads/main | 2023-08-23T11:54:25.064070 | 2023-08-22T11:15:45 | 2023-08-22T11:15:45 | 231,757,840 | 6 | 22 | MIT | 2023-09-14T16:23:41 | 2020-01-04T12:17:38 | Python | UTF-8 | Python | false | false | 1,802 | py | from typing import Any, Dict
from ....action.mixins.archived_meeting_check_mixin import CheckForArchivedMeetingMixin
from ....models.models import Theme
from ....permissions.management_levels import OrganizationManagementLevel
from ....shared.util import ONE_ORGANIZATION_ID
from ...generics.create import CreateAction
... | [
"noreply@github.com"
] | OpenSlides.noreply@github.com |
ace88f8009606790b7e10ee4830a679112ca90a7 | 4d7961762c3ded9f19dfb1f69add0e9aa05f3ee9 | /code/le_matriz.py | 012e2ccb520f4a46d442fe39e2d570211d47f69f | [] | no_license | luisavitoria/introducao-curso-basico-python | 1a27e8f5243286d4d201ef569c7ef905266e0f33 | 06efc1f4780320799b77f13a14af2bcf8764d35f | refs/heads/master | 2022-12-29T01:08:54.380026 | 2020-10-20T00:05:00 | 2020-10-20T00:05:00 | 291,143,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | def cria_matriz(num_linhas, num_colunas):
matriz = []
for i in range(num_linhas):
linha = []
for j in range(num_colunas):
valor = int(input("Digite o elemento [" + str(i) + "][" + str(j) + "]: "))
linha.append(valor)
matriz.append(linha)
... | [
"luisa.vitoria@hotmail.com"
] | luisa.vitoria@hotmail.com |
2d1579e96154b06fb88b2f5c8bdb55248ce50544 | 2dca6462c43393d40aded8e790ada14f089daeb3 | /ucsmsdk/mometa/mo/MoInvKv.py | 54f1e49fbe9da246d32485c585e988eb299caba8 | [
"Apache-2.0"
] | permissive | seils/ucsmsdk | f8a0cd4d40bfa97d3cdc005b49d6ae1a7a5cad8d | 4e16aac6ed5c3620f67f38e9eb2eb0d13d3a3bb3 | refs/heads/master | 2021-09-06T12:29:00.257407 | 2018-02-06T14:29:21 | 2018-02-06T14:29:21 | 110,891,007 | 0 | 0 | null | 2017-11-15T21:55:01 | 2017-11-15T21:55:00 | null | UTF-8 | Python | false | false | 2,756 | py | """This module contains the general information for MoInvKv ManagedObject."""
from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class MoInvKvConsts:
OWNER_INVENTORY = "inventory"
OWNER_MGMT = "mgmt"
TYPE_IPV4_ADDR = "ipv4-addr"
TYP... | [
"noreply@github.com"
] | seils.noreply@github.com |
95df632cc35876fdfd025551b6c0999836875f27 | 9aa629ba31a6cf47d04d26669383c28ed817ea01 | /third_party/icu/icu.gyp | a981d3107a13b967067a9424620478d23b2d521d | [
"Apache-2.0",
"ICU",
"LicenseRef-scancode-unicode"
] | permissive | ckelsel/chromium-4.0.210.0_p26329 | 470e671689e45f2c6ba3c5801e13723d2b83a394 | 378d30c9259f1a39c3cca4345eb99fd651871970 | refs/heads/master | 2020-04-03T09:57:31.675416 | 2018-03-24T05:36:48 | 2018-03-24T05:36:48 | 62,807,608 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,665 | gyp | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'target_defaults': {
'defines': [
'U_STATIC_IMPLEMENTATION',
],
# TODO(mark): Looks like this is causing the "public" include direc... | [
"ckelsel@hotmail.com"
] | ckelsel@hotmail.com |
2e7c9b3525bfa87a6aabdb81158e2cb030a87cbb | 2f9dd97f4b6f8bf164d8550b46bfe6313dc84c6c | /src/pmr2/bives/view.py | dd8eb581ac9f986ad1333cf04a74064e6054d2fd | [] | no_license | PMR2/pmr2.bives | 89ec960283883e218c9b35455a84ac1ad46e57c0 | d9273df7a8eb97d707ca14eeab6def3a5d01df3f | refs/heads/master | 2021-05-15T02:27:09.348400 | 2020-01-17T01:53:31 | 2020-01-17T01:54:37 | 34,535,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | import json
import requests
import zope.component
from zope.browserpage.viewpagetemplatefile import ViewPageTemplateFile
from plone.registry.interfaces import IRegistry
from pmr2.z3cform.page import SimplePage
from pmr2.app.workspace.browser.browser import FilePage
from .interfaces import ISettings
registry_prefix ... | [
"tommy.yu@auckland.ac.nz"
] | tommy.yu@auckland.ac.nz |
2b0ebdec36de11a07828fd4bd34d5b24688b8804 | 330b8a33240a2b883cc2be214bd054a1b0d7e15b | /flatten_list.py | dda0162ed442e51deab601a15b34f378fd910bf0 | [] | no_license | k1xme/leetcode | 808148093de601924d8a41ba4c6b4a0328e36d78 | 87bb962b07f49353ea96b544838c368f2ee0cf56 | refs/heads/master | 2020-03-30T05:15:14.409887 | 2015-10-23T02:26:22 | 2015-10-23T02:26:22 | 35,513,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | class ListNode(object):
"""docstring for ListNode"""
def __init__(self, val):
self.val = val
self.next = None
self.opt = None
def flatten_list(l):
dummy = ListNode(0)
dummy.next = l
previous_node = dummy
while previous_node.next:
if previous_node.next.opt:
# Do falltening here.
tmp = previous... | [
"longkexi@gmail.com"
] | longkexi@gmail.com |
2b689a5b3c3d0097066a25f9ba2cfac34a59247f | 7b60c68ddda39ef82f5d49404bbcf62cc83e4860 | /crawl/beautifuksoup_css_mu.py | 4289b4574115bb7d8aa6ac2ca49f2c85612e9e95 | [] | no_license | joycejhang/learningml | da802e0ab9cfb6cce89791561870c0078cfaaaf9 | 884ed0541bcb257bb82e77c126ab77c927fe9add | refs/heads/master | 2020-04-22T15:04:58.445844 | 2019-07-04T11:31:03 | 2019-07-04T11:31:03 | 170,466,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 28 11:03:06 2018
@author: Joyce
"""
from bs4 import BeautifulSoup
from urllib.request import urlopen
# if has Chinese, apply decode()
html = urlopen("https://morvanzhou.github.io/static/scraping/list.html").read().decode('utf-8')
#print(html)
soup = Beautif... | [
"noreply@github.com"
] | joycejhang.noreply@github.com |
72b32c7024810d5581f20c19c38e494401737ac5 | 741fb1ebff11260aae83e7cb52befc0e07bb70fc | /python_stack/flask_MySQL/class_exercises/friends_practice/mysqlconnection.py | 48e4399af8629eaa48f5c1cbd82900abf605104a | [] | no_license | clarkkarenl/codingdojo_python_track | 0c2def27fec5d0c53d46b4f2aa44cbb5aeb79195 | 379e9c8f36ca5b8edd4932154c94297a2d4c27a0 | refs/heads/master | 2020-03-19T04:35:41.394941 | 2018-07-29T20:53:02 | 2018-07-29T20:53:02 | 135,844,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | """ import the necessary modules """
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.sql import text
# Create a class that will give us an object that we can use to connect to a database
class MySQLConnection(object):
def __init__(self, app, db):
config = {
'host': 'localhost',
... | [
"clarkkarenl@users.noreply.github.com"
] | clarkkarenl@users.noreply.github.com |
02b9cc7f10ef5ab94df4b6ec5346e54cdf809652 | d085bb82fd46851aa413f0dbfbdcea7a1fdc463c | /ADODBConn.py | dac33d12f874adfc7e8d1a4847343bac59705958 | [] | no_license | kcolemanbd/General-Database-Scripts | 40fa96bcfdd8da25965ff51fc9ce92d4adecb6e9 | 7a574fcbf07fbb352c23da4a40d45a6ed01a4ca7 | refs/heads/master | 2020-06-11T19:46:12.788599 | 2016-12-05T14:01:54 | 2016-12-05T14:01:54 | 75,626,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,385 | py | # ADODB-Connection-in-Python
# ADODB Connection written in Python
from System import *
from System.Windows.Forms import * #Used for message boxes during testing
class DataBaseConnect(object):
def get_RSCount(self):
return self._RecordCount
RSCount = property(fget=get_RSCount)
def get_AbsPosition(self):
retur... | [
"noreply@github.com"
] | kcolemanbd.noreply@github.com |
00288fcdb08e386f17101b17c3dce8dd593ba98f | 5a17d7e2c6d4a30fbe8ca258e5e72c09d421abac | /quantifyscripts/generateReport.py | 48a3be72596088b0086e7da051ccc6a13b398219 | [] | no_license | wulongict/LWBMatch | b45fe8b9958af66bccaeed875e249e6ae4466b33 | f0172d5e84d3109a79525129fac5b62ef022b08f | refs/heads/master | 2021-01-19T02:28:07.281176 | 2016-09-15T15:16:56 | 2016-09-15T15:16:56 | 47,192,479 | 1 | 1 | null | 2017-08-23T17:55:13 | 2015-12-01T13:51:16 | C++ | UTF-8 | Python | false | false | 9,311 | py | #!/usr/bin/python
# Python 2.7 Required
# Generating several summary files for png and jpg figures
# Input:
# path of all the figures
#
#
# Output:
# Several HTML files, each contains some figures about the alignment result
#
# -----------------------
# Author: L. WU
# Date: Aug. 18, 2016
# ------------------------
... | [
"wulongict@gmail.com"
] | wulongict@gmail.com |
4cb2b460d6fc7f782ca70373bfbc121de72a1105 | 755b60852fd6eb4299df455f05dbb5e682b6923b | /async_crawlers/crawler_0_0_1.py | dd7c1f91b7b094daf6156ceefded62382f2c63b4 | [] | no_license | biandour/Python-lessons | d43d7eacf240332bbc8e12a34707737eb764a0b2 | 08fa07b3f86a91233fbef2e9426068271a9ef4eb | refs/heads/master | 2020-03-23T04:37:45.039808 | 2019-01-29T10:02:32 | 2019-01-29T10:02:32 | 141,095,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | import asyncio
import aiohttp
from lxml import etree
import pprint
import re
import json
start_url = 'https://new.qq.com/ch/finance/'
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
'Accept-Encoding': 'gzip, deflate',
'Accept-Language': 'zh-CN,... | [
"biandour@qq.com"
] | biandour@qq.com |
4767823cf140275c19c3e7749cb4b64f113496d2 | 6cb8cda6457df6aec3f71756534b6f2dab148f4c | /Python-Stack/Flask_MySQL/friends_create_read/bin/wheel | 090a5d5bbb55533a9c9129e1ad54967352a7c671 | [] | no_license | nadirspatel/codingdojo | 57b5a1c465bd71b941eb4ef092210a4de6e69c56 | b22c5e78de2c391207332a3267f5c5f8ee93bdff | refs/heads/master | 2022-12-25T02:13:56.952125 | 2020-01-07T03:13:52 | 2020-01-07T03:13:52 | 231,863,229 | 0 | 0 | null | 2022-12-10T14:06:33 | 2020-01-05T03:42:30 | Python | UTF-8 | Python | false | false | 293 | #!/Users/codingdojo/Documents/CodingDojo/python-stack/flask_MySQL/friends_create_read/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nadirspatel@gmail.com"
] | nadirspatel@gmail.com | |
f6779f0a758710ebdf70c583f8c36318b52d34f0 | 9e384fe1434a741cc74477439eae623eb209bdd2 | /IOT_dashboard/try/settings.py | 5f546d5badd30a19228d9d9ff8a90204c2548f6d | [] | no_license | glthrivikram/IOT_dashboard | 15fe308cf95b493662c1ce93c2303b08b9403caf | 28d53a70a5e86da6733118a045c85859b02b942b | refs/heads/master | 2020-11-30T03:38:49.594758 | 2019-12-30T05:51:53 | 2019-12-30T05:51:53 | 230,290,906 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | """
Django settings for try project.
Generated by 'django-admin startproject' using Django 2.2.2.
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/
"""
impo... | [
"noreply@github.com"
] | glthrivikram.noreply@github.com |
1480d3ec74d2456a07a2e37711cfc615b0afee05 | c4817214aed2fd9090fbe30575005a5d7a53834c | /code/cross_val_svm.py | 6e9e459fd6df690b437e9fe3c28f0d132ccc2f39 | [
"MIT"
] | permissive | Rockysed/PSC_classification | 4b43298eba034d6fdcc00aba2a5b62000aed76b9 | 1815b673ac9374d9d2abd08ba0f1f43597316dee | refs/heads/master | 2020-04-27T23:36:07.920141 | 2019-03-10T06:49:45 | 2019-03-10T06:49:45 | 174,782,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 1 14:08:03 2019
@author: rocco
"""
import h5py
from sklearn.ensemble import RandomForestClassifier as RFC
from sklearn.decomposition import PCA
from sklearn import svm
from sklearn.model_selection import train_test_split
from sklearn.model_selection import G... | [
"noreply@github.com"
] | Rockysed.noreply@github.com |
c9858d2e9f96f0418fe039a31951eb06a7819869 | fb7fcde692a11c7c3aeb6aa3e2ee820ecc25ff57 | /locationMarker/models.py | 67758569b988d9aee15ae0dc70e2e85be45ff7e5 | [] | no_license | drowsy810301/NTHUFC | f947677ba11c18713e55cfc85de51bec0ab39ec4 | 9fff43b00f9bb5eb5495ae6b5b1d2d6b5f3ae458 | refs/heads/master | 2021-01-10T12:21:24.206841 | 2016-02-03T14:52:47 | 2016-02-03T14:52:47 | 45,533,808 | 0 | 8 | null | 2016-03-22T14:05:07 | 2015-11-04T11:10:09 | JavaScript | UTF-8 | Python | false | false | 508 | py | from django.db import models
# Create your models here.
class Marker(models.Model):
title = models.CharField(max_length=30);
latitude = models.DecimalField(max_digits=18, decimal_places=15);
longitude = models.DecimalField(max_digits=18, decimal_places=15);
def __unicode__ (self):
return self.title;
class DemoP... | [
"tony333ts@gmail.com"
] | tony333ts@gmail.com |
efc7e0e6f4eeae2a0226ec1569a0cea893878697 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/csrc_reply_20210204142902.py | e86cb08dbc1e87888c905e9f2d8605734a986bf1 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : csrc_reply.py
@Time : 2021/02/04 14:14:51
@Author : Jiajun Chen
@Version : 1.0
@Contact : 554001000@qq.com
@License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA
'''
# 证监会发行监管部首次公开发行反馈意见爬虫
from bs4 import BeautifulSoup
from urllib.parse... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
3895a1a1de5a03a4c3886e48d6956cae9eca8af3 | 599f9fa7a482db782e57a990af8f2d90eb05ad88 | /HackerRank/30 Days of Code/More Exceptions.py | b75571b70356ac92368cb75cd389847fdcded50a | [
"MIT"
] | permissive | will-data/Self-Study-WIL | 353d68bae0bacb7c3bc47ef25cf8bffa797f1ca8 | 69d627c65130fcfa23f27f97948a20107bb33394 | refs/heads/master | 2021-05-17T11:26:12.164960 | 2020-07-23T07:59:18 | 2020-07-23T07:59:18 | 250,754,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #Write your code here
class Calculator:
def power(self, n, p):
# This is my first code to raise custom Exception, including a message.
if n < 0 or p < 0:
raise Exception('n and p should be non-negative')
else:
return(n**p)
myCalculator=Calculator()
T=int(input())
for i in ra... | [
"uillee0519@gmail.com"
] | uillee0519@gmail.com |
db3e86a824e045824bd23d68cc9fa7e1171705e5 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ugo/huaweicloudsdkugo/v1/model/show_evaluation_project_status_response.py | 32b633c65bfa9cdce52440b82e2516ca3572dfae | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 11,392 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowEvaluationProjectStatusResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
006826376b13a6b1314f8a96be7384d781a7f73b | 9ad901efba572d4daf27686d3d127984e9a77511 | /siliconmeasure/Keithley/keithleyN6700.py | 08212f1c9860efed8400e9d8c9a6cb7ae7dd426f | [
"MIT"
] | permissive | vhulagov/siliconmeasure | 3d3031eab2ff94d1daa7a3520068501a03d25d08 | f286dc331f76d3e890e53d6c0adb3c48341e9165 | refs/heads/main | 2023-04-15T06:50:38.731567 | 2021-05-02T08:21:04 | 2021-05-02T08:21:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,040 | py | """
Author : SABARI SARAVANAN M
Developed Tool and Version : Python 3.9
Description : General functions for keithleyN6700
Module Name : Keithley general Interface of N6700 source meter
Module Version : 0.0.1
Created ... | [
"noreply@github.com"
] | vhulagov.noreply@github.com |
8b565ed788ba16d16b1c1e81a6628ccdbffd461b | c2cf4cc33fa4b9b5fc1c5149ba3dba80f8eeee5d | /centroid_method/face_tracker.py | 95d2a0232f353ae17ea5f5684679a519c4654900 | [] | no_license | Masao-Taketani/object_tracking | d44b962c993beefd140b7ef05ecb5dfb573468b4 | d17388946224bcecfed429828f66caa1af7be6e2 | refs/heads/master | 2020-09-10T08:13:51.420719 | 2019-12-10T09:34:23 | 2019-12-10T09:34:23 | 221,698,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | from centroid_tracker import CentroidTracker
import imutils
from imutils.video import VideoStream
import numpy as np
import argparse
import time
import cv2
ap = argparse.ArgumentParser()
ap.add_argument("-p", "--prototxt", default="face_model/deploy.prototxt", \
help="path to Caffe prototxt file")
ap.ad... | [
"taket003@umn.edu"
] | taket003@umn.edu |
d23facb8aa301aa21a5529a832694e258dc33e2e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_138/ch82_2020_04_11_22_11_44_249634.py | 5db60cc74f33a51436b8f74d6967226febdf2be1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | def primeiras_ocorrencias(string):
dicionario={}
i=0
for a in string:
if a not in dicionario:
dicionario[a]=i
i+=1
else:
i+=1
return dicionario | [
"you@example.com"
] | you@example.com |
13dd9249874231898bf13cc8115e6bf9455b9576 | 4780a79893db081b0904fcbcee8a8d1087a21e8c | /app.py | a14230a0ecc1d1b76af346f9091ba03a8c5b252c | [] | no_license | danny742/flask-alpine | 28df9f1545f4dbf629b2c640db4a2a39944d8622 | e3b45dc90c49da566e088c494bccb9bc638230a7 | refs/heads/master | 2020-09-29T21:12:55.765228 | 2019-12-10T13:07:25 | 2019-12-10T13:07:25 | 227,124,437 | 0 | 1 | null | 2019-12-10T13:11:25 | 2019-12-10T13:11:24 | null | UTF-8 | Python | false | false | 172 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return 'Hello World!'
if __name__ == "__main__":
app.run(host="0.0.0.0", debug=True)
| [
"noreply@github.com"
] | danny742.noreply@github.com |
7848e41bfb1b480d355fd8e7bef11567895db5db | 5a99a6f23040f31d6bebeb1781b166c9550105b8 | /Narmadiya/migrations/0023_blooddonor.py | af0f92841e18c46a53020729507df39414fda2db | [] | no_license | MAPx-IT-Solutions/Narmadiya-Brahmin-Samaj | 69e3afb1fba66e93381477cb862fc153aa093c79 | e5bc32b2156dc37d1f0181b768bea4d90083d2c2 | refs/heads/master | 2022-11-14T01:08:03.358789 | 2020-06-26T12:29:57 | 2020-06-26T12:29:57 | 275,145,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # Generated by Django 2.2.4 on 2020-06-01 18:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Narmadiya', '0022_auto_20200531_2353'),
]
operations = [
migrations.CreateModel(
name='BloodDonor',
fi... | [
"noreply@github.com"
] | MAPx-IT-Solutions.noreply@github.com |
869b323405bbdd59b5ab7f1446a26a0d12685b03 | c2420cfe8cb1bae1d1b27bc31298f5b036e89e76 | /Assignments/A4/PorterStemmer.py | 593ec835cd8e2e183e45e9c1991174024bf06cf6 | [] | no_license | krishnr/search-engine | 9535290b8b3bdfad341dbb85710bbbb66382dd0b | 7d201b8865e7c308a7522e4fccf63bf129c4ee88 | refs/heads/master | 2021-05-10T14:12:21.578911 | 2018-04-04T07:22:41 | 2018-04-04T07:22:41 | 118,508,667 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,901 | py | #!/usr/bin/env python
"""Porter Stemming Algorithm
This is the Porter stemming algorithm, ported to Python from the
version coded up in ANSI C by the author. It may be be regarded
as canonical, in that it follows the algorithm presented in
Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14,
no. 3, pp 1... | [
"krishnr@gmail.com"
] | krishnr@gmail.com |
2a62e5869776ad409bb536388cb72353bbfce73d | 03376912b360f90a96d9f9683f987634225488e3 | /Python/PE549.py | 09e9f950cb3d98e7ebe0740313831c50a1cb5eb9 | [] | no_license | lenaindelaforetmagique/ProjectEuler | ed27b15d120631b6d3af30ee7e1305f59fdc9afa | 53ce546ed72e6d3f9cfb547ac44c7be457c5b2ec | refs/heads/master | 2021-01-01T20:45:52.260877 | 2018-12-20T16:09:22 | 2018-12-20T16:09:22 | 98,928,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | ##Problem 549
##
##The smallest number m such that 10 divides m! is m=5.
##The smallest number m such that 25 divides m! is m=10.
##
##Let s(n) be the smallest number m such that n divides m!.
##So s(10)=5 and s(25)=10.
##Let S(n) be ∑s(i) for 2 ≤ i ≤ n.
##S(100)=2012.
##
##Find S(10**8).
from arithmetique import *
fr... | [
"morin_xavier@hotmail.fr"
] | morin_xavier@hotmail.fr |
8b94a5e9e4b40f5ee6090c9936c2c5efcb11ad34 | fffa5a617741d5758de5cd971a5f41f713b2e938 | /src/reservas/migrations/0003_auto_20200816_0929.py | 85af84a4a899acedae62dcba21f727bc110dfa79 | [] | no_license | overflow/canchas | 633fc6db0682570200a94206f255478583337778 | dc046f42a4d570abd7837490e41062eb43387816 | refs/heads/master | 2022-11-29T07:42:21.967115 | 2020-08-17T03:54:46 | 2020-08-17T03:54:46 | 288,057,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # Generated by Django 3.1 on 2020-08-16 13:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reservas', '0002_reserva_cliente'),
]
operations = [
migrations.RenameModel(
old_name='Reservados',
new_name='Reservad... | [
"fiolorlando@gmail.com"
] | fiolorlando@gmail.com |
3723d373b6e01ed3b70fe855c56f6893f73a15c3 | 17d0f5379c74be38afb21a61366e13feff03ae24 | /server/models/__init__.py | 33881a54d9b833f4b4647a0a933bdec7a4613280 | [] | no_license | abijith-kp/Emolytics | 3ce2b248a95d13666bae510bc9e6e37d35086f56 | 00e94798ab20621b51f6ce2a058e0dd8dec1cdba | refs/heads/master | 2021-01-10T14:49:29.052538 | 2016-03-12T16:20:16 | 2016-03-12T16:22:13 | 53,741,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from .tweets import Tweet
from .jobs import WorkerJob
__all__ = ['Tweet', 'WorkerJob']
| [
"abijith.akp@gmail.com"
] | abijith.akp@gmail.com |
90a6ab7282a59d10429b3465f5fe8fd7719a99c9 | 8deb3cd052fda0d1398543ae37d16963692e254b | /commands.py | 2719b070d39f11a7e9db6da0296bf56990849d60 | [] | no_license | elleonard/lydie_bot | b0ded3592b9d0173efd2309058f3cb859c8fa618 | 61904209e07c42c462dadf9e09e8c2b67f5effae | refs/heads/master | 2022-12-10T19:20:19.827303 | 2021-04-04T12:35:59 | 2021-04-04T12:35:59 | 168,378,587 | 0 | 1 | null | 2022-12-08T01:34:30 | 2019-01-30T16:46:39 | Python | UTF-8 | Python | false | false | 1,043 | py |
class Command():
def __init__(self, text, help):
self.text = text
self.help = help
EVENT_SCHEDULE = Command("イベントいつまで?", "ゲームのイベントがいつまでか教えてあげる")
ORUGA_ITSUKA = Command("何やってんだよ団長", "スーちゃんがなんだかウズウズしてる")
FGO_EVENT = Command("FGOイベント効率", "konさんに聞いてね")
HELP = Command("help", "コマンド一覧を表示するよ")
SPREADSHEET = Comman... | [
"nplusplus538@gmail.com"
] | nplusplus538@gmail.com |
3bb7d4477f58359ee45b17f8bad9c91708cb18f6 | 34b34b309c1b1192566b5dc22582cdff100b1f83 | /ch01_overview/09_namedtuples.py | a3e7e12a5012292c9850c9db5916635b5b701fee | [] | no_license | aakashp4/Complete-Python-3-Bootcamp | ef96ed492c14f8e7163ec992afe35f2de6e79972 | fb6c63e53056eaf28e7dd98eaf8240762bb5b5e9 | refs/heads/master | 2020-09-25T03:07:40.215952 | 2020-01-15T21:29:28 | 2020-01-15T21:29:28 | 225,903,535 | 0 | 0 | null | 2020-01-15T20:42:16 | 2019-12-04T15:53:49 | null | UTF-8 | Python | false | false | 482 | py | from collections import namedtuple
Contact = namedtuple('ContactRecord', 'first last age email')
records = [
Contact('John', 'Smith', 43, 'jsbrony@yahoo.com'),
Contact('Ellen', 'James', 32, 'jamestel@google.com'),
Contact('Sally', 'Edwards', 36, 'steclone@yahoo.com'),
Contact('Keith', 'Cr... | [
"noreply@github.com"
] | aakashp4.noreply@github.com |
fd35c54e1fa82f624c63b4fa96fc49e7a4b26b09 | 9f112cd0aeb1447dee06ded576d99b61701cbdc3 | /ec-backend/src/ad/urls.py | a8546f87a5cd8ac17f23da1a35b3ed6db41309d3 | [] | no_license | ForeverDreamer/embarrassment-cyclopedia | 44e13fbd7210ebc634d0fbab321c0f4598072ff3 | f69bc88a6a8e734cbb3d37ab173f557708653789 | refs/heads/master | 2023-01-10T17:20:44.181077 | 2020-07-15T03:20:27 | 2020-07-15T03:20:27 | 206,903,622 | 0 | 0 | null | 2023-01-07T09:30:23 | 2019-09-07T02:22:09 | JavaScript | UTF-8 | Python | false | false | 251 | py | from django.urls import path
from .views import (
AdInfoListView,
AdInfoDetailView,
)
urlpatterns = [
path('', AdInfoListView.as_view(), name='adinfo-list'),
path('<str:pk>/', AdInfoDetailView.as_view(), name='adinfo-detail'),
]
| [
"499361328@qq.com"
] | 499361328@qq.com |
686026309c61b8dd1487954fbc1b52de208c5857 | 82d48141590cb1a2bcd22bbce3992523978639f3 | /charges_test.py | 2807f1e43bc75858e44bfbd12d9cbbed20614c6e | [] | no_license | dule8888/Python_code | 2062f24b382def70d2de546ccb5e45ee4f6d97e1 | a0fbfcc690188696876276269c417852ed33ca1c | refs/heads/master | 2020-05-25T00:37:37.396988 | 2018-08-17T21:21:33 | 2018-08-17T21:21:33 | 84,893,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 29 14:37:47 2017
@author: ebay
"""
import csv
import pandas as pd
longlist = []
with open('fedex_charges.csv', 'r') as csvfile:
reader = csv.reader(csvfile)
for lines in reader:
for i in range(1,len(lines),2):
shortlist = []
... | [
"noreply@github.com"
] | dule8888.noreply@github.com |
4fa9d98f45102c48c7469974acd040bd0f2a1178 | b4e7b990fd9ad7c1aab06a938e6ca6f25c600c3d | /EcommerceProject/settings.py | 8f9851fc788bc10b69f089e39e04cf7ba6ad02a4 | [] | no_license | SnehalNivsarkar/E-commerce | 851241ce015bb4ed6fcc4846540c0a1e4956c648 | 7eee74b20e2cdbb235af1881e57952fd42cb6131 | refs/heads/main | 2023-03-01T13:58:16.245263 | 2021-02-02T06:45:05 | 2021-02-02T06:45:05 | 335,168,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,259 | py | """
Django settings for EcommerceProject project.
Generated by 'django-admin startproject' using Django 3.1.
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/
"""
import... | [
"snehal.nivsarkar1@gmail.com"
] | snehal.nivsarkar1@gmail.com |
0ded6d45c234db74f6f321fbc2bd2ad4bb3db579 | 48b97b2c97859b5f245ec60cd3733e46c7e0e11b | /sim/riscv-compliance/compare_testvec | 520ce637d3f72cc093c9e70bfa97b073b5f9b42a | [
"BSD-3-Clause"
] | permissive | Wren6991/Hazard2 | 646525c7d9ea47edb794fbdb8a2cdc91ee927dca | 436e6603e9d33ef6ecd82b6ae606b01bd00db5c3 | refs/heads/master | 2023-04-19T22:43:46.727864 | 2021-05-03T21:13:39 | 2021-05-03T21:13:39 | 361,528,321 | 21 | 1 | null | null | null | null | UTF-8 | Python | false | false | 965 | #!/usr/bin/env python3
import sys
gold = []
model = []
model_bytes = []
in_testdata = False
for l in open(sys.argv[1]):
if l.startswith("Dumping memory"):
in_testdata = True
continue
if in_testdata:
try:
model_bytes.extend(int(x, 16) for x in l.split(" "))
except ValueError:
break
for i in range(len(... | [
"wren6991@gmail.com"
] | wren6991@gmail.com | |
953907553899b6a1d9fd87afa1c6f70dd6cc6f31 | 589b5eedb71d83c15d44fedf60c8075542324370 | /stock/stcok_pool.py | e618017842cb50e51927821649c22bb60a2cee4e | [] | no_license | rlcjj/quant | 4c2be8a8686679ceb675660cb37fad554230e0d4 | c07e8f0f6e1580ae29c78c1998a53774a15a67e1 | refs/heads/master | 2020-03-31T07:15:48.111511 | 2018-08-27T05:29:00 | 2018-08-27T05:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,094 | py | import pandas as pd
from quant.param.param import Parameter
from datetime import datetime
from WindPy import w
w.start()
class StockPool(object):
"""
下载和得到当前所有的股票池
load_all_stock_code_now
get_all_stock_code_now
"""
def __init__(self):
self.name = "All_Stock_Code"
self.load_o... | [
"1119332482@qq.com"
] | 1119332482@qq.com |
04a79846ea1074b5dcb0da00711c91dc7b23a895 | a00455b11e49c7304fc25a12086f976e8d1afb3e | /verify/views.py | fc6dacdaa4df96a104db97e029468bedb7e4a260 | [] | no_license | xixi037/VerificationCode | 51306d59a0ef9c77c5c8f043c12260af16ff7b07 | 2f6464a533424654493c2a7e5a7e6167e9b25184 | refs/heads/master | 2021-01-25T14:16:59.347964 | 2018-03-03T09:42:01 | 2018-03-03T09:42:01 | 123,678,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,861 | py | import datetime
from django.forms import model_to_dict
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
# Create your views here.
from django.urls import reverse
from django.utils.encoding import smart_str
from verify.models import Verify
def todict(source):
target =... | [
"492195925@qq.com"
] | 492195925@qq.com |
760d79c5be432579218ffbdbeddd28f6e85a16d8 | 5d7f7fcc9ba0413e03e59fddaff323d6af8ba9c8 | /importkit/utils/registry.py | 9ca2388a0b8537ace0248609f86fe575529fdb51 | [
"MIT"
] | permissive | isabella232/importkit | 3fc539b0e81bd5da76e0c14cfae0fb85dd9aa92e | 72702fd6150ef9b470c986061ff976bc814463c8 | refs/heads/master | 2023-03-19T17:15:18.703866 | 2020-03-02T00:58:37 | 2020-08-08T22:48:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | ##
# Copyright (c) 2011 Sprymix Inc.
# All rights reserved.
#
# See LICENSE for details.
##
import collections
import functools
import weakref
class WeakObjectRegistry(collections.MutableMapping):
"""Weak object mapping class.
Dictionary entries will be discarded once there are no strong references
to ... | [
"elprans@sprymix.com"
] | elprans@sprymix.com |
c5d5559b618b0dcdc173de89853fcb37bb74fe83 | d9d7155f84d0ad398d7fd27a77207a2418332075 | /docgen/config/build_env/source/conf.py | 3255203488352d745eb443ec0cd2d20197fa30ab | [
"BSD-3-Clause"
] | permissive | juvenal/cli | 1ce87f239dfabcfa337cfa01c7cd88f24e087d80 | cf06717f8dbe1b2f16d38bc43b239137f67fef16 | refs/heads/master | 2021-06-28T13:13:36.486519 | 2017-09-19T18:53:11 | 2017-09-19T18:53:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,850 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# cli.freenas.org documentation build configuration file, created by
# sphinx-quickstart on Fri Aug 5 17:06:55 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in t... | [
"piotr@ixsystems.com"
] | piotr@ixsystems.com |
22d5ea0e8a505899401608acb0ea8a241b88051a | 1a87c6f7082f7ab894a1747704b7e0f751a46ba3 | /server/washingtonCrawling/board/sentiment.py | 46a17eed51fa7467678dc9abb9d9e714464bec8d | [
"CC-BY-3.0",
"CC-BY-4.0"
] | permissive | mdls0916/Sentimental_Analysis_on_COVID19_News_Articles | 91448f7f337b5a27769abadd409e9de86355604b | a7d1a8c713a57b5fca1223b5589fdee557f70f97 | refs/heads/master | 2022-11-30T02:57:55.116825 | 2020-08-08T02:10:59 | 2020-08-08T02:10:59 | 285,956,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | import pickle
import re
from nltk.corpus import stopwords ##많이 사용하여 감성적인 의미가 미미한 단어를 없애는 부분 ex>the,a, is
import nltk
from nltk.sentiment.vader import SentimentIntensityAnalyzer ### NLTK Sentiment Lib 가져오기
import argparse
conora19_title = []
conora119_content = []
def getSentiment() :
with open... | [
"mdls0916@gmail.com"
] | mdls0916@gmail.com |
8f38710f8493af77d15e5f9b884b55b0e9063541 | d73b65f2387c50e92115b02e8e9316ccd4233c11 | /pyjobs_crawlers/spiders/pole_emploi.py | 20e75cc755721d029922c249a5af9a630d8cf2db | [
"MIT"
] | permissive | lebouquetin/crawlers | 1c66816582a63f7d04c7316249711a29d5a44d85 | 59f00b0f884f13d57e34ac79ad231a5a13077897 | refs/heads/master | 2021-01-15T22:15:32.356412 | 2016-02-19T17:15:54 | 2016-02-19T17:15:54 | 51,484,262 | 0 | 0 | null | 2016-02-11T00:33:26 | 2016-02-11T00:33:26 | null | UTF-8 | Python | false | false | 1,954 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from pyjobs_crawlers.spiders import JobSpider, JobSource
class PoleEmploiSpider(JobSpider):
name = u'pole_emploi'
start_urls = ['http://candidat.pole-emploi.fr/candidat/rechercheoffres/resultats/A_python_FRANCE_01___P__________INDIFFERENT_______________... | [
"damien.accorsi@free.fr"
] | damien.accorsi@free.fr |
52e7c2a8c865ff79c3b246a5ea9cdb282c932941 | cc01f98fd2b219857d16034657f649a277648026 | /Try1/birthday.py | cbf6b7f34f63a2eb7740874dfff766c615774a63 | [] | no_license | ellmarquez/100DaysofCode | 11a1d8de77b04720577e42a68faf10be6352b705 | f7f371ad067bc7359b14ff52217d43d171fce543 | refs/heads/master | 2020-03-10T16:42:31.904326 | 2018-06-03T02:10:41 | 2018-06-03T02:10:41 | 129,480,965 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | birthdays ={'Ell': 'April 1', 'Alice':'Dec 10', 'Jessica':'March 10'}
while True:
print('Enter a name:(blank to quit)')
name = input()
if name=='':
break
if name in birthdays:
print (birthdays[name]+'is the birthday of ' + name)
else:
print('I do not have birthday informatio... | [
"ellstripes@gmail.com"
] | ellstripes@gmail.com |
222d727553c87b722439291f5cbe9f4c6e871241 | 4d3b82521f1439e5d90dcbe80e7e355c7f43b781 | /testchild.py | 9371b818d22177723978bf9187627ee1aa777f83 | [] | no_license | solajk/solajk.github.io | 0f24293a96bbf217c692efd4b671e4e9bb612dd8 | 23244084bd54b4917d9b8c09fa5d80a4ce40dcf6 | refs/heads/master | 2023-03-06T15:17:41.018030 | 2021-02-15T00:32:41 | 2021-02-15T00:32:41 | 277,395,286 | 0 | 0 | null | 2021-02-06T20:52:53 | 2020-07-05T22:42:54 | HTML | UTF-8 | Python | false | false | 43 | py | ## adding a new python file
print("test")
| [
"noreply@github.com"
] | solajk.noreply@github.com |
a475e84883834a06fcfd8f0fa8af0b8b2d55af00 | a9b7aa7b1e337fc3f667f4f10514023834356077 | /__init__.py | 64551eeefc9b7468de6078031335ce20f90615c6 | [] | no_license | bhumiganit/Line-Split-Tool | ab5188f8e322f1c60079ac23ff89c2374af583e5 | eedc3e8e98d19fe121db453247311374578d0a02 | refs/heads/main | 2023-07-07T07:07:43.642888 | 2021-08-18T14:03:41 | 2021-08-18T14:03:41 | 397,610,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
Line_Split_Tool
A QGIS plugin
This Tool splits the line
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-----------------... | [
"noreply@github.com"
] | bhumiganit.noreply@github.com |
6bbcdaceb936cd0ca124bad744f65abf542515af | 5b8aec73f8bb7705b2275726d8d9d02a0758aa0d | /main/models.py | c8470490775e2214dc3cef2f15d5e08ab9aed4e7 | [] | no_license | Mohmmad-ow/mysite_2 | c7a2455cc82e184806dc34df0bb52f693bc8e76a | fb65b5d06f596afe1078e53b54ca9aaf50bc4596 | refs/heads/master | 2022-12-07T21:34:56.948296 | 2020-09-05T23:11:01 | 2020-09-05T23:11:01 | 293,126,302 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from django.db import models
from django.contrib.auth import get_user_model
# Create your models here.
user = get_user_model()
class ToDoList(models.Model):
user = models.ForeignKey(user, default=1, related_name='todolist', on_delete=models.CASCADE)
name = models.CharField(max_length=255)
def _... | [
"noreply@github.com"
] | Mohmmad-ow.noreply@github.com |
9dfeb0a328d15d9455aa51f046ccdb764f5f44c2 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/object_attr_set_eval_order-228.py | a511e83aab6b4ea3a1fa28424a3b776260bdc205 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | class A(object):
a:int = 42
class B(A):
b:bool = True
def __init__(self:"B"):
print("B")
a:A = None
b:B = None
def get_b() -> B:
print("Getting B")
return b
def get_one() -> int:
print("Getting 1")
return 1
def get_false() -> bool:
print("Getting False")
return False
a... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
eb0ab7afc7e99a8a893a10b0ed66cd5ba41b4f26 | 9312d2cee8895182c727af5a46b0edc9ef8aa547 | /GECCO2016/alifemain.py | 097d2809e51bbf89251918ae3528da9c247cfe50 | [] | no_license | anyaevostinar/mutualism_model | fa2878d67114fb82b92b7387597c9a51c565dd1d | 9a998314086da1a37c4fd73191bb4d426b802a17 | refs/heads/master | 2021-01-22T18:15:38.071784 | 2019-08-16T20:05:22 | 2019-08-16T20:05:22 | 48,124,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,586 | py | #!/usr/bin/env python
import random
import numpy
import sys
class Organism:
'''A class to contain an organism'''
def __init__(self, cellID, genome=[], parent=False, empty=False):
self.age = 0
self.empty = empty
self.ID = cellID
self.fitness = 0
self.genome = genome
self.symbionts = []
... | [
"anyaejo@gmail.com"
] | anyaejo@gmail.com |
ba0af1413a3bd07d81a89c67e4f2acdfec08139d | f0f134676ea06d7a7aff0d7e4ffd1be6ad46e868 | /setup.py | 347e4710de59ea499255047df7caf3e8df1025ee | [
"MIT"
] | permissive | farhadcuber/p2psimulator | 219c450bc687ecca7ea240063213a4014dff8992 | 570f325981209df272e31a904a3ee460222d52f0 | refs/heads/master | 2022-12-23T01:09:28.236737 | 2020-09-28T05:32:54 | 2020-09-28T05:32:54 | 256,421,522 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="p2psimulator", # Replace with your own username
version="0.0.1",
author="Farhad Keramat",
author_email="farhadcuber@gmail.com",
description="A p2p network simulator",
long_description=... | [
"farhadcuber@gmail.com"
] | farhadcuber@gmail.com |
d9abd4bf6b4179d15ad1005a4a87ad613258b791 | 20e708c38f6bfb6dac423dffe51e44520a1d2dca | /day-84-image-watermarker/model.py | 0e491769e5ef336077e5e558bc54cd9792f0b120 | [] | no_license | sedje/100DaysOfPython | f21fddc4ba067f5ccba0510a14306bfadbf6c738 | 1d05e54b405e36ad5051197f57dcba7a634f428d | refs/heads/master | 2023-04-29T23:48:42.812551 | 2021-05-21T10:21:01 | 2021-05-21T10:21:01 | 312,674,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from PIL import Image
class Model:
def __init__(self):
self.image = None
def get_picture(self):
if self.image:
return self.image
def set_picture(self, picture):
self.image = Image.open(picture)
def get_picture_size(self):
if self.image:
return... | [
"ankovanderziel@gmail.com"
] | ankovanderziel@gmail.com |
5df3dd882e2061aed72b4daeabdc76984732f35b | 518b4cf6e4c99a83ba74fde06d50e24a541dd249 | /modelzoo/models/__init__.py | 3de05bd3d61fac0f025ef84603bc3e58a0bbce27 | [
"Apache-2.0"
] | permissive | avinash-arjavalingam/modelzoo | 874a16b22e7aef2ca923a6666942c88e75f3409b | 284a0ada33c94c3be807049c451cd230a5e96513 | refs/heads/master | 2021-01-03T03:28:33.308972 | 2020-04-23T22:28:09 | 2020-04-23T22:28:09 | 239,903,214 | 0 | 0 | null | 2020-02-12T01:40:20 | 2020-02-12T01:40:19 | null | UTF-8 | Python | false | false | 13 | py | REGISTRY = [] | [
"xmo@berkeley.edu"
] | xmo@berkeley.edu |
156d38260734364e09599d002e1d41c6032814f4 | 4a78cc73d515226b74c274444eaf21052819a80e | /program/quadratic_eqn.py | 2955bf5f9f5a758cbf1b9bd872fcb7df3ce07358 | [] | no_license | jai-singhal/test_case_gen | bfb291b3cbbe41b721e5875b0ab0d7c88976ab0f | a2a102d5c4a415a180d35774ae793294f6209c32 | refs/heads/master | 2023-01-30T14:27:48.513266 | 2020-12-15T14:12:36 | 2020-12-15T14:12:36 | 321,667,556 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,405 | py | from model.graph import Graph
from model.chromosome import Chromosome
from model.paths import Paths
from model.path import Path
from math import sqrt
import logging
import logging.handlers
import os
handler = logging.handlers.WatchedFileHandler(os.environ.get("LOGFILE", "logs/quadratic.log"))
formatter = logging.Form... | [
"jaisinghal48@gmail.com"
] | jaisinghal48@gmail.com |
e9a2e401bb053c6e1fd5418deeb65ef1952a13ce | 28d1e6f66a21ec303bc1baaac597e4b4619c52bc | /scrapper/mail_sender.py | 1b98cfee02d2bb7760081418cda0de4a20f27986 | [] | no_license | bjanik/Scrapping | 429f8d0a27e3e90a081c75e7ce142f5b21a5042d | e5d30e319d9c0a55784b7158cc549ee7e0c3a06d | refs/heads/master | 2023-03-16T12:27:59.206483 | 2021-03-05T15:30:45 | 2021-03-05T15:30:45 | 338,134,198 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import os
import smtplib
import ssl
from dotenv import load_dotenv
from email.mime.text import MIMEText
load_dotenv()
EMAIL = os.getenv('EMAIL')
PASSWORD = os.getenv('PASSWORD')
def send_email():
msg = MIMEText("Poker all time money ranking was updated, check hendonmob.com", 'html')
msg['Subject'] = 'Poker r... | [
"bartlomiej.janik@hotmail.fr"
] | bartlomiej.janik@hotmail.fr |
70b6f7ab540eaa8dcf83f872958f371a9adeaaac | 59da45955862686374e438b5367978856df7c284 | /component_services/metadata_searcher_service/metadata_search_service.py | 85492def977c190d6dd8568d7baf1a6f47ed24ee | [] | no_license | nguyentran0212/IoTSE-prototypes | 04531fb3a8d14d1eaa5eba712c773bd7531fd04d | 3c9dde27cf1818fbf74508520eec3f35778f60f5 | refs/heads/master | 2021-09-20T10:48:47.330873 | 2018-08-08T08:20:46 | 2018-08-08T08:20:46 | 116,230,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 3 13:22:31 2018
@author: nguyentran
"""
from ISEPLib.abstract_services import AbsSearcherService
import ISEPLib.entity as entity
import redis
import pickle
from pymongo import MongoClient
from pprint import pprint
class SearcherService(AbsSearcher... | [
"nguyen.tran@adelaide.edu.au"
] | nguyen.tran@adelaide.edu.au |
acdb0487370ffcc2c1574371253a5d841631ff6f | 8eeb1e8d4d4f6cd685c4f2d8fcec284e74b376dd | /mention_network_inference.dir/create_mention_list.py | 78a8ba9700ce7461ac05e5aff1d7f1cda16babe9 | [] | no_license | vishalmaha/TwitterMentionNetworkLinkPrediction | daed7d048d71be903d1948abbfb0032e27f157ca | 5db665558890e7dd58ee6bf50f8b2aa01f2b84d6 | refs/heads/master | 2021-06-10T19:10:08.051818 | 2017-02-05T10:42:14 | 2017-02-05T10:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,758 | py | import sys,os,re,argparse
verbose=1
def getMentionList(filein,fileout,full_mention):
uid = 0
mid = 0
umention_f = 0
umention_l = 0
mmention_f = 0
mmention_l = 0
u_nmentions = 0
m_nmentions = 0
curdir = 0
counterl = 0
fileout.write('userid,mentionid,firstmention_user,lastmen... | [
"hadrien.hours@eurecom.fr"
] | hadrien.hours@eurecom.fr |
db223343257debd3254f2e0232322c5ba8f8d72a | 9b28d337d41b83b993b0997aed03390c0cb9549c | /app/formsubmit/__init__.py | 20a25bafbd7a3ae7f90732d95e9044e61ec6bc54 | [] | no_license | KyleEgland/python-flask-examples | c0ee8bbd9131baee5be1acb8b10ae083d351378c | e4278d7352eef0037947bb6cb3eacf30e8f2a6d5 | refs/heads/master | 2023-08-03T17:11:14.134978 | 2023-05-29T02:46:48 | 2023-05-29T02:46:48 | 248,573,252 | 0 | 0 | null | 2023-07-25T21:45:51 | 2020-03-19T18:12:05 | JavaScript | UTF-8 | Python | false | false | 103 | py | from flask import Blueprint
bp = Blueprint('formsubmit', __name__)
from app.formsubmit import routes
| [
"kyle.egland@outlook.com"
] | kyle.egland@outlook.com |
f5ef99ad4dab889a9b5fdaf8091b3c798def08d5 | d0ed65058f19e7a58674fe9e1a97f6ce29a94f60 | /shot/shotting/gun.py | 5d895ce4c9fc70369ab0c59d4f85dc1034829e37 | [] | no_license | xietalent/work_code | b260e49e22d004742f88b547ab10169c2111bf7a | 7704f4255a78d83d84149d6b1e5abd859e063cf3 | refs/heads/master | 2020-05-07T12:14:58.722843 | 2019-04-09T10:27:50 | 2019-04-09T10:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | from time import sleep
class Gun(object):
def __init__(self,clip):
self.clip = clip
self.nums = 0
def shoot(self):
number =self.clip.get_nums()
if number < 0:
print("您已经没有子弹了,请更换弹夹")
elif number == 0:
self.clip.set_nums(number - 1)
pr... | [
"2235110071@qq.com"
] | 2235110071@qq.com |
9ca9a91eb9a12dd2e1f716c4c149371fc439af64 | 584b44d855235f20a66eab6d7680c4d686e9b8fc | /mas_framework/gui_qgl.py | 94a5055dd20c029530ee4cb7443efd079fc5d987 | [] | no_license | dpathania1/DMASF | a06bf4f9ead584b35e8fc719aefeec4c67a03aa3 | 2e4f74584cea5bdc115436b5ee12b17d600d75ff | refs/heads/master | 2021-01-21T00:17:13.801241 | 2015-07-22T01:28:35 | 2015-07-22T01:38:43 | 39,477,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,103 | py | # This class will contain the behaviour of the opengl
# simulation component
# Parent needs to set the following attribs
# glwindowwidth : width of gl window
# glwindowheight : height of gl window
# both attribs will be used in call to glOrtho
# viewX : translation on X axis
# viewY : translation on Y axis
# both att... | [
"deepika.pathania@iamplus.com"
] | deepika.pathania@iamplus.com |
920ea6fcb72733b3dc651b11e2dfc535952f181c | abb7debf2b7fda4f75de84be2aac907395e07024 | /tabs/tab2.py | 594f60f07350035e57fc594ae6d4962166da4393 | [] | no_license | pikamegan/WooTech-IPLSaga | 88e068639bb277eb9663ee7928b19af70acc5610 | 0c4f7a43ca3f8676309f64211acbafb413529234 | refs/heads/main | 2023-03-08T03:09:05.679433 | 2021-03-03T12:46:09 | 2021-03-03T12:46:09 | 344,116,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | import dash
import plotly
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
import dash_table
import pandas as pd
import plotly.express as px
from dash.dependencies import Input, Output
from app import app
df = pd.read_csv("Clean_Data_with_names.csv")
P... | [
"noreply@github.com"
] | pikamegan.noreply@github.com |
2961b71d7ad87643abb9fa3f7f8cabc820a85285 | f77154ca57ee041e1ccda1b5706d104705612e18 | /web/bookmarks/account/authentication.py | 5c77f7d0b94b1d00092ab4137c9aff21cd70dc7f | [] | no_license | latewind/PythonSpace | 559e5d20a2d80c32dbff487fb946de2488da57c8 | 4d7b53cb1a50723bb394d235be3eb9318494e89d | refs/heads/master | 2020-12-02T21:16:42.010546 | 2020-06-18T22:58:49 | 2020-06-18T22:58:49 | 96,283,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from django.contrib.auth.models import User
class OnlyAdminAuthBackend(object):
def authenticate(self, username=None, password=None):
try:
user = User.objects.get(username=username)
if user.check_password(password):
return user
return None
except... | [
"lsqwell@sina.com"
] | lsqwell@sina.com |
2ccd5cf0554a990d9e4793a4c2513b5b10ff69c7 | d979ad4a11be55d4c80afe5e37b5fc142ba4d859 | /CODES/Score.py | ce5d4fb50f7d5b4230b89af298ee58d5f05f044e | [] | no_license | CopotronicRifat/Protein-Structure-Prediction-using-PyRosetta | 105ffa7ad8074419ddea94107142601eed1e6d88 | 4eb0668b32f73dbfe9861b270a20ad23f16b7f75 | refs/heads/master | 2021-05-12T07:54:43.004200 | 2018-03-22T20:37:31 | 2018-03-22T20:37:31 | 117,263,083 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 8,042 | py | import optparse
from pyrosetta.rosetta import *
from pyrosetta import *
init()
def pose_scoring(pose, display_residues = []):
pymover = PyMOLMover()
# a. this method returns the hard-coded set of weights for the standard
# fullatom ScoreFunction, which is currently called "talaris2013"
fa_scorefxn... | [
"noreply@github.com"
] | CopotronicRifat.noreply@github.com |
f4ba06a76d819bfdd1c8c01f588e073c6cbd8e08 | 44e8cb28b7cfc29f2a4055b8e4876721e1356168 | /Python/Project Euler/6.py | de291ff2aca20de805ce1d81f84914a6eb871942 | [] | no_license | BrianHillman/Practice-problems | 0e055702ec86026af2d194cb1bf8f828b219b997 | 41969a453a67c7bded6875174c1dadec48420b92 | refs/heads/master | 2021-01-11T11:01:26.032466 | 2014-06-26T08:29:43 | 2014-06-26T08:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | '''
Created on Apr 18, 2012
@author: Brian
'''
sumOfSquares = 0
squareOfSums = 0
for x in range(1,101):
sumOfSquares += x**2
for x in range(1,101):
squareOfSums += x
squareOfSums = squareOfSums**2
print squareOfSums-sumOfSquares | [
"brianjhillman@gmail.com"
] | brianjhillman@gmail.com |
8867137322452d7129810ea42bb441294ce5c87e | 5f4762e305f902337c5700655a0bfbc77466a5a7 | /blogsai/asgi.py | 969e1a16b2dcc93bc199ce9226d2a8ff7415e033 | [] | no_license | aishmash1010/Blogsai-Website | b1556d22f149addf7970157f534027db2d446d40 | 86b9add4d492f1e88fdae8278eaf9c9c4695587f | refs/heads/master | 2021-05-18T04:29:48.814658 | 2020-03-29T18:58:01 | 2020-03-29T18:58:01 | 251,107,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for blogsai project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"aishwarya.s.mashalkar@gmail.com"
] | aishwarya.s.mashalkar@gmail.com |
c2942ba7a95f6aa087d978415020fea3cabd81cb | 2748a33d28e8c708c7bc2bd1704b1c8d0f7ddbed | /day3/hw3pr1.py | 6e6c8b1a64e3061c7775a11d88232a61f1d118de | [] | no_license | EverardoG/HMC-Research | 0689ab9bd4ae1f9391bbd9de84555d2f7d0eae06 | 3f92882747b1bc97e66492b1441ce293422d1e25 | refs/heads/master | 2020-03-23T05:44:40.397481 | 2019-07-01T19:11:31 | 2019-07-01T19:19:51 | 141,163,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,880 | py | #
# hw3pr1.py
#
# lab problem - matplotlib tutorial (and a bit of numpy besides...)
#
# this asks you to work through the first part of the tutorial at
# www.labri.fr/perso/nrougier/teaching/matplotlib/
# + then try the scatter plot, bar plot, and one other kind of "Other plot"
# from that tutorial -- and cr... | [
"everardo.gonzalez@students.olin.edu"
] | everardo.gonzalez@students.olin.edu |
fbb6fd202ebaba4573cd8865d86bb12ea7c635a2 | b0742668ebceaffbf80077bd0d0cbae124d3988e | /test/media_test.py | 7d95659ddce08d60292be0b03e40f9d2a1741333 | [] | no_license | nehashivhare/media-downloader | 4789cd39cd3263e7d6630a311410bd639d86e565 | 48135ce3fcee5229fc867c1e791d8eb1abfdb26a | refs/heads/master | 2022-10-13T15:30:15.164406 | 2020-06-11T14:10:29 | 2020-06-11T14:13:21 | 271,499,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import unittest
from io import StringIO
from unittest import mock
from unittest.mock import MagicMock
from media import Media
class MediaTest(unittest.TestCase):
def setUp(self):
self.media_object = Media()
ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
... | [
"nehashivhare@gmail.com"
] | nehashivhare@gmail.com |
3af5d21dfbc8c28c909581f85bd2e6ec81038d5f | 96184a7d23d7505b274f62f5d3eac9ce95314487 | /trainer/evaluator.py | 18b0742afcff1c1eba1a0951c7ff154c2c22ebc9 | [] | no_license | hanpig1998/DAIL | eb473d9aae94c7857f9374a4269b4e3051072d52 | eabd39a71eee78a424f9f7647d2b2fdc58b7963b | refs/heads/master | 2022-07-08T07:36:41.376712 | 2020-04-08T10:04:36 | 2020-04-08T10:04:36 | 253,805,054 | 0 | 0 | null | 2022-06-22T01:38:54 | 2020-04-07T13:42:47 | Python | UTF-8 | Python | false | false | 12,462 | py | ''' Incremental-Classifier Learning
Authors : Khurram Javed, Muhammad Talha Paracha
Maintainer : Khurram Javed
Lab : TUKL-SEECS R&D Lab
Email : 14besekjaved@seecs.edu.pk '''
import logging
import numpy as np
import torch
import torch.nn.functional as F
from torch.autograd import Variable
from torchnet.meter impo... | [
"hkg16@mails.tsinghua.edu.cn"
] | hkg16@mails.tsinghua.edu.cn |
a8ecb9756718de6f131b39ec66b0d2116ca8099e | 7eef1a412b397cf3f7e7318a01b9195ab2caeea3 | /mysite/mysite/settings.py | 578dcfadbb23cf20244482c7aee4a6d56b4e8069 | [] | no_license | maverb/e-commerce | 0648652b57ef79fb70a4a17e2520f0b828546c97 | 6ff4ff860c063c8f1fbfee67b3e127ea0d0040a2 | refs/heads/main | 2023-04-23T04:25:15.563146 | 2021-05-10T21:14:18 | 2021-05-10T21:14:18 | 348,480,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,752 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.2.
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/
"""
from pathlib ... | [
"39745672+maverba@users.noreply.github.com"
] | 39745672+maverba@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.