blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b54aec19d4a17a8bc4062a8a1310ff81f7cd4748 | d0105f3cdbeedc94f3644f26b32bad77cfcc79b2 | /app/models.py | bef475f189935763ddf54aef6c6557928b3a7edf | [] | no_license | glaxur/3.1-image_board | 782bf1642fcaaa718912fa719e2693cd666bca0f | 0fd65725bd0750fd1128c5f74a9e2cdc308d372b | refs/heads/master | 2020-04-18T03:41:47.009248 | 2019-02-05T18:25:42 | 2019-02-05T18:25:42 | 167,209,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.db import models
# Create your models here.
class Image(models.Model):
title = models.CharField(max_length=255)
picture = models.URLField()
description = models.TextField()
| [
"isaiahsantillan111@icloud.com"
] | isaiahsantillan111@icloud.com |
e6fe4e7c09f450b93ab07e860c2a7f03ae7f9b89 | dd1e6fefcf0eb2fd41b30e93200b787fddb575a8 | /fractals/sierpinski_square.py | c238014f80b2549a0ab3313d59f3136efb5869b2 | [] | no_license | blackbat13/Algorithms-Python | 7a73f8fecbad00fe9c20a16ed35a2f83b2bc2220 | 751795ce8c4cf711f073bdaad43887186798b5cb | refs/heads/master | 2023-01-30T07:55:11.096845 | 2023-01-19T21:02:09 | 2023-01-19T21:02:09 | 95,124,032 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | import turtle
def sierpinski_square(rank: int, length: float) -> None:
if rank == 0:
turtle.begin_fill()
for _ in range(4):
turtle.forward(length)
turtle.left(90)
turtle.end_fill()
return
for _ in range(4):
for _ in range(2):
turtle.... | [
"blackbat13@gmail.com"
] | blackbat13@gmail.com |
e76e28bd04a383326cc2c4463f4893e39e80bd94 | 50a7cc67f33f461c6d747a9d012b8474236fe44b | /Internet worm/rookie_python/game/alien/ship.py | c111277dff2daa37d90b96037c3ce70f3aad4d3c | [] | no_license | Katherinelove/python | a74ad127a7d0f5cad51eabd286e4eb697f571286 | 82cd7e39c2accb5f123769c16e66d7234e9a4121 | refs/heads/master | 2020-03-25T14:58:03.322388 | 2018-08-11T07:30:34 | 2018-08-11T07:30:34 | 143,864,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | import pygame
class Ship():
def __init__(self,screen,ai_settings):
"""初始化飞船并设置其初始位置"""
self.screen=screen
self.ai_settings=ai_settings
#加载飞船图像并获取其外接矩形
self.image=pygame.image.load("F:\pycharm\images\shipps.jpg")
self.rect=self.image.get_rect()
self... | [
"noreply@github.com"
] | noreply@github.com |
6027af84ca271e6f2badce4053d1384e30b62893 | 10eb060e516c1c16278ac7a24d9db11124930cfe | /app/logs/venv/bin/easy_install | d483d0ab3ee96ab05f2cbf0f32d9be8f764da9a4 | [
"CC0-1.0"
] | permissive | neharejanjeva/techstitution | d9a1016515ba26569979bdd11107e9f8c04d87ce | f3d3fa5af807bd3834606ed20aa48cc2623b435f | refs/heads/master | 2020-06-20T05:41:30.482811 | 2016-12-25T14:45:23 | 2016-12-25T14:45:23 | 74,880,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/root/Desktop/techstitution/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"root@localhost.localdomain"
] | root@localhost.localdomain | |
7f490cc63838ae46fb31c1aee3fceac898779de2 | d2f699f8616ac33aedb96b79aefcefd5f844aaf9 | /smtpvirustotal/smtp_virustotal.py | defe95a238b320f2aaf248fe95fb120c8de94e94 | [
"MIT"
] | permissive | vdmitriyev/smtpvirustotal | 1689b28aad3fba8d789e82b79911ef73fd3efe2e | cd1e92524c06f119e2623ae00f1691d7e7d68d6b | refs/heads/master | 2020-04-11T09:08:05.660762 | 2015-02-10T22:55:11 | 2015-02-10T22:55:11 | 29,745,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,962 | py | # coding: utf-8
#!/usr/bin/env python
__author__ = "Viktor Dmitriyev"
__copyright__ = "Copyright 2015, Viktor Dmitriyev"
__credits__ = ["Viktor Dmitriyev"]
__license__ = "MIT"
__version__ = "1.0.1"
__maintainer__ = "-"
__email__ = ""
__status__ = "Test"
__date__ = "23.01.2015"
__description__ = "Script... | [
"dmitriyev.viktor@gmail.com"
] | dmitriyev.viktor@gmail.com |
ef4a4857f15f1c2b2713614b0e94bcb8abe60452 | f0987e17aea6668158cd334c1fbacfe6286d3c77 | /NITA/lib/jnpr/toby/tmp/RLI/RLI-27K/RLI-27607/APPS/cat_fw_vpls_flex_mask.py | e3b16eea8fad30d7f0b78b0b4365701a591f58a4 | [] | no_license | fengyun4623/file | 00bf21f952ea3f95ffc9fe18448b244b26b7fadb | 3966c63d48557b0b94303896eed7a767593a4832 | refs/heads/master | 2023-04-02T05:01:25.066052 | 2020-07-29T16:15:31 | 2020-07-29T16:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243,204 | py | import os
import sys
import logging
import time
import argparse
sys.path.append("/var/tmp")
# Importing API libraries
from grpc.beta import implementations
import authentication_service_pb2
from authentication_service_pb2 import *
import jnx_addr_pb2
from jnx_addr_pb2 import *
import firewall_service_pb2
from firewa... | [
"srigupta@juniper.net"
] | srigupta@juniper.net |
1928c8ea213df09712461f81278cde51e2c03d74 | c6c76e87ab639c120055783b71e295accd243cd3 | /{{cookiecutter.module_name}}/src/bio2bel_{{ cookiecutter.module_name }}/__init__.py | ac0e57ac2c082f98391d68799216ff51820b9515 | [
"MIT"
] | permissive | deeenes/bio2bel-cookiecutter | 48e3293744cfbbec0ee1b2907a602b01b47d6ee9 | 8464a34faf3e645de20fb098ced4ec31666dd10a | refs/heads/master | 2020-04-25T22:45:38.970831 | 2019-02-24T19:29:14 | 2019-02-24T19:29:14 | 173,122,231 | 0 | 0 | MIT | 2019-02-28T14:01:14 | 2019-02-28T14:01:13 | null | UTF-8 | Python | false | false | 182 | py | # -*- coding: utf-8 -*-
"""{{ cookiecutter.short_description }}"""
from .constants import get_version
from .manager import Manager
__all__ = [
'Manager',
'get_version',
]
| [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
d968a19d4dcbef4726d39640164a51021d00e7dc | d233f7c117f3968b943fe9ceae09ad56a3f4428e | /uno/api/migrations/0002_comment.py | 6c36e54d67e16432a84102127fa2fd3f068de800 | [
"MIT"
] | permissive | ramonduarte/sampleblog | 75872fe9cc4d09ded35e6a2a7245672e1eed2f66 | ac432be729d645e58c27590c868af49dde2e39c7 | refs/heads/main | 2023-03-29T20:17:39.592944 | 2021-02-26T06:15:35 | 2021-02-26T06:15:35 | 341,371,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | # Generated by Django 3.1.7 on 2021-02-26 04:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0001_initial'),
... | [
"ramonduarte@poli.ufrj.br"
] | ramonduarte@poli.ufrj.br |
dad52d6a078d7705cb797dcc29fbaa307a6d3491 | 336d4314659aa8d002f225499e6a825390ebdca2 | /examples/project_ahead_example.py | e4081ea8a2e0bb2b6dbad2362879f6c9d07564a8 | [
"Apache-2.0"
] | permissive | davidgutierrez24/welleng | 89e54655389588fe3c06283b0772968aeacc86e6 | 4c7cd70386bf867c7e653a77f1267c27e3ab1e4f | refs/heads/main | 2023-08-04T09:49:13.581869 | 2021-09-29T21:23:17 | 2021-09-29T21:23:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | '''
examples/project_ahead_example.py
---------------------------------
An example of how to:
- project ahead from a position and vector for a given delta_md, dls and
toolface
- create a survey listing and error model
- use a convenience method for creating a figure of the survey
- determine the node properti... | [
"jonnycorcutt@gmail.com"
] | jonnycorcutt@gmail.com |
b002aee20294ad5d0b463e8926b8a5bbd668ee41 | 12b1de5707dd1eeb13aa0d663d90d3e69ba733b7 | /HackerRank/Max Min.py | 22b87af1c9d9febebb5dfd95e0dff59366174402 | [] | no_license | arabae/ALGORITHM | 07e0908ce1ba5f63057a4c9d2ed77ec5b17a859b | bfcc138c88a850a554fdc4b1325b562e3ef544c1 | refs/heads/master | 2022-02-10T16:04:07.675958 | 2022-02-08T10:41:29 | 2022-02-08T10:41:29 | 197,388,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'maxMin' function below.
#
# The function is expected to return an INTEGER.
# The function accepts following parameters:
# 1. INTEGER k
# 2. INTEGER_ARRAY arr
#
def maxMin(k, arr):
arr = sorted(arr)
minimum_diff = floa... | [
"arbae@inu.ac.kr"
] | arbae@inu.ac.kr |
a20b83565559da98b0b69fe08289df879173ac57 | 0506625249bf43a90d573036aa7b3e4d65498225 | /home/migrations/0001_initial.py | 272bf38440c92db81bdc1007419dfc571366d153 | [] | no_license | man-is-h/portfolio | 28f7f51e1bc07ce4d183b10f2830444dd0a0c743 | 73e082c3d1440b35aba62c7107c5a052190eff98 | refs/heads/main | 2023-07-15T12:00:18.539909 | 2021-08-30T12:43:18 | 2021-08-30T12:43:18 | 400,488,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # Generated by Django 3.2.6 on 2021-08-10 18:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.BigAutoFie... | [
"agarwalmanish72@gmail.com"
] | agarwalmanish72@gmail.com |
2e2a9fdd7de95e773399597bffbe4f7fde965ece | 6bdf644af78f28c8014dd7ec887e6501ec88417b | /03_project_db_creation.py | 7d02fd2f43689ab7a9ca48b442066b9f81e7b56f | [] | no_license | R-14/python_user_management | 3bd03172328a840a2a1e53f7468a1dbcca6134ac | 57162b97352fd888e2ecab4676bb524f8bf6c494 | refs/heads/master | 2022-11-18T21:23:40.535054 | 2020-07-10T17:04:17 | 2020-07-10T17:04:17 | 278,689,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | import sqlite3
# db creation and adding a user table to it
connection = sqlite3.connect("C:/Users/rsisl/Learning/PythonWorkspace/Project/users.db", timeout=10)
cursor = connection.cursor()
#cursor.execute("DROP TABLE IF EXISTS user_info")
#cursor.execute("CREATE TABLE IF NOT EXISTS user_info (user_id INTEG... | [
"noreply@github.com"
] | noreply@github.com |
7fff988fa5a77b5b720d1cd83cd7e8a266e4b410 | f353f19174ea2fd8569c8f46bb2d99142fff919c | /String/Exercise-50.py | 39a1a406836b67dd4b99c3644c3b1ead05da42e3 | [] | no_license | self-study-squad/Python-examples | a283d9efe47d71d2e134e8fc2e919dccffe5108a | 07de281fbcc9fb7f421b89a74ff24bafc78a5d4b | refs/heads/master | 2022-12-28T01:35:03.927338 | 2020-10-09T06:41:16 | 2020-10-09T06:41:16 | 298,136,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | #Write a Python program to split a string on the last occurrence of the delimiter.
strip ='w,3,r,e,s,o,u,r,c,e'
lst = strip.rsplit(',',2)
print(lst) | [
"longpham6595@gmail.com"
] | longpham6595@gmail.com |
98613f9085981c3233bf6778821e9671386c3c69 | 59b8e8cb1c7e53118f29333d71851d6dd74fe021 | /hello.py | ba741c8012448ef9d5bb36b9e447b589ed7d1d24 | [] | no_license | exas49/test88888741321231 | 55c644dc51462f13ac8dc6aed3886ecd9f7acd47 | ca3efbf1a903cd4c4f57db363df39795eacb1202 | refs/heads/master | 2020-12-02T06:17:08.978181 | 2017-07-10T18:47:52 | 2017-07-10T18:47:52 | 96,810,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | #! /usr/bin/python3
name = input("Give me your name: ")
print("Your name is " +name)
age = int(input("Enter your age: "))
older = (str(2017-age+100))
print("The year you will turn 100 is: " +older)
| [
"noreply@github.com"
] | noreply@github.com |
c4ffd485124e4384a907a18abd1956cae91369f6 | a5e88c5e8ee613b8643a3cc15a866c9328e5949d | /repomd/yumrepo.py | 1407c46ec6a8b2d44f94f108f570eeb474e15899 | [] | no_license | jctanner/rbuild-yumcheckout-plugin | f26a0da5e206da90b77ca505e73814a2840a978e | 782e5f63ec9082d4972229c770bb7cf6b7f947d1 | refs/heads/master | 2021-01-23T13:54:46.022213 | 2012-10-19T15:00:55 | 2012-10-19T15:00:55 | 4,719,725 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,779 | py | from linkparser import *
from yumpackage import *
from yumgroup import *
import urllib2
from urllib2 import urlopen
import re
from xml.dom.minidom import parse, parseString
import StringIO
import gzip
class yumRepo(object):
def __init__(self, url):
#self.id = id
self.url = url
self.repo... | [
"tanner.jc@gmail.com"
] | tanner.jc@gmail.com |
cb93a20f091062a52f6a1249ffd4b80b87da3b38 | 625afd86a289e0e8357668e5a85736b18012a1a1 | /eshop/store/migrations/0002_category.py | a87d40cbe14424ac1cc70e4760fcc289bd7c9c58 | [] | no_license | sooryapriya/Eshop | e17e75e956ab649c391fe648319a034a49784ff1 | ad2585fdd2a78ae418abb52df95bfcc8635fe800 | refs/heads/main | 2023-08-22T16:02:15.190427 | 2021-10-11T14:01:03 | 2021-10-11T14:01:03 | 415,944,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # Generated by Django 3.2.4 on 2021-08-22 06:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', m... | [
"soorya.kathirvel@gmail.com"
] | soorya.kathirvel@gmail.com |
b99bcf20c49487934b9ef93afed3a985434f6998 | 8dddd03f63d1597c0a705d4194a2e54899d512c5 | /platform_agent/network/iperf.py | 2cb05ca5cfd1c55696d8388fd93dfe09847b9d6f | [
"MIT"
] | permissive | cryptosnowmanETH/syntropy-agent | e252e60d14c1a87da1062f5719910cd18b013a12 | bc6093ff964f64c30ac6b41cfbe1f7411d59e4d7 | refs/heads/master | 2023-02-16T11:06:51.987613 | 2021-01-18T14:40:29 | 2021-01-18T14:40:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | #!/usr/bin/env python3
import iperf3
import logging
import threading
import time
logger = logging.getLogger()
class IperfServer(threading.Thread):
def __init__(self):
super().__init__()
self.server = iperf3.Server()
self.stop_iperf = threading.Event()
self.daemon = True
... | [
"povilas.zva@gmail.com"
] | povilas.zva@gmail.com |
d1ed51364b15ccad35c2d1cf21ee1cb0e081e54b | 8b509887fbd331a92411a5e91eddafd64b4ed167 | /src/Replace.py | da17c88e0bd237ee5fb466ffea99322c8997646f | [] | no_license | tafiquemd/Static-Site-Generator | afaa735ad27cd5fd8893c14bea466dc00951ea5d | cb205f63197073ffcf8ad10868b74fd8c67b912c | refs/heads/master | 2020-03-09T20:16:23.159198 | 2018-04-08T17:57:34 | 2018-04-08T17:57:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,307 | py | from flask import Flask, render_template, redirect, url_for
import sys, subprocess
import codecs, sqlite3
themeName = 'graxpo'
connection = sqlite3.connect('../database/Record_'+themeName+'.db')
class Replace():
def themeDetails(self):
self.themeName = input('Enter theme name : ')
self.themeAddres... | [
"noreply@github.com"
] | noreply@github.com |
9c444371cc675ee228f3d2b8adbe8b53301068e2 | f7db376499b7fb5e2b0b3ac33f568b68efb18f63 | /download2_3_2.py | 235fcd2f7956f890930b3c2b26e5d49a66f29f86 | [] | no_license | youngho7505/python_section2 | 74060e733275fe6f2c462906fad9377c55a9e41b | 986bb7dbe05f9310b4aa881cb6f06d675dcaff5a | refs/heads/master | 2020-04-01T16:15:54.525905 | 2018-10-17T02:01:00 | 2018-10-17T02:01:00 | 153,373,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import sys
import io
import urllib.request as req
from urllib.parse import urlencode
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
api = "https://api.ipify.org"
#api = "http://ip-api.com/json"
values = {
'format' : 'js... | [
"9479750@gmail.com"
] | 9479750@gmail.com |
d1802bdc126d931b61e7ad0bd26a97909c809bd9 | d043a51ff0ca2f9fb3943c3f0ea21c61055358e9 | /房天下全栈/MongoDb_write.py | 50cbcf8646502f27c2635be6028ee5e0d127149e | [] | no_license | lj1064201288/dell_python | 2f7fd9dbcd91174d66a2107c7b7f7a47dff4a4d5 | 529985e0e04b9bde2c9e0873ea7593e338b0a295 | refs/heads/master | 2020-03-30T03:51:51.263975 | 2018-12-11T13:21:13 | 2018-12-11T13:21:13 | 150,707,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import pymongo
class Mongo_DB():
def __init__(self, mongo_db, city, item):
self.host = 'localhost'
self.mongo_db = mongo_db
self.city = city
self.item = item
def open_spider(self):
try:
self.client = pymongo.MongoClient(self.host)
self.db = self.... | [
"1064201288@qq.com"
] | 1064201288@qq.com |
ea3c7378eafbd7e24cb32a92bd84a33af4cf2f07 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/missingDigit_20200728194115.py | 0cbdd8d70f0de557aa2de261f510c18ae656645a | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | def missing(s):
s = s.replace("=","==")
for x in range(1000000):
try:
if eval(s.replace("x",str(x))):
return x
except:
pass
return None
print(s)
missing("3x + 12 = 46") | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
fd7382e75a29d7b8bcff23eebb0c48ff9f63578c | affb10188013a17544cba632f97b9e61252a0cee | /WhoLikesIt.py | 22484c930fbfae48ccfe51189b07e406c006d12a | [] | no_license | MihirSeth/CodeWars | f92ed6c03a43d733e4ef7df19f8d4179776e507e | eeac45049d7a73bb658f6c0f9b5975e0570c3215 | refs/heads/main | 2023-05-31T07:56:49.609104 | 2021-06-20T09:52:33 | 2021-06-20T09:52:33 | 375,425,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | def likes(names):
length = len(names)-2
length = str(length)
if len(names) >= 4:
name1 = names[0]
name2 = names[1]
likes4 = name1 + ', ' + name2 + ' and ' + length + ' others like this'
return likes4
elif len(names) == 1:
name1 = names[0]
lik... | [
"noreply@github.com"
] | noreply@github.com |
b0a0f3b2b83e2f6d0e508e3cd9af85a6b11996a7 | f090391b5572c4810d9b60d687d028334aa386ec | /object_recognition_tensorflow/src/darknet.py | ad2e65db8a1470fb6a6f0fb650b308a20726ba8a | [] | no_license | uva-robotics/image_recognition | 5615a8347b856c889982eb22613e5ab2efe98d79 | 5a7bb4513ac4b8f56538bd4a687e022621f64d90 | refs/heads/master | 2020-03-17T22:09:14.393285 | 2018-10-12T10:50:47 | 2018-10-12T10:50:47 | 133,991,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,175 | py | from ctypes import *
import math
import random
import os
import sys
def sample(probs):
s = sum(probs)
probs = [a/s for a in probs]
r = random.uniform(0, 1)
for i in range(len(probs)):
r = r - probs[i]
if r <= 0:
return i
return len(probs)-1
def c_array(ctype, values):
... | [
"mullertim99@gmail.com"
] | mullertim99@gmail.com |
5f52a60fa049b44950ed93eaf398b09ee605b047 | dc5cc7b5a0523106ac693bb618f38fa3107c2433 | /polls/urls.py | 8cce3e2e3c67ddfb15b2e4cbb1c6d496762b9a38 | [] | no_license | lizeshakya/Polls | 77bbf65741eb450c7289b78a1159ba084b4e90bc | df7252465fdca6483cf47f4a51dfed762484ddb1 | refs/heads/master | 2022-11-17T12:40:44.402396 | 2020-07-09T15:27:36 | 2020-07-09T15:27:36 | 278,388,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name="index")
]
| [
"lizeshakya@gmail.com"
] | lizeshakya@gmail.com |
fca9f3685ac4d059425887f77a1c818ce8c0857c | 9ce6da782bf374c237fb194e70c8faba9e969c31 | /backend/planetly_test/settings.py | 0d8b96a1387ebf9b8cef528124b313778f8259d1 | [] | no_license | cech92/test-drf-with-react-redux | 69c93cdbe35a02239e6b19b6fc5836c693006bd6 | 54a43a40a3d330ec8093da019c59b1f8890970be | refs/heads/master | 2023-08-28T09:06:17.332196 | 2021-10-20T07:11:01 | 2021-10-20T07:11:01 | 419,014,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,863 | py | """
Django settings for planetly_test project.
Generated by 'django-admin startproject' using Django 3.2.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import ... | [
"cech92@live.it"
] | cech92@live.it |
9dd465d68237612be2dc42454929f92a717b122c | 59077bdcad1e49394bf16acd75ecf956ea9371d4 | /exemplo/lancamento/serializers.py | 8e41711b61104fb16ca12255b2600a2f67a85290 | [] | no_license | emartello/PilasMeus | 5c07de9650e1f44ba6ec4b60963d5f2b56efd8ae | bf219b64ae6a3b94e81ec1ce69b647250949b5a1 | refs/heads/master | 2021-05-07T18:12:40.572350 | 2017-10-31T23:14:32 | 2017-10-31T23:14:32 | 108,783,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import datetime
from rest_framework import serializers
from .models import *
class LancamentoSerializer(serializers.ModelSerializer):
class Meta:
model = Lancamento
fields = ('idlancamento', 'data', 'tipo', 'descricao','valor','idcategoria')
class CategoriaSerializer(serializers.ModelSerializer):
class Meta:
... | [
"elvis_e_e@hotmail.com"
] | elvis_e_e@hotmail.com |
a08905226cb967f772a89084f6abc166f8f34c1c | eb920d3b374f5918c9a60da6ba3e0485b67f5c96 | /cornac/models/global_avg/recom_global_avg.py | d3171f7cc6fe6c77c66c27520b951d2f441b76b7 | [
"Apache-2.0"
] | permissive | binhtrantt/cornac | 16044ed75f60e51dc23fab3c47c36a21f7a32975 | 2333e2463b1be5568a1c2da43d01401999f2dd3c | refs/heads/master | 2021-08-16T09:02:52.588477 | 2020-05-07T05:21:17 | 2020-05-07T05:21:17 | 178,134,277 | 0 | 0 | Apache-2.0 | 2019-03-28T05:44:46 | 2019-03-28T05:44:43 | Python | UTF-8 | Python | false | false | 1,944 | py | # Copyright 2018 The Cornac Authors. 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 ... | [
"noreply@github.com"
] | noreply@github.com |
282fca533d0befa45b54592936891daa832163a4 | e3beceba30e78cf05b996136cf43604faa28c9b5 | /models/models.py | b90d8e3da4ec1a14baa814d09851bfd26dbb7db6 | [] | no_license | martinA85/configurateur_odoosh | f8265e3b6f1eb6ecd842f7fafcdf54c622bd2a45 | 13e4f2012affbc96cd025b8c6ff7988f7036d5fc | refs/heads/master | 2021-08-08T03:24:27.740891 | 2017-11-09T13:08:13 | 2017-11-09T13:08:13 | 110,115,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,852 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api, tools
# Herite du model produit pour rajouter un champ configurable
class Product(models.Model):
_inherit = 'product.template'
is_configurable = fields.Boolean(string="Configurable", index=True, default=False)
variant_ids = fields.Many2many('configura... | [
"allimonier.martin@gmail.com"
] | allimonier.martin@gmail.com |
b79c47eaee42796a91d6a9ce85a5de8de9c3289f | 8771fe6218b0e0a24545c55763da30ea71996373 | /todo/forms.py | dfa517c654ca54ef5c0bb664335caa06182e0346 | [] | no_license | tonysyu/Django-Todo | 3d828cc2038e5c053f58d5ce214feb3d235e59d2 | 065bf933c90945909e4a9dc62b72f097fe6714c7 | refs/heads/master | 2020-09-16T04:09:09.061222 | 2019-11-23T16:12:00 | 2019-11-23T16:12:00 | 223,648,498 | 0 | 0 | null | 2019-11-23T20:26:39 | 2019-11-23T20:26:39 | null | UTF-8 | Python | false | false | 817 | py | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Submit
from .models import UserInput
class UserForm(forms.ModelForm):
class Meta:
model = UserInput
fields = ['first_name', 'last_name', 'email']
#first_name = forms.CharField(label='Fir... | [
"jwstiff8@gmail.com"
] | jwstiff8@gmail.com |
491f178f5f9095a4e7bf746d47d7e5e09db5a77e | 1808c9393399e0281d3a3a00de62e509e08af1b6 | /week-04/day-3/Exercise_9/new_cows_bulls_test.py | d7a457ed113ccb64f5fb0d46a37f13ac67b58222 | [] | no_license | green-fox-academy/ilcsikbalazs | bf99c40bf3b4f147ba0f54b342040564706ccfcd | 653f7016c6272f49007fbf194462c30624c11a8a | refs/heads/master | 2021-06-21T17:46:13.280598 | 2017-07-10T07:53:47 | 2017-07-10T07:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | import unittest
from cows_bulls import CAB
class Test_CAB(unittest.TestCase):
def test_randomizer(self):
game = CAB()
game.randomizer()
self.assertEquals(len(game.randomizer()), 4)
def test_guess(self):
game = CAB()
game.randomizer()
game.guess(5)
self.a... | [
"ilcsik.balazs@gmail.com"
] | ilcsik.balazs@gmail.com |
f8192c236ddd16accd3510e8f2d18904b2be8557 | 02b56f1498dc718cb9d5ff17ddf359a846116435 | /3. 장고 Views/askcompany/askcompany/urls.py | 1075977a1a05b419b013bb16f24d118e6b5c415e | [] | no_license | tomy9729/Start_Django_Complete_with_React_classic | 370be24eee6487bcf25e2e41876a3967c2ce77aa | 34855c7179388ea7a8ecd4f360eb6e5decc7489c | refs/heads/main | 2023-06-14T04:14:05.505548 | 2021-07-15T12:00:03 | 2021-07-15T12:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | #askcompany/urls.py
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.views.generic import TemplateView,RedirectView
urlpatterns = [
#path('',TemplateView.as_view(template_name='root.html'), nam... | [
"noreply@github.com"
] | noreply@github.com |
b5cc99015cfca120ef7db691c603f0ff2b8b7d10 | 92f55fe6bb763b4d7e7c8ec43b5fbd1af0f42c36 | /pages/Login_Page.py | 9fa7ee7c060d8d9cae98b65f038a1e60144689e7 | [] | no_license | hongbaby/webcode | 5da330cbfbb043013a42e1e1695a6d3fd30658f1 | 0875ba4218f0f0a7386cf6e5aec8f44b9b7ad7aa | refs/heads/master | 2021-01-12T18:09:52.198993 | 2016-10-20T10:06:57 | 2016-10-20T10:06:57 | 71,338,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from pages.pagebase import PageBase
class LoginPage(PageBase):
USERNAME_ID = "username"
PASSWORD_ID = "password"
LOGIN_BUTTON_XPATH = "//button[contains(.,'Sign In')]"
def __init__(self, browser):
PageBase.__init__(self, browser)
self.url = "http://qa.englishtown.com/partner/englishce... | [
"Kerry.Qiu@EF.com"
] | Kerry.Qiu@EF.com |
fd35712703b4a0e5f2a72b2cdc1b019dc6d36c64 | 6969bc9a39443bf15d34d8deb6a780d145ca3420 | /src/run_classifier_source.py | d2590ebaedfb982d867f2b06226d801a4027bf46 | [] | no_license | GuanMetthew/RFC-BERT | 8d6a2b1afc032ed4e28b8872e05bbcdfeecab6a5 | ea488692da6092df298506b8b87799f762d4ad55 | refs/heads/master | 2022-04-09T14:06:41.451989 | 2020-03-18T06:44:22 | 2020-03-18T06:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,208 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"shoubin@iscas.ac.cn"
] | shoubin@iscas.ac.cn |
2e4679bef28454762c28ac87c8c32de8f6a2dcc6 | a4c8b42ddf44a597603ce2e27a14e8fd2c55fc67 | /NN.py | 4741d322e038c274229bd6fb2d74d1f5fa9ba00f | [] | no_license | lalsumait/NEST | eab6c2db732dcb0abc3ebb6a65538e2445d2eea5 | 51001f0155b37ea0c57019eb8156c6b766dff5c4 | refs/heads/master | 2020-09-20T18:09:20.058763 | 2019-09-12T16:03:39 | 2019-09-12T16:03:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | import math
import tensorflow as tf
def weight(name, shape, init='he'):
assert init == 'he' and len(shape) == 2
var = tf.get_variable(name, shape, initializer=tf.random_normal_initializer(stddev=math.sqrt(2.0 / shape[0])))
tf.add_to_collection('l2', tf.nn.l2_loss(var))
return var
def bias(name, dim, initial_valu... | [
"mliu60@illinois.edu"
] | mliu60@illinois.edu |
1c6a029683af969af9e6686df9c21e1d0165a4b2 | 5e3ebc83bc3fe2f85c34563689b82b1fc8b93a04 | /google/ads/googleads/v5/enums/types/account_budget_proposal_status.py | 775b7b599ba465c2c0fdc70efefd98eefd7eb098 | [
"Apache-2.0"
] | permissive | pdsing/google-ads-python | 0ce70227cd6bb13a25cd13de0ca05c2636279ecd | ee2c059498d5679a0d1d9011f3795324439fad7c | refs/heads/master | 2023-05-04T18:39:57.412453 | 2021-05-21T16:38:17 | 2021-05-21T16:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | noreply@github.com |
1acc12e245da63d874d73dd57b4b58c249de4487 | bb877e5744699d46f2c1b45ed0feb0b638185806 | /project/pages/models.py | f905628cadb93c378e2d85f9be2288a6ae224d60 | [] | no_license | ammaralmansor/test | 91d34843508abbe40bf812dbef018e8732b6cc09 | 9526ad59db3bd32aec67441f56fc2487cf705202 | refs/heads/main | 2023-03-30T13:10:30.395843 | 2021-04-01T11:35:39 | 2021-04-01T11:35:39 | 353,618,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | from django.db import models
from django.utils import timezone
import datetime as dt
# Create your models here.
class Laptop(models.Model):
company_list = [
('asus', 'asus'),
('lg', 'lg'),
('toshiba', 'toshiba'),
('acer', 'acer'),
('dell', 'dell'),
]
company = mode... | [
"ammarend@hotmail.com"
] | ammarend@hotmail.com |
48b78b754e439112fd0edbe53a2f1921e547ce3c | 136a379de74b2a28782cd0e2fb04da99dfabdf86 | /File-Handling/Exercise.py | 8bd12e20853e1bf33850acafdf5a5adf5211b4c0 | [] | no_license | mironmiron3/SoftUni-Python-Advanced | eb6c077c3b94e0381a82ed3b4abb26f1098dec82 | c7ac896a8fcc1f13a09f4c5573bd183d788a3157 | refs/heads/main | 2023-07-09T23:00:18.404835 | 2021-08-24T14:05:21 | 2021-08-24T14:05:21 | 399,486,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | file = open("example.txt")
content1 = file.readline()
content2 = file.readline()
#print(content1)
print(content2) | [
"noreply@github.com"
] | noreply@github.com |
6b9810de0500f330dc7287b1f9411c40fcb595b6 | 9d939a4909a75a268e8d4dfd18a0da7fbbae4b0a | /astropy/coordinates/tests/test_velocity_corrs.py | e43e1f05ca508c092480425daf991e1ded97656c | [
"BSD-3-Clause"
] | permissive | aboucaud/astropy | 023db2dea40bc03bb76b4a7a85f93f6a5064dd0d | cb3227199053440555ad7a92842f5e0fa9a2d3db | refs/heads/master | 2020-12-14T09:52:55.026630 | 2017-06-26T15:30:19 | 2017-06-26T15:30:19 | 95,464,994 | 0 | 0 | null | 2017-06-26T16:07:50 | 2017-06-26T16:07:50 | null | UTF-8 | Python | false | false | 16,192 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import pytest
import numpy as np
from ...tests.helper import assert_quantity_allclose
from ... import units as u
from ...time import Time
from .. import EarthLocation, SkyCoord, Angle
from ..sites import get_... | [
"erik.tollerud@gmail.com"
] | erik.tollerud@gmail.com |
75b6fc597f05b1daf33f6e896b2c8f21d78bf84b | 13cb85a7dced6d23e927a4c76a3999d4545faac0 | /our_controller/dns_responder.py | fe2cbd8b0bc383b69d6a5974cad729fd4077ae03 | [] | no_license | npancha2/sigcomm2013 | 2cc2bdfff069417da13dd2358d7fb5f05e6ac03a | f665e9619f3f4512104c2017269c9b0dabc367c3 | refs/heads/master | 2021-01-18T18:45:14.982837 | 2013-12-06T13:27:59 | 2013-12-06T13:27:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,760 | py | # Copyright 2011,2012 James McCauley
# Copyright 2008 (C) Nicira, Inc.
# Copyright (c) 2013 Felician Nemeth
#
# This file is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (... | [
"nemethf@tmit.bme.hu"
] | nemethf@tmit.bme.hu |
810af9acd051bb92282777ed5159e2d3bea725ea | 471b5d4df7c92af540c3d348594cc6ea98d65fed | /dojo_python/flask/survey/survey.py | d3be0e91dea895719a61bdd25aa6ec76be766ca5 | [] | no_license | samuellly/dojo_assignment_file | 929c6d747077b47b35179f190075b1d9a54e257c | 37363982238fa7591a139a3af9beb20a8e165997 | refs/heads/master | 2021-01-13T05:30:02.462066 | 2017-05-20T00:27:47 | 2017-05-20T00:27:47 | 80,334,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from flask import Flask, render_template, request, redirect
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/result', methods=['POST'])
def result():
print ("Info received!")
return render_template('result.html', name = request.form['name'], loca... | [
"gjqorgus900327@gmail.com"
] | gjqorgus900327@gmail.com |
5fa00a58a005c04c9f6222df1c9d42933427df8f | 0f7e764196ef276c039344cf338e90ae80a9a306 | /lpthw/ex31.py | f4ee8e90b47b88e81849b477ac0f15362a58eff1 | [] | no_license | Echocruise/learn_python | d126f29c46c434d0366303862135a10594854904 | 87000c5a957604f039307b0f7543b891e75246bd | refs/heads/master | 2020-05-03T22:15:07.287975 | 2019-09-03T03:15:34 | 2019-09-03T03:15:34 | 178,840,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | print("""You enter a dark room with two doors.
Do you go throught door #1 or door #2?""")
door = input(">")
if door == "1":
print("There's a giant bear here eating a cheese cake.")
print("What do you do?")
print("1. Take the cake.")
print("2. Scream at the bear.")
bear = input(">")
if bear == ... | [
"xiask2018@mt.nai.edu.cn"
] | xiask2018@mt.nai.edu.cn |
994adf6471d11bcc040a8baa64ce98a68511783c | 927cb077ef0383c578c296d6729091b787a1a86e | /example.py | 56dfc44e9a2aa7e3bc30aa7c9c48564e2c57ae9c | [] | no_license | grgsrs/ncss-2020-minimax | 8c46174842b73f9fba4211b1a6f4e9287e8103b4 | 70fb95fe2139ace734a603b5cf8ba76a06b8f035 | refs/heads/master | 2020-12-03T23:09:07.363999 | 2020-01-06T22:39:03 | 2020-01-06T22:39:03 | 231,517,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py |
MAX_DEPTH = 3
def evaluate(board):
"""Return a value that is higher if the board is better for the 'O' player or lower otherwise."""
return board.count('O') - board.count('X')
| [
"grgsrs@users.noreply.github.com"
] | grgsrs@users.noreply.github.com |
a087068e50dfbf33e5bca4c5c4c253f7e49c36c2 | 1fc5e01cc637d0fa3fd5353a279aa343e23d7980 | /fresh_shop/user/urls.py | 5c2b0d0c055ac99623cf4f609351a438e40c267d | [] | no_license | yaohuanLuo/fresh_shop | 5bd246469151f7cbf2d160708c91cfff0eed90bb | bb84c00bcc27f81d7cc7766334a394383ac7ffa4 | refs/heads/master | 2020-04-17T20:43:49.810746 | 2019-01-22T03:12:44 | 2019-01-22T03:12:44 | 166,918,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | from django.urls import path
from user import views
urlpatterns = [
# 注册
path('register/', views.register, name='register'),
# 登录
path('login/', views.login, name='login'),
# 退出
path('logout/', views.logout, name='logout'),
# 收货地址
path('user_site/', views.user_site, name='user_site'),... | [
"luoyaohuan@MacBook-Pro.local"
] | luoyaohuan@MacBook-Pro.local |
25216bbe52423b3313cc9988c30f97180c2163ec | eb1b442b268a2f7846ec8b26e9c84421df8ef57d | /core/protocols/transport/udp.py | 9aee4b1341d1c72fe32d281ec495c2fe7cdf42e5 | [
"MIT"
] | permissive | CarboniDavide/rtscan | 8729a8dea06e61599931716638f4830623b520ad | 3fe447235d0534a7d66e7d6f5e8b9c00d8832b4f | refs/heads/main | 2023-02-16T21:57:26.367718 | 2021-01-15T23:11:21 | 2021-01-15T23:11:21 | 309,570,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | import socket
from struct import *
HEADER_LENGTH = 8
class UDPHeader:
def __init__(self, value = None):
self.__value = value
self.__unpacked = unpack('!HHHH', value)
def __getitem__(self, key):
return self.__value[key]
def __repr__(self):
return self.__value
... | [
"31761218+CarboniDavide@users.noreply.github.com"
] | 31761218+CarboniDavide@users.noreply.github.com |
3ec75456e5cf113904ab7c17e0059d937c023644 | 373939995a89ed84a26653bf4b11e02b9e060b3d | /20210503PythonAdvanced/05-contextmanager/ctx01.py | 48cab9fb6ae9619ae2f1d2d1236c1f7fab38fe4e | [
"MIT"
] | permissive | AuroraBoreas/pypj_sonic_pc | 28406f1951280b9349a25fdbd0ad02bae8adc316 | 3016ed173d912e2ffa08c8581c98a5932c486467 | refs/heads/master | 2023-09-01T15:04:36.246303 | 2023-08-25T01:05:28 | 2023-08-25T01:05:28 | 279,821,926 | 0 | 0 | MIT | 2022-06-22T04:52:25 | 2020-07-15T09:15:32 | Python | UTF-8 | Python | false | false | 702 | py | "#Python is a protocol orientated lang; every top-level function has a corresponding dunder method implemented;"
import sqlite3
with sqlite3.connect('test.db') as conn:
cur = conn.cursor()
cur.execute('CREATE TABLE points(x int, y int);')
cur.execute('INSERT INTO points(x, y) VALUES(1, 1);')
... | [
"noreply@github.com"
] | noreply@github.com |
26e49b4ccd30170f065ba86060a8993ffe9dc249 | 7ebde4e79f33057df38f22b14cf1932da45884b5 | /Python/Binary Tree Level Order Traversal.py | 872307e105fde98c4a68691f423f92aa998762d3 | [] | no_license | xiaochenai/leetCode | 1400fae8c3033fee71ba0f7ea36acf6555323403 | acca8ed2e9628787468eb15b27f4bd552ee2bffd | refs/heads/master | 2021-01-20T00:58:55.956367 | 2014-10-29T02:44:31 | 2014-10-29T02:44:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
# For example:
# Given binary tree {3,9,20,#,#,15,7},
# 3
# / \
# 9 20
# / \
# 15 7
# return its level order traversal as:
# [
# [3],
# [9,20],
# [15,7]
# ]
# Definition f... | [
"xzl0036@auburn.edu"
] | xzl0036@auburn.edu |
b029dde505319423c857d3ae2b468e2b48f9ea6d | 543286f4fdefe79bd149ff6e103a2ea5049f2cf4 | /Exercicios&cursos/eXcript/Aula 18 - Propriedade Sticky.py | 505b6762f67eaf3c58b626f5f1c71a0c1459ee06 | [] | no_license | antonioleitebr1968/Estudos-e-Projetos-Python | fdb0d332cc4f12634b75984bf019ecb314193cc6 | 9c9b20f1c6eabb086b60e3ba1b58132552a84ea6 | refs/heads/master | 2022-04-01T20:03:12.906373 | 2020-02-13T16:20:51 | 2020-02-13T16:20:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #width == largura
#height == altura
from tkinter import *
janela = Tk()
lb1 = Label(janela, text="ESPAÇO", width=15, height=3, bg="blue")
lbHORIZONTAL = Label(janela, text="HORIZONTAL", bg="yellow")
lbVERTICAL = Label(janela, text="VERTICAL", bg="yellow")
lb1.grid(row=0, column=0)
lbHORIZONTAL.grid(row=1, column=0,... | [
"progmatheusmorais@gmail.com"
] | progmatheusmorais@gmail.com |
639dc5b2c9f1bd0d67a803d28d39a300043f0485 | 23d50b7ea5baa0d42ca54b7e8808b6e020a84b62 | /unit_test_online.py | c65282d0474e95b9fc4c41cc7ee8a4d5d9b7b68a | [] | no_license | seanny1986/quarotor_study | 6da62581c3839cbfe1d7de5eacad96590d18c3ab | 418858ea6e9f19a5ae4fa70ecd1355c3418779fd | refs/heads/master | 2021-02-04T16:57:14.273678 | 2020-03-24T09:25:36 | 2020-03-24T09:25:36 | 243,688,968 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,666 | py | import matplotlib.pyplot as plt
import numpy as np
import pid
import modules as mod
import offline_agents as offag
import online_agents as onag
import training_loops as tl
import utilities as utils
import gym
import gym_aero
import os
import torch
#####################################################################... | [
"s3251350@student.rmit.edu.au"
] | s3251350@student.rmit.edu.au |
245348f7afd6ca9b11367539323a51ce53d4350e | 6ee4201bc960d0480c45bc175cd4b51037695f7f | /Runs_dir_lammps/input file for the first run - min/epon8xdetda4_noPBC/conv_xyz_to_dat.py | 6990abc4ca01c5e7218287e1e8b63a1a6a0278d6 | [] | no_license | shirayr/Simulation-Of-Atoms | b6885722353d555eb38378aeaeb78a3e78e9e300 | 75a185850511fefaa78b56910ec8bbd94e32fd73 | refs/heads/master | 2020-08-17T10:58:21.954645 | 2020-05-10T01:43:30 | 2020-05-10T01:43:30 | 215,655,795 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | import sys
typedict = {
"C": 1,
"H": 2,
"O": 3,
"N": 4
}
fp = open("epon8xdetda4_noPBC.xyz","r")
text=fp.read()
text_list = text.split("\n")
index=0
atom_type=0
atom_x=0
atom_y=0
atom_z=0
num_atoms=0
dat_file="#epon2 and detda molecules\n"
text_list = [x for x in text_list if x != ""]
num_atoms=int(te... | [
"shirushalmi@gmail.com"
] | shirushalmi@gmail.com |
304e5ebefb872ffaf9aa4b0430aeb7979d7a99b1 | 7dd229b510ba875730504bd3be3a5abc4a6d27d1 | /physiotherpy/urls.py | 2f076b5de0fd4aa3819b5143c5f79b48c17e81bb | [] | no_license | Mostafa527/3rdVersionPhysiotherapyAPIS | 171c9fb3d87b208b3efe14dc263507ed91a7c370 | db23f01e5fc3718999e219011aa975f951da9810 | refs/heads/master | 2023-08-10T06:25:10.632602 | 2021-07-12T04:11:46 | 2021-07-12T04:11:46 | 383,940,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py |
from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('',include('Accounts.urls')),
path('',include('MyAdmin.urls')),
path('', include('Patient.urls')),
path('', include('Clinic.urls')),
path('', include('Physiotherapist.urls... | [
"mostafakhaled327@yahoo.com"
] | mostafakhaled327@yahoo.com |
98f50a8b1a6712730c4bdd1d891361b2cf0e23b2 | 9c76b21e87704667ee8a0074e9aae5af44b8f5d9 | /day19.py | ee7fd400e8970cf720ea4a21579a3f7946e36558 | [] | no_license | SaiAnvitha-k/Bestenlist | 31ab0dfa7776766a98fc2705754398fb0cb46079 | 9a90a5f88754d21881151603ed4fb5a3f3c52c8d | refs/heads/main | 2023-06-20T05:26:03.830538 | 2021-07-17T06:42:19 | 2021-07-17T06:42:19 | 376,538,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | #create an excel with data of student database and add values, read excel file , add data into db
import mysql.connector
import xlrd
import openpyxl
import pandas
server = 'XXXXX'
db = 'XXXXXdb'
path = "student.xlsx"
wb_obj = openpyxl.load_workbook(path)
sheet_obj = wb_obj.active
cell_obj = sheet_obj.cell(row=5,column=... | [
"noreply@github.com"
] | noreply@github.com |
b1145e80c82fc3eacb5608ce2d2236d3884e7b51 | bd9090f8e394dd2bea8418e81d8ec25e3fbe24e9 | /exercise/ex20.py | 0a2ced19d63567b360e2c0f95050f4463c91a5a3 | [] | no_license | xinbinhuang/learn-python3-the-hard-way | f108b1fe441a03140e363a7a8470a11709498b80 | de3095f2287f04bc710fe657d69ae7a63e8ade6a | refs/heads/master | 2020-04-08T22:02:15.039597 | 2018-12-06T18:52:54 | 2018-12-06T18:52:54 | 159,768,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from sys import argv
script, input_file = argv
def print_all(f):
print(f.read())
def rewind(f):
f.seek(0)
def print_a_line(line_count, f):
print(line_count, f.readline())
current_file = open(input_file)
print("Frist let's print the whole file:\n")
print_all(current_file)
print("Now let's rewind,... | [
"xbhuang93@hotmail.com"
] | xbhuang93@hotmail.com |
502d9190cab58f6d069d44d54fb6d2e1eda3cf9e | a3181f8b0c3c22f9a24ac7e688502296b1f39386 | /finmarketpy/curve/fxforwardscurve.py | 0615f3ba2d1a6b842962d0fa5512433ec4b7de31 | [
"Apache-2.0"
] | permissive | pyzeon/finmarketpy | 656ef1ebcd2b0dd2247681e10685675deb8ce118 | f3dcd7a3b8cbdc91ac30e1e2e498e3f0acb3b097 | refs/heads/master | 2023-04-04T04:51:44.114098 | 2021-04-13T15:06:01 | 2021-04-13T15:06:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,129 | py | __author__ = 'saeedamen' # Saeed Amen
#
# Copyright 2016-2020 Cuemacro - https://www.cuemacro.com / @cuemacro
#
# 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/LI... | [
"saeedamen@hotmail.com"
] | saeedamen@hotmail.com |
9caf69336a7ca6d21906e124db6cf6537075c9c7 | 44a49267bd6d0b43e6891d5a4acb23f87edfa62c | /getCode.py | a1e8d0879ef36aeef69d84739ad8c34924a37a94 | [] | no_license | EchoCxw/getCode | 618dde90e75223a7fc072a72c447423077746908 | a1dcfc3ef4aeea7a624ee4d7bc8e1b48ba2f19eb | refs/heads/master | 2020-03-18T18:53:39.541030 | 2018-05-28T06:55:50 | 2018-05-28T06:55:50 | 135,121,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" get creditcode """
__author__ = '陈晓炜'
import openpyxl
from urllib import request
import urllib.parse
import json
import time
def rwExcel(readpath, writepath):
wb = openpyxl.load_workbook(readpath)
sheet = wb.worksheets[1] # 证照信息页
start_row = 5 # 起始行
... | [
"1012216781@qq.com"
] | 1012216781@qq.com |
07c81e48ef1e0240cf2c4b5ca63eec342824fd44 | 846e8886bbe7e8c3cdee4ba505c2217f1da1d803 | /python/catkin/test_results.py | b3471991e33c50440122cc729b6db58321bb9dd9 | [] | no_license | jamuraa/catkin | ef315aa644459a73443d2a8d74e6e8c0954b47f3 | 91b133d4c2048af097fdea270a0a19c57b422ad0 | refs/heads/master | 2020-11-30T13:03:20.220219 | 2012-10-02T18:54:56 | 2012-10-02T18:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | from __future__ import print_function
import os
from xml.etree.ElementTree import ElementTree
def read_junit(filename):
tree = ElementTree()
root = tree.parse(filename)
num_tests = int(root.attrib['tests'])
num_errors = int(root.attrib['errors'])
num_failures = int(root.attrib['failures'])
ret... | [
"dthomas@willowgarage.com"
] | dthomas@willowgarage.com |
778036b5899a0d97daf8f35290eea08961d836fa | d481b91c942564d62d7765929d9b148cf5064b88 | /big_angle_radar_reporter.py | 4737f5231e0e11a8c26337dcf35aed67052e5a36 | [] | no_license | chenweigao/radar_udp | a84067adca197249973f786bcea7174278150241 | b7c14a6bcab2ac93724798c85ee69f9d36532c77 | refs/heads/master | 2020-05-01T17:46:13.841823 | 2019-04-09T07:17:24 | 2019-04-09T07:17:24 | 177,608,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | import struct
import collections
import socket
import pickle
import sys
class Reporter:
def __init__(self, ip, port):
self.sock=socket.socket()
self.sock.connect((ip, port))
def report(self, data: dict):
if type(data)!=dict:
raise TypeError('require dict')
self.soc... | [
"297859260@qq.com"
] | 297859260@qq.com |
b502b954a48c991dd1f9c2e937ddcf376a9921bb | 21ef516c20961b9a29148258552cf1072c93715c | /lib/Galois/lonestardist/experimental/on_demand/pagerank_pull/gen_cuda.py | 8596f3fee5001a28b8a61c91f368dedda55177d7 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | rovinski/LSOracle | b6426c3e45129faa4c41e0f569c323d9d78a9643 | 0a3f08fb9925e45fa912799d0ee96513c02005e1 | refs/heads/master | 2023-06-08T05:35:28.164760 | 2021-07-02T00:46:41 | 2021-07-02T00:46:41 | 382,189,413 | 0 | 0 | MIT | 2021-07-02T00:33:59 | 2021-07-02T00:33:59 | null | UTF-8 | Python | false | false | 15,925 | py | from gg.ast import *
from gg.lib.graph import Graph
from gg.lib.wl import Worklist
from gg.ast.params import GraphParam
import cgen
G = Graph("graph")
WL = Worklist()
ast = Module([
CBlock([cgen.Include("kernels/reduce.cuh", system = False)], parse = False),
CBlock([cgen.Include("gen_cuda.cuh", system = False)], parse ... | [
"scottrtemple@gmail.com"
] | scottrtemple@gmail.com |
6c173948ffd1b8a67bce3a68d009815fc750f195 | 219634e73b1b861177fcd49c3d2fca0cfa00604e | /prev_project/crawl.py | 9e0e13fc4477feac92b913f1efb0701ddc66d3a3 | [
"MIT"
] | permissive | dongkoull/BigData-project | 10e2ee88c62981feffc496d309fd8140b8bc4cb4 | f6cd9b873a1ce7b1133f653d9b8f0e08c4ffd87d | refs/heads/master | 2020-03-31T08:23:05.035223 | 2018-10-05T05:59:07 | 2018-10-05T05:59:07 | 152,054,514 | 0 | 0 | MIT | 2020-12-13T08:29:27 | 2018-10-08T09:37:49 | Jupyter Notebook | UTF-8 | Python | false | false | 80 | py | '''
크롤링 공간
Naver, Daum, Blog, News
'''
from bs4 import BeautifulSoup
s | [
"cutz309@gmail.com"
] | cutz309@gmail.com |
53f3752d95920f8b47df0ede0435cce5744a6e8d | 68c949c5deb0633aa477ec84785dc50e7592ce6d | /알고리즘/Find Minimum in Rotated Sorted Array/Find Minimum in Rotated Sorted Array.py | 366590fc26021cba375c46f202be8f7754dfea14 | [] | no_license | wolframhwang/Revengers | 18d580bc88d5d2cdeb637963c147db9372647b42 | 266dd9be38df37c21e7dabc3516e15e753609dfd | refs/heads/main | 2023-08-24T07:57:18.956831 | 2021-10-26T01:31:25 | 2021-10-26T01:31:25 | 386,309,793 | 4 | 5 | null | 2021-07-23T11:42:27 | 2021-07-15T13:59:41 | Swift | UTF-8 | Python | false | false | 334 | py | class Solution:
def findMin(self, nums: List[int]) -> int:
left, right = 0, len(nums) - 1
while nums[left] > nums[right]:
middle = (left + right) // 2
if nums[middle] < nums[right]:
right = middle
else:
left = middle + 1
ret... | [
"biiregrey2@gmail.com"
] | biiregrey2@gmail.com |
8deb48b3f88206377681e1cd09c7696744bd9c56 | 8aeb9e08c877a106d51ad1323d665d1da938fd35 | /report/views.py | 408763f37e18906932bcd59d32b00b75c4856058 | [] | no_license | liweitiao/DataReport | c2437fc6b9573472047d2ca563b7d7d68ab9db13 | a3822a11497d37500ec149b2fa11f9a7d59cc333 | refs/heads/main | 2023-03-08T03:41:13.731486 | 2021-02-24T01:51:37 | 2021-02-24T01:51:37 | 330,048,506 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180,929 | py | from django.shortcuts import render
import json, types
import datetime, time
import os, math
import xlrd
# Create your views here.
from django.http import HttpResponse, HttpResponseBadRequest
from django.db import connections
from django.db import connection
from django.http import JsonResponse
from django.views.decor... | [
"5136533+liweitiao@user.noreply.gitee.com"
] | 5136533+liweitiao@user.noreply.gitee.com |
134d2565fe91faa09476e64f75b387fb0d1da802 | 47713a1f9e0b4a3fd16348121ed77a57628f3c0a | /二叉搜索树的后序遍历.py | 47deb2b86c7fd3cb9847ce131a8b9bda9a760f36 | [] | no_license | geditzh/offer | 655c040d8425094ee26311f658541d97fd74df97 | bff6048099d68f639c61e767e250fe2366560099 | refs/heads/master | 2020-05-24T08:19:05.615035 | 2020-02-17T11:09:58 | 2020-02-17T11:09:58 | 187,181,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | class Solution:
def VerifySquenceOfBST(self, sequence):
# write code here
if not sequence:
print ('False')
root = sequence[-1]
i = 0
while i < len(sequence)-1:
if sequence[i] > root:
break
i += 1
j = i
while ... | [
"455209990@qq.com"
] | 455209990@qq.com |
73ff3773f9ad867bef9dd786b1b5ade13ff46b64 | d2187c73c9b50ae59528f90ebcdd127d19065dd9 | /accounts/forms.py | f80c2995c84b71b86dd4e08311a12e7858a08043 | [] | no_license | Nayan-Shrma/blog | 3a894d66ba45916abf55b90b812850e8b5252650 | 2c940cfc6e25593520d33ca6e0bf6e863c247707 | refs/heads/master | 2021-09-04T02:12:49.040095 | 2018-01-14T13:43:00 | 2018-01-14T13:43:00 | 116,049,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | from django import forms
from django.contrib.auth import (
authenticate,
get_user_model,
login,
logout,
)
User = get_user_model()
class UserLoginForm(forms.Form):
username = forms.CharField()
password = forms.CharField(widget = forms.PasswordInput)
def clean(self,*args,**kwargs):
username = self.cleaned_da... | [
"nayanshrma84@gmail.com"
] | nayanshrma84@gmail.com |
bf89203155ddd948ec039834228089bed860b0bd | 7939f68e0ee8917245e20afaa7bfdb7eb50bea2d | /vit/formatter/recur_duration.py | ab1404924b7f0fee1bdde83bbae9dfe27c2a5733 | [
"MIT"
] | permissive | josetaas/vit | cfc8c8e971ac464caa287da338b9ebe91339e5f7 | 6f173ee4a40bf92c6ef46520e533589a1b75b2e9 | refs/heads/2.x | 2023-01-24T20:35:03.824629 | 2020-10-14T23:13:37 | 2020-10-14T23:13:37 | 318,752,069 | 0 | 0 | MIT | 2020-12-05T09:45:47 | 2020-12-05T09:45:47 | null | UTF-8 | Python | false | false | 76 | py | from vit.formatter.recur import Recur
class RecurDuration(Recur):
pass
| [
"chad@apartmentlines.com"
] | chad@apartmentlines.com |
7e316ae7abf0468f7bfdb463874b54ce0596675f | 85df9f835ca6850b58ed42d9fd2bb27f32c70e7f | /data/db_session.py | 95e1312f4cc9e0d599d5b508789696abb311467a | [] | no_license | danilakom/project-3 | c0fdd7ebfc80420ce3c62ac1782d1dede297a31d | 61f18d9b8a6c871f1bba1b5ac6013374110ed6a5 | refs/heads/master | 2022-06-25T22:38:07.702816 | 2020-05-03T06:30:42 | 2020-05-03T06:30:42 | 255,054,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | import sqlalchemy as sa
import sqlalchemy.orm as orm
from sqlalchemy.orm import Session
import sqlalchemy.ext.declarative as dec
SqlAlchemyBase = dec.declarative_base()
__factory = None
def global_init(db_file):
global __factory
if __factory:
return
if not db_file or not db_file.strip():
... | [
"danila.komarov@gmail.com"
] | danila.komarov@gmail.com |
2056295116744d61aff23b37cb126feb78904a4e | 863a56f99b4668211b96d66e3d2698196e46f3b1 | /prng/cellular_automata/rule198/run.py | 309e1673dd75c013f3267dff98a2899f99f68d8b | [
"LicenseRef-scancode-public-domain"
] | permissive | atoponce/scripts | 15b958463d6e788ad6f7785d2614ddb372fc69a7 | b2c8fd2a0b68e83562570c315f4c9596ee546011 | refs/heads/master | 2023-04-28T05:47:07.918556 | 2023-04-15T15:02:05 | 2023-04-15T15:02:05 | 8,612,257 | 22 | 4 | null | 2016-12-22T19:21:28 | 2013-03-06T20:18:33 | Shell | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/python3
#seed = '00000000000000000100000000000000000' # textbook initial state
seed = '01011111110010010011010001100100010' # random initial state
bits = len(seed)
for n in range(5000):
print(int(seed, 2)/2**bits)
state = ''
p, q, r = -1, 0, 1
for n in range(bits): # there must be a more ef... | [
"aaron.toponce@gmail.com"
] | aaron.toponce@gmail.com |
2d08cc954f5cbcb7a7977834812f39c5c2b19fa0 | 19844d18050ed937537e9cbb35cdb11416f92d95 | /features/steps/migration_dir.py | 6f1fa6dce77db1761ab3bcf0a5093a5f46de77d3 | [
"PostgreSQL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leokhoa/pgmigrate | 72ce63af89cc23f86acedfecbe4bc56c44ecb9f0 | c05d66574fd88bc3afc055af2e53ddbec6ae4ad7 | refs/heads/master | 2021-01-13T05:02:11.676917 | 2017-02-06T10:00:04 | 2017-02-06T10:00:04 | 81,189,052 | 1 | 0 | null | 2017-02-07T09:12:57 | 2017-02-07T09:12:57 | null | UTF-8 | Python | false | false | 359 | py | import os
import shutil
import tempfile
from behave import given
@given('migration dir')
def step_impl(context):
try:
shutil.rmtree(context.migr_dir)
except Exception:
pass
context.migr_dir = tempfile.mkdtemp()
os.mkdir(os.path.join(context.migr_dir, 'migrations'))
os.mkdir(os.pat... | [
"secwall@yandex-team.ru"
] | secwall@yandex-team.ru |
a68f4e20d04cef1af48373ec5b3e4920888cf0d0 | 02bc354e0b3b922c75fa79d5560521c9d79878a6 | /scripts/train_svm.py | e19c507861d25085dceb334ea218fd9efa525105 | [] | no_license | SoyChae/11775-hw2_code | 02fa392ec32a381dbcb385f5712ef9d3d1835d9a | 50d7b87ad3bda43070f9f618f9f8e2b60e7bfa09 | refs/heads/master | 2022-07-30T21:37:39.079215 | 2020-05-19T02:57:40 | 2020-05-19T02:57:40 | 265,122,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | #!/bin/python
import numpy as np
import os
import glob
#from sklearn.svm.classes import SVC
#from sklearn.svm import linear_model
from sklearn.metrics import accuracy_score
from sklearn.svm import SVC
from sklearn.model_selection import GridSearchCV, train_test_split
import pickle
import sys
# Performs K-means cluste... | [
"noreply@github.com"
] | noreply@github.com |
7c89b5a70eaa41d0b10e26ac6461585729c21d14 | 05b80d92bb2efec76f898c527cc803f931031266 | /Blind 75/Programs/Longest Repeating Character Replacement.py | 1d5251bb53822143571115ed0129d2c93426ce21 | [] | no_license | PriyankaKhire/ProgrammingPracticePython | b5a6af118f3d4ec19de6fcccb7933d84f7522d1a | 8dd152413dce2df66957363ff85f0f4cefa836e8 | refs/heads/master | 2022-08-28T00:44:34.595282 | 2022-08-12T19:08:32 | 2022-08-12T19:08:32 | 91,215,578 | 18 | 11 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | # Longest Repeating Character Replacement
# https://leetcode.com/problems/longest-repeating-character-replacement/
# Solution understood from.
# https://leetcode.com/problems/longest-repeating-character-replacement/discuss/358879/Java-Solution-Explained-and-Easy-to-Understand-for-Interviews
'''
formula: (length of sub... | [
"priyanka.khire@gmail.com"
] | priyanka.khire@gmail.com |
5d83827f254b5a3f1774c2864e9b8a7e39752069 | 326b3f64bcaf0ed63e1165068df7c26e5a6d37a4 | /v1.1/playground/13_make_tick_bite_risk_map_logscale.py | d52b8d6577602d9d04df2a576db2bbcac7eb133c | [] | no_license | Irene-GM/04_Risk_Model | 4f9ded55fdd538ba11a78d04559440ae713ae807 | 7e8873c1f1bbfbb1bc552e417e91e77a1d4a23e0 | refs/heads/master | 2022-04-01T21:37:54.922046 | 2020-01-29T07:11:39 | 2020-01-29T07:11:39 | 147,234,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,792 | py | import os
import itertools
from osgeo import gdal, osr
import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
from cartopy.feature import NaturalEarthFeature
import cartopy.feature as cfeature
from cartopy.io import shapereader
import matplotlib
import matplotlib.patheffects as PathEffects
import... | [
"garciamarti.ds@gmail.com"
] | garciamarti.ds@gmail.com |
6f62aac4b432ea6c0ddfaf845217dc767679d71f | 12d1bcb4bb0a473d163048f1c5ac9eef6389bc24 | /HypothesisTesting/Quiz.py | d386378049509604a12e023d6c89890c25f5779e | [] | no_license | Bharadwaja92/DataScienceProjects | 339795c08c4b631006f1602ec84f3b48b828e538 | 088305387339affa662ac3d88ea5fac2651295b5 | refs/heads/master | 2020-03-29T19:23:58.041782 | 2019-01-29T12:22:03 | 2019-01-29T12:22:03 | 150,261,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | """"""
"""
Which of these is an accurate statement of the Central Limit Theorem?
For a large enough sample size, our sample mean will be sufficiently close to the population mean.
What is a statistical hypothesis test?
A way of quantifying the truth of a statement.
Which of the following describes a Type II error? ... | [
"saibharadwaja92@gmail.com"
] | saibharadwaja92@gmail.com |
dd30cde79c903a9a4cc0e8d17bc1ab0410f84178 | 84322a36b263bd2fbc104745a10e7b915a062202 | /public/images/duu.py | 82a0a26ec4dfe18200061c167762e69420a0d6ee | [
"MIT"
] | permissive | CherryHunter/figures_smedia | 4bfca09a790a2ae1b5144a0053f72faf2cc0924a | 3d9c4c24cc48f8ac55e19330ceb2f82ebee699b6 | refs/heads/master | 2020-04-21T01:32:45.852754 | 2019-03-24T12:16:47 | 2019-03-24T12:16:47 | 169,227,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | import bs4, requests, os, time, mysql.connector, datetime
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
| [
"sayushine@gmail.com"
] | sayushine@gmail.com |
099d6253838867b1dc893127627e2a48cdecbeea | 1710a09ae48bdef3671fc0e4a534d31bada48e5d | /train_tracking.py | 274d9793695574a5b06dd357e850a2f1518386c0 | [
"MIT"
] | permissive | ZCHILLAXY/SPAN | 2d41b5a1c454c23be1adfa252c6e959657bc860e | cd66466cd9d5be6e8b6c8e236f6eee591c475117 | refs/heads/main | 2023-02-23T13:58:26.182444 | 2021-01-26T12:42:48 | 2021-01-26T12:42:48 | 310,874,565 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,439 | py | import argparse
import os
import random
import time
import logging
import pdb
from tqdm import tqdm
import numpy as np
import scipy.io as sio
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torch.optim.lr_scheduler as ... | [
"521178260@qq.com"
] | 521178260@qq.com |
fa3e1cc34610114e9f9c96008d39e2ad0d1f4661 | b9586239c87712c2dd2fa5b10bfb222f94c94820 | /interface.py | 019cfba84e85163861bf838b733accdb9f29e3a2 | [] | no_license | naveensundarg/prover | cea4efafb95649e78e03e28721cd0fdb47ca441b | 5f6a077e9ebd5e008aaec2f33e864b1333df1693 | refs/heads/master | 2023-04-27T01:27:09.151321 | 2023-03-06T22:03:23 | 2023-03-06T22:03:23 | 125,280,727 | 11 | 5 | null | 2023-02-26T04:34:34 | 2018-03-14T22:19:25 | Common Lisp | UTF-8 | Python | false | false | 420 | py | from py4j.java_gateway import JavaGateway
gateway = None
def start():
global gateway
if not (gateway):
gateway = JavaGateway()
def stop():
global gateway
gateway = None
def prove(assumptions, goal):
global gateway
if not gateway:
start()
lst = gateway.newEmptyList()
... | [
"naveensundarg@gmail.com"
] | naveensundarg@gmail.com |
9f7d74a0da6fb26c1796e850dd3354ff8bc5ce5e | 92b659f98c0eba25e05304ff63a37857f8167687 | /ex25.py | 6fd409d6cbff684699eb7a714465f03ab95b1877 | [] | no_license | zdlopez/python-practice | 2dc62598927692254fc95bb460f4a03a4437e104 | 67affc4e6bd901d6e72cab7a64c26346a4d1117a | refs/heads/master | 2020-04-29T02:52:37.058283 | 2015-05-05T00:50:41 | 2015-05-05T00:50:41 | 35,063,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | def break_words(stuff):
words = stuff.split()
return words
def sort_words(words):
return sorted(words)
def print_first_word(words):
word = words.pop(0)
print word
def print_last_word(words):
word = words.pop(-1)
print word
def sort_sentance(sentance):
words = break_words(sentance)
return sort_words(words)
... | [
"zachary.lopez@fivestars.com"
] | zachary.lopez@fivestars.com |
61636d8ab2c557b2a8dcc809a4be1eda0f6764d6 | 297f5898475e805e42b98b28d226e77f919c74ff | /qmlApp/qmlModel.py | 94c9ae021b8b282b5fcffba0bbf035e5823a3f35 | [] | no_license | harry159821/demoQMLPyQt | 273efadb26341c3bce8679c3ae6e285a7c9796e1 | 357c9e04b7669923f7c3c5a1b69ce506865e14d2 | refs/heads/master | 2021-01-18T00:20:23.188559 | 2014-12-15T10:17:37 | 2014-12-15T10:17:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py |
from PyQt5.QtQml import qmlRegisterType
# qmlRegisterSingletonType #, QQmlComponent, QQmlEngine
from model.person import Person
from model.qmlDelegate import QmlDelegate
from model.clan import Clan
from model.slottedModel import SlottedModel
class QmlModel(object):
'''
App's model (of MVC pattern.)
'''
de... | [
"bootch@nc.rr.com"
] | bootch@nc.rr.com |
391ae3cfa5755707e6210bd1fe24b7cb4f41d704 | 64cbd8144e035155a36244fe3b3253e55e193f98 | /multithread/skiplist/skiplist.py | 4c023ecc34b334aa8d760610f8ee5de9a7952ee2 | [
"Python-2.0",
"MIT"
] | permissive | hg-mirrors/pypy_benchmarks | 06383ff1147090e16da187c1ec9cdb3242bd6700 | 10f971751c2ec089fbaf7f64019cc2693224b676 | refs/heads/master | 2023-03-02T10:04:43.962025 | 2021-05-03T14:06:32 | 2021-05-03T14:06:32 | 411,566,990 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,014 | py | # https://github.com/kunigami/blog-examples/tree/master/2012-09-23-skip-list
from common.abstract_threading import (atomic, Future,
set_thread_pool, ThreadPool,
print_abort_info, hint_commit_soon)
import time, threading
import random
threa... | [
"remi.meier@inf.ethz.ch"
] | remi.meier@inf.ethz.ch |
5108140b1afb519480d1f3d24bd3fa4ccf97a750 | f68d7b0a04ffe506ea97dffdcab7a966efc47ff2 | /Python Scripts/Keys.py | 0efa0f1770ab06bd4c86e670d5a70299508fc17f | [] | no_license | wenyuanqiu/ETL-Project | b72cba78e0f54c32bc8b43d197730e972bd4e066 | 63983f4f8897b8aa65241ea808d6edcb50925ef1 | refs/heads/master | 2020-08-12T03:55:58.685392 | 2020-02-12T15:19:38 | 2020-02-12T15:19:38 | 214,684,305 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | yelp_id = 'rdN-s-nQF_WY7ZOW77h2VQ'
yelp_api_key = 'NN6f8X2FSnT6AsWDNvVSOCrWcURPcAmRRS5RQKRwxd9Af7NXclqJBrBdYEC3HEt7_9hErsFA7TiR46_0KMcq7uFOGYGreNYQJyjZQIhJNQ9Cpi2LQENP1ebG_QyiXXYx'
| [
"wenyuanqiu@gmail.com"
] | wenyuanqiu@gmail.com |
7f15626ec126792300fe85de5d95bb00acdf0f8a | 87a04a20e2335eb243628ffe004bc7d8abf21774 | /Core/PCA.py | 331602711991598a92a363a62d8a31e76f19e42b | [] | no_license | jzx5099/MachineLearningAlgorithmsWithPython | 02298e9b946a105afc75da4356cd1c0cff2bd196 | e5ddb47114ae6a923ba90d1d09f6358da48af7f6 | refs/heads/master | 2020-07-14T07:39:36.020580 | 2019-08-29T21:41:11 | 2019-08-29T21:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import numpy as np
import Data as d
class PCA:
def __init__(self, data, k):
self.data = np.array(data)
self.k = k
| [
"34635663+ss892714028@users.noreply.github.com"
] | 34635663+ss892714028@users.noreply.github.com |
946fd49ed7af083f41429c81ef2bb5819af47060 | 9a0a4e1f843d1457c4f466c05c994f3e6ecd842a | /change_transparency.py | 543c49f2aa8d0ef476010ab9f243970f94d0c354 | [] | no_license | sjbrown/steam_jet_blower | 688aa44e43ea8a285ebaf3923473b4a4049b5537 | 5b894354cb60b5d5d6eee74af77140af641580ee | refs/heads/master | 2021-01-10T03:19:21.853486 | 2016-03-18T20:27:49 | 2016-03-18T20:27:49 | 54,229,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | #!/usr/bin/env python
#Import Modules
import pygame
from pygame.locals import *
_cachedOriginals = {}
_cachedCalculatedArrays = {}
#-----------------------------------------------------------------------------
def change_alpha_mult(img, percentAlpha):
global _cachedOriginals
global _cachedCalculatedArrays
if perce... | [
"github@ezide.com"
] | github@ezide.com |
424b07451fa62a2099723cfdaba3778f3e9210e3 | 2a3ff4362b10c9bcc146170a677ea4a1b8250621 | /winograd-news-master/tencent_static/newsspider/items.py | 9c84f26213d79eb3b188d526b41ec34dd7072fc7 | [] | no_license | thusjr/winograd | 285c3bf54a312c77b32f72f47de9f3703db6dd36 | f0597795d3341192527b0ce6e6ee0445d91a638a | refs/heads/master | 2023-02-14T00:00:08.944322 | 2021-01-13T14:13:29 | 2021-01-13T14:13:29 | 329,329,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | """
this is items in scrapy framework
See documentation in:
https://docs.scrapy.org/en/latest/topics/items.html
"""
import scrapy
class NewsspiderItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
"""
NewsspiderItem is the models for scraped items... | [
"songdundunn@163.com"
] | songdundunn@163.com |
9d140a197b7fffcbf899bfa1c4537ae26b0341f6 | 8e6917652789ca61c4a9c49475236a2083c0323c | /tf入门_LSTM.py | f69846da75b27be81a7bbc1c34c4592736bbfbb0 | [] | no_license | Patricksxj/p_scripts | 6d527c085a525cd934a11118df4f9548ff67fac1 | 032b167f66584590e5ead33d26a0777fdd9fa68f | refs/heads/master | 2022-12-22T22:55:17.551512 | 2022-07-17T02:18:58 | 2022-07-17T02:18:58 | 164,180,534 | 2 | 1 | null | 2022-12-08T12:00:59 | 2019-01-05T04:07:05 | Jupyter Notebook | UTF-8 | Python | false | false | 4,366 | py | import os
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import pandas as pd
#convolutional neural networks
print(os.getcwd())
os.chdir('D:/data')
print(os.getcwd())
# set random seed for comparing the two result calculations
tf.set_random_seed(1)
# this is data
mnist = input... | [
"shenxianjun.patrick@gmail.com"
] | shenxianjun.patrick@gmail.com |
3c98f0b484b7ea2f54e0fb6da1b166851050daaf | d15f28a147ddf9c32bdb898858a5f4b6b1be791b | /python_practice/work5_EnterpriseWeChat/test_ImportContacts.py | 8769debabebde8bdd1f8426002d266e52a03e4e8 | [] | no_license | JuliaZxr/hogwarts_lg3_Yuki | 01d77b7f6ff10e9dd532159d716b5f52a6d69f2e | 66951c3e0b62796e0ae45d628de03708ddd86bf6 | refs/heads/master | 2023-03-08T11:17:54.434372 | 2021-02-25T14:07:25 | 2021-02-25T14:07:25 | 284,977,279 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,977 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/8/18 23:27
# @Author : Yuki
import shelve
from time import sleep
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
"""
1、要先获取到企业微信的cookie
-采用复用已有浏览器的方式(只能使用chrome,window... | [
"785533217@qq.com"
] | 785533217@qq.com |
395be35a09c13f96e54408957a973f5f28034077 | 2f700a61ccb2e005ad086ce734da378b160cb854 | /django_project/ttsxqd/cart/views.py | 46428229ee16925f46ce03990bfd29611316b5dd | [] | no_license | ren100700/ren | 1d8becea61b965470ba7a505e5028e79263a19f2 | d95b2146f289a7f1b98af2fee587b898160e369d | refs/heads/master | 2020-03-29T19:27:40.212624 | 2018-11-26T13:02:08 | 2018-11-26T13:02:08 | 150,264,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | from django.http import JsonResponse
from django.shortcuts import render
from goods.models import Goods
from cart.models import ShoppingCart
def add_cart(request):
if request.method=='POST':
# 添加到session中的数据格式为:
# key==>goods,
# value==>[[id1,num],[id2,num],]
# 1.1添加到购物车的数据就是添加到session中
# 1.2如果商品已经添加到sessi... | [
"10007009028@qq.com"
] | 10007009028@qq.com |
0aaa9949817dd8e2c997f2fade8982de5cd5baef | b0a732704d4ca60e20a921b44a5021d67ac20652 | /JStester.py | a6b9db1772190fa42c17d6f9f6820df0d38adcbc | [] | no_license | KittenBrix/ProjectSPARK | 64143bc054023f6f00d0ffd44b2bef88b1d40861 | ffccac06c291ea572120b042ca69c21e5ac5d6c4 | refs/heads/master | 2021-05-28T22:21:32.326275 | 2015-06-08T06:12:51 | 2015-06-08T06:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | import pygame, sys, time
from pygame.locals import *
pygame.init()
pygame.joystick.init()
joysticks = [pygame.joystick.Joystick(x) for x in range(pygame.joystick.get_count())]
for i in joysticks:
i.init()
print joysticks[0].get_name()
def getin():
check = True
for e in pygame.event.get():
if check a... | [
"lpquotec@gmail.com"
] | lpquotec@gmail.com |
4640061100bd450d43111bb33b0b81c9f02a6928 | b9567ac565b973a5eb8da5cf0f923cfb3f960fb2 | /tensor1.py | af13d96a469f3b9f876c51d84997af8138325ad9 | [] | no_license | Nairaceorex/3d_net | 07826102dc655bc3589fa4a8903a450e85f5d071 | b1dae1d9803d13146d2796ac41001f8a96cbee54 | refs/heads/master | 2022-11-23T04:35:09.371786 | 2020-08-02T12:07:24 | 2020-08-02T12:07:24 | 280,635,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import torch
def describe(x):
print("Type: {}".format(x.type()))
print("Shape/size: {}".format(x.shape))
print("Values: \n{}".format(x))
describe(torch.Tensor(2, 3))
describe(torch.rand(2, 3)) # случайное равномерное распределение
describe(torch.randn(2, 3)) # случайное нормальное распределение
| [
"Nairaceorex"
] | Nairaceorex |
3e733750ad74b97a747c6020dc169f595fa9de9a | 38422c3edeb269926502fed31a0761aff8dd3d3b | /Swanepoel_analysis/Swanepoel_analysis/Old_control_files/Swanepoel_GUI_v3.py | 48959058c2d200add495bd6e2d6cbe2102f979f5 | [] | no_license | vfurtula/Alle-projekter | 2dab3ccbf7ddb6be3ee09f9f5e87085f354dd84a | da3d7c9611088043e2aea5d844f1ae6056215e04 | refs/heads/master | 2022-06-07T05:17:35.327228 | 2020-04-30T10:28:48 | 2020-04-30T10:28:48 | 260,180,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,741 | py | ## Import libraries
import matplotlib.pyplot as plt
import os, sys, time, imp, numpy
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import QThread, SIGNAL
import config_Swanepoel
class my_Thread(QThread):
def __init__(self, *argv):
QThread.__init__(self)
self.sender=argv[0]
def __del__(self):
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
1e88d96fdb4d7d60ce76e96b8e45f07fb4a2a8c2 | 28e83fb5b4cce6e93cc6b43ff0501312d31dc397 | /MetShooting.py | ce321e39630771b8331acebd18c9fbfe7882bf54 | [] | no_license | fdmazzone/Soluciones_Periodicas | c37693d1cec7ffdb7a2172a5a05bf0e308e15c7a | a5b530947327a7d391f8786895a50e2b796fae13 | refs/heads/master | 2023-02-05T09:45:02.272335 | 2020-12-29T19:54:26 | 2020-12-29T19:54:26 | 325,374,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,792 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 23 14:40:32 2020
@author: fernando
"""
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from scipy.integrate import odeint , simps
import scipy.optimize
from matplotlib import cm
import numpy as np
from numpy import linalg as... | [
"fdmazzon@gmailcom"
] | fdmazzon@gmailcom |
8a0e1bc4e8247fc6ab88c2985de813e07f133ee9 | e01284781a43ad7d4eb6f6580f0863223bc4eaf0 | /taskctf/matryoshka/en.py | 02d1fc4108f43b241c5ce0ee0f4ddad19b614a08 | [] | no_license | potyama/ctf | a673bb9167c7cbaf4dba7694952ccccfa92f7fb1 | cbf2e8b5a1158f85e5521b3d7286469f1f58bed6 | refs/heads/master | 2020-09-11T10:11:19.516780 | 2020-03-01T01:29:09 | 2020-03-01T01:29:09 | 222,030,801 | 0 | 0 | null | 2020-03-01T01:29:12 | 2019-11-16T01:38:45 | null | UTF-8 | Python | false | false | 1,003 | py | import sys
import base64
def decode(x):
txt = "N3q8ryccAAShfltxJQIAAAAAAAAhAAAAAAAAANCfkrrgAewBsV0ALGiBABn6B/yQVSAphFxUm9687FM/eBKHsAAl3tYLd6ikKF8eCxfBpakkNinQtBUJ08Ne8VXEbXadlBDf2kjHQRmn9R4jtG5gEczh2uyf6CbHkRb3fK5OVwYITpphK/tDcMG96Kn2xE+sfmAXAwQADS/6WNRgi+P/LBZbGgfI/18r1tz8tmPC3h65sw7+ziewhNSqLZ0hh9VTxfKw52blwNkh... | [
"kamikaze117117@gmail.com"
] | kamikaze117117@gmail.com |
2cfd9873aaa44294423683a9a14d2e3062d8c2a7 | a925ba4762b88dada76fcd22cc03bfdbd596d9a3 | /mike.py | ffa5e99a6eb9e76f5c1c3cca646618822badfeab | [] | no_license | jjuhbotelho/Mike-Bot | c5b1f81d73294fb647416ad9cfaeff1c2ea229d9 | f1785fad93a68a83bfd80a42b333c5e8be028107 | refs/heads/master | 2022-11-17T21:22:15.234636 | 2020-07-21T17:03:47 | 2020-07-21T17:03:47 | 203,226,575 | 6 | 1 | null | 2020-06-05T04:40:35 | 2019-08-19T18:21:17 | Python | UTF-8 | Python | false | false | 2,141 | py | import discord
import asyncio
import random
import os
from discord.ext import commands
TOKEN = ''
client = discord.Client()
prefix = "."
bot = commands.Bot(command_prefix=prefix)
count = 0
commands = {
".hello": 'Oi galerinha!',
".joinha": 'Dá um joinha aí, por favor!',
".devinha": 'Com certeza é a ... | [
"juhbalcantara@hotmail.com"
] | juhbalcantara@hotmail.com |
de64a59326ab071f22a40b735a1e64be6562ee0e | 05f993f5764417d26f0b08e1c89da5eccb72cc5a | /sim.py | 5fb13d2e6afeb4877728cd346a659356890f7462 | [] | no_license | varun19299/CS6046-MRAS-Bandits | 523187b829d2ccee689bc8c68a8f8109773625df | a5017aa4e0addd286a041b43e583b8bc3ca7e2be | refs/heads/master | 2022-02-23T00:42:15.477199 | 2019-09-21T09:15:46 | 2019-09-21T09:15:46 | 183,737,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,210 | py | import matplotlib.pyplot as plt
import numpy as np
from pathlib import Path
from sacred import Experiment
from tqdm import tqdm
from utils import helper
from utils.helper import Game
from utils.tupperware import tupperware
from bandits.UCB import UCB
from bandits.MRAS import MRAS_categ, MRAS_categ_elite
from bandits.T... | [
"varun19299@gmail.com"
] | varun19299@gmail.com |
38c6d6335155882f54aa28ae6e360a55e8ec4901 | 35786af45d33698d6609ad483bf2c26c0c5d285e | /t_func_bounds.py | 894c52275d9bfd905196f6a08eaf0e4ad0f3fcd5 | [] | no_license | AleksLyubenov/1-D-Heat-Equation | 478181ceec75db0ea3fcf543def27bb93f867b06 | 1a53e5684ece0103f28e9b84b8916006d6b55d6e | refs/heads/master | 2023-01-31T07:28:27.249647 | 2020-12-15T18:42:31 | 2020-12-15T18:42:31 | 241,191,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,205 | py | import numpy as np
def dual_dirichlet(A, rhs, n, c1, c2):
# Modify the linear system to enforce the left Dirichlet boundary condition: u(a) = c1
A[0, 0] = 1.0
A[0, 1:n] = 0.0
rhs[0] = c1
# Modify the linear system to enforce the right Dirichlet boundary condition: u(b) = c2
A[n, n] = ... | [
"noreply@github.com"
] | noreply@github.com |
ab746b819a135a76f2eb7d60164b7eff2a72c7a0 | 162881b0556266ff39163b3eb0234acc41559de2 | /Data Wrangling/start.py | d4008bc89ff7f98958d775f3b21a85316a907504 | [] | no_license | jaygala25/Data-Analysis-with-Python | 9214d73e4eeaf4c75c6dc0c26639b206c434f9d6 | 25be909fc5478c7687b144715f74ef2f20f47110 | refs/heads/master | 2020-04-14T06:05:19.665186 | 2018-12-31T16:47:00 | 2018-12-31T16:47:00 | 163,677,080 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | import pandas as pd
# read the online file by the URL provides above, and assign it to variable "df"
path="https://archive.ics.uci.edu/ml/machine-learning-databases/autos/imports-85.data"
df = pd.read_csv(path,header=None)
headers=['symboling','normalised-losses','make','fuel-type','aspiration','num-of-doors','... | [
"noreply@github.com"
] | noreply@github.com |
bcc3e4e1bb30760aaf08336f61427227223aeaf6 | 3a5e6931ef4e96964549b90031a787c5982ff249 | /metrics/predictors_plot.py | b04bc45fff4dd4af4d23da75f3fc5579457ef6b9 | [] | no_license | DeJoelson/graph-kernels | 215d64109a403157935f7547be1c10e6190f3e36 | 53d75955dc025c06d65d334591ba037a20d5c30d | refs/heads/master | 2020-03-19T07:08:47.461930 | 2018-06-21T07:31:26 | 2018-06-21T07:31:26 | 136,089,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | '''
Created on Jun 4, 2018
@author: Sam
'''
import matplotlib.pyplot as plt
import datetime as datetime
from constants import OUTPUT_DIR
from mpl_toolkits.mplot3d import Axes3D
class PredictorsPlot:
def __init__(self, filename=OUTPUT_DIR+datetime.datetime.now().strftime("%Y-%m-%d--%H-%M-%S")):
self._fi... | [
"webmaster1234567890@gmail.com"
] | webmaster1234567890@gmail.com |
581eb71ed8e3a43f72e7d7c856a6ef0ca4273774 | a78b1c41fc038703e58d5249a9948fbfd06f8159 | /code_nodeperturbation/FM4/sim2/gene/gene.py | 47d12a4d13f3c51625eb54494462cfc38ce251d7 | [] | no_license | le-chang/DISC1_interactome | 15ed1025048e49d5bb6b6bd13eac4f148fe83d04 | b517309b8583358220c2a639d4ef5d303bfb0acd | refs/heads/master | 2021-02-13T21:00:20.418928 | 2019-04-24T13:59:50 | 2019-04-24T13:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,652 | py | """
Migration simulator
It is also a demonstration on how the collector works
"""
import boolean2
from boolean2 import Model, util
from random import choice
# ocasionally randomized nodes
TARGETS = set( "Migration".split() )
def new_getvalue( state, name, p):
"""
Called every time a node value is used in a... | [
"noreply@github.com"
] | noreply@github.com |
b508232586963bd3703658b87b4854b11d1c3e75 | fc3f784c8d00f419b11cbde660fe68a91fb080ca | /algoritm/20상반기 코딩테스트/한수/bj1065.py | b711cbf86b44c09064fe63cda2dc9461a9d7b1d7 | [] | no_license | choo0618/TIL | 09f09c89c8141ba75bf92657ac39978913703637 | 70437a58015aecee8f3d86e6bfd0aa8dc11b5447 | refs/heads/master | 2021-06-25T07:01:34.246642 | 2020-12-21T04:57:13 | 2020-12-21T04:57:13 | 163,782,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | import sys
sys.stdin = open('bj1065.txt','r')
N=int(input())
if N<100:print(N)
else:
R=0
for i in range(100,N+1):
a,b,c=i//100,(i%100)//10,i%10
if a-b==b-c:R+=1
print(99+R) | [
"choo0618@naver.com"
] | choo0618@naver.com |
0a36750b789409cd49aa623637575371bc135a37 | 6dc4e163e4174052eda788cd17879cb3a89b87db | /python-study/python-basics/11-common built-in modules/3-base64.py | b1339e5ac772e07d3dd495aefbb73ab76405a063 | [] | no_license | buwenzheng/Study | 623ddd7d23156a068e5490dac1ca583d4a9e145e | 175a1fd484df5617ef10efc38cab288038382d0d | refs/heads/master | 2022-02-13T10:02:33.796941 | 2022-02-08T05:31:37 | 2022-02-08T05:31:37 | 116,350,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# Base64
# Base64是一种用64个字符来表示任意二进制数据的方法。
# 用记事本打开exe、jpg、pdf这些文件时,我们都会看到一大堆乱码,因为二进制文件包含很多无法显示和打印的字符,所以,如果要让记事本这样的文本处理软件能处理二进制数据,就需要一个二进制到字符串的转换方法。Base64是一种最常见的二进制编码方法。
# Base64的原理很简单,首先,准备一个包含64个字符的数组:
# ['A', 'B', 'C', ... 'a', 'b', 'c', ... '0', '1', ... '+'... | [
""
] | |
636d81b3cdf6c7b63eb0fda95cff9a867f52e73f | 366ceb9d305ba83bf3fc4a4a0d59fa39aafd431f | /restaurant/bin/restaurant | c6f6a31e2df28f8b00d35844a3556dcfe6ad20f0 | [] | no_license | b-rasagna/Restaurant | 3e3691ce5d37cb8f53933850e8594e46f196288f | b32dbe7c72b93159d9001925b64c1a941a99ae7d | refs/heads/main | 2023-04-20T17:31:58.942749 | 2021-05-16T10:47:28 | 2021-05-16T10:47:28 | 367,825,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from restaurant.bin.cli import RestaurantServer
if __name__ == '__main__':
RestaurantServer()
| [
"rasagna0609@gmail.com"
] | rasagna0609@gmail.com | |
0cf3734639b29455311d26ddb50627a884d74779 | f207b2bd927e7658b73288e19d16fb93340a2266 | /class6/labs/cubes_while.py | 058e4e5415dd6cc1be70bf6912b66206eb64e005 | [] | no_license | am2woods/mtec2002_assignments | 3da14056cb3a92bd92f82b6dc8a74550189c979e | a5fbd2135b844af7c740a17fa8fb5ba7fc2f8f70 | refs/heads/master | 2021-01-15T21:03:17.794858 | 2012-05-23T21:23:44 | 2012-05-23T21:23:44 | 3,330,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | """
cubes_while.py
===
1. Create a list of numbers 0 through 9 using the range function; assign it to a variable named numbers
2. Create an empty list called cubes
3. Using a while loop and a counter variable, iterate through all of the numbers in the original list
4. Append the cube of the number to the cubes list
Ex... | [
"am2woods@gmail.com"
] | am2woods@gmail.com |
ab78aca761f929e97d9ef824b87d36ea13d6ecc3 | 0acd25a6b1ee7f148e269afc55df84be676fa31b | /eventbrite.py | e632b702ed7962408c99b107688a593468514ea7 | [] | no_license | huntreslogan/EB-Exercise | c72bba69b3ea97a6f147216f72badc0ba2305133 | 594cf404bd6f3f9ebd74d12a3b7153ee0f26b115 | refs/heads/master | 2016-08-10T23:03:11.108798 | 2015-09-29T07:01:24 | 2015-09-29T07:01:24 | 43,350,552 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | import requests
import os
EVENTBRITE_OAUTH_TOKEN= os.environ['EVENTBRITE_OAUTH_TOKEN']
url = "https://www.eventbriteapi.com/v3/"
response = requests.get(
url + "users/me/owned_events/?expand=venue",
Headers = {
"Authorization": "Bearer " + EVENTBRITE_OAUTH_TOKEN,
}
)
my_events = response.json()... | [
"huntres@me.com"
] | huntres@me.com |
8478571dd38240706b180df38d947d6e6d6ba870 | aa5ad6ad47f5523538e310f1b993edc9fc3ff066 | /pootle/settings/95-outro.conf | a71d96e0dba955ae95712f4d85acc46fd5e59eb2 | [] | no_license | andynicholson/pootle | afd0112cfa1d5a995d10b5a7af3b43f29cec5b2f | f4b66832d886e3f5fec244aece1637e8a2ed8463 | refs/heads/master | 2020-12-25T04:08:01.585250 | 2012-07-13T07:46:28 | 2012-07-13T07:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | conf | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup things that depend on other settings."""
import logging
if CONTACT_EMAIL:
MANAGERS += (('CONTACT', CONTACT_EMAIL),)
if LIVE_TRANSLATION:
# Look for localization files under PODIRECTORY/pootle
LOCALE_PATHS = (os.path.join(PODIRECTORY, "pootle"), )
e... | [
"julenx@gmail.com"
] | julenx@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.