blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b8859a2e3f8c45f6ca45fa9304a5c59b2491364 | 579e08a3ec73bc1c15bcd1ec47d5dbdc19078f5d | /products/views.py | 74d89b64a56f7cfe455e8b276b5f3f08231b8fdc | [] | no_license | Code-Institute-Submissions/Top_Notch_Coffee | 180b3c39b5eb4e9cb524638aff4f917962bfe865 | 4a0e4d27228552a9d35278a7c9b5a8a6f17e621d | refs/heads/master | 2023-08-20T17:15:43.907846 | 2021-10-15T20:10:00 | 2021-10-15T20:10:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,566 | py | from django.shortcuts import render, redirect, reverse, get_object_or_404
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.db.models import Q
from django.db.models.functions import Lower
from .models import Product, Category
from .forms import ProductForm
# Cre... | [
"santiagoyanez@mailbox.org"
] | santiagoyanez@mailbox.org |
bcdfe16c3d5ef6047b39bfbfc2b3b3cb9d9213ab | 578fc780692e50e7a94b565986957eafb01bde7f | /pool/client2.py | 070dccf3ebc27a96925e28171efea5315bf0be65 | [] | no_license | peter-zsn/python-rabbitmq | b7a6673a7ad277e8d899a61568b3eb06417c0d47 | 0145d3b76186e02bc65c917459538bdd976ae33f | refs/heads/master | 2023-03-24T20:24:47.516805 | 2021-03-15T09:36:15 | 2021-03-15T09:36:15 | 346,262,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | # coding: utf-8
"""
@auther: 张帅男
@data: 2021/3/12 上午11:42
@文件名字:client.py
"""
import datetime
from ramq_pool import RabbitmqPool as Pool
rabbitmq_host = "127.0.0.1"
rabbitmq_port = "5672"
rabbitmq_user = "admin"
rabbitmq_password = "123456"
rabbitmq_virtual_host = "/"
Pool = Pool(3, 20)
cert = Pool.get_certtemplate()... | [
"15294627382@tbkt.cn"
] | 15294627382@tbkt.cn |
d9ee46cca88bf07c076edb24a1ce750b997a0af3 | 8cf1b6c09f0769d147335f4fbe5ff1d61d9597ff | /App_Login/migrations/0001_initial.py | 4938d2dcea8e46368fbc91a7bb4956a85088cdbe | [] | no_license | foysal-mahmud/Blog-Project---Django | e1b0f448e49ec4a4a4065230d0f29595b4781e42 | d668dc26c19e1a91588d53142a1f45fdc36ebbdd | refs/heads/main | 2023-01-23T14:45:07.341693 | 2020-11-28T07:06:10 | 2020-11-28T07:06:10 | 316,401,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # Generated by Django 3.1.3 on 2020-11-26 22:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"foysal.bu.cse28@gmail.com"
] | foysal.bu.cse28@gmail.com |
242d359948e9476c542299857d1470278df1e762 | c5339971cd8b527e101b2cd36e0a4b7fc1682eef | /gltflib/models/sparse_indices.py | 6a065102fc233344eade782647c48f0bb9177cc3 | [
"MIT"
] | permissive | pacovicoarjona/gltflib | 3ac6467f32429d62151322b7e274293c2c3821ed | 09adb42c4b597d0aae5bb54e212b5263c463976b | refs/heads/master | 2022-06-09T17:25:52.323242 | 2020-05-08T07:38:17 | 2020-05-08T07:38:17 | 262,255,560 | 0 | 0 | MIT | 2020-05-08T07:25:32 | 2020-05-08T07:25:31 | null | UTF-8 | Python | false | false | 856 | py | from dataclasses import dataclass
from dataclasses_json import dataclass_json
from .base_model import BaseModel
@dataclass_json
@dataclass
class SparseIndices(BaseModel):
"""
Indices of those attributes that deviate from their initialization value.
Properties:
bufferView (integer) The index of the bu... | [
"serg.kr@gmail.com"
] | serg.kr@gmail.com |
93b5cfbb4d3dbb7a3748fe1c0312c402853cb69a | 671f8f374ab512a5e0b2742101252b8bea266c03 | /src/videoReader.py | 6f288ec5219ab643d671271ec64702c81f8c6e7e | [] | no_license | MirceaDavidEsc/placozoa_internal_coordination | f8c3f2abd06ddeda876bfc3a73d05923334e0e9e | 65657e04dd810baadbda03911dd304970cfdad7c | refs/heads/master | 2023-07-15T01:23:21.069337 | 2021-08-26T09:19:11 | 2021-08-26T09:19:11 | 261,339,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 27 00:28:45 2016
@author: Mircea
"""
import imageio
filename = '/tmp/file.mp4'
vid = imageio.get_reader(filename, 'ffmpeg')
| [
"mdavidescu@protonmail.com"
] | mdavidescu@protonmail.com |
20f45a59812b15be7ada56605aef1b2ee5b09990 | 7f226ac5e54752573a79f5062f52ef7bf5617fa3 | /src/app/auth/service.py | 134a21af809439397e20d18b446b610012a161bf | [
"BSD-3-Clause"
] | permissive | baxik88/useful | 0fef64e54b2f979988ccea110e15fc14b64f5aeb | ed081ebed68cf31178484e18ca96961f74344360 | refs/heads/master | 2021-06-13T21:29:14.303718 | 2020-05-23T20:06:59 | 2020-05-23T20:06:59 | 254,449,660 | 1 | 0 | BSD-3-Clause | 2020-04-09T18:33:31 | 2020-04-09T18:33:30 | null | UTF-8 | Python | false | false | 2,881 | py | import jwt
from jwt.exceptions import InvalidTokenError
from datetime import datetime, timedelta
from pathlib import Path
from typing import Optional
from src.core import config
from src.app.base.utils.email import send_email
password_reset_jwt_subject = "preset"
def send_test_email(email_to: str):
project_na... | [
"socanime@gmail.com"
] | socanime@gmail.com |
c0aa63a35bda6223f2be8b78982a9a3e7b9184ed | 2c7eed223ab8bdeb33698d079e70fc8203d83a12 | /Django_VeriTure/context_processors.py | 8ab2c3c373f35abd4ce0637202376ad3f658cae6 | [] | no_license | OscarZeng/Django_VeriTure | a5bb375a2a44a07d31240076b8f2beeb2f9ab554 | 422ccca0f85268cfeb35b26afa1bef2224ca535b | refs/heads/master | 2020-04-10T21:35:10.864329 | 2018-12-28T06:17:38 | 2018-12-28T06:17:38 | 161,300,295 | 0 | 0 | null | 2018-12-28T06:03:37 | 2018-12-11T08:15:41 | CSS | UTF-8 | Python | false | false | 1,162 | py | from django.contrib.sites.models import Site
from django.conf import settings as django_settings
def pinax_apps_filter(app):
return app.startswith("pinax.") or app in ["account", "mailer"]
def package_names(names):
apps = []
for x in names:
if x.startswith("pinax."):
apps... | [
"noreply@github.com"
] | OscarZeng.noreply@github.com |
8b877b8b35c7c47de89a72f19ca6c484341ff04a | 60d8229c8b1aa20f0de10c3d463a746fc38db127 | /pollster/pollster/settings.py | 879112dba8df33d93cb1ca547639c923826d482e | [] | no_license | Shaila-B/Django_Pollster_Project | 90364ba7c0485fde78dc7ad846cb96b24d0c426d | 99b6e296f4c02ea44c0ad5ca2204ce8528a0ccba | refs/heads/master | 2023-01-19T16:24:30.324848 | 2020-11-25T05:10:25 | 2020-11-25T05:10:25 | 315,821,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | """
Django settings for pollster project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathli... | [
"35136064+BShaila@users.noreply.github.com"
] | 35136064+BShaila@users.noreply.github.com |
fea28fdec84143876c06e246763c89abdace7ef2 | 102987872cce8d2ed9129a2d6acd9093d2545d9d | /four_dot/settings.py | 3b1c16aa8c7b69ce2de187fadb02c2f68c7afc03 | [] | no_license | Praveen-S-98/Four_Dot | 20b60faaac151e7e72678b188a985683e1b682fa | 8e9304132c9a12a8ad5b5af75dcd80e9f577045b | refs/heads/main | 2023-01-11T19:15:05.811719 | 2020-11-17T09:14:45 | 2020-11-17T09:14:45 | 313,565,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,261 | py | """
Django settings for four_dot project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"praveenmadrass98@gmail.com"
] | praveenmadrass98@gmail.com |
93a6c99bd8d276350af34ccd0d974b01b5788d15 | 9d7455482bc08289493d0a5080908214263e5867 | /oldbak/pytest/test1.py | a64163735c6485b074a3659c76e92861c7512201 | [] | no_license | ld911/code | 7ffa8339b4bb421f549984113d8795e2e86c458b | 0c79013171fef4582c02d92819b2d77b128d978d | refs/heads/master | 2021-09-14T23:56:20.263361 | 2021-08-13T14:47:34 | 2021-08-13T14:47:34 | 242,180,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | # Generated by Selenium IDE
import time
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
class TestTest():
def setup_method(self, method):
self.driver = webdriver.Chrome()
self.vars = {}
def teardown_m... | [
"f@tshb.w10"
] | f@tshb.w10 |
e18d3a656a6c89f572a6a3571116fc5d1a013e79 | ba898c119d7c9876719bdde67037b98d31620616 | /ex10ec3.py | 5f3e73725b3e529586387f8046934648206dba00 | [] | no_license | adamomfg/lpthw | 71db13424c0cb8b29dccb8eba8e12818dee00028 | a3485752b9d32cb357ea076b45a4a24f51212a3b | refs/heads/master | 2021-01-18T19:18:50.772186 | 2012-05-11T03:05:30 | 2012-05-11T03:05:30 | 3,345,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | #!/usr/bin/python
tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split\non a line."
backslash_cat = "I'm \\ a \\ cat."
fat_cat = '''
I'll do a list:
\t* Cat food
\t* Fishies
\t* Catnip\n\t* Grass
'''
print tabby_cat
print persian_cat
print backslash_cat
print fat_cat
stupid = "cat"
horrible = "\t\t\tI'm a triple ... | [
"adampsyche@gmail.com"
] | adampsyche@gmail.com |
8002c1abe3d5a561505d0561888fd5fc223a6221 | cb46a9c0b79aae33943b92878aa7eaab961c5815 | /src/kcf/track.py | 4e26081fbf2a73e57277d6722e8026a5d511d598 | [] | no_license | heyanbo1996/gmm_sort_track | 1ea2d9cfe40c1fe823e91dbf66f5a0f1571d0d5a | 0283fc44d7dea0b8c689da0b794fada7b8b775d4 | refs/heads/master | 2023-04-28T02:48:41.050769 | 2021-05-21T15:15:19 | 2021-05-21T15:15:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,382 | py | import numpy as np
from kcf_tracker import KCFTracker
# 将 bbox 由 [x1,y1,x2,y2] 形式转为 [框中心点 x, 框中心点 y, 框面积 s, 宽高比例 r].T
def convert_bbox_to_z(bbox):
"""
Takes a bounding box in the form [x1,y1,x2,y2] and returns z in the form
[x,y,s,r] where x,y is the centre of the box and s is the scale/area and r is
... | [
"xuweilin2014@outlook.com"
] | xuweilin2014@outlook.com |
ab123a0906bcbf93c6e6b0a05e50506f88cf171b | 9b614a562b9472cc4abaad1d75a9afef982fd1ed | /blog/admin.py | c94cc4ec4906bc749785f83d6e924a450337aeed | [] | no_license | Navayuvan-SB/Mini-Blog-App | bbca589474c358e91468597946d58757be59f2dc | 1148160570cd50445e567a8b165f7c071464a18a | refs/heads/master | 2023-04-14T13:33:08.674879 | 2021-04-15T04:27:09 | 2021-04-15T04:27:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from django.contrib import admin
from .models import Author, Blog, Content, Comment
class ContentInline(admin.TabularInline):
model = Content
extra = 2
class CommentInline(admin.TabularInline):
model = Comment
extra = 0
@admin.register(Blog)
class BlogAdmin(admin.ModelAdmin):
list_display = ('... | [
"sb.navayuvan@gmail.com"
] | sb.navayuvan@gmail.com |
2fe1e5105250cdb1c1f198ff4f61fb1dd28cb376 | faeba40d233277d67c404d05e5cc82c8930e8447 | /auction/models.py | 0a98b865b9369a23b753caad09702e2176627fe1 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | chi-ng/the-weather-app | 8cf5f144ce55fd3b35c2ed439e5c83a776821b69 | 368a0a3f86ad1bf4fcf05c8b500f82809239c442 | refs/heads/master | 2023-01-02T22:23:12.280072 | 2020-10-28T15:51:55 | 2020-10-28T15:51:55 | 305,204,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | from django.db import models
import datetime
from django.conf import settings
from django.contrib.auth.models import AbstractUser
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser
)
from decimal import Decimal
class MyUserManager(BaseUserManager):
def create_user(self, em... | [
"tri.nguyen@se17.qmul.ac.uk"
] | tri.nguyen@se17.qmul.ac.uk |
59b7d6e5674d01e2fac7d6d57309c839f771eb14 | 40609c292f020a47c021181660e003180867e5ef | /torreto/asgi.py | 51cc4876e046a1c48c8396d1a5d20f74b6c7fd7b | [] | no_license | ZhibekSolp/toretto | 4149ce3a4154dfebf5d391da313c3488450875e8 | 393171f7870dc76ccea06c6564879ebc17256d86 | refs/heads/master | 2023-07-18T18:52:07.427930 | 2021-09-14T16:03:01 | 2021-09-14T16:03:01 | 406,434,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for torreto project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"ZhibekSolp.solpieva.zhibek@gmail.com"
] | ZhibekSolp.solpieva.zhibek@gmail.com |
a9952070651bd31495303c9d163906c1619dd208 | 458c7d8a560658fcc61a629bc6397bf515717b61 | /catkin_ws/build/turtlesim_cleaner/catkin_generated/pkg.installspace.context.pc.py | b3de5f6cbdc7d20d81366513873aa5840f200e31 | [] | no_license | aboughatane/Tb3_with_OM | 52e6ee855e4b2b773289c4c9ea9684b08206aa24 | 8ee25ff9a6ce2ad770471baf1f51710e6848ebf0 | refs/heads/main | 2023-03-15T15:19:31.296028 | 2020-12-20T23:35:55 | 2020-12-20T23:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlesim_cleaner"
PROJECT_SPACE_DIR ... | [
"thiernodd@gmail.com"
] | thiernodd@gmail.com |
a21ddc661c01e54ef6d999a6ce489ce13c7ddaef | 8a50d4349533c4bfb2adb9b2760c147b180ee658 | /software/experimenting/openGLShaders.py | 38c8436afb3bd91494d188b33e3a5b33f1262bb5 | [] | no_license | Bellspringsteen/blocks | 4efe86ae2cf16df45e8af3e7f64697b159d708b7 | e5b8257d5909134ab164a333938634827d1a47a0 | refs/heads/master | 2016-09-06T03:53:44.155679 | 2015-06-25T03:50:56 | 2015-06-25T03:50:56 | 38,026,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | from OpenGLContext import testingcontext
BaseContext = testingcontext.getInteractive()
from OpenGL.GL import *
from OpenGL.arrays import vbo
from OpenGLContext.arrays import *
from OpenGL.GL import shaders
class TestContext( BaseContext ):
"""Creates a simple vertex shader..."""
def OnInit( self ):
... | [
"Alex.Morgan.Bell@gmail.com"
] | Alex.Morgan.Bell@gmail.com |
ea92bfa37b0a7cf7dfb14ebe3db3b8bc9df3ce1d | c69422b3b24928cb7f1bec375edf0edbb0eca791 | /setssh_model/setssh/admin_urls.py | 6f043ceb62a5755fc7fe14401b0d1ed572fc6eb8 | [] | no_license | pcr/reviewboard_git_hooks | aff0101167fa343790a6235c8b50327db4abdce5 | 2e38cf3303f6699fb2653c492169da213059d719 | refs/heads/master | 2016-09-10T23:10:54.240772 | 2014-02-20T02:47:54 | 2014-02-20T02:47:54 | 15,449,656 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from django.conf.urls import patterns, url
patterns('setssh.views',
url(r'^$', 'configure'),
) | [
"zhangqingyong@kingsoft.com"
] | zhangqingyong@kingsoft.com |
cb38fa4c2c044dfe085f214502a52fdb44f02eca | b182a3407b56c14b830b6ff3a543ba29d5996f84 | /beartype_test/a00_unit/a10_pep/test_pep484.py | 355c85aa7398f512c083c606de8ce63f813d32bc | [
"MIT"
] | permissive | yamgent/beartype | 9d1899a6e6dacd1dd74652a81a2c1f275b1fd775 | afaaa0d8c25f8e5c06dd093982787b794ee48f2d | refs/heads/main | 2023-03-19T18:27:44.326772 | 2021-03-08T06:20:57 | 2021-03-08T06:26:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,607 | py | #!/usr/bin/env python3
# --------------------( LICENSE )--------------------
# Copyright (c) 2014-2021 Beartype authors.
# See "LICENSE" for further details.
'''
**Beartype decorator PEP 484-compliant type hint unit tests.**
This submodule unit tests the :func:`beartype.beartype` decorator w... | [
"leycec@gmail.com"
] | leycec@gmail.com |
d272b9365344ccaa4c50d031bef1c9c2cf416081 | db578636f604f3529c111e3bfe6c9bd49c87bf47 | /tests/logout_test.py | a2815d2f62f8cea69302b0c41a0d699fdfa5f281 | [
"MIT"
] | permissive | pcc426/Betty | 162153e230072b9d53ca451b8090d06a8818fa6a | 595bcd2f58d72b67e6d2cc7e7771f8f1ee7f0fd6 | refs/heads/master | 2021-01-13T08:23:06.740670 | 2017-06-28T07:56:03 | 2017-06-28T07:56:03 | 69,548,495 | 0 | 0 | null | 2017-06-28T07:56:04 | 2016-09-29T08:42:17 | Python | UTF-8 | Python | false | false | 609 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by Pcc on 6/28/17
import sys
import time
import unittest
from appium import webdriver
from wheel.signatures import assertTrue
import DriverConfig
class MyTestCase(unittest.TestCase):
"""Here comes comments"""
def setUp(self):
pass
def tes... | [
"peng.chengcheng@bestv.com.cn"
] | peng.chengcheng@bestv.com.cn |
c2dba55554af242de70d02098e3d4199daa790bf | 30f0200eaee8bee1d3d0faab0e9f5f33ff35f2c0 | /congress_mentions.py | adddf94018a825cd463e971d4e3ac94d0ad9e906 | [
"MIT"
] | permissive | stephenmcardle/DCInbox | 43e8382442632f7b810b4821d32b56b056000aa3 | eedd36d4e1ed49e0f111e6aae81409ed0886a1c9 | refs/heads/master | 2021-01-17T14:05:38.096866 | 2019-02-26T02:59:45 | 2019-02-26T02:59:45 | 83,476,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,393 | py | # -*- coding: utf-8 -*-
import json,csv
rep_name_list = ["Jo Bonner", "Martha Roby", "Robert Aderholt", "Mo Brooks", "Spencer Bachus", "Terri Sewell", "Don Young", "Eni Faleomavaega", "Paul Gosar", "Trent Franks", "Ben Quayle", "Ed Pastor", "David Schweikert", "Jeff Flake", "Raúl Grijalva", "Gabrielle Giffords", "Ron... | [
"noreply@github.com"
] | stephenmcardle.noreply@github.com |
1a5130bf738612accd39b16edf85782846daa5bd | 22d30599038a1cf1bd23127b55cd06e502160e0b | /WordEmbedding/sim.py | 0c74c3b24a00ffa4cecf9711125c14ad65f4c5db | [] | no_license | jennkimerson/hackharvard19 | ac6e7a5c4509e569af3ddcca29ff5024029cbce5 | c24ad7d5f625d4a31234376324d48df5cdd8b553 | refs/heads/master | 2020-08-22T09:39:39.962411 | 2019-10-25T14:15:10 | 2019-10-25T14:15:10 | 216,367,835 | 0 | 0 | null | 2019-10-20T13:39:50 | 2019-10-20T13:39:50 | null | UTF-8 | Python | false | false | 388 | py | import spacy
nlp = spacy.load('en_core_web_md')
doc = nlp(u'football soccer baseball')
football = doc[0]
soccer = doc[1]
baseball = doc[2]
print(football.similarity(soccer))
print(football.similarity(baseball))
print(baseball.similarity(soccer))
# simulates 2 users
doc1 = nlp(u'football')
football = doc1[0]
doc2 = ... | [
"noreply@github.com"
] | jennkimerson.noreply@github.com |
33ac17f018649be1b8cfd5518ce2d4cf0984535e | c1cc0c7f046db576f7dcbfa109e42d37fdca71d1 | /python/algorithms/strings/unique_characters.py | d0718d67fecfdee543d4910b4efe0d870fbb3298 | [] | no_license | drownedout/data_structures_algorithms | 44929f3814ae725c88d85ac18512179caab4d080 | a443a1ba02b9c7e1c73e70287843f9e9650a346e | refs/heads/master | 2020-12-26T13:11:09.157102 | 2020-04-07T22:37:05 | 2020-04-07T22:37:05 | 237,519,294 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | """
===============
Unique Characters
===============
Determine if a string is made up of all unique characters.
"""
# Single line solution
def unique_char_one(string: str) -> bool:
return len(set(string)) == len(string)
# More verbose solution
def unique_char_two(string: str) -> bool:
characters = set()
... | [
"danielcdonnelly@gmail.com"
] | danielcdonnelly@gmail.com |
c7b8fe7932b9f8c233dd2ef3c136f5cebd90cd82 | 14133349e752d1479468a9ae4792c1e85f68d504 | /templates.py | 22747918f385ddf57e80b5b879010cc19d0fd9e8 | [] | no_license | seaneightysix/wsgi-calculator | 0980f6c0441883cc1f3aba17121251c319a50030 | ac78bc9490a577da4dd83227efcac86d0fbdd773 | refs/heads/master | 2020-06-21T12:41:05.790660 | 2019-07-20T17:06:47 | 2019-07-20T17:06:47 | 197,453,533 | 0 | 0 | null | 2019-07-17T19:54:27 | 2019-07-17T19:54:26 | null | UTF-8 | Python | false | false | 862 | py |
class Template():
def home():
return '''
<head>
<title>Internet Programming in Python: wsgi-calculator Assignment</title>
</head>
<body>
<h1>Internet Programming in Python: wsgi-calculator Assignment</h1>
<h2>Please follow the format... | [
"sean.eightysix@GMAIL.com"
] | sean.eightysix@GMAIL.com |
a9af0a62b1fb70533cb84d1aacff5daafd3a40d0 | f3c8cc1e83782c8764c904bdfac24f2c6ba0591e | /wangtao/leetcode/0234.py | e7c5bd6cb37271586ca8215d4fa1ff25928438e0 | [] | no_license | wangtao090620/LeetCode | 18054aa2fa52cf36f0486ac20d50d80a328400f4 | dd6b9a07479d7a8c04672024595cf04a3ed0d067 | refs/heads/master | 2020-09-09T10:57:51.559497 | 2020-07-30T03:17:38 | 2020-07-30T03:17:38 | 221,428,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# @Author : wangtao
# @Contact : wangtao090620@gmail.com
# @Time : 2019-12-28 10:12
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def isPalindrome(self, he... | [
"wangtao090620@gmail.com"
] | wangtao090620@gmail.com |
9da447e80fc6687b168a437cd26366af2a97a0d2 | b24a9b98e36cb77d0f622a3d5ea27447c008ea0f | /bbp/bbp/settings.py | acc5e7648649782b9add64cf4e7a3154050ca1f4 | [
"Apache-2.0"
] | permissive | ekivemark/bbp_oa | 593eb7d2a12baf904a1f5443694c2aefc75ca73f | 7f36f1600b9b4edfd36f829f73cf24f277a60d89 | refs/heads/master | 2020-06-25T22:35:20.051549 | 2014-11-22T05:35:33 | 2014-11-22T05:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,915 | py | """
Django settings for bbp_oa project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"mscrimshire@gmail.com"
] | mscrimshire@gmail.com |
8cf52c690f77f0f49373c855c61be0a11742b5ad | 50b2898f6631883f95efc109c99cda9e0e880d04 | /WordFrequency/corpus2txt.py | 9b06889e4835b377a8e34b3ac6b25fe754e8eab9 | [] | no_license | choldawa/Word-Frequency | 93ea1697f66309e95839040d752d598ec1403869 | b6dc0ac2007c1a39e5c43d428fa0c2fff253e9df | refs/heads/master | 2022-09-01T00:53:21.840451 | 2022-08-23T17:12:09 | 2022-08-23T17:12:09 | 250,048,002 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | import os, sys, re
from datetime import datetime
from collections import defaultdict
N = 2 # the N of the n-gram
DIR = "corpus/data-news"
start_date = datetime.strptime('2015-11-26', "%Y-%m-%d")
def is_valid_word(w):
# our criteria to filter out non-words -- here we use a heuristic of must have a vowel and no nu... | [
"cameron.holdaway@gmail.com"
] | cameron.holdaway@gmail.com |
20458b659df53879f8ccfb9be42057918fd28340 | 16877121615a8a8f882a1f1bd43bad58a26b88f0 | /api/test_try.py | 77d2616ee6a3072b143dc6c998cfa3ca4dbeeabf | [] | no_license | LinaProg/wishlist | 55282fc20176ef0a4b6e6da6fdd49a753e53fc24 | 175eb382743589009f465c7cef7ec2100657c120 | refs/heads/master | 2022-05-30T16:51:08.612131 | 2020-04-17T21:52:37 | 2020-04-17T21:52:37 | 201,097,447 | 0 | 0 | null | 2022-05-25T03:17:58 | 2019-08-07T17:35:45 | Python | UTF-8 | Python | false | false | 489 | py | # def func(x):
# return x+1
# def test_answer():
# assert func(3) ==4
import pytest
# def f():
# raise SystemExit(1)
# def test_mytest():
# with pytest.raises(SyntaxError):
# f()
# def test_kek():
# assert 'foo neggs bar' == 'foo nspam bar'
# class Person():
# def greet():
# ... | [
"linasmith69@yahoo.com"
] | linasmith69@yahoo.com |
1c1876137f1c9717417fa9aeb3f2be22eb3301e0 | 47c964b21f4157d978b066f81124772abd15af7a | /venv/lib/python3.7/site-packages/pip-19.0.3-py3.7.egg/pip/_vendor/distlib/database.py | 030df06db6a0def7039cd2fdd1c77039ceef308f | [] | no_license | hvsio/ScrapperController | ae483e207c5ac7a89690e235a80d94c86c5195e9 | b05ab61e2e93cd396e6318a3eaf730101c2ae69f | refs/heads/master | 2022-03-28T15:00:59.109049 | 2019-12-09T23:51:53 | 2019-12-09T23:51:53 | 234,582,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,041 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2017 The Python Software Foundation.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
"""PEP 376 implementation."""
from __future__ import unicode_literals
import base64
import codecs
import contextlib
import hashlib
import logging
import os
import posixpath
import sys
import z... | [
"patrickvibild@gmail.com"
] | patrickvibild@gmail.com |
2b6663470e3ee010d70b708247f8c850bd6682ac | 16bc55e28eabc5f26b281d25e459458e34bfca44 | /urls.py | f028ad41d1b049563169c191d8cffd08b5bdcb0c | [] | no_license | 980124/- | 302c744241c237de967ffacdfa5d04d24772d50c | 5ec6045c831dccee74a2c41a62c7bb3dd32062be | refs/heads/master | 2020-06-30T08:27:30.153357 | 2019-09-06T06:45:50 | 2019-09-06T06:45:50 | 200,778,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | """wordcount URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"noreply@github.com"
] | 980124.noreply@github.com |
d8c4cdf133c9119b5c8825b538354dd78e455528 | d02f9b972dc29160955456d15082e24bf7ec231b | /lumin/nn/models/layers/self_attention.py | 2c2170fd68544955a08fcaed2711904ba8cb4318 | [
"Apache-2.0"
] | permissive | GilesStrong/lumin | fc644747f77ccfc064cab813b8bf1f5bea965062 | bcaf35731ef48bc6184d090a5180fbc33a3dfe6e | refs/heads/master | 2023-05-26T15:17:47.564892 | 2023-04-28T00:13:10 | 2023-04-28T00:13:10 | 163,840,693 | 48 | 16 | Apache-2.0 | 2023-04-14T01:14:57 | 2019-01-02T12:52:32 | Python | UTF-8 | Python | false | false | 4,573 | py | from typing import Callable, Optional, Any
import math
from fastcore.all import store_attr
import torch
from torch import nn, Tensor
from .activations import lookup_act
from .batchnorms import LCBatchNorm1d
from ..initialisations import lookup_normal_init
__all__ = ['SelfAttention', 'OffsetSelfAttention']
class Se... | [
"giles.strong@outlook.com"
] | giles.strong@outlook.com |
3a9f276b01003b3646492b2f4dda8c7d70f6f666 | 6e63894d2289feece585eb4d6b0085ecf9609c86 | /week7/draft3_arcs.py | 14b91740782135005e8bfb8311e6a8a0bf82cf85 | [] | no_license | Homerade/DA-520 | af592149cbb654b9564d931d5e7a6f644e3f4b04 | 0a4422dcdbbb41ec85d8f0e7ac8585adf1e96ae4 | refs/heads/master | 2021-01-13T08:59:02.059857 | 2016-12-10T04:52:16 | 2016-12-10T04:52:16 | 68,859,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py |
from PIL import Image
from PIL import ImageDraw
im = Image.new("RGB", (1000,1000), (255,255,255))
draw = ImageDraw.Draw(im, 'RGBA')
data = [
{'year' : 1820, 'figure' : 8385},
{'year' : 1821, 'figure' : 9127},
{'year' : 1822, 'figure' : 6911},
{'year' : 1823, 'figure' : 6354},
{'year' : 1824, 'figure' : 7912},... | [
"mizzsvizz@gmail.com"
] | mizzsvizz@gmail.com |
f2a26eb8fc4d0b681cb827a0d2f3b3b42e19e747 | 2cdca093365c498cd11f7f03385e9c9310a80113 | /reltest/util.py | 6d4a3c1695b5d2055f4d54d0ba58a2e26391f2cd | [
"MIT"
] | permissive | jenninglim/model-comparison-test | 3565a98253e05950d1dc55c39e0b8480c12b6166 | 0024d1ff76ef71a25610b368cc364a59bc672961 | refs/heads/master | 2020-07-20T21:59:02.231673 | 2020-01-08T18:13:28 | 2020-01-08T18:13:28 | 206,715,600 | 5 | 2 | MIT | 2020-01-08T18:13:29 | 2019-09-06T04:54:06 | Jupyter Notebook | UTF-8 | Python | false | false | 3,376 | py | import numpy as np
import time
class NumpySeedContext(object):
"""
A context manager to reset the random seed by numpy.random.seed(..).
Set the seed back at the end of the block.
From Wittawat Jitkrittum.
See https://github.com/wittawatj/kernel-gof/blob/master/kgof/util.py.
"""
def __ini... | [
"noreply@github.com"
] | jenninglim.noreply@github.com |
4e0f1314cd0c86b210a2a07cea518ae73d822d5e | b9878c92b857f73ff0452fc51c822cfc9fa4dc1c | /watson_machine_learning_client/libs/repo/swagger_client/models/array_model_version_metrics_experiments.py | faa813230c70d6c8be7f742146d6b8e505b1379b | [] | no_license | DavidCastilloAlvarado/WMLC_mod | 35f5d84990c59b623bfdd27369fe7461c500e0a5 | f2673b9c77bd93c0e017831ee4994f6d9789d9a1 | refs/heads/master | 2022-12-08T02:54:31.000267 | 2020-09-02T15:49:21 | 2020-09-02T15:49:21 | 292,322,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | # coding: utf-8
"""
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
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 comp... | [
"dcastilloa@uni.pe"
] | dcastilloa@uni.pe |
9ef6ceb92f36601794092fc771c1aaeafed08846 | 4b2f3531760607c2ea25434bd0d599d78c9b7b67 | /apps/utils/__init__.py | 422c7ccd3143519d38949ae893539659c698ffd3 | [] | no_license | yangtuothink/mxonline | 05c17f3be1c599ba53a0eecc84bd4fa5a256b428 | 8bd6ab9e16e01e4901c00f47b4ffa598b7859107 | refs/heads/master | 2020-04-29T01:17:48.437042 | 2019-05-06T11:58:07 | 2019-05-06T11:58:07 | 175,725,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | # _*_ coding:utf-8 _*_
__author__ = "yangtuo"
__date__ = "2019/3/16 10:28" | [
"745206110@qq.com"
] | 745206110@qq.com |
3f50a0c05995c671a5be627df0ded646f9272dd6 | 9ecee8a76e8516ea5f16764c3a9b8f24b56eabaa | /formula/cel_to_far1.py | 89c41615354101971de6ad63bdb37a16c55d6829 | [] | no_license | Abhinavsuresh21/python- | 35a93d255d309a6edcb76547bf54f6b40891fd1e | dca3c768474e20e681cacce3ce96eaf111812ff0 | refs/heads/main | 2023-09-02T18:59:50.962755 | 2021-10-18T06:20:27 | 2021-10-18T06:20:27 | 394,149,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | celsius=int(input("Enter celsius:"))
farenhiet=(celsius*9/5)+32;
print("\t\t output \n\n")
print("The entered celsius value:",celsius)
print("The calculated farenhiet :",farenhiet) | [
"noreply@github.com"
] | Abhinavsuresh21.noreply@github.com |
d0079b7be4a3e7f64982fa38add317d358fa9bf7 | 6ca19bc795797dcab87830d691c6b0aaacd3bfdb | /examples/resume_albert_eigenmetric.py | 16fa470f01484356ef262f6008c1566688168e5a | [
"BSD-2-Clause"
] | permissive | davidjurgens/prosocial-conversation-forecasting | 78174e9d684a2a752f8ed84588cf54d63d91a512 | 473496d59e37a78d6246bf0f8eba3571114e29d2 | refs/heads/main | 2023-06-02T03:02:44.855084 | 2021-06-15T15:25:07 | 2021-06-15T15:25:07 | 338,390,002 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from models.albert.EigenmetricRegressionSolver import EigenmetricRegressionSolver
from models.albert.AlbertForEigenmetricRegression import AlbertForEigenmetricRegression
from pathlib import Path
ROOT = Path('/shared/0/projects/prosocial/data/finalized/')
pretrained_system_name_or_path = \
ROOT / 'model_checkpoints... | [
"jiajunb@umich.edu"
] | jiajunb@umich.edu |
396c00c6189cb775934dbfb6254143045646d951 | dc23ba044be5311e0515b602fd0f6c3cd4042464 | /test/test_ui.py | 4ea2e5f422fbda35d517ba535e574b951131352c | [] | no_license | gfixler/tomayto | 63143ce15f6c06536e99d12cd320464eee5461d3 | a84679cc67f099538eb1f1b28f76b8c264c6a596 | refs/heads/master | 2023-08-31T15:45:44.198644 | 2023-08-16T08:57:25 | 2023-08-16T08:57:25 | 191,275,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import unittest
import ui
class Test_SelectionList (unittest.TestCase):
def test_canInstantiateWithNothing (self):
sl = ui.SelectionList(createUI=False)
self.assertEqual(sl.values, [])
def test_canInstantiateWithList (self):
testList = ["one", "two", "three", "four", "five"]
... | [
"gary@garyfixler.com"
] | gary@garyfixler.com |
4eebf9122238374366dac7ce8293e764812a7754 | b5078eb072a327c4be87630e1e98c2018b988b1c | /fortniteTracker.py | 62fd66560f0efd8751e47b9e5bea47a126fe5dec | [] | no_license | johngraham660/fortniteTracker | 5b554f05d10655c306ff9111c887d02c905ce5fb | d68ebbd96524a176163f3cba40abf0e2ede4dd36 | refs/heads/master | 2022-09-06T08:35:46.719231 | 2019-12-08T22:35:58 | 2019-12-08T22:35:58 | 226,734,720 | 0 | 0 | null | 2019-12-08T22:35:59 | 2019-12-08T21:31:10 | Python | UTF-8 | Python | false | false | 3,858 | py | #!/usr/bin/env python3
import os
import sys
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
def __get_br_player_stats():
url = "https://api.fortnitetracker.com/v1/profile/"
endpoint = url + profile + ... | [
"johngraham660@gmail.com"
] | johngraham660@gmail.com |
f2237a63fc73251d11b08c32db14f2b4331d7346 | 2fdccb28d6a8a0e5e5a0023bb99e6fdb855fc7b3 | /vagrant/database_setup.py | d6fbf3ac6567a21677c9e6156544231bd57d5539 | [] | no_license | jd12/fullstack-nanodegree-vm | 93e524b2b5b910b1ea5aa3ecd41d20ba436d424b | 54b18946f550c5f6cf0bb7a6d0059b57635c4531 | refs/heads/master | 2020-07-15T06:58:43.073560 | 2017-10-08T23:09:03 | 2017-10-08T23:09:03 | 45,796,631 | 0 | 0 | null | 2015-11-08T20:04:27 | 2015-11-08T20:04:26 | null | UTF-8 | Python | false | false | 836 | py | import sys
from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
Base = declarative_base()
class Restaurant(Base):
__tablename__ = 'restaurant'
name = Column(String(80), null... | [
"jd@cs.umass.edu"
] | jd@cs.umass.edu |
0295b3a9d43de5b3cccad05b2c96a3748de6199b | cdc20b6c6672f9d1bceacf203eebfcc1e17a3cd4 | /env/bin/pip | 7f374a428f9faa3d2306f4d6454d34381d90952b | [
"MIT"
] | permissive | akatcha/storyteller | 54a3d321292101c8fbd83e149fe42739ed41547d | b485dca52ebc3d22decc705705bf778d490dc082 | refs/heads/master | 2021-07-15T12:32:45.070469 | 2017-10-21T15:01:52 | 2017-10-21T15:01:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/mnt/c/Users/Andrew/Documents/hacking/storyteller/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"akatcha@umich.edu"
] | akatcha@umich.edu | |
f743314f0c24de90ca2297a53bff462db910360d | a48cff82e98279e19c0f759ff15974e6ace4feab | /ordering/util/upc2excel.py | a3cef929dd26a95b0f1009986174ff4aa6c5321c | [
"MIT"
] | permissive | LamCiuLoeng/jcp | 59cd503f3553a7fd2cc966ac9d39bac0036c2688 | a9efaa5fe26714465a690e1bc0d820713bf11080 | refs/heads/master | 2021-01-22T11:20:41.772418 | 2014-05-30T09:18:04 | 2014-05-30T09:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,689 | py | # -*- coding: utf-8 -*-
import shutil, os, zipfile, traceback, random
from datetime import datetime
from ordering.util.excel_helper import *
from common import serveFile, Date2Text
from ordering.model import *
from tg import request, config, flash, redirect
import time, zlib
from ordering.util.bin2hex import *
epcobj=... | [
"lamciuloeng@gmail.com"
] | lamciuloeng@gmail.com |
fb2863bacc09c5bed7d80aee30a690e7b65abba1 | a600c0c0ca4be9103a4977725ef77459b7ef483f | /test_api/extensions.py | 6656117c2dfce24db6e48b3143c5c7d148dc28bc | [
"Apache-2.0"
] | permissive | hpf0532/flask-celery-demo | a739e5bcb1bf46dfcee487b3c4c08afa3a15e843 | 19c736b0c75227bd94eda3c74de6c2e8c118545a | refs/heads/master | 2022-01-22T01:33:03.427332 | 2020-03-03T14:18:27 | 2020-03-03T14:18:27 | 244,649,950 | 10 | 0 | Apache-2.0 | 2022-01-06T22:42:38 | 2020-03-03T13:57:37 | Python | UTF-8 | Python | false | false | 132 | py | from flask_sqlalchemy import SQLAlchemy
from flask_celeryext import FlaskCeleryExt
db = SQLAlchemy()
celery_ext = FlaskCeleryExt()
| [
"hpf1992@126.com"
] | hpf1992@126.com |
11c93caecd66f575eb4adb81ecc712d0f618b123 | 0d29ffb6792b0a964388ea811591fb8b3606f2e7 | /problems/hitcon2014-rsaha/server.py | 67d187c11f3069454a0a09fe89f9010ed22612af | [] | no_license | dkohlbre/crypto-vm | a9dc5c5609267325df000a13fb0bbea23620f690 | cbb11bbb2c6ae446883e718e11c8a2166fc6a79e | refs/heads/master | 2016-09-06T09:00:09.436010 | 2015-06-12T18:48:41 | 2015-06-12T18:48:41 | 35,638,059 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | #!/usr/bin/env python
import random
import select
import signal
import sympy
import sys
class Unbuffered(object):
def __init__(self, stream):
self.stream = stream
def write(self, data):
self.stream.write(data)
self.stream.flush()
def __getattr__(self, attr):
return getat... | [
"david.kohlbrenner@gmail.com"
] | david.kohlbrenner@gmail.com |
6a6aa1efeccf513f3b03b7e74b63d6f3d9d2de0f | 92943fadaa0468848cb4180d40e6820e90a21697 | /simple/process_data.py | 1bbc5a895e63191d47a9e3ed4c2a7dc870a9e541 | [] | no_license | arhee/midi_song | 269997c8954e7a5db3822e975fef81be99e48847 | b0aa8ce04bb82f47a4a7d5d05d4eee76f8222b17 | refs/heads/master | 2021-01-01T17:27:28.860683 | 2017-01-17T08:03:09 | 2017-01-17T08:03:09 | 78,306,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | """ A simplified version of the problem that only looks at note
sequence
generates a matrix of note sequences.
"""
import mido
import glob
import numpy as np
from math import ceil
import pickle
import numpy as np
def get_notelist(mido_obj, res=16, note_range=(36,84)):
"""
Args:
res (int) - resoluti... | [
"alex.rhee@gmail.com"
] | alex.rhee@gmail.com |
c69efa01965331bd2028a83d33866ec5b96324b3 | 66828168e36f905697fcc144f7610c88450927d9 | /ee/clickhouse/queries/event_query.py | cd38645db748faad161d6656ea0676fa8ee385f4 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | nehachauhan14/posthog | 975657e855e951aae82acfe6606f678304146dd0 | 27144478f534290ee01b69d6ac5c6a53b8e05ec4 | refs/heads/master | 2023-06-05T17:30:39.999325 | 2021-06-19T00:40:49 | 2021-06-19T00:40:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,406 | py | from typing import Any, Dict, Tuple
from ee.clickhouse.models.cohort import format_person_query, get_precalculated_query, is_precalculated_query
from ee.clickhouse.models.property import filter_element, prop_filter_json_extract
from ee.clickhouse.queries.trends.util import populate_entity_params
from ee.clickhouse.que... | [
"noreply@github.com"
] | nehachauhan14.noreply@github.com |
14dcde1b59329171940009e02890125834141f0b | d7d0ecda6573a96e01d24531dfd257924d035d9c | /sept3/settings.py | 6460fe08615df1b41591fba959a3d1ac3b0c4889 | [] | no_license | Nikadeatul/textutils | 3a7390c3e6776d2ea23bb01ed0043329888aa2ef | b92971632b974284a206fd7d8a3554c0786a68bf | refs/heads/master | 2023-08-31T18:24:08.248802 | 2021-10-16T22:17:02 | 2021-10-16T22:17:02 | 417,961,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,070 | py | """
Django settings for sept3 project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"atul.nikade14@gmail.com"
] | atul.nikade14@gmail.com |
0a800a7ec152611cb1769c87d63ff497a36c01d6 | 5126d4883d3aa1d748ed0459e97864a7176939f4 | /core/model.py | 2ad9fb5768fc9710a09637f939d52f8c65b3b815 | [] | no_license | samxuxiang/Attention-Based-Hierarchical-Model- | 3e1446c6b6044a64caac4e73a77863fa6e430fe8 | 09ca85a15997c60127484f4070b549d098464e5c | refs/heads/master | 2020-06-10T19:04:09.919594 | 2018-10-21T21:06:29 | 2018-10-21T21:06:29 | 75,902,990 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,891 | py | # =========================================================================================
# Xiang Xu (2016-12-1) code for 10-807 final project
# reuse some of the code from (https://github.com/yunjey/show-attend-and-tell-tensorflow)
# (https://github.com/jazzsaxmafia/video_to_sequence)
# o... | [
"noreply@github.com"
] | samxuxiang.noreply@github.com |
104ffcfd06540accfbcfa954aeb37d85855b1fbd | 478b00d917af3105a75f8378d72227deb81a6067 | /src/cn/xuqiang/fromInfoGAN/__init__.py | 30fae0e1d9e84dd8d80b791fa08f62fbee34b04f | [] | no_license | happyxuwork/python-learning | a0710054f87d9e5373838c28dc878bae007bd512 | e9395d961f505ce0d5e1804fd56174e8a6ab3b6d | refs/heads/master | 2021-09-06T11:53:51.451932 | 2018-02-06T08:20:37 | 2018-02-06T08:20:37 | 108,230,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | # -*- coding: UTF-8 -*-
'''
@author: xuqiang
'''
| [
"1104016959@qq.com"
] | 1104016959@qq.com |
c99d8e836e35915178184c08f009c5dde02d8c0a | cf28b08c7c47fe3fa8890fcd2a0429d83d9dbb3e | /samples/msi_extensions/setup.py | 93d2dc5d7339f8a7ce7cf37820c308fc1f0c3f74 | [
"Python-2.0"
] | permissive | marcelotduarte/cx_Freeze | bc948693f5b650bf2459c0093c3a98ca419a1df9 | 38438b2418af9cda5f982c74ca55dc235d08aaa1 | refs/heads/main | 2023-08-18T11:37:29.282372 | 2023-08-16T01:32:06 | 2023-08-16T01:32:06 | 79,693,503 | 628 | 121 | null | 2023-09-14T19:15:58 | 2017-01-22T04:25:52 | Python | UTF-8 | Python | false | false | 2,107 | py | """A very simple setup script to test adding extension handling to an MSI file.
This script defines three ways for the hello.py executable to handle text
files, that are registered in the operating system.
hello.py is a very simple 'Hello, world' type script which also displays the
environment in which the script run... | [
"noreply@github.com"
] | marcelotduarte.noreply@github.com |
7d18a8d08397a2a3ff16bbb099e2b3122e4d2071 | c954c2b7827ad00ed6fa88d69ec9f720e8a70199 | /indicators/demarker.py | 42ff7b315a0ccd4397ebc6c80bd92a5002a96e00 | [] | no_license | ShivAyyalasomayajula/quant | a4ae0f179703739c7fba85e7dba04c3a4ce05169 | 4cbaec658c4f01794a8625388cf4419312a350f7 | refs/heads/main | 2023-08-23T04:54:04.448989 | 2021-11-03T16:20:35 | 2021-11-03T16:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | import numpy as np
import vectorbt as vbt
from numba import njit
from vectorbt import _typing as tp
from vectorbt.generic import nb as generic_nb
# @njit
# def rolling_demarker_1d_nb(high: tp.Array1d, low: tp.Array1d, period: int) -> tp.Tuple[tp.Array1d, tp.Array1d, tp.Array1d]:
# demin = np.empty_like(low, dtype... | [
"robin.braemer@web.de"
] | robin.braemer@web.de |
02f0f826e20fe85b4578afa4a362aaf4b68434ad | d18cc96fbcf87e11155fbe8fa199989207dcdbd7 | /migrations/versions/7dbb13e5d7c2_.py | 0080e7ae14e0402e672f67fbda809470051473ea | [] | no_license | Ivan-Sidorov/DeliveryService | c22e20fdc6183e2728fa177346f45f9eafb5b35b | e5edfff40b84c5a7008cb694bc694e8652832192 | refs/heads/main | 2023-03-27T17:13:29.242279 | 2021-03-29T19:29:12 | 2021-03-29T19:29:12 | 351,583,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | """empty message
Revision ID: 7dbb13e5d7c2
Revises: bb1166c0df6a
Create Date: 2021-03-28 13:51:05.640557
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7dbb13e5d7c2'
down_revision = 'bb1166c0df6a'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"ivsidorov@miem.hse.ru"
] | ivsidorov@miem.hse.ru |
82f6291414d25aa2247cba2267bbc2e7241e8ec3 | ba978ed8509119c7f9e5d300db3b9b171838f891 | /Bioinformatics Stronghold/RNAtoProtein.py | 3e7ad84a27758e7282ee07fa2d8ee5618995a6da | [] | no_license | nadintamer/ROSALIND-Solutions | cddfbc9ebfb38b187ff7899c72361c692a6481a8 | a1b6c613e0c23346ee5236528f2aa39b1eb365c7 | refs/heads/master | 2021-09-07T02:50:42.289324 | 2018-02-16T06:16:06 | 2018-02-16T06:16:06 | 121,720,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | RNATable = [["UUU","F"],["UUC","F"],["UUA","L"],["UUG","L"],["UCU","S"],["UCC","S"],["UCA","S"],["UCG","S"],["UAU","Y"],["UAC","Y"],["UAA","Stop"],["UAG","Stop"],["UGU","C"],["UGC","C"],["UGA","Stop"],["UGG","W"],["CUU","L"],["CUC","L"],["CUA","L"],["CUG","L"],["CCU","P"],["CCC","P"],["CCA","P"],["CCG","P"],["CAU","H"]... | [
"noreply@github.com"
] | nadintamer.noreply@github.com |
73119077bbf5b83ed52963ba055abbd4c00aa70c | 3624dce3d8c498ee95c1734c33e161f1199ce788 | /setup.py | 57194c6f379bf8faf37dceb9bc1a141671f67e9c | [] | no_license | jimyong88/idworker | dbb5bfdc75700c599949b5643fa42122375a11a9 | cd6ab2ac7ae4a325f9bf695461105246e8f480ac | refs/heads/master | 2021-04-16T23:23:44.393531 | 2020-03-23T10:14:45 | 2020-03-23T10:14:45 | 249,391,755 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# __author__ = 'Jim Yong'
# __date__ = '2020/03/23'
# __contact__ = 'jimyong88@gmail.com'
# __copyright__ = 'Copyright (C) 2020, JimYong.com'
import sys
if sys.version_info < (2, 5):
sys.exit('Python 2.5 or greater is required.')
from setuptools import setup, find_pac... | [
"jimyong88@gmail.com"
] | jimyong88@gmail.com |
eb4af5608df2b19a482bf8d9f385e8e9283f9044 | df1141f0ec887cc6011cd8f0b864c6ad177ea46c | /MBIT/main/migrations/0001_initial.py | 287c5ba6cc71d538a931d6b5e3751f872acbcef2 | [] | no_license | Hyewon0223/DjangoStudy | 038004b93ebc87c2efc55f3052df47257b84ff7a | a5aa14c8922ff822e3636e3afda90cc5106a8aeb | refs/heads/main | 2023-07-16T02:16:09.842177 | 2021-08-26T15:34:27 | 2021-08-26T15:34:27 | 391,594,466 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | # Generated by Django 3.2.6 on 2021-08-16 14:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Developer',
fields=[
... | [
"ch2w2006@kookmin.ac.kr"
] | ch2w2006@kookmin.ac.kr |
3bccd42bea4632f044374355cd4daf40939d9ac7 | c95a432510a6bfd56caf6097085bf1af95e9f850 | /boardgames/tictactoe/models.py | bd51665a1b1aebb2d541055967af76166446c1d9 | [] | no_license | Epsa1993/boardgames | ddae144eccd4b592f8e77bdf9c99da43415856b6 | 8acbb8596b01eff708c5d46867f67876434e05ed | refs/heads/master | 2021-01-15T19:04:18.167165 | 2017-08-09T12:23:42 | 2017-08-09T12:23:42 | 99,804,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Game(models.Model):
first_player = models.ForeignKey(User, related_name = "games_first_player")
second_player = models.ForeignKey(User, related_name = "games_second_player")
next_to_move = models.ForeignKey(Us... | [
"epsa.kausik@thoughts2binary.com"
] | epsa.kausik@thoughts2binary.com |
18b798923083b1b718cbaeeda3686f0d2cfb8328 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Difference/trend_MovingAverage/cycle_12/ar_12/test_artificial_1024_Difference_MovingAverage_12_12_20.py | 3af611f7bc5cdf7bbd199fef12858416f640dc8c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 277 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 12, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
e471e36174f124757ad31571788e0c21cf65dda1 | 0326948d86a409347b62c93cae8fe6fcd04da7fd | /hello_world.py | 6a0176e4d1f68dc447382907b3015b550bf0a8e5 | [] | no_license | danylo-basarab/lab_1_AIMP | 4df92d3b114eef9cad9d59456ab43da43351f3c4 | b0b796aa582dde4f24ada64ea9e887278ebaeef5 | refs/heads/master | 2023-03-06T07:53:05.575641 | 2021-02-19T20:10:27 | 2021-02-19T20:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | name = input('Enter your name : ')
print('Hello world from ', name) | [
"danya.basarab@gmail.com"
] | danya.basarab@gmail.com |
6407cd5a5fc81d533d847a1fde80f8d2e84e263b | a74fd817087c65b59ff6638cecb0313567db92c8 | /setup.py | 32c121691300224a1ba4122b3c1a781b4ad77178 | [
"MIT"
] | permissive | daveyclk/hologram-python | 17f63ea44def79ab561a751c4d76af07f019ff87 | 7a75b6a30466556c96da900889f64460176a9071 | refs/heads/master | 2021-05-06T20:01:37.485758 | 2017-11-20T22:27:08 | 2017-11-20T22:27:08 | 112,255,426 | 0 | 1 | null | 2017-11-27T22:20:49 | 2017-11-27T22:20:49 | null | UTF-8 | Python | false | false | 1,394 | py | #!/usr/bin/env python
# Copyright 2016 Hologram (Konekt, Inc.)
#
# Author: Hologram <support@hologram.io>
#
longdesc = '''
This is a library for connecting to the Hologram Cloud
'''
import sys
try:
from setuptools import setup, find_packages
kw = {
}
except ImportError:
from distutils.core import setu... | [
"tanzhao@umich.edu"
] | tanzhao@umich.edu |
cd645ef44cc5b4f56a1430cb8b3c0482ece779e7 | bac508336950084cc1c47c85e37bc8bc8bb8bda4 | /names/bst.py | fe3669bffe384449b143e82f3f86907fa1392601 | [] | no_license | deegrams221/Sprint-Challenge--Data-Structures-Python | bc61b2b6c0cf2b82d455a9fd086f329772ad24a2 | 73082267bbd3e99eb617725167b1c5cf1ce7adde | refs/heads/master | 2020-12-26T09:26:38.276392 | 2020-02-24T21:00:00 | 2020-02-24T21:00:00 | 237,464,812 | 0 | 0 | null | 2020-02-24T21:00:02 | 2020-01-31T16:02:24 | null | UTF-8 | Python | false | false | 1,801 | py | # from README: "Hint: You might try importing a data structure you built during the week"
# this is from the data strutures assignment, insert and contains will be useful for the names challenge
class BinarySearchTree:
def __init__(self, value):
self.value = value
self.left = None
self.righ... | [
"deegrams221@gmail.com"
] | deegrams221@gmail.com |
55b08fc6b6a02a3ec359ec5f61ae3856f2eda02e | bd561f3a1df58bb6964a48d0bbf8f9ad98591bff | /zhaoyuanfang/classwork/DSVC/__init__.py | d832ceb00c0683e083fe6a692973e9663e46ea74 | [] | no_license | yuanandfang/HandwrittenNumberRecognition | 393dd71fe8d86772f4fc9a2e346604a9d6abeca1 | b22ae987a0056277e268ac1c75e457239aaf7d0e | refs/heads/master | 2020-06-09T21:54:35.075298 | 2019-07-01T01:34:48 | 2019-07-01T01:34:48 | 193,513,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | # -*- coding: utf-8 -*-
import numpy as np
class LogisticRegression(object):
def __init__(self, learning_rate=0.1, max_iter=100, seed=None):
self.seed = seed
self.lr = learning_rate
self.max_iter = max_iter
def fit(self, x, y):
np.random.seed(self.seed)
self.w = np.r... | [
"969910828@qq.com"
] | 969910828@qq.com |
aec9f81b651f9a846ebea9f50caecb3593c3d85f | b30013883f4086d0c45def2e25b78ddb1d982656 | /to_do_backend/to_do/views.py | 7b2b22212ad5c21454b2782600a5806569832649 | [] | no_license | KliskaB/to-do-back | 1f3d79e3de75d1bc15ec43b8253e50d79a5ef6e9 | 19db44e27cdc59ddee8db9eb7922a112b7d3053f | refs/heads/master | 2022-12-31T00:12:56.401506 | 2020-10-12T15:16:02 | 2020-10-12T15:16:02 | 300,601,870 | 0 | 0 | null | 2020-10-12T15:16:04 | 2020-10-02T12:04:59 | Python | UTF-8 | Python | false | false | 1,808 | py | from django.shortcuts import render
from rest_framework import viewsets
from rest_framework import permissions
from rest_framework.mixins import ListModelMixin, CreateModelMixin, RetrieveModelMixin, UpdateModelMixin, DestroyModelMixin
from to_do_backend.to_do.serializers import UserSerializer, UserDetailSerializer
from... | [
"bojana.kliska@gmail.com"
] | bojana.kliska@gmail.com |
d222f9eae1ebfcc2f978d12980efc6076d8df10b | c9bc27f70a4bca5ce6acf346bfc25b5407502d00 | /ATIVIDADE G - FÁBIO 2b - CONDICIONAIS/fabio2b_q02.py | cb1d0d5204481b047a05930e54ddb636a49ee89c | [] | no_license | lucascoelho33/ifpi-ads-algoritmos2020 | 2197bbc84ce9c027b3f1da006728448a846d7ffb | 1ce20a489adbfe7321817acd98d35f2efc0360ca | refs/heads/master | 2021-03-01T23:03:10.293013 | 2020-10-17T14:35:19 | 2020-10-17T14:35:19 | 245,650,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #2. Leia uma letra, verifique se letra é "F" ou "M" e escreva F - Feminino, M - Masculino, Sexo Inválido.
def main():
letra = input()
if letra == 'F' or letra == 'f':
print('Feminino')
elif letra == 'M' or letra == 'm':
print('Masculino')
else:
print('Sexo Inválido')
main()... | [
"llucascoelho33@gmail.com"
] | llucascoelho33@gmail.com |
ad60b7d3b64972e2aaff9c5988e2f6e6f3805096 | eeedc65ef99590d8316963717d1012cc6c90c9c5 | /test/functional/wallet-dump.py | 1f2b622a436b301701c2cc0b04a41ca20dca24e6 | [
"MIT"
] | permissive | BayerTM/DraftCoinZ | e277353042c908373738bce65716c38ab0cbc0ff | 217db2822a320d278d93dda4d3cd5dc4d01764f2 | refs/heads/main | 2023-06-01T00:54:12.511923 | 2021-06-09T21:35:24 | 2021-06-09T21:35:24 | 362,256,925 | 0 | 0 | MIT | 2021-04-27T22:23:49 | 2021-04-27T21:33:59 | null | UTF-8 | Python | false | false | 5,401 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the dumpwallet RPC."""
import os
import sys
from test_framework.test_framework import BitcoinTestFrame... | [
"james@xmc.com"
] | james@xmc.com |
4e40229cac88d3bdc1699557b9dbed9b9c045112 | 345a78f09f15a6679a9071756c8eaf593c5574d8 | /GUI/2.py | 8c97774f6e66b7afe489ed5a33535a133fe8b940 | [] | no_license | BingteamP/Bing_project | 790e7fff0a7290516f3441ceaa917665c4cdde75 | 727f6b13b62d02123ccc47b431acec262be6617c | refs/heads/master | 2021-01-17T22:23:55.947252 | 2014-04-24T11:37:22 | 2014-04-24T11:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | import sys, random
from PyQt4 import QtCore, QtGui
class TabContainer(QtGui.QWidget):
def __init__(self):
super(TabContainer, self).__init__()
self.next_item_is_table = False
self.initUI()
def initUI(self):
self.setGeometry( 150, 150, 650, 350)
self.tabwidget = QtGui.QTabWidget(self)
vbox ... | [
"titantbx1989215@gmail.com"
] | titantbx1989215@gmail.com |
a813ff6fd719a3e29e71a87be6ef707c0e85d852 | 785f5a4bfd97ac77559110fb831f18a3822b4e17 | /01-python_crash_course/01-ejercicios_teoria/chapter_08_functions/printing_functions.py | 4e617cff0835de7ddd59a36082e1a19a02856dc1 | [] | no_license | lionelherrerobattista/practica_python | c552ae06336eb805172decd0d527b26a17c09cb9 | 44f09bae58748c2c7c2449adc5117591abd2828d | refs/heads/master | 2020-03-28T02:28:09.910563 | 2020-03-14T21:31:31 | 2020-03-14T21:31:31 | 147,572,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | def print_models(unprinted_designs, completed_models):
"""
Simulate printing each design, until none are left.
Move each design to completed_models after printing.
"""
while unprinted_designs:
current_design = unprinted_designs.pop()
# Simulate creating a 3D print from the design.
... | [
"-"
] | - |
19efb2bfb2c6e26d4dd0e9ce150675128eb97e0e | 44ab74f49657a4244a5f63f6f7bc2a94d522d604 | /homework05/tests/tests_api/test_wall.py | df64f047c780028362f8c5ad437ff8edcedd9fba | [] | no_license | a-makhneva/cs102 | f40a8ce61567502b5d9e23e685d6ad2e423a3da1 | fc5068903e0ad8f7da4421839d5ffa1d4cdbb34a | refs/heads/master | 2023-06-10T12:52:26.150511 | 2021-06-20T16:45:39 | 2021-06-20T16:45:39 | 294,995,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | # type: ignore
import time
import unittest
from unittest.mock import patch
from urllib.parse import unquote
import pandas as pd
import responses
from vkapi.wall import get_wall_execute
class GetWallTestCase(unittest.TestCase):
@responses.activate
def test_total_count(self):
expected_items = [
... | [
"a.d.makhneva@gmail.com"
] | a.d.makhneva@gmail.com |
32ad20a99bffd0ca006bdc4359c4d4069b6d9279 | 7b62646f1ef86004c0dacc7ba251b63740386d7e | /django/django_fullstack/login_register/user/migrations/0003_user_birthday.py | 96d47801bcadc2ebfefea61eb39dfc4072bf2833 | [] | no_license | Ayman-Yahia/CodingDojo-Python | b8eaa72985b0f094100e571485e2af1dae2478b5 | 4b63df0cc3f421fc308f04db8c89626078655d26 | refs/heads/main | 2023-05-07T15:48:23.210832 | 2021-06-01T13:26:31 | 2021-06-01T13:26:31 | 365,169,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 2.2.4 on 2021-05-26 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0002_auto_20210526_1120'),
]
operations = [
migrations.AddField(
model_name='user',
name='birthday',
... | [
"ayman.ya1997@gmail.com"
] | ayman.ya1997@gmail.com |
4cc34fd865acc73b1c03106b77244e6b8d5fd27c | e86fd9f61a41731deb9d56e1107db04de41b6789 | /beebeeto/poc_2014_0137.py | d3a03244caae5ff9208f7ba88909bc6aa7ab6963 | [] | no_license | c0py7hat/POC-EXP | f58e0f1df41e1905e5fdc72b019f8125aac48799 | 7ddf2790012efb7fb5bd258ddcd1e1c25f0cf201 | refs/heads/master | 2020-04-30T07:05:31.390537 | 2019-03-20T08:38:50 | 2019-03-20T08:38:50 | 176,674,030 | 3 | 2 | null | 2019-03-20T08:09:56 | 2019-03-20T07:00:45 | Python | UTF-8 | Python | false | false | 1,615 | py | #!/usr/bin/env python
# coding=utf-8
"""
Site: http://www.beebeeto.com/
Framework: https://github.com/n0tr00t/Beebeeto-framework
"""
from baseframe import BaseFrame
class MyPoc(BaseFrame):
poc_info = {
# poc相关信息
'poc': {
'id': 'poc-2014-0137',
'name': 'E... | [
"noreply@github.com"
] | c0py7hat.noreply@github.com |
e4b7622846f0bfea863fc33b8dbb4fb97831033b | 12f441018818dc2dcb1a8a89bccd946d87e0ac9e | /pywinrt/bleak_winrt/windows/foundation/__init__.pyi | 8882078b9847e0b5eb06fb2117544d7c230fcd34 | [
"MIT"
] | permissive | dlech/bleak-winrt | cc7dd76fca9453b7415d65a428e22b2cbfe36209 | a6c1f3fd073a7b5678304ea6bc08b9b067544320 | refs/heads/main | 2022-09-12T00:15:01.497572 | 2022-09-09T22:57:53 | 2022-09-09T22:57:53 | 391,440,675 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,668 | pyi | # WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.7
import enum
import datetime
import sys
import types
import typing
import bleak_winrt._winrt as _winrt
import bleak_winrt.windows.foundation.collections
class AsyncStatus(enum.IntEnum):
CANCELED = 2
COMPLETED = 1
ERROR ... | [
"david@lechnology.com"
] | david@lechnology.com |
21f9208488ecb8a3338940b7032bf4115ecc4f96 | 773a497d2b697ce9526f85eaa08730b8610ead7c | /store/views.py | ff23bb730e6afe352a66a94dd277d37d0c194bd7 | [] | no_license | karimkohel/TheLiquidBay | 4493050be4729c9b671f1f102b42a2bb296b1298 | 2ccf917c55b35486762c57e9fad94eea04560ff5 | refs/heads/master | 2020-06-19T13:08:28.938367 | 2020-05-03T14:34:06 | 2020-05-03T14:34:06 | 196,719,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from django.shortcuts import render
from .models import Liquid
# Create your views here.
def store_front(request):
context = {
'title':'Store',
'store': True,
'liquids': Liquid.objects.all()
}
return render(request,'store/front.html',context) | [
"kareemkohel@gmail.com"
] | kareemkohel@gmail.com |
ad97f8f44b0d1b59ed70aa09d13cfd66c83619eb | d5f2e696ae689a3d08a7344b805ae9ef7d3c9a24 | /app/api/auth.py | be27e2b1c731a1ce22e018065acb765c255b7fda | [] | no_license | prasannaboga/flaskapp05 | 02bd5eb7feac8a0a05bc7c1d2e0fec5548ad55fb | ea70fc384e45560b3383c1e3d05d5adfda9aa5ac | refs/heads/master | 2020-03-23T05:20:13.746196 | 2018-08-02T05:54:52 | 2018-08-02T05:54:52 | 141,137,770 | 0 | 0 | null | 2018-07-24T06:44:31 | 2018-07-16T12:48:13 | Python | UTF-8 | Python | false | false | 677 | py | from flask import g, jsonify, make_response
from flask_httpauth import HTTPBasicAuth
from mongoengine import DoesNotExist
from app.models.user import User
auth = HTTPBasicAuth()
@auth.verify_password
def verify_password(email_or_token, password):
user = User.verify_auth_token(email_or_token)
if not user:
... | [
"prasannaboga@gmail.com"
] | prasannaboga@gmail.com |
50bb7529f787f66817aa8d61e51cc3bc2dfd0161 | 920b1fa1d9ccfaf9902df878a42a1482f41fb846 | /src/sudoku/game/exceptions/InvalidCmdParameterException.py | 53f9e1299eecef67eb162062c10d039462aa77ed | [] | no_license | pysudoku/sudoku | 97fe616e18e538093217a42d04ee8650a94c78e5 | 27cc2f7cb52ea787191095c2e581729c22bba62a | refs/heads/master | 2021-01-19T07:56:51.777861 | 2013-07-26T18:11:28 | 2013-07-26T18:11:28 | 11,187,872 | 1 | 0 | null | 2013-07-25T16:24:28 | 2013-07-04T22:43:06 | Python | UTF-8 | Python | false | false | 246 | py | '''
Created on Jul 16, 2013
@author: Jimena Terceros
'''
class InvalidCmdParametersException(Exception):
'''
classdocs
'''
def __init__(self, message):
'''
Constructor
'''
self.message = message | [
"jimena.terceros@jalasoft.com"
] | jimena.terceros@jalasoft.com |
dda5f468da7ee6e3b8d491722caa2bc4ee97e3c1 | 9d1a8a273ae12a581c849536914ca85de299c0d9 | /project source/main/models.py | 0d1954c5bd7c7b11475ffa7d8f98cdd3d8693865 | [] | no_license | kartiktyagi4282/Plant-Disease-Prediction | bc015a833dd47af71b0d47e9b17aa6cb2f06a11b | c30ec971f41ccebbc590c45490e1ce740c143d65 | refs/heads/master | 2022-12-09T21:28:03.204182 | 2020-10-03T12:52:21 | 2020-10-03T12:52:21 | 189,465,061 | 2 | 3 | null | 2022-12-08T05:32:50 | 2019-05-30T18:42:57 | Jupyter Notebook | UTF-8 | Python | false | false | 1,470 | py | from django.db import models
import os
import re
from datetime import datetime
def upload_image_directory_path(instance, filename):
filename, file_extension = os.path.splitext(filename)
return 'plant/'+re.sub('[-:. ]','',str(datetime.today()))+file_extension
class Plant(models.Model):
name = models.CharFi... | [
"tyagikartik4282@gmail.com"
] | tyagikartik4282@gmail.com |
d4006dfa73357c64b9566faf1dbbe03faf4a46d4 | 896d2fc1e9880f5d90fc65b28bcf537097a577d2 | /database/agents.py | 01865c785b8d6c09da207e12da26fdbc294c5bfc | [] | no_license | rogerio-stubs/manager_data | 66265c77b48c89e074642258adb755e2fd0a7150 | 7f46edd696ac270587f00c74a1a5acc4877e3271 | refs/heads/master | 2023-02-08T11:24:57.211042 | 2021-01-02T03:27:22 | 2021-01-02T03:27:22 | 291,856,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from pymongo import MongoClient
from database.connection import agents
def login(user, password):
user_id = -1
acesso = "Acesso negado"
for user_id in agents.find({"user": user, "password": password}, {"atributo":0}):
if user_id != -1:
acesso = user_id.get("_id")
return acesso | [
"rostubs17@gmail.com"
] | rostubs17@gmail.com |
3f5ca45997d31a884f9b70cd4d755a2e1db9a3af | 05d12a410a1cd0ee477e5f302adc916973f551e2 | /config/set_apn.py | 56cd97666508cc70bd5978d44e4d9d8bfde10d9f | [] | no_license | KWH-DAS-TEAM/Datalogger | 30b78aaaa487fd34fceeeb032803a51e216c66d4 | 68f97ec5e561fb1b18bf3e84c4b9267d0efcfbec | refs/heads/master | 2022-11-10T04:25:33.117387 | 2020-07-02T02:08:18 | 2020-07-02T02:08:18 | 275,955,874 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | #!/usr/bin/env python3
import KWH_MySQL
import sys
sys.path.append('/kwh/lib')
try:
APN = sys.argv[1]
except:
print("Usage: setapn <APN> <optional Username> <optional Password>")
exit(1)
try:
USER = sys.argv[2]
except:
USER = " "
try:
PASS = sys.argv[3]
except:
PASS = " "
DB = KWH_MySQL.K... | [
"noreply@github.com"
] | KWH-DAS-TEAM.noreply@github.com |
2bf00bad4f2dd587acbfef22d01b90855f891b2c | efe8b6737cf09b11e48e42478fbbe682a0e3060e | /module/data/src/cms/__init__.py | 2725921cb0015ba6727d814070758e53b17129de | [] | no_license | tiit-learn/comment_publishing | 1fa27c05cb900b67b5758c8f15e2422ada8de53d | 105c672c500464ac0b8186544841271ff654ba35 | refs/heads/main | 2023-06-02T06:45:14.646958 | 2021-06-21T13:15:57 | 2021-06-21T13:15:57 | 378,930,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | from . import bitrix, wp, dle
| [
"dev@project"
] | dev@project |
cfd15b4614141f1614ac10e530b5396a04be5278 | 6898f222a9b3b8a1f1e60d3e465d6130c4112d35 | /TestPlotterError.py | eae204d035ab3e9502bbb8b7fd92f1974345f599 | [] | no_license | laurajauch/phase3 | 98ac86701360ef537d0516d1d984e4bbaeb29fd3 | 2b0f6e35f53c109707a9def425c64789de9d52db | refs/heads/master | 2016-09-11T13:12:32.265589 | 2015-04-25T21:53:52 | 2015-04-25T21:53:52 | 33,157,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py | from PyCamellia import *
from Plotter import *
import unittest
spaceDim = 2
useConformingTraces = True
mu = 1.0
dims = [1.0,1.0]
numElements = [2,2]
x0 = [0.,0.]
polyOrder = 3
delta_k = 1
topBoundary = SpatialFilter.matchingY(1.0)
notTopBoundary = SpatialFilter.negatedFilter(topBoundary)
x = Function.xn(1)
rampWidth ... | [
"jeffrey.burge@cslab03.wheaton.edu"
] | jeffrey.burge@cslab03.wheaton.edu |
8eae5fb2dcd692f49a429547f82b7f02961ab9bd | d93d6218b94673b4669914c5fe1a7d18cf91a32b | /Bootlegging Emulator/District.py | eb7aeff8bdcac0bc74dfe8d5912524c080af4d38 | [] | no_license | aaronpgurrola/The-Crimson-Plateau | 537e5d0c0c806f9abf4f1a47169a5b28e9a44af5 | b8447ffed81d30f578b017384f3896a2e466e06e | refs/heads/main | 2023-07-05T19:45:14.484328 | 2021-05-23T06:07:25 | 2021-05-23T06:07:25 | 369,736,719 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,744 | py | import Front as f
import DrugDemand as dd
import GlobalUtils as gu
import DrugRun as dr
import math
# Constants for different drug price constants
GALLON_PRICE = 5.0
MJ_GRAM_PRICE = 10.0
COKE_GRAM_PRICE = 20.0
DRUG_PRICE_DICT = {gu.Drugs.COKE: COKE_GRAM_PRICE, gu.Drugs.MJ: MJ_GRAM_PRICE, gu.Drugs.SHINE: GALLON_PRICE}... | [
"43392595+aaronpgurrola@users.noreply.github.com"
] | 43392595+aaronpgurrola@users.noreply.github.com |
9533c38408040b732a09bf57ee7f56e3d9a96ab5 | 0d2af397b900fddad3d532a9f772f70473886cf5 | /modules/migrations/0001_initial.py | e42a5438116521c61bc87b998d83ccc633cf49ae | [] | no_license | RobertUJ/Omaha | cc779b06e42c08ebadae0b8df4e006ad67d504d1 | 650d5e1e5550bf772f1817e16505c574f361bae0 | refs/heads/master | 2016-08-12T13:51:32.262876 | 2016-02-12T00:51:52 | 2016-02-12T00:51:52 | 49,794,851 | 0 | 0 | null | 2016-01-22T00:04:29 | 2016-01-16T23:12:39 | Python | UTF-8 | Python | false | false | 755 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Module',
fields=[
('id', models.AutoField(verbo... | [
"mr24valves@icloud.com"
] | mr24valves@icloud.com |
522394227026dd1c5f0d9cd691de802a14a98194 | 78ee56b9e3a5ddfaeead5e281d015763d5acc79e | /Funciones/testFuncion.py | 5098206cdeee89e312fc80804040b9c4883c9c7f | [] | no_license | Mariocgo/CursoPython | 6da6e2934d3eeb27e35866c67f67ae7de12e7a0c | 4ee5b94aa7c3730f3c2b2101019fba1b9cb89926 | refs/heads/main | 2023-03-01T22:22:37.820848 | 2021-02-05T23:32:49 | 2021-02-05T23:32:49 | 333,627,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | def saludo(Nombre):
return Nombre
print(f"Mucho gusto "+saludo("Mario"))
| [
"e17081448@itmerida.edu.mx"
] | e17081448@itmerida.edu.mx |
795fd8eb429f1f73738027709d5acde3dc4663ea | affba0c51c517ea52a85b81a6fec89c367dbbfa1 | /script.py | f664a5810dac95937a828a12b4443d7e1a58f4de | [] | no_license | pyKuga/lab6turma8cgrupo4 | f0b175b59c77c67ade398039042fff1b49988a30 | 481ae6d009d6484f7d3a987654ce0fd74bdabc97 | refs/heads/master | 2022-11-30T12:21:49.529698 | 2020-07-28T22:57:28 | 2020-07-28T22:57:28 | 282,349,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | from math import sqrt as rq #importa a raiz quadrada
import pandas as pd #importa a biblioteca pandas para analisar nossos dados
up = pd.read_csv("z1.csv") #importa as medições com o celular para cima
down = pd.read_csv("z2.csv") #importa as medições com o celular para baixo
l... | [
"noreply@github.com"
] | pyKuga.noreply@github.com |
75313085a3420a9b3fa00338b64ddbc0affc1fa8 | b1b4dc2c530b56a9abbc6b144c3ca3f5a6d11e70 | /django_/example/chat/apps/chat/serializer.py | d288a1d858368b951b9ad30c2792a52237f8b9ea | [] | no_license | BorisovDima/_ex | d38cff25575bfc6d1906940d40091fb6946cd829 | 6c14d661b8e051f8ec385cb09997da1fa781431a | refs/heads/master | 2020-05-07T18:13:38.304305 | 2019-08-23T10:59:09 | 2019-08-23T10:59:09 | 180,757,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,842 | py | from rest_framework.serializers import ModelSerializer, HyperlinkedModelSerializer, HyperlinkedRelatedField, \
HyperlinkedIdentityField, CharField, IntegerField, DateTimeField, ImageField, SerializerMethodField, BooleanField
from .models import Room, Message
from chat.apps.myauth.serializer import UserSerializer
f... | [
"you@example.com"
] | you@example.com |
7836b6868fd207fe33f88cb1bc6942fd74050a95 | cb6166192835e0580895f743975d2ae866effa00 | /DjangoTest/djangosite/app/forms.py | 29d0064b590dbd51a2c0106ada3ab301b04edee1 | [] | no_license | luanshiyinyang/PythonWeb | d25ccf35a3eec6990295b276d721126bcdffc648 | ba10163e8d71d23d123dee4946fb672fc6367337 | refs/heads/master | 2020-04-23T09:39:15.631088 | 2019-03-09T13:01:59 | 2019-03-09T13:01:59 | 171,075,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django.forms import ModelForm
from app.models import Moment
class MomentForm(ModelForm):
class Meta:
model = Moment
fields = '__all__' | [
"1695735420@qq.com"
] | 1695735420@qq.com |
9867df62624bdb431c215e3b4ccdebb73711b7b9 | 3e2946515a739cdb5ce452d0ce10b27b23b4b9d3 | /7kyu. binary to decimal.py | feb7f65cc5540afd427391a261473699edd07b91 | [] | no_license | fairlyoddparents/Python-Tutorials-My-Answers-and-First-Game | 628b747d67544eb1679ca4fb44b00d2d949d70c6 | 16820b6efb4a01ef00f73186d9ba30e8d292703b | refs/heads/master | 2022-12-14T13:54:16.948153 | 2020-09-19T06:51:01 | 2020-09-19T06:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 15 12:56:07 2018
@author: fairl
"""
def binary_array_to_number(arr):
decimal = 0
for num in arr:
decimal = decimal*2 + int(num)
print(decimal)
print(decimal)
binary_array_to_number([1,1,1,1,0,1,1]) | [
"noreply@github.com"
] | fairlyoddparents.noreply@github.com |
c57ac2112c972756e2ff64e05963c875a6747133 | 5d95fb815afb12aaf096f9752d76f68b2555f235 | /idls/ex1_idl.py | 10372485767ce384cb643b9450f6a0ebe9418573 | [] | no_license | ramonjsa/sd-lista1 | 873b2e2171ead356c44e62d62d515eb2e4d0c834 | d3b3b3d533274bf1e33db6bc8a7a8f6c2280f538 | refs/heads/master | 2020-08-03T00:34:36.444980 | 2019-09-30T02:36:32 | 2019-09-30T02:36:32 | 211,565,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,023 | py | # Python stubs generated by omniidl from ex1.idl
# DO NOT EDIT THIS FILE!
import omniORB, _omnipy
from omniORB import CORBA, PortableServer
_0_CORBA = CORBA
_omnipy.checkVersion(4,2, __file__, 1)
try:
property
except NameError:
def property(*args):
return None
#
# Start of module "Lista01"
#
__nam... | [
"ramon.jsa@gmail.com"
] | ramon.jsa@gmail.com |
2f31bf8d1a5732d5f37e014050e8f02ea9baa77a | bfc00e523249cebab3303cb08e5b8bbe7a780f35 | /icub-nightly/tools/icub-csv-angle-compare.py | e894853078f956e0e1ca03b048d39fb199efc668 | [] | no_license | jon-weisz/fsmt.experiments | 14d02b5931907ce074a52858eef27afaab3f96cd | 08bf741b625853717b8e72d14f8f550b19b8d045 | refs/heads/master | 2021-01-02T08:19:29.936254 | 2015-09-10T18:22:25 | 2015-09-10T18:22:25 | 41,696,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | __author__ = 'flier'
import os
import sys
import csv
import time
logpath = os.environ['FSMLOG']
logfile = "/right_arm.dump"
raw_file = logpath + logfile
csv_repr = "/right_arm.csv"
csv_file = logpath + csv_repr
# Create an actual CSV File
with open(raw_file) as infile, open(csv_file, 'w') as outfile:
outfile.w... | [
"flier@techfak.uni-bielefeld.de"
] | flier@techfak.uni-bielefeld.de |
f67257c7ffde4b5aa13e4e6e961f2a3a9daf65c8 | 18c2ede12808a0c17a1eef3540cf54ad8f8c1420 | /com/hhcf/fun/base-0.py | 240d47ad5a7fae24fe50575aade3588da6f6410b | [] | no_license | shulanztf/python-cluster | d9e670f151887aeb4357a820473d03939e749ce1 | f680d6e6bf55f7aac1cf0532dcc11e5fce593d5e | refs/heads/master | 2021-06-25T10:47:28.810944 | 2020-09-27T10:10:20 | 2020-09-27T10:10:20 | 99,528,331 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | #! /usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@version: 1.0
@author: zhaotf
@file: base-0.py
@time: 2017/8/9 0009 15:29
"""
# # python 引用/对象
# L1 = [1, 2, 3]
# L2 = L1
# print(L1)
# print(L2)
# print(L1 == L2)
# L2[0] = 5
# print(L1)
# print(L2)
# print(L1[0])
# print(L1 == L2)
# L1 = [88,99]
# print(L1 == L2)
... | [
"1426763507@qq.com"
] | 1426763507@qq.com |
3fd03a10da1ee86b313c8f9fa695fa3f5b8704e9 | 022f659eb5703191c43ad07040a1b388686f1f3a | /venv/bin/wheel | bd6088288d6478420600dd88d28a538e816b5d34 | [] | no_license | MusawerAli/scrappy | b296286fc1b60501fc9e218fcac6e51ac5227c7d | 16b0e293bf8313c32af8ce42bda8f19e58367ff5 | refs/heads/master | 2022-11-16T15:19:16.854679 | 2020-06-28T11:41:23 | 2020-06-28T11:41:23 | 274,632,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/home/musawer/PycharmProjects/tutorial/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"pakjalihouse@gmail.com"
] | pakjalihouse@gmail.com | |
52b26c5e1c3a48eb6128bda512ede5108d3c6150 | 612da563d2c01bb9824a45737b8109a30df1d631 | /yielding_a_not_enumerated_property/evaluator.py | 386240f07956225fc7bfb1ea192bf22b1bdab27d | [] | no_license | romeorizzi/turingarena-numerability-theory | e97680e47787782a114a72ef23ae10e1b643efef | 69764663d8b193873268e92190dbc49c84e79fa6 | refs/heads/master | 2020-05-01T06:08:37.141662 | 2019-04-16T09:09:00 | 2019-04-16T09:09:00 | 177,322,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | import random
import turingarena as ta
NUM_MACHINES = 100
for tc in range(7):
memoM = []
for i in range(0,NUM_MACHINES):
memoM.append([random.randint(0, 1) for _ in range(0,NUM_MACHINES)])
for n in range(0,i+1):
memoM[i][n] = 1 - memoM[n][n]
if tc % 3:
random.shuffle... | [
"romeo.rizzi@univr.it"
] | romeo.rizzi@univr.it |
090cc6c260c1c4101656b919e078907d482c83f1 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_74/1231.py | 6e8b5095b7fc81541810f871636b8b16ccb1216d | [] | 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 | 825 | py |
fin = open('input.txt', 'r')
fout = open('output.txt', 'w')
n = int(fin.readline())
for i in range(n):
st = fin.readline()
t = st.split()
t_t = 0
robots = {'O':[1,0,0], 'B':[1,0,0]}
prev = t[1]
for j in range(int(t[0])):
robot = t[2*j+1]
loc = int(t[2*j+2])
robots[robot... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a642387dc2f788a485abf40e92d06f5d8ccdd576 | 25040cc2a98c5e4b70e50acea619e480cd10037a | /Util.py | 05e0a9b6e67fcef5c426b85fe386746e54793736 | [] | no_license | emanuelbaquero/modelo_properatti | a85adcc472ec0b2070a9ddf7095315217443d4b7 | 8a568e53a32654570f0d773214a92b0eb9b6320b | refs/heads/master | 2022-06-16T22:37:54.272166 | 2020-05-06T16:31:16 | 2020-05-06T16:31:16 | 257,413,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,883 | py | import numpy as np
import pandas as pd
import unidecode as uni
from sklearn.cross_validation import cross_val_score
from sklearn import metrics
from sklearn import linear_model
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler
... | [
"baqueroemanuel@gmail.com"
] | baqueroemanuel@gmail.com |
ec4aa967893296c95ba645ee12fe5e385358928c | 5456502f97627278cbd6e16d002d50f1de3da7bb | /chrome/common/extensions/docs/server2/schema_processor_test.py | f7862583b704fe17595d6b4258eff8a9acf0d5c9 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,584 | py | #!/usr/bin/env python
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from copy import deepcopy
from schema_processor import SchemaProcessor
from future import Future
from object... | [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com |
43f79234fced9ed3c907da15fc09b79d0db3f181 | c2b0ee4ef8fb8e933966c7219a6cac6484ce03fb | /crawl/migrations/0001_initial.py | d57e478119a73813b3396ded1ae1f9ae44953d00 | [
"MIT"
] | permissive | dukuaris/Django | 0b40e79d9e461c28064a83cc42d7710b49b43a19 | d34f3e3f09028511e96b99cae7faa1b46458eed1 | refs/heads/master | 2022-12-09T04:05:09.329256 | 2020-03-21T02:17:20 | 2020-03-21T02:17:20 | 236,935,131 | 0 | 0 | MIT | 2022-12-08T01:51:39 | 2020-01-29T08:24:36 | Python | UTF-8 | Python | false | false | 1,782 | py | # Generated by Django 2.2.6 on 2020-03-16 15:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"dukuaris@gmail.com"
] | dukuaris@gmail.com |
bcde15fdabb4ae9833286607ebfe97eb4db771fa | 32976cfb755fcc4ffabc47615b82122b3424eaaf | /manage.py | 3838714a7d44389c739f0e9b9b511d8afa1dc506 | [] | no_license | henriquemsouza/Desafio-vizir | 2664ee55be11a5658a0fe2f471da0ee5db04cb77 | 9eab2e662c08220fc2a03a7a2c5c183241bc7c52 | refs/heads/master | 2021-07-10T17:59:27.057189 | 2017-10-13T11:57:13 | 2017-10-13T11:57:13 | 105,031,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "showmethecode.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"henrique.m_s@hotmail.com"
] | henrique.m_s@hotmail.com |
2f4419826b5f78871ab89e3e2320477118c049cc | 4b44a299bafbd4ca408ce1c89c9fe4a449632783 | /python2/10_Modules/03_random/05_password_generator.py | 1ffd148580e202e7cef103b05984f9dd1c8822c4 | [] | no_license | umunusb1/PythonMaterial | ecd33d32b2de664eaaae5192be7c3f6d6bef1d67 | 1e0785c55ccb8f5b9df1978e1773365a29479ce0 | refs/heads/master | 2023-01-23T23:39:35.797800 | 2020-12-02T19:29:00 | 2020-12-02T19:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | import string
from random import choice, randint, randrange
print 'string.ascii_letters :', string.ascii_letters
print 'string.digits :', string.digits
print 'string.punctuation :', string.punctuation
characters = string.ascii_letters + string.punctuation \
+ string.digits
password1 = "".join(ch... | [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
9ee3283e8325a1a2a86e00956634bf487004910e | 80ab528ecba746cd89666a2674adb9f9cc7f16a6 | /app/dishes/views.py | 4917352b82fc8d5965dba6c5bc7a478e46f51643 | [] | no_license | caffeinecodes/restaurantBooking | ce9da58329492bdd3bd4d39b1aca9c1e5c55427f | 3e82ec55fd9bcd78fe7042190cbca2a68c17ec5e | refs/heads/master | 2020-03-25T18:52:42.014722 | 2018-08-15T10:34:29 | 2018-08-15T10:34:29 | 144,053,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,191 | py | from django.shortcuts import render
from rest_framework.response import Response
from rest_framework import status, views
from rest_framework.parsers import JSONParser
from rest_framework.response import Response
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.permis... | [
"write2afsal@gmail.com"
] | write2afsal@gmail.com |
1f6272dd78779c03efd2ad46f34e0a75950c930f | 85c0ac04965a93864aadb311c3004dce7f62ae85 | /new_controller_api.py | 1349b0afe07bf3de0c6aa8da9f70e45818d3722f | [] | no_license | azriel94530/SpectroCCDTools | d33db06b25afcece7c0490e465740c446581ee89 | e7d63bbcc5c2e4dda4cfb216953c24f99d744d0f | refs/heads/master | 2020-12-13T23:31:37.163081 | 2016-06-28T00:00:45 | 2016-06-28T00:00:45 | 48,209,618 | 0 | 0 | null | 2015-12-18T02:23:39 | 2015-12-18T02:23:39 | null | UTF-8 | Python | false | false | 6,582 | py | import socket
import struct
from new_controller_constants import *
from new_controller_messaging import mysocket
# for the messages to the controller this comes from the c struct on the server
# typedef struct {
# int cmd;
# int nw;
# char strmsg[128];
# lbnldata_t data[MAXCMDWORDS]; MAXCMDWOR... | [
"azriel.goldschmidt@gmail.com"
] | azriel.goldschmidt@gmail.com |
466a40a7cef03f6066e86be88110b116a3c6c2a1 | d25cfc9256c18c53b3f6b36657f4b0fb5f8f6ffa | /metrix_ml/decisiontree_randomsearch_normed.py | e83e3cd46e9a8144091e63accffd984bf15a04ad | [
"BSD-3-Clause"
] | permissive | mevol/metrix_ml | becd012312a2f82f5a7815f2ae7c2d3b550446b3 | f09ef35eeec8fe64fce83bb238f1ba75362856ce | refs/heads/master | 2022-03-09T06:36:02.623092 | 2022-02-21T14:51:01 | 2022-02-21T14:51:01 | 140,827,932 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 25,786 | py | ###############################################################################
#
# imports and set up environment
#
###############################################################################
'''Defining the environment for this class'''
import argparse
import pandas as pd
import os
import numpy as np
import jobl... | [
"melanie.vollmar@diamond.ac.uk"
] | melanie.vollmar@diamond.ac.uk |
63e498a3b73548e8213de06933bc5cb6abb190f5 | ba3556d1c76a04e6a978a7aa656bb24f48cf18d0 | /no.0_liner_model.py | c62baa9eb14eed6b11c8e86b2d10cf6333c375fd | [] | no_license | AugusterHub/Pytorch | f763d134b5a027123a6328915fbcd70f2379bcdf | a139288c95af672c029bfb277d45f926473c5d5e | refs/heads/master | 2023-07-09T03:49:16.461324 | 2021-08-15T08:03:42 | 2021-08-15T08:03:42 | 396,273,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
""" 0 线性模型 """
import numpy as np
import matplotlib.pyplot as plt
x_data = [1.0, 2.0, 3.0]
y_data = [2.0, 4.0, 6.0]
def forward(x):
# 前向传播
return x * w
def loss(x, y):
# 定义loss
y_pred = forward(x)
return (y_pred - y) * (y_pred - y)
w_list = []
mse_list ... | [
"zhaipeng@topscomm.com"
] | zhaipeng@topscomm.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.