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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e7ee9daec39b2d78513bb3360b65cc1daedb42b5 | 6202f88cfd700b18680f3dce8175c15d11edac38 | /mysite/venv/Scripts/easy_install-3.6-script.py | 4fc123c382ccf185bc0f956476c6be6bf8746a1c | [] | no_license | chenyi729/PycharmWorkSpace | cf308dd0dee4fa7120222312df54d19fbf37c24d | ecaea383d7031968cd27119a3c16de59785b7152 | refs/heads/master | 2020-04-16T12:27:52.528323 | 2019-01-14T02:20:56 | 2019-01-14T02:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!E:\PycharmWorkSpace\mysite\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"hcxy0729@163.com"
] | hcxy0729@163.com |
1ac603767f5fde5c05e1576e3f1e35df16a53af1 | 63e0bc889563192a602463e662121058a4da30b5 | /Smart.py | 4c26367cb520a58c7477ccfe077c736086992b6b | [] | no_license | adaptiveUK/rhinopythonscripts | 11accd3048caad7b69024db55e5847acb3c7feb6 | bdd260e7f7257de54a4fac25a465dcdafff3b68c | refs/heads/master | 2021-01-17T08:38:26.863981 | 2011-07-25T19:07:29 | 2011-07-25T19:07:29 | 3,888,627 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | '''A module for wrapping geometry with UserString and Attribute Dictionaries'''
import Rhino
class SmartFeature(object):
def __init__(self, rhinoObjectOrTuple):
self._parseConstructor(rhinoObjectOrTuple)
def _parseConstructor(self, rhinoObjectOrTuple):
# determine if it is a tuple
kin... | [
"benjamin.j.golder@gmail.com"
] | benjamin.j.golder@gmail.com |
dd47304c4e7678c1a5de19665473d3e8d069c14b | 907e072955dc8b6fb125430493a82375e0c56410 | /utils/network_placeholders.py | 1d9d5c0a6b4d828ba32ec3ddd922a2edf5f9d5ea | [] | no_license | karansomaiah/yolov3-tf2 | 4105fef8cb88b5b0edc28ce99eb108c176de3667 | d0bc8ce086715cf5694e74bca2297d55168b61b0 | refs/heads/master | 2023-03-12T16:15:24.421618 | 2020-12-30T17:03:08 | 2020-12-30T17:03:08 | 298,563,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,241 | py | #!/usr/bin/env python
class Layer(object):
def __init__(self, name, *args, **kwargs):
self.name = name
self.kwargs = kwargs
self.args = args
self.attributes = {}
def __str__(self):
return self.name
def __repr__(self):
return self.name
def __eq__(self, o... | [
"somaiahkaran@gmail.com"
] | somaiahkaran@gmail.com |
1a5426f631a26cd1f802c569758fd5df1b38f0ca | cba00a770ade2b265f53497a3a1d222d7e288a83 | /task1/18.py | 13297d03f0c80a1006749edcf7dac529e60cd610 | [] | no_license | Isko00/ICT | ea809befc82a014d51da7600f6dff042088a2c2f | 97be9c983abcf6b4df37ee13eb6208618028bc14 | refs/heads/master | 2023-02-11T00:02:19.572618 | 2020-12-24T09:23:43 | 2020-12-24T09:23:43 | 297,047,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import math
print("Enter radius: ")
radius = float(input())
print("Enter height: ")
height = float(input())
volume = math.pi * radius ** 2 * height
print("Volume: " + "%.1f" % volume)
| [
"Islam.ospanov00@gmail.com"
] | Islam.ospanov00@gmail.com |
a69bb44cc819d78f9f8e679c84b372591851872c | 34ce9a01b589179068b39af2d37e33207436be0f | /Assignment_6/ATM_Machine_hw_6_ex_12.3.py | 45d4ac397df8a4a27d07a7758f9f06e4757708e8 | [] | no_license | fopioabari/Introduction-to-Programming-Using-Python | f2500f9de1e0cc1ec227dc9d4b8c7369c3322b8b | fc6748acd9be1b369c3fc4a8869d94778522fa12 | refs/heads/master | 2021-04-18T21:38:58.531696 | 2018-03-27T00:01:07 | 2018-03-27T00:01:07 | 126,882,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,267 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 5 21:20:13 2018
@author: francisabari
"""
class Account:
def __init__(self, id, balance = 100, annualInterestRate = 0):
self.__id = id
self.__balance = balance
self.__annualInterestRate = annualInterestRate
def getId(sel... | [
"noreply@github.com"
] | noreply@github.com |
37d5bae594d19ab6b1b110fdde41ff293dce4cd1 | 4350e4eda1c140b87d5429a4653b2695dceca177 | /preprocess.py | 4b30679ff2296c5740e189afdc6687707d99ed26 | [
"MIT"
] | permissive | kkkkkwai/gated-graph-neural-network-samples | 26dac9a6d542ebc547a1591373c879a248b33b11 | d3605fd680ee0d5b01d432a34d3e54ada51f5077 | refs/heads/master | 2020-04-17T11:15:41.794717 | 2019-03-25T09:13:51 | 2019-03-25T09:13:51 | 166,534,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,814 | py | import os
import json
import re
import numpy as np
from typing import List, Tuple, Dict, Sequence, Any
from collections import defaultdict, namedtuple
from utils import EDGE_TYPE
keep_only_letter = False
tie_fwd_bkwd = False
num_edge_types = len(EDGE_TYPE)
max_node_length = 25
project_name = 'benchmarkdotnet'
data_p... | [
"guoweiguisg@gmail.com"
] | guoweiguisg@gmail.com |
1319085412e7219ef378e484d86b1b51aa8af816 | 5c6cf5da52d28a6151583d4372d364600dfd776a | /satchmo-0.6.0/docs/graph-viz-satchmo.py | d9c3058d37f4b24508b25041cbc46980a78c0c8d | [
"BSD-2-Clause"
] | permissive | yusufbs/satchmo | 90c8a4a0c310b111031abfffd63aaa8b8d4e856e | 840ee6863b48018367b5af15f7824b1458754e59 | refs/heads/master | 2021-01-17T05:31:28.325254 | 2008-03-04T22:57:26 | 2008-03-04T22:57:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,272 | py | #!/usr/bin/env python
"""Django model to DOT (Graphviz) converter
by Antonio Cavedoni <antonio@cavedoni.org>
Lightly modified by Chris Moffitt
Included in Satchmo with permission
"""
__version__ = "0.6"
__svnid__ = "$Id$"
__license__ = "Python"
__author__ = "Antonio Cavedoni <http://cavedoni.com/>"
__contributors__... | [
"dmerwin@orcasinc.com"
] | dmerwin@orcasinc.com |
c3e539c4bf3ff081920dd8d7384b3aab42f9f2aa | c65d512975feed7dfe74f1117cdd1337293d9d60 | /python/my_py_notes_万物皆对象/db_and_数据持久化/Mysql/mysql与python交互/py_mySQL.py | 457399daaab72146341157a493068ef91fee16ba | [] | no_license | Rockyzsu/StudyRepo | e5c6420e325917c2df7dc51d606be5fa3c2ee1b8 | 385785c09bebb56df156fd149a088043f38d0aab | refs/heads/master | 2022-12-09T13:45:38.332899 | 2020-09-15T09:56:09 | 2020-09-15T09:56:09 | 295,388,871 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | # -*- coding:utf-8 -*-
# file: PyMySQL.py
#
import MySQLdb # 导入MySQLdb模块
db = MySQLdb.connect(host='localhost', # 连接到数据库,服务器为本机
user='root', # 用户为root
passwd='root654321', # 密码为root654321
db='python') # 数据库名为python
cur = db.cursor() # 获得数据库游标
cur.execute('insert i... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
00a1ff77862db0b81297b034822aa142374b2ed4 | 80bb2c29a155be1be14546412188bf00bce49173 | /apps/app/app/views.py | d24c98992e8865a31dd38fea65de97143c870205 | [] | no_license | TakuroTerui/django_practice | ce643b788392444c7458e3cda0d1fa583ee51455 | a2712186dc606fc63f0b14f50c4196a51c67678d | refs/heads/master | 2023-07-23T17:03:31.300092 | 2021-08-21T07:35:54 | 2021-08-21T07:35:54 | 398,480,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from django.http import HttpResponse
from django.views.generic import TemplateView
def helloworldfunc(request):
return HttpResponse('<h1>hello world</h1>')
class HelloWorldClass(TemplateView):
template_name = 'hello.html' | [
""
] | |
6488c44c8c34ee4115e466d0f4c4f5ed72df3608 | 5d7ab4936e21e830a9372cdcc842743201e7b561 | /rest_cars/models.py | d93c287fd878d170c68d6d4b0683a66e67078967 | [] | no_license | Kelris/rest_api_cars | 31110545c56e3137d51550f15c20d7f63428fa14 | 9fe90cceb4640c8ceffaa7a28e3f4b8930387698 | refs/heads/master | 2023-01-19T17:37:52.278001 | 2020-09-05T15:18:07 | 2020-09-05T15:18:07 | 292,115,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from django.db import models
from django.db.models import Avg
class Car(models.Model):
make_name = models.CharField(max_length=30)
model_name = models.CharField(max_length=30)
def __str__(self):
return self.make_name.lower() + " " + self.model_name.lower()
def get_average_rate(self):
... | [
"katarzyna.zych.91@gmail.com"
] | katarzyna.zych.91@gmail.com |
6d2085f1bc205e3bd0b39057a66bf9d53c902ee8 | 727a4e19617cb922852ed55319a67fccac47e94c | /babys-first-script/challenge/server.py | 86087e3bf9379fabbd02f596ee965e990a5d0732 | [
"MIT"
] | permissive | paullj1/CTF_Anti-Human-League | 46361a83f7c13e0057a2d7a62cd7563bf1177375 | 96c12070feeec89d8eceec54f3bc153d3930dc03 | refs/heads/master | 2020-05-19T07:43:37.876017 | 2019-05-04T12:03:17 | 2019-05-04T12:03:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | #!/usr/bin/env python3
from pwn import *
import socket
import threading
import socketserver
# Custom for challenge
import string
import random
N = 64
FLAG = 'flag{is_th3r3_an_ech0_in_h3r3}'
class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
def handle(self):
payload = ''.join(random.choi... | [
"c13joshua.christman@gmail.com"
] | c13joshua.christman@gmail.com |
07c250df1102faff89cfa5854a1213d5f9480063 | ae80f0ee15897eece9519288e80d44cb7b188255 | /django-fundamentos/controle_gastos/contas/migrations/0001_initial.py | bc0d7b052e6081e9f77d14cfab67a9e270cbdc51 | [] | no_license | LarissaMerida/playing | 3b47b8994c788e5bdc04e830ad576352a3471917 | aadfac73b3f00855ac08a965f31719f5d8be518b | refs/heads/master | 2020-06-05T11:21:54.482003 | 2019-09-23T15:41:49 | 2019-09-23T15:41:49 | 192,421,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # Generated by Django 2.2.2 on 2019-06-28 17:28
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Categoria',
fields=[
('id', models.AutoFiel... | [
"larisadasilvasantos746@gmail.com"
] | larisadasilvasantos746@gmail.com |
f28018cf5e393d18a9b1b08e393faa381be7d766 | 27312614d68f7ff1bd7a863cdc6454410426ac6a | /demo15.py | 6ec7cfcbfaedfac6ce0a3db8aef19b7339f6e7e0 | [] | no_license | abhiabhinav98/Python-GUI-using-Tkinter | 5c6dfa5fa038b507c1b0556b5ea8834bbc75bea3 | 44d2f3c5a25e7aaee8d3ac928149cde0414bb760 | refs/heads/master | 2020-06-11T11:17:13.026343 | 2019-06-26T16:55:36 | 2019-06-26T16:55:36 | 193,944,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import tkinter
root = tkinter.Tk()
root.geometry("400x200")
l1=tkinter.Label(root, text="Name")
l2=tkinter.Label(root, text="Password")
e1=tkinter.Entry(root)
e2=tkinter.Entry(root)
b1=tkinter.Button(root, text="Login")
b2=tkinter.Button(root, text="Quit")
l1.grid(row=0,column=0, sticky=tkinter.E)
l2.grid(row... | [
"noreply@github.com"
] | noreply@github.com |
43fddc8268d67792feed4cbae6473c1f9b58a178 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_210/72.py | 8b87687f01a56f0ea2dfa277b816f22c349a561c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | #!/usr/bin/env python
import sys
import numpy as np
T = int(raw_input())
for t in xrange(T):
# solve the input
Ac, Aj = raw_input().strip().split()
Ac = int(Ac)
Aj = int(Aj)
activities = [] # start, end, duration, who
ctotal = 0
jtotal = 0
C = np.zeros(Ac)
D = np.zeros(Ac)
for c in xrange(Ac)... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
27e276ef604a301430a01a1338de8ea2ec17c395 | 64cb67b6538d7d930a3141bf95027a47b47c0d3c | /badhu__modules/manthan/models/professor.py | 8333c8f399420fea3c2502edb6a8ae55ee5682d7 | [] | no_license | khangdong89/lastest_work_from_home_odoo | c2e035697f4cd6aefb3747e7019d31f026dc60e5 | 86398e81ce89934450c62126b853a1906fc3f624 | refs/heads/master | 2023-06-02T01:43:49.857780 | 2021-06-25T19:11:18 | 2021-06-25T19:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | from odoo import models, fields, api
from odoo.exceptions import ValidationError
class Professor(models.Model):
_name = 'professor.professor'
_description = 'professor description'
name = fields.Char('name')
address = fields.Char('address')
pro_id = fields.Integer('pro_id')
phoneno = fields.C... | [
"‘odoo@aktivsoftware.com’"
] | ‘odoo@aktivsoftware.com’ |
96e76d6beb14206bd8932aacb530cfd2f9972034 | 193a73237f4129a1b0fc541ee7526d9903fe8922 | /resumen_declaracion_iva/__manifest__.py | 753e497cee820b73f63b647aad6a35b774c33162 | [
"Apache-2.0"
] | permissive | Chief0-0/Localizacion_ERP_V12 | dfabb4de8f605ccfe0e7cc21ba6e80d8a51e6ed2 | f59e56564e29525f772b59db7fef7c7cde347336 | refs/heads/master | 2022-12-08T03:27:59.590375 | 2020-09-04T22:46:13 | 2020-09-04T22:46:13 | 274,516,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"correaj.c.777@gmail.com"
] | correaj.c.777@gmail.com |
b4cc318fd73bb2ec22badf5c8f137599356d5827 | e21f51b27979f4227879c3bef89536b4f960a803 | /protos/faiss_server_pb2_grpc.py | d7950dc820a89d337b7313a1ef3c9752bf4eef9d | [] | no_license | hangdj/text-match-based-on-triplet-loss | bbf34f5cca4ac6f81bc3cb46f1f4b7e00a0da922 | 288e36ae93e554e3082f1c7335b821925ea5044e | refs/heads/master | 2022-05-10T08:37:06.677714 | 2020-04-28T02:46:32 | 2020-04-28T02:46:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,917 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import models.text_match_v1.protos.faiss_server_pb2 as faiss__server__pb2
class FaissServerStub(object):
"""interface
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
sel... | [
"zhoubin@tuya.com"
] | zhoubin@tuya.com |
9633e0867fae4ff20e86bca997693e669c2d5f7e | edec9004c17f36f5cde82597ea0b8b393a12f88a | /models/songRecommenderModel.py | cb7231824f05d8bc24558f1ce69ab365414f4dae | [] | no_license | seungwooKim99/Music-Recommender-2-backend | 31d57f30606185aa4df1a6a8529ebebdb1d1f994 | 0607eb386c065f38cd453d5f2f5b9d02d192b97c | refs/heads/master | 2023-03-21T04:21:42.102328 | 2021-03-08T08:37:46 | 2021-03-08T08:37:46 | 342,749,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | import numpy as np
import pandas as pd
class SongRecommender():
def __init__(self, song_id):
self.song_id_ = song_id
#cosine
def cosine_dist(self, u, v):
u_l2 = np.sqrt(np.sum(np.square(u),axis=1))
v_l2 = np.sqrt(np.sum(np.square(v), axis=1)).values[0]
numerator = ... | [
"sonicdx886@gmail.com"
] | sonicdx886@gmail.com |
1a7e068e1759f007c0adc6c14b68e40f52168de5 | 2d9b3319ae93fdf010d2b9411afcf55fad2a84c1 | /py files/2.tables_to_db.py | 4ae1aff6aca48ea13dd6615c14143ce859fdf68f | [] | no_license | ggnicolau/Project-5-NLP-SP-City-Hall | 1a8107ed77309890a7a28497818855f810f7cab7 | 1ed520d36ce5817eea2162c01e9bb73404ac94a6 | refs/heads/main | 2023-06-11T15:36:57.989529 | 2021-06-28T18:05:37 | 2021-06-28T18:05:37 | 369,391,354 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | #%%
import sqlalchemy as db
import pandas as pd
import tqdm as tqdm
import warnings
from IPython.display import Audio, display
def allDone():
display(Audio(url='https://sound.peal.io/ps/audios/000/000/537/original/woo_vu_luvub_dub_dub.wav', autoplay=True))
import csv
csv.field_size_limit()
131072
csv.field_size_lim... | [
"79374447+ggnicolau@users.noreply.github.com"
] | 79374447+ggnicolau@users.noreply.github.com |
cfd8c6f4f55bad10b4f485c6b00e08bd5553b5bc | d5eb0570902168520c4dc781db0fc9e15cbdcdd9 | /app/scene/titleScreen/TitleScreenLogicHandler.py | 50580491d396fb9b53dcba234e9194357d198d25 | [] | no_license | Benoit-Pouliot/LDWarmup_38 | 402044a0f5616d165c1d8c8048b160ce5c021ecb | 991850af6b395228a7b77bb97d3ef4c7912f8dcc | refs/heads/master | 2021-01-18T20:55:20.739999 | 2017-04-22T03:28:07 | 2017-04-22T03:28:07 | 87,001,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from scene.LogicHandler import *
from app.settings import *
class TitleScreenLogicHandler(LogicHandler):
def __init__(self,data):
super().__init__(data)
def handle(self):
super().handle()
self.checkHighlight()
def checkHighlight(self):
mousePos = pygame.mouse.get_pos()
... | [
"marie.44.56@hotmail.com"
] | marie.44.56@hotmail.com |
487b38462d95d6d29c4608db9c02b9762f4948c5 | 495c49efbc6d0cb3b754b69f726e3970a833f00b | /source/conf.py | 986e6e91e8a2e055d7e0bc3195419dc756dd2a9c | [] | no_license | ericbarx/doc1 | 51b2068c6647137516a1b2bb64a782c85c761f0a | aa8c75119aa0a4f5681452d72210066a7cef07a3 | refs/heads/master | 2021-07-04T23:33:12.726098 | 2017-09-27T08:15:33 | 2017-09-27T08:15:33 | 104,990,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,329 | py | # -*- coding: utf-8 -*-
#
# Lifesequencing workflows documentation build configuration file, created by
# sphinx-quickstart on Wed Sep 27 09:44:04 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogene... | [
"eric@ericcliment.com"
] | eric@ericcliment.com |
fb66ddafb936cbb6ba63dcc34f2b2d655f67bfa9 | a6f667c97ed42f5001971da9a33ed79689519f2c | /core/core/urls.py | 6ca797da0d17ff10b9c92f568ae11094456602a7 | [] | no_license | t37qfr/django-core | 892eea455d2ce05c81db2af8c21cdba39835f68a | 10468d711a16534bae2a40711e4e6225448a592f | refs/heads/master | 2022-12-11T13:06:30.620657 | 2019-01-18T21:23:51 | 2019-01-18T21:23:51 | 163,284,351 | 0 | 0 | null | 2022-12-08T01:30:11 | 2018-12-27T11:03:59 | JavaScript | UTF-8 | Python | false | false | 395 | py | from django.contrib import admin
from django.conf.urls import url, include
from .views import home
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^blog/', include('blog.urls', namespace='blog')),
url(r'^newsletter/', include('newsletter.urls', namespace='newsletter')),
url(r'^forms/', include... | [
"zzI0UOAg!NecSV6$%CxQ*a"
] | zzI0UOAg!NecSV6$%CxQ*a |
e236de47406a14d880323c2e454a7f22053dcd5e | a720903a285a9d5828adf158eec09bf18b5b29df | /random_erasing.py | e4d8a3e0571e55f86dc098c8e02d9b8386c1f9a8 | [] | no_license | harunakai/graduation-project | b91ac243e26f1ff0e653bbf96bbf3f5d2e8a2743 | 5c8d73972b815076b8cc306c870a8ebc02ee987b | refs/heads/main | 2023-05-03T15:04:49.373286 | 2021-05-29T13:12:03 | 2021-05-29T13:12:03 | 371,971,644 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | from __future__ import absolute_import
from torchvision.transforms import *
#from PIL import Image
import random
import math
#import numpy as np
#import torch
class RandomErasing(object):
""" Randomly selects a rectangle region in an image and erases its pixels.
'Random Erasing Data Augmentation' by Zhon... | [
"noreply@github.com"
] | noreply@github.com |
22578060a966e8e0f446b52e29b60447585bb983 | 03759f2a584be37bb67d640bb16bc1f82cab4e51 | /prototype3/myshop3/shop/apps.py | 31a3edb4c33a0b93aed470bc5f63eff081cb1d3b | [] | no_license | veliKerril/HouseholdProductsOnlineShop | d07021a947c86f79ac87d40c0335df882914ff4a | daeb59c1ffdb39f59f3a8e3be688f9dad98e7149 | refs/heads/master | 2023-02-04T11:50:53.142742 | 2020-12-26T16:21:24 | 2020-12-26T16:21:24 | 293,862,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class FirstConfig(AppConfig):
name = 'first' | [
"velikirilll@gmail.com"
] | velikirilll@gmail.com |
3be3c7cb800121c2b3388f8aa36a885b0887238a | 556bc36b35dc6cc69f66f01100ce2566f04eef84 | /Utils/config.py | a8623cc819319bc607f8fb4a5cead58e5ebc09c6 | [] | no_license | Kronostheus/multilingual_political_context_analysis | 1c1932881b285d0a8634763f7b73b3690aacbb92 | e815067f953ab54ddcb3c5c994e4e75415767ef0 | refs/heads/master | 2023-04-01T23:50:39.561442 | 2021-01-17T22:29:23 | 2021-01-17T22:29:23 | 241,873,338 | 0 | 0 | null | 2021-03-30T00:34:56 | 2020-02-20T12:02:01 | Jupyter Notebook | UTF-8 | Python | false | false | 731 | py | class Config:
DATA_DIR = 'Data/'
CLASS_DIR = DATA_DIR + 'Classification/'
SCHEMES_DIR = DATA_DIR + 'Coding_Schemes/'
OPINION_DIR = DATA_DIR + 'Portugal_Opinion/'
PRED_DIR = OPINION_DIR + 'prediction_results/'
TRAIN_DIR = CLASS_DIR + 'Train/'
TEST_DIR = CLASS_DIR + 'Test/'
VAL_DIR = CLA... | [
"nuno.amaro@tecnico.ulisboa.pt"
] | nuno.amaro@tecnico.ulisboa.pt |
c199437872f5babb315c025a2e1a00ebcc01f10f | 74d3b9a806b10dac3b355bdb366a7cc9b5a0a05a | /main_youtube_client.py | 512b17102f8e6f6ecc7b8a23b4fa98bd718e5cdb | [] | no_license | antongregory/YoutubeSpotify | 8af351b6a0313261d632d781e262e4eb0693eb9c | 28468098c0b9e1bbacaf49eca9f48b195beed038 | refs/heads/master | 2023-05-24T15:43:34.661258 | 2020-06-05T16:54:00 | 2020-06-05T16:54:00 | 269,710,403 | 0 | 0 | null | 2023-05-22T22:45:13 | 2020-06-05T16:54:54 | Python | UTF-8 | Python | false | false | 4,101 | py | import os
import google_auth_oauthlib.flow
import googleapiclient.discovery
import googleapiclient.errors
from spotify_api import get_liked_songs
scopes = ["https://www.googleapis.com/auth/youtube.force-ssl"]
PLAYLIST_NAME = "Spotify Collection"
API_SERVICE_NAME = "youtube"
API_VERSION = "v3"
CLIENT_SECRETS_FILE = ... | [
"antonrose.g@gmail.com"
] | antonrose.g@gmail.com |
081b1d020e5ef5a60213e4f81da45092a3d31238 | 455b613410a94be9bee14c456e3af706c456f9c5 | /python/admiral.py | 91dbbc84edd24f0ae3731accc1f34e5da0f7a893 | [] | no_license | stephenkchan/tmva_fun | b71530342db311e120aea32b36c7e2c2c4a363c1 | a310518815bcb6b28a8235df7a0ffa3d7eddc8e4 | refs/heads/master | 2020-05-25T14:57:19.286052 | 2018-01-12T19:55:23 | 2018-01-12T19:55:23 | 69,884,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,886 | py | import subprocess
import sys
import os
tag="output"
slurm=False
machine=subprocess.Popen(["hostname"],stdout=subprocess.PIPE)
hostname=machine.stdout.read()
if "rc.fas.harvard.edu" in hostname:
print "Working on a SLURM machine %s"%hostname
slurm=True
else:
print "Working on an LSF machine %s"%hostname
dat_base=... | [
"stephenchan@herophysics2.rc.fas.harvard.edu"
] | stephenchan@herophysics2.rc.fas.harvard.edu |
ffbc63a5d40e05e8714d7bbf0df20d9f9f3d1039 | 608512547e8d4e9fbdfd08c7ff5cd25bf6fd20c2 | /baselines/a2c/runner.py | 2e9392d34509b9d0202838e0ce8fdda3e43fc4e7 | [] | no_license | xiaogaogaoxiao/cluster_optimization | d0691a34fca21b008dcf39099ea77e03134f2a02 | d147f574ff6e93341e59a2ec657aae08b182eb7c | refs/heads/master | 2022-02-02T13:23:19.824041 | 2019-06-26T04:33:33 | 2019-06-26T04:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,883 | py | import numpy as np
from baselines.a2c.utils import discount_with_dones
class Runner(object):
"""
We use this class to generate batches of experiences
__init__:
- Initialize the runner
run():
- Make a mini batch of experiences
"""
def __init__(self, env, d_model, a_model, bl_d_model... | [
"guohongyi@sjtu.edu.cn"
] | guohongyi@sjtu.edu.cn |
768a10bb2421abeaadbee7bce1b191ff5945674b | 11f635dfb6d0d27a78265b9c8b0b57a142d22653 | /SafeShutdown-multi.py | 50d8325eb3d9f3ab4b8fc72e814ad6a1f42ada00 | [] | no_license | rrifonas/retroflag-picase | efef29817aba4d308d583ed4d5cbd16c5394239e | 908b6fe47fb774534abe677eda8eab47c0be2581 | refs/heads/master | 2020-05-03T12:38:55.250948 | 2019-08-18T09:12:08 | 2019-08-18T09:12:08 | 178,631,917 | 0 | 0 | null | 2019-03-31T02:06:37 | 2019-03-31T02:06:37 | null | UTF-8 | Python | false | false | 2,072 | py | #!/usr/bin/env python3
import RPi.GPIO as GPIO
import os
from signal import pause
import subprocess
from multiprocessing import Process
#initialize pins
powerPin = 3 #pin 5
ledPin = 14 #TXD
resetPin = 2 #pin 3
powerenPin = 4 #pin 5
hold = 1
#initialize GPIO settings
def init():
GPIO.setmode(GPIO.BCM)
GPIO.setup(po... | [
"noreply@github.com"
] | noreply@github.com |
f53cbfea41a1a703382d2eccb5c4074a2795e9e5 | 1635e722e7ede72f4877671f36bbbc4199abae81 | /ecosoft-addons/advance_and_additional_discount/sale.py | 227a9eaf76f4874a626c54c5534aae8deb8f788e | [] | no_license | ecosoft-odoo/sqp | 7c09617048091ac6de4b25a33ad88127d36de452 | 7a7fc6b88087d98d536dd4ec39f9fb572918090e | refs/heads/master | 2023-08-08T00:07:48.405000 | 2023-08-04T15:47:43 | 2023-08-04T15:47:43 | 40,047,976 | 3 | 9 | null | 2023-08-02T08:38:53 | 2015-08-01T13:48:54 | Python | UTF-8 | Python | false | false | 10,548 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
d335c1953908c703540fee6892011ac539fd127d | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210831114343.py | 1bb3ad9fa1d068428284e79f3e43f05e552a0685 | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | class Nomina:
def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr="",email="",estado="",profe="",dep=""):#3
self.nombre=nom
self.ruc=ruc
self.direccion=dire
self.telefono=tele
self.ciudad=ciud
self.tipoEmpresa=tipEmpr
self.correo=email
self.... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
2af5c8223fc344d1baaffd129038607c4fdce3a2 | 9d4c84a3ddee3c53bfb85b7e576be97f727caca0 | /iso_two_param/optimization_blue_cv04.py | a998f3794d796a338806c045f2957cc9bb25c077 | [
"MIT"
] | permissive | cjekel/inv_bubble_opt | 386cca2c009bf1c97007c14bcbf9cd5df482afe3 | 3ecd57ee91ee09ac38319d151adbd8e9c3b9a1bb | refs/heads/master | 2023-08-15T04:26:09.702395 | 2021-08-14T01:10:49 | 2021-08-14T01:10:49 | 166,838,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | # MIT License
# Copyright (c) 2019 Charles Jekel
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, ... | [
"cjekel@gmail.com"
] | cjekel@gmail.com |
2c0556ff09be8a29d62ae7ae210555ae27fce23b | 7ceee2958a0513de10a01273b90c0d3ae19527eb | /piro_watcha/watcha/migrations/0005_auto_20180812_0924.py | 47d96b23473dd788301ac379d112d900e4d5bbb6 | [] | no_license | UBJOJO/watcha_team | d8e1f8c4988c9018446d599df8188c680cdf5ba0 | 2478dee047e2f73b42d4ae1a68184746a29d7d18 | refs/heads/master | 2020-03-25T13:30:17.281326 | 2018-08-24T08:17:27 | 2018-08-24T08:17:27 | 143,829,194 | 0 | 4 | null | 2018-08-18T22:58:10 | 2018-08-07T06:23:05 | HTML | UTF-8 | Python | false | false | 680 | py | # Generated by Django 2.0.7 on 2018-08-12 00:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('watcha', '0004_comment'),
]
operations = [
migrations.AddField(
model_name='comment',
... | [
"jjh1004ss@gmail.com"
] | jjh1004ss@gmail.com |
25e54e17400e3e0a6147171a3547dd540041b308 | cb5b13fddc45de950e10d617a728d6950c7ce236 | /utils/files.py | db832218f87bae9995e6a742e95b61b863ebc75a | [
"Unlicense"
] | permissive | collective-action/tech | 882da13a7a1dd63d89d938d8541560df0c2c061f | 5b1ab67490739153ad8956f5838fa054306cab9c | refs/heads/master | 2023-05-22T12:33:52.163863 | 2023-03-19T03:00:31 | 2023-03-19T03:00:31 | 178,316,220 | 101 | 11 | Unlicense | 2021-01-16T22:56:41 | 2019-03-29T02:17:21 | Jupyter Notebook | UTF-8 | Python | false | false | 1,153 | py | import os
import glob
import json
from typing import List
from pathlib import Path
from utils.misc import ca_json_converter
""" These functions are helpers for dealing with action files
When serializing or deserializing, it will assume the following format:
```json
{
<field1>: [<value1>, <value2>]
<field2>: <val... | [
"noreply@github.com"
] | noreply@github.com |
e0508299c291b81f8fffae8c5ee6d0244e996230 | 2d83f8a0d03fcc52edf6cdb0520648f0e60d35c0 | /exe3.py | a9fcd8ee57c617b0c5bf0c1685c7310c680148e9 | [] | no_license | VishnuSahani/Python1 | d490898baed893170bda909e9f599c584e09da7f | 638cdddce100ebcb3eac6c807ef5c3de6e81fe7f | refs/heads/master | 2020-06-04T18:33:22.450233 | 2019-07-17T06:08:44 | 2019-07-17T06:08:44 | 192,145,942 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | birth = input( 'Birth year')
age = 2019 - int(birth)
print(age)
a=eval(input('enter the ques'))
print(a) | [
"vishnu83550@gmail.com"
] | vishnu83550@gmail.com |
1f1a106cf0ef5085cb532574198a8f91d3cef197 | d5bae7c54836d7433cfd61ba2a44725af12c2e49 | /python/monitor-temp.py | 35f6ccd6398dbcdad3fa9fe626cbdce6aeef1341 | [] | no_license | gsrinivas37/cctv_php | b1af578e0e32ddab93c98bd0d2bd5797dfae9962 | fc7daac3d62b6ca423fd9c65e0a46e03df8e53fd | refs/heads/master | 2021-06-25T05:14:56.543964 | 2021-01-13T20:06:28 | 2021-01-13T20:06:28 | 197,116,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import os
import datetime
import time
def measure_temp():
temp = os.popen("vcgencmd measure_temp").readline()
temp = temp.replace("temp=","")
time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
return "Temperature measured at %s is %s"%(time, temp)
cur_time = datetime.datetime.now()
temp_log =... | [
"gsrinivas37@gmail.com"
] | gsrinivas37@gmail.com |
d1b83e858c821a62a8574435a89cc82f77402728 | ea601a2314d2dae557607cdb8eca07c7a0f54cf4 | /scripts/text_recognition/input_preparation.py | ee6dd09f1b21761432e0d81eb5e39b9cb23f89d2 | [] | no_license | lukitoki1/bsc-diploma | 3e4ba7e20b54595b7dbfc4933a1e0d03a6cd43c4 | 1cb4d5d492eb998df367157d42c93854fb9eb060 | refs/heads/master | 2023-02-16T14:18:15.526378 | 2021-01-13T08:44:15 | 2021-01-13T08:44:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | import xml.etree.ElementTree as ET
import os
TEST_ASSETS_DIR = '../../app/src/androidTest/assets/text_recognition'
DATA_SET_DIR = f'{TEST_ASSETS_DIR}/SceneTrialTest'
WORDS_XML_FILE = f'{DATA_SET_DIR}/words.xml'
WORDS_TXT_FILE = f'{TEST_ASSETS_DIR}/words.txt'
def delete_images_without_text():
images_with_text = [... | [
"lukasz.kaminski@ochk.pl"
] | lukasz.kaminski@ochk.pl |
54994ae273e3752f8cf731334b22be46f8841ca7 | 28bd095ea0b788a70551a821c1650cb4ff4dd3e4 | /augment_data.py | 8d2301d274b21433484d1818a4299c89ac06a4f6 | [] | no_license | diegobonilla98/Deep-Learning-Spanish-Digit-Recognition | ef41cc57edc09c728bee007e40fcdcb553bcf767 | 9b609ba1afae9d6cd5ec0bdf3d9c1ea5c8129473 | refs/heads/main | 2023-01-13T06:24:41.318082 | 2020-11-22T12:03:01 | 2020-11-22T12:03:01 | 315,027,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | from audiomentations import (
Compose,
TimeStretch,
PitchShift,
Shift,
Normalize,
AddGaussianSNR,
Resample,
ClippingDistortion,
)
import os
import numpy as np
from scipy.io import wavfile
import glob
import matplotlib.pyplot as plt
# now in different location
files = glob.glob('./data... | [
"noreply@github.com"
] | noreply@github.com |
4bcf6243e1a5b67312a8b964c3c1e844f23a390c | 231e345c3c0ee246379cfb93797fb699cad134a9 | /sample_Madlib.py | a82435be696477d62715113036d4c19448a8d76d | [] | no_license | Anjana-Thomas/python_simple_projects | a5c51791dd176760cedb3ab7ead7bbbad841685b | 9d40fdb3234fe0392950c2dc6c819d4a80bd6092 | refs/heads/main | 2023-04-23T08:30:42.603968 | 2021-05-22T08:31:49 | 2021-05-22T08:31:49 | 369,618,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | def madlib():
number = input("Number: ")
adj = input("Adjective: ")
verb = input("Verb: ")
verb2 = input("Verb: ")
noun = input("Noun: ")
noun2 = input("Noun: ")
noun3 = input("Noun: ")
noun4 = input("Noun: ")
noun5 = input("Noun: ")
noun_plural = input("Noun (plural): ... | [
"noreply@github.com"
] | noreply@github.com |
8682e08b2f330fb37981279c82b4fcc8150b2225 | 763fb6857b79e5d8471d07d482d0ecfe2e22b3db | /practice/python/100-days-of-code/sum_of_squares.py | d07eb5985c74a9221cea07ebeafe22712079d45a | [] | no_license | ArtTheFirst/CyTech | 821f788752bd632d5c8115cc95e5f9f3872dca83 | d6629523f0900d78b8cf7b712c5100c805a4b74a | refs/heads/master | 2023-06-23T03:45:27.166110 | 2023-06-13T13:06:11 | 2023-06-13T13:06:11 | 207,387,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | rnd_digits = input("Input a list of digits ").split()
ans_slot = 0
for alldigit in rnd_digits:
ans_slot += int(alldigit)** 2
print(ans_slot)
| [
"roberts.protege277@gmail.com"
] | roberts.protege277@gmail.com |
f722830c48dd77d9a6d1e9accabba3d8db379718 | 714ff537709a1d48b4665f91da30e2e682bf4a88 | /backend/venv/bin/flask | d1b1b9969fc40e22af537c618c87da792632bd0e | [] | no_license | NuradinI/w21a | dc4821f52b66b6c40cea4ff57ab6beb1238862db | cb5b86a7be6aa5e0d5085886ec735de01ec160e1 | refs/heads/main | 2023-01-15T14:01:02.742870 | 2020-11-22T03:01:47 | 2020-11-22T03:01:47 | 314,947,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | #!/Users/nuradinibrahim/Documents/Innotech/scratch2/FullStackWork/backend/venv/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nuradinibrahim@Nuradins-MacBook-Air.local"
] | nuradinibrahim@Nuradins-MacBook-Air.local | |
54250945b083afb1405f8147f565d846ac4d284e | 803d1639969aa5d61c401ced1c386c58e77de0d0 | /assignment programs/PycharmProjects/for loop/range.py | b0e7c72f6c25c1b380cb72218d681a78b03a5d7f | [] | no_license | madhavibadekolu/python | 5c9fde0c5b26c199b8dec1ed50e2edcaa81168a1 | 7b3d2512cd5bc1b349d6478e1f09ccd6fcd3e055 | refs/heads/master | 2020-04-06T13:26:52.585577 | 2018-11-20T09:10:41 | 2018-11-20T09:10:41 | 157,500,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | for x in range(1,5):
print(x)
print( '---------------------------------------' )
for y in range(15,1,-3):
print(y,end=' ')
print( '---------------------------------------' )
s1=range(1,10)
for l in s1[10:1:-2]:
print(l)
for y in range(5):
for z in range(0,3):
print(z,end=' ')
| [
"45027451+madhavibadekolu@users.noreply.github.com"
] | 45027451+madhavibadekolu@users.noreply.github.com |
d717e27540f853041b10e9bd5a42e265dca82166 | 9acc5607d71f01c667f1e1b8dd93ee276a61c668 | /aws-scripts/grouped_cnts | 441eea2b5e8ed0dd781d0796e933723351b305e1 | [] | no_license | learning-machine-learning/polymorph-ua | 7f6d8311482e220dcd60f6eac2ab5191724e4a73 | 8fd4b98884fcb9a5ac8ce90280071724700e5045 | refs/heads/master | 2021-09-18T05:25:49.192228 | 2018-07-10T04:21:58 | 2018-07-10T04:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | #!/usr/bin/python3
import os
import boto3
import itertools
import pandas as pd
#initialize s3 client connection
s3 = boto3.resource('s3')
s3client = boto3.client('s3')
#initialize codebase bucket connection
cb_bucket_name = 'codebase-pm-ua-filtered'
cb_bucket = s3.Bucket(name=cb_bucket_name)
#generate all the file ... | [
"sruesga7323@gmail.com"
] | sruesga7323@gmail.com | |
3f5d4ed6cc50449659e996e079626093e8eab37a | 368796f8e315f12590f82aebde06c0683245670f | /Gautham-Python-Programs/LargestPrimeSmallerThanTheGivenNumber.py | dac98e99d4a5bf3f4f28b6991a2fb78b97a27144 | [] | no_license | gauthamkolluru/py | d98a4f9f56ad9dd54a174dc7638eb167c2fa9138 | d273ebad685e3dd81f98d531c97a51763b1f6e53 | refs/heads/master | 2022-04-03T05:23:41.222983 | 2020-02-09T17:27:59 | 2020-02-09T17:27:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | def prime(n):
c = 0
for i in range(1, n+1):
if n % i == 0:
c += 1
if c == 2:
return True
# a = 600851475143
a = 13195
li = []
for i in range(1, a+1):
if a % i == 0:
if prime(i):
li.append(i)
print(max(li)) | [
"gautham.kolluru@gmail.com"
] | gautham.kolluru@gmail.com |
7221f2789d4166d6efd3b80cae9e446c03da19e2 | b9fd6e0e568ea3f33864a61792ecfc6177c42d78 | /scripts/pose.py | 0977952f67de38d7abf184ee1901b3953ce97ecc | [] | no_license | FurqanHabibi/keigan_motor_driver | abd3a08db5baeb4121991573cd60cc31f6ae65c2 | 1c4a11f78b24b7eabf1345833baef13786e27d80 | refs/heads/master | 2021-04-26T23:00:51.304492 | 2018-03-08T13:34:32 | 2018-03-08T13:34:32 | 123,913,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #!/usr/bin/env python
from __future__ import division
class Pose:
def __init__(self):
self.x = 0
self.y = 0
self.theta = 0
self.xVel = 0
self.yVel = 0
self.thetaVel = 0
def __str__(self):
return str({'x': self.x, 'y': self.y, 'theta': self.theta,
... | [
"furqan.habibi@isid.co.jp"
] | furqan.habibi@isid.co.jp |
cdaefecd3e2ac0276b3f14af8db7a68cf5dd1f4d | a0342ba96c88cafae5855ffa9a493df979d03caf | /meeting/migrations/0011_attendee.py | 25384469546067d72d2a9dec8fa24be7b437d044 | [] | no_license | themusecatcher/lab-manage-system | 37ddf3f4ec5e9683dcf01c951b07851143f867d2 | c979f2d75a3920cbad822804e9732dcb0a6b1f42 | refs/heads/master | 2023-06-08T12:41:43.186488 | 2021-06-16T09:11:54 | 2021-06-16T09:11:54 | 377,435,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | # Generated by Django 3.0.3 on 2020-03-24 13:57
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),
('meeting', '0010_auto_202... | [
"d_muses@163.com"
] | d_muses@163.com |
39286f653fabc68f96addf3ccf1867e506fd28f9 | afb37fa4f9e728a43351b51116b551451fc06eb1 | /MyDjango/index/urls.py | 95c913fdc182506b9e72c4bee2269b917378a4f9 | [] | no_license | longfeiteng/MyDjango | c721f5f5bf9031584eb93e919e29ebf95948d1e1 | b136fd17c8560a4a37add47d99c44c64b494dfc7 | refs/heads/master | 2022-07-04T13:15:25.759212 | 2020-05-14T15:30:13 | 2020-05-14T15:30:13 | 263,950,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | from django.urls import path, re_path
from . import views
urlpatterns = [
path('', views.index),
# path('<year>/<int:month>/<slug:day>', views.mydate)
# re_path('(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2}).html', views.mydate)
# re_path('(?P<year>[0-9]{4}).html', views.myyear, name="myyear... | [
"986864893@qq.com"
] | 986864893@qq.com |
5631d85b036600284e2a0346cdf83d51052e4a98 | a42ee8e38c8415e05181d41f4e2aa9ae45bc9a92 | /Interface/interface.py | b406270cf4f032d55d27ea7b54b31fc78bf8530e | [] | no_license | ASEDOS999/Project_F | da03bc17fc1076589cf913eb7fb8820bbec90204 | 3399c9035bb4f1859da86be241f94f2fd088577b | refs/heads/master | 2020-03-07T15:24:36.068448 | 2018-09-22T16:13:32 | 2018-09-22T16:13:32 | 127,553,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,053 | py | import sys
sys.path.append("./../Segmentation")
sys.path.append("./../Kernel")
from Tkinter import *
import tkMessageBox as mBox
import make_set
import kernel as main
def end():
sys.exit()
def clear(root):
for i in root.pack_slaves():
i.destroy()
class window():
root=Tk()
set_of_set = []
work_set = [... | [
"kuruzov2014@mail.ru"
] | kuruzov2014@mail.ru |
fee00f670adab1b0c03e332059c2a4409748e8a6 | 9b483d42da47237d28a9f80c378aba412b89f5b1 | /special/cookie.py | 59a4301e436c65e01d0d8954723bc8de92163246 | [] | no_license | smartree/Tentacle | b0c83b671c1abe26338125d672d77b277abd2b28 | a53e046f3434bf1ac4b606ba7dfe951d9b7f5464 | refs/heads/master | 2020-05-23T01:25:57.576494 | 2019-05-09T15:33:00 | 2019-05-09T15:33:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
Check header' cookies secure, e.g. httponly, secure and so on.
'''
from re import findall
from re import search
from re import I
def info(data=None):
info = {
"name": "cookie",
"info": "cookie",
"level": "low",
"type": "info"
}... | [
"546577246@qq.com"
] | 546577246@qq.com |
74a7336e43431d9246479b5fe9ebe5d4ee6a05e1 | ff6e8f170043b620c2a2fadea4d0d55ac9b8e3e5 | /queries.py | 993293c7cba6be25e862984a723c754a4588aeda | [] | no_license | rajeshs-raju/Movie-Recommendation | 42cbb71d9b9797d43a7405af79086ebc4b18d735 | c7fcb813994b7961ab7c269a76a5b3b803a8dacb | refs/heads/master | 2020-05-16T12:33:49.583789 | 2019-04-24T17:12:51 | 2019-04-24T17:12:51 | 183,049,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | import os
import re
import sqlite3 as sql
import csv
if __name__ == "__main__":
'''
with sql.connect("database.db") as con:
cur = con.cursor()
result=cur.execute("select ID from users where uname = ?",('Rajesh',))
for row in result:
result=(row[0])
print(result,type(result))
#print(l)
#cur.execute(... | [
"noreply@github.com"
] | noreply@github.com |
bd65f9a7e06cb1fa338b58065cd08d50b45a6998 | 7bc565a41e4e2b9ebc5ac0a30155f1808182b247 | /Assignment.py | 3e00142479a51473b6eeb26287842ea3c0617e03 | [] | no_license | AyushKnlds/GitRebase | e9a85feed7db4f7d995032d07526fbe680af542d | 3736180eb04ef82237ff5528e037f900005b5bf7 | refs/heads/master | 2023-06-27T16:40:58.989329 | 2021-07-21T15:33:23 | 2021-07-21T15:33:23 | 388,159,947 | 0 | 0 | null | 2021-07-21T15:33:24 | 2021-07-21T15:21:03 | Python | UTF-8 | Python | false | false | 63 | py | print ('My first work on rebase.....still working...and still') | [
"ayush.kumar@knoldus.com"
] | ayush.kumar@knoldus.com |
877ba0724bb99d1a4fb142d2ec87ddef0176e1bb | 91d2e84b7f569e7338ade987e241fc0b0ae62776 | /App_Login/models.py | 05356e8004ece9248cca613c8ccb6a621f2ebbba | [] | no_license | Zahed75/Ecommerce_Project | 1965d61b0a84ebbd6d23ccdd0d557c1cc9416195 | a9adcf9458c48f769507ac22f8e20d24c64ea244 | refs/heads/main | 2023-04-17T10:03:45.528529 | 2021-05-06T13:24:25 | 2021-05-06T13:24:25 | 364,914,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,367 | py | from django.db import models
# To Create a Custom User Model and Admin Panel
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser, PermissionsMixin
from django.utils.translation import ugettext_lazy
# To automatically create one to one objects
from django.db.models.signals import post_save
from ... | [
"zahedhasan.cs@gmail.com"
] | zahedhasan.cs@gmail.com |
434bb06cd05352bbf51e3d55e53e57639ed7ece3 | b223e2a88779970653f0704249e35718e14183bc | /p2/p2_server.py | efaa6da4abf99e7a446996496436de81df17e4ac | [] | no_license | hamedakbary/8StepsComplete | c434b93ccde8cf860fc4a55df3f35564922ff688 | 966e05edeae991ee1ebf8bfa1f174d95e6d79699 | refs/heads/main | 2022-12-29T20:38:13.440137 | 2020-10-13T00:14:24 | 2020-10-13T00:14:24 | 303,542,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | #!/usr/bin/env python
import rospy
from problem_no1.srv import servicedata
def handle(req):
rospy.loginfo("Request received")
rospy.loginfo("Entered data:")
rospy.loginfo(req)
availibility = False
xt = target_x
yt = target_y
ls = [req.id, availibility, xt, yt]
return ls
if __name__ == '__main__':
rospy.init... | [
"noreply@github.com"
] | noreply@github.com |
44a8f4bc979bb628be78da35bf125e4ff232cd0d | 08047b087240a9d324d0ec2ee523c393e98f6583 | /3.37.py | 482b1540cb8313f4802bf8cfce09b1533c9043d2 | [] | no_license | zarar-shah/Chapter-3-Assignment | 5db38e04719b9cdcc53644f3f0391cdd87584e9f | 2cd5715fdb37e0a75c03947a86b4775931b4877f | refs/heads/master | 2020-04-07T10:03:17.118193 | 2018-11-19T18:45:11 | 2018-11-19T18:45:11 | 158,273,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | print("Name: Zarar Ali Shah")
print("Roll #: 18B-075-CS (A)")
print("Assignment")
print("\n Exercise 3.37\n")
def points(x1,y1,x2,y2):
if x1==x2:
print("The slope is infinity ",end=" ")
else:
slope = float((y2-y1)/(x2-x1))
print("The slope is", str(slope),end=" ")
imp... | [
"noreply@github.com"
] | noreply@github.com |
bf402e42b17a26c4850e4ba67374888bf8d5affc | 9e3a590ffb5abb6c73c0be0ad2198541c7668c46 | /Patryk/run.py | 327da01670b0f938ddd9710bd34f6f9c8414b81b | [] | no_license | MrBartek21/ZTGK | b95528583a260916507aff73c80e15ac887d8c97 | b0956e29db05e31c724b088e2490f1e0ccbc3599 | refs/heads/master | 2021-07-13T19:01:24.322298 | 2021-06-01T20:10:29 | 2021-06-01T20:10:29 | 246,015,793 | 5 | 3 | null | 2020-03-18T18:57:10 | 2020-03-09T11:18:41 | Python | UTF-8 | Python | false | false | 2,470 | py | import pygame, sys, ctypes
from Player.Player import Player_Move
import Map.Map
class Game(object):
def __init__(self):
# Screen size
user32 = ctypes.windll.user32
self.ScreenWidth = user32.GetSystemMetrics(0)
self.ScreenHeight = user32.GetSystemMetrics(1)
screensize... | [
"noreply@github.com"
] | noreply@github.com |
c33969059ecb95c934efc421be7c3dfdd6fc2365 | 0d3f4b4d7cb3d07cfd3ac914a227755489e60f4c | /CrowHuman2YOLO/data/gen_txts.py | 5e0fa7f8acf856c48b3b8953e164d4a4d5f62b35 | [] | no_license | liuyundong-2020/YOLOv5-Tools | efa5b187b8b10127cfea4ea7ed9a42934c53040b | 50bae43eabd2e4d5f074df5cf49429cb4b147d05 | refs/heads/main | 2023-06-03T11:50:11.318416 | 2021-06-22T10:56:47 | 2021-06-22T10:56:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,570 | py | """gen_txts.py
To generate YOLO txt files from the original CrowdHuman annotations.
Please also refer to README.md in this directory.
Inputs:
* raw/annotation_train.odgt
* raw/annotation_val.odgt
* crowdhuman-{width}x{height}/[IDs].jpg
Outputs:
* crowdhuman-{width}x{height}train.txt
* crowdhuman-... | [
"noreply@github.com"
] | noreply@github.com |
4657b5ef101c0d95e12ed37237272291a43f90d8 | 9a418c512179d828f770be43675c85797d6b7955 | /WatchU-Web/WatchU/migrations/versions/bab28d93d304_.py | 8a923f70f7cf8ec2ec3af672d99f4cd857d13692 | [] | no_license | nolzaheo/WatchU | d869af05a33a01350891b47e05b1d31e5b9a4d51 | 891b5b164383deef27fb2a05f9e153bfcf7f07ca | refs/heads/main | 2023-08-12T19:39:52.765170 | 2021-09-06T02:15:50 | 2021-09-06T02:15:50 | 384,020,661 | 6 | 1 | null | 2021-09-04T06:06:14 | 2021-07-08T06:14:14 | Python | UTF-8 | Python | false | false | 1,007 | py | """empty message
Revision ID: bab28d93d304
Revises: 6acd7bdc2a12
Create Date: 2021-07-18 02:24:35.926925
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'bab28d93d304'
down_revision = '6acd7bdc2a12'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"ririhan217@gmail.com"
] | ririhan217@gmail.com |
48c70164518cd8c13035be54a8fd4613798d6f4b | 574a23f57daec3d462967e30ff808779127dc839 | /herle_inventarios/inventarios/serializers.py | 42469033e71751845727f0149bc8dc594c449395 | [] | no_license | RedGranatum/herleBackEnd | 18d3aecf75eb0d349470747f3fca4dbfd1581e80 | 8f21a7f7d0c2d3fdf3ae52eab6b31cbea7d3da97 | refs/heads/master | 2023-01-07T07:32:17.725947 | 2020-12-15T00:23:38 | 2020-12-15T00:23:38 | 57,180,381 | 0 | 0 | null | 2022-12-26T20:22:35 | 2016-04-27T03:25:14 | Python | UTF-8 | Python | false | false | 618 | py | from rest_framework import serializers
from .models import Inventario
class InventarioSerializer(serializers.ModelSerializer):
class Meta:
model = Inventario
fields = ("id","compra_detalle","invoice_compra","material","calibre","ancho","largo",
"codigo_producto","num_rollo","peso_kg","peso_lb","trans... | [
"raultr@gmail.com"
] | raultr@gmail.com |
3b051a123f5f4b507c4df446abc2bd8fcbbdae68 | aa16595dcfb9ce0182069be75f5d3375a43f968b | /PracticePython/actioncode.py | 48b187f671a38bbdd146e8d0995222da7ed5b8d1 | [] | no_license | littleyellowbicycle/DailyPython | dcc01d2058a838227a165f7f939fbf1c64395996 | e8d58c9bd9552bc384bef2e3d3b81628a96694fa | refs/heads/master | 2020-04-16T11:11:07.250641 | 2019-03-28T09:07:57 | 2019-03-28T09:07:57 | 165,526,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | import random, string
f = open('action_code.txt', 'w')
num = 200
chars = string.ascii_letters + string.digits
length = 7
for i in range(num):
s = [random.choice(chars) for i in range(10)]
f.write(' '.join(s) + '\n')
f.close() | [
"33934765+littleyellowbicycle@users.noreply.github.com"
] | 33934765+littleyellowbicycle@users.noreply.github.com |
3a0ea45f933f114de8da1c77a3bcd7beabb89b50 | b1f24463bc877107dfc8857d2a0adb07c08b4688 | /apriori_self.py | cec16267fa695033e66bedfd348e2e4c2290cc7f | [] | no_license | singhgaurav2323/association_learning | c3bd3c8ebe5b17eb383b9fa8ad75b6409dbb0af1 | 0d686091806e5e3fc9d7a9f7615208c7d3f567e1 | refs/heads/master | 2020-06-14T02:18:21.144444 | 2019-07-02T13:07:15 | 2019-07-02T13:07:15 | 194,864,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | #apriori algorithum
#importing libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#getting data set
dataset=pd.read_csv('Market_Basket_Optimisation.csv',header=None)
transaction=[]
for i in range(7501):
transaction.append([str(dataset.values[i,j]) for j in range(20)])
... | [
"noreply@github.com"
] | noreply@github.com |
42bfa1f668710c4d8a6f75b66185a74d208d1026 | 7578e1c3bafb0116162b22a17542629bffbb3ed3 | /main.py | edbb4680a16c7c4e8a60882e6d5c0bf63af707c0 | [] | no_license | Allenem/PyFluMap | 6c1e7f9243ad0755d1ae97d01fa47e6f7ab43cbf | 170c477c40d4d71cf1a204364312e2d6ddad2d34 | refs/heads/master | 2021-01-07T05:05:57.462636 | 2020-03-15T06:58:08 | 2020-03-15T06:58:08 | 241,587,229 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,915 | py | import requests
import json
import os
import pandas
import datetime
from pandas.io.json import json_normalize
from pyecharts.charts import Map
from pyecharts import options as opts
url = 'https://gwpre.sina.cn/interface/fymap2020_data.json'
headers = {
'accept': 'text/html,application/xhtml+xml,application/xml;q... | [
"1820988819@qq.com"
] | 1820988819@qq.com |
b5935e769053443d0cf189014e51f82faab401ff | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02785/s130693103.py | ccbb8dc59483b523e40685ea0fb13bcd61a7bf65 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import heapq
(N,K) = map(int,input().split())
h = [int(x)*-1 for x in input().split()]
ans = 0
heapq.heapify(h)
if K <= N:
for i in range(K):
heapq.heappop(h)
while h != []:
ans -= heapq.heappop(h)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b89a0db5cff4d6fe9fd190fa46a50e2e1c37ba44 | 77b351923960b74b7c578b9d82a0c2c95d9b5c65 | /users/migrations/0004_auto_20210416_1605.py | 1d69a2214c7fc8220ef0a629c4150b7373cf0cf0 | [] | no_license | VladimirDominion/social_network | 559b25fe974ac63698ef505a93af17a17a82ed12 | f513b50ea0087619944522cf54b50b72e730e497 | refs/heads/master | 2023-04-10T05:44:02.284203 | 2021-04-28T09:57:53 | 2021-04-28T09:57:53 | 360,576,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # Generated by Django 3.1.7 on 2021-04-16 16:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('users', '0003_auto_20210414_1130'),
]
operations = [
migrations.AddField(
... | [
"webmagic@ukr.net"
] | webmagic@ukr.net |
a40b865444f2f9ff7e95320493aa8d11be9e7538 | c3ed913e19353d7be022c5caaaa8a6481c605730 | /model.py | 8b347809904abdcdb686abf342a2d6be4ef1cb7b | [] | no_license | vizsatiz/pos-ner-keras | 3e55e4e97bf0e3d6604c653ede439da6feca3d6c | a0961d8610e01399d092793fa51a9572db0fff44 | refs/heads/master | 2022-09-22T09:06:08.003051 | 2020-05-25T06:32:10 | 2020-05-25T06:32:10 | 266,700,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,376 | py | from keras.models import Sequential
from keras.layers import Dense, LSTM, InputLayer, Bidirectional, TimeDistributed, Embedding, Activation
from keras.optimizers import Adam
from keras_preprocessing.sequence import pad_sequences
from sklearn.model_selection import train_test_split
import numpy as np
def to_categorica... | [
"vishnu.satis@truecaller.com"
] | vishnu.satis@truecaller.com |
7744a730409552a8772094efa9f5ef9dbc3fb760 | 29318e44b322e5256b4d5475c0cbc31d3d2ac2b1 | /intro-tornado/MainHandler.py | 0ea549c21b489f7d32cab58e6109fec99c38e494 | [] | no_license | sdpatro/intro-tornado | 20962254454344690402be63e74751352800fe8d | bd2fb68216e98be9de26475ab28091fb16de1533 | refs/heads/master | 2020-05-04T17:28:58.645979 | 2015-06-07T14:46:31 | 2015-06-07T14:46:31 | 36,778,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | __author__ = 'sdpatro'
from tornado.ioloop import IOLoop
from tornado.web import RequestHandler, Application, url
from signup import SignUpHandler
from login import LoginHandler
from DB import DBHandler
from landing import LandingHandler
import torndb
import random
class BaseHandler(RequestHandler):
def get_cur... | [
"ubuntu@ip-172-31-28-36.ap-southeast-1.compute.internal"
] | ubuntu@ip-172-31-28-36.ap-southeast-1.compute.internal |
74648ee75f7c9fe763a5924ee6990640e6cbcbc3 | 59232e245ee771e4a0190784c29388191f3e1489 | /training/gradients/modelSpecificGradientAdjustment.py | ebcf119692f3de4f5010b5545d6ce1c4f20a19b3 | [
"Apache-2.0"
] | permissive | MoritzWillig/flowbias | 96a23a6fba46bcabce0f90c7a2bac54356019e1d | d08e1d8cd250ed147060d374f648e39a23ef16f5 | refs/heads/master | 2022-08-05T05:19:32.565224 | 2020-05-24T14:33:58 | 2020-05-24T14:33:58 | 224,694,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py |
class ExpertAddModelGradientAdjustment:
def __init__(self, args, num_experts):
self._factor = 1.0 / num_experts
def adjust_gradients(self, model):
for p in model.feature_pyramid_extractor.convsBase.parameters():
p.grad *= self._factor
for p in model.flow_estimators.conv1_b... | [
"moritz.willig@gmail.com"
] | moritz.willig@gmail.com |
3fb9777b1f744cb92a1b091e3f81d714ff5bde70 | 1e43cfad3db496ee4715a8b2296cb7aa10288484 | /Python/Python HW4/PA4.py | b73d7418c28639238c973f60cd5557300fd76409 | [] | no_license | AlexandraBarrett24/Projects_Public | b40979e9120b50850a1a0d8eeea600397174c42d | 80dab483e506c13067947e90176060e120ef1a64 | refs/heads/master | 2021-02-06T02:04:42.809429 | 2020-12-03T04:27:40 | 2020-12-03T04:27:40 | 243,863,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,131 | py | import traceback
import math
#For this assignment, you will be implementing a max-heap as a simple Python
#list. You don't need to create a separate heap_size variable, just use
#.append every time you want to add things to the end of the list, or .pop()
#to remove the last element of the list.
#NOTE: max_heap_inser... | [
"noreply@github.com"
] | noreply@github.com |
4dcc0d80d85382c9e6372d04a01edae36e904c2b | f15d2a718185e421946934c12d40fb63f4469c01 | /NewGraph.py | b480e478f0dab9cb9b36169f734e6e7e2374c0e9 | [] | no_license | BIGY2333/hhf | 1d7c456b954aa0607cf8240a98d7420cd76be79a | e03a8809afd185e2991fae297681a34630c2eadd | refs/heads/master | 2023-02-15T07:44:21.318490 | 2021-01-13T05:13:48 | 2021-01-13T05:13:48 | 327,900,750 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,311 | py | import numpy as np
import tensorflow as tf
import copy
import math
from tensorflow.python.framework import graph_util
from tensorflow.contrib.layers import xavier_initializer
import math
import os
import LoadData
import sys
# Batch_size = 128
QP = 35
Iteration = 3001
alpha = 0.2
beta = 0.3
gamma = 0.5
Zreo_Flag = 2
eps... | [
"noreply@github.com"
] | noreply@github.com |
275a965beacc898d34762e7483c622411e29df6e | 008c0a630ffa5bc412571acef2b7462e22fce196 | /tests/test_console.py | 3ec9d656f2396736bf0840eec5723aff6aeb2a8d | [
"BSD-2-Clause",
"Python-2.0",
"BSD-2-Clause-Views"
] | permissive | Jacktwist/python-tcod | dea56c330f5c27d85e71a2c44074b0b2c4536675 | d271cc9892a6bdcd931f7a9984fffc754170b36f | refs/heads/master | 2020-04-28T12:57:01.653126 | 2019-03-11T01:39:52 | 2019-03-11T01:39:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,786 | py | import pickle
import numpy as np
from numpy import array
import pytest
import tcod
@pytest.mark.filterwarnings("ignore:Directly access a consoles")
def test_array_read_write():
console = tcod.console.Console(width=12, height=10)
FG = (255, 254, 253)
BG = (1, 2, 3)
CH = ord('&')
tcod.console_put_... | [
"4b796c65@gmail.com"
] | 4b796c65@gmail.com |
9ec12a679c4085da1dc1f0ad02e26beed272e212 | f46d8b9c2b5981db62d94f9212be1af1c0739824 | /BIOF309-Spring-2013/lecture12/lecture12.py | e42263b7f11dace004d04459618d115277bcbb07 | [] | no_license | mdshw5/lecture-notes | f9d114d53ee5f1e166899c51f8401f50ee89ab20 | 1fb9325ca967f165fc23d7cd31f111b4b5e40c90 | refs/heads/master | 2021-01-10T22:03:05.943706 | 2014-05-01T18:23:14 | 2014-05-01T18:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | from __future__ import division
class read(object):
"""
A class to hold features from fastq reads.
"""
def __init__(self, name, seq, strand, qual):
self.name = name
self.seq = seq
self.strand = strand
self.qual = qual
self.dict = {'A':'T', 'T':'A', 'C':'G', 'G':... | [
"mdshw5@gmail.com"
] | mdshw5@gmail.com |
59ac6c1ca8c6b389889458634600394990b5dc69 | 1f62195fb1960c6bddb38343adbe41c0497e40bc | /torchrl/utils/gym_wrappers/atari_wrappers.py | 14d18b1a90860b41d033edaf180e5bd29d3c4bef | [
"MIT"
] | permissive | alyssonmazoni/torchrl | 800ec186893607adac14c38c39c1d36f3488d3d8 | 75e82f073b7234432b491a21e5083bc55e3e985a | refs/heads/master | 2020-03-16T06:12:43.733257 | 2018-05-05T02:37:50 | 2018-05-05T02:37:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,291 | py | '''
Copied from:
https://github.com/openai/baselines/blob/master/baselines/common/atari_wrappers.py
'''
import numpy as np
import gym
from gym import spaces
import cv2
def atari_wrap(env, frame_skip=4, noop_max=30):
assert 'NoFrameskip' in env.spec.id
env = EpisodicLifeEnv(env)
env = NoopResetEnv(env, noo... | [
"lucasgouvaz@gmail.com"
] | lucasgouvaz@gmail.com |
be4111fbce90624d076a4b5716314151ab4cc46e | d4e38b8a1438c0509f3f160a2ceb9aa166ac3ed1 | /quizzes/quiz1/server.py | 1f8c6d93d9cce2d4febe28260c52823c3b82da31 | [] | no_license | yulu9206/cmpe273-spring2018 | e7ffa36818cb87596de351b36d5dc33ec387bf1b | 8e0eaa0ce951b718dae195753dca0d9fc07b5a97 | refs/heads/master | 2021-04-06T11:17:44.918483 | 2018-03-15T20:26:35 | 2018-03-15T20:26:35 | 125,421,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | import time
import grpc
import ping_pb2
import ping_pb2_grpc
from concurrent import futures
class PingServer(ping_pb2_grpc.PingPongServicer):
def ping(self, request, context):
return ping_pb2.Response(data='Pong')
def run(host, port):
server = grpc.server(futures.ThreadPoolExecutor(max_workers=1))
... | [
"yulu9206@Lus-MacBook-Air.local"
] | yulu9206@Lus-MacBook-Air.local |
27961c0038b053c1f1be779bfd9d542df0ccf5cf | bfa798e9fe47b191055cb9c6ba75fa93fecda46b | /__init__.py | 46c1de77cf6d0ee862650f67aaa411dcd3927b0b | [] | no_license | wisamreid/bindingmodels | 9bcdcf00217f501682f525a362953136cd774a60 | 70be81b875fcaefb484765001e70d6c92f49762b | refs/heads/master | 2021-12-28T09:42:36.116456 | 2016-03-15T21:05:46 | 2016-03-15T21:05:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | #__all__ = [] | [
"david.greenberg@caesar.de"
] | david.greenberg@caesar.de |
bbdb37bda1d6690c31644d950ae7b1bbeff29554 | 6a868bc9d0aa98bfda7b20a0121fc3cb92371b9f | /main/root/country_tools/vietnam/tools.py | 2bb48c785d9bbfb20c715a5d1d074ee235c7fc3c | [] | no_license | MohsenKarimi71/country-crawler | a46a25aa5893e14ac7d1141fbfba4413739ba231 | 66e432b363f8f854316f1bd522995beca67011b7 | refs/heads/master | 2022-08-01T09:37:48.273877 | 2020-05-17T21:40:29 | 2020-05-17T21:40:29 | 252,104,024 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,372 | py | from root.general_tools.tools import get_google_formatted_address_using_address
import re
# VARIABLES
to_be_deleted_from_address = [
"văn phòng mới", "Văn phòng\s?:", "Trụ sở chính", "trụ sở",
"xưởng mộc chính", "xưởng mộc", "Tổng kho", "Miền Trung",
"VPGD", "Địa chỉ", "Điạ chỉ", "VPDD", "Xưởng sản xuất"
]... | [
"mohsen1076@gmail.com"
] | mohsen1076@gmail.com |
b2e5d3184c91e12fd93e7dd2ac6413c724d339de | 5eda468fce23ec99250dd365026f0905dcbc9bad | /tlac/tlac_analysis/tlac_plot.py | 0634145761e33d53a2813684eb6cc038c550320f | [] | no_license | laurennc/CGMemission | fc7b9303081b93475e720cc4a38b68906bec716a | 59d6c73bcf5128fc0c46f41ab9c6e6784bbe23c2 | refs/heads/master | 2021-01-15T15:31:38.710202 | 2016-09-20T21:38:17 | 2016-09-20T21:38:17 | 13,177,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,437 | py | from weighted_kde import Covariator, gaussian_kde
from tlac_weights import tlac_weights
from TlacDatSet import TlacDatSet
from matplotlib.widgets import Slider
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
from scipy.signal import gaussian
import brewer2mpl
from physics import pc
def plot_i... | [
"lcorlie@gmail.com"
] | lcorlie@gmail.com |
7436e421f2212c5936a6e5a99a60d84f1c851284 | 1b138d64ef74a94daaef951a50ad644db8fa11b6 | /tools/ci/test_autocomplete.py | d85a915ee3823b206ba8c563a37ea5a65a2bb3a8 | [
"Apache-2.0"
] | permissive | mydingdingcat/esp-idf | 9194d070433b95318155dd880bdabd537557103f | c0d07e88a6db47068ff364c070a84b5ae379096a | refs/heads/master | 2023-02-28T11:02:53.332171 | 2021-02-01T06:18:44 | 2021-02-01T06:18:44 | 302,857,396 | 0 | 0 | Apache-2.0 | 2021-02-01T06:18:45 | 2020-10-10T08:49:18 | C | UTF-8 | Python | false | false | 2,585 | py | #!/usr/bin/env python
import os
import sys
import pexpect
import unittest
class Test(unittest.TestCase):
def test_fish(self):
os.environ["TERM"] = "vt100"
child = pexpect.spawn("fish -i")
with open(os.environ["IDF_PATH"] + "/fish" + str(sys.version_info.major) + ".out", "wb") as output:
... | [
"martin.gano@espressif.com"
] | martin.gano@espressif.com |
3c4b32139d6ead0ec187a9353937ed6de5f66510 | 66a1db3665ba17e23ad0c5d369522d8d85700d0b | /ab_me.py | 6aeb88b4153cf76de1bae18f2f97c058625bb10c | [] | no_license | DaniilAnichin/for_Ann | 3fef93b7d9ea025f6acb7f6d99b02ec089777cd6 | 3e4aaa7185a7124720787318fd58472865950fe1 | refs/heads/master | 2016-09-14T20:25:06.611741 | 2016-05-22T18:02:51 | 2016-05-22T18:02:51 | 59,426,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
def main():
print "a * x**2 + b * x + c = 0"
a = int(raw_input("Input a: "))
b = int(raw_input("Input b: "))
c = int(raw_input("Input c: "))
if a == 0:
x = -c / b
print "The only solution is %d" % (x)
return 0
d = b... | [
"anichindaniil@gmail.com"
] | anichindaniil@gmail.com |
d56e4de73d83103113b28563f1b04512ad0e94bf | a3aef98ef1e5945a4fc13ebf7465c889021606ed | /alien_invasion/alien.py | fe11a156f276db14393bb12c54fbed7b020da6ec | [] | no_license | Luka617/Alien_Invasion.py | e38de261134ee03934d06ca6a601cc7ac4308bcc | ffc49980af5562516243902625dfde4014cbb93b | refs/heads/main | 2023-04-28T20:08:20.630835 | 2021-05-10T19:14:12 | 2021-05-10T19:14:12 | 366,149,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | import pygame
from pygame.sprite import Sprite
class Alien(Sprite):
"""Uma classe que representa um único alienígena da frota."""
def __init__(self, ai_settings, screen):
"""Inicializa o alienígena e define sua posição inicial."""
super(Alien, self).__init__()
self.screen = sc... | [
"noreply@github.com"
] | noreply@github.com |
0d6cecd8c6c30597c9556e7c157986004151de3b | 9ce2e9219175191ac08bffb25c3557caffd5adcd | /src/runtime/paralell.py | c4c88d1d5f65123fad2630089553706bfc465394 | [
"MIT"
] | permissive | licit-lab/enforcing-routing-dam | 99e9f59b48e5db887cf02202e9be8eb801dc6887 | 508f2eb3b5c39600482e3ba847d98e986408f4fa | refs/heads/master | 2023-08-13T01:58:50.213024 | 2021-10-19T09:30:02 | 2021-10-19T09:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,575 | py | """
Functions and scripts for running paralell tasks
"""
# --------------------------------------------------------------------------------------------------
# IMPORTS
# --------------------------------------------------------------------------------------------------
from tqdm import tqdm
from multiprocessing i... | [
"aladinoster@gmail.com"
] | aladinoster@gmail.com |
7bfb340afa9df5a5df6c0f09a08cba7269997bbb | ecd0cffe45c6fee6ce02b70fb5721caac66a7b37 | /Data_Structures/Graphs/DijkstraAlgorithm.py | d16d8b75f887ff9deefb3181f6df5ca25839d837 | [] | no_license | johngaitho05/Interview-Questions | 75925ba5e3326857a13cfe6e1add27be3d1aa83e | 979f6960bc44186208c629403fa4ed73f72673b0 | refs/heads/master | 2021-05-21T13:39:48.290629 | 2020-06-18T05:51:30 | 2020-06-18T05:51:30 | 252,669,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | import sys
import heapq
def cmp(x, y):
"""
Replacement for built-in function cmp that was removed in Python 3
Compare the two objects x and y and return an integer according to
the outcome. The return value is negative if x < y, zero if x == y
and strictly positive if x > y.
... | [
"johngaitho05@gmail.com"
] | johngaitho05@gmail.com |
83a100b6d792ed56bba91d96736deda6ec3cc8f2 | 008d54e05913416cfe6ce2581e365b0020159e93 | /bot/models.py | 5b1ad1246fd2bf9e53ed2c8b67c6e5a8d01c2a7e | [] | no_license | ShinjiroMoriya/line-chatbot-demosuke | 745fb1db588a1670620238a09c264cd39f4dcf9b | 01fcd4f9ea91cf96c4db84ef25f4d365fd387f1a | refs/heads/master | 2022-12-12T18:36:41.711325 | 2017-09-25T13:53:11 | 2017-09-25T13:53:11 | 99,872,545 | 0 | 0 | null | 2022-12-07T23:59:54 | 2017-08-10T02:31:48 | Python | UTF-8 | Python | false | false | 1,650 | py | from datetime import datetime
from django.db import models
class SfBot(models.Model):
class Meta:
db_table = 'bot_response__c'
question = models.CharField(max_length=255, null=True, blank=True,
db_column='question_sentence__c')
access_point = models.CharField(max_l... | [
"moriya@tam-tam.co.jp"
] | moriya@tam-tam.co.jp |
6c05bbb9305c2349beb63579e23f3235798b94b6 | b421fcd22319b5399c8f10203a4e38e6548e5f2e | /celery_project/tools/collections/shop_details_collection.py | c938e82adc3ef380fbd433dadf76c237202dc08b | [
"Apache-2.0"
] | permissive | JasonLearning/dzdp_spider | cdcd4b081bf5e3eb604c2dae1e142d4b2d8505d6 | 2e09b1a18ae7f168ff1cd7457dc6b50f2cb364a7 | refs/heads/master | 2020-04-06T04:13:31.747279 | 2017-02-24T08:49:11 | 2017-02-24T08:49:11 | 83,019,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 17/2/20 上午11:58
# @Author : Jason
# @File : shop_details_collection.py
from mongoengine import *
from tools.job_helper import JobField, JobStatus, Jobs
from tools.exceptions import *
from tools.collections.documents.shop_details_collection_documents i... | [
"simon@adsl-172-12-23-161.dsl.lsan03.sbcglobal.net"
] | simon@adsl-172-12-23-161.dsl.lsan03.sbcglobal.net |
4e002b5686347ed88f6cdedb7abdcf243b016c94 | aa9e71fa553295a9f0bd54b957833af307cf9357 | /imageex/util/fileutil.py | 47975e913269c196d8ff8cdb52695d54fa87aa99 | [] | no_license | tehm28/image-extraction-server | 87b3c5355113004fb3b06d0949207cfbbde5a35a | 327abb630414b243b454ce91942eb90e0fef38dc | refs/heads/master | 2021-01-19T12:07:35.072418 | 2013-10-25T13:40:46 | 2013-10-25T13:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py |
def copy_uploaded_file(f, destination):
destination = open(destination, 'wb+')
for chunk in f.chunks():
destination.write(chunk)
destination.close()
| [
"dekervit@gmail.com"
] | dekervit@gmail.com |
2e390a9f9b005c8de77b9ccc7a9f4978c4fe594b | 26e12dfcfc646076e51addb53903ad5ce83bfa23 | /test.py | 99d1abe4f8bc40c08129bca77dbfa157131f8685 | [
"MIT"
] | permissive | linchuming/WSSDCNN | e0da5657abdbfb1109f0527a0f4456dd758bf3bc | f603833873ed9c636d7fbcd8cd3b4bfc1dd9be19 | refs/heads/master | 2020-06-07T01:50:25.232895 | 2019-06-20T10:56:47 | 2019-06-20T10:56:47 | 192,895,494 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | import tensorflow as tf
import numpy as np
from scipy import misc
import os
from model import net
inp = tf.placeholder(tf.float32, [None, 224, None, 3])
ar = tf.placeholder(tf.float32, [])
m = net()
res = m.test(inp, ar)
sess = tf.Session()
saver = tf.train.Saver()
saver.restore(sess, 'model_ckpt/model.ckpt')
input_... | [
"linchuming@github.com"
] | linchuming@github.com |
5710878a2c4a56ded8b24cafc63edf794d4faab5 | f8e8fed33e37b8a27f412ea7f7a8dabe5a174b24 | /app/forms.py | a1fc617d11bbb7f7dddddeb14b482a1092c8c60c | [] | no_license | mpasricha1/microblog | 034b20fcec6660e4ebfc8193eec6e6db0f1a526e | 207f1da4f63aaa71547ed5eb2a4618b6b9b9a71b | refs/heads/master | 2022-11-22T18:46:07.179766 | 2020-07-17T19:56:57 | 2020-07-17T19:56:57 | 280,466,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
username = StringField("Username", validators=[DataRequired()])
password = PasswordField("Password", validators=[DataRequired()])
rememb... | [
"markp862@gmail.com"
] | markp862@gmail.com |
17d4b89f12e2c7d09be8d617595bd64e2752fdba | ac5e6615060f57ede74dbd1c012aaa83cd101321 | /tp/ticTacToe.py | e302ddb2565925457439258e801a7fa3f6f96343 | [] | no_license | xpack94/python | d042a17fda2378d376e44bb4cbc50d769cde8699 | 8e61538218f7de66b0ab328eb7be1abdbab0d929 | refs/heads/master | 2020-05-20T20:02:41.047487 | 2018-07-09T03:30:14 | 2018-07-09T03:30:14 | 84,517,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,658 | py | #code fait par Abdesselam NAHNAH et Ines AYARI
from case import Case
import random
class tic_tac_toe:
#dIntervale = debut d'intervale , fInterval = fin d'intervale
#car chaque tic_tac_toe a son propre intervale de nombre
#exemple le 1er entre [0-8] 2 eme entre [9-17] etc...
def __init__(self,dInterv... | [
"void94@live.fr"
] | void94@live.fr |
f787f4e893e031beb971965ab9fcd5ad7fea6217 | 15e5b2e39d8f1c08b34b36783cc5504638e3e434 | /TODO-PROJECT/todo-back/todos/migrations/0001_initial.py | 318ee532b77426a5c00753188598859bd9f21d93 | [] | no_license | ghdus4185/Vue_intro | 62e0ded5b4a23ef34869d8e0bb7b337a7e9c934f | b999f19a4140b2456614625f8063ff919b8cdfed | refs/heads/master | 2023-01-13T09:42:15.804784 | 2019-11-21T00:01:38 | 2019-11-21T00:01:38 | 219,454,656 | 0 | 0 | null | 2023-01-07T21:19:32 | 2019-11-04T08:41:36 | HTML | UTF-8 | Python | false | false | 3,393 | py | # Generated by Django 2.2.6 on 2019-11-18 06:18
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"ckdghdus@naver.com"
] | ckdghdus@naver.com |
44eb91b5d3cfb1ccf26d157b4e892dd4ab74459d | 57fad2716596d3ce264176a6c80ade063c4c5cba | /figure6.py | b71e95c7963a51e5358d04f70de4691b78390191 | [] | no_license | OlegFS/ED-simulations | 2596958562d79aa74b0f77aa0fa337947b573157 | 3e89919df2be64b491037704cc9e610f68360d1c | refs/heads/master | 2020-04-12T00:12:03.810656 | 2019-04-28T19:42:43 | 2019-04-28T19:42:43 | 162,192,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,714 | py | %matplotlib inline
import pandas as pd
from func.processing_helpers import *
from func.ED_sim_ad import save_obj, load_obj
import seaborn as sns
sns.set_style('ticks')
sns.set_context('paper')
import matplotlib as mpl
mpl.rcParams['pdf.fonttype'] = 42
import matplotlib
# matplotlib.use('PDF')
import matplotlib.pylab ... | [
"o.vinogradov.92@gmail.com"
] | o.vinogradov.92@gmail.com |
a443bc1ff37c65ac9a675e1b051f9c343c668fe0 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnprimev.py | b38df65ef76b7a4749b5371f10fce62d9dcee3fb | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 727 | py | ii = [('BentJDO2.py', 1), ('LyelCPG2.py', 1), ('RogePAV2.py', 2), ('GodwWSL2.py', 1), ('RogePAV.py', 4), ('SadlMLP.py', 2), ('WilkJMC3.py', 1), ('PettTHE.py', 1), ('PeckJNG.py', 1), ('ChalTPW2.py', 2), ('AdamWEP.py', 1), ('CarlTFR.py', 3), ('RoscTTI3.py', 1), ('BailJD1.py', 1), ('BuckWGM.py', 17), ('LyelCPG.py', 11), (... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
c546257eaa0ecddf62503a821e50efcb854c3192 | 0726bf1e9b76a9e48a908c093c1f44d03412ef06 | /clouds/cloudClass/server.py | 825d91fef43010bdb96866cf74433bc4718107ba | [] | no_license | haguru/cloudS | 028fa2dedba564a06b33604a5aeb8d06092cd0fc | 5901f855ff3ce16020b8aed0212494cda3cadc80 | refs/heads/master | 2021-01-22T06:06:27.276578 | 2013-06-12T20:46:48 | 2013-06-12T20:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import sys
from OpenSSL import SSL
import socket
import thread
class server:
def __init__(self):
self.buffer = 1024
self.serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.address = ("", 12345)
context = SSL.Context(SSL.SSLv23_METHOD)
context.use_private... | [
"marc.p.fuller@gmail.com"
] | marc.p.fuller@gmail.com |
8b07c0d19f6538fff2340e3c06e09aba7bac2636 | 0ca210752cd5b926201f3fb40ee4aadc6da4f537 | /code/test_hd22879.py | bdca611a496161a373724a5b3bd0c099afc339a0 | [
"MIT"
] | permissive | andycasey/precise-objective-differential-spectroscopy | f45f93dfdaeb78d138d7792c439cf7b6065882c5 | 658b0d226300330375570dd2450bb284f1cf167a | refs/heads/master | 2021-01-19T20:24:48.539975 | 2014-07-09T13:41:32 | 2014-07-09T13:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | import cPickle as pickle
from stellar_parameters import Star
from channel import SpectralChannel
class spectrum(object):
pass
import sick
spec = sick.specutils.Spectrum.load("spectra/hermes-sun.fits")
spec = sick.specutils.Spectrum.load("spectra/uvessun1.txt")
blue_channel = spectrum()
blue_channel.dispersi... | [
"andycasey@gmail.com"
] | andycasey@gmail.com |
73a145d26a657841c35d7ea4b5ab7b210955a4ee | b3879bc761ac38dab903da57c4061ad79fd70c6d | /курсы пайтон модуль 8/задание 9.py | 6957678c459752ce7e24854b4f53dc592a0069d7 | [] | no_license | Ruslan5252/all-of-my-projects-byPyCharm | 4df70cc3a31c4a5d97560fa858a706edcc856299 | 817d5f711408590ea141590ae52c6d888dfa2015 | refs/heads/master | 2023-05-03T01:06:30.156731 | 2021-05-29T13:51:16 | 2021-05-29T13:51:16 | 371,970,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,957 | py | class Car():
def __init__(self,name,model,maxSpeed,year,volume):
self.name=name
self.model=model
self.maxSpeed=maxSpeed
self.year=year
self.volume=volume
def ride(self):
print(f"машина названием ",{self.name},"моделью ",{self.model},"с максимальной скоростью ",{se... | [
"r.u.s_2000@mail.ru"
] | r.u.s_2000@mail.ru |
7313f4a1ae3750338d01d8a7f5eda07d91252229 | bcf38584267b682cbf05707228002688ad5cd316 | /hangman.py | ab7685ea25bcee1742d398a1c31351031f922cc4 | [] | no_license | jreiskitamura/bootcamp_phase1_assignments | c37dc6093d6bb5eaae89b0571d7f19303914e995 | de215d6f151b74755b72c2ace3b0d91b1d717f60 | refs/heads/main | 2023-07-20T05:31:09.836582 | 2021-08-21T13:53:34 | 2021-08-21T13:53:34 | 371,100,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | import random
words_pool = ('ant', 'baboon', 'camel', 'deer', 'eagle', 'frog', 'goat', 'hippopotamus', 'iguana', 'jaguar', 'kangaroo', 'lion', 'monkey',
'narwhal', 'owl', 'parrot', 'quail', 'rabbit', 'shark', 'tiger', 'umbrellabird', 'vulture', 'whale', 'yak', 'zebra')
def position(pos, word, letter):
for ... | [
"noreply@github.com"
] | noreply@github.com |
6bad1c404b4e082ae373e1ed9d231588482723b1 | a8f2ed3b244e415787e6dc5838405143cfcb71b3 | /other/p/SIT742A1/tfidftest.py | 49f13722446b8051726c7db4bdd7b1a34f207b1e | [
"MIT"
] | permissive | thezaza101/Python-Code-Snippets | 60676aec58da63f919ef6c5bc8c0a54a83de90ab | e9c3004165161960f812af8f83794adc8a11f891 | refs/heads/master | 2023-02-06T00:51:57.731182 | 2023-02-03T08:04:51 | 2023-02-03T08:04:51 | 157,140,258 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | # https://nlpforhackers.io/tf-idf/
from nltk.corpus import reuters
print
reuters.fileids() # The list of file names inside the corpus
print
len(reuters.fileids()) # Number of files in the corpus = 10788
# Print the categories associated with a file
print
reuters.categories('training/999') # [u'interest', u'money-... | [
"thezaza102@gmail.com"
] | thezaza102@gmail.com |
163ef3f305c3772d2d7644c28856b2fc13b47f3b | 55a2e62805cca90f46f3ac9c9501aa3386ab3109 | /games/urls.py | f8a56294778ab42f63bedfc70f5c669ad53da1b9 | [] | no_license | profmcdan/games-service | 2bf5d533b797d46e6a27ae63eac9c367cf144497 | 24049d08cfc645bd750839bcd0eba16fa7d7ee2d | refs/heads/master | 2022-12-16T01:19:09.859633 | 2019-08-06T15:11:54 | 2019-08-06T15:11:54 | 200,827,749 | 0 | 0 | null | 2022-12-08T01:48:16 | 2019-08-06T10:14:54 | Python | UTF-8 | Python | false | false | 984 | py | # from django.conf.urls import url
from django.urls import path
# from .views import game_collection, game_detail
from . import views
urlpatterns = [
path('esrb-ratings/', views.EsrbRatingList.as_view(),
name=views.EsrbRatingList.name),
path('esrb-ratings/<int:pk>/', views.EsrbRatingDetail.as_view(),
... | [
"danielale9291@gmail.com"
] | danielale9291@gmail.com |
3e32943567f730c9cc11d478708fc775051751e7 | 64f8871699844acaaabc7a5d97e0bcb5fd04e51f | /knn/KNN_ui.py | 626b53b9338a20be062bf1d0c0476cffd1b6effb | [] | no_license | RuizGeo/geoPatterns | 77985aa1cd2e0ba6dbddcd7ea4241145561e37d1 | dfdc5fda2bc46a717c077b9f4b1b0bdc1571062a | refs/heads/master | 2021-01-19T17:02:59.110083 | 2019-06-08T18:37:09 | 2019-06-08T18:37:09 | 88,300,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,422 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'KNN_ui.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName... | [
"noreply@github.com"
] | noreply@github.com |
bf94cb438546b043eda48aad160c37f469282b29 | 80fdbb5a1fd8815b7f343451c61456b38d635bfe | /market_alphas.py | e2b60a42cce3bbbc117926eab1333bb5ec1b32a8 | [] | no_license | donnate/Financial-Networks | 8416df19f457bc73db161e52e473c3356c169125 | 9eedb24590f04d6a9c2f2d620011d64a8e5371bb | refs/heads/master | 2021-08-23T06:31:01.908940 | 2017-12-03T22:33:34 | 2017-12-03T22:33:34 | 112,968,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 28 23:31:11 2017
@author: cdonnat
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import pickle
import sys
from regression import *
def compute_weights(stock_data,Volume_data):
value_data=Volume_data*stock_data
... | [
"claire.donnat@gmail.com"
] | claire.donnat@gmail.com |
f5b439565e4463e6269798259de653eacdfd482e | 03195a6f98396fd27aedc3c06d81f1553fb1d16b | /pandas/_libs/properties.pyi | b2ba55aefb8a57e9a884c9c07d3882b1e3014f78 | [
"BSD-3-Clause"
] | permissive | huaxz1986/pandas | a08d80d27726fe141d449835b9a09265bca5b5e0 | ba2473834fedcf571d3f8245b4b24796873f2736 | refs/heads/master | 2023-06-11T02:20:14.544220 | 2022-01-12T04:40:06 | 2022-01-12T04:40:06 | 131,370,494 | 3 | 4 | BSD-3-Clause | 2018-04-28T03:51:05 | 2018-04-28T03:51:05 | null | UTF-8 | Python | false | false | 330 | pyi | # pyright: reportIncompleteStub = false
from typing import Any
# note: this is a lie to make type checkers happy (they special
# case property). cache_readonly uses attribute names similar to
# property (fget) but it does not provide fset and fdel.
cache_readonly = property
def __getattr__(name: str) -> Any: ... # i... | [
"noreply@github.com"
] | noreply@github.com |
8fca49fbe0da62e740f590084e3aea24dc479f4e | fcd29745ed7a66b46f5039c2ad07f2fa5cb457a2 | /6_files/files_project/app.py | 758c311e0fb3ecf125e133b27a725f2b0261621f | [
"MIT"
] | permissive | PacktPublishing/The-Complete-Python-Course | 17489ec6939b5c6c20b92d5bb2d15a71a6444f8e | b880ef9c0e281316f4080531d3690435a686e9c0 | refs/heads/master | 2023-02-19T04:22:33.451524 | 2023-02-02T06:04:40 | 2023-02-02T06:04:40 | 204,631,924 | 56 | 72 | MIT | 2023-02-15T23:21:39 | 2019-08-27T06:09:32 | Python | UTF-8 | Python | false | false | 239 | py | my_file = open('data.txt', 'r')
file_content = my_file.read()
my_file.close()
print(file_content)
user_name = input('Enter your name: ')
my_file_writing = open('data.txt', 'w')
my_file_writing.write(user_name)
my_file_writing.close()
| [
"dwayned@packtpub.com"
] | dwayned@packtpub.com |
c9c81cd53405a0054875a0aa50133c14c0d220f9 | 7429e2c7e8db6abde5e3c748f25252c233707538 | /apptocken.py | 82b35aa460405ab4ea2c3cdf26f763da1e9f4265 | [] | no_license | AkashdeepSinghGill/InstaBot | 4c71cb94778d3bce52f1036dfbbbc26812ca67be | 491fd9fe2f9d216dc214084604697b6d6e879388 | refs/heads/master | 2020-12-10T03:21:27.365264 | 2017-07-10T13:22:26 | 2017-07-10T13:22:26 | 95,520,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | APP_ACCESS_TOKEN = '1654028982.0e7578a.8bfbdd35e4fc46e6b180b0fc4d1535ad' | [
"akash1177@icloud.com"
] | akash1177@icloud.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.