blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53bca9adc8334f6c4fced883e5abc47aa24987f5 | db82ec070fd356ea5a5aebd5ada39c7fe58a2b38 | /TestCase/Test/BianMa/python_deal_bianma.py | 0a54a6c3052569372811b5e01abf897713d8c516 | [] | no_license | peng211217610/Python | 8d7217af06262fda2133e50c634eac0148e2ace5 | e65889e87aa51e1cb94601d3470e3906ad9e2d0a | refs/heads/master | 2023-08-22T16:55:51.592534 | 2023-08-10T09:43:22 | 2023-08-10T09:43:22 | 379,676,153 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
remark = '''下载附件cfiles.zip(见附件cfiles.zip)
解压该压缩包,里面 包含了两个文件。 一个叫 'gbk编码.txt',
该文件是gbk编码的。
另一个文件叫 'utf8编码.txt', 该文件是utf8编码的。
两个文件里面的内容都包含中文。
要求大家编写一个python程序,该程序做到以下2点
1. 将两个文件内容读出, 合并内容到一个字符串中,
并能用print语句将合并后的内容正确显示
2. 然后,程序用中文提示用户“请输入 新文件的名称”,
用户输入文件名可以包含中文
将上... | [
"peng211217610@163.com"
] | peng211217610@163.com |
2154222905bdc45937011c9e9931325a8e3bd675 | 1c9c0918637209b31fae10fec8329a864f4ddf2a | /lib/fabio/test/testedfimage.py | f873dc27b2b4ede5836bfd9f7688c9aa30702c7d | [] | no_license | albusdemens/astrarecon_tests | 224f2695ba14e4e6c8a2173132c1d30edba24e1b | 6b0ee69a2357eb568e2fde1deccfa8b6dd998496 | refs/heads/master | 2021-01-18T19:43:17.485309 | 2017-07-21T12:17:54 | 2017-07-21T12:17:54 | 100,536,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,590 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Project: Fable Input Output
# https://github.com/silx-kit/fabio
#
# Copyright (C) European Synchrotron Radiation Facility, Grenoble, France
#
# Principal author: Jérôme Kieffer (Jerome.Kieffer@ESRF.eu)
#
# This program is free software: you... | [
"mannaro85@gmail.com"
] | mannaro85@gmail.com |
ced63f89e52d591f602dcaf068e82acde3be2326 | 3a7840ae82c09719e945e2b0d36382567b817dd1 | /svn2git_functions.py | 73224da8dc4b90c41d5a040b4e20c4fb90a21ef5 | [] | no_license | shivpsingh/svn-to-git | 49c9d2d26bdd345025620efb830f23e88652f0df | 1e2702158c35fd9cfba39f2111ed2a8c9ab622f2 | refs/heads/master | 2023-04-08T02:37:54.980552 | 2021-04-23T06:14:40 | 2021-04-23T06:14:40 | 170,160,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,976 | py | """
##############################################################
##
## Name : Shiv Pratap Singh
## Description : SVN TO GIT Migration Script
## Requirements : git-bash.exe for windows and git for linux
## svn for Windows and svn for linux
## config JSON
##
#############... | [
"noreply@github.com"
] | noreply@github.com |
9d158a0112e6f467f80794d1b0980e61160c69ac | 1ef7948e70b316ea1881d5a057672d66a0a425fc | /0x02-python-import_modules/2-args.py | 934127f39a5c1e5b2f1f6756fd622b8b4d40fc8c | [] | no_license | juandsuarezz/holbertonschool-higher_level_programming | a76a9b838c79840f62389364a93e37751ebd960e | f24ed35a340d6cf7b7acf151e816e20bdbf89ffb | refs/heads/master | 2022-12-15T19:27:54.843113 | 2020-09-25T03:10:01 | 2020-09-25T03:10:01 | 259,238,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #!/usr/bin/python3
if __name__ == "__main__":
from sys import argv
print("{} argument".format(len(argv) - 1), end='')
if len(argv) - 1 == 0:
print("s.")
else:
if len(argv) - 1 == 1:
print(":")
else:
print("s:")
for i in range(1, len(argv)):
... | [
"1486@holbertonschool.com"
] | 1486@holbertonschool.com |
31fb6a43385ed8cb87205f2e7848d1d6e1662762 | 49a167d942f19fc084da2da68fc3881d44cacdd7 | /kubernetes_asyncio/test/test_v1_aws_elastic_block_store_volume_source.py | 440aa232820b413843892bb80c0f8ff0041fcc5b | [
"Apache-2.0"
] | permissive | olitheolix/kubernetes_asyncio | fdb61323dc7fc1bade5e26e907de0fe6e0e42396 | 344426793e4e4b653bcd8e4a29c6fa4766e1fff7 | refs/heads/master | 2020-03-19T12:52:27.025399 | 2018-06-24T23:34:03 | 2018-06-24T23:34:03 | 136,546,270 | 1 | 0 | Apache-2.0 | 2018-06-24T23:52:47 | 2018-06-08T00:39:52 | Python | UTF-8 | Python | false | false | 1,148 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import u... | [
"tomasz.prus@gmail.com"
] | tomasz.prus@gmail.com |
863a96705f9a7d86693ed40c618239f06ac48652 | 9416a099eca5028474ac3db6b5b4d833889be2c6 | /xpense2/flock/admin.py | 04af8914a007c94216757ff9d2485545ad234550 | [
"MIT"
] | permissive | akhilraj95/xpense | 35d1577fd0afc346211fe5f211f8cca44454c28e | d107662eca77cbee302ce7c8fea8a1bee0d4bb8b | refs/heads/master | 2021-01-14T02:28:28.874948 | 2017-04-07T15:41:59 | 2017-04-07T15:41:59 | 81,942,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from django.contrib import admin
from .models import User,Currency,Chat,Track,Expense,Bill
admin.site.register(User)
admin.site.register(Currency)
admin.site.register(Chat)
admin.site.register(Track)
admin.site.register(Expense)
admin.site.register(Bill)
| [
"akhil95raj@gmail.com"
] | akhil95raj@gmail.com |
d42a56d08ebf329be52f9dea7d554d3e78fd01c2 | d2e3c9e09e00931b8666f2919a3abe2d2c60290c | /RestApi_d/rest_inatel_env/comentarios/urls.py | 6880afccf688dbf65393ba4f1e04a87dd8d1239c | [] | no_license | alanleonardo10/InatelP | 24af4a5f68206ae7a5496c4e3ed1abb797e0e3c7 | 3a73701ac75064b16d7114876ad12f7989f33d0f | refs/heads/master | 2016-08-12T07:00:46.069759 | 2016-04-11T12:21:38 | 2016-04-11T12:21:38 | 55,797,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from django.conf.urls import patterns, url
from rest_framework.urlpatterns import format_suffix_patterns
from comentarios import views
urlpatterns = [
url(r'^comentarios/$', views.ComentarioList.as_view(), name="comentarios"),
]
"""
urlpatterns = patterns('',
url(r'^comentarios/$', views.ComentarioList.as_view()... | [
"alan_leonardo10@hotmail.com"
] | alan_leonardo10@hotmail.com |
038ee378ad09a412396cdf7e951169e020d57372 | 574ba062709bd4dfae4b86a1e8b77e8dd64153da | /hooks.py | ec717d855246bffc792d1a27add93d8d4f5385ea | [
"MIT"
] | permissive | dagnelies/temser | 8c4e598e5e09fa1a665085225709ef3f4c8bd55a | 0a4c6d8d34d1f8c14b5edc0b441e6c869a76402b | refs/heads/master | 2020-05-21T23:48:45.827472 | 2016-10-16T19:53:02 | 2016-10-16T19:53:02 | 63,253,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | import os
import os.path
def dir(param, parsed, current_path):
return os.path.listdir(current_path + '/' + param) | [
"arnaud.dagnelies@gmail.com"
] | arnaud.dagnelies@gmail.com |
656de7abdaf27b4332361740593c9b3305fbeebd | a7c16c93dd270eb152a9ef6497ba66e04f90ee90 | /reto/urls.py | 31c104a71789cec3555b70dc04d5c514dbf376bb | [] | no_license | sergiocanalesm1/delivery | 73762073c63e780c1914a46fa984e23ba9bc7f12 | 04516a6c082687d41878548a9ff607ae377f6c41 | refs/heads/master | 2022-12-05T00:28:28.500808 | 2020-08-26T20:06:37 | 2020-08-26T20:06:37 | 286,611,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | """reto 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-based vi... | [
"sergiocanalesm1@gmail.com"
] | sergiocanalesm1@gmail.com |
4717b522dff1f23aaf00bd152123436c327d04f5 | f68afe06e4bbf3d523584852063e767e53441b2b | /Toontown/otp/ai/MagicWordManager.py | 64eddeecbde1b8285b078adf665f2f27a9a2792d | [] | no_license | DankMickey/Toontown-Offline-Squirting-Flower-Modded- | eb18908e7a35a5f7fc95871814207858b94e2600 | 384754c6d97950468bb62ddd8961c564097673a9 | refs/heads/master | 2021-01-19T17:53:36.591832 | 2017-01-15T02:00:04 | 2017-01-15T02:00:04 | 34,639,744 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | from direct.distributed import DistributedObject
from direct.directnotify import DirectNotifyGlobal
from otp.ai.MagicWordGlobal import *
from otp.nametag.NametagConstants import *
lastClickedNametag = None
class MagicWordManager(DistributedObject.DistributedObject):
notify = DirectNotifyGlobal.directNotify.newCat... | [
"jareddarty96@gmail.com"
] | jareddarty96@gmail.com |
5f1aa11dabee5a326f0aaab6b2a4adb6715046a3 | 1836303cba6cf9e959009fa452a17f74e8ecff69 | /Chapter02-Decision/SimpleDecision.py | 252de343c0bde186c374e4f270d8c263aecb0b13 | [] | no_license | werisonfernandes/python-samples | a7344ea0a98940e7a2723d4cdced8053dc839b44 | 1dec7abf9d66083af313db5083224ed529c2cb54 | refs/heads/main | 2023-04-26T19:13:40.457650 | 2021-05-06T22:14:11 | 2021-05-06T22:14:11 | 362,855,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | nome=input("Digite o nome: ")
idade=int(input("Digite a idade: "))
prioridade="NÃO"
if idade>=65:
prioridade="SIM"
print("O paciente " + nome + " possui atendimento prioritário? " + prioridade) | [
"waparecf@everis.com"
] | waparecf@everis.com |
615eee3652d8297716bb2c0dbe9d52873f47eac8 | c4fd462b57f75167e79d9f1bddee60cbebe0b61d | /tiler/tiler-v02/geometry/testing/dimensions_test.py | ef38259663ae951c122f801916c8a1ba713ded3f | [] | no_license | conchis/webact2 | 3395ca1be37cf809703cc85494982a37aa86fdbb | aa2e5ed2334db758aac4e5d13257ea9776ae89aa | refs/heads/master | 2016-09-05T18:09:48.166354 | 2011-04-11T12:22:12 | 2011-04-11T12:22:12 | 759,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | import unittest
from ispace.geometry.dimensions import *
class DimensionsTest(unittest.TestCase):
def testPoint(self):
p1 = Dimensions(width = 1, height = 2)
self.assertEqual(1, p1.width)
self.assertEqual(2, p1.height)
def testEquals(self):
d1 = Dimensions(2, 3)
d2 = Dime... | [
"conchis@me.com"
] | conchis@me.com |
5d9b65d4ae86a1b066f20a844471a895805f46e2 | cdcaf65d69a8ee71a1384804d253ebda8650a194 | /app/app/settings.py | dcc733fca071ccfbafcc890db74abc1103f300fb | [
"MIT"
] | permissive | madlad33/recipe-api | 9a29a3db1ed8bbb233d97f25f17a762f861b9a13 | 669dcfaf800fab763e7cad5cdfb3d71402dffb17 | refs/heads/main | 2023-02-13T05:38:34.603115 | 2021-01-11T19:22:40 | 2021-01-11T19:22:40 | 326,607,572 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,309 | py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from pa... | [
"tanmay.milky33@gmail.com"
] | tanmay.milky33@gmail.com |
21dddd6600f20df53abe0a55ec5e3415f1fab8fe | 2cb79704b461064657b7414862f450f7dbf2ea93 | /epd_ckean_kraken2.py | 211b7ae00940bba642298ffbb62202a3716afd05 | [] | no_license | XingchaoWu/scripts | 56a230ad679804139692e337fb9613750e2d7424 | 3ac2181f3cca5573012960eec0d8845a8b8cadfb | refs/heads/master | 2020-09-26T10:32:21.069845 | 2020-02-16T09:04:50 | 2020-02-16T09:04:50 | 226,236,702 | 2 | 1 | null | 2019-12-18T05:46:50 | 2019-12-06T03:17:30 | Python | UTF-8 | Python | false | false | 2,146 | py | #_*_coding:UTF-8_*_
import os
import subprocess
import argparse
def kraken_verificate_epd(kraken_path,kraken_edp_index,bracken_path,cur_path):
# kraken
cmd = kraken_path + " --db " + kraken_edp_index \
+ " --gzip-compressed --threads 8 --report-zero-counts --confidence 0.65 --report " \
... | [
"noreply@github.com"
] | noreply@github.com |
e1a2dcf9e23bbf066d64d6990ef9ea167318ed72 | 6521b069e778f6e7a5be1aabb282cfddde72f190 | /reproduction/text_classification/train_awdlstm.py | 007b2910a19fca150eb98825a1a6d293dae29dbd | [
"Apache-2.0"
] | permissive | choosewhatulike/fastNLP | 12068fc618245d9cbb137729063ee390de26d696 | 14778ee071ace8825acc0f0834a26eccfda70667 | refs/heads/master | 2021-04-06T10:51:49.961158 | 2019-07-09T06:00:40 | 2019-07-09T06:00:40 | 124,500,643 | 0 | 0 | null | 2018-03-09T06:54:25 | 2018-03-09T06:54:25 | null | UTF-8 | Python | false | false | 2,104 | py | # 这个模型需要在pytorch=0.4下运行,weight_drop不支持1.0
# 首先需要加入以下的路径到环境变量,因为当前只对内部测试开放,所以需要手动申明一下路径
import os
os.environ['FASTNLP_BASE_URL'] = 'http://10.141.222.118:8888/file/download/'
os.environ['FASTNLP_CACHE_DIR'] = '/remote-home/hyan01/fastnlp_caches'
import torch.nn as nn
from data.IMDBLoader import IMDBLoader
from fastN... | [
"42239874+lyhuang18@users.noreply.github.com"
] | 42239874+lyhuang18@users.noreply.github.com |
5a89be06f85e553651befb8730989a1b40fa919d | 176fe2cf55211febb23ab2545d0d378cdd049197 | /codefig8.py | 1d949eee5b5cc5a7e62dcba903fdb8bb61e06494 | [
"CC-BY-4.0"
] | permissive | asl-epfl/interplay_topology_OJSP | 9960fbace536db367848ae9138da932111d3f69f | a1668752766a1c699123c440c4bc8c7b74b5ea7e | refs/heads/main | 2023-04-18T20:42:09.423302 | 2021-07-27T15:06:31 | 2021-07-27T15:06:31 | 308,682,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,527 | py | """
This code can be used to generate simulations similar to Fig. 8 in the following paper:
Vincenzo Matta, Virginia Bordignon, Augusto Santos, Ali H. Sayed, "Interplay Between Topology and Social Learning Over Weak Graphs", IEEE Open Journal of Signal Processing, 2020.
Please note that the code is not generally perfe... | [
"virginia.bordignon@epfl.ch"
] | virginia.bordignon@epfl.ch |
db373a3628626d3ac5f75cbe6e7231c9d7c5690b | 5a997a2486fe4a677b7f902466c0accff784be8c | /test/test_dbserver_postgres.py | 1f312c14cb0848553a6112926f20cef865b0cc6c | [
"MIT"
] | permissive | jjkoletar/Astron | c86d21f371418e6f6a8fe4fa57074c414f7a45c8 | 956ebe21aabf415bc6fb041fb7932942df30e1bf | refs/heads/master | 2020-12-28T19:47:01.775152 | 2013-12-07T17:06:45 | 2013-12-07T17:06:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | #!/usr/bin/env python2
import unittest
import os, time
from socket import *
from testdc import test_dc
from common import Daemon, MDConnection
from test_dbserver import DatabaseBaseTests
CONFIG = """\
messagedirector:
bind: 127.0.0.1:57123
general:
dc_files:
- %r
roles:
- type: database
c... | [
"kestred@riotcave.com"
] | kestred@riotcave.com |
90dcf05cd9ba9ceb6b04ea508af0d8574010c883 | 950577d2afbf349a6d28c16f1332e2e73d369431 | /qmeq/tests/data_builder_elph.py | a7f9c8b66f26760621e2768bacc0577507d728f2 | [
"BSD-2-Clause"
] | permissive | M-Josefsson/qmeq | 617b68c20fa21fd724643ea797b5e6d9d4034c93 | f4f08864fc778de7c14b198c0ffbaafe33ce18f6 | refs/heads/master | 2023-04-29T12:22:41.706416 | 2021-05-24T13:05:50 | 2021-05-24T13:05:50 | 263,661,418 | 0 | 0 | BSD-2-Clause | 2021-05-24T13:05:50 | 2020-05-13T14:57:24 | null | UTF-8 | Python | false | false | 7,031 | py | data = {
'Pauli22current': [-3.602032381671809e-08, 3.6020323816713775e-08, -3.602032381671809e-08, 3.6020323816713775e-08],
'Pauli22energy_current': [-3.6020323816717015e-09, -3.6020323816714856e-09, -3.6020323816717015e-09, -3.6020323816714856e-09],
'Redfield00current': [-2.396815483544316e-08, 2.39681548... | [
"gediminas.kirsanskas@gmail.com"
] | gediminas.kirsanskas@gmail.com |
1e3a726e2e1da9488648424acf45e510f528f691 | 156cdcdd99b599e82a00931d32c68b7c2edbbe6c | /fmriprep/__init__.py | 2cb4d3103c0bba044a947432c8636c597a68109d | [
"BSD-3-Clause"
] | permissive | rwblair/motcorr_comp | 9e2d65cb06a972938d62e6ef4eb7183e77b0f54e | d06abe502bb21829ed3725966e9cfcfc37238506 | refs/heads/master | 2021-01-13T17:29:51.411175 | 2017-02-14T07:27:43 | 2017-02-14T07:27:43 | 81,917,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
This pipeline is developed by the Poldrack lab at Stanford University
(https://poldracklab.stanford.edu/) for use at
the Center for Reproducible Neuroscienc... | [
"rosswilsonblair@gmail.com"
] | rosswilsonblair@gmail.com |
208820efd8e4b735c6591cb207f5de74e42ff08b | eb574c5597c3bff0631c7fcef2fd029abd2f3c30 | /DotPy/ImpossibleRiddle.py | d0d7de12f658fb516ad11f4cd7f260ec37534b30 | [] | no_license | aaditya420/Python_Codes | 6d824c1f0c84c8133346685cf5e7d59a6cf5b070 | 2e9041566368ff3fec34b642969293468ca83bdc | refs/heads/master | 2021-11-29T23:15:57.151336 | 2019-03-14T05:22:06 | 2019-03-14T05:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py |
def Main():
nums = [1, 3, 5, 7, 9, 11, 13, 15]
len_nums = len(nums)
magic_num = 30
for i in range(len_nums):
for j in range(len_nums):
for k in range(len_nums):
if ((nums[i] + nums[j] + nums[k]) == magic_num):
print("{0} + {1} + {2} = {3}".format(nums[i], nums[j], nums[k], magic_num))
if __name_... | [
"gamer.forever.untill.death@gmail.com"
] | gamer.forever.untill.death@gmail.com |
eab47a6b950350fe98a49ab448691de40292168d | f9a2c12b28bd934bb59fc7a7d4a7a77ca2695a53 | /seletion sort.py | 89badc4b27e40bd95b3edab9bc8fb52bf2a4856f | [] | no_license | tusharta07/tushar | 798b62bffb9cc0a574717128f7ddd1b4ecd32916 | eb5ed3de42e7d9400f6418fb2079344e74336b93 | refs/heads/master | 2020-08-27T23:04:00.413869 | 2019-11-10T14:37:07 | 2019-11-10T14:37:07 | 217,514,238 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | def selection_sort(arr):
n=len(arr)
for i in range(n):
min_idx = i
for j in range(i + 1, n):
if arr[min_idx] > arr[j]:
min_idx = j
arr[i], arr[min_idx] = arr[min_idx], arr[i]
arr= [int(k) for k in input().split()]
selection_sort(arr)
print(arr) | [
"noreply@github.com"
] | noreply@github.com |
8e10e7621a42f1988776e1e9494795084c6851ca | 9e3620265aee10c0772484403509fbace7259f40 | /mhdata/io/datarow.py | ad7cd7c4ecbae0f48d0ffd1e851cf8cd312f8afc | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | nikibobi/MHWorldData | 5d104fa886087fe121b262497686ad81e6720751 | 78b5a4dc10ef532d5bad7359ef0b098f99104782 | refs/heads/master | 2020-12-14T23:41:45.224370 | 2020-01-20T08:40:16 | 2020-01-20T08:40:16 | 234,912,823 | 0 | 0 | MIT | 2020-01-19T14:25:05 | 2020-01-19T14:25:04 | null | UTF-8 | Python | false | false | 2,337 | py | from collections.abc import MutableMapping
from .functions import to_basic
class DataRow(MutableMapping):
"""Defines a single row of a datamap object.
These objects are regular dictionaries that can also get translated names.
"""
def __init__(self, row_id: int, datarowdict: dict):
self._data =... | [
"cfern1990@gmail.com"
] | cfern1990@gmail.com |
0485565df76e01214fa2eb5cec6f49fedb9dc012 | 30e2407d44083cf5fa3737f56d40c32c9df31bf8 | /exp_7/yolov3/yolov3-bcl/demo/evaluate.py | 998b0c7ce378c77924ce1e82ddb4df976f2acec3 | [
"MIT"
] | permissive | gzq942560379/ICSE | 1179c8189df574f14bd2389c93d1510bb0489743 | ca433ec5fa022c5b31cdf47730ffaee070dea9ca | refs/heads/master | 2023-05-08T11:09:41.648880 | 2021-06-03T03:19:11 | 2021-06-03T03:19:11 | 351,345,412 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,988 | py | #! /usr/bin/env python
# coding=utf-8
import cv2
import os
import shutil
import numpy as np
import tensorflow as tf
import core.utils as utils
import time
import argparse
from core.config import cfg
from core.yolov3 import YOLOV3
class YoloTest(object):
def __init__(self):
self.input_size = cfg.TEST... | [
"gzq9425@qq.com"
] | gzq9425@qq.com |
5fd09957f77c36c18570a88be4dde87a4b98b932 | 585765284ab1a1e9b03d870943401a1e71a73a54 | /character/Movement.py | 4f161f89c06eb2dccaf1e901bec0f7fd38b7d517 | [] | no_license | FreddieWho/WChatAVG | 1132359a80dcd2106ee6a2e008f8c14273e57b3f | 43b5d28735fd6b204ddbdf618199ed24cc219724 | refs/heads/master | 2023-01-22T23:38:01.124109 | 2020-11-18T17:09:01 | 2020-11-18T17:09:01 | 287,499,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | class PlayersMovement:
def Attach(Player_A,Player_B):
rawDamage = Player_A.MagicDamage * Player_A
| [
"43490191+FreddieWho@users.noreply.github.com"
] | 43490191+FreddieWho@users.noreply.github.com |
f7074980cd5970c5bc5c986a45251506e2b0dd58 | 726be1bb36eea7046eec331e02140181eba3ed91 | /similarity.py | 061c17cb49c8342a3ab006d295ef80ec01922fda | [] | no_license | Jazafras/Goddess-Database | 205fc0d465b75940cc70f6793854bc22e9c38c55 | 2da204ed24637f6b205e5d4803bbdd164d1ea46c | refs/heads/master | 2020-03-17T12:11:12.821235 | 2017-12-11T01:09:27 | 2017-12-11T01:09:27 | 133,577,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,288 | py | from indexer import iter_goddess, get_text_from_html, load_goddess
from collections import Counter
from itertools import tee
import re
import json
import numpy as np
from math import log
from scipy.spatial.distance import cosine
from scipy.linalg import svd
import os
__alpha_re__ = re.compile(r"[^a-zA-Z ]")
def repl... | [
"maya.hess@wsu.edu"
] | maya.hess@wsu.edu |
37986059ff2963ec4fce44a1fa022ce3c4a2f7a5 | fc6c11f139e051cb0f21df7fe6d376e2d12f3d63 | /python/lib/sldr/ldml_exemplars.py | d73996d4bcdf778aeb212982391dfcaab4768444 | [
"MIT"
] | permissive | enabling-languages/sldr | aaccd9e9a4eff707da2a62f1a0d2910f06d87cf7 | 73f977743df9f0a2d521e4c026eb97df3d7e457d | refs/heads/master | 2020-03-19T01:52:38.137993 | 2018-05-31T09:03:39 | 2018-05-31T09:03:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,071 | py | #!/usr/bin/python
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributi... | [
"bobby_devos@sil.org"
] | bobby_devos@sil.org |
1481078cea1ef6095a4216468d561597aee7ba3a | f8580d2c963b6a3c34e918e0743d0a503a9584bd | /wscript | 3950282f86c51f18a2949a03fc08317732d0a76b | [] | no_license | pypy/wxpython-cffi | f59c3faeed26e6a26d0c87f4f659f93e5366af28 | 877b7e6c1b5880517456f1960db370e4bb7f5c90 | refs/heads/master | 2023-07-08T21:13:22.765786 | 2016-12-02T22:10:45 | 2016-12-02T22:10:45 | 397,124,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,300 | #!/usr/bin/python
#-----------------------------------------------------------------------------
# WAF script for building and installing the wxPython extension modules.
#
# Author: Robin Dunn
# Copyright: (c) 2013 by Total Control Software
# License: wxWindows License
#-------------------------------------... | [
"wayedt@gmail.com"
] | wayedt@gmail.com | |
114710e4f722ca063ad75bb0d2c872f98be54a5c | a1210d5864760071ff1e10cdf37bfdd9d2397d53 | /measurement_tools/flexran_cpu_utilization.py | 7d7b633361f398881913329963769a608f7bdb53 | [
"Apache-2.0"
] | permissive | arled-papa/marc | fe8bf619e6b44102702cebda1a8a92a9ef1055dc | cb94636d786e215195e914b37131277f835bcf52 | refs/heads/main | 2023-06-24T09:55:21.154407 | 2021-07-12T11:22:54 | 2021-07-12T11:22:54 | 383,223,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | #!/usr/bin/env python3
#
# Copyright (c) 2021 Arled Papa
# Author: Arled Papa <arled.papa@tum.de>
#
# 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... | [
"arled.papa@tum.de"
] | arled.papa@tum.de |
3897eaf8273a08dde7708c3057d753400c716b19 | 5b9d0dd5fcd286c65023d8f4bf2e38e44e67083f | /ROS-groovy/hector_quadrotor/hector_uav_msgs/src/hector_uav_msgs/msg/_RawImu.py | 7492ad58deb8650251252d340f6ca6c4d583f904 | [] | no_license | AlessioTonioni/Autonomous-Flight-ROS | be53b2b37f0740ca4ade3a821ca4a1774709d91c | 2163b728631d0b2d71cb76f3419e45f4e0b8ce6e | refs/heads/master | 2023-01-02T03:40:38.301122 | 2022-12-10T17:59:09 | 2022-12-10T17:59:09 | 54,210,299 | 54 | 34 | null | 2022-12-10T17:59:10 | 2016-03-18T15:07:43 | C++ | UTF-8 | Python | false | false | 6,007 | py | """autogenerated by genpy from hector_uav_msgs/RawImu.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class RawImu(genpy.Message):
_md5sum = "0879a838e899792bcf72ccfe7b5595ef"
_type = "hector_uav_msgs/RawImu"
_has_header = T... | [
"alessio.tonioni@studio.unibo.it"
] | alessio.tonioni@studio.unibo.it |
2be73068ede16bf460b393f81d7298a7a7979e02 | ad9201c2b7411267130fe23deaaf672f61d37713 | /stocks_api/models/schemas.py | 4da9addd563649393d7dea5be26b52c7d0b1ddf1 | [] | no_license | MaxMcF/stocks_api | 00119201001f6ff6ec294727bba97300b599b628 | 0d741c7bc1da16e0598291157e3de3ed7da3b5cf | refs/heads/master | 2022-12-11T18:48:05.736475 | 2018-09-10T01:18:18 | 2018-09-10T01:18:18 | 145,773,231 | 0 | 0 | null | 2022-12-08T02:53:03 | 2018-08-22T23:22:11 | HTML | UTF-8 | Python | false | false | 796 | py | from marshmallow_sqlalchemy import ModelSchema
from marshmallow_sqlalchemy.fields import fields
from . import StocksInfo, Account, AccountRole
# from . import Portfolio
from .portfolio import Portfolio
class StocksInfoSchema(ModelSchema):
class Meta:
model = StocksInfo
class AccountRoleSchema(ModelSchema... | [
"mmcfarland522@gmail.com"
] | mmcfarland522@gmail.com |
92f2d4f9596ffdcbfec56db5b6143db1da193641 | 61aafe6990305f15fdadd1b423ae6c2cbbedcfa6 | /analysis/Analysis_by_Educator/analysis_tanuja.py | f5d9a9ed1fb345a47edfe4ce043fcc4a51eb2914 | [] | no_license | Colo55us/BeatO | baef4086f6e98b7326160fb126f986061eb23a6a | 3eb9dd54eacb20a0d41ca383d040d1549cdcd042 | refs/heads/master | 2021-05-04T16:51:40.001719 | 2018-02-22T10:34:28 | 2018-02-22T10:34:28 | 120,260,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 30 13:00:34 2018
@author: BeatO
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
df = pd.read_csv('D:/Data_For Sugar_Educators-HOD Dashboard_2018_01_01.csv',sep=',')
#print(df['reading'].count())
df = df.loc[df.duplicated(subset='reading',keep=... | [
"mohitpratapsingh95@gmail.com"
] | mohitpratapsingh95@gmail.com |
8ddf43ffd289df2ae2f8e5151b48b7468ecc6fb9 | 1da3c32cf4b66f0d2874effe568ae138b14d5378 | /deployment/sagemaker-dashboards-for-ml/cloudformation/assistants/solution-assistant/src/index.py | 2f618e0e1f8072324c6ccaa097e56cd4f697adce | [
"Apache-2.0",
"MIT-0"
] | permissive | smart-patrol/streamlit-application-deployment-on-aws | 0f096fb1009ac7d725ed030aa1943195f6d06e64 | 577772ac2ebeda990f55e4dd015d363d524e3a7f | refs/heads/main | 2023-04-03T03:00:31.006225 | 2021-04-14T07:06:13 | 2021-04-14T07:06:13 | 358,070,426 | 0 | 0 | MIT-0 | 2021-04-14T23:36:57 | 2021-04-14T23:36:57 | null | UTF-8 | Python | false | false | 3,505 | py | import sys
sys.path.append('./site-packages')
# flake8: noqa: E402
from crhelper import CfnResource
import boto3
from pathlib import Path
helper = CfnResource()
@helper.create
@helper.update
def on_create(event, __):
pass
def delete_ecr_images(repository_name):
ecr_client = boto3.client("ecr")
try:
... | [
"baichsun@amazon.com"
] | baichsun@amazon.com |
b8a4f1c06952b1ad1c17e082ede8477d4c7a2eb2 | 8d7a2409599da9d7f2918d2b8e77105b10eb3811 | /hospital/backend/migrations/0006_remove_time_table_title.py | 63a5d9745d59f8762039e92356aca50a93c5341a | [] | no_license | woodsman1/Hospital-Booking | 9f2834eb31e79646c54c6af4e3f1215daa3b7e4f | a6a22b0b6ade719aa289ec253390a0f10dc7ceb4 | refs/heads/master | 2023-04-11T01:13:11.047197 | 2021-04-08T07:51:14 | 2021-04-08T07:51:14 | 354,848,014 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # Generated by Django 3.1.7 on 2021-04-08 04:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('backend', '0005_slot_booked'),
]
operations = [
migrations.RemoveField(
model_name='time_table',
name='title',
),
... | [
"19ucc114@lnmiit.ac.in"
] | 19ucc114@lnmiit.ac.in |
6c2ea7a5adf69811a6bc5e8370267dc58620ee6b | fa04c7977385556dbe0b7894be34288e3e041152 | /v0.4.0/aplab_tool_manager.py | 86fcd4d96f8d751ac582189e9a37d714413c9358 | [] | no_license | lars-frogner/Astrophotography-Lab | 8c39f39bdcd5318c96bb9bea4016fa6350066125 | ce073007d465a804b5ecbd39bacad231abf9bd2f | refs/heads/master | 2021-01-19T03:30:00.893494 | 2018-11-24T15:22:48 | 2018-11-24T15:22:48 | 39,679,829 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129,464 | py | # -*- coding: utf-8 -*-
import tkinter as tk
import tkinter.ttk as ttk
import tkinter.font as tkfont
import webbrowser
import os
import numpy as np
import aplab_common as apc
from aplab_common import C, MessageWindow
from aplab_image_calculator import ImageCalculator
from aplab_image_simulator import ImageS... | [
"lars_frogner@hotmail.com"
] | lars_frogner@hotmail.com |
8639b64d13f495471e27f7e4ecec5866ea70b372 | ad9ae5908d106201cb8d7ccec89cab7c2e188688 | /hw2/step_search.py | fce92dc9706edb296b9878d99c395a84fe48231d | [] | no_license | Howuhh/hse_optimization | 70debe571807525a61306c13f6432ab9b719cf9a | 9f24bff9f5850dae8dcf23c08f8da7f33e20fdfe | refs/heads/main | 2023-02-03T23:55:43.622498 | 2020-12-23T18:22:26 | 2020-12-23T18:22:26 | 310,073,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,404 | py | import numpy as np
from scipy.optimize import bracket, line_search
from optimize_single.golden import golden_section
from optimize_single.brent import brent
def _line_search(oracle, w, direction, optimizer, eps, max_iter):
assert w.shape == direction.shape, "diff shape for w and direction"
def f(alpha)... | [
"hsehowuhh@gmail.com"
] | hsehowuhh@gmail.com |
4afff28e71980128cc4561c1361d0d54ca414ce3 | 917d54527c85eae44dfcab13da1f583facb59c87 | /leetcode/70. Climbing Stairs.py | 524686106f213de44157d2dbef0b82bd76620239 | [] | no_license | queryor/algorithms | f73d14d18914491532b7beb9ca23146b46e038ec | 5b55e35f15c7bf098203a6aabbb7aad6b14579fa | refs/heads/master | 2021-06-19T18:38:43.462388 | 2019-08-24T03:16:58 | 2019-08-24T03:16:58 | 116,901,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | # You are climbing a stair case. It takes n steps to reach to the top.
# Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
# Note: Given n will be a positive integer.
# Example 1:
# Input: 2
# Output: 2
# Explanation: There are two ways to climb to the top.
# 1. 1 step... | [
"queryor.163.com"
] | queryor.163.com |
559c19f0eedcd31bcc48a3484331802b3dd03b6f | 96358408165144e9066d33749c436d475b3d044e | /webapp/user/forms.py | 8a6828314b3b7e1bcff7b405d1dc7fd89f0c6312 | [] | no_license | xkxixnxgx/task_for_srvhub | c742a77c5a8ffd16ec8f38297468863a9faaa3b1 | 718cc1d7aa7825dd3c614ffc5a7c24be757323c5 | refs/heads/master | 2023-06-27T21:39:16.404515 | 2021-08-02T19:09:55 | 2021-08-02T19:09:55 | 298,768,619 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Email, EqualTo, ValidationError
from webapp.user.models import User
class LoginForm(FlaskForm):
username = StringField('Имя пользователя', validators=[DataRequired... | [
"xkxixnxgx@yandex.ru"
] | xkxixnxgx@yandex.ru |
dfa948f6b72398a816d41e9b0647c492e8e27315 | 9617c8f29ff867039c7743ae906b5f90963cb676 | /tst.py | 3e8fa29ad14219dfed1b53044642273d727c5e74 | [] | no_license | ritikkh/competative_programming | c4a16759d15314d3e8061b574b84bbfd535ef288 | 01966286d2c4082825e75e893f3f5bb6bfb8c287 | refs/heads/master | 2022-12-02T11:43:47.533242 | 2020-08-19T17:35:36 | 2020-08-19T17:35:36 | 282,161,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | class Node(object):
def __init__(self, character):
self.character = character
self.middleNode = None
self.leftNode = None
self.rightNode = None
self.value = 0
class TST(object):
def __init__(self):
self.rootNode = None
def put(sel... | [
"noreply@github.com"
] | noreply@github.com |
5681cae9d8e0bd0e84325d582a67fcecd54ecdd9 | 997e0cae1eed3506a6c14cda7d103b549885a3e4 | /report_preprocessing/unigram.py | 4a7fef560a3c3831a3e5a29080af61125aca48d7 | [] | no_license | olivierh59500/malware_detection | 0ce94dfa07ccdfbbc07dfd0079f9855f1b8598d7 | da8310d3f1fc219e32afe33a75b355ac69eef8a9 | refs/heads/master | 2021-01-13T05:44:30.714689 | 2017-02-07T03:47:06 | 2017-02-07T03:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import re
import dir
import count
def extract_unigram(path):
f = open(path,'r')
data = f.read()
f.close()
return re.split('\W+', data)
def extract_unigram_dir(dir_path):
filenames = dir.filenames_in_dir(dir_path)
unigrams_list = []
for filename in filenames:
unigrams_list.append(e... | [
"koock1994@gmail.com"
] | koock1994@gmail.com |
7b063530b98b2e4222df26c7815ba099a548177f | 61c9bb7d88f637d24a42ae78f8223915d43a356a | /learningurllib/qiushibaike.py | 29ce8abce059934d75d5450fac8c8057527f1c24 | [] | no_license | foodish/python_project | fb2f53583d651d2e1035c10fd396923ffbac96ad | e127445c8a41f4ec839b4ad689d36594d34ad113 | refs/heads/master | 2021-01-21T10:59:17.577012 | 2017-03-26T18:05:00 | 2017-03-26T18:05:00 | 83,505,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,166 | py | # coding=utf-8
from urllib.request import Request, urlopen
from urllib import error
import re
import _thread
import time
#定义糗事百科爬虫类
class QSBK:
#初始化,定义变量
def __init__(self):
self.pageIndex = 1
self.user_agent = 'Mozilla/4.0 (compatible; MISE 5.5; Windows NT)'
#初始化headers
self.h... | [
"xbj1900@qq.com"
] | xbj1900@qq.com |
838b964eb294c35fb4356ac36b4eec1569a6df8a | 4d675419b49ce330ecc772fc489ac12b230ff46c | /data/pipelines.py | 57f38e4cb28f2e3ac4683c1f0da38e81824d6cdd | [
"MIT"
] | permissive | unreal-estate/chicago | 6b17f648044a03607ee0713b2f7d57b26c0f207c | 8cacef1ce883217939f2b97d4d0dd8a88ed43a1c | refs/heads/master | 2020-06-01T18:58:40.954827 | 2019-06-13T12:54:17 | 2019-06-13T12:54:17 | 190,892,426 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class DataPipeline(object):
def process_item(self, item, spider):
return item
| [
"alxfed@gmail.com"
] | alxfed@gmail.com |
3a522a31ec436c517bdd0588c09f8bf415488569 | 3599c5fc79b8ca70ffe7b81abde2171884563e64 | /dashboard/settings.py | ec4ee15f83f9950b93ef3e21d4cf3a3b3afc2b60 | [] | no_license | linhvo/pilosa-benchmarks | dd57ad092e607dcb11755512ceb203d7ed798294 | 3af372ee2cdd042077f9381f19279e4578cc6be9 | refs/heads/master | 2021-07-07T22:41:47.873651 | 2017-10-03T19:41:53 | 2017-10-03T19:41:53 | 105,677,475 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | """
Django settings for dashboard project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | [
"lvo@umbel.com"
] | lvo@umbel.com |
4db7ac534b2b262088fc4520ab768d9ed3da6e5e | 496fb6067bbb05d578835824fc9be58a3f5c5869 | /app.py | e17a82a13f1278520f6ad86f1fd3c4f0b260ab18 | [] | no_license | vaidik/metaplace | 3fe03b828e989967d104983a0421034e87eb21e0 | 9fb4ba5df4176a84fb034f09994850c05a1bba71 | refs/heads/master | 2021-01-18T04:38:43.111859 | 2013-08-15T22:41:09 | 2013-08-15T22:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,222 | py | from __future__ import division
import csv
import json
import os
import urllib
from collections import defaultdict, OrderedDict
from datetime import datetime, timedelta
from decimal import Decimal
from itertools import groupby
import boto
from boto.s3.key import Key
import grequests
import requests
from flask impo... | [
"amckay@mozilla.com"
] | amckay@mozilla.com |
a6d7f8f9500a0fc8477fd43e019867defe8d109f | a1106300094bb55dc69e4390b782f41b33d957bb | /CrawlZingNews/Zing/Zing/pipelines.py | 7b47d79328b4d41848b64d6bdb95f63108a83228 | [] | no_license | phuongbui2207/BuiKhanhPhuong_18021017_Nhom5_Crawler | 94b378d9a31e46d0c0f45d2d5a720d76503a7265 | 384763c40e55b6b055339db5075ac95dd5c3c83c | refs/heads/master | 2022-11-28T05:04:58.853355 | 2020-08-08T12:21:31 | 2020-08-08T12:21:31 | 286,037,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class ZingPipeline(object):
def process_item(self, item, spider):
return item
| [
"57555872+phuongbui2207@users.noreply.github.com"
] | 57555872+phuongbui2207@users.noreply.github.com |
6cf64851e3cfe56fe13f73cdb2dda93181578b0c | afa8dd0dc4756b7ed618442453d1e22ba46b0076 | /run.py | 303da145fe324f0aa571219245acf927c87d183d | [] | no_license | sunyanbei/GDWCT | 85241bf10dd437e4a4be415c91ffb95b197c6936 | 2c589348b5549a5f6b461ae83172a724009ab639 | refs/heads/master | 2022-03-06T02:04:49.409926 | 2019-11-13T21:33:38 | 2019-11-13T21:33:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,526 | py | import torch
import torch.nn as nn
import torch.optim as optim
from torch import cuda
from data_loader import *
from model import *
import time
import datetime
import os
from utils.util import *
from torch.backends import cudnn
from scipy.linalg import block_diag
class Run(object):
def __init__(sel... | [
"tyflehd21@naver.com"
] | tyflehd21@naver.com |
219b7662507a1b3abed61f530b5614f51208739a | 0ea49aa13a836bc01f8b9699c84891701c9b14f1 | /navermovie/crawler.py | c170e58cfdcd75e133c07293dbb57cb3e1dcd167 | [] | no_license | spyria2019/tensorsppark_1 | 8a7221715754d07982a7215d8c6aaa9d305892fe | acc4a198e2db3507879eb72416701f5048da0af4 | refs/heads/master | 2020-05-30T11:34:42.841744 | 2019-06-01T09:20:31 | 2019-06-01T09:20:31 | 189,706,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from selenium import webdriver
from time import sleep
from bs4 import BeautifulSoup
class NaverMovie:
def __init__(self,url):
driver = webdriver.Chrome('chromedriver')
driver.get(url)
soup = BeautifulSoup(driver.page_source,'html.parser')
print(soup) | [
"spyria@naver.com"
] | spyria@naver.com |
c09e44bf3f8ca85322fb2a0c4302e0c853f6287c | 670194acaaeca4eb86f60d0410b43631db2cd592 | /model/contact.py | 01d1e2615cde74bf20ad90a3e51e7922193a9082 | [] | no_license | anakomissarova/python_training | 4c2d202470e512607a51cfd9145467442a6a8151 | 663bb3e9e7eefe6a711691b05a733b393eea1e13 | refs/heads/main | 2023-02-27T08:46:07.528234 | 2021-02-08T17:15:49 | 2021-02-08T17:15:49 | 318,516,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | from sys import maxsize
class Contact:
def __init__(self, contact_id=None, firstname=None, middlename=None, lastname=None, address=None,
mobile=None, home=None, work=None, secondary=None, phones_from_homepage=None,
email1=None, email2=None, email3=None, emails_from_homepage=None)... | [
"akomissarovaaaa@gmail.com"
] | akomissarovaaaa@gmail.com |
fd0427dabe97accf3295d1b62ac08574aa934f0f | bac88b1c28fdce256b954c786282d36abcf700b5 | /project/downloader/agent_base.py | 9da28e5374a4f4f2ef23e12f76e00fb6242121dd | [] | no_license | univizor/u2 | 5319ec908cc09db51e12a4308e6ea20188a04233 | f65d73e466532a3fe69d471f97e312ca98a7bb21 | refs/heads/master | 2021-01-21T13:04:08.773673 | 2016-05-08T23:15:25 | 2016-05-08T23:15:25 | 55,307,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | from document.models import Document
from document.states import *
from django.utils import timezone
import logging
logger = logging.getLogger('u2.agent_base')
agents = []
def add_agent(agent):
agents.append(agent)
class Agent(object):
AGENT_NAME = "ABC"
AGENT_VERSION = 1
def agent_get_existin... | [
"andraz@zemanta.com"
] | andraz@zemanta.com |
55b3516fc383a6de1952bb42e51991a8cab1be45 | 5fc305524dd0bc16de9a26939819a9d47846edbb | /test/functional/rpc_blockchain.py | de02cd69f726d8a54593eb94aae3a6a2e6135019 | [
"MIT"
] | permissive | ca333/powerblockcoin | da85c7d667d98c60407455887e5507078769f2f4 | 6ef14a834ef9b6af5ce7ff31cd6907760b971887 | refs/heads/master | 2023-06-18T11:25:40.666674 | 2021-07-19T08:02:55 | 2021-07-19T08:02:55 | 348,801,917 | 0 | 1 | MIT | 2021-07-15T15:37:28 | 2021-03-17T17:51:01 | C++ | UTF-8 | Python | false | false | 9,074 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 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 RPCs related to blockchainstate.
Test the following RPCs:
- getblockchaininfo
- gettxouts... | [
"ca333@keemail.me"
] | ca333@keemail.me |
e090cb0a3cc44a4ef94cf2e88b032f150f6a4192 | b7423aabf39b7ebacbd57388d20de1a9bf43f2f2 | /coding-bat/list-1/middle_way.py | c5ba6332db2864a418e9d48c61f0e6e16257eccd | [] | no_license | usman-tahir/python-snippets | b9e2bfe8e96d321314b2e87560c2fa3cd102d0e8 | cfe564ecb5a27d8b61c8c9930458bf3fdeab4d8e | refs/heads/master | 2021-01-12T13:56:06.263461 | 2017-05-07T17:53:53 | 2017-05-07T17:53:53 | 68,925,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | # Given 2 int arrays, a and b, each length 3, return a new array length 2
# containing their middle elements.
def middle_way(a, b):
return [a[len(a) // 2], b[len(b) // 2]]
| [
"tahir.usman.ali94@outlook.com"
] | tahir.usman.ali94@outlook.com |
72dbab8239a35d18ebf7943d2690f4300a8fca44 | e97e93699174acbd70b65f46d72c4a66a98bf0b2 | /lab7/informatics/f5.py | 5468164ad2b225a1fbcbc7057043374188213d96 | [] | no_license | anelyausk/web-dev | f362a1ce9063708866c24b42761e8aeebda2316d | ada089b69340b9ae220e2124ada4d1ed27e4a93c | refs/heads/main | 2023-05-15T07:38:45.455636 | 2021-06-14T08:51:17 | 2021-06-14T08:51:17 | 343,856,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | n = int(input())
cnt = 0
a = [int(i) for i in input().split()]
for i in range(1, n - 1):
if a[i] > a[i + 1] and a[i - 1] < a[i]:
cnt += 1
print(cnt)
| [
"elya@Elyas-MacBook-Air.local"
] | elya@Elyas-MacBook-Air.local |
86133d8792f59a466450ab8f5fd58de4a9a54a66 | eae8d7821f73233ef52f916b2d22b392fa056086 | /python_one_learn/day17/exercise01.py | ddb01f0867bfbf020ec1161b001425d528eb1b0f | [] | no_license | Wuskysong/python01_- | cad75d90dab945cc85719dcb1bb138ce81b813e5 | 4cef60bc5812524f7331e0f97f68c41db7082db7 | refs/heads/master | 2020-06-21T23:59:20.121964 | 2019-07-18T12:54:40 | 2019-07-18T12:54:40 | 197,584,017 | 1 | 0 | null | 2019-07-18T12:44:26 | 2019-07-18T12:37:03 | Python | UTF-8 | Python | false | false | 620 | py | """
练习:定义生成器函数my_enumerate,实现下列现象.
将元素与索引合成一个元组.
list01 = [3, 4, 55, 6, 7]
for item in enumerate(list01):
# (索引,元素)
print(item)
for index, element in enumerate(list01):
print(index, element)
"""
def my_enumerate(iterable_target):
index = 0
for item in iterable_target:
yield (... | [
"865997553@qq.com"
] | 865997553@qq.com |
fc1c79ef406557e93a98275e45e40d62fe395c46 | 61f8733c7e25610d04eaccd59db28aa65897f846 | /dot blog/Built-in functions/min.py | 4a26742f75a80b90f32d47f262d3c297e2b018e3 | [] | no_license | masato932/study-python | 7e0b271bb5c8663fad1709e260e19ecb2d8d4681 | 03bedc5ec7a9ecb3bafb6ba99bce15ccd4ae29cc | refs/heads/main | 2023-03-27T13:32:05.605593 | 2021-03-21T10:45:16 | 2021-03-21T10:45:16 | 342,985,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # x = [30, 20, 10, 40]
# print(min(x))
# print(max(x))
# x = (30, 20, 10, 40)
# print(min(x))
# x = {'b':20, 'c':30, 'a':10, 'd':40}
# print(min(x))
# x = {'b':20, 'c':30, 'a':10, 'd':40}
# print(min(x.values()))
# print(max(x.values()))
# x = {30, 20, 10, 40, 5}
# print(min(x))
x = range(2, 93, 4)
print(min(x))
print... | [
"masatowada66@gmail.com"
] | masatowada66@gmail.com |
74bc7604452f3b169df0f784597fff5355775d87 | 7486b3af4d4413a96b3e0bf76f776cd8605d7c05 | /wndnjs9878/for/bj-2741.py | 12c56cf3563afc0b51ee1369b5af4bd47d5d6d64 | [] | no_license | WonyJeong/algorithm-study | 7146e18ec9a3d7f46910e31890768b2e37f8b9b4 | dd659bf75c902800bed226d392d144b691d8e059 | refs/heads/main | 2023-03-31T14:38:47.365622 | 2021-04-02T01:35:36 | 2021-04-02T01:35:36 | 334,309,434 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | #2741
import sys
input = sys.stdin.readline
N = int(input().strip())
for i in range(1, N+1) :
print(i)
| [
"48276633+wndnjs9878@users.noreply.github.com"
] | 48276633+wndnjs9878@users.noreply.github.com |
d356d063de284f7c7c8e447216b2679ac3541b14 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /WixXhsdqcNHe3vTn3_8.py | cb38f9e997d78b97a2bbeb924d95adbd37e850e2 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py |
def how_bad(n):
num = bin(n)
l = list(num[2:]).count('1')
res =[]
if l%2==0:res.append('Evil')
else:res.append('Odious')
if prime(l)==True:res.append('Pernicious')
return res
def prime(num):
if num > 1:
for i in range(2, num):
if (num % i) == 0:return False
r... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
06a5926ae454f0202fd7a070531414fbac8e60be | 799a90344c4e2e367bd79fff063ede765f816549 | /21_TTD_unit_test/mspack_test.py | 88c7ea59b246c702227b6399ef9b771bfcc5a8cb | [] | no_license | thraddash/python_tut | a49765801882003b6d3b1d6958bee476f5768470 | 5bd359f2021bb26953bcd955018dfbf6b2b6395f | refs/heads/master | 2023-03-16T10:28:56.581004 | 2021-03-05T00:08:06 | 2021-03-05T00:08:06 | 325,146,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | #!/usr/bin/env python
## test msmath and msstring
## import unittest module
## create class MsPackMsMathTestCase and inherite test case class (unittest.TestCase)
## create list of test functions use test_ before each of the methods
import unittest
from mspack import msmath
class MsPackMSMathTestCase(unittest.TestCa... | [
"theartist@gmail.com"
] | theartist@gmail.com |
2398215640eca54a212fdecfc44931e464969391 | 557a074c846ee90960fb9248ddab869a12cc5599 | /02_RM_TO.py | 779795b48d82081e1f47a04c11a70507e121be7d | [] | no_license | leezear2019/statistics | d89942724f0a08ebf830a8180a479e529c177889 | 71230524bfb2b77852736046ef6f71946afacc48 | refs/heads/master | 2022-12-10T09:52:17.187760 | 2020-08-24T01:52:27 | 2020-08-24T01:52:27 | 288,099,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | import os
import pandas as pd
import numpy as np
# 从sum中移除超时的实例
if __name__ == '__main__':
# root_dir = "D:/data2/out"
# res_dir = "D:/data2/sum_rm"
root_dir = "E:/alldiff"
res_dir = "E:/alldiff-"
solve_time_list = list()
delete_list = list()
# pct_files = os.listdir(pct_path)
# strbit_... | [
"leezear@live.cn"
] | leezear@live.cn |
9965c2f98f90ac340a098207da796b6ad09d40a5 | a69788fd661fedc8195696dec6da014f75cbfd20 | /generateRandom.py | 12cbd1a90e0ae7403509245fbed9b29a0d9eb5b4 | [] | no_license | chitrakgupta/Aggregation-Automation | 3b629180c2020588b0b9707a519cd6e788dc8d43 | ac7aad432545599d7cbb3681265efb9f84a3f0d2 | refs/heads/master | 2021-01-12T04:32:41.016181 | 2016-12-29T23:40:20 | 2016-12-29T23:40:20 | 77,646,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | #!/usr/bin/python
# This code generates random configurations for a system of pHLIPS (to study aggregation)
# Number of pHLIPs will be passed as argument
# Assume that PDB already exists with multiple pHLIPs overlaid on each other. All but one of them have to be moved randomly.
# This code will generate random coordin... | [
"noreply@github.com"
] | noreply@github.com |
8ba564270ad71459a43f0d7255a7b2d96a8ce9ee | 5b4c803f68e52849a1c1093aac503efc423ad132 | /UnPyc/tests/tests/CFG/1/pass/pass_while+else_.py | c45c446afd64059c4f4281ff68eb69f4904d09ae | [] | no_license | Prashant-Jonny/UnPyc | 9ce5d63b1e0d2ec19c1faa48d932cc3f71f8599c | 4b9d4ab96dfc53a0b4e06972443e1402e9dc034f | refs/heads/master | 2021-01-17T12:03:17.314248 | 2013-02-22T07:22:35 | 2013-02-22T07:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | while 1:
pass
else:
pass
| [
"d.v.kornev@gmail.com"
] | d.v.kornev@gmail.com |
ed957f9daccc09a4a2791cc23f08a27a2914369c | b8f1dda1b39e6927c5efd9d2c298e3e29043410f | /yaffs_example/testgenv5.py | 903dab18f13e0998e308d4293b9f7fed9bd86383 | [] | no_license | regehr/random-testing-book | 2181390dd1afedb5f37efe170256f650f5cf6705 | 45606f72775045b7a227a38199398da05f55652c | refs/heads/master | 2020-12-24T14:46:08.207372 | 2013-03-03T19:01:02 | 2013-03-03T19:01:02 | 7,459,867 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | import random
import sys
import time
import testswarm as T
T.processOpts({"seed" : time.time(),
"length" : 100,
"ref" : False,
"swarm" : False,
"Pfeedback" : 0.95,
"PextendPath" : 0.05})
random.seed(int(T.opts["seed"]))
T.se... | [
"agroce@gmail.com"
] | agroce@gmail.com |
d3835d7f17c06d91ec27fb318dfab7f377ed7813 | e8742ddd09a5517a1959b76780069d89fa799118 | /12_Artificial_Intelligence/reinforcement learning/Project 2/WindyExp8Moves.py | b75e9958cc245e82f135fc347fd28edccaf3ab29 | [] | no_license | Frost-13/Portfolio | d61fe7161217a25a0fd832e0ad75bf9793cbf67d | 44f5405a5572e53b9491227779568fefa140cab3 | refs/heads/master | 2023-03-19T04:04:01.078025 | 2021-03-18T16:32:59 | 2021-03-18T16:32:59 | 223,272,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | import numpy as np
from WindyEnv8Moves import Environment
from WindyAgent8Moves import Agent
from rl_glue import RLGlue
import matplotlib.pyplot as plt
def experiment(rlg, num_runs, max_steps):
completed = np.zeros(max_steps)
for run in range(num_runs):
# set seed for reproducibility
np.ran... | [
"36096466+Frost-13@users.noreply.github.com"
] | 36096466+Frost-13@users.noreply.github.com |
c212f1faaba626baf4cd851eaaa3c2d6ea463b09 | 2ffd079c34cb07c738f7e5f703764fed68f2c8c0 | /Solutions/Number_of_Nodes_in_the_Sub-Tree_With_the_Same_Label.py | 86d618abeb7983b5330e4bdad148cd678500aba6 | [] | no_license | WuIFan/LeetCode | bc96355022c875bdffb39c89a2088457b97d30ab | 689a100ada757bc20334d5f0084587af3039ca7b | refs/heads/master | 2022-05-24T07:13:01.023733 | 2022-04-03T15:26:23 | 2022-04-03T15:26:23 | 202,471,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from typing import List
import collections
class Solution:
def countSubTrees(self, n: int, edges: List[List[int]], labels: str) -> List[int]:
def dfs(node,par):
counter = collections.Counter()
for child in tree[node]:
if child == par:
continue
... | [
"denny91002@gmail.com"
] | denny91002@gmail.com |
d654245aa192b82d1eea814beecfb32dbbe5d459 | 5858dcab54ef266ffdc6bbd70bd4d7f529289283 | /manage.py | 674eb62449ab449a964eca3c318bff59d9ec31fc | [] | no_license | shahrukh-alizai/update-model-38 | 1bdca22c84a86c38e87f25e29a19acbda20773c4 | a0d5128a8fca79f3096542cad0a4c2c22484a9ab | refs/heads/master | 2022-12-17T05:31:32.024626 | 2020-09-10T06:44:49 | 2020-09-10T06:44:49 | 294,153,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "update_model_38.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"shah@crowdbotics.com"
] | shah@crowdbotics.com |
00c0a3e62556125bafa7a5493ae5ed909268325f | b43066d17d83c4a96a201bc70573d956d618d643 | /in_polygon.py | 14f526627e76ebbc77273ba0a4d8b2fc9b47b79f | [] | no_license | rskschrom/points_inpolygon | f2dd87a92387e95a6124e5eb73014b55ede8b378 | 1592051c4d08874190ec85b25493114df4479af5 | refs/heads/master | 2021-01-25T01:02:50.378363 | 2017-11-15T20:56:03 | 2017-11-15T20:56:03 | 94,714,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | import numpy as np
from segments import get_overlap_segments
from segments import get_coverage_fraction, poly2seg
# calculate bearings from point to segments
def dir_span(px, py, segx, segy):
l1x = segx[0,:]-px
l2x = segx[1,:]-px
l1y = segy[0,:]-py
l2y = segy[1,:]-py
dir1 = np.arctan2(l1y, l1x)
... | [
"snowwxradar@users.noreply.github.com"
] | snowwxradar@users.noreply.github.com |
806f89b43434e8bd806c06d099cf4b4b3344a60a | 763378fae9820f25a6b910de65c63fb10b7c32a5 | /account/migrations/0008_auto_20201119_1926.py | 8d5d44fc2654c39ed5c675171a69d1f2049f98d9 | [] | no_license | alisamadzadeh46/Blog | c9ae193647399d1513f32b675654aec56496c3ea | 50f9b1a63b99555d1eaad3171af5e5b128641c38 | refs/heads/main | 2023-02-26T19:43:46.288622 | 2021-02-12T09:57:17 | 2021-02-12T09:57:17 | 330,210,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # Generated by Django 3.0.5 on 2020-11-19 15:56
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('account', '0007_auto_20201119_1923'),
]
operations = [
migrations.AlterF... | [
"alisamadzadeh46@gmail.com"
] | alisamadzadeh46@gmail.com |
ff3182b2fdd256162916662b4ffc140e8161a844 | 3e83e65ceb2e0cebc2442bdecf03b614b4dd1455 | /strategy.py | 92235394432bc3fc1223082445c9b3141a054b22 | [] | no_license | Shuso/csc148assignment2_tippy | 3c38c2f1339fcf2e96c54bdb9be971a5bc268f58 | 3dcd313d71a850bf008d331b3ba9ce55d01c5f59 | refs/heads/master | 2021-09-03T03:36:11.746185 | 2018-01-02T03:58:10 | 2018-01-02T03:58:10 | 116,357,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | class Strategy:
'''Interface to suggest moves for a GameState.
Must be subclassed to a concrete strategy. Our intention is
to provide a uniform interface for functions that suggest moves.
'''
def __init__(self, interactive=False):
'''(Strategy, bool) -> NoneType
Create new Strate... | [
"lauren20131230@gmail.com"
] | lauren20131230@gmail.com |
8bd17d214073140660e591f2126b3c52982f2aa6 | 86baffc71f56c51ccd75dfc9e9d15b983dbd8116 | /User-Verification-based-on-Keystroke-Dynamics-master/graphs.py | 7cc93fb32e7942dbdbcb14abd1a5b662e57c6e52 | [] | no_license | Siddharth2110/User-Verification-based-on-Keystroke-Dynamics-master | 1f371709d3d896004ea5f8fc517dff124200afa7 | 13c5235d1aa7e34d200e32ebe767ff84b1812bbc | refs/heads/main | 2023-06-09T03:05:14.013614 | 2021-06-27T05:23:54 | 2021-06-27T05:23:54 | 378,798,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | import matplotlib.pyplot as plt
import numpy as np
w=0.4
x = ["Manhattan","M_Filtered","M_Scaled","SVM","M-F-S","SVM_Filtered"]
AUC = [0.878,0.914,0.951,0.965,0.959,0.972]
EER = [0.18065765645731371,0.1484870487058271,0.11763692496206396,0.12054244703221502,0.10284572835503178,0.12557263803596627]
plt.bar(x,A... | [
"noreply@github.com"
] | noreply@github.com |
e8becac7e006696104e0ca3829433f93a8db4c7d | 6bfaae2f3f21f76dd5b0394ef97513d4cc982a96 | /여행경로/jujoo.py | 791c764e164b2032a1afbc3e7229005945e59ad5 | [] | no_license | 5Hyeons/CodingStudy | bcfa7ffdffbd510a7ed71232d186e3eff46a61aa | d02d65484aef9707cf6f5660f730e508d8847903 | refs/heads/master | 2023-08-25T09:57:18.694973 | 2021-11-09T06:48:54 | 2021-11-09T06:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | from collections import defaultdict
from typing import List
def solution(tickets:List[List[str]]) -> List[str]:
'''
모든 도시를 방문할 수 없는 경우는 주어지지 않습니다.
[Example]
tickets = [["ICN", "COO"], ["ICN", "BOO"], ["COO", "ICN"], ["BOO", "DOO"]]
return : ["ICN", "COO", "ICN", "BOO", "DOO"]
'''
... | [
"jk042386@gmail.com"
] | jk042386@gmail.com |
699b9459829df8cf46f3eddb1b26c463af82d477 | 3fbb8f2a4c7d887cfb76c399568784b8e9703736 | /Analysis/Trivia/Questions/sets_with_most_colored_pips/trivia_question.py | 68b0ba25b3432ec645364c2a43f87fdd8618aa9e | [] | no_license | wally-wissner/MTGAnalysis | a36c3446bc26f54abd875347de2e947777b73862 | 697d864dc20f7aa4d15eca5ea07ed189fba40dd3 | refs/heads/master | 2023-08-14T17:57:29.470453 | 2023-07-28T03:24:12 | 2023-07-28T03:24:12 | 354,975,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | # Question: Which sets have the most colored pips by card on average?
import pandasql
from Conn import conn_mtg
from Utilities.reddit_markdown import to_reddit_markdown
query = """
SELECT
cards.name,
cards.manaCost,
cards.setCode,
sets.name AS setName
FROM
cards
LEFT JOIN
sets
ON
sets.... | [
"Wally.Wissner.MS@gmail.com"
] | Wally.Wissner.MS@gmail.com |
3ef1d87fad484673586ff90b7e56e018b8147665 | db801026b0da97df281f8c30f2d423397b621a8d | /auth.py | 438cdfd84a8cea00f960f165557dbcfdc30bd8b0 | [] | no_license | AnWoz/CodeMe-Advanced-Project- | 05286585f3985131fb3a095faf34f14179c5f816 | dbf2bd9b62ae82477638613f390e284f49932ccc | refs/heads/master | 2020-07-29T02:03:08.897684 | 2019-09-19T18:57:23 | 2019-09-19T18:57:23 | 209,626,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | from functools import wraps
from flask import Blueprint, request, get_flashed_messages, render_template, \
session, redirect, flash
from werkzeug.security import check_password_hash
from db_utils import get_connection
auth_bp = Blueprint('auth_endpoints', __name__)
@auth_bp.route('/login', methods=[... | [
"noreply@github.com"
] | noreply@github.com |
0375f7e1d7011a911aaf440aedcdb7956604a8f5 | ea3f3c03f91caf4c3c474ba764cd60a8302abbac | /study-be/api/fe.py | 8653248b0865c239fee00cf739dc9ca6f5267202 | [] | no_license | fengcms/python-restful-cms | 1c7ba03c584344ca271801ff7ebaeb8d0a4df636 | 48fb067b4bbd2c18f8db370e0a8cdc7dacdae2c6 | refs/heads/master | 2020-03-26T05:09:00.458646 | 2018-10-11T01:46:52 | 2018-10-11T01:46:52 | 144,540,397 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # 引入 sanic 蓝图
from sanic import Blueprint
# 引入公共 RESTful 类
from core.app import listView, itemView
# 引入配置参数中的前缀参数
from config import PREFIX
from core import rest
from core.tool import ok, fail
# 配置蓝图
FIX = PREFIX['fe']
bp = Blueprint('fe', url_prefix=FIX)
# 加载默认 RESTful 接口生成路由
bp.add_route(listView.as_view(), '<name>... | [
"web@fengcms.com"
] | web@fengcms.com |
1a11bb1d43304c85bb297e0400ca22bddf7c1df0 | e3e9979ecd820cc027cf6db2c382aaf633d4b0f4 | /maquinas/models.py | afb336b4fe82dfa5eef46722e2a53bf56bf7a598 | [] | no_license | raianeli25/primeiro_django | 5358c75a3ab3a998312aed0584c6abf0935b07fa | 51bc2c15ef2d0d4fc51782ee7b04f7dc59cbf2f1 | refs/heads/master | 2023-02-12T08:59:49.723854 | 2020-12-24T14:46:09 | 2020-12-24T14:46:09 | 324,173,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from django.conf import settings
from django.db import models
from django.utils import timezone
class Maquinas(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
nome = models.CharField(max_length=200)
status = models.CharField(max_length=200)
causa = models.... | [
"raianelima@id.uff.br"
] | raianelima@id.uff.br |
2740ed87141ddd5afdaad073ebd88bb153352b3f | d02844730c9e8cc6d725e7dd0a7a626c37cd877b | /indice.py | f2e72c93f7807f0af0a89eebd2907e850240a264 | [] | no_license | rosaito/crud | 9424d528224d605a62f0af51abaef80bddb2b716 | 704617dc54a2764bc944c9a4f21c7643c39f52e7 | refs/heads/master | 2020-08-10T04:32:02.506766 | 2019-10-10T19:06:05 | 2019-10-10T19:06:05 | 214,257,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | print ("------------------------------")
print ("1.Agregar")
print ("2.Eliminar")
print ("3.Listar")
print ("4.Modificar")
print ("5.Salir")
print ("------------------------------")
seleccion = None
nombre = None
apellido = None
edad = None
while seleccion != 5:
seleccion = input("Ingrese un valor: ")
if sele... | [
"m.general@alumnos.duoc.cl"
] | m.general@alumnos.duoc.cl |
ff5574cdf5c3905fcc2986aaf83509e96e8611c4 | f58d5752607171fb683e66c9a83781956c453514 | /Django/groceryapp/grocery_list/migrations/0003_auto_20210114_2008.py | c6ef432386e37aa0b63bf4286956e69709ca5dda | [] | no_license | Fawad2aria/full_stack | 539bc1aa5e3c05a079f3d89993cd61e5391eb442 | 49c16b46d8149b08a4685977f706de7ff27d304e | refs/heads/main | 2023-06-12T21:46:54.371277 | 2021-01-28T19:08:14 | 2021-01-28T19:08:14 | 318,842,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | # Generated by Django 3.1.5 on 2021-01-15 04:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grocery_list', '0002_groceryitem_completed'),
]
operations = [
migrations.AddField(
model_name='groceryitem',
name='... | [
"fawad3moh@gmail.com"
] | fawad3moh@gmail.com |
a8c65f4cc9daf39f60267384c6553e8f0a21620b | 4b19fa5afa62013c5f21bc895fefaef27b6f5c57 | /lab10/client.py | e5aa777902347c9721bab7e54c1a818373ad5cd0 | [] | no_license | pramo18/CN-LAB_1BM18CS070 | f5f515edb452c056fc0096af2e0a7460c2eb39ac | 9c8d634828ba2297d729661d332a959a12bb5e1d | refs/heads/master | 2023-02-08T19:19:04.301308 | 2020-12-30T15:28:10 | 2020-12-30T15:28:10 | 300,163,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from django.test import TestCase
# Create your tests here.
from socket import *
serverName = 'DESKTOP-PP68JI4'
serverPort = 12001
clientSocket = socket(AF_INET,SOCK_STREAM)
clientSocket.connect((serverName,serverPort))
sentence = input("Enter file name")
clientSocket.send(sentence.encode())
filecontents ... | [
"noreply@github.com"
] | noreply@github.com |
22835052eb3a974bca07f4e0f68f847f6f10579b | 91e87ed2e9a1b79cd50ff7593702c677f3e180f7 | /demo.py | ecda6650159294426e943df529394de41ae793db | [] | no_license | wmy920/autotest | 7648cc4113f386b1435cf29ce5dff1bbac90ccce | bbb4eebd03ce38ccb28e636ea2a438c282b6bee0 | refs/heads/master | 2020-08-28T01:11:36.764493 | 2019-10-27T10:39:24 | 2019-10-27T10:39:24 | 217,543,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | print("你好,刘猪恒");
print("hello,zhuzhuliu"); | [
"837310785@qq.com"
] | 837310785@qq.com |
a18970f10077564a889c1eee4c8adcc65f9f257e | 5d99fa60e72ad25b5e9f772ed13a4cabe0a5964f | /find_characters.py | 3d4feb002d66cd8a3355e1d8b6ce17e7616a8692 | [] | no_license | mpbraun2/Python_Track | 9c292ef619e803ed2f368f9726a87296b1fb23f5 | c5636c15b13a52500d46c09ea419235513f289a2 | refs/heads/master | 2021-01-25T06:25:00.805482 | 2017-06-06T22:10:15 | 2017-06-06T22:10:15 | 93,568,127 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | l = ['hello','world','my','name','is','Anna']
print l.count('e')
| [
"mpbraun2@gmail.com"
] | mpbraun2@gmail.com |
ccc67b26317e91fe5a9d78560344de819708af3b | 1e05ec67d5959841ebe0405a52237d2c02da8db4 | /chessboardApp/models.py | 1d4099e225688209285e7f950334b13fb2ddfb79 | [] | no_license | KurtVoigt/Chess-Website | 0309086ac199064503f88bd0fecb1f4b5f10a2ef | aaeb7f203449eff698bd83cdb67397140f1f7efa | refs/heads/main | 2023-04-07T14:31:53.411220 | 2021-04-12T11:23:10 | 2021-04-12T11:23:10 | 356,155,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from django.db import models
# Create your models here.
class Board(models.Model):
board_name = models.CharField(max_length=30)
def __str__(self):
return self.board_name
class Space(models.Model):
board = models.ForeignKey(Board, related_name="space_list", on_delete=models.CASCADE)
space_col... | [
"kjvoigtritter@gmail.com"
] | kjvoigtritter@gmail.com |
2d917214e70c45b3846f8b9714c588817b6bad5e | 8d082640cf1eed6fed9763f121cc65a65077592e | /CoVigilantSystems/SampleGetData.py | de3992599d50ac773fa087ba93f2857122e4f9cf | [] | no_license | wangxiaoyuwf/CoVigilantSystems | 747cfd0855f93e757e5ec56be16d02a4a7233bb5 | aaa0e5fbf4b8fe22286b4487b65e9e61218f12e1 | refs/heads/master | 2022-07-14T17:26:44.825497 | 2019-12-18T22:35:55 | 2019-12-18T22:35:55 | 219,410,117 | 0 | 1 | null | 2022-06-21T23:20:39 | 2019-11-04T03:30:45 | Python | UTF-8 | Python | false | false | 2,060 | py | # This is a sample how to get data from database and convert data to a dataframe of pandas
import numpy as np
import pymysql
import atexit
import pandas as pd
from sqlalchemy import create_engine
display = pd.options.display
display.max_columns = 50
display.max_rows = 10
display.max_colwidth = 10
display.width = None
... | [
"25297508@qq.com"
] | 25297508@qq.com |
3632c2f44e258b782198caa32baf4b6e9d198297 | b3c80ababd3206943eb94c01b8201bee360c61cd | /palindrome_num_func.py | bcd5cee95f78a03d31b8eb944436326daa74d110 | [] | no_license | rashmitallam/PythonBasics | 48aedb0f281046b88bfd23a4fe0f10f828ac707a | d29838884aac8644af2f885d22a6640d5e681803 | refs/heads/master | 2020-04-21T14:02:55.472429 | 2019-03-07T18:16:32 | 2019-03-07T18:16:32 | 169,621,476 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #WAP to accept a number from user, and check if it is palindrome or not
def palindrome(n1):
s1=str(n1)
rev_s1=reversed(s1)
if list(s1) == list(rev_s1):
print s1+' is a palindrome'
else:
print s1+' is not a palindrome'
def main():
num1=input('Enter a number:')
palind... | [
"noreply@github.com"
] | noreply@github.com |
031c44b6ea4589d112babdc909a1708837db2e88 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/sroberts-malwarehouse/allPythonContent.py | e144e319780a9c8cdfa936f4f86197b1e99aed73 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,404 | py | __FILENAME__ = db_controller
import sqlalchemy
from sqlalchemy import *
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.engine.reflection import Inspector
from malware_sample_model import MalwareIndex
import os
import re
class MalwareDbContr... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
296d464904b3c0d513118488e0fbf5d27684cdcd | f3555ac66906df4bdcf35000d81d3d911f4f98fa | /lab3/zavd6.py | 721450527a313173e498b117f85661a04acf7c8c | [] | no_license | ki2chio/IA_language | 48e7f2b2a662a3be3f16b74b14c1309eb0b3d65b | e0daac3986a170823527860a811530f69ad62748 | refs/heads/master | 2023-04-24T19:59:22.570447 | 2021-05-14T14:00:15 | 2021-05-14T14:00:15 | 338,029,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
df = pd.read_csv('flats.csv', sep=',', decimal=',')
df["Загальна_площа"] = df.Загальна_площа.astype(float)
plot5 = sns.FacetGrid(df, col='Місто')
plot5 = plot5.map(sns.boxplot, 'Ціна')
plot6 = sns.FacetGrid(df, col='Кімнат')... | [
"Illiya.Chernyak@outlook.com"
] | Illiya.Chernyak@outlook.com |
cef9526a60cae3d7e5f090a8960aab12a4d64957 | f766eeefa2b4b63312087ba72bb77f9b9936c46a | /Day 2/file1.py | d8a3d91c8c2165900970da2d33f93cd547741d82 | [
"MIT"
] | permissive | adamsaparudin/python-datascience | 365a84984aec7f444dc4fb9797fe69af5e80fd39 | 1b4164bb8a091f88def950f07108fe023737399c | refs/heads/master | 2020-03-30T09:51:33.034552 | 2018-11-06T14:17:16 | 2018-11-06T14:17:16 | 151,095,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | myfile = open("myfile1.txt", "w")
myfile.write("Hallo from text file \n") # \r\n untuk di windows
myfile.write("cobain nulis di file nih")
myfile.close()
| [
"adamsaparudin@gmail.com"
] | adamsaparudin@gmail.com |
c3d8d42556273a8ebbb7044e03df523a2537dcc7 | 2dcd5b3f42f72a3b3c2e074c045ca0e33b682867 | /AutopilotUiPanel.py | 43dff47214422b7d3a0eb8591c63861e83601c51 | [
"Apache-2.0"
] | permissive | JustMJ/ksp_rtls_launch_to_rendezvous | 0e14035d2218d6ade42f828797e6cf4ab361e8e2 | 195ebfb5aacf1a857aaaf0a69bf071d93d887efd | refs/heads/master | 2022-12-08T17:08:04.785658 | 2020-08-21T12:41:44 | 2020-08-21T12:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,124 | py | from krpc_utils import TelemetryStreams
import time
import math
import numpy as np
import json
from MainUiPanel import panel_x_offset
from krpc_utils import quaternion_rotation
from Autopilot import Autopilot
class AutopilotUiPanel:
def __init__(self, connection):
self.autopilot = None
self.canvas ... | [
""
] | |
106c2742f861e9c94c9d1c6cc3ffaa7dbf2321b7 | 90376bf430217279fc391e51f5309434474d05fe | /Django-EyePay/webpersonal/core/serializers.py | aa58686d36bee15d804519b0cc83ab7459c42e7b | [] | no_license | OscarUtreras/EyePay | 8ea6f7f0666b13b82d878f83aeec90996a387f31 | 726d8eda4edc161d6c1d5d61a619933538d49aa5 | refs/heads/master | 2020-04-07T05:49:37.452113 | 2018-11-26T18:33:22 | 2018-11-26T18:33:22 | 158,111,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from rest_framework import serializers
from .models import Product
class ProductSerializer(serializers.ModelSerializer):
class Meta:
model = Product
fields = ('name', 'category') | [
"oscar.utreras@usach.cl"
] | oscar.utreras@usach.cl |
bd0c71fbc2d44ac2a1abad9d43a97abaf92e7854 | 0c48e242fcacab32a71fdf3075f386ce109edf55 | /generation3/bots/theoretical_bot.py | f8a1c07f977c546dbe6852e1293a3b51e6d81591 | [] | no_license | webclinic017/Master-Insight-Trading-Bot-2 | 6a39c029264d832e913b0739499c252f86169850 | dcc0fa8fd1e2dbd3fa4cad0ee3618db88eade480 | refs/heads/master | 2023-05-29T22:25:53.090971 | 2021-06-18T14:10:51 | 2021-06-18T14:10:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | from typing import Dict
from generation3.bots.bot_processing_hub.backtester.BotBackTester import \
BotBackTester
from generation3.bots.bot_processing_hub.refined_data_for_bot import RefinedData
from generation3.ensemble_trading_bot import SignalProvider
import numpy as np
class TheoreticalBot(SignalProvider):
... | [
"rahulravindran.pro@gmail.com"
] | rahulravindran.pro@gmail.com |
51a83e3c760b46a993dcee7eb086c4bcee6ec984 | c1f95744e8ca3110630365c92fe74962a0c989da | /app/master_sound/models.py | 3f03e85e2d939a499f3b61c2c545a908bc37ea02 | [
"MIT"
] | permissive | PlatziMasterSound/MasterSound-Backend | 35ab0b0a0b3903762a34b56322e0e5f2330320d3 | a534aa2da238d5b284769a6e9dee43669d86017f | refs/heads/master | 2023-02-18T14:55:26.095957 | 2021-01-23T07:50:19 | 2021-01-23T07:50:19 | 309,891,679 | 0 | 0 | MIT | 2021-01-23T07:50:20 | 2020-11-04T04:57:16 | Python | UTF-8 | Python | false | false | 6,035 | py | from datetime import datetime
import requests
from app.db import db, BaseModelMixin
albums_artists = db.Table(
'albums_artists',
db.Model.metadata,
db.Column('albums_artists_id', db.Integer, primary_key=True),
db.Column('artist_id', db.Integer, db.ForeignKey('artists.artist_id', ondel... | [
"alexchirino3@gmail.com"
] | alexchirino3@gmail.com |
a9aee755e05f92b025c1289803993fcb90208dab | d294701a6365f279ff4368d64d83c6935f25cfc2 | /ITEnergy/urls.py | 4e333c2540a5674a1f8e70002641a729306ea06d | [] | no_license | ifdotpy/ITEnergy | 5e03c9bbb8cba2b9a1dcfea06a01c2cc05baaecd | 0c3b4563069b4d36f32a7a43df6fdede62e8177a | refs/heads/master | 2021-06-19T10:34:57.008354 | 2017-03-22T07:49:38 | 2017-03-22T07:49:38 | 84,626,384 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | """ITEnergy URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"igos.321@gmail.com"
] | igos.321@gmail.com |
580f645cc7cf7570e831fe6cc77214eaf6905599 | 14e94be35e02db4259347b30f6f4da3310303be4 | /notebooks/develop/config.py | e85cc1765202c6f46372af4e42963ebad7ec0fac | [] | no_license | ditmo/litness-test | f2038b9ca9ae80cb271af1727efa652896b86609 | 6e57f2b0058e304f758ae2e39e51d239260b51f4 | refs/heads/master | 2022-10-24T21:55:56.490081 | 2020-06-17T19:40:10 | 2020-06-17T19:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | # Version: Ready for midpoint review
from os import path
import os
# Getting the parent directory of this file. That will function as the project home.
PROJECT_HOME = path.dirname(path.dirname(path.abspath(__file__)))
# Logging
LOGGING_CONFIG = path.join(PROJECT_HOME, 'config/logging.conf')
# Billboard charts param... | [
"briancai@u.northwestern.edu"
] | briancai@u.northwestern.edu |
cc38a92a3398b14185effb892690b20baefc270b | 35da81a9b06f388b7dd7d2ab588e6f8ebd1f04db | /Day2/Day2_Set .intersection() Operation.py | 7206583b1b178412cc758f5500933e76d2f694e4 | [] | no_license | Swati1910/Innomatics_Internship | 4434f4422072a4025ade079c515da352114033a6 | 2e91a616b91ff3f68f666cd6991fd26f7e3df565 | refs/heads/main | 2023-02-27T13:44:52.008790 | 2021-02-10T07:01:42 | 2021-02-10T07:01:42 | 331,275,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
n1 = input()
set1=set(input().split(" "))
n2= input()
set2=set(input().split(" "))
set3=set1.intersection(set2)
print (len(set3))
| [
"noreply@github.com"
] | noreply@github.com |
9a08c6976c23db467a6aff1288eaa39c38ef7341 | 5e6260548f3f91eb7eddb1a23d569b1f280e122d | /pdf-table-extract-master/src/pdftableextract/scripts.py | fb80c860b6391a7dfc86b33785cc61ea22f2b5c0 | [
"MIT"
] | permissive | frankcode101/PDFProcessing | 198d708508b77eb9550c4d4e513d07ed867b25eb | 21520aea2f38700dd282f0920b3ec0eb2ad107d3 | refs/heads/master | 2021-09-07T21:29:13.563605 | 2018-03-01T11:19:13 | 2018-03-01T11:19:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | import argparse
import sys
import logging
import subprocess
from core import process_page, output
import core
#-----------------------------------------------------------------------
def procargs() :
p = argparse.ArgumentParser( description="Finds tables in a PDF page.")
p.add_argument("-i", dest='infile', help=... | [
"rocia.fernandes@gmail.com"
] | rocia.fernandes@gmail.com |
998ba8ac50e4d7278a16930ba907e750e9566b42 | 529ea79ac80a2d0b359fbbe420f51b5c19f7d40c | /8K-means/K-Means/kmeansplusplus_ys.py | ea981128ad27d59814d8dfc8fe6bdc9cca59567a | [] | no_license | ys1305/ML-hand | 2a6a16704b5632775f28f586dd6969fd5dc8c85f | 8e1c3a4a1e34f329a4d6bd70d561c1988325e57c | refs/heads/master | 2020-06-18T06:03:28.098924 | 2019-07-10T11:14:23 | 2019-07-10T11:14:23 | 196,189,128 | 18 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,081 | py | import numpy as np
from matplotlib import pyplot as plt
from matplotlib import colors
from scipy import io as spio
from scipy import misc # 图片操作
import numbers
from matplotlib.font_manager import FontProperties
font = FontProperties(fname=r"c:\windows\fonts\simsun.ttc", size=14) # 解决windows环境下画图汉字乱码问题
def dist... | [
"yangsenupc@163.com"
] | yangsenupc@163.com |
63d06648d0f943bcb273b11a78c85cba43cade4c | 8438015063bde3b5f87b26351946b51754bf5984 | /kuaforler/migrations/0012_kuafor_gun2.py | 21de3ec07e8970d9b0600875effac49bd56a0425 | [] | no_license | tekin7/Django-web-project | a624ea540093cbbd0069cb95cb2a7fd2713337bf | f07db2509ba78bb79c59db528bafc5fab84bc668 | refs/heads/master | 2020-08-13T16:34:15.588018 | 2019-10-14T09:26:19 | 2019-10-14T09:26:19 | 215,001,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,020 | py | # Generated by Django 2.2.2 on 2019-07-12 14:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_auto_20190704_1501'),
('kuaforler', '0011_auto_20190710_0238'),
]
operations = [
m... | [
"tekin_7_@hotmail.com"
] | tekin_7_@hotmail.com |
9a2c0ef6b579c25560ad7c30076fc90d3e7a4a86 | 6ffea7adf2543159d7a15cc01fbf09de9c67e202 | /Data_Structures/Implement_Graph.py | 41c32a15c5d1fbf8946533b24384c546b765c436 | [] | no_license | jzingh98/SelfOrganizingANN | 35ea6da87cfcd640ba311257a5ebe0879b502dea | a615fe350e398635558444e3cf8b5bac9794bfb9 | refs/heads/master | 2022-11-30T13:34:33.136915 | 2020-08-03T11:55:20 | 2020-08-03T11:55:20 | 259,671,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | import random as randGraph
class Neuron:
def __init__(self):
self.incomingEdges = []
self.outgoingEdges = []
inputVal = 0
outputVal = 0
class Axon:
def __init__(self, startNode=None, endNode=None):
self.startNode = startNode
self.endNode = endNode
self... | [
"jzingh@ucdavis.edu"
] | jzingh@ucdavis.edu |
47fdee74bceac6d74ab494199f3383d8023ae23b | 5f483737707ca77cc1fde79bbe65289648f42062 | /python zajecia AI/zaj2/zad4.py | b93f7ef6cf1c2cb81d0daa7828b2ca844cec95f2 | [] | no_license | Yirogu/EasyPython | 82b8edeffac7de1f531d5d170cd620e444e90001 | c6700446037602a2c69fa1a5a5af09ae049326e7 | refs/heads/master | 2020-05-01T05:15:00.253559 | 2019-05-08T19:39:12 | 2019-05-08T19:39:12 | 177,296,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,907 | py | from treelib import Tree
import time
#
# def duplicate_node_path_check(tree, node):
# check_node = tree.get_node(node)
# current_node = check_node
#
#
# while not current_node.is_root():
# current_node = tree.parent(current_node.identifier)
# if check_node.tag == current_node.tag:
# ... | [
"stachudcs@gmail.com"
] | stachudcs@gmail.com |
6dd6412d066314b6ca240a2fc1a9e76e145e2952 | 6a686f67fce7562f29ec318b6d0e2bbf1f505b72 | /Cap12_Estruturas_de_dados/9.2_Listas/2020/lists_tuplespy | 5b73db187eb1f88ad4d9d85a06a025bd18c464e7 | [] | no_license | frclasso/1st_Step_Python_Fabio_Classo | dd7f4b8f03f6992112fc9afb59c347d2989e612c | e7424143c432b5894ac30f816040145e129c1a2d | refs/heads/master | 2023-07-31T14:10:14.934518 | 2021-09-09T22:25:10 | 2021-09-09T22:25:10 | 138,339,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 11 09:12:45 2018
@author: fabio
"""
courses = ['History', 'Math', 'Physics','CompSci' ]
#indexing
#print(courses[0])
#print(courses[1])
#print(courses[2])
#print(courses[3])
# Slincing
#print(courses[0:5])
#print(courses[:5])
#print(courses[2:])
... | [
"frclasso@yahoo.com.br"
] | frclasso@yahoo.com.br | |
0bd86c05a544ec74fd6e21d361d37cbed3a88ef9 | c8c664de604f293b19e9cb3637aeb2c2f47dbde1 | /creating-project/application/table/models.py | b530454cde7fdb5a70b36021184ca1f51a522490 | [] | no_license | s-suchkov/dj-homeworks | 9c92ec7579b833f688afdad44e44e23611e7e506 | ef607951b84b9f79d2a6cf8cff7b8d4e83acc0ef | refs/heads/master | 2020-06-30T03:26:39.062667 | 2019-09-20T16:04:49 | 2019-09-20T16:04:49 | 200,708,401 | 0 | 0 | null | 2019-08-05T18:29:03 | 2019-08-05T18:29:02 | null | UTF-8 | Python | false | false | 375 | py | from django.db import models
import csv
class Fields(models.Model):
name = models.TextField()
width = models.IntegerField()
id = models.IntegerField(primary_key=True)
class Path_csv(models.Model):
file = models.FileField()
@staticmethod
def get_path(file):
with open(file) as f:
... | [
"ser3421@gmail.com"
] | ser3421@gmail.com |
80aea4f4f9b70bd805e7c2612cee79ad03c1e53c | 5bae449c697f6f75d76376700cacb4ef547a4ec1 | /report/urls.py | b007e7d19abd79aa70f98c24504e6de0dfa2430f | [] | no_license | shanirok/fluffy-palm-tree | 3e4e0060ecbba47cf2c1d64782efc290fdf5717b | f7213cb9e010ef62e215e1df46816cc4a955f316 | refs/heads/master | 2021-01-16T18:10:21.010843 | 2017-09-09T13:47:24 | 2017-09-09T13:47:24 | 100,044,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | from django.conf.urls import url
from . import views
from getriddb.models import Inventoryitem, Customer, Pickup
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^customers/$', views.CustomerListView.as_view(), name='customers'),
url(r'^pickups/$', views.PickupListView.as_view(), name='pickup... | [
"shanirokman@gmail.com"
] | shanirokman@gmail.com |
6804237b0d91a7bcc876f5811d01e0b7064a663d | 965a7d9f81c051b9f56ea08fe048a3935f10ced6 | /lclbindings/lclpython/unit1.py | 53ba0c352b17d58d1c32c84c91516a87ef115fdd | [] | no_license | mabudrais/lazarus-ccr | 1fd074078d04c869fe0a5a5140a1871b66e5c16d | be1510ff5bb5adae34fa91781c61f43650779f04 | refs/heads/master | 2020-12-25T11:41:40.836166 | 2015-08-14T07:26:17 | 2015-08-14T07:26:17 | 40,607,784 | 0 | 0 | null | 2015-08-12T15:16:48 | 2015-08-12T15:16:48 | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from TButtonunit import*
from TMemounit import*
from TEditunit import*
class TForm1:
def __init__(self):
self.Button1=TButton()
self.Memo1=TMemo()
self.Edit1=TEdit()
def onlic(self):
print self.Button1.Width
self.Button1.setWidth(self.Button1.getWidth()+10)
se... | [
"m.abudrais@gmail.com"
] | m.abudrais@gmail.com |
22e9f05bcf84b1140a015082cd24f39a7aec9b5a | 0106b5f304bed732756605f8a28524fa571d4099 | /Linked List/Palindrome LinkedList.py | bf29e9adf068784dedc7e4f896eb95a9404b30ca | [] | no_license | Svastikkka/DS-AND-ALGO | 8338d6f4641e8a369840af455087a5630cdad5cd | 95a6bec319df19753d382c800f4c78c0f0bb256d | refs/heads/master | 2023-03-03T06:13:52.335488 | 2023-02-28T08:11:09 | 2023-02-28T08:11:09 | 296,348,959 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | class Node:
def __init__(self,data):
self.data=data
self.next=None
def LinkedList(arr):
head=None
tail=None
if len(arr)<1:
return
else:
for i in arr:
if i ==-1:
break
NewNode = Node(i)
if head == None:
... | [
"ManshuSharma143Repo@gmail.com"
] | ManshuSharma143Repo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.