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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c556de226edde09471674b59fa0ffadb936623b | 57fce51c4ded21c621759ea710e6083e7ab33cff | /proyecto/main.py | 7e0971c8e9292df6d9ce89806919e73310aed8d6 | [] | no_license | KellyBSB/Juego | 7df5f1a6866d9d76110498b61da22b3de3826d72 | 7b99998530cb8cc7009518945a750b820ffd0e34 | refs/heads/master | 2020-03-23T17:18:01.530203 | 2018-08-04T01:54:28 | 2018-08-04T01:54:28 | 141,853,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | import pygame
import player
import player2
#inicializar modulos de pygame
pygame.init()
# Dimensiones de la pantalla
ancho_ventana = 1000
alto_ventana = 600
#Crear pantalla
pantalla = pygame.display.set_mode((ancho_ventana, alto_ventana))
pygame.display.set_caption("TRIGON FUCIONADO")
#reloj
clock = pygame.time.Clock(... | [
"jose.cortez@epn.edu.ec"
] | jose.cortez@epn.edu.ec |
bc308d81cf048f0446bc05609769c8cd0312543c | f808e3c97bb696480a5762f80af6a6570d1cc893 | /playbox_ui/ott/app.py | 612351c5d726f9d6c635c8cbc280ecf1c2297037 | [] | no_license | headrun/Playbox | 767261ac036da62ea1864c34711cd43e3d16417e | f6f7514a7373db2acc3d16ae74248a9a274c6ef6 | refs/heads/master | 2022-04-12T18:30:02.308140 | 2020-03-05T14:57:03 | 2020-03-05T14:57:03 | 143,406,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | from flask import Flask, request, render_template, jsonify
import requests
import json
app = Flask(__name__)
"""http://data.headrun.com/api/?dead_sort_by=True&format=json&is_valid=1&source_id=netflix&item_type=movie"""
"""rn = requests.get('http://data.headrun.com/api/?dead_sort_by=True&format=json&is_valid=1&item_typ... | [
"avadhani@headrun.com"
] | avadhani@headrun.com |
7058a1067bcdf41f05caf7e5fd72bf6a36049b7c | 2dd63179b9e907a5da79bb790f71d58ada8300fb | /CMPE590_IBM_Models/IBMModel2.py | dd5ad64a30bcf0299fdbd171616087b0780e6747 | [] | no_license | zhalerokh/IBM-Models-1-2-3 | b1408301711d4548f9afe921bb7cc41f46d051ad | c5548015c5d14d43ad7e45fb2c2eb9715b7261d1 | refs/heads/master | 2021-06-20T11:37:28.685297 | 2017-06-22T18:25:14 | 2017-06-22T18:25:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,910 | py | import numpy as np
from datetime import datetime
import Common
def train(t_e_f_mat, e_word_dict,f_word_dict,e_sentences,f_sentences,max_le,max_lf):
print("IBMModel2 Starts " + str(datetime.now()))
a_i_le_lf_mat = np.zeros((max_lf, max_le, max_lf,max_le), dtype=float)
for lf in range(max_lf):
a_i_... | [
"aztech_onur@hotmail.com"
] | aztech_onur@hotmail.com |
33f9e3670e44f1e0d5d806e780f97f095032b039 | 7d9809b4c679525ff02c851d18ed8d7a8604eb8f | /2018/218-the-skyline-problem.py | 0d84d14cec0df6309e0d8691030373d9149bf779 | [] | no_license | the-potato-man/lc | e3fe99c2ceb10502310deb3dceb6da0f63726b29 | 28219fbc5e2e96f59e9d2b9d1da18f05187898c8 | refs/heads/master | 2020-04-03T06:57:51.682775 | 2019-10-26T04:04:42 | 2019-10-26T04:04:42 | 155,089,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | # https://leetcode.com/problems/the-skyline-problem/discuss/197959/Java-Heap-with-Explanations
import heapq
class Point:
def __init__(self, x, height):
self.x = x
self.height = height
# Negative heights are building starts, positive are building ends
# Easier than have isStart bool... | [
"peterlin741@gmail.com"
] | peterlin741@gmail.com |
f57d10cb23fa6300616fe2080588f7d3c6404adb | 190072bc404751d83e5aceb99a34ccba1067caae | /photobot/examples/Layer_function_select.py | 6437d18ae66b047371f687e0ca0497d59b8a25ed | [
"MIT"
] | permissive | karstenw/Library | ab751bde79bb0bd2bd7f705901dab415ba154476 | 9c3f665be4988c14d939d28e7729c72819bba446 | refs/heads/master | 2023-08-14T04:53:15.559747 | 2023-07-16T12:27:19 | 2023-07-16T12:27:19 | 46,520,062 | 0 | 0 | null | 2023-05-18T14:06:29 | 2015-11-19T21:00:38 | Python | UTF-8 | Python | false | false | 1,223 | py | import sys, os
# need a different name
import random as rnd
import pprint
pp = pprint.pprint
import pdb
kwdbg = 0
W, H = 542, 1050
fullwidth = int(W-20)
tilewidth = int((fullwidth-10) / 2.0)
# check for Nodebox
NB = True
try:
_ctx
except(NameError):
NB = False
if NB:
size(W, H)
pb = ximport("phot... | [
"karstenwo@web.de"
] | karstenwo@web.de |
c3e5ac9657c6a68133633a1e6cf922e32dec52c2 | 806709d56129cf9c5422b5e58be7072d21887b7d | /HW_clock/clockapp/apps.py | 688d37335d37894cee69aa8591f52c6f0c302190 | [] | no_license | merry-hyelyn/LikeLion | 6334f5cc909a090a5e264aedcd9d790436ce59cf | cbd1654abd0bfbf872c2c670c604679467f5ef8e | refs/heads/master | 2020-07-11T07:14:31.308439 | 2019-09-13T14:26:47 | 2019-09-13T14:26:47 | 204,473,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class ClockappConfig(AppConfig):
name = 'clockapp'
| [
"h1335@naver.com"
] | h1335@naver.com |
136774250408e9d68d6da852e77eb24f49fbaf94 | 72425238c8ec033959166bb54299f864db5d209d | /services/searching_service/models/database.py | e9f79c86720f51e63ec4d04c040945da6fba23f7 | [] | no_license | bjain853/Proflix | 23eccec6af954d5835d8eff64c83f9d5def8fe7c | 2bc6654845767040d1293422523a7d12fcf95541 | refs/heads/main | 2023-05-27T21:44:56.667211 | 2021-06-20T19:23:43 | 2021-06-20T19:23:43 | 323,517,774 | 0 | 0 | null | 2020-12-28T19:03:23 | 2020-12-22T04:12:11 | null | UTF-8 | Python | false | false | 295 | py | import mysql.connector
from dotenv import dotenv_values,find_dotenv
env_values = dotenv_values(find_dotenv())
mydb = mysql.connector.connect(
host=env_values.get('SQL_HOST'),
user=env_values.get('SQL_USER'),
password=env_values.get('SQL_PASSWORD'),
database=env_values.get('SQL_DB')
)
| [
"jainbhavya375@gmail.com"
] | jainbhavya375@gmail.com |
a7d703c496fda08096008e6140bc61e338ee55b3 | 1926038dbd00db13d753685fe9d7e15554f548a5 | /BookManage/models.py | cf62741097425d7cebc2222ca02b147a4b5f7953 | [] | no_license | weixinyu1/BMS | a35afdb6d9e200fcaa34fa70163ac0cb0aa3ef0b | c57e856d07c84a28c542dd249d28c7968579acd0 | refs/heads/master | 2020-03-28T19:14:53.867290 | 2018-09-17T06:11:59 | 2018-09-17T06:11:59 | 148,958,446 | 0 | 0 | null | 2018-09-16T03:06:08 | 2018-09-16T03:06:08 | null | UTF-8 | Python | false | false | 1,563 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
# 书籍类型
class BookType(models.Model):
# 书籍类型名称
tname=models.CharField(max_length=20,unique=True,verbose_name='类型')
# 书籍信息
class Book(models.Model):
# 书籍编号
bid=models.PositiveIntege... | [
"260714119@qq.com"
] | 260714119@qq.com |
2d744196586c9f9acee6d3deeb042a425d00f44c | 2d289b9f916daf55bd8bffae8c77c87c9dc75b13 | /__init__.py | 002328f7aff4a8ba0d38ccbeb23ea91a7cf432cb | [
"MIT"
] | permissive | Christophedlr/WirexCryptoManager | 78040ca5f893f5ef2fe764d3ef213a093e47865d | 7e6625c8901f6bb31cb06c6f1ed96a9813dfdcbc | refs/heads/master | 2022-12-25T14:45:04.537705 | 2020-10-01T18:15:50 | 2020-10-01T18:25:23 | 299,296,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | import sys
from PyQt5.QtWidgets import QApplication
from manager.windows.QTransactionsList import QTransactionsList
app = QApplication(sys.argv)
transactions_list = QTransactionsList()
transactions_list.show()
if __name__ == "__main__":
app.exec_()
| [
"christophedlr@gmail.com"
] | christophedlr@gmail.com |
19a267b88eeda5563af6a304dcbd755284124dfc | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_84/177.py | db6951d5ed962140a11a025f300265217eb10a9c | [] | 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 | 705 | py | # coding: shift-jis
import sys
f = file(sys.argv[1])
test_cnt = int(f.readline())
for case in range(1, test_cnt+1):
V, H = map(int, f.readline().split())
row = [list(f.readline()[:-1]) for _ in range(V) ]
ret = True
for v in range(V):
for h in range(H):
if row[v][h] == '#':
if v == V... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d2ec425e0b2192be7dfe012b31b4c6e42bd2cae2 | 45480932961cf7472f3adb63ea043ceeb1684b15 | /实验3 随机森林/tree/devideData.py | 934abfc5b2424724960a30ec35f05845d9b4a408 | [] | no_license | Challis-yin/MLearning | 264c75ca465023672642d7f5de9ef19000b6030f | 311873f242a830be2c2e8bfb2c47570ccaf6620b | refs/heads/master | 2020-08-27T03:51:39.692085 | 2019-12-17T09:48:13 | 2019-12-17T09:48:13 | 217,236,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | import csv
import random
from math import log
import numpy as np
dict_iris = {'Iris-setosa': 0, 'Iris-versicolor': 1, 'Iris-virginica': 2}
dict_siri = {0: 'Iris-setosa', 1: 'Iris-versicolor', 2: 'Iris-virginica'}
# 加载函数
def loadcsv(name):
f = csv.reader(open(name, 'r'))
dataset = list(f)
return dataset
... | [
"sdyinruichao@163.com"
] | sdyinruichao@163.com |
6a9727a84a58a3c17a257bafd64c3423e263ac0a | 9a93a4d9e8d7424ccc3947ed8486083b815c5276 | /websockets/exceptions.py | 1b758c648ad74be77879f58c0bf6c315f1664f94 | [
"BSD-3-Clause"
] | permissive | MariaElysse/websockets | de40f7dea8fa26c5f29a0cc2bf41d78c1acd2ac8 | 4216b35384c177981c4d18d763248c712b8e21d4 | refs/heads/master | 2020-03-26T19:26:29.171235 | 2018-08-11T10:16:12 | 2018-08-11T10:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,462 | py | __all__ = [
'AbortHandshake', 'ConnectionClosed', 'DuplicateParameter',
'InvalidHandshake', 'InvalidHeader', 'InvalidHeaderFormat',
'InvalidHeaderValue', 'InvalidMessage', 'InvalidOrigin',
'InvalidParameterName', 'InvalidParameterValue', 'InvalidState',
'InvalidStatusCode', 'InvalidUpgrade', 'Invali... | [
"aymeric.augustin@m4x.org"
] | aymeric.augustin@m4x.org |
d96f1e56f4b8aa0ac94be4330d3f7524cc14c3a7 | ffd19240effa4f50b8469432d6ad2078e6b0db7d | /app/models.py | 2e9fa0ba6b2c20f730a447db3c7f950342cbe5c6 | [] | no_license | Jackson-coder-arch/Studio-session-booker | 98e26ca1ef7953b81562884b4306becde097a47c | de20432fa3bb0660c7499efd5dd0917f0218670b | refs/heads/features | 2023-03-21T11:42:48.043138 | 2021-03-12T08:49:34 | 2021-03-12T08:49:34 | 345,683,743 | 0 | 0 | null | 2021-03-12T08:49:35 | 2021-03-08T14:27:54 | Python | UTF-8 | Python | false | false | 1,749 | py | from app import db
from flask_login import UserMixin
from datetime import datetime
from werkzeug.security import generate_password_hash,check_password_hash
from . import login_manager
class User(UserMixin,db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer,primary_key = True)
username = db.Colu... | [
"jacksonikonya@gmail.com"
] | jacksonikonya@gmail.com |
3bc707fdb02799f83bc3a4f5ed1a8145318994e7 | c0d8fe4bf7c1e4f1f3119c3ba14ee35ba5162da2 | /Dojo_Ninjas/main/apps/Dojo_Ninjas/migrations/0001_initial.py | 32470de9c7cdb576f0d0df83e1733816a41d2ac5 | [] | no_license | TBisig/Python | 16865691fe51cd238c82fed9645bcf62f0c73b73 | b21813df77d0216a0678a5fefa82767ba9f430c4 | refs/heads/master | 2020-04-11T00:28:39.916205 | 2018-03-17T00:33:17 | 2018-03-17T00:33:17 | 124,313,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-24 22:43
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
m... | [
"noreply@github.com"
] | noreply@github.com |
5dfee5684e240ee68d8e3d3c729a9a2b05818900 | e66780b65152d0c17bbafb4857941ac9056cee6a | /django/django_orm/books_authors_proj/books_authors_app/migrations/0020_auto_20200517_2134.py | 8ca76069c390e27c8df2968e168445123c0b7675 | [] | no_license | Bereketetefa/Python | 0a271d7ab98503f71ce58c7b82216c472be93c71 | 01e347ad6a27f4fa32cf119dd9a04900e0f530f2 | refs/heads/master | 2022-12-03T10:59:06.327454 | 2020-08-06T21:24:44 | 2020-08-06T21:24:44 | 285,673,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | # Generated by Django 2.2.4 on 2020-05-18 01:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books_authors_app', '0019_auto_20200517_2131'),
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
... | [
"bereketetefa@gmail.com"
] | bereketetefa@gmail.com |
b482c7309aa0965e3868c1933e1e9a70408a40da | a472cd7e854abd07a549373f3eb9d42051491089 | /venv/bin/jupyter-serverextension | b9fb63a994d69f1c20e05be4f9356f335e568068 | [] | no_license | EricCasey/Rocky-And-Bullwinkle | 1919fed5c84908dec75ae354600f7c33944880e5 | 053079bc7371469a4fc84578f4aea39bf2b18011 | refs/heads/master | 2022-12-24T22:31:03.008943 | 2020-09-27T00:35:53 | 2020-09-27T00:35:53 | 166,841,024 | 6 | 0 | null | 2020-09-27T01:17:27 | 2019-01-21T15:58:28 | Python | UTF-8 | Python | false | false | 259 | #!/Users/ericcasey/code/trade-bot/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from notebook.serverextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ericcasey509@gmail.com"
] | ericcasey509@gmail.com | |
6ca7eee9d0ea8b564e470641f42e79dd6d3c8de4 | 35d3bd909cc232b51496b8b07971386305bbc769 | /sitemessage/settings.py | 649d4678202125f4fcafd413a1db551e4a45344d | [] | no_license | shtalinberg/django-sitemessage | 772810beae344529867df2b58e873a04dc6b5c93 | dc1a5312316c5d0269380c1f80752437c7a1d6eb | refs/heads/master | 2021-01-22T05:57:43.991672 | 2017-04-15T04:33:30 | 2017-04-15T04:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | from django.conf import settings
# Module name to search sitemessage preferences in.
APP_MODULE_NAME = getattr(settings, 'SITEMESSAGE_APP_MODULE_NAME', 'sitemessages')
# Whether to register builtin message types.
INIT_BUILTIN_MESSAGE_TYPES = getattr(settings, 'SITEMESSAGE_INIT_BUILTIN_MESSAGE_TYPES', True)
# Priori... | [
"idlesign@yandex.ru"
] | idlesign@yandex.ru |
89634155ad87da5af017595ceba4c90ff952307f | ae9ff3c1f30de8a9e47427558cd4f989ed4cd38d | /cinema_app/migrations/0006_hall_slug.py | dacc2a95300d525e082257760614aebe91a2d508 | [] | no_license | ShahinZeynalov/cinema-booking-django-rest | d01b8b6a0ce5cb064ac4292d26e5388d1eaf1d25 | 3cc20013ed3854b3883ef5b32710a3ffdbf21b1c | refs/heads/master | 2021-01-08T23:28:59.719819 | 2020-05-20T19:18:51 | 2020-05-20T19:18:51 | 242,175,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 3.0.3 on 2020-02-21 22:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cinema_app', '0005_auto_20200222_0144'),
]
operations = [
migrations.AddField(
model_name='hall',
name='slug',
... | [
"shahin.zeynalov@bk.ru"
] | shahin.zeynalov@bk.ru |
90ffcf53d3c3e9d21c74bf8c2d864fbc8123a56d | 7a46cebebed1241231b05011ce089bbc717393b1 | /DynamicProgramming/Optimized.py | 5f1029ddaca7016cb7d067aed9ebaf63a2f14edc | [] | no_license | talentceffort/algorithm | ab4a7d57adf6462aa141ff9d07959fd3736bbfca | e76f10860f5959e9dd356e51a257738f4688d851 | refs/heads/master | 2020-08-03T02:54:00.163669 | 2019-11-23T13:34:26 | 2019-11-23T13:34:26 | 211,603,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | def fib_optimized(n):
# 코드를 작성하세요.
current = 1
previous = 0
for i in range(1, n):
temp = current
current = previous + current
previous = temp
#FeedBack
#current, previous = current + previous, current
return current
# 테스트
print(fib_optimized(16))
print(fi... | [
"talentceffort@gmail.com"
] | talentceffort@gmail.com |
8d08853f1887ca06ef80d207a9e346e5019fcaab | 53af5559884ff55a23c9415bcd28225f992f165e | /animations/ot_anim_full.py | 6b50d95a473eeaecaeef7cedd1aa38350785de65 | [] | no_license | JTT94/animations | 0e6ebce8c564154c71bbd2537e38da89740167b5 | a15feff2d99ccf13c47c39575ea4788b4014e875 | refs/heads/main | 2023-08-25T13:23:44.252572 | 2021-10-13T14:59:54 | 2021-10-13T14:59:54 | 408,941,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,623 | py | from manim import *
import numpy as np
import itertools
import jax
import jax.numpy as jnp
import matplotlib.pyplot as plt
import ott
from ott.geometry import pointcloud
from ott.core import sinkhorn
from ott.tools import transport
def set_background(self):
background = Rectangle(
width = FRAME_WIDTH,
h... | [
"jtthornton1994@gmail.com"
] | jtthornton1994@gmail.com |
b072f3488670c7d10ed5719caa8d442e950aacd7 | 69cd021099f51a59c2bb2469393de3db62a4e1cd | /URIOnlineJudge/iniciante/1036.py | 7515acb950d6ae30dd5383b65d2440fe1498db9a | [] | no_license | cesaralmeida93/programacao-treino | 6302bfff13ed99229aa9b082650a98df0f5d847c | c737fc235b80fe8aec82e283c946ff0ff5f050a9 | refs/heads/master | 2023-08-30T19:53:02.177510 | 2023-08-29T13:51:22 | 2023-08-29T13:51:22 | 196,032,849 | 0 | 0 | null | 2022-08-09T10:40:52 | 2019-07-09T15:09:55 | Python | UTF-8 | Python | false | false | 925 | py | '''Leia 3 valores de ponto flutuante e efetue o cálculo das raízes da equação de Bhaskara. Se não for possível calcular as raízes, mostre a mensagem correspondente “Impossivel calcular”, caso haja uma divisão por 0 ou raiz de numero negativo.
Entrada
Leia três valores de ponto flutuante (double) A, B e C.
Saída
Se nã... | [
"ocesaralmeida@gmail.com"
] | ocesaralmeida@gmail.com |
8c92f2a6cbe1e1a531ac2b9f003e055f79196e58 | 8b31965dd5ac7a538cbc4eb493ee26b3f1669f4a | /hot_comments.py | c4781bbea1a5232b5af917e383dd6954806a831d | [] | no_license | KingLinH/Spider | 25cd54b61b65caf6434355893c37720651750726 | 19ad5885be71f6e531ce0525fbceba619d6ea8f5 | refs/heads/master | 2022-09-25T12:55:01.697743 | 2020-06-08T11:58:02 | 2020-06-08T11:58:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | import requests
import json
def get_hot_comments(res):
comments_json = json.loads(res.text)
hot_comments = comments_json['hotComments']
with open('hot_comments.txt','w',encoding='utf-8') as file:
for each in hot_comments:
file.write(each['user']['nickname'] + ':\n\n')
... | [
"noreply@github.com"
] | noreply@github.com |
21d118eb73633d6596aa52151718316e501fd4ef | 348eea290c8a3add8c1e325d69fc1dd6758f48e9 | /mygame.py | facf91c1fef14913c1ac58bcc06203ee3662b12b | [] | no_license | russell-lewis/furple | 983d30c529b604c8c9c6d8598dc2a494cfdace55 | 16792b7b544a3d4fd76093a8d61b6bd9ea421d78 | refs/heads/main | 2023-01-06T23:12:21.240108 | 2020-10-29T19:23:00 | 2020-10-29T19:23:00 | 309,265,333 | 0 | 0 | null | 2020-11-02T05:15:02 | 2020-11-02T05:15:02 | null | UTF-8 | Python | false | false | 56 | py | print("Beginning game...")
print("You lose! Try again.") | [
"mnichols13@gmail.com"
] | mnichols13@gmail.com |
c14c8d75b351b8d41a5cf85e01413a05891224fc | 13f13fd7f4a15894815b4d004314100eecb175cd | /goalrepresent/helper/randomhelper.py | 6857b4fa5a32013709b0318eb8ca51976dfd0faa | [
"MIT"
] | permissive | mayalenE/holmes | 0e5dd52bb0e826ae96edeaea0e90dc52c81bb879 | 67c5572cf7438abe9e3052d10fef2c501de30a0c | refs/heads/master | 2023-01-29T06:40:10.071731 | 2020-12-15T08:24:17 | 2020-12-15T08:24:17 | 276,350,705 | 10 | 1 | null | 2020-07-02T15:37:26 | 2020-07-01T10:43:14 | Jupyter Notebook | UTF-8 | Python | false | false | 397 | py | import random
import numpy as np
import torch
def set_seed(seed):
seed = int(seed)
torch.manual_seed(seed)
torch.cuda.manual_seed(seed)
torch.cuda.manual_seed_all(seed) # if you are using multi-GPU.
np.random.seed(seed) # Numpy module.
random.seed(seed) # Python random module.
torch.ba... | [
"mayalen.etcheverry@inria.fr"
] | mayalen.etcheverry@inria.fr |
5646c98814264bfa2f6c78719a76e2ab625d4156 | d630cfc2b47866dfc6cbca2982eac6ebef437060 | /src/pages/pageloader.py | 96026f189024867a75355b84a4049a448a5735ec | [] | no_license | hicksjduk/sehicl | a605ebdcb1bcb297ac63ba2263f461064f08a704 | 10306eaf0a09debd3646d6ad5debc74ff009d5bb | refs/heads/master | 2021-01-17T14:52:26.124941 | 2016-06-07T13:55:24 | 2016-06-07T13:55:24 | 49,564,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | from pages.pageList import PageList
from pages.settings import Settings
from userdb.userdb import UserDatabase, UserException
from pages.redirect import Redirect, RedirectException
from pages.pageLink import PageLink
from pages.users import UserLogin
class PageLoader():
def getPage(self, params, exte... | [
"hicksj@ukdthickjw7.UK.NDS.com"
] | hicksj@ukdthickjw7.UK.NDS.com |
441ccc4585050a87d2e02cc7638b454594223b80 | 04423b16614e2d31f7e358f6b21b5b92a09254dd | /Evaluacion/virtual/bin/sqlformat | d40289d92a50208f63c68eca521d8c2bd22b6bc9 | [] | no_license | jaime-max/pruebaDjango | e094223a1bf7ad617b28c59190cbd35ba3029346 | 3de2cc8b939e476f40cfc6173adc12c45d359604 | refs/heads/master | 2023-03-09T13:41:09.654563 | 2021-02-19T20:01:59 | 2021-02-19T20:01:59 | 340,472,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/jaime/Escritorio/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jaime-max"
] | jaime-max | |
b0e721c955feb492b1b48896ef1eeac252b62e25 | ee303308d85c28467a7dfe5300951d49a3866fb3 | /src/uvm/base/uvm_report_server.py | 07b247efdc4497b985ad27098590a5554ee788dc | [
"Apache-2.0"
] | permissive | tpoikela/uvm-python | 3a66a43100a2903f91e0bb73b84c07c1003f7763 | fc5f955701b2b56c1fddac195c70cb3ebb9139fe | refs/heads/master | 2023-05-02T05:08:00.792132 | 2023-04-24T16:07:14 | 2023-04-24T16:07:14 | 232,838,902 | 199 | 43 | Apache-2.0 | 2023-04-24T16:10:44 | 2020-01-09T15:22:26 | Python | UTF-8 | Python | false | false | 22,445 | py |
# from cocotb.utils import get_sim_time
from .uvm_object import UVMObject
from .uvm_object_globals import (UVM_BIN, UVM_COUNT, UVM_DEC, UVM_DISPLAY, UVM_ERROR, UVM_EXIT,
UVM_FATAL, UVM_INFO, UVM_LOG, UVM_LOW, UVM_MEDIUM, UVM_NONE,
UVM_NO_ACTION, UVM_RM... | [
"tuomas.sakari.poikela@gmail.com"
] | tuomas.sakari.poikela@gmail.com |
6f8606699d9b1848db913fa4c1cca8876ac1de73 | 20403fff59af49f2c4e97e4871791f639c97c434 | /tests/test_gen_doc_nbtest.py | 5ad61eb5fd46fb87cc51d5a86d2cc13117b95d09 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | mapreduce1314/fastai | 3be2a320fe5ad0eedc036ea2fc614f8ff5d06a0c | 9a192a8f2b875006ca97f2de14f4fa376a3dcf91 | refs/heads/master | 2020-04-23T06:02:37.470865 | 2019-02-16T03:48:40 | 2019-02-16T03:48:40 | 170,960,366 | 1 | 0 | Apache-2.0 | 2019-02-16T03:58:05 | 2019-02-16T03:58:05 | null | UTF-8 | Python | false | false | 2,879 | py | import pytest
from fastai.gen_doc.nbtest import *
from fastai.gen_doc import nbtest
import inspect
def test_submodule_name():
result:str = nbtest._submodule_name(nbtest.doctest)
assert result == 'gen_doc', 'should return submodule'
from fastai.core import ifnone
result:str = nbtest._submodule_name... | [
"stas00@users.noreply.github.com"
] | stas00@users.noreply.github.com |
bdf28fd0c02c0410299165e2313553ae48a9f9ea | b92417413ec5b05ca25695de55934ce7072a0f0a | /test/test_v1_role.py | 8276850e9eb6f7e6038ba217a2d6777c01ea27fd | [
"Apache-2.0"
] | permissive | detiber/lib_openshift | be1f0f1b3eec62c9bbf50a3fcea61303a870c112 | efea21ce6f67e3d48885c03ae22978c576c0b87d | refs/heads/master | 2021-01-18T04:12:00.820052 | 2016-10-04T03:20:43 | 2016-10-04T03:20:43 | 63,102,761 | 0 | 0 | null | 2016-07-11T21:15:36 | 2016-07-11T21:15:36 | null | UTF-8 | Python | false | false | 1,212 | py | # coding: utf-8
"""
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
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
... | [
"jdetiber@redhat.com"
] | jdetiber@redhat.com |
e5c4c004136ad52b68630ab3a3783df998bae9d4 | 32ca305c42bbfd3ef5399c32c64b0647a518bf32 | /jumpserver/coco/conf.py | 4d9f8f4c3895c4d5d5b09787853984add4e34d82 | [] | no_license | flyfish0087/dockerfile | c81c5e8dd3386d75df6c1eeabf2d3c584cc1b19e | 4f0a5921d8c84402ef10c605c3687b36827eccfe | refs/heads/master | 2021-04-27T11:59:21.244190 | 2018-02-23T03:43:48 | 2018-02-23T03:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import os
BASE_DIR = os.path.dirname(__file__)
class Config:
"""
Coco config file, coco also load config from server update setting below
"""
# 项目名称, 会用来向Jumpserver注册, 识别而已, 不能重复
NAME = "coco"
# Jumpserver项目的url, api请求注册会使用
CORE_HOST = os... | [
"geek.colin@gmail.com"
] | geek.colin@gmail.com |
064c255cb0da03f95ac97f6030dcd49e2f4c0723 | 5e5efd1d6bca00637432c1c9104dfc1fd122041a | /Task5/6.py | 4d78fdcd5e7dccb015ef36e394d5d021fe5d71cd | [] | no_license | arpishah4/Python | a4f3a93eb52a681eda8605a6ccd344b5264b1253 | ced4459356933fca9189db548af32cfd90205b12 | refs/heads/main | 2023-05-15T00:27:26.570612 | 2021-06-07T02:53:40 | 2021-06-07T02:53:40 | 365,871,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | """ Read doc.txt file using Python File handling concept and return only the even length string from
the file. Consider the content of doc.txt as given below:
Hello I am a file
Where you need to return the data string
Which is of even length
Make sure you return the content in The same link as it is present. """
file... | [
"Arpishah4@yahoo.com"
] | Arpishah4@yahoo.com |
d507a83f5da1305a511cd8501076faa6f2254c02 | 77c331229c0c7770d131a7c4a43067b8733156cc | /blog/apps.py | ed75cb084aa59615849916c786ae3a85db167c44 | [] | no_license | irynaludanova/wow_django | 85d2c0360f49cafd4972b5c92ff4f539b2e14b8b | 9152d989f568b7ba276472527a60ea36fe4b2040 | refs/heads/main | 2023-06-10T14:13:28.885007 | 2021-07-05T14:41:24 | 2021-07-05T14:41:24 | 382,351,844 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.apps import AppConfig
class BlogConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'blog'
verbose_name ='Блог'
def ready(self) -> None:
return super().ready()
| [
"irynaludanova@gmail.com"
] | irynaludanova@gmail.com |
f1ae63c3bbd8625b22c912c2d791f3b7585894c4 | 64f564648f3d80f0c9dc0d32c10f076fb6f1e912 | /backend/src/letrent/serializers/comment_serializer.py | c0e28af41beb71f9384593fc0b69a6f279ab79cd | [] | no_license | wotemu/LetRent | 7d28326973dbddcb873d23685c766743c57aa60c | f9d9a226122e799c45bf4730a376ec6f72229e4a | refs/heads/master | 2021-05-10T14:06:33.924943 | 2017-11-24T15:47:57 | 2017-11-24T15:47:57 | 118,501,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from rest_framework import serializers
from .property_serializer import PropertySerializer
from .account_serializer import AccountSerializer
from ..models import Comment
class CommentSerializer(serializers.ModelSerializer):
owner = AccountSerializer()
property = PropertySerializer()
messageBody = seriali... | [
"pejam.hassanzadeh@analyse2.com"
] | pejam.hassanzadeh@analyse2.com |
9e95722ce144bad09de19e515e873211f0cc549b | 9289051a20c71f90bfd05183b9f4a0aee3bf6344 | /3-data/ananyay2/latex_table.py | 06e19d603a18913b4c490074af23050715f47216 | [] | no_license | ekmolloy/reu2019-tutorials | 9094b7be97a487d5aa39e335ff2e6c7e8b9c0feb | f86ff59b4347f1404be1cb3285012088c6475707 | refs/heads/master | 2020-05-31T16:28:56.754390 | 2019-08-01T23:42:31 | 2019-08-01T23:42:31 | 190,251,632 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,926 | py | import pandas as pd
tg = [(100, 25), (100, 100), (100, 1000), (1000, 1000)]
methods = ["NJ(AGID)", "NJ(log-det)", "ASTRAL", "NJMerge(ASTRAL,AGID)", \
"NJMerge(ASTRAL,log-det)", "SVDquartets", "NJMerge(SVDquartets,AGID)", \
"NJMerge(SVDquartets,log-det)", "RAxML", "NJMerge(RAxML,AGID)", \
... | [
"ayammanuru@gmail.com"
] | ayammanuru@gmail.com |
2407ac89ee522ce7ba63c2e9301dbc37464515a1 | 9e00587e98b6c4f11b0c354f4f6b511210d23ecc | /main/migrations/0007_auto_20200313_2037.py | 218d74742ed8dfa8f49a63649e9a4d2db3f549db | [] | no_license | Jaesung-Jun/Web-based-deep-learning-weight-loader | ca7848b7fa31b94bfe8c716322e832ef4b86c68c | 26a005c058958b672f1a311441e90d66bc2ba061 | refs/heads/master | 2021-03-31T04:19:17.565276 | 2020-04-02T23:48:52 | 2020-04-02T23:48:52 | 248,076,054 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # Generated by Django 3.0.3 on 2020-03-13 11:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0006_auto_20200313_2028'),
]
operations = [
migrations.AddField(
model_name='modelfile',
name='upload_time',... | [
"40080536+Unkn03nUser@users.noreply.github.com"
] | 40080536+Unkn03nUser@users.noreply.github.com |
ff35cde23aa4f509bc9edc600353ec6d30c3abc2 | 59b598bb48aad7434f223dcd049a7626191e1fec | /lab6.py | 7d24250b40bec47d838e870a9e186eeb2049c3d2 | [] | no_license | smpizza/jumper | ae116c51d9d8999a855954a78ff73bd2af5869b2 | 5a6da79264a12a64ef34fbc4191b08743393254b | refs/heads/master | 2022-04-25T00:27:04.071588 | 2020-05-01T08:55:16 | 2020-05-01T08:55:16 | 257,851,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | # Lab 6 Rock Paper Scissors
import random
# welcome message
print("Hello, lets play rock, paper, scissors! \n") # \n means new line
print("To play, press r for rock, press s for scissors, and press p for paper \n")
while True:
# start of game
user = input("Your move: ")
options = ["r", "p... | [
"noreply@github.com"
] | noreply@github.com |
5dacf336171c8318f8a1a9bd3b0984427bad0db2 | 6285a6f1357a8c4104edbb1f9ece10a27d4be344 | /lib/modeling/backbone/resnet.py | f5c5600b4d372bc93756faa06bb3c08ae0137669 | [] | no_license | cumtchenchang/descriptor-space | f9af90a12c484f519a5cbd54985fe112e063332e | 0e7d0b15785039f7d8ecf3bc96db746b1ccf3465 | refs/heads/master | 2020-07-17T13:57:11.027855 | 2019-08-20T13:54:01 | 2019-08-20T13:54:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,919 | py | import torch.nn as nn
import torch.utils.model_zoo as model_zoo
import numpy as np
__all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101',
'resnet152']
model_urls = {
'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth',
'resnet34': 'https://download.pytorch.org/m... | [
"pengsida@zju.edu.cn"
] | pengsida@zju.edu.cn |
19ca2f64e69d7636eb2a84e45e3994a4e3553704 | 02c42cf66ae0ce1b6ad7acbddbb92192491e8d24 | /数值计算/numpy/改变数组大小.py | 27b6a8b539409f3cd08b2db35ecdbb9dfdad4757 | [] | no_license | Josephing/Learning-Python | bbbfdb99271f7088ff76c0b28f4721013f8ee53d | 19926eac7eddcae55ed9618968c765ca3012ac49 | refs/heads/master | 2021-09-10T10:02:43.490517 | 2018-03-24T08:50:29 | 2018-03-24T08:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import numpy as np
a = np.arange(1,11,1)
print(a)
a.shape = (2,5)
print(a)
a.shape = (5,-1) # -1 表示自动计算
print(a)
b = a.reshape(2,5) # reshape 方法返回新数组
print(b) | [
"zhrq95@126.com"
] | zhrq95@126.com |
3afe81d84ad38b04750fa973ed6c5f6c5888bd58 | ab8630d658060a14d49749640d8127d6b0d87058 | /legal_doc_processing/press_release/structure/sec_model_1.py | 8348419d176c688758d22a5baf465728af5155d4 | [] | no_license | w3lt3rust3n/legal_doc_processing | d97c84979b97bbec4c0d1384bbff3834e6cd12ca | fabf0949dfc3282147612f383a62071c790377ee | refs/heads/master | 2023-06-23T14:43:01.351757 | 2021-07-21T22:25:44 | 2021-07-21T22:25:44 | 388,461,843 | 0 | 0 | null | 2021-07-22T12:54:48 | 2021-07-22T12:54:47 | null | UTF-8 | Python | false | false | 2,475 | py | import os
from pprint import pformat, pprint
from legal_doc_processing import logger
from legal_doc_processing.utils import get_label_
from legal_doc_processing.press_release.structure.utils import (
clean_in_line_break,
do_strip,
clean_very_short_lines,
)
def split_intro_article_1(txt: str, n=30) -> s... | [
"a_syoez@yahoo.fr"
] | a_syoez@yahoo.fr |
2913c4c04289cba0901c0523f24f5a9c584c2934 | 8d0e6e0d323e02f6a6a7737f1cb48f43ea9e9512 | /project7_Robot_motion/PRM.py | 33d80242d50b04bdca5441a8891842dd955ead54 | [] | no_license | sjlee4108/COSC76_AI | 0e22ed8b3cbd67da41510c4bf003e2417d7632ce | d50f44d362f762fb2238ce26514ef941949b5f56 | refs/heads/master | 2020-05-04T18:27:52.148073 | 2019-04-03T19:17:21 | 2019-04-03T19:17:21 | 179,354,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,604 | py | #Seungjae Jason Lee
#COSC 76
#Project 7
import graphics as gr
import numpy as np
import time
import random
from sklearn.neighbors import NearestNeighbors
from math import sin, cos, radians
from shapely.geometry.polygon import LinearRing, Polygon
from robot_arm_display import RobotDisplay
from heapq import heappush, he... | [
"SJLEE@Seungjae-Macbook-Pro.local"
] | SJLEE@Seungjae-Macbook-Pro.local |
db4219ea5046982bdfe6ca99976066197dbf0f3f | c1feb50bb104b79a36825dedeead9c71e3b1d85e | /ven/Lib/site-packages/numba/typing/collections.py | 11acad79adc0866a686a6a34ea09e847e4fa0d66 | [
"ISC"
] | permissive | SleezusJ/librosa | a6f91480be6efc06c7a08ebe6960365a0f359ab4 | 0ac24ab2894f925cfa3155789304850543e58949 | refs/heads/master | 2021-05-22T00:10:59.627352 | 2020-05-12T04:20:44 | 2020-05-12T04:20:44 | 252,873,015 | 0 | 0 | ISC | 2020-04-04T00:27:45 | 2020-04-04T00:27:45 | null | UTF-8 | Python | false | false | 134 | py | import sys
from numba.core.errors import _MovedModule
sys.modules[__name__] = _MovedModule(locals(), "numba.core.typing.collections")
| [
"j7simmons@student.bridgew.edu"
] | j7simmons@student.bridgew.edu |
e8872728ea048ff92e2849313e7702959bfc8afd | a3ace0c1aa0a577012fe09cf7db0dea7bcc55d98 | /products/models.py | efec30fad1310b0552df064d77456f0c995cffe2 | [] | no_license | dodoflyaway/product_hunt | 0bb8c4b8129d8c25b3b782f870569b579f3a19f6 | fde724ab43b2a43d0a1f2882ab456c0d23079287 | refs/heads/main | 2023-04-09T18:07:18.627129 | 2021-04-19T09:24:20 | 2021-04-19T09:24:20 | 358,492,393 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from django.db import models
from django.contrib.auth.models import User
class Product(models.Model):
title = models.CharField(max_length=250)
pub_date = models.DateTimeField()
body = models.TextField()
url = models.TextField()
image = models.ImageField(upload_to='images/')
icon = models.ImageF... | [
"munisc18@gmail.com"
] | munisc18@gmail.com |
28baf7ae87b0673e5ae0eee765c89cf509bca88d | 1aba70d53d9f2ace50821ead9958e18d23cbfb0c | /app/server.py | de1d631ddef1e9f521e7c784e2c95beca09052e0 | [] | no_license | Danny19880402/mysite | 6e567593e47486100f623e99b8dadaa8d0419456 | 5c82810f75360d5ad40bf299a8be12ce7eff2112 | refs/heads/master | 2023-01-06T14:04:29.359774 | 2019-07-06T12:40:34 | 2019-07-06T12:40:34 | 195,534,587 | 1 | 0 | null | 2023-01-04T03:49:04 | 2019-07-06T11:59:49 | Vue | UTF-8 | Python | false | false | 265 | py | # -*- coding: UTF-8 -*-
from mysite import app
if __name__ == '__main__':
'''
开启 debug模式
# 设置 host='0.0.0.0',让操作系统监听所有公网 IP
'''
app.run(debug=True, host="127.0.0.1", port="5000")
# mysite.run(debug=True) | [
"duxuede1988@163.com"
] | duxuede1988@163.com |
419649ef0a3a851bf3fd44aded78a625acb47f10 | f16eb361cc921a2713575b2b3d7293a9860a71fc | /lib/python2.7/site-packages/psutil/_pswindows.py | d956b91ff5dfeb3d44d5eb963159267a432e88d0 | [] | no_license | respeaker/respeaker_virtualenv | eb84f5e789665f61a5ebed2cf0a16e7010427e29 | 0fee195ee963c2591062b371798fc6bde7374f64 | refs/heads/master | 2020-04-17T05:00:16.408596 | 2017-03-31T09:08:27 | 2017-03-31T09:08:27 | 66,375,228 | 2 | 2 | null | 2017-03-31T09:08:28 | 2016-08-23T14:36:41 | Python | UTF-8 | Python | false | false | 29,608 | py | # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Windows platform implementation."""
import contextlib
import errno
import functools
import os
import sys
from collections import namedtuple
from . imp... | [
"xiongyihui3@gmail.com"
] | xiongyihui3@gmail.com |
edc8289ece0bd83cb396ba4f698476a81818e79f | 38f35484f1149c60d1b925946c4dff0bbcbe5e4b | /python_old/python/appium_project_test/thread/mythread.py | 99f2440c3786930481bcf7dfbee001871c9de96a | [] | no_license | wanyingchao/python | 9d6126cbe578f0a92d9f5021d92eb32cf154a403 | 96b02dfafd3e27203d073f80d024110024658f7c | refs/heads/master | 2023-04-05T21:54:14.634881 | 2021-04-26T03:30:44 | 2021-04-26T03:30:44 | 280,092,490 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | import threading
from time import sleep,ctime
# 创建线程类
class MyThread(threading.Thread):
def __init__(self,func,args,name=""):
threading.Thread.__init__(self)
self.func = func
self.args = args
self.name = name
def run(self):
self.func(*self.args)
def super_play(file_,t... | [
"1063983073@qq.com"
] | 1063983073@qq.com |
39f398837816554b70de1fb14952422388c35759 | d2bd770d0115439ec142aaa98d33f5559e5ebdce | /cybos/data_processing.py | 69b244275a001a9e1b4ee3d6b9e347c278e234cd | [
"Apache-2.0"
] | permissive | kimyoungh/autoTrading | b586218af6129cff94323e944508a4ae9967c05c | ecdb6d2beeb3b0c9b89455b19bfe617e2557a279 | refs/heads/main | 2023-04-17T06:07:46.354892 | 2021-04-20T05:20:59 | 2021-04-20T05:20:59 | 354,704,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | from get_hist_data import GetHistData
from calculate_multifactors import CalculateMultifactors
length = int(input("요청할 시계열 길이를 입력하시오: "))
ghd = GetHistData(load_codes=True)
price = ghd.get_multiple_hist_data(ghd.codes, dtype='종가',
end_date=ghd.prev, l=length)
turnover = ghd.get_mult... | [
"kimyoungh@ncsoft.com"
] | kimyoungh@ncsoft.com |
b78e36b1360b1dd9d552187653a755c3bb26c881 | 35ff4e124ea73cd2630ddf25dfe019b4b4e3f5d6 | /55_JumpGame/55_JumpGame_3.py | 01b5f0afae09de958c5980a9bd943ed3ceab4200 | [] | no_license | H-Cong/LeetCode | 0a2084a4845b5d7fac67c89bd72a2adf49f90c3d | d00993a88c6b34fcd79d0a6580fde5c523a2741d | refs/heads/master | 2023-03-19T15:22:00.971461 | 2021-03-11T00:33:00 | 2021-03-11T00:33:00 | 303,265,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | class Solution:
def canJump(self, nums: List[int]) -> bool:
'''
BackTracking
'''
return self.canJumpFromPosition(0, nums)
def canJumpFromPosition(self, position, nums):
if position == len(nums) - 1: return True
furthestJump = min(position + nums[posi... | [
"nych1989@gmail.com"
] | nych1989@gmail.com |
023db706c8f3caa596e43db352db861528678213 | 313e447b08b68752d270578cf5ea33700ea96b16 | /PPTX_GENERATOR.py | 784fd0d191b646107eeb420b123cf04d16b175c1 | [] | no_license | ckinson/Certificate_Generator_PPTX_PDF_Converter | 2054d1bdbd5f2bd9766de282e1361a99816af829 | 44f664707dd4ac6e2df284c91a788a90c749eb55 | refs/heads/master | 2023-03-20T00:14:16.158449 | 2020-06-06T11:29:09 | 2020-06-06T11:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | from pptx import Presentation
import xlrd
loc = ("Name_list.xlsx") # <--- The Excel file of names
wb = xlrd.open_workbook(loc)
sheet = wb.sheet_by_index(0)
sheet.cell_value(0, 0) # Header
def XLStoPPTX(DocumentID, Name):
prs = Presentation('Certificate_Template.pptx')
for shape in prs.slides[0].shapes:
... | [
"bersan.sahin@bil.omu.edu.tr"
] | bersan.sahin@bil.omu.edu.tr |
61d47ee7560ed7c9b69299b1507a82897bad4f45 | 055ec54a147376553065f90a89c545e405b5b389 | /vehicle_speed_estimation/__init__.py | 14346edd0896bbc672f232fbff4de6e256ec7759 | [
"MIT"
] | permissive | RubenEu/vehicle-speed-estimation | 7e3803deadd92caf6e9cdddb02e46c707be05de6 | 0e1ce1d20d71b1ff76518f3eec26eb22b74f2a9b | refs/heads/main | 2023-07-17T12:15:39.078919 | 2021-06-26T09:21:31 | 2021-06-26T09:21:31 | 353,500,063 | 0 | 0 | MIT | 2021-08-15T12:26:06 | 2021-03-31T21:56:02 | Python | UTF-8 | Python | false | false | 155 | py | """Top-level package for Vehicle Speed Estimation."""
__author__ = """Rubén García Rojas"""
__email__ = 'garcia.ruben@outlook.es'
__version__ = '1.3.0'
| [
"garcia.ruben@outlook.es"
] | garcia.ruben@outlook.es |
2a097699909ec43e691f7217ba858bdf0c692079 | 09f96b955a86502a9b124fa4d1d67158e60b01f9 | /core/migrations/0007_remove_club_points.py | b948c713239ebc38900860266e996a4a6ad4fff3 | [] | no_license | omarKady/arena-site | 4a6b3f48e28ee676d40f3e704c6e9812f46f1067 | 11aad0cf6bfbd267ef03ab694ad33c743dc01533 | refs/heads/master | 2020-05-19T00:10:39.422125 | 2019-05-03T19:02:13 | 2019-05-03T19:02:13 | 184,728,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | # Generated by Django 2.1.4 on 2019-04-12 07:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0006_club_points'),
]
operations = [
migrations.RemoveField(
model_name='club',
name='points',
),
]
| [
"omarkadytt@gmail.com"
] | omarkadytt@gmail.com |
6eba55587a01d20695c419f46d26a649b147eb70 | f3e25ef5c3c5f7f55dd74275001c5f1e59fb017c | /movies/forms.py | 695b04e5cecf8f94cfd939602c40a0e4e3bba0bd | [] | no_license | vxda7/django-cowork-modeling | e9132d67931d77b5cabec9743154a94d74dfc4cb | d1ef2f669558756bbc5f84749aabca3047892852 | refs/heads/master | 2020-09-13T19:37:31.964821 | 2019-11-20T08:00:17 | 2019-11-20T08:00:17 | 222,884,216 | 1 | 0 | null | 2019-11-20T08:09:48 | 2019-11-20T08:09:47 | null | UTF-8 | Python | false | false | 172 | py | from django import forms
from .models import Review, Movie
class ReviewForm(forms.ModelForm):
class Meta:
model = Review
fields = ('content', 'score',) | [
""
] | |
6d1f1f502f5ec31aa7050af3ee00c3b1e76f961a | 1ee36ead30deb769ec3731f759167aa4e06a18d2 | /Hello.py | d7f601784b6803eace847f120a7419bb51bfe92a | [] | no_license | sarahbradford5/IntroProgramming-labs | 3339a20456be0d14bc0bdbabf5e48af61fdbaedd | 16208173a7bf385d241bce6dd65153d1ec5b3062 | refs/heads/master | 2020-12-27T21:57:51.127545 | 2020-04-27T22:03:28 | 2020-04-27T22:03:28 | 238,072,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | # Introduction to Programming
# Author: Sarah Bradford
# Date: 02/03/2020
def main ():
print ("hello, instructor!")
print ("good-bye!")
main ()
| [
"60368602+sarahbradford5@users.noreply.github.com"
] | 60368602+sarahbradford5@users.noreply.github.com |
28010486f1a374ea8efc77e4cca8566d8e036282 | a2dc49ff0b2434882f901af57222c12ecc9f7289 | /banner/models.py | 37d1d16af5a1b4ee321a4c43a9d4c0bbba7d33f1 | [
"MIT"
] | permissive | stormrose-va/hub | 86fded128646b65203dc53e978d4d3eb3815aa31 | 2cfc50289b729804a325860f766a8c80f890100a | refs/heads/master | 2021-01-13T03:11:32.165543 | 2018-10-05T13:37:32 | 2018-10-05T13:37:32 | 77,647,041 | 0 | 2 | MIT | 2018-10-05T13:37:34 | 2016-12-29T23:55:45 | CSS | UTF-8 | Python | false | false | 508 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
class UserStat(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
first_flight = models.DateTimeField(default=timezone.now)
total_flights = models.BigIntegerField(default=0)
... | [
"jesco.freund@my-universe.com"
] | jesco.freund@my-universe.com |
d9b8eb05b29632fdf14022991b75fcc4898142aa | 76c8a2593316a74078e5ebe3c280d393b058ff67 | /vai/commands/JoinWithNextLineCommand.py | c009849009712410c2f67e842d8f74c84019c1ef | [] | no_license | gavd89/vai | b7f746c3ba31397e8d85f477af9b9b71d01795fb | afa3a31b74ee81f9be8ab2c06cd8bdaebae1baad | refs/heads/master | 2021-01-16T22:04:05.131998 | 2014-10-31T22:35:37 | 2014-10-31T22:35:37 | 26,130,434 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from .BufferCommand import BufferCommand
from .CommandResult import CommandResult
from ..models.TextDocument import LineMeta
class JoinWithNextLineCommand(BufferCommand):
def execute(self):
cursor = self._cursor
document = self._document
pos = cursor.pos
if pos[0] == document.numLi... | [
"stefano.borini@gmail.com"
] | stefano.borini@gmail.com |
4793aee5d650cde0ae4bd6ec22af5060f8e88aa0 | 76581ef47651d3b7b30c65f65909227718901e74 | /Script's/02 - Condicionales/Concatenacion de Operadores.py | 6c7f87ce387220ee8dcff0b911b310c85f711ab8 | [
"Apache-2.0"
] | permissive | CamiloBallen24/Python-PildorasInformaticas | 96d70d5ff24d65f12afd5921181656c03104088a | a734ac064e34b01a2f64080d5391625a5de77f54 | refs/heads/master | 2021-08-19T01:02:05.944407 | 2021-06-29T02:08:19 | 2021-06-29T02:08:19 | 157,931,669 | 0 | 2 | Apache-2.0 | 2018-12-04T16:30:52 | 2018-11-16T23:14:47 | Python | UTF-8 | Python | false | false | 1,059 | py | #TEMAS: -Concatenacion de operadores de comparacion
#######################################################
#Condicional Simple
print("Ejemplo #1")
edad=7
if 0<edad<100: # 0<edad and edad<100
print("Edad Correcta")
else:
print("Edad Incorrecta")
print()
print()
print()
##########################################... | [
"30605302+CamiloBallen24@users.noreply.github.com"
] | 30605302+CamiloBallen24@users.noreply.github.com |
ef301480c09e8bf0f702faabb05d320f96d1726c | 8b3ca44ee3d990233e74655b7131d616094f70c2 | /experiments/cross_validation/movielens_1M/gaussian_gaussian_wishart.py | 77b129a3b7aae4cbfca58736af054f4dfb1902a5 | [] | no_license | zshwuhan/BMF_Priors | 8b8c54271285a72d2085a56a9475c0756f375e67 | 6a600da1c41f1ccde2f2ba99298b40e68fb9910a | refs/heads/master | 2021-05-13T19:10:07.203215 | 2017-12-01T13:30:21 | 2017-12-01T13:30:21 | 116,883,181 | 1 | 0 | null | 2018-01-09T23:36:13 | 2018-01-09T23:36:13 | null | UTF-8 | Python | false | false | 1,730 | py | '''
Run nested cross-validation experiment on the MovieLens 1M dataset, with
the All Gaussian model (multivariate posterior) and Wishart prior.
'''
project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/" # "/home/tab43/Documents/Projects/libraries/" #
import sys
sys.path.append(project_location)
fro... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
77542f7648dbb09a3ffcdd3d15534737f817a755 | 7a554228174223cbc52f2497905d8cc93f10ea24 | /function_practice.py | 0ca7af8f887450bf5243cb017cd44c941775a853 | [] | no_license | Ahmed-Sheik/HighSchoolCamp | 0b4cb0777f0025a6551524c5dffcbaec3f6bc86c | d3d44cb51bef370426cf2bc849d14365ac0e62ed | refs/heads/master | 2020-06-03T14:22:34.234745 | 2019-06-14T19:21:17 | 2019-06-14T19:21:17 | 191,602,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | """
title: function_practice
author: Ahmed
date: 2019-06-12 11:22
"""
def age_calculator(year1, year2):
return abs(year1 - year2)
print(age_calculator(2018, 1900))
def avg_numbers(x, y, z)
return (x + y + z)/3
print(avg_numbers(4, 7, 8))
| [
"AhmedSheik680@gmail.com"
] | AhmedSheik680@gmail.com |
90344de78bc2fca86c31f3aad6a60a89036b7294 | 92ada3880e1c8549f42bfd55ed081ee9353ad95f | /examples/signals_dev/merged/pos_holds_V230414.py | 8e52793f17122e79de978fc14811b99eb8cb4ec1 | [
"Apache-2.0"
] | permissive | dtzqsy/czsc | 983a53f88bdbe64f5f3d0881533dbe321243e8db | 2d676f987a93cbcc9067513753fe21dad8638c9f | refs/heads/master | 2023-09-04T01:42:51.035304 | 2023-08-19T14:51:47 | 2023-08-19T14:51:47 | 276,694,387 | 0 | 0 | MIT | 2020-07-02T16:22:59 | 2020-07-02T16:22:59 | null | UTF-8 | Python | false | false | 2,812 | py | # -*- coding: utf-8 -*-
"""
author: zengbin93
email: zeng_bin8888@163.com
create_dt: 2023/4/14 17:48
describe:
"""
import os
import sys
sys.path.insert(0, r'D:\ZB\git_repo\waditu\czsc\examples\signals_dev')
os.environ['czsc_verbose'] = '1'
import pandas as pd
from typing import List
from loguru import logger
from czsc... | [
"noreply@github.com"
] | noreply@github.com |
d0a7aeff905f45c9098ea9c161be390f6f6400d6 | 00b24ff5ec169210b1b7cce53b621cbc0ee0fe40 | /migrations/versions/e812a221262e_initialized_database.py | 5944c31f6d72464d38c440607572aeca5fe9a83d | [] | no_license | carter3689/fakebook-march | 1242c052fa51826f56aeb187cfdf41e0464ca4f8 | 41c2c388e0f19d849eef4572a13fcdffb41d3de4 | refs/heads/main | 2023-05-04T02:59:00.245789 | 2021-05-18T16:28:38 | 2021-05-18T16:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | """initialized database
Revision ID: e812a221262e
Revises:
Create Date: 2021-04-26 11:24:10.910838
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e812a221262e'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands au... | [
"derekh@codingtemple.com"
] | derekh@codingtemple.com |
3a15db5114e6441cc2f7bb9f7c455edb8c8d9b26 | f77cd3488910b1c7f5813907b1bc9f8527f9a99c | /api/runapi.py | 53dba96e00eb58e2002425af3c912b7a08a40f37 | [] | no_license | luisarbezerra/IMDB-fullstack | fd8f6b19787eddca7838ae17e20d85dc26f936be | 380916c8ef3c813b16338078434a2b250309fddd | refs/heads/master | 2022-02-18T16:50:34.432126 | 2019-09-24T05:49:29 | 2019-09-24T05:50:01 | 209,196,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import os
import gunicorn.app.base
from gunicorn.util import import_app
from gunicorn.six import iteritems
class GunicornApplication(gunicorn.app.base.BaseApplication):
def __init__(self, options=None):
self.options = options or {}
super(GunicornApplication, self).__init__()
def load_config(s... | [
"luisarbezerra@hotmail.com"
] | luisarbezerra@hotmail.com |
d2bda2941a3c280e45de65afc578c06a0a1341f7 | 95f9c734c4bf5de8e5d0adff9ac2cf0228df75ac | /django-pro/opweb/opweb/wsgi.py | afbe2f475b239ff7eb311f1c9c1e5d1dd89b1289 | [] | no_license | holen/Python | 7a996b13ff2224084397223879c380169d47ff8c | 506fff291d6e9c6f80c30a51cc3b77e9dd048468 | refs/heads/master | 2022-12-12T22:12:51.561716 | 2019-10-16T03:08:00 | 2019-10-16T03:08:00 | 14,278,665 | 1 | 0 | null | 2022-12-08T00:51:26 | 2013-11-10T15:29:59 | Python | UTF-8 | Python | false | false | 385 | py | """
WSGI config for opweb project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "opweb.settings")
from django.core.wsgi ... | [
"yh_zhl@sina.com"
] | yh_zhl@sina.com |
55940b3e1eb17b2bb483ea05942f2a21aaff558e | 2e05077e1ade28d3e028990e844fd05018a0a383 | /walkers/donkey.py | 3fcdd6f6da003ec368e5ef211c16f1797ac156af | [] | no_license | justha/critters-croquettes | efe32b4a8065ef00d4b1b5f825b2dfe38fe6a88e | 2905c76cc156d9937b9873d30edd3d4f3be456c6 | refs/heads/master | 2022-12-31T07:03:40.450399 | 2020-10-19T20:12:26 | 2020-10-19T20:12:26 | 305,481,845 | 0 | 0 | null | 2020-10-19T20:12:28 | 2020-10-19T18:44:13 | Python | UTF-8 | Python | false | false | 455 | py | from datetime import date
class Donkey:
def __init__(self, name, species, shift, food):
self.name = name
self.species = species
self.date_added = date.today()
self.walking = True
self.shift = shift
self.food = food
def feed(self):
print(f'{self.name}... | [
"nganha42@gmail.com"
] | nganha42@gmail.com |
0477c1db49f01a31b921a5eea856b6d3ce32c312 | aaa8fa07c71fc05bd34300e6483e4f55e6f59f50 | /test_mathparse.py | d3829db85f701c97e7ce975efaf091a1758135d3 | [] | no_license | piratejon/a396 | 914b133852a4c913d1fefee4221b624afb64301a | 97f7f037116ff057993aa84677e3d45d3aa72193 | refs/heads/master | 2020-04-18T19:34:00.911080 | 2019-01-27T17:30:00 | 2019-01-27T17:30:00 | 167,715,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,621 | py | #!/usr/bin/python3
import unittest
import ast
import mathparse
class TestMathParse(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestMathParse, self).__init__(*args, **kwargs)
self.maxDiff = None
def test_unwrap_statements(self):
myast = ast.parse('x = 99 * b\ny = x... | [
"js@piratejon.com"
] | js@piratejon.com |
b314afaaabc9bbf3ea4b69fe5f6f89638900efc2 | 04d55063219d484f29bf1a351b87e972b374e9a6 | /inversetoon/core/light_estimation/light_estimation.py | f6a43a8535f4fe512287218f1850a235825d8872 | [
"MIT"
] | permissive | tody411/InverseToon | 5530f63d225f91d1c497f3f80f24c4ccf086aa8f | bc5b922cae9bbf99ed1f020c93b1577c4747ff92 | refs/heads/master | 2020-05-18T13:32:25.285723 | 2015-10-06T02:35:15 | 2015-10-06T02:35:15 | 39,255,745 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py |
# -*- coding: utf-8 -*-
## @package inversetoon.core.light_estimation
#
# inversetoon.core.light_estimation utility package.
# @author tody
# @date 2015/09/07
import numpy as np
from inversetoon.np.norm import normalizeVector
from inversetoon.core.light_estimation.light_estimation_common import testTo... | [
"tody411@gmail.com"
] | tody411@gmail.com |
d4fee60f1f6aa6ce52eaf2915646e92019ce409d | 014271f83b7598fd30e59e95716d500a1081b188 | /quiz/quiz2.py | e28b92dc1d807715c23f9c85fa92e31770232fed | [] | no_license | cona-dev/python-prac | 951e5b814379b06db23cee525496d64dfd2af423 | ebdde5074454fa0b76ea4d83fe52979970e1461b | refs/heads/master | 2022-11-15T10:45:06.818756 | 2020-07-10T05:12:24 | 2020-07-10T05:12:24 | 277,698,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | """
Quiz2 ) 월 4회 스터디를 하는데 3회는 온라인 1번은 오프라인
조건1 : 랜덤으로 날짜 뽑기
조건2 : 월별 날짜는 다름을 감안하여 최소 일수인 28 이내로 정함
조건3 : 매월 1~3일은 스터디 준비를 해야하므로 제외
출력 예시 : 오프라인 스터디 모임 날짜는 매월 X일로 선정되었습니다.
"""
from random import *
day = int(randrange(4,29))
print("오프라인 스터디 모임 날짜는 매월 " + str(day) +"로 선정되었습니다.") | [
"ycoqkr@gmail.com"
] | ycoqkr@gmail.com |
46eddbaddd845f19741807818b1aed5d9256310e | 41ba693aea0bfe9ce5f25a30ac1c1c314f6d0f1d | /apps/order/migrations/0001_initial.py | cdef5367e7da82254fdc110702c7b80510d119d3 | [] | no_license | Back23/dailyfresh | 64b64103917ab27daa72161b601984cb121bb845 | 9542122fa2cb0c9b5839407cb51e95cd4171e804 | refs/heads/master | 2020-08-12T14:44:24.741449 | 2019-10-24T06:12:44 | 2019-10-24T06:12:44 | 214,784,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | # Generated by Django 2.2.5 on 2019-10-01 13:43
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='OrderGoods',
fields=[
('id', models.AutoFie... | [
"838659435@qq.com"
] | 838659435@qq.com |
66ba21a633e7441cc8a26fce40999953920a1510 | 37c243e2f0aab70cbf38013d1d91bfc3a83f7972 | /pp7TeV/HeavyIonsAnalysis/JetAnalysis/python/jets/akPu3PFJetSequence_pp_mc_bTag_cff.py | 9bd3111ca859c1bbd91ad38579946f0d50b47212 | [] | no_license | maoyx/CMSWork | 82f37256833cbe4c60cb8df0b4eb68ceb12b65e7 | 501456f3f3e0f11e2f628b40e4d91e29668766d5 | refs/heads/master | 2021-01-01T18:47:55.157534 | 2015-03-12T03:47:15 | 2015-03-12T03:47:15 | 10,951,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,707 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetProducers.JetIDParams_cfi import *
akPu3PFmatch = patJetGenJetMatch.clon... | [
"yaxian.mao@cern.ch"
] | yaxian.mao@cern.ch |
d6fe93f6744d8c392148c5cd1f85c978e4de6a4a | 341495cdd2bb830d138ea7f7b947aecbbdfa9c3d | /Django/Git_tracker/webapp/serializers.py | 65de4c505cc8a0ad86a455087a4f34667f778402 | [] | no_license | Rudra-Amidhepuram/basic-rest-api | f6566f1e96eb703e096bee17663008421b261e69 | f728016bdf9858475e85e1314a9c942a675ead08 | refs/heads/master | 2020-06-15T20:37:28.215923 | 2019-07-05T12:23:12 | 2019-07-05T12:23:12 | 195,387,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from rest_framework import serializers
from .models import user
class userList(serializers.ModelSerializer):
class Meta:
model=user
fields=('id','name','p_name','mobile') | [
"noreply@github.com"
] | noreply@github.com |
0977ce752af81adc5992e95036e5f5f852fc53ac | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02903/s750261745.py | 420fde7847d4409890218c615f7f27f1bf072248 | [] | 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 | 116 | py | h,w,a,b=map(int,input().split())
for _ in range(b):print("0"*a+"1"*(w-a))
for _ in range(h-b):print("1"*a+"0"*(w-a)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a19b592b9058d5945dee87f774bc4ee913bbecf1 | 0b5f2442b222da2895cdad06913c3687162f06bb | /pyclustering/container/__init__.py | 27e87524cc9610c785f192f53863d1b4e7d5a005 | [] | no_license | Kinddle-tick/ML_clustering | a765fadde581392de098227b0ee4a9b3572ef24f | 27f9887cb383d0d1ea0a4a42788eddc2f4c85c67 | refs/heads/master | 2023-03-14T18:15:08.350604 | 2021-03-23T07:16:51 | 2021-03-23T07:16:51 | 350,600,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | """!
@brief pyclustering module of data structures (containers).
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
""" | [
"h88888888123@163.com"
] | h88888888123@163.com |
e4bc0af438e5773eb98567dc9e88debbdf8f4327 | c9e1625b221e609dc8496cfdda582719686277e2 | /tests/writer/builtins/test_csvwriter.py | 900ce8fa9cf0eb0efa82daec485d2f5c2daa6ba3 | [
"MIT"
] | permissive | ocworld/nart | 9640a244fd3ef4c60296e2f5529a17f2fdacaaa8 | 6e8a4de895184074be869d321beec807c59c9b75 | refs/heads/master | 2020-04-23T06:45:26.535240 | 2019-04-07T01:45:30 | 2019-04-07T01:45:30 | 170,984,311 | 3 | 0 | MIT | 2019-04-07T01:06:51 | 2019-02-16T09:12:46 | Python | UTF-8 | Python | false | false | 1,333 | py | # -*- coding: utf-8 -*-
import pytest
import os
import csv
import tempfile
from datetime import datetime
from nart.writer.builtins.csvwriter import CSVWriter
from nart.model.nartdata import NartData
from nart.model.nartitem import NartItem
@pytest.fixture
def csvwriter_fixture():
"""
csvrepo의 filepath를 생성하고,... | [
"ocworld@gmail.com"
] | ocworld@gmail.com |
050fe8dd60fa24022d363e59407aef735c810440 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/protanto/vultus_christi_archive.py | a3494ec9528161e0c530bce04e116f028619d6fe | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,560 | py | from datetime import datetime, timedelta
import scraperwiki
import requests
import lxml.html
from lxml.cssselect import CSSSelector as CSS
import dateutil.parser
import dateutil.tz
TARGET = "http://vultus.stblogs.org/archives.html"
HEADERS = {
'User-agent': 'Mozilla/5.0 (X11; CrOS i686 2268.111.0) AppleWebKit/536... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
15b35b4d0ed83d0b99c75f0e25604fb40d79f538 | ea6b3b74c8f1ff9333c5d4b06a0e4dd9bbdb3bba | /tests/rpc/test_reflect_service.py | b7a206e547357b2ef8b7398477b04497c4742ae9 | [
"MIT"
] | permissive | sgalkina/venom | d495d296a388afcb25525491bbbe590bfd258a05 | e372ab9002e71ba4e2422aabd02143e4f1247dba | refs/heads/master | 2021-01-23T03:27:17.239289 | 2017-03-24T15:05:56 | 2017-03-24T15:05:56 | 86,077,951 | 0 | 0 | null | 2017-03-24T14:40:46 | 2017-03-24T14:40:46 | null | UTF-8 | Python | false | false | 557 | py | from unittest import TestCase
from venom.rpc import Service, Venom
from venom.rpc.reflect.service import ReflectService
class ReflectServiceTestCase(TestCase):
def test_service_registration(self):
class BeforeService(Service):
pass
class AfterService(Service):
pass
... | [
"lars@lyschoening.de"
] | lars@lyschoening.de |
5ff6304b690e23dc93f220f43c925d108ab5ed50 | a8f47501877b544c0038af46ea3da4ebd65ac728 | /bookmarks/bookmarks/urls.py | a5e12b7e65d2faa6372012db16af773430ca41ee | [
"MIT"
] | permissive | Jzweifel15/django-social-media | 43bebf6556155d3a9a7688f2cfe39b8fed8ec36d | 0483689a839fafb0c19dc0fa59b1b3c02a2c6ccd | refs/heads/main | 2023-04-15T04:49:51.910239 | 2021-04-26T07:04:54 | 2021-04-26T07:04:54 | 358,053,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | """bookmarks URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"jzweifel15@yahoo.com"
] | jzweifel15@yahoo.com |
e59cff018f04a9722dd8b82f3176c80280db5be8 | 5243b1e172c493fb29e3ce808198dcfc222c1488 | /test_web.py | fcebb40253421c6a7b90151ec0df907153ecd4ca | [] | no_license | karust/fuzz_test | f5948198dad10f650ea3613967d6c9e208d6dd74 | 5d778bda61bb257a29491c9b61d7c36167e1c3cf | refs/heads/master | 2020-05-26T05:35:44.853030 | 2019-05-22T22:41:07 | 2019-05-22T22:41:07 | 188,123,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | from aiohttp import web, ClientSession
import os
import json
cwd = os.getcwd()
routes = web.RouteTableDef()
@routes.view("/")
class Main(web.View):
async def get(self):
print(self.request.query)
if self.request.query["search"] == "'or select *":
return web.Response(text="table_schema... | [
"karust13@gmail.com"
] | karust13@gmail.com |
05932b5eb4efff7df2c4efaadaa8037452a9e61d | cd90bbc775cbce9a7e0bc46cbb9437e3961e587f | /misc/advent/2017/5/e.py | 4d998c22b9ab5cb25fc7a904a5b71e05e17ea209 | [] | no_license | llimllib/personal_code | 7b3f0483589e2928bf994184e3413f4b887e1f0c | 4d4662d53e0ac293dea8a4208ccca4a1f272e64a | refs/heads/master | 2023-09-05T04:02:05.075388 | 2023-09-01T12:34:09 | 2023-09-01T12:34:09 | 77,958 | 9 | 16 | null | 2023-08-16T13:54:39 | 2008-11-19T02:04:46 | HTML | UTF-8 | Python | false | false | 571 | py | def run(cmds):
location = 0
counter = 0
l = len(cmds)
while 1:
try:
cmd = cmds[location]
if cmd >= 3:
cmds[location] -= 1
else:
cmds[location] += 1
location += cmd
if location < 0:
print(c... | [
"bill@billmill.org"
] | bill@billmill.org |
62762513182f4868933095eda44dffdad96fc479 | 54d85d2c27177558aa37f1da9a2f1dd720cf4c67 | /baselines/keras_train_split_keras_model.py | 2d9674030a3e4681a834c1c3ee6e343fb116d700 | [] | no_license | hvdthong/LINUX_BUG_FIXING_PATCHES_pytorch | 3d00785ebacffdbc9649926ed2a19407b263b233 | 3a7638d9a2b78facad0fb0e4957278f62947684d | refs/heads/master | 2020-04-19T08:56:34.698051 | 2019-09-03T08:50:29 | 2019-09-03T08:50:29 | 168,094,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | from params import read_args
from keras_pickel_data import loading_variable
from keras_model import lstm_cnn_split_data
def load_info_label(data):
data = list(data)
pos = [1 for d in data if d == 1]
neg = [0 for d in data if d == 0]
return len(pos), len(neg)
def train_split_model(commits, params):
... | [
"hvdthong@github.com"
] | hvdthong@github.com |
5d35fbace140441c955cd4239f5fea42124951ad | ba91081c231e7fc516302ba79cd6731c28293ad2 | /lambda_function.py | 292549558dbb0c65c3b91fad148ff10a4a883932 | [] | no_license | Viktork25/DeployPythonLambdaFunction | 4b2a837fd723d09712f0e7cbd0d53fb006734617 | 4a18dc00cad42d2b1d80b849b4e9d587eb00c176 | refs/heads/master | 2021-01-12T05:27:36.627726 | 2017-01-03T16:05:50 | 2017-01-03T16:05:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | import boto3
from s3utils import S3utils
s3utils = S3utils(
AWS_ACCESS_KEY_ID = 'Your_Access_Key',
AWS_SECRET_ACCESS_KEY = 'Your_Secret_Key',
AWS_STORAGE_BUCKET_NAME = 'Your_Bucket',
S3UTILS_DEBUG_LEVEL = 1, #change it to 0 for less verbose
)
folders = s3utils.ls("Your Folder that you want to check the files")
lst=le... | [
"noreply@github.com"
] | noreply@github.com |
b672e911f7e70b27186ed4c017c71a798163db1a | 31e604287a9abf98524ebd3d31a3d6b0df3eedc8 | /7.18__deadreck.py | 498e78d7f2a8a2a078bf4e767247445be294b7c5 | [] | no_license | colin-ai/kalmooc | c4c18836b697d03e1469a9c7af8611c6c1c401ae | 18f3425547254ee391b1e5697af07a34500ea920 | refs/heads/master | 2022-11-16T17:20:43.598372 | 2020-07-07T08:45:38 | 2020-07-07T08:45:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from roblib import * # available at https://www.ensta-bretagne.fr/jaulin/roblib.py
def f(x,u):
return (array([x[3]*cos(x[4])*cos(x[2]),
x[3]*cos(x[4])*sin(x[2]),
x[3]*sin(x[4])/3,
u[0],
u[1]]))
dt = 0.1
u = array([[0,0]]... | [
"43640856+Colin75@users.noreply.github.com"
] | 43640856+Colin75@users.noreply.github.com |
100d41991e5af1b99a814e164c5d0584b8300f3d | 405c6b5ad1579e97ea5f34fe5b778f1003d45447 | /олимпиада фпми/№2.py | 988534b37d9f2568b243dbd3fe6759d93e0d97bd | [] | no_license | Wokkta/Python-projects | 31ab89b1d16dbf2d74aed52e556873d9ac987ebf | f7a21a29b9d67f005d13c767be5e0f8fb7a2b243 | refs/heads/master | 2021-08-22T13:03:26.283572 | 2021-06-25T04:38:39 | 2021-06-25T04:38:39 | 223,117,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | '''https://contest.yandex.ru/contest/22235/download/B/'''
n,k=map(int,input().split())
n_massive=[]
for i in range(1,n+1):
n_massive.append(i%k)
maximum=-1
print(n_massive,' kk')
for i in range(k):
counter=n_massive.count(i)
if counter>maximum:
maximum=counter
print(maximum)
'''working wrong''' | [
"awerty17@mail.ru"
] | awerty17@mail.ru |
b6b17787e8452778c500b53af9e9d7271d7d6689 | 8bde5794b10d24b7d9126f9461f8099d0675eb78 | /rgcn/entity_classify.py | 1fa35947b2ac53d52f935ae0fd3f34da833c3eb1 | [] | no_license | aksnzhy/dgl-benchmark | 9938d24ce695f2f32faea45bc85a25f04348c177 | 1d746d690c8aa11bf793744d1c9cea6e762a6847 | refs/heads/master | 2021-05-17T12:33:18.566606 | 2020-11-09T07:06:33 | 2020-11-09T07:06:33 | 250,708,185 | 0 | 0 | null | 2020-03-28T03:43:37 | 2020-03-28T03:43:36 | null | UTF-8 | Python | false | false | 5,219 | py | """
Modeling Relational Data with Graph Convolutional Networks
Paper: https://arxiv.org/abs/1703.06103
Code: https://github.com/tkipf/relational-gcn
Difference compared to tkipf/relation-gcn
* l2norm applied to all weights
* remove nodes that won't be touched
"""
import argparse
import numpy as np
import time
import ... | [
"ly979@nyu.edu"
] | ly979@nyu.edu |
3a4519e4ba6fd8cde5d180a8bf5c9c4c8f901069 | 94024d369c19cb098df9277e58fe76711071a85c | /results/williamson_titles_array.py | 6c8b4517335358c477062932f1eaf80b7cf49d66 | [] | no_license | statesman/election-results-20170506 | ecc09d69545b2be9aca912ae52d0eedf56d9697c | 8a2fb98ea39e0e2d49d068d41d045ed3002d305e | refs/heads/master | 2021-01-20T14:43:05.302584 | 2017-10-26T18:47:15 | 2017-10-26T18:47:15 | 90,652,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | build_race_file(["Round Rock ISD Proposition 1"], 'rrisdp1')
build_race_file(["Round Rock ISD Proposition 2"], 'rrisdp2')
build_race_file(["Round Rock ISD Proposition 3"], 'rrisdp3')
build_race_file(["Pl 6, Board of Trustees, PflugervilleISD PFLUGERVILLE"], 'pvisdp6')
build_race_file(["Pl 7, Board of Trustees, Pflugerv... | [
"christian@cmcdonald.com"
] | christian@cmcdonald.com |
cfccbd5c7480bb1e0567d769d73ce08290eb80db | d25dceadbf8f7c72541c9d5b1c9b8d03f723ebde | /src/PI-web-example.py | 98c54c23cbf51595c4fe748ec479780f4ca3fccc | [] | no_license | JoeZijunZhou/building-energy | 6f732183321d40fabde4c7e4d2e5af011996730e | 48094b00de07de446b3e28dc95c5d71d63454af4 | refs/heads/master | 2020-05-22T07:11:25.296534 | 2017-05-18T00:07:59 | 2017-05-18T00:07:59 | 84,680,012 | 1 | 0 | null | 2017-03-15T06:46:35 | 2017-03-11T21:08:49 | Python | UTF-8 | Python | false | false | 3,423 | py |
# coding: utf-8
# In[18]:
import pandas as pd
import os
import requests as req
import json
import numpy as np
import datetime
from matplotlib import style
import matplotlib
get_ipython().magic(u'matplotlib inline')
style.use('ggplot')
# new class - marco.pritoni@gmail.com
from PI_downloader import *
# In[19]:
... | [
"chin.allen.cp@gmail.com"
] | chin.allen.cp@gmail.com |
90ab88a33387a70de53d0eea736072ed7faad3ff | 96384b2a913f193c5c722b48ec4de211f319eddf | /students/marta_herezo/lesson_02/for_loop/adding_factorials.py | 12e05c7753e09dba71375ce01446b81c85b30fac | [] | no_license | olszebar/tietopythontraining-basic | 463a2f912c2524151f2732414e06c159ace6e995 | 4a2a115dc8553a7aae8a2803bb4f15de636e1227 | refs/heads/master | 2021-04-27T15:38:24.782847 | 2018-05-17T08:36:14 | 2018-05-17T08:36:14 | 122,473,431 | 0 | 0 | null | 2018-03-05T17:43:48 | 2018-02-22T12:07:56 | Python | UTF-8 | Python | false | false | 257 | py | # Given an integer n, print the sum 1!+2!+3!+...+n!
print('Enter the number of factorials to add up: ')
n = int(input())
factorial = 1
sum = 0
for i in range(1, n + 1):
factorial = factorial * i
sum += factorial
print('Result = ' + str(int(sum)))
| [
"marta.herezo@gmail.com"
] | marta.herezo@gmail.com |
266635f8db60fe89592c32c152f3b53a7832a8f6 | 2b3f859e7bde80f19e0f823b5e6e73ddb44cb3fe | /tests/migrators/test_group.py | a08a14e4fd2b0715b54d3f317b4ef5b0ed0de7b1 | [] | no_license | stormpath/stormpath-migrate | 4a0d4bc949da7df416529820bdcd76f590a8fe89 | ee43dbddda29a0b85c9901ea1e678660ef3bce36 | refs/heads/master | 2021-01-22T10:01:37.030105 | 2017-03-06T19:17:13 | 2017-03-06T19:17:13 | 43,518,049 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,665 | py | """Tests for our GroupMigrator class."""
from os import environ
from unittest import TestCase
from uuid import uuid4
from stormpath.client import Client
from migrate.migrators import DirectoryMigrator, GroupMigrator
from migrate.utils import sanitize
# Necessary environment variables.
SRC_CLIENT_ID = environ['SRC... | [
"r@rdegges.com"
] | r@rdegges.com |
a60e1c26c1bea3cb0d32e6cad14184af90210d17 | 92f6008ff6a3199111f9cd6d26ef9102dcc2c5c3 | /Problems/Jackie's Savings/tests.py | 44a6f5b4df88f82de7dd04ed4be188fc14ccbccb | [] | no_license | TonyNewbie/-SmartCalculator | 52c8f5f074e6c72d7b335cf33d7f4f6cab2da34e | e3779b74d83b5db62101f29a73a350b308e982f9 | refs/heads/master | 2022-07-04T02:22:12.044689 | 2020-05-10T08:49:30 | 2020-05-10T08:49:30 | 262,726,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from test_helper import check_samples
if __name__ == '__main__':
check_samples(samples=[["5 7 4","1168.44"]]) | [
"prostomaster90@gmail.com"
] | prostomaster90@gmail.com |
935fd486f7e12098242fc101e1cc72d7f124664f | 06b49ead0ed3f5dca886d24d8fb765f120c2fc7f | /face.py | 22f6ea44468fdb49411e272cd58a180949091117 | [] | no_license | Khantanjil/cv2-detector-face | cbb52ab549e8f4001a2d71cb6c9c101e4909c6fe | b939c5fedc390fb29c3d09bcf73426bab3fd0422 | refs/heads/master | 2021-03-09T23:09:48.649673 | 2020-03-10T19:37:02 | 2020-03-10T19:37:48 | 246,390,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Import library image processing
import cv2
# Read cascade
face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
# Load image
img = cv2.imread("photo.jpg")
# grayscale
gray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # converts to grayscale image
# Search faces
faces = face_cascade.detectMul... | [
"tanjilkhan.sh@gmail.com"
] | tanjilkhan.sh@gmail.com |
a3555c41278889908cf8a6d451dfd1a7dfe1d120 | 7091129c55ecd957bc5cfd1218e90877297e53df | /Template_Matching/sad.py | 2ee44c4885f6c149ef5b1499a4fa4205aa186697 | [] | no_license | is-hoku/image_processing_test | b16615da66773b19f83bb839cddb25c04910b531 | 61063ef3e437c2a06a435d1d8496a4f037f7513e | refs/heads/master | 2023-01-12T00:29:10.866610 | 2020-11-04T11:53:38 | 2020-11-04T11:53:38 | 280,309,630 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | import cv2
import numpy as np
def SAD(img, tmp):
H, W, C = img.shape
Ht, Wt, Ct = tmp.shape
i, j = -1, -1
v = 255 ** 2 * Ht * Wt
for y in range(H - Ht):
for x in range(W - Wt):
_v = np.sum(np.abs(img[y: y + Ht, x: x + Wt] - tmp))
if _v < v:
v = _v... | [
"nono6217n@gmail.com"
] | nono6217n@gmail.com |
8075e1afb8688d470d48cee190cabda8c38c6422 | d197ac988698b8b99ab9a947f1ff7812cdbd9cbe | /Recapitulare examen/Richardson.py | 853c26099183d96200e396cf1359257ae97a1b31 | [] | no_license | VladDuncea/Numerical_Calculus | 2974d53c443b2a73252764d8e077e755a32f92e2 | a71a0029d76e95796d54bcb7dadd0c8bcdd71fb8 | refs/heads/master | 2023-03-08T13:35:20.625565 | 2021-02-24T17:03:10 | 2021-02-24T17:03:10 | 305,118,758 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | import numpy as np
def formula_richardson(f,hi,x,h,n):
# matricea ajutatoare pt calculul derivatei
Q = np.zeros([n, n])
# pasul 1, construim coloana 1
print("Pasul 1: construim coloana 1 din Q")
for i in range(n):
Q[i, 0] = hi(x, h/pow(2, i))
print(Q)
# pasul 2, construim restul m... | [
"vlad_duncea_31@yahoo.com"
] | vlad_duncea_31@yahoo.com |
80a203056070914fde0b633807198a6f49b4d484 | 67c3c2a310a4d129a45739ca6351052f36f6d5f4 | /venv/lib/python3.7/keyword.py | 10891398d4fb79df3c09b078b871f9a58f1528fd | [] | no_license | cyobero/django-blog | a743203bdaf1d8ae9e6bd47c6e7b33a213a7abfd | 307335c84a0fa9eba6d3f69172a47580144cc066 | refs/heads/master | 2022-12-09T20:25:51.396813 | 2020-03-10T14:52:26 | 2020-03-10T14:52:26 | 245,950,344 | 0 | 0 | null | 2022-11-22T05:22:50 | 2020-03-09T05:20:31 | Python | UTF-8 | Python | false | false | 48 | py | /home/cyobero/anaconda3/lib/python3.7/keyword.py | [
"cyobero@gmail.com"
] | cyobero@gmail.com |
a460f66edeba2a5ab3753daee9e9c66250d38574 | 4324d0be73589667234237131f1aba502c9ad18b | /module1.py | 4329d6677a237a8670fcc77d6f5d78df68c95026 | [] | no_license | Nazar0906/-2- | b55f73489051b914a748d6017614ef6f3980c679 | 653cd4fc41367856cd4a96843212686c00ee7478 | refs/heads/master | 2020-09-27T02:09:20.877781 | 2019-12-06T19:56:34 | 2019-12-06T19:56:34 | 226,399,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | input_list = input("Введіть кілька слів: ")
words = input_list.split()
words.sort()
print("твої слова по алфовітному порядку: ")
for word in words:
print(word)
| [
"noreply@github.com"
] | noreply@github.com |
ef9e1b057c3449110d6f086d111de1b8ffdc4a21 | e831dd8478daf851d13ea92ec784ea0f266c3e58 | /ControlFuentesv2.py | 1045c8fce16a752e9a6a08a070f44a94214a1b80 | [] | no_license | beatle28c/ProyectoGraduacionJ_MI | 6a48fd6655e58f2eab567f0150edeede73b4b701 | 9a14cb132bc89ed35a3d2508506759c3d726743f | refs/heads/master | 2020-05-23T09:06:41.986493 | 2017-06-12T15:07:46 | 2017-06-12T15:07:46 | 80,433,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,937 | py | from graphics import *
from button import *
from serialKepcov2 import*
import matplotlib.pyplot as plt
import numpy as np
import math
def main():
refy=20;
refx=3;
refx2=13;
width_b=3;
heigh_b=1.5;
win = GraphWin("Control de Fuentes Kepco",width=1000, height=300)
win.setCoords(0,0,20,25)
win... | [
"nautilus28c@gmail.com"
] | nautilus28c@gmail.com |
587e3641e67ab0d6678561c1bde84203aa0f8079 | 7c8b0e2a86e9b697e40196e51a894f5ff21c1c3d | /google_python_classes/basic/wordcount.py | 8112856bef1c2a35aecb81d7c2a47953c4ffcaf6 | [] | no_license | LearningDS1845/PyhtonProgramming | 6b2b7184ea6c6f86b01fef0645223989c3ca8b86 | 9652b4c72c8db9d520f351a3f32026421bf614da | refs/heads/master | 2021-05-27T08:27:58.478408 | 2014-10-13T09:18:51 | 2014-10-13T09:18:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,954 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
"""Wordcount exercise
Google's Python class
The main() below is already defined and comp... | [
"kuldsin2@cisco.com"
] | kuldsin2@cisco.com |
9829f76041afe04417dd5549d64e843361933dab | b41dfd8a070508e6470a8cd917bbb9dd2fb93212 | /tensorforce/core/__init__.py | 0cf2dc5b21a36d1a63e05cb9aec7dfbe70157f7e | [
"Apache-2.0"
] | permissive | TobyGE/rec-rl | 9a17305e6bdedfe40d10f9a2cd43f33846af2e3f | 3ff8a5774a4d23bcba26aa9453912ff201993479 | refs/heads/master | 2020-04-23T18:10:43.923018 | 2019-07-28T12:59:54 | 2019-07-28T12:59:54 | 171,357,555 | 3 | 0 | Apache-2.0 | 2019-03-21T18:22:58 | 2019-02-18T21:18:14 | Python | UTF-8 | Python | false | false | 679 | py | # Copyright 2017 reinforce.io. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"rec.agent.ai@gmail.com"
] | rec.agent.ai@gmail.com |
50bcbf5cec7db78090ff9b0a03360ba55829d65d | cb65ef874d2427a1edcb132cda05e5ce2dc1aae4 | /modpy/proxy/examples/example_kriging.py | 8b2f0eec48e6e00edcf4d69f0493b005e6b0ba69 | [
"MIT"
] | permissive | FrederikLehn/modpy | 1395c27029f5fbfae2388cbd500b28e67a3cdb9e | 19ab18547e06e93fabfbd7f7b2f0f07ff0e70db3 | refs/heads/main | 2023-07-14T11:58:26.379687 | 2021-07-30T11:04:19 | 2021-07-30T11:04:19 | 390,731,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,160 | py | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.ticker import MaxNLocator
from numpy.random import Generator, PCG64
from modpy.proxy._kriging import SimpleKrigingModel, OrdinaryKrigingModel, UniversalKrigingModel,\
_maximum_likelihood_objective, exp... | [
"noreply@github.com"
] | noreply@github.com |
510d6832d8d08456e5886236898cbf0d9316f3cc | a0342ba96c88cafae5855ffa9a493df979d03caf | /meeting/views.py | bb575c4c0de21c23fcd1e0ca42c729cca09243ca | [] | 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 | 18,544 | py | from django.shortcuts import render, redirect
from meeting.models import *
from base.models import *
from django.urls import reverse
from django.core.paginator import Paginator
from django.core.paginator import EmptyPage
from django.core.paginator import PageNotAnInteger
from django.contrib.auth.decorators import login... | [
"d_muses@163.com"
] | d_muses@163.com |
776e53f772b7a73a17af49584f2d78bccca8c3ee | da08d336d3793728783b5ca6439496f76de3a065 | /Test Code/puzzle/Puzzle.py | ce9eabce3ad374653d08d6f37b75ba78904975d1 | [] | no_license | allen880612/8Puzzle | d89f76fa6b2d8b79fe0b4993f7ac2b1a65aea104 | 19ac0918af8efe7c2f2e1cc2980ed739085754a8 | refs/heads/master | 2021-07-17T12:23:09.839775 | 2020-09-08T06:25:32 | 2020-09-08T06:25:32 | 210,401,967 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,695 | py | #!/usr/bin/env python
# coding: utf-8
# # 使用人工智慧演算法來解決數字推盤遊戲
# ## 產生拼圖類別以及實現基本操作
# In[1]:
import copy
class NPuzzle:
"""數字推盤類別,推盤大小根據輸入的矩陣決定。
Usage:
NPuzzle(x, y, matrix),其中
x, y: 空格位置。
matrix: 拼圖本體為長=寬=size的矩陣,儲存數字0~(size-1),
其中0表示空格。
"""
... | [
"allen880612@gmail.com"
] | allen880612@gmail.com |
86ac7f9bcafb82d17cf1e1940c1920b2fc108579 | 0b414a080c9853997bfba016c7f66e5f11d80a14 | /cj_env/lib/python3.6/site-packages/pysnmp/proto/rfc1901.py | 8b7dec076254fc3b3a6d3e95de8296083ff5f1db | [] | no_license | alkhor/Cable_Journal | 2bd4bf00210f78c08fcc5508c13833b5e8aa3c46 | e64fb1bfcc4d1b7844b2e0a10653264d58039259 | refs/heads/master | 2021-01-22T19:09:33.562313 | 2018-04-15T19:42:16 | 2018-04-15T19:42:16 | 100,772,711 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com>
# License: http://pysnmp.sf.net/license.html
#
from pyasn1.type import univ, namedtype, namedval
from pysnmp.proto import rfc1905
version = univ.Integer(namedValues=namedval.NamedValues(('version-2c', 1)))
class M... | [
"khomenkoalexandr@gmail.com"
] | khomenkoalexandr@gmail.com |
62ff71e6c5e4579c74d9966eb7b5cf67d65d67fd | 213e9544f156413aac8dd0e5abf7d826f312ad17 | /blog/migrations/0001_initial.py | ba75065832cd03c37a9ecfcf30b8197318dc7930 | [] | no_license | kookaburra-corner/My-First-Blog | 041b46042afd808f09709b5104687ae7927bf8b5 | 87253a01d26424808a981a6014d380b71a39a1ac | refs/heads/master | 2021-01-10T08:32:51.496362 | 2016-03-12T06:21:12 | 2016-03-12T06:21:12 | 53,716,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-12 04:15
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depende... | [
"pam@vandamindustries.com"
] | pam@vandamindustries.com |
5f43d4c7aac4da7eab64c0d129a839e8e054802d | 2a727342db2f7256704287066bce8efb46da6bc9 | /experiments/faster_rcnn/rcnn_test.py | a4ece9a8c0c86bea5f74dfdcf5342a04a8bb968d | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"MIT",
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | dhzhd1/road_obj_detect | 08753876c42a338d02db661376683d9d6a3bea5b | adfec142546875e622f6a7bca986d7c952738af8 | refs/heads/master | 2022-12-10T08:59:15.165551 | 2017-09-12T23:26:58 | 2017-09-12T23:26:58 | 101,963,761 | 8 | 2 | Apache-2.0 | 2022-12-08T00:36:24 | 2017-08-31T05:42:58 | Jupyter Notebook | UTF-8 | Python | false | false | 592 | py | # --------------------------------------------------------
# Deformable Convolutional Networks
# Copyright (c) 2017 Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Modified by Guodong Zhang
# --------------------------------------------------------
import os
import sys
os.environ['PYTHONU... | [
"dhzhd1@gmail.com"
] | dhzhd1@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.